content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# Number of queens print("Enter the number of queens") N = int(input()) # chessboard # NxN matrix with all elements 0 board = [[0]*N for _ in range(N)] def is_attack(i, j): # checking if there is a queen in row or column for k in range(0, N): if board[i][k] == 1 or board[k][j] == 1: return True # checking diagonals for k in range(0, N): for l in range(0, N): if (k+l == i+j) or (k-l == i-j): if board[k][l] == 1: return True return False def N_queen(n): # if n is 0, solution found if n == 0: return True for i in range(0, N): for j in range(0, N): '''checking if we can place a queen here or not queen will not be placed if the place is being attacked or already occupied''' if (not(is_attack(i, j))) and (board[i][j] != 1): board[i][j] = 1 # recursion # wether we can put the next queen with this arrangment or not if N_queen(n-1) == True: return True board[i][j] = 0 return False N_queen(N) for i in board: print(i)
print('Enter the number of queens') n = int(input()) board = [[0] * N for _ in range(N)] def is_attack(i, j): for k in range(0, N): if board[i][k] == 1 or board[k][j] == 1: return True for k in range(0, N): for l in range(0, N): if k + l == i + j or k - l == i - j: if board[k][l] == 1: return True return False def n_queen(n): if n == 0: return True for i in range(0, N): for j in range(0, N): 'checking if we can place a queen here or not\n queen will not be placed if the place is being attacked\n or already occupied' if not is_attack(i, j) and board[i][j] != 1: board[i][j] = 1 if n_queen(n - 1) == True: return True board[i][j] = 0 return False n_queen(N) for i in board: print(i)
start_inventory = 20 num_items = start_inventory while num_items > 0: print("We have " + str(num_items) + " items in inventory.") user_purchase = input("How many would you like to buy? ") if int(user_purchase) > num_items: print("Not Enough Stock") else: num_items = num_items - int(user_purchase) print("All out!")
start_inventory = 20 num_items = start_inventory while num_items > 0: print('We have ' + str(num_items) + ' items in inventory.') user_purchase = input('How many would you like to buy? ') if int(user_purchase) > num_items: print('Not Enough Stock') else: num_items = num_items - int(user_purchase) print('All out!')
first_list = range(11) second_list = range(1,12) ziplist = list(zip(first_list, second_list)) def square(a, b): return (a*a) + (b*b) + 2 * a * b # output = [square(item[0], item[1]) for item in ziplist] output = [square(a, b) for a, b in ziplist] print(output) def square2(pair): a = pair[0] b = pair[1] return (a*a) + (b*b) + 2 * a * b map_list = list(map(square2, ziplist)) print(map_list)
first_list = range(11) second_list = range(1, 12) ziplist = list(zip(first_list, second_list)) def square(a, b): return a * a + b * b + 2 * a * b output = [square(a, b) for (a, b) in ziplist] print(output) def square2(pair): a = pair[0] b = pair[1] return a * a + b * b + 2 * a * b map_list = list(map(square2, ziplist)) print(map_list)
class Quest: def __init__(self, dbRow): self.id = dbRow[0] self.name = dbRow[1] self.description = dbRow[2] self.objective = dbRow[3] self.questType = dbRow[4] self.category = dbRow[5] self.location = dbRow[6] self.stars = dbRow[7] self.zenny = dbRow[8] def __repr__(self): return f"{self.__dict__!r}"
class Quest: def __init__(self, dbRow): self.id = dbRow[0] self.name = dbRow[1] self.description = dbRow[2] self.objective = dbRow[3] self.questType = dbRow[4] self.category = dbRow[5] self.location = dbRow[6] self.stars = dbRow[7] self.zenny = dbRow[8] def __repr__(self): return f'{self.__dict__!r}'
termination = 4000000 previous = 1 current = 2 total = 2 while(True): new = current+ previous previous = current current = new if(current >= termination): break if(current % 2 == 0): total = total + current print(total)
termination = 4000000 previous = 1 current = 2 total = 2 while True: new = current + previous previous = current current = new if current >= termination: break if current % 2 == 0: total = total + current print(total)
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0980777, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279723, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.148207, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.256641, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.147191, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.55204, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0860909, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.81603, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744351, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00537263, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0810849, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0397339, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.15552, 'Execution Unit/Register Files/Runtime Dynamic': 0.0451065, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.222804, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.402293, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 1.68454, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000225002, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000225002, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000194444, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 7.44341e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000570781, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00121523, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00221206, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0381972, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.42967, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0551552, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.129735, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.76791, 'Instruction Fetch Unit/Runtime Dynamic': 0.226515, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0140516, 'L2/Runtime Dynamic': 0.00517116, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.57809, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.182297, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0110311, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0110311, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.63039, 'Load Store Unit/Runtime Dynamic': 0.247729, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0272009, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0544015, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0096537, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00986453, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.151068, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00904231, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.326256, 'Memory Management Unit/Runtime Dynamic': 0.0189068, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 17.1163, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.259687, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0107034, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0719334, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.342324, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 2.52519, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0982865, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279887, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394843, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123408, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199053, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100475, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.422937, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0806077, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75412, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0745942, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0051763, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0797547, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0382819, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.154349, 'Execution Unit/Register Files/Runtime Dynamic': 0.0434582, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192598, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345046, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.49671, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000196117, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000196117, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000169484, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.48802e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000549923, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111164, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00192802, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0368014, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34089, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0552637, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.124994, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.67301, 'Instruction Fetch Unit/Runtime Dynamic': 0.220099, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0129726, 'L2/Runtime Dynamic': 0.00485966, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.53514, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.160709, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00964176, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.00964166, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.58067, 'Load Store Unit/Runtime Dynamic': 0.2179, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0237749, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0475494, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0084378, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00863242, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.145548, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00906, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.316151, 'Memory Management Unit/Runtime Dynamic': 0.0176924, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.9264, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.196223, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00795584, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0588229, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.263002, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22026, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0978179, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279519, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.392958, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123829, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199732, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100818, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.424379, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.081378, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75194, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0742381, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00519396, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0796807, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0384125, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.153919, 'Execution Unit/Register Files/Runtime Dynamic': 0.0436065, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192325, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345489, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.49837, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000199387, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000199387, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000172309, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.59614e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000551799, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00112288, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0019602, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0369269, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34887, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0549932, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.12542, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.68138, 'Instruction Fetch Unit/Runtime Dynamic': 0.220424, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.013049, 'L2/Runtime Dynamic': 0.0049262, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.54336, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.164681, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00990766, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.00990762, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.59015, 'Load Store Unit/Runtime Dynamic': 0.22345, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0244306, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.048861, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0086705, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00886632, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.146044, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00901559, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.317047, 'Memory Management Unit/Runtime Dynamic': 0.0178819, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.943, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195287, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00796344, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0590762, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.262327, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22738, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0979794, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279646, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.393608, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123725, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199564, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100733, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.424022, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0811593, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75278, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.074361, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00518958, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0797187, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0383801, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.15408, 'Execution Unit/Register Files/Runtime Dynamic': 0.0435697, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192445, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345389, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.498, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000197415, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000197415, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000170604, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.53086e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000551334, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111677, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00194081, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0368958, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34689, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0550619, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.125315, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.6793, 'Instruction Fetch Unit/Runtime Dynamic': 0.22033, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0131558, 'L2/Runtime Dynamic': 0.0049838, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.5413, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.163934, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00984081, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0098409, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.58777, 'Load Store Unit/Runtime Dynamic': 0.222306, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0242658, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.048532, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.008612, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00880954, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.145921, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00902684, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.316824, 'Memory Management Unit/Runtime Dynamic': 0.0178364, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.9393, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195609, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00796266, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0590131, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.262585, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22605, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.2868175454447888, 'Runtime Dynamic': 1.2868175454447888, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0451325, 'Runtime Dynamic': 0.0231622, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 61.9702, 'Peak Power': 95.0824, 'Runtime Dynamic': 9.22203, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 61.9251, 'Total Cores/Runtime Dynamic': 9.19887, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.0451325, 'Total L3s/Runtime Dynamic': 0.0231622, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0980777, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279723, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.148207, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.256641, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.147191, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.55204, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0860909, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.81603, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744351, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00537263, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0810849, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0397339, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.15552, 'Execution Unit/Register Files/Runtime Dynamic': 0.0451065, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.222804, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.402293, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 1.68454, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000225002, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000225002, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000194444, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 7.44341e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000570781, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00121523, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00221206, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0381972, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.42967, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0551552, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.129735, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.76791, 'Instruction Fetch Unit/Runtime Dynamic': 0.226515, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0140516, 'L2/Runtime Dynamic': 0.00517116, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.57809, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.182297, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0110311, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0110311, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.63039, 'Load Store Unit/Runtime Dynamic': 0.247729, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0272009, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0544015, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0096537, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00986453, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.151068, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00904231, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.326256, 'Memory Management Unit/Runtime Dynamic': 0.0189068, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 17.1163, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.259687, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0107034, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0719334, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.342324, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 2.52519, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0982865, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279887, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394843, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123408, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199053, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100475, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.422937, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0806077, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75412, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0745942, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0051763, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0797547, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0382819, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.154349, 'Execution Unit/Register Files/Runtime Dynamic': 0.0434582, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192598, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345046, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.49671, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000196117, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000196117, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000169484, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.48802e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000549923, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111164, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00192802, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0368014, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34089, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0552637, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.124994, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.67301, 'Instruction Fetch Unit/Runtime Dynamic': 0.220099, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0129726, 'L2/Runtime Dynamic': 0.00485966, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.53514, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.160709, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00964176, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.00964166, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.58067, 'Load Store Unit/Runtime Dynamic': 0.2179, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0237749, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.0475494, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0084378, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00863242, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.145548, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00906, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.316151, 'Memory Management Unit/Runtime Dynamic': 0.0176924, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.9264, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.196223, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00795584, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0588229, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.263002, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22026, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0978179, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279519, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.392958, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123829, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199732, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100818, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.424379, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.081378, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75194, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0742381, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00519396, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0796807, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0384125, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.153919, 'Execution Unit/Register Files/Runtime Dynamic': 0.0436065, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192325, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345489, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.49837, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000199387, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000199387, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000172309, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.59614e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000551799, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00112288, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0019602, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0369269, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34887, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0549932, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.12542, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.68138, 'Instruction Fetch Unit/Runtime Dynamic': 0.220424, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.013049, 'L2/Runtime Dynamic': 0.0049262, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.54336, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.164681, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00990766, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.00990762, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.59015, 'Load Store Unit/Runtime Dynamic': 0.22345, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0244306, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.048861, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0086705, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00886632, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.146044, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00901559, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.317047, 'Memory Management Unit/Runtime Dynamic': 0.0178819, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.943, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195287, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00796344, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0590762, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.262327, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22738, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0979794, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279646, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.393608, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123725, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.199564, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100733, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.424022, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0811593, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.75278, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.074361, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00518958, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0797187, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0383801, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.15408, 'Execution Unit/Register Files/Runtime Dynamic': 0.0435697, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.192445, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.345389, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.498, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000197415, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000197415, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000170604, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.53086e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000551334, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111677, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00194081, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0368958, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.34689, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0550619, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.125315, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.6793, 'Instruction Fetch Unit/Runtime Dynamic': 0.22033, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0131558, 'L2/Runtime Dynamic': 0.0049838, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.5413, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.163934, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.00984081, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0098409, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.58777, 'Load Store Unit/Runtime Dynamic': 0.222306, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0242658, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.048532, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.008612, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00880954, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.145921, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00902684, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.316824, 'Memory Management Unit/Runtime Dynamic': 0.0178364, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.9393, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195609, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00796266, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0590131, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.262585, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.22605, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.2868175454447888, 'Runtime Dynamic': 1.2868175454447888, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0451325, 'Runtime Dynamic': 0.0231622, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 61.9702, 'Peak Power': 95.0824, 'Runtime Dynamic': 9.22203, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 61.9251, 'Total Cores/Runtime Dynamic': 9.19887, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.0451325, 'Total L3s/Runtime Dynamic': 0.0231622, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
def assign_ROSCO_values(wt_opt, modeling_options, control): # ROSCO tuning parameters wt_opt['tune_rosco_ivc.PC_omega'] = control['pitch']['PC_omega'] wt_opt['tune_rosco_ivc.PC_zeta'] = control['pitch']['PC_zeta'] wt_opt['tune_rosco_ivc.VS_omega'] = control['torque']['VS_omega'] wt_opt['tune_rosco_ivc.VS_zeta'] = control['torque']['VS_zeta'] if modeling_options['Level3']['ROSCO']['Flp_Mode'] > 0: wt_opt['tune_rosco_ivc.Flp_omega'] = control['dac']['Flp_omega'] wt_opt['tune_rosco_ivc.Flp_zeta'] = control['dac']['Flp_zeta'] if 'IPC' in control.keys(): wt_opt['tune_rosco_ivc.IPC_KI'] = control['IPC']['IPC_gain_1P'] # # other optional parameters wt_opt['tune_rosco_ivc.max_pitch'] = control['pitch']['max_pitch'] wt_opt['tune_rosco_ivc.min_pitch'] = control['pitch']['min_pitch'] wt_opt['tune_rosco_ivc.vs_minspd'] = control['torque']['VS_minspd'] wt_opt['tune_rosco_ivc.ss_vsgain'] = control['setpoint_smooth']['ss_vsgain'] wt_opt['tune_rosco_ivc.ss_pcgain'] = control['setpoint_smooth']['ss_pcgain'] wt_opt['tune_rosco_ivc.ps_percent'] = control['pitch']['ps_percent'] # Check for proper Flp_Mode, print warning if modeling_options['WISDEM']['RotorSE']['n_tab'] > 1 and modeling_options['Level3']['ROSCO']['Flp_Mode'] == 0: raise Exception('A distributed aerodynamic control device is specified in the geometry yaml, but Flp_Mode is zero in the modeling options.') if modeling_options['WISDEM']['RotorSE']['n_tab'] == 1 and modeling_options['Level3']['ROSCO']['Flp_Mode'] > 0: raise Exception('Flp_Mode is non zero in the modeling options, but no distributed aerodynamic control device is specified in the geometry yaml.') return wt_opt
def assign_rosco_values(wt_opt, modeling_options, control): wt_opt['tune_rosco_ivc.PC_omega'] = control['pitch']['PC_omega'] wt_opt['tune_rosco_ivc.PC_zeta'] = control['pitch']['PC_zeta'] wt_opt['tune_rosco_ivc.VS_omega'] = control['torque']['VS_omega'] wt_opt['tune_rosco_ivc.VS_zeta'] = control['torque']['VS_zeta'] if modeling_options['Level3']['ROSCO']['Flp_Mode'] > 0: wt_opt['tune_rosco_ivc.Flp_omega'] = control['dac']['Flp_omega'] wt_opt['tune_rosco_ivc.Flp_zeta'] = control['dac']['Flp_zeta'] if 'IPC' in control.keys(): wt_opt['tune_rosco_ivc.IPC_KI'] = control['IPC']['IPC_gain_1P'] wt_opt['tune_rosco_ivc.max_pitch'] = control['pitch']['max_pitch'] wt_opt['tune_rosco_ivc.min_pitch'] = control['pitch']['min_pitch'] wt_opt['tune_rosco_ivc.vs_minspd'] = control['torque']['VS_minspd'] wt_opt['tune_rosco_ivc.ss_vsgain'] = control['setpoint_smooth']['ss_vsgain'] wt_opt['tune_rosco_ivc.ss_pcgain'] = control['setpoint_smooth']['ss_pcgain'] wt_opt['tune_rosco_ivc.ps_percent'] = control['pitch']['ps_percent'] if modeling_options['WISDEM']['RotorSE']['n_tab'] > 1 and modeling_options['Level3']['ROSCO']['Flp_Mode'] == 0: raise exception('A distributed aerodynamic control device is specified in the geometry yaml, but Flp_Mode is zero in the modeling options.') if modeling_options['WISDEM']['RotorSE']['n_tab'] == 1 and modeling_options['Level3']['ROSCO']['Flp_Mode'] > 0: raise exception('Flp_Mode is non zero in the modeling options, but no distributed aerodynamic control device is specified in the geometry yaml.') return wt_opt
# Tuples # Assignment 1 tuple_numbers = (1, 2, 3, 4, 5) tuple_groceries = ('coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk') groceries_inventory = ('coconuts', 'tomatoes', 'onions', 'coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk', 'spinach', 'tomatoes', 'cilantro', 'tomatoes') tuple_nested =((1, 2, 3), ["Python", "Database", "System"], 'Coding') tuple_numbers_100s = (100, 200, 300, 400, 500) # Print 3rd item from tuple_groceries print("*" * 50) print("The 3rd item of tuple_groceries :", tuple_groceries[2]) # Print the length of tuple_groceries print("*" * 50) print("The length of tuple_groceries :", len(tuple_groceries)) # Print the reverse of tuple_numbers & tuples_names print("*" * 50) tuple_groceries_rev = tuple(reversed(tuple_groceries)) print("Reverse of tuple_groceries :", tuple_groceries_rev) # Print "Python" from "tuple_nested" print("*" * 50) print(tuple_nested[1][0]) # Unpack tuple_groceries tuple and print them print("*" * 50) print("Unpacking...") g1, g2, g3, g4, g5, g6, g7, = tuple_groceries print(g1) print(g1) print(g2) print(g3) print(g4) print(g5) print(g6) print(g7) # Swap tuple_numbers and tuple_numbers_100s print("*" * 50) print("Swapping...") tuple_numbers, tuple_numbers_100s = tuple_numbers_100s, tuple_numbers print("tuple_numbers_100s :", tuple_numbers_100s) print("tuple_numbers :", tuple_numbers) # Construct a new tuple "tuples_a" by extracting # bananas, onions, spinach from tuples_groceries print("*" * 50) print("Subset items.... bananas, onions, spinach") tuples_a = tuple_groceries[1:4] print("tuples_a :", tuples_a) # Count the number of times coconuts is listed in groceries_inventory tuple print("*" * 50) print("Count the number of times coconuts...") coconut_count = groceries_inventory.count("coconuts") print("coconuts :", coconut_count)
tuple_numbers = (1, 2, 3, 4, 5) tuple_groceries = ('coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk') groceries_inventory = ('coconuts', 'tomatoes', 'onions', 'coconuts', 'bananas', 'onions', 'spinach', 'tomatoes', 'cilantro', 'milk', 'spinach', 'tomatoes', 'cilantro', 'tomatoes') tuple_nested = ((1, 2, 3), ['Python', 'Database', 'System'], 'Coding') tuple_numbers_100s = (100, 200, 300, 400, 500) print('*' * 50) print('The 3rd item of tuple_groceries :', tuple_groceries[2]) print('*' * 50) print('The length of tuple_groceries :', len(tuple_groceries)) print('*' * 50) tuple_groceries_rev = tuple(reversed(tuple_groceries)) print('Reverse of tuple_groceries :', tuple_groceries_rev) print('*' * 50) print(tuple_nested[1][0]) print('*' * 50) print('Unpacking...') (g1, g2, g3, g4, g5, g6, g7) = tuple_groceries print(g1) print(g1) print(g2) print(g3) print(g4) print(g5) print(g6) print(g7) print('*' * 50) print('Swapping...') (tuple_numbers, tuple_numbers_100s) = (tuple_numbers_100s, tuple_numbers) print('tuple_numbers_100s :', tuple_numbers_100s) print('tuple_numbers :', tuple_numbers) print('*' * 50) print('Subset items.... bananas, onions, spinach') tuples_a = tuple_groceries[1:4] print('tuples_a :', tuples_a) print('*' * 50) print('Count the number of times coconuts...') coconut_count = groceries_inventory.count('coconuts') print('coconuts :', coconut_count)
class Solution: def minMeetingRooms(self, intervals: list[list[int]]) -> int: start = sorted([i[0] for i in intervals]) end = sorted(i[1] for i in intervals) result = count = 0 s, e = 0, 0 while s < len(intervals): if start[s] < end[e]: s += 1 count += 1 else: e += 1 count -= 1 result = max(result, count) return result
class Solution: def min_meeting_rooms(self, intervals: list[list[int]]) -> int: start = sorted([i[0] for i in intervals]) end = sorted((i[1] for i in intervals)) result = count = 0 (s, e) = (0, 0) while s < len(intervals): if start[s] < end[e]: s += 1 count += 1 else: e += 1 count -= 1 result = max(result, count) return result
def sum_multidimensional_list_v1(lst): sum_nums = 0 for row in range(len(lst)): for col in range(len(lst[row])): sum_nums += lst[row][col] return sum_nums def sum_multidimensional_list_v2(lst): sum_nums = 0 for row in lst: for col in row: sum_nums += col return sum_nums
def sum_multidimensional_list_v1(lst): sum_nums = 0 for row in range(len(lst)): for col in range(len(lst[row])): sum_nums += lst[row][col] return sum_nums def sum_multidimensional_list_v2(lst): sum_nums = 0 for row in lst: for col in row: sum_nums += col return sum_nums
__version_info__ = ('3', '5', '1') __version__ = '.'.join(__version_info__) class TwilioException(Exception): pass class TwilioRestException(TwilioException): def __init__(self, status, uri, msg="", code=None): self.uri = uri self.status = status self.msg = msg self.code = code def __str__(self): return "HTTP ERROR %s: %s \n %s" % (self.status, self.msg, self.uri)
__version_info__ = ('3', '5', '1') __version__ = '.'.join(__version_info__) class Twilioexception(Exception): pass class Twiliorestexception(TwilioException): def __init__(self, status, uri, msg='', code=None): self.uri = uri self.status = status self.msg = msg self.code = code def __str__(self): return 'HTTP ERROR %s: %s \n %s' % (self.status, self.msg, self.uri)
###exercicio 50 s = 0 for c in range (0, 6): n = int(input('Digite um numero: ')) if n%2 == 0: s += n print ('{}'.format(s)) print ('Fim!!!')
s = 0 for c in range(0, 6): n = int(input('Digite um numero: ')) if n % 2 == 0: s += n print('{}'.format(s)) print('Fim!!!')
total = 0 for number in range(1, 10 + 1): print(number) total = total + number print(total)
total = 0 for number in range(1, 10 + 1): print(number) total = total + number print(total)
#Using the range function we create a list of numbers from 0 to 99 https://docs.python.org/2/library/functions.html#range #Each number in the list is FizzBuzz tested #If the number is a multiple of 3 and a multiple of 5 - print "FizzBuzz" #If the number is only a multiple of 3 - print "Fizz" #If the number is only a multiple of 5 - print "Buzz" #If the number is not a multiple of 3 or 5 - print the number for i in range (100): if i % 3 == 0 and i % 5 == 0: print("FizzBuzz") elif i % 3 == 0: print("Fizz") elif i % 5 == 0: print("Buzz") else: print(i)
for i in range(100): if i % 3 == 0 and i % 5 == 0: print('FizzBuzz') elif i % 3 == 0: print('Fizz') elif i % 5 == 0: print('Buzz') else: print(i)
class Foo: [mix_Case, var2] = range(2) def bar(): ''' >>> class Foo(): ... mix_Case = 0 ''' pass
class Foo: [mix__case, var2] = range(2) def bar(): """ >>> class Foo(): ... mix_Case = 0 """ pass
def print_to_file(file, cases): print(len(cases), file=file) for arr in cases: print(len(arr), file=file) print(*arr, file=file)
def print_to_file(file, cases): print(len(cases), file=file) for arr in cases: print(len(arr), file=file) print(*arr, file=file)
FEATURES = { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [-122.3141965, 47.6598870], [-122.3132940, 47.6598762], ], }, "properties": {}, }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [-122.3144401, 47.6598872], [-122.3141965, 47.6598870], ], }, "properties": {}, }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [-122.3141965, 47.6598870], [-122.3142026, 47.6597293], ], }, "properties": {}, }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [-122.3141795, 47.6605333], [-122.3141965, 47.6598870], ], }, "properties": {}, }, ], }
features = {'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'geometry': {'type': 'LineString', 'coordinates': [[-122.3141965, 47.659887], [-122.313294, 47.6598762]]}, 'properties': {}}, {'type': 'Feature', 'geometry': {'type': 'LineString', 'coordinates': [[-122.3144401, 47.6598872], [-122.3141965, 47.659887]]}, 'properties': {}}, {'type': 'Feature', 'geometry': {'type': 'LineString', 'coordinates': [[-122.3141965, 47.659887], [-122.3142026, 47.6597293]]}, 'properties': {}}, {'type': 'Feature', 'geometry': {'type': 'LineString', 'coordinates': [[-122.3141795, 47.6605333], [-122.3141965, 47.659887]]}, 'properties': {}}]}
# # Nidan # # (C) 2017 Michele <o-zone@zerozone.it> Pinassi class Config: pass
class Config: pass
def lazyproperty(fn): attr_name = '__' + fn.__name__ @property def _lazyprop(self): if not hasattr(self, attr_name): setattr(self, attr_name, fn(self)) return getattr(self, attr_name) return _lazyprop
def lazyproperty(fn): attr_name = '__' + fn.__name__ @property def _lazyprop(self): if not hasattr(self, attr_name): setattr(self, attr_name, fn(self)) return getattr(self, attr_name) return _lazyprop
stud = { 'Madhan':24, 'Raj':30, 'Narayanan':29 } for s1 in stud.keys(): print(s1) phone_numbers = {"John Smith": "+37682929928", "Marry Simpons": "+423998200919"} for key,value in phone_numbers.items(): print("{} has phone number {}".format(key,value)) names = { 'Girija':53, 'Subramanian':62, 'Narayanan':29, 'Gopal':65, 'Vijayam':65 } for n1 in names.keys(): print(n1) for n2 in names.values(): print(n2)
stud = {'Madhan': 24, 'Raj': 30, 'Narayanan': 29} for s1 in stud.keys(): print(s1) phone_numbers = {'John Smith': '+37682929928', 'Marry Simpons': '+423998200919'} for (key, value) in phone_numbers.items(): print('{} has phone number {}'.format(key, value)) names = {'Girija': 53, 'Subramanian': 62, 'Narayanan': 29, 'Gopal': 65, 'Vijayam': 65} for n1 in names.keys(): print(n1) for n2 in names.values(): print(n2)
# -*- coding: utf-8 -*- latest_posts = db(Posts).select(orderby=~Posts.created_on, limitby=(0,5)) most_liked = db(Posts).select(orderby=~Posts.likes, limitby=(0,5)) all_categories = db(Categories).select(limitby=(0,5))
latest_posts = db(Posts).select(orderby=~Posts.created_on, limitby=(0, 5)) most_liked = db(Posts).select(orderby=~Posts.likes, limitby=(0, 5)) all_categories = db(Categories).select(limitby=(0, 5))
spam = ['cat', 'bat', 'rat', 'elephant'] print(spam[2]) spam2 = [['fish', 'shark'], 'bat', 'rat', 'elephant'] print(spam2[0]) print(spam2[0][1]) spam[2:4] = ['CAT', 'MOOSE', 'BEAR'] print(spam) del spam[2] print(spam) print('MOOSE' in spam) # Iterate over lists by item or index for item in spam: print(item) for i in range(0, len(spam)): print(spam[i]) print(len(spam)) cat = ['fat', 'orange', 'loud'] size, color, disposition = cat print(size) print(color) print(disposition) # swap variables a = 'AAA' b = 'BBB' a, b = b, a print(a) print(b)
spam = ['cat', 'bat', 'rat', 'elephant'] print(spam[2]) spam2 = [['fish', 'shark'], 'bat', 'rat', 'elephant'] print(spam2[0]) print(spam2[0][1]) spam[2:4] = ['CAT', 'MOOSE', 'BEAR'] print(spam) del spam[2] print(spam) print('MOOSE' in spam) for item in spam: print(item) for i in range(0, len(spam)): print(spam[i]) print(len(spam)) cat = ['fat', 'orange', 'loud'] (size, color, disposition) = cat print(size) print(color) print(disposition) a = 'AAA' b = 'BBB' (a, b) = (b, a) print(a) print(b)
def pattern(n): if n==0: return "" res=[] for i in range(n-1): res.append(" "*(n-1)+str((i+1)%10)) temp="".join(str(i%10) for i in range(1, n)) res.append(temp+str(n%10)+temp[::-1]) for i in range(n-1, 0, -1): res.append(" "*(n-1)+str(i%10)) return "\n".join(res)+"\n"
def pattern(n): if n == 0: return '' res = [] for i in range(n - 1): res.append(' ' * (n - 1) + str((i + 1) % 10)) temp = ''.join((str(i % 10) for i in range(1, n))) res.append(temp + str(n % 10) + temp[::-1]) for i in range(n - 1, 0, -1): res.append(' ' * (n - 1) + str(i % 10)) return '\n'.join(res) + '\n'
class Config: gateId = 0 route = "" port = "COM3" def __init__(self, gateId, route): self.gateId=gateId self.route=route
class Config: gate_id = 0 route = '' port = 'COM3' def __init__(self, gateId, route): self.gateId = gateId self.route = route
# linked list class # class for "node" or in common terms "element" class Node: def __init__(self, data=None, next=None): self.data = data self.next = next class LinkedList: def __init__(self): self.head = None # points to the head of the linked list def insert_at_begining(self, data): # node with value of "data" and next element will be the head # we add the element to the beginning and set the "Next" argument to the previous head # this puts the current data to the beginning of the list. node = Node(data, self.head) # we then set the current node as the head. self.head = node def insert_at_end(self, data): # if linked list is empty set the current data to the head. if self.head is None: self.head = Node(data, None) return # iterate through the entire linked list # once we hit an itr that is None we know we're at the end # we then set that node to the current data then set the next element to None itr = self.head while itr.next: itr = itr.next itr.next = Node(data, None) # insert a list of values as a linked list def insert_values(self, data_list): self.head = None for data in data_list: self.insert_at_end(data) def get_length(self): count = 0 itr = self.head while itr: count += 1 itr = itr.next return count def remove_at(self, index): # if the index is less then 0 or greater than the count, its invalid if index < 0 or index >= self.get_length(): raise Exception('not valid index') # if index is 0 then just point the head to the next element. # python handles garbage if index==0: self.head = self.head.next # keep count of where we are count = 0 # start at the head itr = self.head # iter through linked list while itr: # if we reach the index BEFORE the index to drop move that index to the next.next # skipping the one we want to drop python garbage will clean. if count == index - 1: itr.next = itr.next.next break # if not n-1 count + 1 move to next. itr = itr.next count += 1 def insert_at(self, index, data): if index < 0 or index >= self.get_length(): raise Exception('invalid index') if index == 0: self.insert_at_begining(data) count = 0 itr = self.head while itr: if count == index - 1: node = Node(data,itr.next) itr.next = node break itr = itr.next count += 1 def insert_after_value(self, data_after, data_to_insert): # look for a value then insert after that value # use insert value? if self.head is None: return if self.head.data==data_after: self.head.next = Node(data_to_insert,self.head.next) return itr = self.head while itr: if itr.data == data_after: itr.next = Node(data_to_insert, itr.next) break itr = itr.next def remove_by_value(self, data_to_remove): if self.head is None: return if self.head.data == data_to_remove: self.head = self.head.next return itr = self.head while itr.next: if itr.next.data == data_to_remove: itr.next = itr.next.next break itr = itr.next # following links and print def print(self): # if the list is empty print nothing if self.head is None: print("list is empty") return # while itr is anything other than None, print it, else quit. itr = self.head linked_list = '' while itr: linked_list += str(itr.data) + ' --> ' itr = itr.next print(linked_list) if __name__ == '__main__': ll = LinkedList() ll.insert_values(["banana","mango","grapes","orange"]) ll.print() ll.insert_after_value("mango","apple") # insert apple after mango ll.print() ll.remove_by_value("orange") # remove orange from linked list ll.print() ll.remove_by_value("figs") ll.print() ll.remove_by_value("banana") ll.remove_by_value("mango") ll.remove_by_value("apple") ll.remove_by_value("grapes") ll.print()
class Node: def __init__(self, data=None, next=None): self.data = data self.next = next class Linkedlist: def __init__(self): self.head = None def insert_at_begining(self, data): node = node(data, self.head) self.head = node def insert_at_end(self, data): if self.head is None: self.head = node(data, None) return itr = self.head while itr.next: itr = itr.next itr.next = node(data, None) def insert_values(self, data_list): self.head = None for data in data_list: self.insert_at_end(data) def get_length(self): count = 0 itr = self.head while itr: count += 1 itr = itr.next return count def remove_at(self, index): if index < 0 or index >= self.get_length(): raise exception('not valid index') if index == 0: self.head = self.head.next count = 0 itr = self.head while itr: if count == index - 1: itr.next = itr.next.next break itr = itr.next count += 1 def insert_at(self, index, data): if index < 0 or index >= self.get_length(): raise exception('invalid index') if index == 0: self.insert_at_begining(data) count = 0 itr = self.head while itr: if count == index - 1: node = node(data, itr.next) itr.next = node break itr = itr.next count += 1 def insert_after_value(self, data_after, data_to_insert): if self.head is None: return if self.head.data == data_after: self.head.next = node(data_to_insert, self.head.next) return itr = self.head while itr: if itr.data == data_after: itr.next = node(data_to_insert, itr.next) break itr = itr.next def remove_by_value(self, data_to_remove): if self.head is None: return if self.head.data == data_to_remove: self.head = self.head.next return itr = self.head while itr.next: if itr.next.data == data_to_remove: itr.next = itr.next.next break itr = itr.next def print(self): if self.head is None: print('list is empty') return itr = self.head linked_list = '' while itr: linked_list += str(itr.data) + ' --> ' itr = itr.next print(linked_list) if __name__ == '__main__': ll = linked_list() ll.insert_values(['banana', 'mango', 'grapes', 'orange']) ll.print() ll.insert_after_value('mango', 'apple') ll.print() ll.remove_by_value('orange') ll.print() ll.remove_by_value('figs') ll.print() ll.remove_by_value('banana') ll.remove_by_value('mango') ll.remove_by_value('apple') ll.remove_by_value('grapes') ll.print()
n = int(input()) matrix = [list(map(int, input().split(" "))) for _ in range(n)] total = 0 for i in range(n): value = matrix[i][i] total += value print(total)
n = int(input()) matrix = [list(map(int, input().split(' '))) for _ in range(n)] total = 0 for i in range(n): value = matrix[i][i] total += value print(total)
PROBLEM_PID_MAX_LENGTH = 32 PROBLEM_TITLE_MAX_LENGTH = 128 PROBLEM_SECTION_MAX_LENGTH = 4096 PROBLEM_SAMPLE_MAX_LENGTH = 1024
problem_pid_max_length = 32 problem_title_max_length = 128 problem_section_max_length = 4096 problem_sample_max_length = 1024
__author__ = 'shukkkur' ''' https://codeforces.com/problemset/problem/200/B ''' n = int(input()) props = list(map(int, input().split())) total = sum([p/100 for p in props]) print((total/n)*100)
__author__ = 'shukkkur' '\nhttps://codeforces.com/problemset/problem/200/B\n' n = int(input()) props = list(map(int, input().split())) total = sum([p / 100 for p in props]) print(total / n * 100)
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def isPalindrome(self, head: ListNode) -> bool: prev = None curr = head length = 0 while curr: curr = curr.next length += 1 half = length // 2 curr = head for _ in range(half): next = curr.next curr.next = prev prev, curr = curr, next left = prev right = curr if length % 2 == 0 else curr.next while left and right: if left.val != right.val: return False left, right = left.next, right.next return True
class Solution: def is_palindrome(self, head: ListNode) -> bool: prev = None curr = head length = 0 while curr: curr = curr.next length += 1 half = length // 2 curr = head for _ in range(half): next = curr.next curr.next = prev (prev, curr) = (curr, next) left = prev right = curr if length % 2 == 0 else curr.next while left and right: if left.val != right.val: return False (left, right) = (left.next, right.next) return True
# Learn python - Full Course for Beginners [Tutorial] # https://www.youtube.com/watch?v=rfscVS0vtbw # freeCodeCamp.org # Course developed by Mike Dane. # Exercise: While Loop # Date: 30 Aug 2021 # A while loop is a structure that allows code to be executed multiple times until condition is false # a loop condition , loop guard, keep loop if true # while loop a powerful structure i = 1 while i <= 10: print(i) i += 1 # i = i + 1 python shorthand i +- 1 print("Done with loop") # Guessing Game - without limits secret_word = "giraffe" guess = "" while guess != secret_word: guess = input("Enter guess: ") print("You win!") # Guessing Game - introduce guess limits secret_word = "giraffe" guess = "" guess_count = 0 guess_limit = 3 out_of_guesses = False while guess != secret_word and not(out_of_guesses): if guess_count < guess_limit: guess = input("Enter guess: ") guess_count += 1 else: out_of_guesses = True if out_of_guesses: print("Out of Guesses, You Lose!") else: print("You win! Well Done!") # Guessing Game - I was playing with shaping the code differently secret_word = "giraffe" guess = "" guess_count = 0 guess_limit = 4 while guess != secret_word and guess_count < guess_limit: guess = input("Enter guess: ") guess_count += 1 if guess_count < guess_limit: print("Out of Guesses, You Lose!") else: print("You win! It took you " + str(guess_count) + " guesses. Well Done!")
i = 1 while i <= 10: print(i) i += 1 print('Done with loop') secret_word = 'giraffe' guess = '' while guess != secret_word: guess = input('Enter guess: ') print('You win!') secret_word = 'giraffe' guess = '' guess_count = 0 guess_limit = 3 out_of_guesses = False while guess != secret_word and (not out_of_guesses): if guess_count < guess_limit: guess = input('Enter guess: ') guess_count += 1 else: out_of_guesses = True if out_of_guesses: print('Out of Guesses, You Lose!') else: print('You win! Well Done!') secret_word = 'giraffe' guess = '' guess_count = 0 guess_limit = 4 while guess != secret_word and guess_count < guess_limit: guess = input('Enter guess: ') guess_count += 1 if guess_count < guess_limit: print('Out of Guesses, You Lose!') else: print('You win! It took you ' + str(guess_count) + ' guesses. Well Done!')
# 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 # self.right = right # self.right = right # self.right = right # self.right = right # self.right = right # self.right = right class Solution: def deleteNode(self, root: Optional[TreeNode], key: int) -> Optional[TreeNode]: if not root: return None left = root.left right = root.right if root.val == key: if right is None: root = left return root if left is None: root = right return root left_r = left while left_r.right: left_r = left_r.right left_r.right = right root = left return root if root.val > key: root.left = self.deleteNode(root.left, key) else: root.right = self.deleteNode(root.right, key) return root
class Solution: def delete_node(self, root: Optional[TreeNode], key: int) -> Optional[TreeNode]: if not root: return None left = root.left right = root.right if root.val == key: if right is None: root = left return root if left is None: root = right return root left_r = left while left_r.right: left_r = left_r.right left_r.right = right root = left return root if root.val > key: root.left = self.deleteNode(root.left, key) else: root.right = self.deleteNode(root.right, key) return root
def process(status): status_info = {} status_info['name'] = status.pos.name status_info['target'] = status.target return status_info
def process(status): status_info = {} status_info['name'] = status.pos.name status_info['target'] = status.target return status_info
__author__ = 'Ahmed Hani Ibrahim' class TextEncoder(object): @classmethod def encode(cls, categories): categories_matrix = [[0 for i in range(0, len(categories))] for j in range(0, len(categories))] true_index = 0 for i in range(0, len(categories)): categories[i][true_index] = categories[i] true_index += 1 return categories_matrix
__author__ = 'Ahmed Hani Ibrahim' class Textencoder(object): @classmethod def encode(cls, categories): categories_matrix = [[0 for i in range(0, len(categories))] for j in range(0, len(categories))] true_index = 0 for i in range(0, len(categories)): categories[i][true_index] = categories[i] true_index += 1 return categories_matrix
TRAIN_CONTAINERS = [ 'plate', 'cube_concave', 'table_top', 'bowl_small', 'tray', 'open_box', 'cube', 'torus', ] TEST_CONTAINERS = [ 'pan_tefal', 'marble_cube', 'basket', 'checkerboard_table', ] CONTAINER_CONFIGS = { 'plate': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.46, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11, }, 'cube_concave': { 'container_name': 'cube_concave', 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.06, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11, }, 'table_top': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.13, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.05, 'min_distance_from_object': 0.11, }, 'bowl_small': { 'container_position_low': (.5, 0.26, -.30), 'container_position_high': (.7, 0.26, -.30), 'container_position_default': (.50, 0.26, -.30), 'container_position_z': -0.35, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.07, 'min_distance_from_object': 0.11, }, 'tray': { 'container_position_low': (.5, 0.25, -.30), 'container_position_high': (.7, 0.25, -.30), 'container_position_default': (.5, 0.25, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.18, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11, }, 'open_box': { 'container_position_low': (.5, 0.23, -.30), 'container_position_high': (.7, 0.23, -.30), 'container_position_default': (.5, 0.23, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.1, 'container_position_z': -0.35, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11, }, 'pan_tefal': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.24, -.30), 'container_position_default': (.65, 0.23, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.4, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1, }, 'husky': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.13, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.10, }, 'marble_cube': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.60, 0.24, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.07, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.10, }, 'basket': { 'container_name': 'basket', 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.55, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 1.68, 'container_position_z': -0.37, 'place_success_height_threshold': -0.28, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11, }, 'checkerboard_table': { 'container_name': 'checkerboard_table', 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.08, 'container_position_z': -0.37, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.05, 'min_distance_from_object': 0.11, }, 'torus': { 'container_position_low': (.50, 0.22, -.30), 'container_position_high': (.70, 0.26, -.30), 'container_position_default': (.50, 0.22, -.30), 'container_orientation': (1, 1, 1, 1), 'container_scale': 0.15, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1, }, 'cube': { 'container_position_low': (.5, 0.22, -.30), 'container_position_high': (.7, 0.24, -.30), 'container_position_default': (.5, 0.22, -.30), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.05, 'container_position_z': -0.35, 'place_success_radius_threshold': 0.03, 'place_success_height_threshold': -0.23, 'min_distance_from_object': 0.1, } } TRAIN_OBJECTS = [ 'conic_cup', 'ball', 'sack_vase', 'fountain_vase', 'shed', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', # New objects: 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'double_l_faucet', 'toilet_bowl', 'pepsi_bottle', 'two_handled_vase', 'tongue_chair', 'oil_tanker', 'thick_wood_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'curved_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'teepee', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'baseball_cap', 'two_layered_lampshade', ] GRASP_TRAIN_OBJECTS = [ 'conic_cup', 'fountain_vase', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'toilet_bowl', 'pepsi_bottle', 'tongue_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'two_layered_lampshade', 'conic_bin', 'jar', 'bunsen_burner', 'long_vase', 'ringed_cup_oversized_base', 'aero_cylinder', ] PICK_PLACE_TRAIN_OBJECTS = [ 'conic_cup', 'fountain_vase', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'toilet_bowl', 'pepsi_bottle', 'tongue_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'two_layered_lampshade', 'conic_bin', 'jar', 'aero_cylinder', ] OBJECT_SCALINGS = { 'conic_cup': 0.6, 'ball': 1.0, 'sack_vase': 0.6, 'fountain_vase': 0.4, 'shed': 0.6, 'circular_table': 0.4, 'hex_deep_bowl': 0.4, 'smushed_dumbbell': 0.6, 'square_prism_bin': 0.7, 'narrow_tray': 0.35, # New objects: 'colunnade_top': 0.5, 'stalagcite_chunk': 0.6, 'bongo_drum_bowl': 0.5, 'pacifier_vase': 0.5, 'beehive_funnel': 0.6, 'crooked_lid_trash_can': 0.5, 'double_l_faucet': 0.6, 'toilet_bowl': 0.4, 'pepsi_bottle': 0.65, 'two_handled_vase': 0.45, 'tongue_chair': 0.5, 'oil_tanker': 1.0, 'thick_wood_chair': 0.4, 'modern_canoe': 0.9, 'pear_ringed_vase': 0.65, 'short_handle_cup': 0.5, 'curved_handle_cup': 0.5, 'bullet_vase': 0.6, 'glass_half_gallon': 0.6, 'flat_bottom_sack_vase': 0.5, 'teepee': 0.7, 'trapezoidal_bin': 0.4, 'vintage_canoe': 1.0, 'bathtub': 0.4, 'flowery_half_donut': 0.5, 't_cup': 0.5, 'cookie_circular_lidless_tin': 0.5, 'box_sofa': 0.4, 'baseball_cap': 0.5, 'two_layered_lampshade': 0.6, 'conic_bin': 0.4, 'jar': 0.8, 'gatorade': 0.7, 'bunsen_burner': 0.6, 'long_vase': 0.5, # New objects: 'ringed_cup_oversized_base': 0.5, 'square_rod_embellishment': 0.6, 'elliptical_capsule': 0.6, 'aero_cylinder': 0.5, 'grill_trash_can': 0.5, } TEST_OBJECTS = [ 'conic_bin', 'jar', 'gatorade', 'bunsen_burner', 'long_vase', # New objects: 'ringed_cup_oversized_base', 'square_rod_embellishment', 'elliptical_capsule', 'aero_cylinder', 'grill_trash_can', ] GRASP_TEST_OBJECTS = [ 'square_rod_embellishment', 'grill_trash_can', 'shed', 'sack_vase', 'two_handled_vase', 'thick_wood_chair', 'curved_handle_cup', 'baseball_cap', 'elliptical_capsule', ] PICK_PLACE_TEST_OBJECTS = [ 'square_rod_embellishment', 'grill_trash_can', 'shed', 'sack_vase', 'two_handled_vase', 'thick_wood_chair', 'curved_handle_cup', 'baseball_cap', 'elliptical_capsule', ] OBJECT_ORIENTATIONS = { 'conic_cup': (0, 0, 1, 0), 'ball': (0, 0, 1, 0), 'sack_vase': (0, 0.707, 0.707, 0), 'fountain_vase': (0, 0, 1, 0), 'shed': (0, 0, 1, 0), 'circular_table': (0, 0, 1, 0), 'hex_deep_bowl': (0, 0, 1, 0), 'smushed_dumbbell': (0, 0, 1, 0), 'square_prism_bin': (0, 0, 1, 0), 'narrow_tray': (0, 0, 1, 0), # New objects: 'colunnade_top': (0, 0, 1, 0), 'stalagcite_chunk': (0, 0, 1, 0), 'bongo_drum_bowl': (0, 0.707, 0.707, 0), 'pacifier_vase': (0, 0, 1, 1), 'beehive_funnel': (0, 0, 1, 0), 'crooked_lid_trash_can': (0, 0, 1, 0), 'double_l_faucet': (0, 0.707, 0, 0.707), 'toilet_bowl': (0, 0, 1, 0), 'pepsi_bottle': (0, 0, 1, 0), 'two_handled_vase': (0, 0, 1, 0), 'tongue_chair': (0, 0, 1, 0), 'oil_tanker': (0, 0, 0, 0), 'thick_wood_chair': (0, 0, 1, 0), 'modern_canoe': (0, 0.707, 0.707, 0), 'pear_ringed_vase': (0, 0, 1, 0), 'short_handle_cup': (0, 0, 1, 0), 'curved_handle_cup': (0, 0.707, 0.707, 0), 'bullet_vase': (0, 0, 1, 0), 'glass_half_gallon': (0, 0, 1, 0), 'flat_bottom_sack_vase': (0, 0, 1, 0), 'teepee': (0, 0, 1, 0), 'trapezoidal_bin': (0, 0, 1, 0), 'vintage_canoe': (0, 0.707, 0.707, 0), 'bathtub': (0, 0, 1, 0), 'flowery_half_donut': (0, 0.707, 0.707, 0), 't_cup': (0, 0.707, 0.707, 0), 'cookie_circular_lidless_tin': (0, 0, 1, 0), 'box_sofa': (0, 0, 1, 0), 'baseball_cap': (0, -0.707, 0.707, 0), 'two_layered_lampshade': (0, 0.707, 0.707, 0), 'conic_bin': (0, 0.707, 0.707, 0), 'jar': (0, 0.707, 0, 0.707), 'gatorade': (0, 0, 1, 0), 'bunsen_burner': (0, 0, 1, 0), 'long_vase': (0, 0, 1, 0), # New objects: 'ringed_cup_oversized_base': (0, 0.707, 0.707, 0), 'square_rod_embellishment': (0, 0, 1, 0), 'elliptical_capsule': (0.5, 0.5, 0.5, 0.5), 'aero_cylinder': (0, 0, 1, 0), 'grill_trash_can': (0, 0.707, 0.707, 0), } GRASP_OFFSETS = { 'bunsen_burner': (0, 0.01, 0.0), 'double_l_faucet': (0.01, 0.0, 0.0), 'pear_ringed_vase': (0.0, 0.01, 0.0), 'teepee': (0.0, 0.04, 0.0), 'long_vase': (0.0, 0.03, 0.0), 'ball': (0, 0, 0.0) }
train_containers = ['plate', 'cube_concave', 'table_top', 'bowl_small', 'tray', 'open_box', 'cube', 'torus'] test_containers = ['pan_tefal', 'marble_cube', 'basket', 'checkerboard_table'] container_configs = {'plate': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.46, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11}, 'cube_concave': {'container_name': 'cube_concave', 'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.06, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11}, 'table_top': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.13, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.05, 'min_distance_from_object': 0.11}, 'bowl_small': {'container_position_low': (0.5, 0.26, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.26, -0.3), 'container_position_z': -0.35, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.07, 'min_distance_from_object': 0.11}, 'tray': {'container_position_low': (0.5, 0.25, -0.3), 'container_position_high': (0.7, 0.25, -0.3), 'container_position_default': (0.5, 0.25, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.18, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11}, 'open_box': {'container_position_low': (0.5, 0.23, -0.3), 'container_position_high': (0.7, 0.23, -0.3), 'container_position_default': (0.5, 0.23, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.1, 'container_position_z': -0.35, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11}, 'pan_tefal': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.24, -0.3), 'container_position_default': (0.65, 0.23, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.4, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1}, 'husky': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.13, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1}, 'marble_cube': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.6, 0.24, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.07, 'container_position_z': -0.35, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1}, 'basket': {'container_name': 'basket', 'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.55, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 1.68, 'container_position_z': -0.37, 'place_success_height_threshold': -0.28, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.11}, 'checkerboard_table': {'container_name': 'checkerboard_table', 'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.08, 'container_position_z': -0.37, 'place_success_height_threshold': -0.23, 'place_success_radius_threshold': 0.05, 'min_distance_from_object': 0.11}, 'torus': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.26, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (1, 1, 1, 1), 'container_scale': 0.15, 'container_position_z': -0.37, 'place_success_height_threshold': -0.32, 'place_success_radius_threshold': 0.04, 'min_distance_from_object': 0.1}, 'cube': {'container_position_low': (0.5, 0.22, -0.3), 'container_position_high': (0.7, 0.24, -0.3), 'container_position_default': (0.5, 0.22, -0.3), 'container_orientation': (0, 0, 0.707107, 0.707107), 'container_scale': 0.05, 'container_position_z': -0.35, 'place_success_radius_threshold': 0.03, 'place_success_height_threshold': -0.23, 'min_distance_from_object': 0.1}} train_objects = ['conic_cup', 'ball', 'sack_vase', 'fountain_vase', 'shed', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'double_l_faucet', 'toilet_bowl', 'pepsi_bottle', 'two_handled_vase', 'tongue_chair', 'oil_tanker', 'thick_wood_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'curved_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'teepee', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'baseball_cap', 'two_layered_lampshade'] grasp_train_objects = ['conic_cup', 'fountain_vase', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'toilet_bowl', 'pepsi_bottle', 'tongue_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'two_layered_lampshade', 'conic_bin', 'jar', 'bunsen_burner', 'long_vase', 'ringed_cup_oversized_base', 'aero_cylinder'] pick_place_train_objects = ['conic_cup', 'fountain_vase', 'circular_table', 'hex_deep_bowl', 'smushed_dumbbell', 'square_prism_bin', 'narrow_tray', 'colunnade_top', 'stalagcite_chunk', 'bongo_drum_bowl', 'pacifier_vase', 'beehive_funnel', 'crooked_lid_trash_can', 'toilet_bowl', 'pepsi_bottle', 'tongue_chair', 'modern_canoe', 'pear_ringed_vase', 'short_handle_cup', 'bullet_vase', 'glass_half_gallon', 'flat_bottom_sack_vase', 'trapezoidal_bin', 'vintage_canoe', 'bathtub', 'flowery_half_donut', 't_cup', 'cookie_circular_lidless_tin', 'box_sofa', 'two_layered_lampshade', 'conic_bin', 'jar', 'aero_cylinder'] object_scalings = {'conic_cup': 0.6, 'ball': 1.0, 'sack_vase': 0.6, 'fountain_vase': 0.4, 'shed': 0.6, 'circular_table': 0.4, 'hex_deep_bowl': 0.4, 'smushed_dumbbell': 0.6, 'square_prism_bin': 0.7, 'narrow_tray': 0.35, 'colunnade_top': 0.5, 'stalagcite_chunk': 0.6, 'bongo_drum_bowl': 0.5, 'pacifier_vase': 0.5, 'beehive_funnel': 0.6, 'crooked_lid_trash_can': 0.5, 'double_l_faucet': 0.6, 'toilet_bowl': 0.4, 'pepsi_bottle': 0.65, 'two_handled_vase': 0.45, 'tongue_chair': 0.5, 'oil_tanker': 1.0, 'thick_wood_chair': 0.4, 'modern_canoe': 0.9, 'pear_ringed_vase': 0.65, 'short_handle_cup': 0.5, 'curved_handle_cup': 0.5, 'bullet_vase': 0.6, 'glass_half_gallon': 0.6, 'flat_bottom_sack_vase': 0.5, 'teepee': 0.7, 'trapezoidal_bin': 0.4, 'vintage_canoe': 1.0, 'bathtub': 0.4, 'flowery_half_donut': 0.5, 't_cup': 0.5, 'cookie_circular_lidless_tin': 0.5, 'box_sofa': 0.4, 'baseball_cap': 0.5, 'two_layered_lampshade': 0.6, 'conic_bin': 0.4, 'jar': 0.8, 'gatorade': 0.7, 'bunsen_burner': 0.6, 'long_vase': 0.5, 'ringed_cup_oversized_base': 0.5, 'square_rod_embellishment': 0.6, 'elliptical_capsule': 0.6, 'aero_cylinder': 0.5, 'grill_trash_can': 0.5} test_objects = ['conic_bin', 'jar', 'gatorade', 'bunsen_burner', 'long_vase', 'ringed_cup_oversized_base', 'square_rod_embellishment', 'elliptical_capsule', 'aero_cylinder', 'grill_trash_can'] grasp_test_objects = ['square_rod_embellishment', 'grill_trash_can', 'shed', 'sack_vase', 'two_handled_vase', 'thick_wood_chair', 'curved_handle_cup', 'baseball_cap', 'elliptical_capsule'] pick_place_test_objects = ['square_rod_embellishment', 'grill_trash_can', 'shed', 'sack_vase', 'two_handled_vase', 'thick_wood_chair', 'curved_handle_cup', 'baseball_cap', 'elliptical_capsule'] object_orientations = {'conic_cup': (0, 0, 1, 0), 'ball': (0, 0, 1, 0), 'sack_vase': (0, 0.707, 0.707, 0), 'fountain_vase': (0, 0, 1, 0), 'shed': (0, 0, 1, 0), 'circular_table': (0, 0, 1, 0), 'hex_deep_bowl': (0, 0, 1, 0), 'smushed_dumbbell': (0, 0, 1, 0), 'square_prism_bin': (0, 0, 1, 0), 'narrow_tray': (0, 0, 1, 0), 'colunnade_top': (0, 0, 1, 0), 'stalagcite_chunk': (0, 0, 1, 0), 'bongo_drum_bowl': (0, 0.707, 0.707, 0), 'pacifier_vase': (0, 0, 1, 1), 'beehive_funnel': (0, 0, 1, 0), 'crooked_lid_trash_can': (0, 0, 1, 0), 'double_l_faucet': (0, 0.707, 0, 0.707), 'toilet_bowl': (0, 0, 1, 0), 'pepsi_bottle': (0, 0, 1, 0), 'two_handled_vase': (0, 0, 1, 0), 'tongue_chair': (0, 0, 1, 0), 'oil_tanker': (0, 0, 0, 0), 'thick_wood_chair': (0, 0, 1, 0), 'modern_canoe': (0, 0.707, 0.707, 0), 'pear_ringed_vase': (0, 0, 1, 0), 'short_handle_cup': (0, 0, 1, 0), 'curved_handle_cup': (0, 0.707, 0.707, 0), 'bullet_vase': (0, 0, 1, 0), 'glass_half_gallon': (0, 0, 1, 0), 'flat_bottom_sack_vase': (0, 0, 1, 0), 'teepee': (0, 0, 1, 0), 'trapezoidal_bin': (0, 0, 1, 0), 'vintage_canoe': (0, 0.707, 0.707, 0), 'bathtub': (0, 0, 1, 0), 'flowery_half_donut': (0, 0.707, 0.707, 0), 't_cup': (0, 0.707, 0.707, 0), 'cookie_circular_lidless_tin': (0, 0, 1, 0), 'box_sofa': (0, 0, 1, 0), 'baseball_cap': (0, -0.707, 0.707, 0), 'two_layered_lampshade': (0, 0.707, 0.707, 0), 'conic_bin': (0, 0.707, 0.707, 0), 'jar': (0, 0.707, 0, 0.707), 'gatorade': (0, 0, 1, 0), 'bunsen_burner': (0, 0, 1, 0), 'long_vase': (0, 0, 1, 0), 'ringed_cup_oversized_base': (0, 0.707, 0.707, 0), 'square_rod_embellishment': (0, 0, 1, 0), 'elliptical_capsule': (0.5, 0.5, 0.5, 0.5), 'aero_cylinder': (0, 0, 1, 0), 'grill_trash_can': (0, 0.707, 0.707, 0)} grasp_offsets = {'bunsen_burner': (0, 0.01, 0.0), 'double_l_faucet': (0.01, 0.0, 0.0), 'pear_ringed_vase': (0.0, 0.01, 0.0), 'teepee': (0.0, 0.04, 0.0), 'long_vase': (0.0, 0.03, 0.0), 'ball': (0, 0, 0.0)}
# -*- coding: utf-8 -*- class Solution: def maxProfit(self, prices): minimum_price = float('inf') maximum_profit = 0 for price in prices: if price < minimum_price: minimum_price = price if price - minimum_price > maximum_profit: maximum_profit = price - minimum_price return maximum_profit if __name__ == '__main__': solution = Solution() assert 5 == solution.maxProfit([7, 1, 5, 3, 6, 4]) assert 0 == solution.maxProfit([7, 6, 4, 3, 1])
class Solution: def max_profit(self, prices): minimum_price = float('inf') maximum_profit = 0 for price in prices: if price < minimum_price: minimum_price = price if price - minimum_price > maximum_profit: maximum_profit = price - minimum_price return maximum_profit if __name__ == '__main__': solution = solution() assert 5 == solution.maxProfit([7, 1, 5, 3, 6, 4]) assert 0 == solution.maxProfit([7, 6, 4, 3, 1])
# Program : Find the number of vowels in the string. # Input : string = "Nature" # Output : 3 # Explanation : The string "Nature" has 3 vowels in it, ie, 'a', 'u' and 'e'. # Language : Python3 # O(n) time | O(1) space def length_of_string(number): # Initialize the vowel list. vowels = ["a", "e", "i", "o", "u"] # Intialize the count as zero. count = 0 # Do for each character in the string. for ch in string: # If the current character is in the vowel list, then increment the count by 1. if ch in vowels: count = count + 1 # Return the count. return count # Main function. if __name__ == '__main__': # Declare the string. string = "Nature" # Find the count of vowels in the string and store the result in the answer variable. answer = length_of_string(string) # Print the answer. print(answer)
def length_of_string(number): vowels = ['a', 'e', 'i', 'o', 'u'] count = 0 for ch in string: if ch in vowels: count = count + 1 return count if __name__ == '__main__': string = 'Nature' answer = length_of_string(string) print(answer)
def reverse_integer(n): reversed = 0 remainder = 0 while n > 0: remainder = n % 10 reversed = reversed * 10 + remainder n = n // 10 return reversed if __name__ == "__main__": print(reverse_integer(12345))
def reverse_integer(n): reversed = 0 remainder = 0 while n > 0: remainder = n % 10 reversed = reversed * 10 + remainder n = n // 10 return reversed if __name__ == '__main__': print(reverse_integer(12345))
class Student: def __init__(self, name, age, grade): self.name = name self.age = age self.grade = grade # between 0 - 100 def get_grade(self): return self.grade class Course: def __init__(self, name, max_students): self.name = name self.max_students = max_students self.students = [] def add_student(self, student): if len(self.students) < self.max_students: self.students.append(student) return True return False def get_average_grade(self): value = 0 for student in self.students: value += student.get_grade() return value / len(self.students) s1 = Student('Tim', 19, 95) s2 = Student('Bill', 19, 75) s3 = Student('Jill', 19, 65) course = Course('Science', 2) course.add_student(s1) course.add_student(s2) print(course.add_student(s3)) print(course.get_average_grade())
class Student: def __init__(self, name, age, grade): self.name = name self.age = age self.grade = grade def get_grade(self): return self.grade class Course: def __init__(self, name, max_students): self.name = name self.max_students = max_students self.students = [] def add_student(self, student): if len(self.students) < self.max_students: self.students.append(student) return True return False def get_average_grade(self): value = 0 for student in self.students: value += student.get_grade() return value / len(self.students) s1 = student('Tim', 19, 95) s2 = student('Bill', 19, 75) s3 = student('Jill', 19, 65) course = course('Science', 2) course.add_student(s1) course.add_student(s2) print(course.add_student(s3)) print(course.get_average_grade())
class IRobotCreateError(Exception): def __init__(self, errorCode = 0, errorMsg = ""): self.errorCode = errorCode self.errorMsg = errorMsg # self.super() class ErrorCode(): SerialPortNotFound = 1 SerialConnectionTimeout = 2 ConfigFileError = 3 ConfigFileCorrupted = 4 ValueOutOfRange = 5
class Irobotcreateerror(Exception): def __init__(self, errorCode=0, errorMsg=''): self.errorCode = errorCode self.errorMsg = errorMsg class Errorcode: serial_port_not_found = 1 serial_connection_timeout = 2 config_file_error = 3 config_file_corrupted = 4 value_out_of_range = 5
t=0.0 dt=0.05 cx=0 cy=0 r=180 rs=[(x+2)*1.1 for x in range(500)] dr=-1 wiperon=True sopa=255 wopa=40 sc=[255,255,255] wc=[0,0,0] fpd=10 def setup(): global cx,cy size(1280,720) background(0) stroke(sc[0],sc[1],sc[2],sopa) cx=width/2 cy=height/2 def wipe(): fill(wc[0],wc[1],wc[2],wopa) rect(0,0,width,height) def iter(n): global t,dt,r,dr for i in range(n): for idx,ri in enumerate(rs): coeff=log(ri) sopa=constrain(128+100*sin(0.10*t),10,255) stroke(sc[0],sc[1],sc[2],sopa) x=cx+ri*cos(coeff*t) y=cy-ri*sin(coeff*t) point(x,y) t+=dt if wiperon: wipe() def draw(): iter(fpd) def keyPressed(): global wiperon,sopa,sc if key=='q': print('exiting...') exit() elif key=='b': sc=[0,0,0,sopa] elif key=='w': sc=[255,255,255,sopa] elif key=='.': wiperon=not wiperon elif key=='o': sopa=128 if sopa==16 else 16 stroke(sc[0],sc[1],sc[2],sopa) def mouseClicked(): global fpd fpd=constrain(mouseX,1,60)
t = 0.0 dt = 0.05 cx = 0 cy = 0 r = 180 rs = [(x + 2) * 1.1 for x in range(500)] dr = -1 wiperon = True sopa = 255 wopa = 40 sc = [255, 255, 255] wc = [0, 0, 0] fpd = 10 def setup(): global cx, cy size(1280, 720) background(0) stroke(sc[0], sc[1], sc[2], sopa) cx = width / 2 cy = height / 2 def wipe(): fill(wc[0], wc[1], wc[2], wopa) rect(0, 0, width, height) def iter(n): global t, dt, r, dr for i in range(n): for (idx, ri) in enumerate(rs): coeff = log(ri) sopa = constrain(128 + 100 * sin(0.1 * t), 10, 255) stroke(sc[0], sc[1], sc[2], sopa) x = cx + ri * cos(coeff * t) y = cy - ri * sin(coeff * t) point(x, y) t += dt if wiperon: wipe() def draw(): iter(fpd) def key_pressed(): global wiperon, sopa, sc if key == 'q': print('exiting...') exit() elif key == 'b': sc = [0, 0, 0, sopa] elif key == 'w': sc = [255, 255, 255, sopa] elif key == '.': wiperon = not wiperon elif key == 'o': sopa = 128 if sopa == 16 else 16 stroke(sc[0], sc[1], sc[2], sopa) def mouse_clicked(): global fpd fpd = constrain(mouseX, 1, 60)
with open('multiplos4.txt', 'w') as multiplos: pares = open('pares.txt') for l in pares.readlines(): num = l.replace('\n', '') if int(num) % 4 == 0: multiplos.write(f'{num}\n')
with open('multiplos4.txt', 'w') as multiplos: pares = open('pares.txt') for l in pares.readlines(): num = l.replace('\n', '') if int(num) % 4 == 0: multiplos.write(f'{num}\n')
class BaseSecretEngine: def __init__(self, config_d): self.name = config_d['secret_engine_name'] self.default = config_d.get("default", False) def encrypt(self, data, **context): raise NotImplementedError def decrypt(self, data, **context): raise NotImplementedError
class Basesecretengine: def __init__(self, config_d): self.name = config_d['secret_engine_name'] self.default = config_d.get('default', False) def encrypt(self, data, **context): raise NotImplementedError def decrypt(self, data, **context): raise NotImplementedError
n,k,*x=map(int,open(0).read().split()) def distance(l,r): return min( abs(l)+abs(r-l), abs(r)+abs(r-l)) a=[] for i in range(n-k+1): a.append(distance(x[i],x[i+k-1])) print(min(a))
(n, k, *x) = map(int, open(0).read().split()) def distance(l, r): return min(abs(l) + abs(r - l), abs(r) + abs(r - l)) a = [] for i in range(n - k + 1): a.append(distance(x[i], x[i + k - 1])) print(min(a))
# plot a KDE for each attribute def plot_single_kde(data, attr): data[[attr]].plot.kde(figsize=(4,2), legend=None) ax = plt.gca() ax.set_xlim([data[attr].min(), data[attr].max()]) ax.set_xlabel(attr, fontsize=14) ax.set_ylabel('Density', fontsize=14) for attr in data.columns: plot_single_kde(data, attr)
def plot_single_kde(data, attr): data[[attr]].plot.kde(figsize=(4, 2), legend=None) ax = plt.gca() ax.set_xlim([data[attr].min(), data[attr].max()]) ax.set_xlabel(attr, fontsize=14) ax.set_ylabel('Density', fontsize=14) for attr in data.columns: plot_single_kde(data, attr)
# Solution # O(n) time / O(n) space def sunsetViews(buildings, direction): buildingsWithSunsetViews = [] startIdx = 0 if direction == "WEST" else len(buildings) - 1 step = 1 if direction == "WEST" else - 1 idx = startIdx runningMaxHeight = 0 while idx >= 0 and idx < len(buildings): buildingHeight = buildings[idx] if buildingHeight > runningMaxHeight: buildingsWithSunsetViews.append(idx) runningMaxHeight = max(runningMaxHeight, buildingHeight) idx += step if direction == "EAST": return buildingsWithSunsetViews[::-1] return buildingsWithSunsetViews # Solution # O(n) time / O(n) space def sunsetViews(buildings, direction): candidateBuildings = [] startIdx = 0 if direction == "EAST" else len(buildings) - 1 step = 1 if direction == "EAST" else -1 idx = startIdx while idx >= 0 and idx < len(buildings): buildingHeight = buildings[idx] while len(candidateBuildings) > 0 and buildings[candidateBuildings[-1]] <= buildingHeight: candidateBuildings.pop() candidateBuildings.append(idx) idx += step if direction == "WEST": return candidateBuildings[::-1] return candidateBuildings
def sunset_views(buildings, direction): buildings_with_sunset_views = [] start_idx = 0 if direction == 'WEST' else len(buildings) - 1 step = 1 if direction == 'WEST' else -1 idx = startIdx running_max_height = 0 while idx >= 0 and idx < len(buildings): building_height = buildings[idx] if buildingHeight > runningMaxHeight: buildingsWithSunsetViews.append(idx) running_max_height = max(runningMaxHeight, buildingHeight) idx += step if direction == 'EAST': return buildingsWithSunsetViews[::-1] return buildingsWithSunsetViews def sunset_views(buildings, direction): candidate_buildings = [] start_idx = 0 if direction == 'EAST' else len(buildings) - 1 step = 1 if direction == 'EAST' else -1 idx = startIdx while idx >= 0 and idx < len(buildings): building_height = buildings[idx] while len(candidateBuildings) > 0 and buildings[candidateBuildings[-1]] <= buildingHeight: candidateBuildings.pop() candidateBuildings.append(idx) idx += step if direction == 'WEST': return candidateBuildings[::-1] return candidateBuildings
N=int(input()) M,K=list(map(int,input().split())) L = list(map(int,input().split())) L.sort(reverse = True) S = M*K for i,j in enumerate(L): S -= j if S<=0: print(i+1) break else: print("STRESS")
n = int(input()) (m, k) = list(map(int, input().split())) l = list(map(int, input().split())) L.sort(reverse=True) s = M * K for (i, j) in enumerate(L): s -= j if S <= 0: print(i + 1) break else: print('STRESS')
#!/usr/bin/env python3 while True: n = int(input("Please enter an Integer: ")) if n < 0: continue #there will retrun while running elif n == 0: break print("Square is ", n ** 2) print("Goodbye")
while True: n = int(input('Please enter an Integer: ')) if n < 0: continue elif n == 0: break print('Square is ', n ** 2) print('Goodbye')
class Bucket(): '''Utility class for Manber-Myers algorithm.''' def __init__(self,prefix,stringT): self.prefix = prefix # one or more letters self.stringT = stringT # needed for shortcut sort self.suffixes = [] # array of int def __str__(self): viz = "" viz = viz + str(self.prefix) viz = viz + " " viz = viz + str(self.suffixes) return (viz) def get_prefix(self): return self.prefix def add_suffix(self,index): self.suffixes.append(index) def get_suffixes(self): return self.suffixes def sort_suffixes_shortcut(self): self.suffixes.sort(key=self.get_suffix_string) def get_suffix_string(self,i): offset = i - 1 suffix_string = self.stringT[offset:] return suffix_string
class Bucket: """Utility class for Manber-Myers algorithm.""" def __init__(self, prefix, stringT): self.prefix = prefix self.stringT = stringT self.suffixes = [] def __str__(self): viz = '' viz = viz + str(self.prefix) viz = viz + ' ' viz = viz + str(self.suffixes) return viz def get_prefix(self): return self.prefix def add_suffix(self, index): self.suffixes.append(index) def get_suffixes(self): return self.suffixes def sort_suffixes_shortcut(self): self.suffixes.sort(key=self.get_suffix_string) def get_suffix_string(self, i): offset = i - 1 suffix_string = self.stringT[offset:] return suffix_string
arr = [9, 5, 1, 4, 0, 7] def quick_sort_v1(arr, l, r): if l >= r: return x = l y = r base = arr[l] while x <= y: while x <= y and arr[y] > base: y = y - 1 while x <= y and arr[y] < base: x = x + 1 if x <= y: arr[y], arr[x] = arr[x], arr[y] x = x + 1 y = y + 1 quick_sort_v1(arr, l, y) quick_sort_v1(arr, x, r) quick_sort_v1(arr, 0, 5)
arr = [9, 5, 1, 4, 0, 7] def quick_sort_v1(arr, l, r): if l >= r: return x = l y = r base = arr[l] while x <= y: while x <= y and arr[y] > base: y = y - 1 while x <= y and arr[y] < base: x = x + 1 if x <= y: (arr[y], arr[x]) = (arr[x], arr[y]) x = x + 1 y = y + 1 quick_sort_v1(arr, l, y) quick_sort_v1(arr, x, r) quick_sort_v1(arr, 0, 5)
schema = [ { "attributes": { "L": [ { "M": { "attr_name": { "S": "wave_name" }, "attr_type": { "S": "wave" } } }, { "M": { "attr_name": { "S": "wave_status" }, "attr_type": { "S": "wave" } } }, { "M": { "attr_name": { "S": "wave_start_time" }, "attr_type": { "S": "wave" } } }, { "M": { "attr_name": { "S": "wave_end_time" }, "attr_type": { "S": "wave" } } }, { "M": { "attr_name": { "S": "app_name" }, "attr_type": { "S": "app" } } }, { "M": { "attr_name": { "S": "wave_id" }, "attr_type": { "S": "app" } } }, { "M": { "attr_name": { "S": "cloudendure_projectname" }, "attr_type": { "S": "app" } } }, { "M": { "attr_name": { "S": "aws_accountid" }, "attr_type": { "S": "app" } } }, { "M": { "attr_name": { "S": "aws_region" }, "attr_type": { "S": "app" } } }, { "M": { "attr_name": { "S": "app_id" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "server_fqdn" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "server_os_family" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "server_os_version" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "server_tier" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "server_environment" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "instanceType" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "iamRole" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "private_ip" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "tenancy" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "subnet_IDs_test" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "securitygroup_IDs_test" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "subnet_IDs" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "securitygroup_IDs" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "tags" }, "attr_type": { "S": "server" } } } ] }, "stage_id": { "S": "1" }, "stage_name": { "S": "Pre-migration" } }, { "attributes": { "L": [ { "M": { "attr_name": { "S": "wave_id" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "cloudendure_projectname" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "aws_accountid" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "migration_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "replication_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } } ] }, "stage_id": { "S": "2" }, "stage_name": { "S": "Build" } }, { "attributes": { "L": [ { "M": { "attr_name": { "S": "wave_id" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "cloudendure_projectname" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "aws_accountid" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "migration_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "replication_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } } ] }, "stage_id": { "S": "3" }, "stage_name": { "S": "Validate" } }, { "attributes": { "L": [ { "M": { "attr_name": { "S": "wave_id" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "cloudendure_projectname" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "aws_accountid" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "replication_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "migration_status" }, "attr_type": { "S": "server" }, "read_only": { "BOOL": True } } } ] }, "stage_id": { "S": "4" }, "stage_name": { "S": "Boot up testing" } }, { "attributes": { "L": [ { "M": { "attr_name": { "S": "wave_id" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "cloudendure_projectname" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "aws_accountid" }, "attr_type": { "S": "app" }, "read_only": { "BOOL": True } } }, { "M": { "attr_name": { "S": "migration_status" }, "attr_type": { "S": "server" } } }, { "M": { "attr_name": { "S": "replication_status" }, "attr_type": { "S": "server" } } } ] }, "stage_id": { "S": "5" }, "stage_name": { "S": "Cutover" } } ]
schema = [{'attributes': {'L': [{'M': {'attr_name': {'S': 'wave_name'}, 'attr_type': {'S': 'wave'}}}, {'M': {'attr_name': {'S': 'wave_status'}, 'attr_type': {'S': 'wave'}}}, {'M': {'attr_name': {'S': 'wave_start_time'}, 'attr_type': {'S': 'wave'}}}, {'M': {'attr_name': {'S': 'wave_end_time'}, 'attr_type': {'S': 'wave'}}}, {'M': {'attr_name': {'S': 'app_name'}, 'attr_type': {'S': 'app'}}}, {'M': {'attr_name': {'S': 'wave_id'}, 'attr_type': {'S': 'app'}}}, {'M': {'attr_name': {'S': 'cloudendure_projectname'}, 'attr_type': {'S': 'app'}}}, {'M': {'attr_name': {'S': 'aws_accountid'}, 'attr_type': {'S': 'app'}}}, {'M': {'attr_name': {'S': 'aws_region'}, 'attr_type': {'S': 'app'}}}, {'M': {'attr_name': {'S': 'app_id'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'server_fqdn'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'server_os_family'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'server_os_version'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'server_tier'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'server_environment'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'instanceType'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'iamRole'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'private_ip'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'tenancy'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'subnet_IDs_test'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'securitygroup_IDs_test'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'subnet_IDs'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'securitygroup_IDs'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'tags'}, 'attr_type': {'S': 'server'}}}]}, 'stage_id': {'S': '1'}, 'stage_name': {'S': 'Pre-migration'}}, {'attributes': {'L': [{'M': {'attr_name': {'S': 'wave_id'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'cloudendure_projectname'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'aws_accountid'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'migration_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'replication_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}]}, 'stage_id': {'S': '2'}, 'stage_name': {'S': 'Build'}}, {'attributes': {'L': [{'M': {'attr_name': {'S': 'wave_id'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'cloudendure_projectname'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'aws_accountid'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'migration_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'replication_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}]}, 'stage_id': {'S': '3'}, 'stage_name': {'S': 'Validate'}}, {'attributes': {'L': [{'M': {'attr_name': {'S': 'wave_id'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'cloudendure_projectname'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'aws_accountid'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'replication_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'migration_status'}, 'attr_type': {'S': 'server'}, 'read_only': {'BOOL': True}}}]}, 'stage_id': {'S': '4'}, 'stage_name': {'S': 'Boot up testing'}}, {'attributes': {'L': [{'M': {'attr_name': {'S': 'wave_id'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'cloudendure_projectname'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'aws_accountid'}, 'attr_type': {'S': 'app'}, 'read_only': {'BOOL': True}}}, {'M': {'attr_name': {'S': 'migration_status'}, 'attr_type': {'S': 'server'}}}, {'M': {'attr_name': {'S': 'replication_status'}, 'attr_type': {'S': 'server'}}}]}, 'stage_id': {'S': '5'}, 'stage_name': {'S': 'Cutover'}}]
print ("Enter a value" ) a = int (input()) print ("Enter b value" ) b = int (input()) print ("value of a is",a) print ("value of b is",b) print ("value of a+b value is", a+b) print ("value of a-b value is", a-b) print ("value of a*b value is", a*b) print ("value of a/b value is", a/b)
print('Enter a value') a = int(input()) print('Enter b value') b = int(input()) print('value of a is', a) print('value of b is', b) print('value of a+b value is', a + b) print('value of a-b value is', a - b) print('value of a*b value is', a * b) print('value of a/b value is', a / b)
i = 0 while (i < 50): print(i) i = i + 1
i = 0 while i < 50: print(i) i = i + 1
for i in range(int(input())): n,base=input().split() base=str(base) aux=0 print("Case %d:"%(i+1)) if base=="bin": aux=int(n, 2) print("%d dec"%aux) aux=hex(aux).replace('0x','') print("%s hex"%aux) elif base=="dec": n=int(n) aux=hex(n).replace('0x','') print("%s hex"%aux) aux=bin(n).replace('0b','') print("%s bin"%aux) elif base=="hex": aux=int(n, 16) print("%d dec"%aux) aux=bin(aux).replace('0b','') print("%s bin"%aux) print()
for i in range(int(input())): (n, base) = input().split() base = str(base) aux = 0 print('Case %d:' % (i + 1)) if base == 'bin': aux = int(n, 2) print('%d dec' % aux) aux = hex(aux).replace('0x', '') print('%s hex' % aux) elif base == 'dec': n = int(n) aux = hex(n).replace('0x', '') print('%s hex' % aux) aux = bin(n).replace('0b', '') print('%s bin' % aux) elif base == 'hex': aux = int(n, 16) print('%d dec' % aux) aux = bin(aux).replace('0b', '') print('%s bin' % aux) print()
DATABASES = { 'postgresql_db': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'quickdb', 'USER': 'sonarsource', 'PASSWORD': '1234', # Noncompliant 'HOST': 'localhost', 'PORT': '5432' } }
databases = {'postgresql_db': {'ENGINE': 'django.db.backends.postgresql', 'NAME': 'quickdb', 'USER': 'sonarsource', 'PASSWORD': '1234', 'HOST': 'localhost', 'PORT': '5432'}}
class Solution: def partition(self, s: str) -> List[List[str]]: def is_palindrome(s:str): if s == s[::-1]: return True else: return False path = [] res = [] size = len(s) def backtracking(s, start): nonlocal path, res, size if start > size - 1 and path: res.append(path[:]) return for i in range(start, size): if is_palindrome(s[start:i+1]): path.append(s[start:i+1]) backtracking(s, i+1) path.pop() backtracking(s, 0) if size == 0: return [] else: return res
class Solution: def partition(self, s: str) -> List[List[str]]: def is_palindrome(s: str): if s == s[::-1]: return True else: return False path = [] res = [] size = len(s) def backtracking(s, start): nonlocal path, res, size if start > size - 1 and path: res.append(path[:]) return for i in range(start, size): if is_palindrome(s[start:i + 1]): path.append(s[start:i + 1]) backtracking(s, i + 1) path.pop() backtracking(s, 0) if size == 0: return [] else: return res
# O(n) time and space where n is number of chars def get_longest_unique_substring(s): start_index = 0 end_index = 0 answer = 0 char_to_position = {} for i,let in enumerate(s): if let not in char_to_position: char_to_position[let] = i elif char_to_position[let] >= start_index: start_index = char_to_position[let] + 1 char_to_position[let] = i else: char_to_position[let] = i end_index += 1 if end_index - start_index > answer: answer = end_index - start_index return answer
def get_longest_unique_substring(s): start_index = 0 end_index = 0 answer = 0 char_to_position = {} for (i, let) in enumerate(s): if let not in char_to_position: char_to_position[let] = i elif char_to_position[let] >= start_index: start_index = char_to_position[let] + 1 char_to_position[let] = i else: char_to_position[let] = i end_index += 1 if end_index - start_index > answer: answer = end_index - start_index return answer
#How to reverse a number num = int(input("Enter the number : ")) rev_num = 0 while(num>0): #logic rem = num%10 rev_num= (rev_num*10)+rem num = num//10 print("Result : ",rev_num)
num = int(input('Enter the number : ')) rev_num = 0 while num > 0: rem = num % 10 rev_num = rev_num * 10 + rem num = num // 10 print('Result : ', rev_num)
expected_output = { "program": { "auto_ip_ring": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1156", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "bfd": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1158", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "bgp": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1051", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", }, "test": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "Group_10_bgp2", "jid": "1052", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", }, "test1": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "Group_5_bgp3", "jid": "1053", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", }, "test2": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "Group_5_bgp4", "jid": "1054", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", }, } }, "bgp_epe": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1159", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "bpm": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1066", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "bundlemgr_distrib": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1157", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "domain_services": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1160", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "es_acl_mgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1169", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "eth_gl_cfg": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1151", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ethernet_stats_controller_edm": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1161", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ftp_fs": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1162", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "icpe_satmgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1163", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "igmp": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1208", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "intf_mgbl": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1143", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_connected": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1152", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_local": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1153", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_mfwd_ma": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1204", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_mpa": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1149", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_rib": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1146", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_rump": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1167", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv4_static": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1043", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_connected": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v6-routing", "jid": "1154", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_local": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v6-routing", "jid": "1155", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_mfwd_ma": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1205", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_mpa": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1150", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_rib": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v6-routing", "jid": "1147", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ipv6_rump": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v6-routing", "jid": "1168", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "l2tp_mgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1176", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "l2vpn_mgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1175", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "mld": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1209", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "mpls_ldp": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1199", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "mpls_static": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1142", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "mrib": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1206", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "mrib6": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1207", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "netconf": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1189", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "nfmgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1145", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ospf": { "instance": { "1": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1018", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ospf_uv": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1114", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "pbr_ma": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1171", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "pim": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1210", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "pim6": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "mcast-routing", "jid": "1211", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "policy_repository": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1148", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "python_process_manager": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1164", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "qos_ma": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1172", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "rcp_fs": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1165", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "rt_check_mgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "v4-routing", "jid": "1170", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "schema_server": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1177", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "snmppingd": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1195", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "spa_cfg_hlpr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1130", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ssh_conf_verifier": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1183", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "ssh_server": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1184", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "statsd_manager_g": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "netmgmt", "jid": "1144", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "telemetry_encoder": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1194", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "tty_verifyd": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1166", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "vservice_mgr": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1173", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "wanphy_proc": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1178", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, "xtc_agent": { "instance": { "default": { "active": "0/RSP1/CPU0", "active_state": "RUNNING", "group": "central-services", "jid": "1174", "standby": "0/RSP0/CPU0", "standby_state": "RUNNING", } } }, } }
expected_output = {'program': {'auto_ip_ring': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1156', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'bfd': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1158', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'bgp': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1051', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}, 'test': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'Group_10_bgp2', 'jid': '1052', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}, 'test1': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'Group_5_bgp3', 'jid': '1053', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}, 'test2': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'Group_5_bgp4', 'jid': '1054', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'bgp_epe': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1159', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'bpm': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1066', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'bundlemgr_distrib': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1157', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'domain_services': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1160', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'es_acl_mgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1169', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'eth_gl_cfg': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1151', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ethernet_stats_controller_edm': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1161', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ftp_fs': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1162', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'icpe_satmgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1163', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'igmp': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1208', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'intf_mgbl': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1143', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_connected': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1152', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_local': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1153', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_mfwd_ma': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1204', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_mpa': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1149', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_rib': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1146', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_rump': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1167', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv4_static': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1043', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_connected': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v6-routing', 'jid': '1154', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_local': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v6-routing', 'jid': '1155', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_mfwd_ma': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1205', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_mpa': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1150', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_rib': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v6-routing', 'jid': '1147', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ipv6_rump': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v6-routing', 'jid': '1168', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'l2tp_mgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1176', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'l2vpn_mgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1175', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'mld': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1209', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'mpls_ldp': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1199', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'mpls_static': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1142', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'mrib': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1206', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'mrib6': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1207', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'netconf': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1189', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'nfmgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1145', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ospf': {'instance': {'1': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1018', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ospf_uv': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1114', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'pbr_ma': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1171', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'pim': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1210', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'pim6': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'mcast-routing', 'jid': '1211', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'policy_repository': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1148', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'python_process_manager': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1164', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'qos_ma': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1172', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'rcp_fs': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1165', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'rt_check_mgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'v4-routing', 'jid': '1170', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'schema_server': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1177', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'snmppingd': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1195', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'spa_cfg_hlpr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1130', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ssh_conf_verifier': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1183', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'ssh_server': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1184', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'statsd_manager_g': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'netmgmt', 'jid': '1144', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'telemetry_encoder': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1194', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'tty_verifyd': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1166', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'vservice_mgr': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1173', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'wanphy_proc': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1178', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}, 'xtc_agent': {'instance': {'default': {'active': '0/RSP1/CPU0', 'active_state': 'RUNNING', 'group': 'central-services', 'jid': '1174', 'standby': '0/RSP0/CPU0', 'standby_state': 'RUNNING'}}}}}
name = input("Please enter your first name: ") age = int(input("How old are you, {0}? ".format(name))) print(age) # if age >= 18: # print("You are old enough to vote") # print("Please put an X in the box") # else: # print("Please come back in {0} years".format(18-age)) if age < 18: print("Please come back in {0} years".format(18-age)) elif age == 900: print("Sorry, Yoda you die in Return of the Jedi") else: print("You are old enough to vote") print("Please put an X in the box")
name = input('Please enter your first name: ') age = int(input('How old are you, {0}? '.format(name))) print(age) if age < 18: print('Please come back in {0} years'.format(18 - age)) elif age == 900: print('Sorry, Yoda you die in Return of the Jedi') else: print('You are old enough to vote') print('Please put an X in the box')
states_of_america = ["Delware","Pennsylvanai","Mary land","Texas","New Jersey"] print(states_of_america[0]) # Be careful for index out of range error print(states_of_america[-1]) states_of_america.append("Hawaii") print(states_of_america) states_of_america.extend(["Rakshith","Dheer"]) print(states_of_america) # You do not need to remember for all functions you can use documentation for that # If you remember everything you do not have space for important stuff # You should spend time in working out
states_of_america = ['Delware', 'Pennsylvanai', 'Mary land', 'Texas', 'New Jersey'] print(states_of_america[0]) print(states_of_america[-1]) states_of_america.append('Hawaii') print(states_of_america) states_of_america.extend(['Rakshith', 'Dheer']) print(states_of_america)
#declaring and formatting multiples variables as integer. num01 = int(input('Type the first number: ')) num02 = int(input('Type the second number: ')) s = num01 + num02 #showing to user the sum of numbers. print('The sum of {} and {} is: {}' .format(num01, num02, s))
num01 = int(input('Type the first number: ')) num02 = int(input('Type the second number: ')) s = num01 + num02 print('The sum of {} and {} is: {}'.format(num01, num02, s))
# Write a Python program to find whether a given number (accept from the user) is even or odd, # prints True if its even and False if its odd. n = int(input("Enter a number: ")) print(n % 2 == 0)
n = int(input('Enter a number: ')) print(n % 2 == 0)
sm.setSpeakerID(1012100) sm.sendNext("Hello, #h #. I've heard plenty about you from Mai. You are interested in becoming a Bowman, right? My name is Athena Pierce, Bowman Job Instructor. Nice to meet you!") sm.sendSay("How much do you know about Bowmen? We use bows or crossbows to attack enemies at long range, mainly. We're a bit slower than others, but our arrows never miss their mark!") if sm.sendAskAccept("If you really wish to become a Bowman, I will bring you to the #bBowman Instructional School in Henesys#k using my power as the Job Instructor, #rif you are interested in other jobs, however, I will help you find your true path#k. Now, would you like to become a Bowman?"): sm.warp(100000201) sm.startQuest(parentID) else: choice = sm.sendNext("So, you have chosen another path. That is your decision, of course. Which path will you now choose?\r\n\r\n#b#L0#Warrior#l\r\n#L1#Magician#l\r\n#L2#Thief#l\r\n#L3#Pirate#l") if choice == 0: sm.sendNext("You seek the powerful strength of a Warrior, do you? Then I'll send you to #bDances with Balrog#k.") sm.createQuestWithQRValue(1406, "1") sm.warp(102000003) elif choice == 1: sm.sendNext("You seek the powerful strength of a Magician, do you? Then I'll send you to #bGrendel the really Old#k.") sm.createQuestWithQRValue(1406, "2") sm.warp(101000003) elif choice == 2: sm.sendNext("You seek the powerful strength of a Thief, do you? Then I'll send you to #bthe Dark Lord#k.") sm.createQuestWithQRValue(1406, "4") sm.warp(103000003) elif choice == 3: sm.sendNext("You seek the powerful strength of a Pirate, do you? Then I'll send you to #bKyrin#k.") sm.createQuestWithQRValue(1406, "5") sm.warp(120000101) sm.chatScript("Please CC.")
sm.setSpeakerID(1012100) sm.sendNext("Hello, #h #. I've heard plenty about you from Mai. You are interested in becoming a Bowman, right? My name is Athena Pierce, Bowman Job Instructor. Nice to meet you!") sm.sendSay("How much do you know about Bowmen? We use bows or crossbows to attack enemies at long range, mainly. We're a bit slower than others, but our arrows never miss their mark!") if sm.sendAskAccept('If you really wish to become a Bowman, I will bring you to the #bBowman Instructional School in Henesys#k using my power as the Job Instructor, #rif you are interested in other jobs, however, I will help you find your true path#k. Now, would you like to become a Bowman?'): sm.warp(100000201) sm.startQuest(parentID) else: choice = sm.sendNext('So, you have chosen another path. That is your decision, of course. Which path will you now choose?\r\n\r\n#b#L0#Warrior#l\r\n#L1#Magician#l\r\n#L2#Thief#l\r\n#L3#Pirate#l') if choice == 0: sm.sendNext("You seek the powerful strength of a Warrior, do you? Then I'll send you to #bDances with Balrog#k.") sm.createQuestWithQRValue(1406, '1') sm.warp(102000003) elif choice == 1: sm.sendNext("You seek the powerful strength of a Magician, do you? Then I'll send you to #bGrendel the really Old#k.") sm.createQuestWithQRValue(1406, '2') sm.warp(101000003) elif choice == 2: sm.sendNext("You seek the powerful strength of a Thief, do you? Then I'll send you to #bthe Dark Lord#k.") sm.createQuestWithQRValue(1406, '4') sm.warp(103000003) elif choice == 3: sm.sendNext("You seek the powerful strength of a Pirate, do you? Then I'll send you to #bKyrin#k.") sm.createQuestWithQRValue(1406, '5') sm.warp(120000101) sm.chatScript('Please CC.')
# Author: Senuri Fernando a = int(input()) # take user input b = int(input()) # take user input print(a+b) # addition print(a-b) # subtraction print(a*b) # multiplication
a = int(input()) b = int(input()) print(a + b) print(a - b) print(a * b)
n, x, xpmin = [int(e) for e in input().split()] for i in range(n): xp, q = [int(e) for e in input().split()] if xp >= xpmin: print(xp + x, q + 1) else: print(xp, q)
(n, x, xpmin) = [int(e) for e in input().split()] for i in range(n): (xp, q) = [int(e) for e in input().split()] if xp >= xpmin: print(xp + x, q + 1) else: print(xp, q)
class Invalid: def __init__(self): self.equivalence_class = "INVALID" def __str__(self): return self.equivalence_class
class Invalid: def __init__(self): self.equivalence_class = 'INVALID' def __str__(self): return self.equivalence_class
abstract_user = { "id": "", "name": "", "email": "", "avatar": "", "raw": "", "provider": "", }
abstract_user = {'id': '', 'name': '', 'email': '', 'avatar': '', 'raw': '', 'provider': ''}
# Read lines of text from STDIN. def Beriflapp(): while True: # Reading the input from the user i = input("What is the value of 2+8 = ") # Only exits when meets the condition if i == '10': break print("The value", i, "is the wrong answer. Try again") print("The value", i, "is the right answer") while True: # Reading the input from the user i = input("What is the value of 4+1 = ") # Only exits when meets the condition if i == '5': break print("The value", i, "is the wrong answer. Try again") print("The value", i, "is the right answer") Beriflapp()
def beriflapp(): while True: i = input('What is the value of 2+8 = ') if i == '10': break print('The value', i, 'is the wrong answer. Try again') print('The value', i, 'is the right answer') while True: i = input('What is the value of 4+1 = ') if i == '5': break print('The value', i, 'is the wrong answer. Try again') print('The value', i, 'is the right answer') beriflapp()
# -*- coding: utf-8 -*- ''' Manage grains on the minion =========================== This state allows for grains to be set. Grains set or altered this way are stored in the 'grains' file on the minions, by default at: /etc/salt/grains Note: This does NOT override any grains set in the minion file. ''' def present(name, value): ''' Ensure that a grain is set name The grain name value The value to set on the grain If the grain with the given name exists, its value is updated to the new value. If the grain does not yet exist, a new grain is set to the given value. .. code-block:: yaml cheese: grains.present: - value: edam ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} if isinstance(value, dict): ret['result'] = False ret['comment'] = 'Grain value cannot be dict' return ret if __grains__.get(name) == value: ret['comment'] = 'Grain is already set' return ret if __opts__['test']: ret['result'] = None if name not in __grains__: ret['comment'] = 'Grain {0} is set to be added'.format(name) ret['changes'] = {'new': name} else: ret['comment'] = 'Grain {0} is set to be changed'.format(name) ret['changes'] = {'new': name} return ret grain = __salt__['grains.setval'](name, value) if grain != {name: value}: ret['result'] = False ret['comment'] = 'Failed to set grain {0}'.format(name) return ret ret['result'] = True ret['changes'] = grain ret['comment'] = 'Set grain {0} to {1}'.format(name, value) return ret def list_present(name, value): ''' .. versionadded:: 2014.1.0 Ensure the value is present in the list type grain. name The grain name. value The value is present in the list type grain. The grain should be `list type <http://docs.python.org/2/tutorial/datastructures.html#data-structures>`_ .. code-block:: yaml roles: grains.list_present: - value: web For multiple grains, the syntax looks like: .. code-block:: yaml roles: grains.list_present: - value: - web - dev ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} grain = __grains__.get(name) if grain: # check whether grain is a list if not isinstance(grain, list): ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'.format(name) return ret if isinstance(value, list): if set(value).issubset(set(__grains__.get(name))): ret['comment'] = 'Value {1} is already in grain {0}'.format(name, value) return ret else: if value in grain: ret['comment'] = 'Value {1} is already in grain {0}'.format(name, value) return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Value {1} is set to be appended to grain {0}'.format(name, value) ret['changes'] = {'new': grain} return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Grain {0} is set to be added'.format(name) ret['changes'] = {'new': grain} return ret new_grains = __salt__['grains.append'](name, value) if isinstance(value, list): if not set(value).issubset(set(__grains__.get(name))): ret['result'] = False ret['comment'] = 'Failed append value {1} to grain {0}'.format(name, value) return ret else: if value not in __grains__.get(name): ret['result'] = False ret['comment'] = 'Failed append value {1} to grain {0}'.format(name, value) return ret ret['comment'] = 'Append value {1} to grain {0}'.format(name, value) ret['changes'] = {'new': new_grains} return ret def list_absent(name, value): ''' Delete a value from a grain formed as a list. .. versionadded:: 2014.1.0 name The grain name. value The value to delete from the grain list. The grain should be `list type <http://docs.python.org/2/tutorial/datastructures.html#data-structures>`_ .. code-block:: yaml roles: grains.list_absent: - value: db For multiple grains, the syntax looks like: .. code-block:: yaml roles: grains.list_absent: - value: - web - dev ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} comments = [] grain = __grains__.get(name) if grain: if isinstance(grain, list): if not isinstance(value, list): value = [value] for val in value: if val not in grain: comments.append('Value {1} is absent from ' 'grain {0}'.format(name, val)) elif __opts__['test']: ret['result'] = None comments.append('Value {1} in grain {0} is set ' 'to be deleted'.format(name, val)) if 'deleted' not in ret['changes'].keys(): ret['changes'] = {'deleted': []} ret['changes']['deleted'].append(val) elif val in grain: __salt__['grains.remove'](name, val) comments.append('Value {1} was deleted from ' 'grain {0}'.format(name, val)) if 'deleted' not in ret['changes'].keys(): ret['changes'] = {'deleted': []} ret['changes']['deleted'].append(val) ret['comment'] = '\n'.join(comments) return ret else: ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'\ .format(name) else: ret['comment'] = 'Grain {0} does not exist'.format(name) return ret def absent(name, destructive=False): ''' .. versionadded:: 2014.7.0 Delete a grain from the grains config file name The grain name :param destructive: If destructive is True, delete the entire grain. If destructive is False, set the grain's value to None. Defaults to False. .. code-block:: yaml grain_name: grains.absent ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} if name in __grains__: if __opts__['test']: ret['result'] = None if destructive is True: ret['comment'] = 'Grain {0} is set to be deleted'\ .format(name) ret['changes'] = {'deleted': name} else: ret['comment'] = 'Value for grain {0} is set to be ' \ 'deleted (None)'.format(name) ret['changes'] = {'grain': name, 'value': None} return ret __salt__['grains.delval'](name, destructive) if destructive is True: ret['comment'] = 'Grain {0} was deleted'.format(name) ret['changes'] = {'deleted': name} else: ret['comment'] = 'Value for grain {0} was set to {1}'\ .format(name, None) ret['changes'] = {'grain': name, 'value': None} else: ret['comment'] = 'Grain {0} does not exist'.format(name) return ret def append(name, value, convert=False): ''' .. versionadded:: 2014.7.0 Append a value to a list in the grains config file name The grain name value The value to append :param convert: If convert is True, convert non-list contents into a list. If convert is False and the grain contains non-list contents, an error is given. Defaults to False. .. code-block:: yaml grain_name: grains.append: - value: to_be_appended ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} grain = __grains__.get(name) if grain: if isinstance(grain, list): if value in grain: ret['comment'] = 'Value {1} is already in the list ' \ 'for grain {0}'.format(name, value) return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Value {1} in grain {0} is set to ' \ 'be added'.format(name, value) ret['changes'] = {'added': value} return ret __salt__['grains.append'](name, value) ret['comment'] = 'Value {1} was added to grain {0}'\ .format(name, value) ret['changes'] = {'added': value} else: if convert is True: if __opts__['test']: ret['result'] = None ret['comment'] = 'Grain {0} is set to be converted ' \ 'to list and value {1} will be ' \ 'added'.format(name, value) ret['changes'] = {'added': value} return ret grain = [grain] grain.append(value) __salt__['grains.setval'](name, grain) ret['comment'] = 'Value {1} was added to grain {0}'\ .format(name, value) ret['changes'] = {'added': value} else: ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'\ .format(name) else: ret['result'] = False ret['comment'] = 'Grain {0} does not exist'.format(name) return ret
""" Manage grains on the minion =========================== This state allows for grains to be set. Grains set or altered this way are stored in the 'grains' file on the minions, by default at: /etc/salt/grains Note: This does NOT override any grains set in the minion file. """ def present(name, value): """ Ensure that a grain is set name The grain name value The value to set on the grain If the grain with the given name exists, its value is updated to the new value. If the grain does not yet exist, a new grain is set to the given value. .. code-block:: yaml cheese: grains.present: - value: edam """ ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} if isinstance(value, dict): ret['result'] = False ret['comment'] = 'Grain value cannot be dict' return ret if __grains__.get(name) == value: ret['comment'] = 'Grain is already set' return ret if __opts__['test']: ret['result'] = None if name not in __grains__: ret['comment'] = 'Grain {0} is set to be added'.format(name) ret['changes'] = {'new': name} else: ret['comment'] = 'Grain {0} is set to be changed'.format(name) ret['changes'] = {'new': name} return ret grain = __salt__['grains.setval'](name, value) if grain != {name: value}: ret['result'] = False ret['comment'] = 'Failed to set grain {0}'.format(name) return ret ret['result'] = True ret['changes'] = grain ret['comment'] = 'Set grain {0} to {1}'.format(name, value) return ret def list_present(name, value): """ .. versionadded:: 2014.1.0 Ensure the value is present in the list type grain. name The grain name. value The value is present in the list type grain. The grain should be `list type <http://docs.python.org/2/tutorial/datastructures.html#data-structures>`_ .. code-block:: yaml roles: grains.list_present: - value: web For multiple grains, the syntax looks like: .. code-block:: yaml roles: grains.list_present: - value: - web - dev """ ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} grain = __grains__.get(name) if grain: if not isinstance(grain, list): ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'.format(name) return ret if isinstance(value, list): if set(value).issubset(set(__grains__.get(name))): ret['comment'] = 'Value {1} is already in grain {0}'.format(name, value) return ret elif value in grain: ret['comment'] = 'Value {1} is already in grain {0}'.format(name, value) return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Value {1} is set to be appended to grain {0}'.format(name, value) ret['changes'] = {'new': grain} return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Grain {0} is set to be added'.format(name) ret['changes'] = {'new': grain} return ret new_grains = __salt__['grains.append'](name, value) if isinstance(value, list): if not set(value).issubset(set(__grains__.get(name))): ret['result'] = False ret['comment'] = 'Failed append value {1} to grain {0}'.format(name, value) return ret elif value not in __grains__.get(name): ret['result'] = False ret['comment'] = 'Failed append value {1} to grain {0}'.format(name, value) return ret ret['comment'] = 'Append value {1} to grain {0}'.format(name, value) ret['changes'] = {'new': new_grains} return ret def list_absent(name, value): """ Delete a value from a grain formed as a list. .. versionadded:: 2014.1.0 name The grain name. value The value to delete from the grain list. The grain should be `list type <http://docs.python.org/2/tutorial/datastructures.html#data-structures>`_ .. code-block:: yaml roles: grains.list_absent: - value: db For multiple grains, the syntax looks like: .. code-block:: yaml roles: grains.list_absent: - value: - web - dev """ ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} comments = [] grain = __grains__.get(name) if grain: if isinstance(grain, list): if not isinstance(value, list): value = [value] for val in value: if val not in grain: comments.append('Value {1} is absent from grain {0}'.format(name, val)) elif __opts__['test']: ret['result'] = None comments.append('Value {1} in grain {0} is set to be deleted'.format(name, val)) if 'deleted' not in ret['changes'].keys(): ret['changes'] = {'deleted': []} ret['changes']['deleted'].append(val) elif val in grain: __salt__['grains.remove'](name, val) comments.append('Value {1} was deleted from grain {0}'.format(name, val)) if 'deleted' not in ret['changes'].keys(): ret['changes'] = {'deleted': []} ret['changes']['deleted'].append(val) ret['comment'] = '\n'.join(comments) return ret else: ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'.format(name) else: ret['comment'] = 'Grain {0} does not exist'.format(name) return ret def absent(name, destructive=False): """ .. versionadded:: 2014.7.0 Delete a grain from the grains config file name The grain name :param destructive: If destructive is True, delete the entire grain. If destructive is False, set the grain's value to None. Defaults to False. .. code-block:: yaml grain_name: grains.absent """ ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} if name in __grains__: if __opts__['test']: ret['result'] = None if destructive is True: ret['comment'] = 'Grain {0} is set to be deleted'.format(name) ret['changes'] = {'deleted': name} else: ret['comment'] = 'Value for grain {0} is set to be deleted (None)'.format(name) ret['changes'] = {'grain': name, 'value': None} return ret __salt__['grains.delval'](name, destructive) if destructive is True: ret['comment'] = 'Grain {0} was deleted'.format(name) ret['changes'] = {'deleted': name} else: ret['comment'] = 'Value for grain {0} was set to {1}'.format(name, None) ret['changes'] = {'grain': name, 'value': None} else: ret['comment'] = 'Grain {0} does not exist'.format(name) return ret def append(name, value, convert=False): """ .. versionadded:: 2014.7.0 Append a value to a list in the grains config file name The grain name value The value to append :param convert: If convert is True, convert non-list contents into a list. If convert is False and the grain contains non-list contents, an error is given. Defaults to False. .. code-block:: yaml grain_name: grains.append: - value: to_be_appended """ ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} grain = __grains__.get(name) if grain: if isinstance(grain, list): if value in grain: ret['comment'] = 'Value {1} is already in the list for grain {0}'.format(name, value) return ret if __opts__['test']: ret['result'] = None ret['comment'] = 'Value {1} in grain {0} is set to be added'.format(name, value) ret['changes'] = {'added': value} return ret __salt__['grains.append'](name, value) ret['comment'] = 'Value {1} was added to grain {0}'.format(name, value) ret['changes'] = {'added': value} elif convert is True: if __opts__['test']: ret['result'] = None ret['comment'] = 'Grain {0} is set to be converted to list and value {1} will be added'.format(name, value) ret['changes'] = {'added': value} return ret grain = [grain] grain.append(value) __salt__['grains.setval'](name, grain) ret['comment'] = 'Value {1} was added to grain {0}'.format(name, value) ret['changes'] = {'added': value} else: ret['result'] = False ret['comment'] = 'Grain {0} is not a valid list'.format(name) else: ret['result'] = False ret['comment'] = 'Grain {0} does not exist'.format(name) return ret
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. class Environment(object): def __init__(self, version_label=None, status=None, app_name=None, health=None, id=None, date_updated=None, platform=None, description=None, name=None, date_created=None, tier=None, cname=None, option_settings=None, is_abortable=False, environment_links=None, environment_arn=None): self.version_label = version_label self.status = status self.app_name = app_name self.health = health self.id = id self.date_updated = date_updated self.platform = platform self.description = description self.name = name self.date_created = date_created self.tier = tier self.cname = cname self.option_settings = option_settings self.is_abortable = is_abortable self.environment_links = environment_links self.environment_arn = environment_arn def __str__(self): return self.name
class Environment(object): def __init__(self, version_label=None, status=None, app_name=None, health=None, id=None, date_updated=None, platform=None, description=None, name=None, date_created=None, tier=None, cname=None, option_settings=None, is_abortable=False, environment_links=None, environment_arn=None): self.version_label = version_label self.status = status self.app_name = app_name self.health = health self.id = id self.date_updated = date_updated self.platform = platform self.description = description self.name = name self.date_created = date_created self.tier = tier self.cname = cname self.option_settings = option_settings self.is_abortable = is_abortable self.environment_links = environment_links self.environment_arn = environment_arn def __str__(self): return self.name
''' Basic Binary Tree in Array Representation Referred from: www.javatpoint.com/program-to-implement-binary-tree-using-the-linked-list ''' class Node: def __init__(self, key): self.value = key self.left = None self.right = None class BinaryTree: def __init__(self): self.root = None def insert_node(self, data): new_node = Node(data) # Check whether tree is empty if(self.root == None): self.root = new_node return; else: queue = [] # Add root to the queue queue.append(self.root) while(True): node = queue.pop(0) # If node has both left and right child, add both the child to queue if(node.left != None and node.right != None): queue.append(node.left) queue.append(node.right) else: # If node has no left child, make new_node as left child if(node.left == None): node.left = new_node queue.append(node.left) else: # If node has left child but no right child, make new_node as right child node.right = new_node queue.append(node.right) break # Inorder traversal # Left -> Root -> right # Root is IN between left and right that why it is called INorder def inorder_traversal(self, root): if(root): self.inorder_traversal(root.left) print(root.value, end=' => ') self.inorder_traversal(root.right) # Preorder traversal # Root -> Left -> right # Root comes before left and right that why it is called PREorder def preorder_traversal(self, root): if(root): print(root.value, end=' => ') self.preorder_traversal(root.left) self.preorder_traversal(root.right) # Preorder traversal # Left -> right -> Root # Root comes after left and right that why it is called POSTorder def postorder_traversal(self, root): if(root): self.postorder_traversal(root.left) self.postorder_traversal(root.right) print(root.value, end=' => ') # Creating object BT = BinaryTree() # Inserting_node BT.insert_node('A') BT.insert_node('B') BT.insert_node('C') BT.insert_node('D') BT.insert_node('E') #====Inorder traversal====# print("InOrder Traversal") BT.inorder_traversal(BT.root) #====Preorder traversal====# print("\nPreOrder Traversal") BT.preorder_traversal(BT.root) #====Postorder traversal====# print("\nPostOrder Traversal") BT.postorder_traversal(BT.root) print()
""" Basic Binary Tree in Array Representation Referred from: www.javatpoint.com/program-to-implement-binary-tree-using-the-linked-list """ class Node: def __init__(self, key): self.value = key self.left = None self.right = None class Binarytree: def __init__(self): self.root = None def insert_node(self, data): new_node = node(data) if self.root == None: self.root = new_node return else: queue = [] queue.append(self.root) while True: node = queue.pop(0) if node.left != None and node.right != None: queue.append(node.left) queue.append(node.right) else: if node.left == None: node.left = new_node queue.append(node.left) else: node.right = new_node queue.append(node.right) break def inorder_traversal(self, root): if root: self.inorder_traversal(root.left) print(root.value, end=' => ') self.inorder_traversal(root.right) def preorder_traversal(self, root): if root: print(root.value, end=' => ') self.preorder_traversal(root.left) self.preorder_traversal(root.right) def postorder_traversal(self, root): if root: self.postorder_traversal(root.left) self.postorder_traversal(root.right) print(root.value, end=' => ') bt = binary_tree() BT.insert_node('A') BT.insert_node('B') BT.insert_node('C') BT.insert_node('D') BT.insert_node('E') print('InOrder Traversal') BT.inorder_traversal(BT.root) print('\nPreOrder Traversal') BT.preorder_traversal(BT.root) print('\nPostOrder Traversal') BT.postorder_traversal(BT.root) print()
people = [ { 'name': 'Lucas', 'age': 27, 'gender': 'Male', }, { 'name': 'Miguel', 'age': 4, 'gender': 'Male', }, { 'name': 'Adriana', 'age': 27, 'gender': 'Female', }, ] for person in people: for field, data in person.items(): print(f"{field.title()}: {data}") print("{:=^20}".format(''))
people = [{'name': 'Lucas', 'age': 27, 'gender': 'Male'}, {'name': 'Miguel', 'age': 4, 'gender': 'Male'}, {'name': 'Adriana', 'age': 27, 'gender': 'Female'}] for person in people: for (field, data) in person.items(): print(f'{field.title()}: {data}') print('{:=^20}'.format(''))
class Solution: def noOfWays(self, M, N, X): # code here if X > M * N: return 0 ways = [[0 for _ in range(M * N + 1)] for _ in range(N + 1)] for i in range(1, M + 1): ways[1][i] = 1 for i in range(2, N + 1): for j in range(1, X + 1): for k in range(1, M + 1): if j - k <= 0: continue ways[i][j] += ways[i - 1][j - k] return ways[N][X]
class Solution: def no_of_ways(self, M, N, X): if X > M * N: return 0 ways = [[0 for _ in range(M * N + 1)] for _ in range(N + 1)] for i in range(1, M + 1): ways[1][i] = 1 for i in range(2, N + 1): for j in range(1, X + 1): for k in range(1, M + 1): if j - k <= 0: continue ways[i][j] += ways[i - 1][j - k] return ways[N][X]
a_1 = -6 b_1 = -6 a = -5 b = -5 m = 255 n = 255 m_add_1 = 100000 n_add_1 = 100000 if __name__ == '__main__': print(a_1 is b_1) print(a is b) print(m is n) print(m_add_1 is n_add_1)
a_1 = -6 b_1 = -6 a = -5 b = -5 m = 255 n = 255 m_add_1 = 100000 n_add_1 = 100000 if __name__ == '__main__': print(a_1 is b_1) print(a is b) print(m is n) print(m_add_1 is n_add_1)
def hex_to_int(hex): assert hex.startswith('0x') hex = hex[2:] total = 0 for h in hex: total *= 16 total += '0123456789abcdef'.index(h) return total def byte_to_uint(byte): total = 0 for c in byte: total *= 2 if c == '1': total += 1 return total def byte_to_int(byte): total = 0 for c in byte: total *= 2 if c == '1': total += 1 return total if byte[0] == '0' else total - 2**8 def word_to_int(word): total = 0 for c in word: total *= 2 if c == '1': total += 1 return total if word[0] == '0' else total - 2**16 def dword_to_int(dword): total = 0 for c in dword: total *= 2 if c == '1': total += 1 return total if dword[0] == '0' else total - 2**32 def word_to_uint(word): total = 0 for c in word: total *= 2 if c == '1': total += 1 return total def dword_to_uint(dword): total = 0 for c in dword: total *= 2 if c == '1': total += 1 return total def int_to_byte(x): if x < 0: x += 2**8 res = '' for i in range(8): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def int_to_word(x): if x < 0: x += 2**16 res = '' for i in range(16): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def uint_to_word(x): res = '' for i in range(16): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def uint_to_dword(x): res = '' for i in range(32): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res[:16], res[16:] def int_to_dword(x): if x < 0: x += 2**32 res = '' for i in range(32): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res[:16], res[16:] def uint_to_byte(x): res = '' for i in range(8): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def split_on_spaces(s): parts = s.replace('\t', ' ').split(' ') parts = [p.strip() for p in parts if p.strip()] return parts def condense_spaces(s): return ' '.join(split_on_spaces(s)) def pad_to_length(s, l): assert l >= len(s) return s + ' ' * (l - len(s))
def hex_to_int(hex): assert hex.startswith('0x') hex = hex[2:] total = 0 for h in hex: total *= 16 total += '0123456789abcdef'.index(h) return total def byte_to_uint(byte): total = 0 for c in byte: total *= 2 if c == '1': total += 1 return total def byte_to_int(byte): total = 0 for c in byte: total *= 2 if c == '1': total += 1 return total if byte[0] == '0' else total - 2 ** 8 def word_to_int(word): total = 0 for c in word: total *= 2 if c == '1': total += 1 return total if word[0] == '0' else total - 2 ** 16 def dword_to_int(dword): total = 0 for c in dword: total *= 2 if c == '1': total += 1 return total if dword[0] == '0' else total - 2 ** 32 def word_to_uint(word): total = 0 for c in word: total *= 2 if c == '1': total += 1 return total def dword_to_uint(dword): total = 0 for c in dword: total *= 2 if c == '1': total += 1 return total def int_to_byte(x): if x < 0: x += 2 ** 8 res = '' for i in range(8): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def int_to_word(x): if x < 0: x += 2 ** 16 res = '' for i in range(16): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def uint_to_word(x): res = '' for i in range(16): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def uint_to_dword(x): res = '' for i in range(32): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return (res[:16], res[16:]) def int_to_dword(x): if x < 0: x += 2 ** 32 res = '' for i in range(32): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return (res[:16], res[16:]) def uint_to_byte(x): res = '' for i in range(8): if x % 2 == 1: res = '1' + res else: res = '0' + res x = x // 2 return res def split_on_spaces(s): parts = s.replace('\t', ' ').split(' ') parts = [p.strip() for p in parts if p.strip()] return parts def condense_spaces(s): return ' '.join(split_on_spaces(s)) def pad_to_length(s, l): assert l >= len(s) return s + ' ' * (l - len(s))
#stores the current state of the register machine for the interpreter class RMState: def __init__(self, REGS): self.b = 1 self.acc = 0 self.REGS = REGS self.ended = False
class Rmstate: def __init__(self, REGS): self.b = 1 self.acc = 0 self.REGS = REGS self.ended = False
class Tower: __slots__ = 'rings', 'capacity' def __init__(self, cap: int): self.rings = list() self.capacity = cap def add(self, ring_size:int): if len(self.rings) >= self.capacity: raise IndexError('Tower already at max capacity') if (len(self.rings) > 0) and (ring_size >= self.rings[-1]): raise ValueError("Trying to add ring of size %d on top of ring of size %d" % (ring_size, self.rings[-1])) self.rings.append(ring_size) def pop(self) -> int: if len(self.rings) <= 0: raise IndexError('Tower empty') return self.rings.pop() def get(self, depth: int) -> int: return self.rings[-1 * (depth + 1)] def print_towers(towers: list, size=None): if size is None: size = towers[0].capacity # Pad tower lists with zeros tower_list = list() for tower in towers: tl = list(tower.rings) while len(tl) < size: tl.append(0) tower_list.append(tl) for row in range(size): for tower in tower_list: ring_size = tower[size - row - 1] whitespace = padding(size - ring_size + 1) ring_space = padding(ring_size, '-') print(whitespace + ring_space + '|' + ring_space + whitespace, end=' ') print() for idx in range(len(tower_list)): base = padding((size + 1), character='=') print("%s%d%s" % (base, idx + 1, base), end=' ') print("\n") def padding(width: int, character=' ') -> str: pad = '' for i in range(width): pad += character return pad def move_tower(towers: list, size: int, src: int, dest: int): if size == 1: towers[dest].add(towers[src].pop()) print("\nTower %d -> Tower %d" % (src + 1, dest + 1)) print_towers(towers) else: # Determine temp peg all_pegs = list(range(3)) all_pegs.remove(src) all_pegs.remove(dest) temp_peg = all_pegs[0] # Move top tower (size n-1) to temp peg move_tower(towers, size-1, src, temp_peg) # Move bottom ring to destination peg move_tower(towers, 1, src, dest) # Move rest of tower to destination peg move_tower(towers, size-1, temp_peg, dest) def main(): size = int(input("Input tower size... ")) towers = list() for i in range(3): towers.append(Tower(size)) for ring in range(size, 0, -1): towers[0].add(ring) print("\nInitial configuration") print_towers(towers) move_tower(towers, size, 0, 1) if __name__ == '__main__': main()
class Tower: __slots__ = ('rings', 'capacity') def __init__(self, cap: int): self.rings = list() self.capacity = cap def add(self, ring_size: int): if len(self.rings) >= self.capacity: raise index_error('Tower already at max capacity') if len(self.rings) > 0 and ring_size >= self.rings[-1]: raise value_error('Trying to add ring of size %d on top of ring of size %d' % (ring_size, self.rings[-1])) self.rings.append(ring_size) def pop(self) -> int: if len(self.rings) <= 0: raise index_error('Tower empty') return self.rings.pop() def get(self, depth: int) -> int: return self.rings[-1 * (depth + 1)] def print_towers(towers: list, size=None): if size is None: size = towers[0].capacity tower_list = list() for tower in towers: tl = list(tower.rings) while len(tl) < size: tl.append(0) tower_list.append(tl) for row in range(size): for tower in tower_list: ring_size = tower[size - row - 1] whitespace = padding(size - ring_size + 1) ring_space = padding(ring_size, '-') print(whitespace + ring_space + '|' + ring_space + whitespace, end=' ') print() for idx in range(len(tower_list)): base = padding(size + 1, character='=') print('%s%d%s' % (base, idx + 1, base), end=' ') print('\n') def padding(width: int, character=' ') -> str: pad = '' for i in range(width): pad += character return pad def move_tower(towers: list, size: int, src: int, dest: int): if size == 1: towers[dest].add(towers[src].pop()) print('\nTower %d -> Tower %d' % (src + 1, dest + 1)) print_towers(towers) else: all_pegs = list(range(3)) all_pegs.remove(src) all_pegs.remove(dest) temp_peg = all_pegs[0] move_tower(towers, size - 1, src, temp_peg) move_tower(towers, 1, src, dest) move_tower(towers, size - 1, temp_peg, dest) def main(): size = int(input('Input tower size... ')) towers = list() for i in range(3): towers.append(tower(size)) for ring in range(size, 0, -1): towers[0].add(ring) print('\nInitial configuration') print_towers(towers) move_tower(towers, size, 0, 1) if __name__ == '__main__': main()
{ 'targets' : [ { 'target_name' : 'test', 'type' : 'executable', 'sources' : [ '<!@(find *.cc)', '<!@(find *.h)' ], 'include_dirs' : [ ], 'libraries' : [ ], 'conditions' : [ ['OS=="mac"', { 'xcode_settings': { 'ARCHS': '$(ARCHS_STANDARD_64_BIT)' }, 'link_settings': { 'libraries': [ ], }, }] ] } ] }
{'targets': [{'target_name': 'test', 'type': 'executable', 'sources': ['<!@(find *.cc)', '<!@(find *.h)'], 'include_dirs': [], 'libraries': [], 'conditions': [['OS=="mac"', {'xcode_settings': {'ARCHS': '$(ARCHS_STANDARD_64_BIT)'}, 'link_settings': {'libraries': []}}]]}]}
class ShorteningErrorException(Exception): def __init__(self, message=None): super().__init__(f'There was an error on trying to short the url: ' f'{message}') class ExpandingErrorException(Exception): def __init__(self, message=None): super().__init__(f'There was an error on trying to expand the url: ' f'{message}') class BadAPIResponseException(Exception): def __init__(self, message): super().__init__(f'Error on API Response: {message}') class BadURLException(Exception): def __init__(self, message): super().__init__(f'URL is not valid: {message}')
class Shorteningerrorexception(Exception): def __init__(self, message=None): super().__init__(f'There was an error on trying to short the url: {message}') class Expandingerrorexception(Exception): def __init__(self, message=None): super().__init__(f'There was an error on trying to expand the url: {message}') class Badapiresponseexception(Exception): def __init__(self, message): super().__init__(f'Error on API Response: {message}') class Badurlexception(Exception): def __init__(self, message): super().__init__(f'URL is not valid: {message}')
# # PySNMP MIB module CISCO-VISM-CAS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VISM-CAS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:02:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint") voice, = mibBuilder.importSymbols("BASIS-MIB", "voice") ciscoWan, = mibBuilder.importSymbols("CISCOWAN-SMI", "ciscoWan") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Integer32, Unsigned32, iso, IpAddress, Bits, Gauge32, MibIdentifier, NotificationType, ModuleIdentity, TimeTicks, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Integer32", "Unsigned32", "iso", "IpAddress", "Bits", "Gauge32", "MibIdentifier", "NotificationType", "ModuleIdentity", "TimeTicks", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoVismCasMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 351, 150, 88)) ciscoVismCasMIB.setRevisions(('2003-07-16 00:00',)) if mibBuilder.loadTexts: ciscoVismCasMIB.setLastUpdated('200307160000Z') if mibBuilder.loadTexts: ciscoVismCasMIB.setOrganization('Cisco Systems, Inc.') vismCasGrp = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8)) vismCasVariantTable = MibTable((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1), ) if mibBuilder.loadTexts: vismCasVariantTable.setStatus('current') vismCasVariantEntry = MibTableRow((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1), ).setIndexNames((0, "CISCO-VISM-CAS-MIB", "vismCasVariantName")) if mibBuilder.loadTexts: vismCasVariantEntry.setStatus('current') vismCasVariantName = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vismCasVariantName.setStatus('current') vismCasFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasFileName.setStatus('current') vismCasTRinging = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 600)).clone(180)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasTRinging.setStatus('deprecated') vismCasDigitMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mf", 1), ("dtmf", 2))).clone('dtmf')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasDigitMethod.setStatus('current') vismCasInterdigitTpart = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 10000)).clone(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasInterdigitTpart.setStatus('current') vismCasInterdigitTcrit = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasInterdigitTcrit.setStatus('current') vismCasInterdigitTMF = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasInterdigitTMF.setStatus('current') vismCasVariantState = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notConfigured", 1), ("configInProgress", 2), ("configured", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vismCasVariantState.setStatus('current') vismCasRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4, 6))).clone(namedValues=NamedValues(("active", 1), ("createAndGo", 4), ("destroy", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasRowStatus.setStatus('current') vismCasCountryCode = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 2)).clone('US')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasCountryCode.setStatus('deprecated') vismCasVariantSource = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unspecified", 1), ("internal", 2), ("external", 3))).clone('unspecified')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasVariantSource.setStatus('current') vismCasXgcpVariantTable = MibTable((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2), ) if mibBuilder.loadTexts: vismCasXgcpVariantTable.setStatus('current') vismCasXgcpVariantEntry = MibTableRow((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1), ).setIndexNames((0, "CISCO-VISM-CAS-MIB", "vismCasXgcpVariantName")) if mibBuilder.loadTexts: vismCasXgcpVariantEntry.setStatus('current') vismCasXgcpVariantName = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vismCasXgcpVariantName.setStatus('current') vismCasXgcpFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vismCasXgcpFileName.setStatus('current') vismCasXgcpMaxReXmitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 10000)).clone(500)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasXgcpMaxReXmitTime.setStatus('current') vismCasXgcpInitialReXmitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 10000)).clone(100)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasXgcpInitialReXmitTime.setStatus('current') vismCasXgcpMaxRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10)).clone(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vismCasXgcpMaxRetries.setStatus('current') ciscoVismCasMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2)) ciscoVismCasMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1)) ciscoVismCasMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 2)) ciscoVismCasCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 2, 1)).setObjects(("CISCO-VISM-CAS-MIB", "ciscoVismCasVariantGroup"), ("CISCO-VISM-CAS-MIB", "ciscoVismCasXgcpVariantGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoVismCasCompliance = ciscoVismCasCompliance.setStatus('current') ciscoVismCasVariantGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 1)).setObjects(("CISCO-VISM-CAS-MIB", "vismCasVariantName"), ("CISCO-VISM-CAS-MIB", "vismCasFileName"), ("CISCO-VISM-CAS-MIB", "vismCasDigitMethod"), ("CISCO-VISM-CAS-MIB", "vismCasInterdigitTpart"), ("CISCO-VISM-CAS-MIB", "vismCasInterdigitTcrit"), ("CISCO-VISM-CAS-MIB", "vismCasInterdigitTMF"), ("CISCO-VISM-CAS-MIB", "vismCasVariantState"), ("CISCO-VISM-CAS-MIB", "vismCasRowStatus"), ("CISCO-VISM-CAS-MIB", "vismCasVariantSource")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoVismCasVariantGroup = ciscoVismCasVariantGroup.setStatus('current') ciscoVismCasXgcpVariantGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 2)).setObjects(("CISCO-VISM-CAS-MIB", "vismCasXgcpVariantName"), ("CISCO-VISM-CAS-MIB", "vismCasXgcpFileName"), ("CISCO-VISM-CAS-MIB", "vismCasXgcpMaxReXmitTime"), ("CISCO-VISM-CAS-MIB", "vismCasXgcpInitialReXmitTime"), ("CISCO-VISM-CAS-MIB", "vismCasXgcpMaxRetries")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoVismCasXgcpVariantGroup = ciscoVismCasXgcpVariantGroup.setStatus('current') cvcVariantDeprecatedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 3)).setObjects(("CISCO-VISM-CAS-MIB", "vismCasTRinging"), ("CISCO-VISM-CAS-MIB", "vismCasCountryCode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cvcVariantDeprecatedGroup = cvcVariantDeprecatedGroup.setStatus('deprecated') mibBuilder.exportSymbols("CISCO-VISM-CAS-MIB", vismCasXgcpMaxRetries=vismCasXgcpMaxRetries, ciscoVismCasMIBConformance=ciscoVismCasMIBConformance, vismCasVariantSource=vismCasVariantSource, ciscoVismCasCompliance=ciscoVismCasCompliance, vismCasGrp=vismCasGrp, vismCasXgcpVariantName=vismCasXgcpVariantName, vismCasXgcpVariantTable=vismCasXgcpVariantTable, vismCasDigitMethod=vismCasDigitMethod, vismCasInterdigitTcrit=vismCasInterdigitTcrit, vismCasVariantState=vismCasVariantState, ciscoVismCasMIBCompliances=ciscoVismCasMIBCompliances, vismCasXgcpFileName=vismCasXgcpFileName, vismCasTRinging=vismCasTRinging, vismCasCountryCode=vismCasCountryCode, vismCasVariantName=vismCasVariantName, vismCasFileName=vismCasFileName, vismCasXgcpMaxReXmitTime=vismCasXgcpMaxReXmitTime, vismCasInterdigitTMF=vismCasInterdigitTMF, ciscoVismCasXgcpVariantGroup=ciscoVismCasXgcpVariantGroup, vismCasVariantTable=vismCasVariantTable, vismCasXgcpInitialReXmitTime=vismCasXgcpInitialReXmitTime, vismCasVariantEntry=vismCasVariantEntry, ciscoVismCasMIBGroups=ciscoVismCasMIBGroups, ciscoVismCasVariantGroup=ciscoVismCasVariantGroup, vismCasRowStatus=vismCasRowStatus, vismCasInterdigitTpart=vismCasInterdigitTpart, ciscoVismCasMIB=ciscoVismCasMIB, cvcVariantDeprecatedGroup=cvcVariantDeprecatedGroup, vismCasXgcpVariantEntry=vismCasXgcpVariantEntry, PYSNMP_MODULE_ID=ciscoVismCasMIB)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, value_size_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint') (voice,) = mibBuilder.importSymbols('BASIS-MIB', 'voice') (cisco_wan,) = mibBuilder.importSymbols('CISCOWAN-SMI', 'ciscoWan') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, integer32, unsigned32, iso, ip_address, bits, gauge32, mib_identifier, notification_type, module_identity, time_ticks, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Integer32', 'Unsigned32', 'iso', 'IpAddress', 'Bits', 'Gauge32', 'MibIdentifier', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_vism_cas_mib = module_identity((1, 3, 6, 1, 4, 1, 351, 150, 88)) ciscoVismCasMIB.setRevisions(('2003-07-16 00:00',)) if mibBuilder.loadTexts: ciscoVismCasMIB.setLastUpdated('200307160000Z') if mibBuilder.loadTexts: ciscoVismCasMIB.setOrganization('Cisco Systems, Inc.') vism_cas_grp = mib_identifier((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8)) vism_cas_variant_table = mib_table((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1)) if mibBuilder.loadTexts: vismCasVariantTable.setStatus('current') vism_cas_variant_entry = mib_table_row((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1)).setIndexNames((0, 'CISCO-VISM-CAS-MIB', 'vismCasVariantName')) if mibBuilder.loadTexts: vismCasVariantEntry.setStatus('current') vism_cas_variant_name = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vismCasVariantName.setStatus('current') vism_cas_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(2, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasFileName.setStatus('current') vism_cas_t_ringing = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(10, 600)).clone(180)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasTRinging.setStatus('deprecated') vism_cas_digit_method = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mf', 1), ('dtmf', 2))).clone('dtmf')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasDigitMethod.setStatus('current') vism_cas_interdigit_tpart = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(10, 10000)).clone(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasInterdigitTpart.setStatus('current') vism_cas_interdigit_tcrit = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasInterdigitTcrit.setStatus('current') vism_cas_interdigit_tmf = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasInterdigitTMF.setStatus('current') vism_cas_variant_state = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notConfigured', 1), ('configInProgress', 2), ('configured', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vismCasVariantState.setStatus('current') vism_cas_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4, 6))).clone(namedValues=named_values(('active', 1), ('createAndGo', 4), ('destroy', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasRowStatus.setStatus('current') vism_cas_country_code = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 2)).clone('US')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasCountryCode.setStatus('deprecated') vism_cas_variant_source = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unspecified', 1), ('internal', 2), ('external', 3))).clone('unspecified')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasVariantSource.setStatus('current') vism_cas_xgcp_variant_table = mib_table((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2)) if mibBuilder.loadTexts: vismCasXgcpVariantTable.setStatus('current') vism_cas_xgcp_variant_entry = mib_table_row((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1)).setIndexNames((0, 'CISCO-VISM-CAS-MIB', 'vismCasXgcpVariantName')) if mibBuilder.loadTexts: vismCasXgcpVariantEntry.setStatus('current') vism_cas_xgcp_variant_name = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vismCasXgcpVariantName.setStatus('current') vism_cas_xgcp_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vismCasXgcpFileName.setStatus('current') vism_cas_xgcp_max_re_xmit_time = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(10, 10000)).clone(500)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasXgcpMaxReXmitTime.setStatus('current') vism_cas_xgcp_initial_re_xmit_time = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(10, 10000)).clone(100)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasXgcpInitialReXmitTime.setStatus('current') vism_cas_xgcp_max_retries = mib_table_column((1, 3, 6, 1, 4, 1, 351, 110, 5, 5, 8, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 10)).clone(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vismCasXgcpMaxRetries.setStatus('current') cisco_vism_cas_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2)) cisco_vism_cas_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1)) cisco_vism_cas_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 2)) cisco_vism_cas_compliance = module_compliance((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 2, 1)).setObjects(('CISCO-VISM-CAS-MIB', 'ciscoVismCasVariantGroup'), ('CISCO-VISM-CAS-MIB', 'ciscoVismCasXgcpVariantGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_vism_cas_compliance = ciscoVismCasCompliance.setStatus('current') cisco_vism_cas_variant_group = object_group((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 1)).setObjects(('CISCO-VISM-CAS-MIB', 'vismCasVariantName'), ('CISCO-VISM-CAS-MIB', 'vismCasFileName'), ('CISCO-VISM-CAS-MIB', 'vismCasDigitMethod'), ('CISCO-VISM-CAS-MIB', 'vismCasInterdigitTpart'), ('CISCO-VISM-CAS-MIB', 'vismCasInterdigitTcrit'), ('CISCO-VISM-CAS-MIB', 'vismCasInterdigitTMF'), ('CISCO-VISM-CAS-MIB', 'vismCasVariantState'), ('CISCO-VISM-CAS-MIB', 'vismCasRowStatus'), ('CISCO-VISM-CAS-MIB', 'vismCasVariantSource')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_vism_cas_variant_group = ciscoVismCasVariantGroup.setStatus('current') cisco_vism_cas_xgcp_variant_group = object_group((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 2)).setObjects(('CISCO-VISM-CAS-MIB', 'vismCasXgcpVariantName'), ('CISCO-VISM-CAS-MIB', 'vismCasXgcpFileName'), ('CISCO-VISM-CAS-MIB', 'vismCasXgcpMaxReXmitTime'), ('CISCO-VISM-CAS-MIB', 'vismCasXgcpInitialReXmitTime'), ('CISCO-VISM-CAS-MIB', 'vismCasXgcpMaxRetries')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_vism_cas_xgcp_variant_group = ciscoVismCasXgcpVariantGroup.setStatus('current') cvc_variant_deprecated_group = object_group((1, 3, 6, 1, 4, 1, 351, 150, 88, 2, 1, 3)).setObjects(('CISCO-VISM-CAS-MIB', 'vismCasTRinging'), ('CISCO-VISM-CAS-MIB', 'vismCasCountryCode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cvc_variant_deprecated_group = cvcVariantDeprecatedGroup.setStatus('deprecated') mibBuilder.exportSymbols('CISCO-VISM-CAS-MIB', vismCasXgcpMaxRetries=vismCasXgcpMaxRetries, ciscoVismCasMIBConformance=ciscoVismCasMIBConformance, vismCasVariantSource=vismCasVariantSource, ciscoVismCasCompliance=ciscoVismCasCompliance, vismCasGrp=vismCasGrp, vismCasXgcpVariantName=vismCasXgcpVariantName, vismCasXgcpVariantTable=vismCasXgcpVariantTable, vismCasDigitMethod=vismCasDigitMethod, vismCasInterdigitTcrit=vismCasInterdigitTcrit, vismCasVariantState=vismCasVariantState, ciscoVismCasMIBCompliances=ciscoVismCasMIBCompliances, vismCasXgcpFileName=vismCasXgcpFileName, vismCasTRinging=vismCasTRinging, vismCasCountryCode=vismCasCountryCode, vismCasVariantName=vismCasVariantName, vismCasFileName=vismCasFileName, vismCasXgcpMaxReXmitTime=vismCasXgcpMaxReXmitTime, vismCasInterdigitTMF=vismCasInterdigitTMF, ciscoVismCasXgcpVariantGroup=ciscoVismCasXgcpVariantGroup, vismCasVariantTable=vismCasVariantTable, vismCasXgcpInitialReXmitTime=vismCasXgcpInitialReXmitTime, vismCasVariantEntry=vismCasVariantEntry, ciscoVismCasMIBGroups=ciscoVismCasMIBGroups, ciscoVismCasVariantGroup=ciscoVismCasVariantGroup, vismCasRowStatus=vismCasRowStatus, vismCasInterdigitTpart=vismCasInterdigitTpart, ciscoVismCasMIB=ciscoVismCasMIB, cvcVariantDeprecatedGroup=cvcVariantDeprecatedGroup, vismCasXgcpVariantEntry=vismCasXgcpVariantEntry, PYSNMP_MODULE_ID=ciscoVismCasMIB)
# # PySNMP MIB module CISCO-WIRELESS-P2P-BPI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WIRELESS-P2P-BPI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:05:17 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, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") ModuleIdentity, TimeTicks, NotificationType, MibIdentifier, Unsigned32, ObjectIdentity, IpAddress, Counter32, Bits, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "TimeTicks", "NotificationType", "MibIdentifier", "Unsigned32", "ObjectIdentity", "IpAddress", "Counter32", "Bits", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Gauge32", "Counter64") TruthValue, TimeInterval, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TimeInterval", "DisplayString", "TextualConvention") ciscoWirelessP2pBpiMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 135)) if mibBuilder.loadTexts: ciscoWirelessP2pBpiMIB.setLastUpdated('9905181200Z') if mibBuilder.loadTexts: ciscoWirelessP2pBpiMIB.setOrganization('Cisco Systems Inc.') cwrBpiMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1)) cwrBpiRsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1)) cwrBpiRsBaseTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1), ) if mibBuilder.loadTexts: cwrBpiRsBaseTable.setStatus('current') cwrBpiRsBaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cwrBpiRsBaseEntry.setStatus('current') cwrBpiRsPrivacyEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsPrivacyEnable.setStatus('current') cwrBpiRsPublicKey = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 126))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsPublicKey.setStatus('current') cwrBpiRsAuthState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("start", 1), ("authWait", 2), ("authorized", 3), ("reauthWait", 4), ("authRejectWait", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthState.setStatus('current') cwrBpiRsAuthKeySequenceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthKeySequenceNumber.setStatus('current') cwrBpiRsAuthExpires = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 5), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthExpires.setStatus('current') cwrBpiRsAuthReset = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsAuthReset.setStatus('current') cwrBpiRsAuthGraceTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1800))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsAuthGraceTime.setStatus('current') cwrBpiRsTEKGraceTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1800))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsTEKGraceTime.setStatus('current') cwrBpiRsAuthWaitTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 30))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsAuthWaitTimeout.setStatus('current') cwrBpiRsReauthWaitTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 30))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsReauthWaitTimeout.setStatus('current') cwrBpiRsOpWaitTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsOpWaitTimeout.setStatus('current') cwrBpiRsRekeyWaitTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRsRekeyWaitTimeout.setStatus('current') cwrBpiRsAuthRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthRequests.setStatus('current') cwrBpiRsAuthReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthReplies.setStatus('current') cwrBpiRsAuthInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthInvalids.setStatus('current') cwrBpiRsAuthInvalidErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("noInformation", 0), ("unauthorizedSlave", 1), ("undefined", 2), ("unsolicited", 3), ("invalidKeySequence", 4), ("keyRequestAuthenticationFailure", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthInvalidErrorCode.setStatus('current') cwrBpiRsAuthInvalidErrorString = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 17), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsAuthInvalidErrorString.setStatus('current') cwrBpiRsTEKTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2), ) if mibBuilder.loadTexts: cwrBpiRsTEKTable.setStatus('current') cwrBpiRsTEKEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cwrBpiRsTEKEntry.setStatus('current') cwrBpiRsTEKEncryptionNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKEncryptionNegotiated.setStatus('current') cwrBpiRsTEKState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("start", 1), ("opWait", 2), ("opReauthWait", 3), ("operational", 4), ("rekeyWait", 5), ("rekeyReauthWait", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKState.setStatus('current') cwrBpiRsTEKExpiresOld = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 3), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKExpiresOld.setStatus('current') cwrBpiRsTEKExpiresNew = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 4), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKExpiresNew.setStatus('current') cwrBpiRsTEKKeyRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKKeyRequests.setStatus('current') cwrBpiRsTEKKeyReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKKeyReplies.setStatus('current') cwrBpiRsTEKInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKInvalids.setStatus('current') cwrBpiRsTEKAuthPends = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKAuthPends.setStatus('current') cwrBpiRsTEKInvalidErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("noInformation", 0), ("unauthorizedSlave", 1), ("undefined", 2), ("unsolicited", 3), ("invalidKeySequence", 4), ("keyRequestAuthenticationFailure", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKInvalidErrorCode.setStatus('current') cwrBpiRsTEKInvalidErrorString = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRsTEKInvalidErrorString.setStatus('current') cwrBpiRmObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2)) cwrBpiRmAuthTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1), ) if mibBuilder.loadTexts: cwrBpiRmAuthTable.setStatus('current') cwrBpiRmAuthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cwrBpiRmAuthEntry.setStatus('current') cwrBpiRmAuthPrivacyEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRmAuthPrivacyEnable.setStatus('current') cwrBpiRmAuthRsPublicKey = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 126))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsPublicKey.setStatus('current') cwrBpiRmAuthRsKeySequenceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsKeySequenceNumber.setStatus('current') cwrBpiRmAuthRsExpires = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 4), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsExpires.setStatus('current') cwrBpiRmAuthRsLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6048000))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRmAuthRsLifetime.setStatus('current') cwrBpiRmAuthRsReset = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRmAuthRsReset.setStatus('current') cwrBpiRmAuthRsRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsRequests.setStatus('current') cwrBpiRmAuthRsReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsReplies.setStatus('current') cwrBpiRmAuthRsInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthRsInvalids.setStatus('current') cwrBpiRmAuthInvalidErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("noInformation", 0), ("unauthorizedSlave", 1), ("undefined", 2), ("unsolicited", 3), ("invalidKeySequence", 4), ("keyRequestAuthenticationFailure", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthInvalidErrorCode.setStatus('current') cwrBpiRmAuthInvalidErrorString = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmAuthInvalidErrorString.setStatus('current') cwrBpiRmTEKTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2), ) if mibBuilder.loadTexts: cwrBpiRmTEKTable.setStatus('current') cwrBpiRmTEKEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cwrBpiRmTEKEntry.setStatus('current') cwrBpiRmTEKEncryptionNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKEncryptionNegotiated.setStatus('current') cwrBpiRmTEKLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 604800))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRmTEKLifetime.setStatus('current') cwrBpiRmTEKExpiresOld = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 3), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKExpiresOld.setStatus('current') cwrBpiRmTEKExpiresNew = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 4), TimeInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKExpiresNew.setStatus('current') cwrBpiRmTEKReset = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwrBpiRmTEKReset.setStatus('current') cwrBpiRmKeyRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmKeyRequests.setStatus('current') cwrBpiRmKeyReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmKeyReplies.setStatus('current') cwrBpiRmTEKInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKInvalids.setStatus('current') cwrBpiRmTEKInvalidErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("noInformation", 0), ("unauthorizedSlave", 1), ("undefined", 2), ("unsolicited", 3), ("invalidKeySequence", 4), ("keyRequestAuthenticationFailure", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKInvalidErrorCode.setStatus('current') cwrBpiRmTEKInvalidErrorString = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cwrBpiRmTEKInvalidErrorString.setStatus('current') cwrBpiNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 2)) cwrBpiConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3)) cwrBpiCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 1)) cwrBpiGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2)) cwrBpiBasicCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 1, 1)).setObjects(("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsGroup"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwrBpiBasicCompliance = cwrBpiBasicCompliance.setStatus('current') cwrBpiRsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2, 1)).setObjects(("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsPrivacyEnable"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsPublicKey"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthState"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthKeySequenceNumber"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthExpires"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthReset"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthGraceTime"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKGraceTime"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthWaitTimeout"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsReauthWaitTimeout"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsOpWaitTimeout"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsRekeyWaitTimeout"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthRequests"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthReplies"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthInvalids"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthInvalidErrorCode"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsAuthInvalidErrorString"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKEncryptionNegotiated"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKState"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKExpiresOld"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKExpiresNew"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKKeyRequests"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKKeyReplies"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKInvalids"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKAuthPends"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKInvalidErrorCode"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRsTEKInvalidErrorString")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwrBpiRsGroup = cwrBpiRsGroup.setStatus('current') cwrBpiRmGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2, 2)).setObjects(("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthPrivacyEnable"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsPublicKey"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsKeySequenceNumber"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsExpires"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsLifetime"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsReset"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsRequests"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsReplies"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthRsInvalids"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthInvalidErrorCode"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmAuthInvalidErrorString"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKEncryptionNegotiated"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKLifetime"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKExpiresOld"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKExpiresNew"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKReset"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmKeyRequests"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmKeyReplies"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKInvalids"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKInvalidErrorCode"), ("CISCO-WIRELESS-P2P-BPI-MIB", "cwrBpiRmTEKInvalidErrorString")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwrBpiRmGroup = cwrBpiRmGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-WIRELESS-P2P-BPI-MIB", cwrBpiRsOpWaitTimeout=cwrBpiRsOpWaitTimeout, cwrBpiRsTEKInvalidErrorCode=cwrBpiRsTEKInvalidErrorCode, cwrBpiRmTEKInvalids=cwrBpiRmTEKInvalids, cwrBpiRmAuthPrivacyEnable=cwrBpiRmAuthPrivacyEnable, cwrBpiGroups=cwrBpiGroups, cwrBpiConformance=cwrBpiConformance, cwrBpiRmTEKLifetime=cwrBpiRmTEKLifetime, cwrBpiRmAuthRsExpires=cwrBpiRmAuthRsExpires, cwrBpiRmAuthRsLifetime=cwrBpiRmAuthRsLifetime, cwrBpiRmTEKEntry=cwrBpiRmTEKEntry, cwrBpiRsTEKGraceTime=cwrBpiRsTEKGraceTime, cwrBpiRmAuthRsReplies=cwrBpiRmAuthRsReplies, cwrBpiRsTEKInvalidErrorString=cwrBpiRsTEKInvalidErrorString, cwrBpiRmTEKExpiresNew=cwrBpiRmTEKExpiresNew, PYSNMP_MODULE_ID=ciscoWirelessP2pBpiMIB, cwrBpiRmObjects=cwrBpiRmObjects, cwrBpiRmAuthTable=cwrBpiRmAuthTable, cwrBpiRmAuthEntry=cwrBpiRmAuthEntry, cwrBpiRsReauthWaitTimeout=cwrBpiRsReauthWaitTimeout, cwrBpiRsAuthReset=cwrBpiRsAuthReset, cwrBpiRsAuthInvalidErrorCode=cwrBpiRsAuthInvalidErrorCode, cwrBpiRsAuthWaitTimeout=cwrBpiRsAuthWaitTimeout, cwrBpiRmAuthRsRequests=cwrBpiRmAuthRsRequests, cwrBpiRsTEKTable=cwrBpiRsTEKTable, cwrBpiRmTEKTable=cwrBpiRmTEKTable, cwrBpiRsTEKExpiresOld=cwrBpiRsTEKExpiresOld, cwrBpiRsObjects=cwrBpiRsObjects, cwrBpiRsAuthInvalids=cwrBpiRsAuthInvalids, cwrBpiRsTEKExpiresNew=cwrBpiRsTEKExpiresNew, cwrBpiRsTEKKeyReplies=cwrBpiRsTEKKeyReplies, cwrBpiRsTEKEntry=cwrBpiRsTEKEntry, cwrBpiRsAuthRequests=cwrBpiRsAuthRequests, cwrBpiRsRekeyWaitTimeout=cwrBpiRsRekeyWaitTimeout, cwrBpiRsTEKState=cwrBpiRsTEKState, cwrBpiRsAuthExpires=cwrBpiRsAuthExpires, cwrBpiRmAuthRsPublicKey=cwrBpiRmAuthRsPublicKey, cwrBpiRmAuthRsReset=cwrBpiRmAuthRsReset, cwrBpiRsTEKAuthPends=cwrBpiRsTEKAuthPends, cwrBpiRsBaseTable=cwrBpiRsBaseTable, cwrBpiRsTEKInvalids=cwrBpiRsTEKInvalids, cwrBpiRmKeyReplies=cwrBpiRmKeyReplies, cwrBpiMIBObjects=cwrBpiMIBObjects, cwrBpiRsAuthKeySequenceNumber=cwrBpiRsAuthKeySequenceNumber, cwrBpiRmTEKInvalidErrorCode=cwrBpiRmTEKInvalidErrorCode, cwrBpiRsAuthState=cwrBpiRsAuthState, cwrBpiRsAuthInvalidErrorString=cwrBpiRsAuthInvalidErrorString, cwrBpiRsAuthReplies=cwrBpiRsAuthReplies, cwrBpiRmAuthRsInvalids=cwrBpiRmAuthRsInvalids, cwrBpiRmTEKReset=cwrBpiRmTEKReset, cwrBpiRsPublicKey=cwrBpiRsPublicKey, cwrBpiRmTEKInvalidErrorString=cwrBpiRmTEKInvalidErrorString, cwrBpiRsTEKKeyRequests=cwrBpiRsTEKKeyRequests, cwrBpiRmAuthInvalidErrorCode=cwrBpiRmAuthInvalidErrorCode, cwrBpiRmKeyRequests=cwrBpiRmKeyRequests, cwrBpiRsGroup=cwrBpiRsGroup, cwrBpiRsAuthGraceTime=cwrBpiRsAuthGraceTime, cwrBpiRmTEKExpiresOld=cwrBpiRmTEKExpiresOld, cwrBpiRsBaseEntry=cwrBpiRsBaseEntry, cwrBpiRmGroup=cwrBpiRmGroup, cwrBpiBasicCompliance=cwrBpiBasicCompliance, cwrBpiRsPrivacyEnable=cwrBpiRsPrivacyEnable, ciscoWirelessP2pBpiMIB=ciscoWirelessP2pBpiMIB, cwrBpiRsTEKEncryptionNegotiated=cwrBpiRsTEKEncryptionNegotiated, cwrBpiRmAuthRsKeySequenceNumber=cwrBpiRmAuthRsKeySequenceNumber, cwrBpiNotification=cwrBpiNotification, cwrBpiRmAuthInvalidErrorString=cwrBpiRmAuthInvalidErrorString, cwrBpiCompliances=cwrBpiCompliances, cwrBpiRmTEKEncryptionNegotiated=cwrBpiRmTEKEncryptionNegotiated)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (module_identity, time_ticks, notification_type, mib_identifier, unsigned32, object_identity, ip_address, counter32, bits, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, gauge32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'TimeTicks', 'NotificationType', 'MibIdentifier', 'Unsigned32', 'ObjectIdentity', 'IpAddress', 'Counter32', 'Bits', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Gauge32', 'Counter64') (truth_value, time_interval, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'TimeInterval', 'DisplayString', 'TextualConvention') cisco_wireless_p2p_bpi_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 135)) if mibBuilder.loadTexts: ciscoWirelessP2pBpiMIB.setLastUpdated('9905181200Z') if mibBuilder.loadTexts: ciscoWirelessP2pBpiMIB.setOrganization('Cisco Systems Inc.') cwr_bpi_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1)) cwr_bpi_rs_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1)) cwr_bpi_rs_base_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1)) if mibBuilder.loadTexts: cwrBpiRsBaseTable.setStatus('current') cwr_bpi_rs_base_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cwrBpiRsBaseEntry.setStatus('current') cwr_bpi_rs_privacy_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsPrivacyEnable.setStatus('current') cwr_bpi_rs_public_key = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 126))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsPublicKey.setStatus('current') cwr_bpi_rs_auth_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('start', 1), ('authWait', 2), ('authorized', 3), ('reauthWait', 4), ('authRejectWait', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthState.setStatus('current') cwr_bpi_rs_auth_key_sequence_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthKeySequenceNumber.setStatus('current') cwr_bpi_rs_auth_expires = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 5), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthExpires.setStatus('current') cwr_bpi_rs_auth_reset = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsAuthReset.setStatus('current') cwr_bpi_rs_auth_grace_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 1800))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsAuthGraceTime.setStatus('current') cwr_bpi_rs_tek_grace_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 1800))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsTEKGraceTime.setStatus('current') cwr_bpi_rs_auth_wait_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(2, 30))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsAuthWaitTimeout.setStatus('current') cwr_bpi_rs_reauth_wait_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(2, 30))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsReauthWaitTimeout.setStatus('current') cwr_bpi_rs_op_wait_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 10))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsOpWaitTimeout.setStatus('current') cwr_bpi_rs_rekey_wait_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 10))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRsRekeyWaitTimeout.setStatus('current') cwr_bpi_rs_auth_requests = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthRequests.setStatus('current') cwr_bpi_rs_auth_replies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthReplies.setStatus('current') cwr_bpi_rs_auth_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthInvalids.setStatus('current') cwr_bpi_rs_auth_invalid_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('noInformation', 0), ('unauthorizedSlave', 1), ('undefined', 2), ('unsolicited', 3), ('invalidKeySequence', 4), ('keyRequestAuthenticationFailure', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthInvalidErrorCode.setStatus('current') cwr_bpi_rs_auth_invalid_error_string = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 1, 1, 17), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsAuthInvalidErrorString.setStatus('current') cwr_bpi_rs_tek_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2)) if mibBuilder.loadTexts: cwrBpiRsTEKTable.setStatus('current') cwr_bpi_rs_tek_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cwrBpiRsTEKEntry.setStatus('current') cwr_bpi_rs_tek_encryption_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 1), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKEncryptionNegotiated.setStatus('current') cwr_bpi_rs_tek_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('start', 1), ('opWait', 2), ('opReauthWait', 3), ('operational', 4), ('rekeyWait', 5), ('rekeyReauthWait', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKState.setStatus('current') cwr_bpi_rs_tek_expires_old = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 3), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKExpiresOld.setStatus('current') cwr_bpi_rs_tek_expires_new = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 4), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKExpiresNew.setStatus('current') cwr_bpi_rs_tek_key_requests = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKKeyRequests.setStatus('current') cwr_bpi_rs_tek_key_replies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKKeyReplies.setStatus('current') cwr_bpi_rs_tek_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKInvalids.setStatus('current') cwr_bpi_rs_tek_auth_pends = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKAuthPends.setStatus('current') cwr_bpi_rs_tek_invalid_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('noInformation', 0), ('unauthorizedSlave', 1), ('undefined', 2), ('unsolicited', 3), ('invalidKeySequence', 4), ('keyRequestAuthenticationFailure', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKInvalidErrorCode.setStatus('current') cwr_bpi_rs_tek_invalid_error_string = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 1, 2, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRsTEKInvalidErrorString.setStatus('current') cwr_bpi_rm_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2)) cwr_bpi_rm_auth_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1)) if mibBuilder.loadTexts: cwrBpiRmAuthTable.setStatus('current') cwr_bpi_rm_auth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cwrBpiRmAuthEntry.setStatus('current') cwr_bpi_rm_auth_privacy_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRmAuthPrivacyEnable.setStatus('current') cwr_bpi_rm_auth_rs_public_key = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 126))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsPublicKey.setStatus('current') cwr_bpi_rm_auth_rs_key_sequence_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsKeySequenceNumber.setStatus('current') cwr_bpi_rm_auth_rs_expires = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 4), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsExpires.setStatus('current') cwr_bpi_rm_auth_rs_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 6048000))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRmAuthRsLifetime.setStatus('current') cwr_bpi_rm_auth_rs_reset = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRmAuthRsReset.setStatus('current') cwr_bpi_rm_auth_rs_requests = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsRequests.setStatus('current') cwr_bpi_rm_auth_rs_replies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsReplies.setStatus('current') cwr_bpi_rm_auth_rs_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthRsInvalids.setStatus('current') cwr_bpi_rm_auth_invalid_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('noInformation', 0), ('unauthorizedSlave', 1), ('undefined', 2), ('unsolicited', 3), ('invalidKeySequence', 4), ('keyRequestAuthenticationFailure', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthInvalidErrorCode.setStatus('current') cwr_bpi_rm_auth_invalid_error_string = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 1, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmAuthInvalidErrorString.setStatus('current') cwr_bpi_rm_tek_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2)) if mibBuilder.loadTexts: cwrBpiRmTEKTable.setStatus('current') cwr_bpi_rm_tek_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cwrBpiRmTEKEntry.setStatus('current') cwr_bpi_rm_tek_encryption_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 1), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKEncryptionNegotiated.setStatus('current') cwr_bpi_rm_tek_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 604800))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRmTEKLifetime.setStatus('current') cwr_bpi_rm_tek_expires_old = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 3), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKExpiresOld.setStatus('current') cwr_bpi_rm_tek_expires_new = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 4), time_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKExpiresNew.setStatus('current') cwr_bpi_rm_tek_reset = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwrBpiRmTEKReset.setStatus('current') cwr_bpi_rm_key_requests = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmKeyRequests.setStatus('current') cwr_bpi_rm_key_replies = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmKeyReplies.setStatus('current') cwr_bpi_rm_tek_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKInvalids.setStatus('current') cwr_bpi_rm_tek_invalid_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('noInformation', 0), ('unauthorizedSlave', 1), ('undefined', 2), ('unsolicited', 3), ('invalidKeySequence', 4), ('keyRequestAuthenticationFailure', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKInvalidErrorCode.setStatus('current') cwr_bpi_rm_tek_invalid_error_string = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 135, 1, 2, 2, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cwrBpiRmTEKInvalidErrorString.setStatus('current') cwr_bpi_notification = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 2)) cwr_bpi_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3)) cwr_bpi_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 1)) cwr_bpi_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2)) cwr_bpi_basic_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 1, 1)).setObjects(('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsGroup'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwr_bpi_basic_compliance = cwrBpiBasicCompliance.setStatus('current') cwr_bpi_rs_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2, 1)).setObjects(('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsPrivacyEnable'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsPublicKey'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthState'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthKeySequenceNumber'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthExpires'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthReset'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthGraceTime'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKGraceTime'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthWaitTimeout'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsReauthWaitTimeout'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsOpWaitTimeout'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsRekeyWaitTimeout'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthRequests'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthReplies'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthInvalids'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthInvalidErrorCode'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsAuthInvalidErrorString'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKEncryptionNegotiated'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKState'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKExpiresOld'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKExpiresNew'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKKeyRequests'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKKeyReplies'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKInvalids'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKAuthPends'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKInvalidErrorCode'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRsTEKInvalidErrorString')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwr_bpi_rs_group = cwrBpiRsGroup.setStatus('current') cwr_bpi_rm_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 135, 3, 2, 2)).setObjects(('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthPrivacyEnable'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsPublicKey'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsKeySequenceNumber'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsExpires'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsLifetime'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsReset'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsRequests'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsReplies'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthRsInvalids'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthInvalidErrorCode'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmAuthInvalidErrorString'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKEncryptionNegotiated'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKLifetime'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKExpiresOld'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKExpiresNew'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKReset'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmKeyRequests'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmKeyReplies'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKInvalids'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKInvalidErrorCode'), ('CISCO-WIRELESS-P2P-BPI-MIB', 'cwrBpiRmTEKInvalidErrorString')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwr_bpi_rm_group = cwrBpiRmGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-WIRELESS-P2P-BPI-MIB', cwrBpiRsOpWaitTimeout=cwrBpiRsOpWaitTimeout, cwrBpiRsTEKInvalidErrorCode=cwrBpiRsTEKInvalidErrorCode, cwrBpiRmTEKInvalids=cwrBpiRmTEKInvalids, cwrBpiRmAuthPrivacyEnable=cwrBpiRmAuthPrivacyEnable, cwrBpiGroups=cwrBpiGroups, cwrBpiConformance=cwrBpiConformance, cwrBpiRmTEKLifetime=cwrBpiRmTEKLifetime, cwrBpiRmAuthRsExpires=cwrBpiRmAuthRsExpires, cwrBpiRmAuthRsLifetime=cwrBpiRmAuthRsLifetime, cwrBpiRmTEKEntry=cwrBpiRmTEKEntry, cwrBpiRsTEKGraceTime=cwrBpiRsTEKGraceTime, cwrBpiRmAuthRsReplies=cwrBpiRmAuthRsReplies, cwrBpiRsTEKInvalidErrorString=cwrBpiRsTEKInvalidErrorString, cwrBpiRmTEKExpiresNew=cwrBpiRmTEKExpiresNew, PYSNMP_MODULE_ID=ciscoWirelessP2pBpiMIB, cwrBpiRmObjects=cwrBpiRmObjects, cwrBpiRmAuthTable=cwrBpiRmAuthTable, cwrBpiRmAuthEntry=cwrBpiRmAuthEntry, cwrBpiRsReauthWaitTimeout=cwrBpiRsReauthWaitTimeout, cwrBpiRsAuthReset=cwrBpiRsAuthReset, cwrBpiRsAuthInvalidErrorCode=cwrBpiRsAuthInvalidErrorCode, cwrBpiRsAuthWaitTimeout=cwrBpiRsAuthWaitTimeout, cwrBpiRmAuthRsRequests=cwrBpiRmAuthRsRequests, cwrBpiRsTEKTable=cwrBpiRsTEKTable, cwrBpiRmTEKTable=cwrBpiRmTEKTable, cwrBpiRsTEKExpiresOld=cwrBpiRsTEKExpiresOld, cwrBpiRsObjects=cwrBpiRsObjects, cwrBpiRsAuthInvalids=cwrBpiRsAuthInvalids, cwrBpiRsTEKExpiresNew=cwrBpiRsTEKExpiresNew, cwrBpiRsTEKKeyReplies=cwrBpiRsTEKKeyReplies, cwrBpiRsTEKEntry=cwrBpiRsTEKEntry, cwrBpiRsAuthRequests=cwrBpiRsAuthRequests, cwrBpiRsRekeyWaitTimeout=cwrBpiRsRekeyWaitTimeout, cwrBpiRsTEKState=cwrBpiRsTEKState, cwrBpiRsAuthExpires=cwrBpiRsAuthExpires, cwrBpiRmAuthRsPublicKey=cwrBpiRmAuthRsPublicKey, cwrBpiRmAuthRsReset=cwrBpiRmAuthRsReset, cwrBpiRsTEKAuthPends=cwrBpiRsTEKAuthPends, cwrBpiRsBaseTable=cwrBpiRsBaseTable, cwrBpiRsTEKInvalids=cwrBpiRsTEKInvalids, cwrBpiRmKeyReplies=cwrBpiRmKeyReplies, cwrBpiMIBObjects=cwrBpiMIBObjects, cwrBpiRsAuthKeySequenceNumber=cwrBpiRsAuthKeySequenceNumber, cwrBpiRmTEKInvalidErrorCode=cwrBpiRmTEKInvalidErrorCode, cwrBpiRsAuthState=cwrBpiRsAuthState, cwrBpiRsAuthInvalidErrorString=cwrBpiRsAuthInvalidErrorString, cwrBpiRsAuthReplies=cwrBpiRsAuthReplies, cwrBpiRmAuthRsInvalids=cwrBpiRmAuthRsInvalids, cwrBpiRmTEKReset=cwrBpiRmTEKReset, cwrBpiRsPublicKey=cwrBpiRsPublicKey, cwrBpiRmTEKInvalidErrorString=cwrBpiRmTEKInvalidErrorString, cwrBpiRsTEKKeyRequests=cwrBpiRsTEKKeyRequests, cwrBpiRmAuthInvalidErrorCode=cwrBpiRmAuthInvalidErrorCode, cwrBpiRmKeyRequests=cwrBpiRmKeyRequests, cwrBpiRsGroup=cwrBpiRsGroup, cwrBpiRsAuthGraceTime=cwrBpiRsAuthGraceTime, cwrBpiRmTEKExpiresOld=cwrBpiRmTEKExpiresOld, cwrBpiRsBaseEntry=cwrBpiRsBaseEntry, cwrBpiRmGroup=cwrBpiRmGroup, cwrBpiBasicCompliance=cwrBpiBasicCompliance, cwrBpiRsPrivacyEnable=cwrBpiRsPrivacyEnable, ciscoWirelessP2pBpiMIB=ciscoWirelessP2pBpiMIB, cwrBpiRsTEKEncryptionNegotiated=cwrBpiRsTEKEncryptionNegotiated, cwrBpiRmAuthRsKeySequenceNumber=cwrBpiRmAuthRsKeySequenceNumber, cwrBpiNotification=cwrBpiNotification, cwrBpiRmAuthInvalidErrorString=cwrBpiRmAuthInvalidErrorString, cwrBpiCompliances=cwrBpiCompliances, cwrBpiRmTEKEncryptionNegotiated=cwrBpiRmTEKEncryptionNegotiated)
class Solution: def maximum69Number (self, num: int) -> int: n = 1000 m = num #// as it is mentioned constraint as num < 10^4 while m: if((m//n) == 6): num += n*3 break m = m%n n = n/10 return int(num)
class Solution: def maximum69_number(self, num: int) -> int: n = 1000 m = num while m: if m // n == 6: num += n * 3 break m = m % n n = n / 10 return int(num)
class Solution: def maxDotProduct(self, nums1: List[int], nums2: List[int]) -> int: # how to fill the table n1 = len(nums1) n2 = len(nums2) dp = [[-math.inf] * (n2 + 1) for _ in range(n1 + 1)] for i in range(n1 - 1, -1, -1): for j in range(n2 - 1, -1, -1): dp[i][j] = max(nums1[i] * nums2[j] + max(0, dp[i + 1][j + 1]), max(dp[i + 1][j], dp[i][j + 1])) return dp[0][0]
class Solution: def max_dot_product(self, nums1: List[int], nums2: List[int]) -> int: n1 = len(nums1) n2 = len(nums2) dp = [[-math.inf] * (n2 + 1) for _ in range(n1 + 1)] for i in range(n1 - 1, -1, -1): for j in range(n2 - 1, -1, -1): dp[i][j] = max(nums1[i] * nums2[j] + max(0, dp[i + 1][j + 1]), max(dp[i + 1][j], dp[i][j + 1])) return dp[0][0]
# # PySNMP MIB module ADTRAN-IF-PERF-HISTORY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-IF-PERF-HISTORY-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:14:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # adGenAOSConformance, adGenAOSCommon = mibBuilder.importSymbols("ADTRAN-AOS", "adGenAOSConformance", "adGenAOSCommon") adIdentity, = mibBuilder.importSymbols("ADTRAN-MIB", "adIdentity") Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") HCPerfTotalCount, HCPerfValidIntervals, HCPerfInvalidIntervals, HCPerfCurrentCount, HCPerfIntervalCount, HCPerfTimeElapsed = mibBuilder.importSymbols("HC-PerfHist-TC-MIB", "HCPerfTotalCount", "HCPerfValidIntervals", "HCPerfInvalidIntervals", "HCPerfCurrentCount", "HCPerfIntervalCount", "HCPerfTimeElapsed") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Integer32, ObjectIdentity, IpAddress, Bits, ModuleIdentity, Gauge32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, iso, TimeTicks, Unsigned32, Counter64, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "ObjectIdentity", "IpAddress", "Bits", "ModuleIdentity", "Gauge32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "iso", "TimeTicks", "Unsigned32", "Counter64", "NotificationType") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") adGenAosIfPerfHistoryMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 1, 7)) adGenAosIfPerfHistoryMib.setRevisions(('2013-08-23 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setRevisionsDescriptions(('Initial version',)) if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setLastUpdated('201308230000Z') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setOrganization('ADTRAN Inc.') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setContactInfo('Info: www.adtran.com Postal: ADTRAN, Inc. 901 Explorer Blvd. Huntsville, AL 35806 Tel: +1 888 423-8726 E-mail: support@adtran.com') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setDescription('This MIB module defines high capacity performance statistics for interfaces within an AOS product. Copyright (C) ADTRAN, Inc. (2013).') adGenAosIfPerfHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7)) adIfPhCurTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1), ) if mibBuilder.loadTexts: adIfPhCurTable.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTable.setDescription('This table contains current performance history information that has been recorded since the last 15 minute interval ended and from when the last 1 day interval ended. This table is indexed by by ifIndex which SHOULD be maintained in a persistent manner.') adIfPhCurEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: adIfPhCurEntry.setStatus('current') if mibBuilder.loadTexts: adIfPhCurEntry.setDescription("This specifies the information contained in one entry of the adIfPerfHistoryCurTable. It is indexed by an interface's IfIndex.") adIfPhCurTimeElapsed15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 1), HCPerfTimeElapsed()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurTimeElapsed15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTimeElapsed15Min.setDescription('Total elapsed seconds in the current 15 minute interval.') adIfPhCurValidIntervals15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 2), HCPerfValidIntervals()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurValidIntervals15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurValidIntervals15Min.setDescription('Number of valid 15 minute intervals over the last 24 hours.') adIfPhCurInvalidIntervals15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 3), HCPerfInvalidIntervals()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInvalidIntervals15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals15Min.setDescription('Number of invalid 15 minute intervals over the last 24 hours.') adIfPhCurInOctets15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 4), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInOctets15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInOctets15Min.setDescription('Count of octets received in the current 15 minute interval.') adIfPhCurInUcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 5), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInUcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUcastPkts15Min.setDescription('Count of unicast packets received in the current 15 minute interval.') adIfPhCurInMcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 6), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInMcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInMcastPkts15Min.setDescription('Count of multicast packets received in the current 15 minute interval.') adIfPhCurInBcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 7), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInBcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInBcastPkts15Min.setDescription('Count of broadcast packets received in the current 15 minute interval.') adIfPhCurInDiscards15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 8), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInDiscards15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInDiscards15Min.setDescription('Count of inbound packets discarded in the current 15 minute interval.') adIfPhCurInErrors15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 9), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInErrors15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInErrors15Min.setDescription('Count of inbound packets containing errors in the current 15 minute interval.') adIfPhCurInUnknownProtos15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 10), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInUnknownProtos15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos15Min.setDescription('Count of inbound packets with an unknown or unsupported protocol in the current 15 minute interval.') adIfPhCurOutOctets15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 11), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutOctets15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutOctets15Min.setDescription('Count of octets transmitted in the current 15 minute interval.') adIfPhCurOutUcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 12), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutUcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts15Min.setDescription('Count of transmitted unicast packets in the current 15 minute interval.') adIfPhCurOutMcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 13), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutMcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts15Min.setDescription('Count of transmitted multicast packets in the current 15 minute interval.') adIfPhCurOutBcastPkts15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 14), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutBcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts15Min.setDescription('Count of transmitted broadcast packets in the current 15 minute interval.') adIfPhCurOutDiscards15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 15), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutDiscards15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutDiscards15Min.setDescription('Count of discarded outbound packets in the current 15 minute interval.') adIfPhCurOutErrors15Min = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 16), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutErrors15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutErrors15Min.setDescription('Count of outbound packets that could not be transmitted due to error in the current 15 minute interval.') adIfPhCurTimeElapsed1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 17), HCPerfTimeElapsed()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurTimeElapsed1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTimeElapsed1Day.setDescription('Total elapsed seconds in the current 1 day interval.') adIfPhCurValidIntervals1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 18), HCPerfValidIntervals()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurValidIntervals1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurValidIntervals1Day.setDescription('Number of valid 1 day intervals available.') adIfPhCurInvalidIntervals1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 19), HCPerfInvalidIntervals()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInvalidIntervals1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals1Day.setDescription('Number of invalid 1 day intervals available.') adIfPhCurInOctets1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 20), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInOctets1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInOctets1Day.setDescription('Count of octets received in the current 1 day interval.') adIfPhCurInUcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 21), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInUcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUcastPkts1Day.setDescription('Count of unicast packets received in the current 1 day interval.') adIfPhCurInMcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 22), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInMcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInMcastPkts1Day.setDescription('Count of multicast packets received in the current 1 day interval.') adIfPhCurInBcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 23), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInBcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInBcastPkts1Day.setDescription('Count of broadcast packets received in the current 1 day interval.') adIfPhCurInDiscards1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 24), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInDiscards1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInDiscards1Day.setDescription('Count of inbound packets discarded in the current 1 day interval.') adIfPhCurInErrors1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 25), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInErrors1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInErrors1Day.setDescription('Count of inbound packets containing errors in the current 1 day interval.') adIfPhCurInUnknownProtos1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 26), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurInUnknownProtos1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos1Day.setDescription('Count of inbound packets with an unknown or unsupported protocol in the current 1 day interval.') adIfPhCurOutOctets1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 27), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutOctets1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutOctets1Day.setDescription('Count of octets transmitted in the current 1 day interval.') adIfPhCurOutUcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 28), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutUcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts1Day.setDescription('Count of transmitted unicast packets in the current 1 day interval.') adIfPhCurOutMcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 29), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutMcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts1Day.setDescription('Count of transmitted multicast packets in the current 1 day interval.') adIfPhCurOutBcastPkts1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 30), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutBcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts1Day.setDescription('Count of transmitted broadcast packets in the current 1 day interval.') adIfPhCurOutDiscards1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 31), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutDiscards1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutDiscards1Day.setDescription('Count of discarded outbound packets in the current 1 day interval.') adIfPhCurOutErrors1Day = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 32), HCPerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPhCurOutErrors1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutErrors1Day.setDescription('Count of outbound packets that could not be transmitted due to error in the current 1 day interval.') adIfPh15MinIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2), ) if mibBuilder.loadTexts: adIfPh15MinIntervalTable.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalTable.setDescription('This table contains performance history information for each valid 15 minute interval. This table is indexed by by ifIndex and the interval number.') adIfPh15MinIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinIntervalNumber")) if mibBuilder.loadTexts: adIfPh15MinIntervalEntry.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalEntry.setDescription('An entry in the adIfPh15MinIntervalTable.') adIfPh15MinIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: adIfPh15MinIntervalNumber.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalNumber.setDescription('Performance history interval number. Interval 1 is the most recent previous interval; interval 96 is 24 hours ago. Intervals 2..96 are optional.') adIfPh15MinInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 2), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInOctets.setDescription('Count of octets received in the 15 minute interval.') adIfPh15MinInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 3), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInUcastPkts.setDescription('Count of unicast packets received in the 15 minute interval.') adIfPh15MinInMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 4), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInMcastPkts.setDescription('Count of multicast packets received in the 15 minute interval.') adIfPh15MinInBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 5), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInBcastPkts.setDescription('Count of broadcast packets received in the 15 minute interval.') adIfPh15MinInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 6), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInDiscards.setDescription('Count of inbound packets discarded in the 15 minute interval.') adIfPh15MinInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 7), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInErrors.setDescription('Count of inbound packets containing errors in the 15 minute interval.') adIfPh15MinInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 8), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInUnknownProtos.setDescription('Count of inbound packets with an unknown or unsupported protocol in the 15 minute interval.') adIfPh15MinOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 9), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutOctets.setDescription('Count of octets transmitted in the 15 minute interval.') adIfPh15MinOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 10), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutUcastPkts.setDescription('Count of transmitted unicast packets in the 15 minute interval.') adIfPh15MinOutMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 11), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutMcastPkts.setDescription('Count of transmitted multicast packets in the 15 minute interval.') adIfPh15MinOutBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 12), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutBcastPkts.setDescription('Count of transmitted broadcast packets in the 15 minute interval.') adIfPh15MinOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 13), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutDiscards.setDescription('Count of discarded outbound packets in the 15 minute interval.') adIfPh15MinOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 14), HCPerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh15MinOutErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutErrors.setDescription('Count of outbound packets that could not be transmitted due to error in the 15 minute interval.') adIfPh1DayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3), ) if mibBuilder.loadTexts: adIfPh1DayIntervalTable.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalTable.setDescription('This table contains performance history information for each valid 1 day interval. This table is indexed by by ifIndex and the interval number.') adIfPh1DayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayIntervalNumber")) if mibBuilder.loadTexts: adIfPh1DayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalEntry.setDescription('An entry in the adIfPh1DayIntervalTable.') adIfPh1DayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 30))) if mibBuilder.loadTexts: adIfPh1DayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalNumber.setDescription('Performance history interval number. Interval 1 is the most recent previous day; interval 7 is 7 days ago. Intervals 2..30 are optional.') adIfPh1DayInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 2), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInOctets.setDescription('Count of octets received in the 1 day interval.') adIfPh1DayInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 3), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInUcastPkts.setDescription('Count of unicast packets received in the 1 day interval.') adIfPh1DayInMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 4), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInMcastPkts.setDescription('Count of multicast packets received in the 1 day interval.') adIfPh1DayInBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 5), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInBcastPkts.setDescription('Count of broadcast packets received in the 1 day interval.') adIfPh1DayInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 6), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInDiscards.setDescription('Count of inbound packets discarded in the 1 day interval.') adIfPh1DayInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 7), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInErrors.setDescription('Count of inbound packets containing errors in the 1 day interval.') adIfPh1DayInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 8), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInUnknownProtos.setDescription('Count of inbound packets with an unknown or unsupported protocol in the 1 day interval.') adIfPh1DayOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 9), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutOctets.setDescription('Count of octets transmitted in the 1 day interval.') adIfPh1DayOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 10), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutUcastPkts.setDescription('Count of transmitted unicast packets in the 1 day interval.') adIfPh1DayOutMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 11), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutMcastPkts.setDescription('Count of transmitted multicast packets in the 1 day interval.') adIfPh1DayOutBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 12), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutBcastPkts.setDescription('Count of transmitted broadcast packets in the 1 day interval.') adIfPh1DayOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 13), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutDiscards.setDescription('Count of discarded outbound packets in the 1 day interval.') adIfPh1DayOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 14), HCPerfTotalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: adIfPh1DayOutErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutErrors.setDescription('Count of outbound packets that could not be transmitted due to error in the 1 day interval.') adGenAosIfPerfHistoryConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16)) adGenAosIfPerfHistoryGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1)) adGenAosIfPerfHistoryCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 2)) adGenAosIfPerfHistoryCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 2, 1)).setObjects(("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurGroup"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinIntervalGroup"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayIntervalGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adGenAosIfPerfHistoryCompliance = adGenAosIfPerfHistoryCompliance.setStatus('current') if mibBuilder.loadTexts: adGenAosIfPerfHistoryCompliance.setDescription('The compliance statement for SNMPv2 entities which implement interface performance history.') adIfPhCurGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 1)).setObjects(("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurTimeElapsed15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurValidIntervals15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInvalidIntervals15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInOctets15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInUcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInMcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInBcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInDiscards15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInErrors15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInUnknownProtos15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutOctets15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutUcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutMcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutBcastPkts15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutDiscards15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutErrors15Min"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurTimeElapsed1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurValidIntervals1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInvalidIntervals1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInOctets1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInUcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInMcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInBcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInDiscards1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInErrors1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurInUnknownProtos1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutOctets1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutUcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutMcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutBcastPkts1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutDiscards1Day"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPhCurOutErrors1Day")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adIfPhCurGroup = adIfPhCurGroup.setStatus('current') if mibBuilder.loadTexts: adIfPhCurGroup.setDescription('The Current Group.') adIfPh15MinIntervalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 2)).setObjects(("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInOctets"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInUcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInMcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInBcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInDiscards"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInErrors"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinInUnknownProtos"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutOctets"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutUcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutMcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutBcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutDiscards"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh15MinOutErrors")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adIfPh15MinIntervalGroup = adIfPh15MinIntervalGroup.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalGroup.setDescription('The 15 minute interval group.') adIfPh1DayIntervalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 3)).setObjects(("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInOctets"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInUcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInMcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInBcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInDiscards"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInErrors"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayInUnknownProtos"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutOctets"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutUcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutMcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutBcastPkts"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutDiscards"), ("ADTRAN-IF-PERF-HISTORY-MIB", "adIfPh1DayOutErrors")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): adIfPh1DayIntervalGroup = adIfPh1DayIntervalGroup.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalGroup.setDescription('The 1 day interval group.') mibBuilder.exportSymbols("ADTRAN-IF-PERF-HISTORY-MIB", adIfPh15MinInBcastPkts=adIfPh15MinInBcastPkts, adIfPhCurInvalidIntervals1Day=adIfPhCurInvalidIntervals1Day, adIfPh15MinIntervalNumber=adIfPh15MinIntervalNumber, adIfPh15MinIntervalTable=adIfPh15MinIntervalTable, adIfPhCurOutMcastPkts15Min=adIfPhCurOutMcastPkts15Min, adIfPhCurOutDiscards15Min=adIfPhCurOutDiscards15Min, adIfPhCurOutUcastPkts15Min=adIfPhCurOutUcastPkts15Min, adIfPh1DayInDiscards=adIfPh1DayInDiscards, adGenAosIfPerfHistory=adGenAosIfPerfHistory, adIfPh1DayInErrors=adIfPh1DayInErrors, adIfPhCurInUcastPkts1Day=adIfPhCurInUcastPkts1Day, adIfPhCurInMcastPkts15Min=adIfPhCurInMcastPkts15Min, adIfPhCurInUnknownProtos1Day=adIfPhCurInUnknownProtos1Day, adIfPh15MinInUcastPkts=adIfPh15MinInUcastPkts, adIfPh1DayIntervalNumber=adIfPh1DayIntervalNumber, adIfPh15MinInMcastPkts=adIfPh15MinInMcastPkts, adIfPhCurOutOctets1Day=adIfPhCurOutOctets1Day, adIfPhCurInUcastPkts15Min=adIfPhCurInUcastPkts15Min, adIfPhCurInUnknownProtos15Min=adIfPhCurInUnknownProtos15Min, adIfPh1DayInBcastPkts=adIfPh1DayInBcastPkts, adIfPhCurInBcastPkts15Min=adIfPhCurInBcastPkts15Min, adIfPhCurInErrors15Min=adIfPhCurInErrors15Min, adIfPhCurOutOctets15Min=adIfPhCurOutOctets15Min, adIfPhCurOutMcastPkts1Day=adIfPhCurOutMcastPkts1Day, adIfPhCurInvalidIntervals15Min=adIfPhCurInvalidIntervals15Min, adIfPh15MinIntervalEntry=adIfPh15MinIntervalEntry, adIfPhCurOutDiscards1Day=adIfPhCurOutDiscards1Day, adIfPh15MinInUnknownProtos=adIfPh15MinInUnknownProtos, adIfPhCurInDiscards15Min=adIfPhCurInDiscards15Min, adIfPh1DayIntervalEntry=adIfPh1DayIntervalEntry, adIfPhCurInErrors1Day=adIfPhCurInErrors1Day, adIfPhCurInDiscards1Day=adIfPhCurInDiscards1Day, adIfPh15MinInOctets=adIfPh15MinInOctets, adIfPhCurOutBcastPkts15Min=adIfPhCurOutBcastPkts15Min, adIfPh15MinInDiscards=adIfPh15MinInDiscards, adIfPhCurOutErrors15Min=adIfPhCurOutErrors15Min, adIfPhCurValidIntervals15Min=adIfPhCurValidIntervals15Min, adIfPh1DayOutBcastPkts=adIfPh1DayOutBcastPkts, adGenAosIfPerfHistoryCompliance=adGenAosIfPerfHistoryCompliance, adIfPh15MinOutOctets=adIfPh15MinOutOctets, adGenAosIfPerfHistoryConformance=adGenAosIfPerfHistoryConformance, adIfPh1DayIntervalTable=adIfPh1DayIntervalTable, adIfPh15MinIntervalGroup=adIfPh15MinIntervalGroup, adIfPh15MinOutUcastPkts=adIfPh15MinOutUcastPkts, adIfPh1DayInMcastPkts=adIfPh1DayInMcastPkts, adIfPhCurTable=adIfPhCurTable, adIfPh1DayInUcastPkts=adIfPh1DayInUcastPkts, adGenAosIfPerfHistoryMib=adGenAosIfPerfHistoryMib, adIfPhCurTimeElapsed15Min=adIfPhCurTimeElapsed15Min, adIfPhCurValidIntervals1Day=adIfPhCurValidIntervals1Day, adIfPhCurInBcastPkts1Day=adIfPhCurInBcastPkts1Day, adIfPh15MinOutDiscards=adIfPh15MinOutDiscards, PYSNMP_MODULE_ID=adGenAosIfPerfHistoryMib, adIfPhCurEntry=adIfPhCurEntry, adIfPh1DayOutOctets=adIfPh1DayOutOctets, adIfPh1DayOutErrors=adIfPh1DayOutErrors, adIfPh1DayOutUcastPkts=adIfPh1DayOutUcastPkts, adIfPhCurInOctets15Min=adIfPhCurInOctets15Min, adIfPh1DayInOctets=adIfPh1DayInOctets, adIfPh1DayInUnknownProtos=adIfPh1DayInUnknownProtos, adIfPhCurOutUcastPkts1Day=adIfPhCurOutUcastPkts1Day, adIfPh1DayOutMcastPkts=adIfPh1DayOutMcastPkts, adGenAosIfPerfHistoryCompliances=adGenAosIfPerfHistoryCompliances, adIfPhCurInMcastPkts1Day=adIfPhCurInMcastPkts1Day, adGenAosIfPerfHistoryGroups=adGenAosIfPerfHistoryGroups, adIfPhCurGroup=adIfPhCurGroup, adIfPhCurOutBcastPkts1Day=adIfPhCurOutBcastPkts1Day, adIfPh15MinOutMcastPkts=adIfPh15MinOutMcastPkts, adIfPhCurTimeElapsed1Day=adIfPhCurTimeElapsed1Day, adIfPh1DayOutDiscards=adIfPh1DayOutDiscards, adIfPh1DayIntervalGroup=adIfPh1DayIntervalGroup, adIfPhCurOutErrors1Day=adIfPhCurOutErrors1Day, adIfPh15MinOutBcastPkts=adIfPh15MinOutBcastPkts, adIfPh15MinOutErrors=adIfPh15MinOutErrors, adIfPh15MinInErrors=adIfPh15MinInErrors, adIfPhCurInOctets1Day=adIfPhCurInOctets1Day)
(ad_gen_aos_conformance, ad_gen_aos_common) = mibBuilder.importSymbols('ADTRAN-AOS', 'adGenAOSConformance', 'adGenAOSCommon') (ad_identity,) = mibBuilder.importSymbols('ADTRAN-MIB', 'adIdentity') (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (hc_perf_total_count, hc_perf_valid_intervals, hc_perf_invalid_intervals, hc_perf_current_count, hc_perf_interval_count, hc_perf_time_elapsed) = mibBuilder.importSymbols('HC-PerfHist-TC-MIB', 'HCPerfTotalCount', 'HCPerfValidIntervals', 'HCPerfInvalidIntervals', 'HCPerfCurrentCount', 'HCPerfIntervalCount', 'HCPerfTimeElapsed') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (integer32, object_identity, ip_address, bits, module_identity, gauge32, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, iso, time_ticks, unsigned32, counter64, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'ObjectIdentity', 'IpAddress', 'Bits', 'ModuleIdentity', 'Gauge32', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'iso', 'TimeTicks', 'Unsigned32', 'Counter64', 'NotificationType') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') ad_gen_aos_if_perf_history_mib = module_identity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 1, 7)) adGenAosIfPerfHistoryMib.setRevisions(('2013-08-23 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setRevisionsDescriptions(('Initial version',)) if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setLastUpdated('201308230000Z') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setOrganization('ADTRAN Inc.') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setContactInfo('Info: www.adtran.com Postal: ADTRAN, Inc. 901 Explorer Blvd. Huntsville, AL 35806 Tel: +1 888 423-8726 E-mail: support@adtran.com') if mibBuilder.loadTexts: adGenAosIfPerfHistoryMib.setDescription('This MIB module defines high capacity performance statistics for interfaces within an AOS product. Copyright (C) ADTRAN, Inc. (2013).') ad_gen_aos_if_perf_history = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7)) ad_if_ph_cur_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1)) if mibBuilder.loadTexts: adIfPhCurTable.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTable.setDescription('This table contains current performance history information that has been recorded since the last 15 minute interval ended and from when the last 1 day interval ended. This table is indexed by by ifIndex which SHOULD be maintained in a persistent manner.') ad_if_ph_cur_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: adIfPhCurEntry.setStatus('current') if mibBuilder.loadTexts: adIfPhCurEntry.setDescription("This specifies the information contained in one entry of the adIfPerfHistoryCurTable. It is indexed by an interface's IfIndex.") ad_if_ph_cur_time_elapsed15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 1), hc_perf_time_elapsed()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurTimeElapsed15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTimeElapsed15Min.setDescription('Total elapsed seconds in the current 15 minute interval.') ad_if_ph_cur_valid_intervals15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 2), hc_perf_valid_intervals()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurValidIntervals15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurValidIntervals15Min.setDescription('Number of valid 15 minute intervals over the last 24 hours.') ad_if_ph_cur_invalid_intervals15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 3), hc_perf_invalid_intervals()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals15Min.setDescription('Number of invalid 15 minute intervals over the last 24 hours.') ad_if_ph_cur_in_octets15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 4), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInOctets15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInOctets15Min.setDescription('Count of octets received in the current 15 minute interval.') ad_if_ph_cur_in_ucast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 5), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInUcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUcastPkts15Min.setDescription('Count of unicast packets received in the current 15 minute interval.') ad_if_ph_cur_in_mcast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 6), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInMcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInMcastPkts15Min.setDescription('Count of multicast packets received in the current 15 minute interval.') ad_if_ph_cur_in_bcast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 7), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInBcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInBcastPkts15Min.setDescription('Count of broadcast packets received in the current 15 minute interval.') ad_if_ph_cur_in_discards15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 8), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInDiscards15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInDiscards15Min.setDescription('Count of inbound packets discarded in the current 15 minute interval.') ad_if_ph_cur_in_errors15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 9), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInErrors15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInErrors15Min.setDescription('Count of inbound packets containing errors in the current 15 minute interval.') ad_if_ph_cur_in_unknown_protos15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 10), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos15Min.setDescription('Count of inbound packets with an unknown or unsupported protocol in the current 15 minute interval.') ad_if_ph_cur_out_octets15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 11), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutOctets15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutOctets15Min.setDescription('Count of octets transmitted in the current 15 minute interval.') ad_if_ph_cur_out_ucast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 12), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts15Min.setDescription('Count of transmitted unicast packets in the current 15 minute interval.') ad_if_ph_cur_out_mcast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 13), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts15Min.setDescription('Count of transmitted multicast packets in the current 15 minute interval.') ad_if_ph_cur_out_bcast_pkts15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 14), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts15Min.setDescription('Count of transmitted broadcast packets in the current 15 minute interval.') ad_if_ph_cur_out_discards15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 15), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutDiscards15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutDiscards15Min.setDescription('Count of discarded outbound packets in the current 15 minute interval.') ad_if_ph_cur_out_errors15_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 16), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutErrors15Min.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutErrors15Min.setDescription('Count of outbound packets that could not be transmitted due to error in the current 15 minute interval.') ad_if_ph_cur_time_elapsed1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 17), hc_perf_time_elapsed()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurTimeElapsed1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurTimeElapsed1Day.setDescription('Total elapsed seconds in the current 1 day interval.') ad_if_ph_cur_valid_intervals1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 18), hc_perf_valid_intervals()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurValidIntervals1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurValidIntervals1Day.setDescription('Number of valid 1 day intervals available.') ad_if_ph_cur_invalid_intervals1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 19), hc_perf_invalid_intervals()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInvalidIntervals1Day.setDescription('Number of invalid 1 day intervals available.') ad_if_ph_cur_in_octets1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 20), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInOctets1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInOctets1Day.setDescription('Count of octets received in the current 1 day interval.') ad_if_ph_cur_in_ucast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 21), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInUcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUcastPkts1Day.setDescription('Count of unicast packets received in the current 1 day interval.') ad_if_ph_cur_in_mcast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 22), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInMcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInMcastPkts1Day.setDescription('Count of multicast packets received in the current 1 day interval.') ad_if_ph_cur_in_bcast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 23), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInBcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInBcastPkts1Day.setDescription('Count of broadcast packets received in the current 1 day interval.') ad_if_ph_cur_in_discards1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 24), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInDiscards1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInDiscards1Day.setDescription('Count of inbound packets discarded in the current 1 day interval.') ad_if_ph_cur_in_errors1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 25), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInErrors1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInErrors1Day.setDescription('Count of inbound packets containing errors in the current 1 day interval.') ad_if_ph_cur_in_unknown_protos1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 26), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurInUnknownProtos1Day.setDescription('Count of inbound packets with an unknown or unsupported protocol in the current 1 day interval.') ad_if_ph_cur_out_octets1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 27), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutOctets1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutOctets1Day.setDescription('Count of octets transmitted in the current 1 day interval.') ad_if_ph_cur_out_ucast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 28), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutUcastPkts1Day.setDescription('Count of transmitted unicast packets in the current 1 day interval.') ad_if_ph_cur_out_mcast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 29), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutMcastPkts1Day.setDescription('Count of transmitted multicast packets in the current 1 day interval.') ad_if_ph_cur_out_bcast_pkts1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 30), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutBcastPkts1Day.setDescription('Count of transmitted broadcast packets in the current 1 day interval.') ad_if_ph_cur_out_discards1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 31), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutDiscards1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutDiscards1Day.setDescription('Count of discarded outbound packets in the current 1 day interval.') ad_if_ph_cur_out_errors1_day = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 1, 1, 32), hc_perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPhCurOutErrors1Day.setStatus('current') if mibBuilder.loadTexts: adIfPhCurOutErrors1Day.setDescription('Count of outbound packets that could not be transmitted due to error in the current 1 day interval.') ad_if_ph15_min_interval_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2)) if mibBuilder.loadTexts: adIfPh15MinIntervalTable.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalTable.setDescription('This table contains performance history information for each valid 15 minute interval. This table is indexed by by ifIndex and the interval number.') ad_if_ph15_min_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinIntervalNumber')) if mibBuilder.loadTexts: adIfPh15MinIntervalEntry.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalEntry.setDescription('An entry in the adIfPh15MinIntervalTable.') ad_if_ph15_min_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))) if mibBuilder.loadTexts: adIfPh15MinIntervalNumber.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalNumber.setDescription('Performance history interval number. Interval 1 is the most recent previous interval; interval 96 is 24 hours ago. Intervals 2..96 are optional.') ad_if_ph15_min_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 2), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInOctets.setDescription('Count of octets received in the 15 minute interval.') ad_if_ph15_min_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 3), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInUcastPkts.setDescription('Count of unicast packets received in the 15 minute interval.') ad_if_ph15_min_in_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 4), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInMcastPkts.setDescription('Count of multicast packets received in the 15 minute interval.') ad_if_ph15_min_in_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 5), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInBcastPkts.setDescription('Count of broadcast packets received in the 15 minute interval.') ad_if_ph15_min_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 6), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInDiscards.setDescription('Count of inbound packets discarded in the 15 minute interval.') ad_if_ph15_min_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 7), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInErrors.setDescription('Count of inbound packets containing errors in the 15 minute interval.') ad_if_ph15_min_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 8), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinInUnknownProtos.setDescription('Count of inbound packets with an unknown or unsupported protocol in the 15 minute interval.') ad_if_ph15_min_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 9), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutOctets.setDescription('Count of octets transmitted in the 15 minute interval.') ad_if_ph15_min_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 10), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutUcastPkts.setDescription('Count of transmitted unicast packets in the 15 minute interval.') ad_if_ph15_min_out_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 11), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutMcastPkts.setDescription('Count of transmitted multicast packets in the 15 minute interval.') ad_if_ph15_min_out_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 12), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutBcastPkts.setDescription('Count of transmitted broadcast packets in the 15 minute interval.') ad_if_ph15_min_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 13), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutDiscards.setDescription('Count of discarded outbound packets in the 15 minute interval.') ad_if_ph15_min_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 2, 1, 14), hc_perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh15MinOutErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinOutErrors.setDescription('Count of outbound packets that could not be transmitted due to error in the 15 minute interval.') ad_if_ph1_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3)) if mibBuilder.loadTexts: adIfPh1DayIntervalTable.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalTable.setDescription('This table contains performance history information for each valid 1 day interval. This table is indexed by by ifIndex and the interval number.') ad_if_ph1_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayIntervalNumber')) if mibBuilder.loadTexts: adIfPh1DayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalEntry.setDescription('An entry in the adIfPh1DayIntervalTable.') ad_if_ph1_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 30))) if mibBuilder.loadTexts: adIfPh1DayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalNumber.setDescription('Performance history interval number. Interval 1 is the most recent previous day; interval 7 is 7 days ago. Intervals 2..30 are optional.') ad_if_ph1_day_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 2), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInOctets.setDescription('Count of octets received in the 1 day interval.') ad_if_ph1_day_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 3), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInUcastPkts.setDescription('Count of unicast packets received in the 1 day interval.') ad_if_ph1_day_in_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 4), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInMcastPkts.setDescription('Count of multicast packets received in the 1 day interval.') ad_if_ph1_day_in_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 5), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInBcastPkts.setDescription('Count of broadcast packets received in the 1 day interval.') ad_if_ph1_day_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 6), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInDiscards.setDescription('Count of inbound packets discarded in the 1 day interval.') ad_if_ph1_day_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 7), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInErrors.setDescription('Count of inbound packets containing errors in the 1 day interval.') ad_if_ph1_day_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 8), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayInUnknownProtos.setDescription('Count of inbound packets with an unknown or unsupported protocol in the 1 day interval.') ad_if_ph1_day_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 9), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutOctets.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutOctets.setDescription('Count of octets transmitted in the 1 day interval.') ad_if_ph1_day_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 10), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutUcastPkts.setDescription('Count of transmitted unicast packets in the 1 day interval.') ad_if_ph1_day_out_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 11), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutMcastPkts.setDescription('Count of transmitted multicast packets in the 1 day interval.') ad_if_ph1_day_out_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 12), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutBcastPkts.setDescription('Count of transmitted broadcast packets in the 1 day interval.') ad_if_ph1_day_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 13), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutDiscards.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutDiscards.setDescription('Count of discarded outbound packets in the 1 day interval.') ad_if_ph1_day_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 1, 7, 3, 1, 14), hc_perf_total_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: adIfPh1DayOutErrors.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayOutErrors.setDescription('Count of outbound packets that could not be transmitted due to error in the 1 day interval.') ad_gen_aos_if_perf_history_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16)) ad_gen_aos_if_perf_history_groups = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1)) ad_gen_aos_if_perf_history_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 2)) ad_gen_aos_if_perf_history_compliance = module_compliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 2, 1)).setObjects(('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurGroup'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinIntervalGroup'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayIntervalGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_gen_aos_if_perf_history_compliance = adGenAosIfPerfHistoryCompliance.setStatus('current') if mibBuilder.loadTexts: adGenAosIfPerfHistoryCompliance.setDescription('The compliance statement for SNMPv2 entities which implement interface performance history.') ad_if_ph_cur_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 1)).setObjects(('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurTimeElapsed15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurValidIntervals15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInvalidIntervals15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInOctets15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInUcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInMcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInBcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInDiscards15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInErrors15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInUnknownProtos15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutOctets15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutUcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutMcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutBcastPkts15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutDiscards15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutErrors15Min'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurTimeElapsed1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurValidIntervals1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInvalidIntervals1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInOctets1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInUcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInMcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInBcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInDiscards1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInErrors1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurInUnknownProtos1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutOctets1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutUcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutMcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutBcastPkts1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutDiscards1Day'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPhCurOutErrors1Day')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_if_ph_cur_group = adIfPhCurGroup.setStatus('current') if mibBuilder.loadTexts: adIfPhCurGroup.setDescription('The Current Group.') ad_if_ph15_min_interval_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 2)).setObjects(('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInOctets'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInUcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInMcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInBcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInDiscards'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInErrors'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinInUnknownProtos'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutOctets'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutUcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutMcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutBcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutDiscards'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh15MinOutErrors')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_if_ph15_min_interval_group = adIfPh15MinIntervalGroup.setStatus('current') if mibBuilder.loadTexts: adIfPh15MinIntervalGroup.setDescription('The 15 minute interval group.') ad_if_ph1_day_interval_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 16, 1, 3)).setObjects(('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInOctets'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInUcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInMcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInBcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInDiscards'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInErrors'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayInUnknownProtos'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutOctets'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutUcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutMcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutBcastPkts'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutDiscards'), ('ADTRAN-IF-PERF-HISTORY-MIB', 'adIfPh1DayOutErrors')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ad_if_ph1_day_interval_group = adIfPh1DayIntervalGroup.setStatus('current') if mibBuilder.loadTexts: adIfPh1DayIntervalGroup.setDescription('The 1 day interval group.') mibBuilder.exportSymbols('ADTRAN-IF-PERF-HISTORY-MIB', adIfPh15MinInBcastPkts=adIfPh15MinInBcastPkts, adIfPhCurInvalidIntervals1Day=adIfPhCurInvalidIntervals1Day, adIfPh15MinIntervalNumber=adIfPh15MinIntervalNumber, adIfPh15MinIntervalTable=adIfPh15MinIntervalTable, adIfPhCurOutMcastPkts15Min=adIfPhCurOutMcastPkts15Min, adIfPhCurOutDiscards15Min=adIfPhCurOutDiscards15Min, adIfPhCurOutUcastPkts15Min=adIfPhCurOutUcastPkts15Min, adIfPh1DayInDiscards=adIfPh1DayInDiscards, adGenAosIfPerfHistory=adGenAosIfPerfHistory, adIfPh1DayInErrors=adIfPh1DayInErrors, adIfPhCurInUcastPkts1Day=adIfPhCurInUcastPkts1Day, adIfPhCurInMcastPkts15Min=adIfPhCurInMcastPkts15Min, adIfPhCurInUnknownProtos1Day=adIfPhCurInUnknownProtos1Day, adIfPh15MinInUcastPkts=adIfPh15MinInUcastPkts, adIfPh1DayIntervalNumber=adIfPh1DayIntervalNumber, adIfPh15MinInMcastPkts=adIfPh15MinInMcastPkts, adIfPhCurOutOctets1Day=adIfPhCurOutOctets1Day, adIfPhCurInUcastPkts15Min=adIfPhCurInUcastPkts15Min, adIfPhCurInUnknownProtos15Min=adIfPhCurInUnknownProtos15Min, adIfPh1DayInBcastPkts=adIfPh1DayInBcastPkts, adIfPhCurInBcastPkts15Min=adIfPhCurInBcastPkts15Min, adIfPhCurInErrors15Min=adIfPhCurInErrors15Min, adIfPhCurOutOctets15Min=adIfPhCurOutOctets15Min, adIfPhCurOutMcastPkts1Day=adIfPhCurOutMcastPkts1Day, adIfPhCurInvalidIntervals15Min=adIfPhCurInvalidIntervals15Min, adIfPh15MinIntervalEntry=adIfPh15MinIntervalEntry, adIfPhCurOutDiscards1Day=adIfPhCurOutDiscards1Day, adIfPh15MinInUnknownProtos=adIfPh15MinInUnknownProtos, adIfPhCurInDiscards15Min=adIfPhCurInDiscards15Min, adIfPh1DayIntervalEntry=adIfPh1DayIntervalEntry, adIfPhCurInErrors1Day=adIfPhCurInErrors1Day, adIfPhCurInDiscards1Day=adIfPhCurInDiscards1Day, adIfPh15MinInOctets=adIfPh15MinInOctets, adIfPhCurOutBcastPkts15Min=adIfPhCurOutBcastPkts15Min, adIfPh15MinInDiscards=adIfPh15MinInDiscards, adIfPhCurOutErrors15Min=adIfPhCurOutErrors15Min, adIfPhCurValidIntervals15Min=adIfPhCurValidIntervals15Min, adIfPh1DayOutBcastPkts=adIfPh1DayOutBcastPkts, adGenAosIfPerfHistoryCompliance=adGenAosIfPerfHistoryCompliance, adIfPh15MinOutOctets=adIfPh15MinOutOctets, adGenAosIfPerfHistoryConformance=adGenAosIfPerfHistoryConformance, adIfPh1DayIntervalTable=adIfPh1DayIntervalTable, adIfPh15MinIntervalGroup=adIfPh15MinIntervalGroup, adIfPh15MinOutUcastPkts=adIfPh15MinOutUcastPkts, adIfPh1DayInMcastPkts=adIfPh1DayInMcastPkts, adIfPhCurTable=adIfPhCurTable, adIfPh1DayInUcastPkts=adIfPh1DayInUcastPkts, adGenAosIfPerfHistoryMib=adGenAosIfPerfHistoryMib, adIfPhCurTimeElapsed15Min=adIfPhCurTimeElapsed15Min, adIfPhCurValidIntervals1Day=adIfPhCurValidIntervals1Day, adIfPhCurInBcastPkts1Day=adIfPhCurInBcastPkts1Day, adIfPh15MinOutDiscards=adIfPh15MinOutDiscards, PYSNMP_MODULE_ID=adGenAosIfPerfHistoryMib, adIfPhCurEntry=adIfPhCurEntry, adIfPh1DayOutOctets=adIfPh1DayOutOctets, adIfPh1DayOutErrors=adIfPh1DayOutErrors, adIfPh1DayOutUcastPkts=adIfPh1DayOutUcastPkts, adIfPhCurInOctets15Min=adIfPhCurInOctets15Min, adIfPh1DayInOctets=adIfPh1DayInOctets, adIfPh1DayInUnknownProtos=adIfPh1DayInUnknownProtos, adIfPhCurOutUcastPkts1Day=adIfPhCurOutUcastPkts1Day, adIfPh1DayOutMcastPkts=adIfPh1DayOutMcastPkts, adGenAosIfPerfHistoryCompliances=adGenAosIfPerfHistoryCompliances, adIfPhCurInMcastPkts1Day=adIfPhCurInMcastPkts1Day, adGenAosIfPerfHistoryGroups=adGenAosIfPerfHistoryGroups, adIfPhCurGroup=adIfPhCurGroup, adIfPhCurOutBcastPkts1Day=adIfPhCurOutBcastPkts1Day, adIfPh15MinOutMcastPkts=adIfPh15MinOutMcastPkts, adIfPhCurTimeElapsed1Day=adIfPhCurTimeElapsed1Day, adIfPh1DayOutDiscards=adIfPh1DayOutDiscards, adIfPh1DayIntervalGroup=adIfPh1DayIntervalGroup, adIfPhCurOutErrors1Day=adIfPhCurOutErrors1Day, adIfPh15MinOutBcastPkts=adIfPh15MinOutBcastPkts, adIfPh15MinOutErrors=adIfPh15MinOutErrors, adIfPh15MinInErrors=adIfPh15MinInErrors, adIfPhCurInOctets1Day=adIfPhCurInOctets1Day)
# coding=utf-8 # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { "default": { 'ENGINE': 'django.db.backends.mysql', 'HOST': 'mysql', 'PORT': 3306, 'USER': 'root', 'PASSWORD': 'root', 'NAME': 'cloudsky_backend' }, } CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://redis:6379", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", "PASSWORD": '' } } }
databases = {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'mysql', 'PORT': 3306, 'USER': 'root', 'PASSWORD': 'root', 'NAME': 'cloudsky_backend'}} caches = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://redis:6379', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient', 'PASSWORD': ''}}}
while True: try: s = input() # s = 'haha' print(s) except : # print(e) break
while True: try: s = input() print(s) except: break
# copybara:strip_for_google3_begin def pyproto_test_wrapper(name): src = name + "_wrapper.py" native.py_test( name = name, srcs = [src], legacy_create_init = False, main = src, data = ["@com_google_protobuf//:testdata"], deps = [ "//python:message_ext", "@com_google_protobuf//:python_common_test_protos", "@com_google_protobuf//:python_specific_test_protos", "@com_google_protobuf//:python_srcs", ], ) # copybara:replace_for_google3_begin # # def pyproto_test_wrapper(name): # src = name + "_wrapper.py" # native.py_test( # name = name, # srcs = [src], # main = src, # deps = [ # "//net/proto2/python/internal:" + name + "_for_deps", # "//net/proto2/python/public:use_upb_protos", # ], # ) # # copybara:replace_for_google3_end
def pyproto_test_wrapper(name): src = name + '_wrapper.py' native.py_test(name=name, srcs=[src], legacy_create_init=False, main=src, data=['@com_google_protobuf//:testdata'], deps=['//python:message_ext', '@com_google_protobuf//:python_common_test_protos', '@com_google_protobuf//:python_specific_test_protos', '@com_google_protobuf//:python_srcs'])
class History: def __init__(self): self.HistoryVector = [] def Add(self, action, observation=-1, state=None): self.HistoryVector.append(ENTRY(action, observation, state)) def GetVisitedStates(self): states = [] if self.HistoryVector: for history in self.HistoryVector: if history.State: states.append(history.State) return states def Pop(self): self.HistoryVector = self.HistoryVector[:-1] def Truncate(self, t): self.HistoryVector = self.HistoryVector[:t] def Clear(self): self.HistoryVector[:] = [] def Forget(self, t): self.HistoryVector = self.HistoryVector[t:] def Size(self): return len(self.HistoryVector) def Back(self): assert(self.Size() > 0) return self.HistoryVector[-1] def __eq__(self, other): if(other.Size() != self.Size()): return False for i,history in enumerate(other): if (history.Action != self.HistoryVector[i].Action) or \ (history.Observation != self.HistoryVector[i].Observation): return False return True def __getitem__(self, t): assert(t>=0 and t<self.Size()) return self.HistoryVector[t] class ENTRY: def __init__(self, action, observation, state): self.Action = action self.Observation = observation self.State = state def __str__(self): return "(" + str(self.Action) + " , " + str(self.Observation) + ")" if __name__ == "__main__": entry = ENTRY(1, 1, None) history = History() history.Add(1, 1) assert(history.Size() == 1) history.Add(2, 2) print(history) assert(History().Add(1, 1) == History().Add(1, 1))
class History: def __init__(self): self.HistoryVector = [] def add(self, action, observation=-1, state=None): self.HistoryVector.append(entry(action, observation, state)) def get_visited_states(self): states = [] if self.HistoryVector: for history in self.HistoryVector: if history.State: states.append(history.State) return states def pop(self): self.HistoryVector = self.HistoryVector[:-1] def truncate(self, t): self.HistoryVector = self.HistoryVector[:t] def clear(self): self.HistoryVector[:] = [] def forget(self, t): self.HistoryVector = self.HistoryVector[t:] def size(self): return len(self.HistoryVector) def back(self): assert self.Size() > 0 return self.HistoryVector[-1] def __eq__(self, other): if other.Size() != self.Size(): return False for (i, history) in enumerate(other): if history.Action != self.HistoryVector[i].Action or history.Observation != self.HistoryVector[i].Observation: return False return True def __getitem__(self, t): assert t >= 0 and t < self.Size() return self.HistoryVector[t] class Entry: def __init__(self, action, observation, state): self.Action = action self.Observation = observation self.State = state def __str__(self): return '(' + str(self.Action) + ' , ' + str(self.Observation) + ')' if __name__ == '__main__': entry = entry(1, 1, None) history = history() history.Add(1, 1) assert history.Size() == 1 history.Add(2, 2) print(history) assert history().Add(1, 1) == history().Add(1, 1)
_FONT = { 32: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 33: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1032447, 1032447, 1032447, 1048575, 1048575, 1048575, 1048575], 34: [10, 1048575, 1048575, 1048575, 1045455, 1045455, 1045455, 1045455, 1045455, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 35: [10, 1048575, 1048575, 1048575, 1048575, 986895, 986895, 986895, 786435, 786435, 986895, 986895, 986895, 786435, 786435, 986895, 986895, 1048575, 1048575, 1048575, 1048575], 36: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 983103, 983043, 1048515, 1048515, 1044483, 983055, 787455, 802815, 802803, 786435, 1032207, 1044735, 1044735, 1048575, 1048575], 37: [10, 1048575, 1048575, 1048575, 1048575, 851907, 999228, 1036092, 1036092, 1045308, 1047747, 986367, 848703, 848847, 848847, 848883, 987132, 1048575, 1048575, 1048575, 1048575], 38: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 986895, 1032255, 798735, 786639, 787395, 987075, 790275, 835587, 61455, 1048575, 1048575, 1048575, 1048575], 39: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 40: [10, 1048575, 1048575, 1048575, 1048575, 987135, 1033215, 1044735, 1047615, 1047615, 1048335, 1048335, 1048335, 1048335, 1048335, 1047615, 1047615, 1044735, 984063, 987135, 1048575], 41: [10, 1048575, 1048575, 1048575, 1048575, 1048335, 1047567, 1044735, 1033215, 1033215, 987135, 987135, 987135, 987135, 987135, 1033215, 1033215, 1044735, 1047615, 1048335, 1048575], 42: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 798915, 786435, 1044735, 1032255, 986895, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 43: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1047807, 1047807, 1047807, 1047807, 983043, 1047807, 1047807, 1047807, 1047807, 1048575, 1048575, 1048575, 1048575], 44: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032447, 1032447, 1032447, 1033215, 1044735, 1047615, 1048575], 45: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 46: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 47: [10, 1048575, 1048575, 1048575, 999423, 1036287, 1036287, 1036287, 1045503, 1045503, 1045503, 1047807, 1047807, 1048383, 1048383, 1048383, 1048527, 1048527, 1048527, 1048563, 1048575], 48: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 798915, 798915, 802755, 802755, 986895, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 49: [10, 1048575, 1048575, 1048575, 1048575, 1033215, 1032447, 1032207, 1033155, 1033215, 1033215, 1033215, 1033215, 1033215, 1033215, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 50: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 983043, 987123, 987135, 987135, 1033215, 1044735, 1047615, 1048335, 1048527, 983043, 983043, 1048575, 1048575, 1048575, 1048575], 51: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 786435, 802767, 802815, 790527, 983103, 983103, 790527, 802815, 790515, 983043, 1032207, 1048575, 1048575, 1048575, 1048575], 52: [10, 1048575, 1048575, 1048575, 1048575, 987135, 984063, 983295, 986175, 986943, 986895, 987075, 786435, 786435, 987135, 987135, 987135, 1048575, 1048575, 1048575, 1048575], 53: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1032207, 983055, 790527, 802815, 802815, 790515, 983043, 1032207, 1048575, 1048575, 1048575, 1048575], 54: [10, 1048575, 1048575, 1048575, 1048575, 984063, 983103, 1047567, 1048335, 1032195, 983043, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 55: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 802815, 987135, 1033215, 1033215, 1044735, 1044735, 1044735, 1047615, 1047615, 1047615, 1048575, 1048575, 1048575, 1048575], 56: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 786447, 802755, 802755, 986883, 1032207, 983055, 790467, 802755, 802755, 983043, 1032255, 1048575, 1048575, 1048575, 1048575], 57: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 790275, 802755, 802755, 802755, 786447, 786495, 987135, 984063, 1032207, 1047567, 1048575, 1048575, 1048575, 1048575], 58: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 59: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1032447, 1032447, 1032447, 1033215, 1044735, 1047615, 1048575], 60: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802815, 984063, 1047567, 1048515, 1047567, 984063, 802815, 1048575, 1048575, 1048575, 1048575, 1048575], 61: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786435, 1048575, 1048575, 786435, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 62: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048515, 1047567, 984063, 802815, 984063, 1047567, 1048515, 1048575, 1048575, 1048575, 1048575, 1048575], 63: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 983043, 987123, 987135, 1033215, 1044735, 1047615, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 64: [10, 1048575, 1048575, 1048575, 1048575, 1032447, 983103, 790287, 802575, 802755, 787395, 786627, 798915, 798915, 786627, 787395, 1048335, 1047567, 983103, 983295, 1048575], 65: [10, 1048575, 1048575, 1048575, 1048575, 1044543, 1032975, 1032975, 1032975, 1032975, 986883, 987075, 987075, 983043, 983040, 802800, 802800, 1048575, 1048575, 1048575, 1048575], 66: [10, 1048575, 1048575, 1048575, 1048575, 1044483, 983043, 987075, 987075, 987075, 1044483, 983043, 802755, 802755, 790467, 983043, 1032195, 1048575, 1048575, 1048575, 1048575], 67: [10, 1048575, 1048575, 1048575, 1048575, 983295, 786495, 850959, 1048323, 1048515, 1048515, 1048515, 1048515, 1048323, 851727, 786447, 983295, 1048575, 1048575, 1048575, 1048575], 68: [10, 1048575, 1048575, 1048575, 1048575, 1044483, 983043, 987075, 802755, 802755, 802755, 802755, 802755, 802755, 987075, 983043, 1044483, 1048575, 1048575, 1048575, 1048575], 69: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1048335, 983055, 983055, 1048335, 1048335, 1048335, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 70: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1048335, 983055, 983055, 1048335, 1048335, 1048335, 1048335, 1048335, 1048575, 1048575, 1048575, 1048575], 71: [10, 1048575, 1048575, 1048575, 1048575, 983295, 786495, 850959, 1048323, 1048515, 1048515, 802755, 802755, 802563, 802575, 786447, 786687, 1048575, 1048575, 1048575, 1048575], 72: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 786435, 786435, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 73: [10, 1048575, 1048575, 1048575, 1048575, 983055, 983055, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 983055, 983055, 1048575, 1048575, 1048575, 1048575], 74: [10, 1048575, 1048575, 1048575, 1048575, 983055, 983055, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 984051, 1032195, 1044495, 1048575, 1048575, 1048575, 1048575], 75: [10, 1048575, 1048575, 1048575, 1048575, 802755, 987075, 1033155, 1032387, 1044675, 1047555, 1044483, 1044675, 1033155, 987075, 987075, 802755, 1048575, 1048575, 1048575, 1048575], 76: [10, 1048575, 1048575, 1048575, 1048575, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 77: [10, 1048575, 1048575, 1048575, 1048575, 986895, 986895, 986895, 789519, 798915, 798915, 798915, 798915, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 78: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802563, 802563, 801987, 801987, 799683, 799683, 799683, 790467, 790467, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 79: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 802755, 802755, 802755, 802755, 986895, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 80: [10, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 790467, 983043, 1032195, 1048515, 1048515, 1048515, 1048515, 1048575, 1048575, 1048575, 1048575], 81: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 802755, 802755, 802755, 802755, 790275, 983055, 1032255, 1032447, 787455, 802815, 1048575], 82: [10, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 790467, 983043, 1032195, 987075, 987075, 802755, 65475, 1048575, 1048575, 1048575, 1048575], 83: [10, 1048575, 1048575, 1048575, 1048575, 983103, 786447, 851907, 1048515, 1048323, 1032207, 983103, 790527, 802815, 802803, 786435, 1032207, 1048575, 1048575, 1048575, 1048575], 84: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575], 85: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 86: [10, 1048575, 1048575, 1048575, 1048575, 802800, 802800, 987075, 987075, 987075, 986883, 1032975, 1032975, 1032207, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 87: [10, 1048575, 1048575, 1048575, 1048575, 65520, 65520, 65520, 65520, 61680, 61680, 61680, 53040, 53040, 53040, 16320, 16320, 1048575, 1048575, 1048575, 1048575], 88: [10, 1048575, 1048575, 1048575, 1048575, 802800, 987075, 987075, 1032975, 1044543, 1044543, 1044543, 1032207, 1032975, 987075, 987075, 802800, 1048575, 1048575, 1048575, 1048575], 89: [10, 1048575, 1048575, 1048575, 1048575, 65520, 802755, 802755, 986895, 986895, 1032255, 1032255, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575], 90: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 790527, 987135, 1033215, 1044735, 1044543, 1047615, 1048335, 1048323, 786435, 786435, 1048575, 1048575, 1048575, 1048575], 91: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1032255, 1048575], 92: [10, 1048575, 1048575, 1048575, 1048563, 1048527, 1048527, 1048527, 1048383, 1048383, 1048383, 1047807, 1047807, 1045503, 1045503, 1045503, 1036287, 1036287, 1036287, 999423, 1048575], 93: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1032255, 1048575], 94: [10, 1048575, 1048575, 1048575, 1048575, 1047807, 1044543, 1045311, 1036239, 987075, 999411, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 95: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786432, 1048575], 96: [10, 1048575, 1048575, 1048575, 1048383, 1047807, 1045503, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 97: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983055, 786447, 802815, 786495, 802755, 802755, 802755, 786435, 786495, 1048575, 1048575, 1048575, 1048575], 98: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 1032195, 983043, 790467, 802755, 802755, 802755, 790467, 983043, 1032195, 1048575, 1048575, 1048575, 1048575], 99: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786687, 786447, 1048323, 1048515, 1048515, 1048515, 1048323, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 100: [10, 1048575, 1048575, 1048575, 802815, 802815, 802815, 802815, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 101: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 786447, 802755, 786435, 1048515, 1048515, 1048323, 983055, 983103, 1048575, 1048575, 1048575, 1048575], 102: [10, 1048575, 1048575, 1048575, 255, 63, 1047615, 1047615, 786435, 786435, 1047615, 1047615, 1047615, 1047615, 1047615, 1047615, 1047615, 1048575, 1048575, 1048575, 1048575], 103: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 802815, 983043, 1032195, 1048575], 104: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 1032195, 983043, 790467, 802755, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 105: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 1048575, 1044483, 1044483, 1044735, 1044735, 1044735, 1044735, 1044735, 786687, 787455, 1048575, 1048575, 1048575, 1048575], 106: [10, 1048575, 1048575, 1048575, 1048575, 1033215, 1033215, 1048575, 983055, 983055, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 983043, 1032207, 1048575], 107: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 790467, 984003, 1032387, 1044483, 1047555, 1044675, 1033155, 987075, 802755, 1048575, 1048575, 1048575, 1048575], 108: [10, 1048575, 1048575, 1048575, 1044483, 1044483, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 786687, 787455, 1048575, 1048575, 1048575, 1048575], 109: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983043, 786435, 798915, 798915, 798915, 798915, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 110: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 111: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 790275, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 112: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 802755, 790467, 983043, 1032195, 1048515, 1048515, 1048515, 1048575], 113: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 802815, 802815, 802815, 1048575], 114: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048575, 1048575, 1048575, 1048575], 115: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786435, 1048515, 1047555, 983055, 787455, 802803, 786435, 983055, 1048575, 1048575, 1048575, 1048575], 116: [10, 1048575, 1048575, 1048575, 1048575, 1047615, 1047615, 1047615, 786435, 786435, 1047615, 1047615, 1047615, 1047615, 1047615, 786495, 786687, 1048575, 1048575, 1048575, 1048575], 117: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 802755, 802563, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 118: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 986895, 986895, 986895, 986895, 1032255, 1032255, 1032255, 1048575, 1048575, 1048575, 1048575], 119: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802800, 802800, 802032, 802032, 998451, 983811, 983811, 983811, 987075, 1048575, 1048575, 1048575, 1048575], 120: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 986895, 1032255, 1032255, 1044735, 1032255, 1035327, 986895, 802755, 1048575, 1048575, 1048575, 1048575], 121: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802575, 986895, 986895, 986175, 986175, 983103, 1032447, 1032447, 1044483, 1047555, 1048575], 122: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983043, 983043, 1033215, 1044735, 1047615, 1048335, 1048335, 983043, 983043, 1048575, 1048575, 1048575, 1048575], 123: [10, 1048575, 1048575, 1048575, 787455, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048335, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 787455, 1048575], 124: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575], 125: [10, 1048575, 1048575, 1048575, 1047555, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 987135, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1047555, 1048575], 126: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 850959, 786435, 984051, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], }
_font = {32: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 33: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1032447, 1032447, 1032447, 1048575, 1048575, 1048575, 1048575], 34: [10, 1048575, 1048575, 1048575, 1045455, 1045455, 1045455, 1045455, 1045455, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 35: [10, 1048575, 1048575, 1048575, 1048575, 986895, 986895, 986895, 786435, 786435, 986895, 986895, 986895, 786435, 786435, 986895, 986895, 1048575, 1048575, 1048575, 1048575], 36: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 983103, 983043, 1048515, 1048515, 1044483, 983055, 787455, 802815, 802803, 786435, 1032207, 1044735, 1044735, 1048575, 1048575], 37: [10, 1048575, 1048575, 1048575, 1048575, 851907, 999228, 1036092, 1036092, 1045308, 1047747, 986367, 848703, 848847, 848847, 848883, 987132, 1048575, 1048575, 1048575, 1048575], 38: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 986895, 1032255, 798735, 786639, 787395, 987075, 790275, 835587, 61455, 1048575, 1048575, 1048575, 1048575], 39: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 40: [10, 1048575, 1048575, 1048575, 1048575, 987135, 1033215, 1044735, 1047615, 1047615, 1048335, 1048335, 1048335, 1048335, 1048335, 1047615, 1047615, 1044735, 984063, 987135, 1048575], 41: [10, 1048575, 1048575, 1048575, 1048575, 1048335, 1047567, 1044735, 1033215, 1033215, 987135, 987135, 987135, 987135, 987135, 1033215, 1033215, 1044735, 1047615, 1048335, 1048575], 42: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 798915, 786435, 1044735, 1032255, 986895, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 43: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1047807, 1047807, 1047807, 1047807, 983043, 1047807, 1047807, 1047807, 1047807, 1048575, 1048575, 1048575, 1048575], 44: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032447, 1032447, 1032447, 1033215, 1044735, 1047615, 1048575], 45: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 46: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 47: [10, 1048575, 1048575, 1048575, 999423, 1036287, 1036287, 1036287, 1045503, 1045503, 1045503, 1047807, 1047807, 1048383, 1048383, 1048383, 1048527, 1048527, 1048527, 1048563, 1048575], 48: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 798915, 798915, 802755, 802755, 986895, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 49: [10, 1048575, 1048575, 1048575, 1048575, 1033215, 1032447, 1032207, 1033155, 1033215, 1033215, 1033215, 1033215, 1033215, 1033215, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 50: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 983043, 987123, 987135, 987135, 1033215, 1044735, 1047615, 1048335, 1048527, 983043, 983043, 1048575, 1048575, 1048575, 1048575], 51: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 786435, 802767, 802815, 790527, 983103, 983103, 790527, 802815, 790515, 983043, 1032207, 1048575, 1048575, 1048575, 1048575], 52: [10, 1048575, 1048575, 1048575, 1048575, 987135, 984063, 983295, 986175, 986943, 986895, 987075, 786435, 786435, 987135, 987135, 987135, 1048575, 1048575, 1048575, 1048575], 53: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1032207, 983055, 790527, 802815, 802815, 790515, 983043, 1032207, 1048575, 1048575, 1048575, 1048575], 54: [10, 1048575, 1048575, 1048575, 1048575, 984063, 983103, 1047567, 1048335, 1032195, 983043, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 55: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 802815, 987135, 1033215, 1033215, 1044735, 1044735, 1044735, 1047615, 1047615, 1047615, 1048575, 1048575, 1048575, 1048575], 56: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 786447, 802755, 802755, 986883, 1032207, 983055, 790467, 802755, 802755, 983043, 1032255, 1048575, 1048575, 1048575, 1048575], 57: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 790275, 802755, 802755, 802755, 786447, 786495, 987135, 984063, 1032207, 1047567, 1048575, 1048575, 1048575, 1048575], 58: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 59: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1032447, 1032447, 1032447, 1033215, 1044735, 1047615, 1048575], 60: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802815, 984063, 1047567, 1048515, 1047567, 984063, 802815, 1048575, 1048575, 1048575, 1048575, 1048575], 61: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786435, 1048575, 1048575, 786435, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 62: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048515, 1047567, 984063, 802815, 984063, 1047567, 1048515, 1048575, 1048575, 1048575, 1048575, 1048575], 63: [10, 1048575, 1048575, 1048575, 1048575, 1032207, 983043, 987123, 987135, 1033215, 1044735, 1047615, 1048575, 1048575, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 64: [10, 1048575, 1048575, 1048575, 1048575, 1032447, 983103, 790287, 802575, 802755, 787395, 786627, 798915, 798915, 786627, 787395, 1048335, 1047567, 983103, 983295, 1048575], 65: [10, 1048575, 1048575, 1048575, 1048575, 1044543, 1032975, 1032975, 1032975, 1032975, 986883, 987075, 987075, 983043, 983040, 802800, 802800, 1048575, 1048575, 1048575, 1048575], 66: [10, 1048575, 1048575, 1048575, 1048575, 1044483, 983043, 987075, 987075, 987075, 1044483, 983043, 802755, 802755, 790467, 983043, 1032195, 1048575, 1048575, 1048575, 1048575], 67: [10, 1048575, 1048575, 1048575, 1048575, 983295, 786495, 850959, 1048323, 1048515, 1048515, 1048515, 1048515, 1048323, 851727, 786447, 983295, 1048575, 1048575, 1048575, 1048575], 68: [10, 1048575, 1048575, 1048575, 1048575, 1044483, 983043, 987075, 802755, 802755, 802755, 802755, 802755, 802755, 987075, 983043, 1044483, 1048575, 1048575, 1048575, 1048575], 69: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1048335, 983055, 983055, 1048335, 1048335, 1048335, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 70: [10, 1048575, 1048575, 1048575, 1048575, 786447, 786447, 1048335, 1048335, 1048335, 983055, 983055, 1048335, 1048335, 1048335, 1048335, 1048335, 1048575, 1048575, 1048575, 1048575], 71: [10, 1048575, 1048575, 1048575, 1048575, 983295, 786495, 850959, 1048323, 1048515, 1048515, 802755, 802755, 802563, 802575, 786447, 786687, 1048575, 1048575, 1048575, 1048575], 72: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 786435, 786435, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 73: [10, 1048575, 1048575, 1048575, 1048575, 983055, 983055, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 983055, 983055, 1048575, 1048575, 1048575, 1048575], 74: [10, 1048575, 1048575, 1048575, 1048575, 983055, 983055, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 984051, 1032195, 1044495, 1048575, 1048575, 1048575, 1048575], 75: [10, 1048575, 1048575, 1048575, 1048575, 802755, 987075, 1033155, 1032387, 1044675, 1047555, 1044483, 1044675, 1033155, 987075, 987075, 802755, 1048575, 1048575, 1048575, 1048575], 76: [10, 1048575, 1048575, 1048575, 1048575, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 786447, 786447, 1048575, 1048575, 1048575, 1048575], 77: [10, 1048575, 1048575, 1048575, 1048575, 986895, 986895, 986895, 789519, 798915, 798915, 798915, 798915, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 78: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802563, 802563, 801987, 801987, 799683, 799683, 799683, 790467, 790467, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 79: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 802755, 802755, 802755, 802755, 986895, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 80: [10, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 790467, 983043, 1032195, 1048515, 1048515, 1048515, 1048515, 1048575, 1048575, 1048575, 1048575], 81: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 986895, 802755, 802755, 802755, 802755, 802755, 802755, 790275, 983055, 1032255, 1032447, 787455, 802815, 1048575], 82: [10, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 790467, 983043, 1032195, 987075, 987075, 802755, 65475, 1048575, 1048575, 1048575, 1048575], 83: [10, 1048575, 1048575, 1048575, 1048575, 983103, 786447, 851907, 1048515, 1048323, 1032207, 983103, 790527, 802815, 802803, 786435, 1032207, 1048575, 1048575, 1048575, 1048575], 84: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575], 85: [10, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 86: [10, 1048575, 1048575, 1048575, 1048575, 802800, 802800, 987075, 987075, 987075, 986883, 1032975, 1032975, 1032207, 1044543, 1044543, 1044543, 1048575, 1048575, 1048575, 1048575], 87: [10, 1048575, 1048575, 1048575, 1048575, 65520, 65520, 65520, 65520, 61680, 61680, 61680, 53040, 53040, 53040, 16320, 16320, 1048575, 1048575, 1048575, 1048575], 88: [10, 1048575, 1048575, 1048575, 1048575, 802800, 987075, 987075, 1032975, 1044543, 1044543, 1044543, 1032207, 1032975, 987075, 987075, 802800, 1048575, 1048575, 1048575, 1048575], 89: [10, 1048575, 1048575, 1048575, 1048575, 65520, 802755, 802755, 986895, 986895, 1032255, 1032255, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575, 1048575, 1048575, 1048575], 90: [10, 1048575, 1048575, 1048575, 1048575, 786435, 786435, 790527, 987135, 1033215, 1044735, 1044543, 1047615, 1048335, 1048323, 786435, 786435, 1048575, 1048575, 1048575, 1048575], 91: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1048383, 1032255, 1048575], 92: [10, 1048575, 1048575, 1048575, 1048563, 1048527, 1048527, 1048527, 1048383, 1048383, 1048383, 1047807, 1047807, 1045503, 1045503, 1045503, 1036287, 1036287, 1036287, 999423, 1048575], 93: [10, 1048575, 1048575, 1048575, 1048575, 1032255, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1036287, 1032255, 1048575], 94: [10, 1048575, 1048575, 1048575, 1048575, 1047807, 1044543, 1045311, 1036239, 987075, 999411, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 95: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786432, 1048575], 96: [10, 1048575, 1048575, 1048575, 1048383, 1047807, 1045503, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575], 97: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983055, 786447, 802815, 786495, 802755, 802755, 802755, 786435, 786495, 1048575, 1048575, 1048575, 1048575], 98: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 1032195, 983043, 790467, 802755, 802755, 802755, 790467, 983043, 1032195, 1048575, 1048575, 1048575, 1048575], 99: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786687, 786447, 1048323, 1048515, 1048515, 1048515, 1048323, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 100: [10, 1048575, 1048575, 1048575, 802815, 802815, 802815, 802815, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 101: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 786447, 802755, 786435, 1048515, 1048515, 1048323, 983055, 983103, 1048575, 1048575, 1048575, 1048575], 102: [10, 1048575, 1048575, 1048575, 255, 63, 1047615, 1047615, 786435, 786435, 1047615, 1047615, 1047615, 1047615, 1047615, 1047615, 1047615, 1048575, 1048575, 1048575, 1048575], 103: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 802815, 983043, 1032195, 1048575], 104: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 1032195, 983043, 790467, 802755, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 105: [10, 1048575, 1048575, 1048575, 1048575, 1044735, 1044735, 1048575, 1044483, 1044483, 1044735, 1044735, 1044735, 1044735, 1044735, 786687, 787455, 1048575, 1048575, 1048575, 1048575], 106: [10, 1048575, 1048575, 1048575, 1048575, 1033215, 1033215, 1048575, 983055, 983055, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 987135, 983043, 1032207, 1048575], 107: [10, 1048575, 1048575, 1048575, 1048515, 1048515, 1048515, 1048515, 790467, 984003, 1032387, 1044483, 1047555, 1044675, 1033155, 987075, 802755, 1048575, 1048575, 1048575, 1048575], 108: [10, 1048575, 1048575, 1048575, 1044483, 1044483, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 786687, 787455, 1048575, 1048575, 1048575, 1048575], 109: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983043, 786435, 798915, 798915, 798915, 798915, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 110: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 802755, 802755, 802755, 802755, 1048575, 1048575, 1048575, 1048575], 111: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032255, 983055, 790275, 802755, 802755, 802755, 790275, 983055, 1032255, 1048575, 1048575, 1048575, 1048575], 112: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1032195, 983043, 790467, 802755, 802755, 802755, 790467, 983043, 1032195, 1048515, 1048515, 1048515, 1048575], 113: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 802563, 802755, 802755, 802755, 802563, 786447, 786495, 802815, 802815, 802815, 1048575], 114: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786447, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048335, 1048575, 1048575, 1048575, 1048575], 115: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 786495, 786435, 1048515, 1047555, 983055, 787455, 802803, 786435, 983055, 1048575, 1048575, 1048575, 1048575], 116: [10, 1048575, 1048575, 1048575, 1048575, 1047615, 1047615, 1047615, 786435, 786435, 1047615, 1047615, 1047615, 1047615, 1047615, 786495, 786687, 1048575, 1048575, 1048575, 1048575], 117: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802755, 802755, 802755, 802755, 802563, 786447, 786495, 1048575, 1048575, 1048575, 1048575], 118: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 986895, 986895, 986895, 986895, 1032255, 1032255, 1032255, 1048575, 1048575, 1048575, 1048575], 119: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802800, 802800, 802032, 802032, 998451, 983811, 983811, 983811, 987075, 1048575, 1048575, 1048575, 1048575], 120: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 986895, 1032255, 1032255, 1044735, 1032255, 1035327, 986895, 802755, 1048575, 1048575, 1048575, 1048575], 121: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 802755, 802755, 802575, 986895, 986895, 986175, 986175, 983103, 1032447, 1032447, 1044483, 1047555, 1048575], 122: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 983043, 983043, 1033215, 1044735, 1047615, 1048335, 1048335, 983043, 983043, 1048575, 1048575, 1048575, 1048575], 123: [10, 1048575, 1048575, 1048575, 787455, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048335, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 787455, 1048575], 124: [10, 1048575, 1048575, 1048575, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1048575], 125: [10, 1048575, 1048575, 1048575, 1047555, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 987135, 1044735, 1044735, 1044735, 1044735, 1044735, 1044735, 1047555, 1048575], 126: [10, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 850959, 786435, 984051, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575, 1048575]}
# Problem: Implement a 3 stack # Algorithm for n-stacks using dynamic arrays (list) # Stack: LIFO (Last In First Out) # pop from top and push to top # data = our dynamic array # Maintain tops array for n-number of stacks and initialize to -1 # Maintain lengths for each stack. # Push(stack, value) # Check if stack is empty if yes append to data and tops=len(data)-1 # Increment lengths by 1 # Insert at top # Increment tops for all stacks which are next in sequence # Pop(stack) # Check if stack is empty if yes return -999 # Decrement length by 1 # Delete at top # Increment tops for all stacks which are next in sequence class NStack: def __init__(self, n=3): self.data = [] self.tops = [] self.lengths = [] # Initialize tops and lengths for i in range(n): self.tops.append(-1) self.lengths.append(0) def push(self, stack, value): # Case for stack is empty if self.tops[stack] == -1: self.data.append(value) self.tops[stack] = len(self.data)-1 else: self.data.insert(self.tops[stack], value) # Increment tops for all stacks which are next in sequence for i in range(len(self.tops)): if i != stack and self.tops[i] != -1 and self.tops[i] > self.tops[stack]: self.tops[i] += 1 self.lengths[stack] += 1 def pop(self, stack): # Check if stack is empty if self.tops[stack] == -1: return -9999 else: # save the value to return value = self.data[self.tops[stack]] # Delete element at tops of given stack del self.data[self.tops[stack]] self.lengths[stack] += -1 # Rearrange my indeces in top # Stack had only one item if self.lengths[stack] == 0: self.tops[stack] = -1 # Decrement tops of all stacks which are next in sequence for i in range(len(self.tops)): if i != stack and self.tops[i] > self.tops[stack]: self.tops[i] -= 1 return value def print_nstack(self): print("Data", self.data, "Lengths", self.lengths, "Top Indices", self.tops) for i in range(len(self.tops)): print("Stack:", i, "-->", self.data[self.tops[i]:self.tops[i]+self.lengths[i]]) def main(): nstack = NStack(3) nstack.print_nstack() nstack.push(0, 10) nstack.print_nstack() nstack.push(1, 10) nstack.print_nstack() nstack.push(1, 20) nstack.print_nstack() nstack.push(2, 30) nstack.push(2, 40) nstack.push(2, 30) nstack.push(2, 40) nstack.print_nstack() print(nstack.pop(0)) nstack.print_nstack() print(nstack.pop(2)) nstack.print_nstack() print(nstack.pop(2)) nstack.print_nstack() print(nstack.pop(0)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.push(1,90)) nstack.print_nstack() if __name__=='__main__': main()
class Nstack: def __init__(self, n=3): self.data = [] self.tops = [] self.lengths = [] for i in range(n): self.tops.append(-1) self.lengths.append(0) def push(self, stack, value): if self.tops[stack] == -1: self.data.append(value) self.tops[stack] = len(self.data) - 1 else: self.data.insert(self.tops[stack], value) for i in range(len(self.tops)): if i != stack and self.tops[i] != -1 and (self.tops[i] > self.tops[stack]): self.tops[i] += 1 self.lengths[stack] += 1 def pop(self, stack): if self.tops[stack] == -1: return -9999 else: value = self.data[self.tops[stack]] del self.data[self.tops[stack]] self.lengths[stack] += -1 if self.lengths[stack] == 0: self.tops[stack] = -1 for i in range(len(self.tops)): if i != stack and self.tops[i] > self.tops[stack]: self.tops[i] -= 1 return value def print_nstack(self): print('Data', self.data, 'Lengths', self.lengths, 'Top Indices', self.tops) for i in range(len(self.tops)): print('Stack:', i, '-->', self.data[self.tops[i]:self.tops[i] + self.lengths[i]]) def main(): nstack = n_stack(3) nstack.print_nstack() nstack.push(0, 10) nstack.print_nstack() nstack.push(1, 10) nstack.print_nstack() nstack.push(1, 20) nstack.print_nstack() nstack.push(2, 30) nstack.push(2, 40) nstack.push(2, 30) nstack.push(2, 40) nstack.print_nstack() print(nstack.pop(0)) nstack.print_nstack() print(nstack.pop(2)) nstack.print_nstack() print(nstack.pop(2)) nstack.print_nstack() print(nstack.pop(0)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.pop(1)) nstack.print_nstack() print(nstack.push(1, 90)) nstack.print_nstack() if __name__ == '__main__': main()
#User gives input and loop continues until user keeps entering even numbers Evennumber=0; while(Evennumber%2==0): print("Let me check if the entered number is even or not"); Evennumber=int(input()); if(Evennumber%2==0): print("Number enter is even"); if(Evennumber%2!=0): print("You have not entered the Even number"); #If the entered number is not Even the loop doesn't continue and breaks continue;
evennumber = 0 while Evennumber % 2 == 0: print('Let me check if the entered number is even or not') evennumber = int(input()) if Evennumber % 2 == 0: print('Number enter is even') if Evennumber % 2 != 0: print('You have not entered the Even number') continue
arquivo = open('exemplo.txt', 'r', encoding='utf8') for linha in arquivo: print(linha.strip()) arquivo.close()
arquivo = open('exemplo.txt', 'r', encoding='utf8') for linha in arquivo: print(linha.strip()) arquivo.close()
def bonAppetit(bill, k, b): rest = b - int((sum(bill) - bill[k]) / 2) if rest != 0: print(rest) else: print('Bon Appetit') return
def bon_appetit(bill, k, b): rest = b - int((sum(bill) - bill[k]) / 2) if rest != 0: print(rest) else: print('Bon Appetit') return
prices = {} quantities = {} while True: tokens = input() if tokens == 'buy': break else: tokens = tokens.split(" ") product = tokens[0] price = float(tokens[1]) quantity = int(tokens[2]) prices[product] = price if product not in quantities: quantities[product] = quantity else: quantities[product] += quantity for keys in quantities.keys(): result = quantities[keys] * prices[keys] print(f'{keys} -> {result:.2f}')
prices = {} quantities = {} while True: tokens = input() if tokens == 'buy': break else: tokens = tokens.split(' ') product = tokens[0] price = float(tokens[1]) quantity = int(tokens[2]) prices[product] = price if product not in quantities: quantities[product] = quantity else: quantities[product] += quantity for keys in quantities.keys(): result = quantities[keys] * prices[keys] print(f'{keys} -> {result:.2f}')
def addFriendship(d, u1, u2): if u1 not in d: d[u1] = [u2] else: x = d[u1] x.append(u2) d[u1] = x inFile = open("friendship.txt", "r") d = {} for line in inFile: infos = line.split("\t") user1 = int(infos[0]) user2 = int(infos[1].replace("\n", "")) addFriendship(d, user1, user2) addFriendship(d, user2, user1) user = int(input("Enter a user id to suggest some friends: ")) if user not in d: print("There is no such user") else: friendDict = {} friends = d[user] for friend in friends: friendsOfFriend = d[friend] for f in friendsOfFriend: if f != user and f not in friends: if f not in friendDict: friendDict[f] = 1 else: friendDict[f] = friendDict[f] + 1 #print(friendDict) if len(friendDict) > 0: maxVal = max(friendDict.values()) result = [] for k,v in friendDict.items(): if v == maxVal: result.append(k) #print(result) printingResult = "" while(len(result) > 0): minElement = min(result) printingResult = printingResult + str(minElement) + ", " result.remove(minElement) print(printingResult[:-2]) else: print("There is no friend to suggest") inFile.close()
def add_friendship(d, u1, u2): if u1 not in d: d[u1] = [u2] else: x = d[u1] x.append(u2) d[u1] = x in_file = open('friendship.txt', 'r') d = {} for line in inFile: infos = line.split('\t') user1 = int(infos[0]) user2 = int(infos[1].replace('\n', '')) add_friendship(d, user1, user2) add_friendship(d, user2, user1) user = int(input('Enter a user id to suggest some friends: ')) if user not in d: print('There is no such user') else: friend_dict = {} friends = d[user] for friend in friends: friends_of_friend = d[friend] for f in friendsOfFriend: if f != user and f not in friends: if f not in friendDict: friendDict[f] = 1 else: friendDict[f] = friendDict[f] + 1 if len(friendDict) > 0: max_val = max(friendDict.values()) result = [] for (k, v) in friendDict.items(): if v == maxVal: result.append(k) printing_result = '' while len(result) > 0: min_element = min(result) printing_result = printingResult + str(minElement) + ', ' result.remove(minElement) print(printingResult[:-2]) else: print('There is no friend to suggest') inFile.close()
#Make a menu driven program to accept, delete and display the following data stored in a dictionary. #Book_Id.........string #Book_Name.... string #Price......float #Discount...int #The program should continue as long as the user wishes to. At one point of time, I should be able to view minimum 3 records. class Product: def GetProduct(self): self.book_id = input("Enter book ID: ") self.name_of_book = input("Enter Name : ") global price_of_books price_of_books = int(input("Enter book Price of books : ")) disc=0 if price_of_books >=500: disc=100 else: disc=0 def PutProduct(self): print('ID:',self.book_id,'NAME:', self.name_of_book,'COST:', price_of_books,) def SearchById(self, id): if self.book_id == id: return True else: return False def SearchByName(self, name): if self.name_of_book == name: return True else: return False def Purchase(self): print("Purchase....") q = int(input("enter quantity of particular book you want to purchase:")) n = int(input("Enter Total products?")) L = [] for i in range(n): P = Product() P.GetProduct() L.append(P) while True: print("Main Menu\n1]Show All book\n2]Search By Id\n3]Search By Name\n4")
class Product: def get_product(self): self.book_id = input('Enter book ID: ') self.name_of_book = input('Enter Name : ') global price_of_books price_of_books = int(input('Enter book Price of books : ')) disc = 0 if price_of_books >= 500: disc = 100 else: disc = 0 def put_product(self): print('ID:', self.book_id, 'NAME:', self.name_of_book, 'COST:', price_of_books) def search_by_id(self, id): if self.book_id == id: return True else: return False def search_by_name(self, name): if self.name_of_book == name: return True else: return False def purchase(self): print('Purchase....') q = int(input('enter quantity of particular book you want to purchase:')) n = int(input('Enter Total products?')) l = [] for i in range(n): p = product() P.GetProduct() L.append(P) while True: print('Main Menu\n1]Show All book\n2]Search By Id\n3]Search By Name\n4')
# N digit numbers with digit sum S # https://www.interviewbit.com/problems/n-digit-numbers-with-digit-sum-s-/ # # Find out the number of N digit numbers, whose digits on being added equals to a given number S. # Note that a valid number starts from digits 1-9 except the number 0 itself. i.e. leading # zeroes are not allowed. # # Since the answer can be large, output answer modulo 1000000007 # # ** # N = 2, S = 4 # Valid numbers are {22, 31, 13, 40} # Hence output 4. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # class Solution: # @param A : integer # @param B : integer # @return an integer def solve(self, N, S): arr = [[0] * (S + 1) for _ in range(N + 1)] arr[0][0] = 1 for n in range(N): for s in range(S): for digit in range(10): if s + digit <= S: arr[n + 1][s + digit] += arr[n][s] else: break return arr[N][S] % 1000000007 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class Solution: def solve(self, N, S): arr = [[0] * (S + 1) for _ in range(N + 1)] arr[0][0] = 1 for n in range(N): for s in range(S): for digit in range(10): if s + digit <= S: arr[n + 1][s + digit] += arr[n][s] else: break return arr[N][S] % 1000000007
class FizzBuzz(object): def say(self, number): if number % 3 == 0 and number % 5 == 0: return 'FizzBuzz' elif number % 3 == 0: return 'Fizz' elif number % 5 == 0: return 'Buzz' else: return number
class Fizzbuzz(object): def say(self, number): if number % 3 == 0 and number % 5 == 0: return 'FizzBuzz' elif number % 3 == 0: return 'Fizz' elif number % 5 == 0: return 'Buzz' else: return number
# -*- coding: utf-8 -*- __title__ = 'amicleaner' __version__ = '0.2.0' __short_version__ = '.'.join(__version__.split('.')[:2]) __author__ = 'Guy Rodrigue Koffi' __author_email__ = 'koffirodrigue@gmail.com' __license__ = 'MIT'
__title__ = 'amicleaner' __version__ = '0.2.0' __short_version__ = '.'.join(__version__.split('.')[:2]) __author__ = 'Guy Rodrigue Koffi' __author_email__ = 'koffirodrigue@gmail.com' __license__ = 'MIT'
#-*- coding: utf-8 -*- spam = 65 # an integer declaration. print(spam) print(type(spam)) # this is a function call eggs = 2 print(eggs) print(type(eggs)) # Let's see the numeric operations print(spam + eggs) # sum print(spam - eggs) # difference print(spam * eggs) # product print(spam / eggs) # quotient print(spam % eggs) # remainder or module print(spam ** eggs) # power fooo = -2 # negative value print(fooo) print(type(fooo)) print(-fooo) # negated print(abs(fooo)) # absolute value print(int(fooo)) # convert to integer print(float(fooo)) # convert to float fooo += 1 # auto incremental print(fooo) # More on the quotient print(spam / eggs) # quotient print(spam / float(eggs)) # quotient # More on the operations result type print(type(spam + eggs)) print(type(float(spam) + eggs)) #=============================================================================== # - Python automatically infers the type of the result depending on operands type #=============================================================================== # Let's try again the power print(eggs ** spam) print(type(eggs ** spam)) #=============================================================================== # - Use parentheses to alter operations order #=============================================================================== #=============================================================================== # Python numeric types: # - int: # - Traditional integer # - Implemented using long in C, at least 32 bits precision # - Its values are [-sys.maxint - 1, sys.maxint] # - long: # - Long integer with unlimited precision # - Created automatically or when an L suffix is provided # - float: # - Floating point number # - Specified with a dot . as decimals separator # - Implemented using double in C # - Check sys.float_info for its internal representation # #=============================================================================== #=============================================================================== # SOURCES: # - http://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex #===============================================================================
spam = 65 print(spam) print(type(spam)) eggs = 2 print(eggs) print(type(eggs)) print(spam + eggs) print(spam - eggs) print(spam * eggs) print(spam / eggs) print(spam % eggs) print(spam ** eggs) fooo = -2 print(fooo) print(type(fooo)) print(-fooo) print(abs(fooo)) print(int(fooo)) print(float(fooo)) fooo += 1 print(fooo) print(spam / eggs) print(spam / float(eggs)) print(type(spam + eggs)) print(type(float(spam) + eggs)) print(eggs ** spam) print(type(eggs ** spam))