content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# En este script hacemos operaciones basicas
# 13 de sept 2021
suma = 5 + 2
resta = suma - 8.5
m1 = 32
m2 = 64
multiplicacion = m1 * m2
print("Este programa acaba de hacer algunas operaciones")
print('la suma dio como resultado: ')
print(suma)
print('la resta dio como resultado: ', resta) # la resta dio como resultado: -1.5
print('la multiplicacion dio como resultado: ', multiplicacion)
print(m2, "/", m1, " = ", m2/m1)
| suma = 5 + 2
resta = suma - 8.5
m1 = 32
m2 = 64
multiplicacion = m1 * m2
print('Este programa acaba de hacer algunas operaciones')
print('la suma dio como resultado: ')
print(suma)
print('la resta dio como resultado: ', resta)
print('la multiplicacion dio como resultado: ', multiplicacion)
print(m2, '/', m1, ' = ', m2 / m1) |
'''
This is the binary search tree implementation.
'''
class BinSearchTree():
class Node():
def __init__(self, key, parent, data, left_child, right_child):
self.key = key
self.parent = parent
self.data = data
self.left = left_child
self.right = right_child
def __str__(self):
return 'Key: {}, Parent: {}, Data: {}, Left: {}, Right: {}'.format(
self.key, self.parent, self.data, self.left, self.right
)
def min(self):
pass
def max(self):
pass
def inorder_tree_traversal(self, root):
'''
Recursive implementation for inorder tree traversal.
This just prints out the key and moves on.
'''
inorder_tree_traversal(root.left)
print(root.key)
inorder_tree_traversal(root.right)
| """
This is the binary search tree implementation.
"""
class Binsearchtree:
class Node:
def __init__(self, key, parent, data, left_child, right_child):
self.key = key
self.parent = parent
self.data = data
self.left = left_child
self.right = right_child
def __str__(self):
return 'Key: {}, Parent: {}, Data: {}, Left: {}, Right: {}'.format(self.key, self.parent, self.data, self.left, self.right)
def min(self):
pass
def max(self):
pass
def inorder_tree_traversal(self, root):
"""
Recursive implementation for inorder tree traversal.
This just prints out the key and moves on.
"""
inorder_tree_traversal(root.left)
print(root.key)
inorder_tree_traversal(root.right) |
#// AUTHOR: Guruprasanna
#// Python3 Concept: sha384(hashing)
#// GITHUB: https://github.com/Guruprasanna02
#// Add your python3 concept below
#SHA384 hashing implementation manaually.
def rightrotate_64(i, j):
i &= 0xFFFFFFFFFFFFFFFF
return ((i >> j) | (i << (64 - j))) & 0xFFFFFFFFFFFFFFFF
def leftrotate_64(i, j):
i &= 0xFFFFFFFFFFFFFFFF
return ((i << j) | (i >> (64 - j))) & 0xFFFFFFFFFFFFFFFF
def leftshift(i, j):
return i << j
def rightshift(i, j):
return i >> j
class SHA384():
def __init__(self):
self.digest_size = 48
self.block_size = 96
h0 = 0xcbbb9d5dc1059ed8
h1 = 0x629a292a367cd507
h2 = 0x9159015a3070dd17
h3 = 0x152fecd8f70e5939
h4 = 0x67332667ffc00b31
h5 = 0x8eb44a8768581511
h6 = 0xdb0c2e0d64f98fa7
h7 = 0x47b5481dbefa4fa4
self.k = [
0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538,
0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe,
0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235,
0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65,
0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab,
0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725,
0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed,
0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b,
0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218,
0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53,
0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373,
0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec,
0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c,
0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6,
0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc,
0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817
]
self.hash_pieces = [h0, h1, h2, h3, h4, h5, h6, h7]
def update(self, arg):
h0, h1, h2, h3, h4, h5, h6, h7 = self.hash_pieces
data = bytearray(arg)
orig_len_in_bits = (8 * len(data)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
data.append(0x80)
while len(data) % 128 != 112:
data.append(0)
data += orig_len_in_bits.to_bytes(16, byteorder='big')
for a in range(0, len(data), 128):
group = data[a : a + 128]
w = [0 for i in range(80)]
for i in range(16):
w[i] = int.from_bytes(group[8*i : 8*i + 8], byteorder='big')
for j in range(16, 80):
s0 = (rightrotate_64(w[j-15], 1) ^ rightrotate_64(w[j-15], 8) ^ rightshift(w[j-15], 7)) & 0xFFFFFFFFFFFFFFFF
s1 = (rightrotate_64(w[j-2], 19) ^ rightrotate_64(w[j-2], 61) ^ rightshift(w[j-2], 6)) & 0xFFFFFFFFFFFFFFFF
w[j] = (w[j-16] + s0 + w[j-7] + s1) & 0xFFFFFFFFFFFFFFFF
a, b, c, d, e, f, g, h = h0, h1, h2, h3, h4, h5, h6, h7
for m in range(80):
S1 = (rightrotate_64(e, 14) ^ rightrotate_64(e, 18) ^ rightrotate_64(e, 41)) & 0xFFFFFFFFFFFFFFFF
ch = ((e & f) ^ ((~e) & g)) & 0xFFFFFFFFFFFFFFFF
temp1 = (h + S1 + ch + self.k[m] + w[m]) & 0xFFFFFFFFFFFFFFFF
S0 = (rightrotate_64(a, 28) ^ rightrotate_64(a, 34) ^ rightrotate_64(a, 39)) & 0xFFFFFFFFFFFFFFFF
maj = ((a & b) ^ (a & c) ^ (b & c)) & 0xFFFFFFFFFFFFFFFF
temp2 = (S0 + maj) & 0xFFFFFFFFFFFFFFFF
a1 = (temp1 + temp2) & 0xFFFFFFFFFFFFFFFF
e1 = (d + temp1) & 0xFFFFFFFFFFFFFFFF
a, b, c, d, e, f, g, h = a1, a, b, c, e1, e, f, g
h0 = (h0 + a) & 0xFFFFFFFFFFFFFFFF
h1 = (h1 + b) & 0xFFFFFFFFFFFFFFFF
h2 = (h2 + c) & 0xFFFFFFFFFFFFFFFF
h3 = (h3 + d) & 0xFFFFFFFFFFFFFFFF
h4 = (h4 + e) & 0xFFFFFFFFFFFFFFFF
h5 = (h5 + f) & 0xFFFFFFFFFFFFFFFF
h6 = (h6 + g) & 0xFFFFFFFFFFFFFFFF
h7 = (h7 + h) & 0xFFFFFFFFFFFFFFFF
self.hash_pieces = [h0, h1, h2, h3, h4, h5, h6, h7]
def digest(self):
mod_hashPieces = self.hash_pieces[:-2]
return sum(leftshift(x, 64*i) for i, x in enumerate(mod_hashPieces[::-1]))
def hexdigest(self):
digest = self.digest()
raw = digest.to_bytes(self.digest_size, byteorder='big')
format_str = '{:0' + str(2 * self.digest_size) + 'x}'
return format_str.format(int.from_bytes(raw, byteorder='big'))
def main():
string = input("Input : ")
h = SHA384()
data = bytes(string, encoding='utf8')
h.update(data)
print(f"The hexadecimal equivalent of SHA384 is:\n {h.hexdigest()}")
main()
| def rightrotate_64(i, j):
i &= 18446744073709551615
return (i >> j | i << 64 - j) & 18446744073709551615
def leftrotate_64(i, j):
i &= 18446744073709551615
return (i << j | i >> 64 - j) & 18446744073709551615
def leftshift(i, j):
return i << j
def rightshift(i, j):
return i >> j
class Sha384:
def __init__(self):
self.digest_size = 48
self.block_size = 96
h0 = 14680500436340154072
h1 = 7105036623409894663
h2 = 10473403895298186519
h3 = 1526699215303891257
h4 = 7436329637833083697
h5 = 10282925794625328401
h6 = 15784041429090275239
h7 = 5167115440072839076
self.k = [4794697086780616226, 8158064640168781261, 13096744586834688815, 16840607885511220156, 4131703408338449720, 6480981068601479193, 10538285296894168987, 12329834152419229976, 15566598209576043074, 1334009975649890238, 2608012711638119052, 6128411473006802146, 8268148722764581231, 9286055187155687089, 11230858885718282805, 13951009754708518548, 16472876342353939154, 17275323862435702243, 1135362057144423861, 2597628984639134821, 3308224258029322869, 5365058923640841347, 6679025012923562964, 8573033837759648693, 10970295158949994411, 12119686244451234320, 12683024718118986047, 13788192230050041572, 14330467153632333762, 15395433587784984357, 489312712824947311, 1452737877330783856, 2861767655752347644, 3322285676063803686, 5560940570517711597, 5996557281743188959, 7280758554555802590, 8532644243296465576, 9350256976987008742, 10552545826968843579, 11727347734174303076, 12113106623233404929, 14000437183269869457, 14369950271660146224, 15101387698204529176, 15463397548674623760, 17586052441742319658, 1182934255886127544, 1847814050463011016, 2177327727835720531, 2830643537854262169, 3796741975233480872, 4115178125766777443, 5681478168544905931, 6601373596472566643, 7507060721942968483, 8399075790359081724, 8693463985226723168, 9568029438360202098, 10144078919501101548, 10430055236837252648, 11840083180663258601, 13761210420658862357, 14299343276471374635, 14566680578165727644, 15097957966210449927, 16922976911328602910, 17689382322260857208, 500013540394364858, 748580250866718886, 1242879168328830382, 1977374033974150939, 2944078676154940804, 3659926193048069267, 4368137639120453308, 4836135668995329356, 5532061633213252278, 6448918945643986474, 6902733635092675308, 7801388544844847127]
self.hash_pieces = [h0, h1, h2, h3, h4, h5, h6, h7]
def update(self, arg):
(h0, h1, h2, h3, h4, h5, h6, h7) = self.hash_pieces
data = bytearray(arg)
orig_len_in_bits = 8 * len(data) & 340282366920938463463374607431768211455
data.append(128)
while len(data) % 128 != 112:
data.append(0)
data += orig_len_in_bits.to_bytes(16, byteorder='big')
for a in range(0, len(data), 128):
group = data[a:a + 128]
w = [0 for i in range(80)]
for i in range(16):
w[i] = int.from_bytes(group[8 * i:8 * i + 8], byteorder='big')
for j in range(16, 80):
s0 = (rightrotate_64(w[j - 15], 1) ^ rightrotate_64(w[j - 15], 8) ^ rightshift(w[j - 15], 7)) & 18446744073709551615
s1 = (rightrotate_64(w[j - 2], 19) ^ rightrotate_64(w[j - 2], 61) ^ rightshift(w[j - 2], 6)) & 18446744073709551615
w[j] = w[j - 16] + s0 + w[j - 7] + s1 & 18446744073709551615
(a, b, c, d, e, f, g, h) = (h0, h1, h2, h3, h4, h5, h6, h7)
for m in range(80):
s1 = (rightrotate_64(e, 14) ^ rightrotate_64(e, 18) ^ rightrotate_64(e, 41)) & 18446744073709551615
ch = (e & f ^ ~e & g) & 18446744073709551615
temp1 = h + S1 + ch + self.k[m] + w[m] & 18446744073709551615
s0 = (rightrotate_64(a, 28) ^ rightrotate_64(a, 34) ^ rightrotate_64(a, 39)) & 18446744073709551615
maj = (a & b ^ a & c ^ b & c) & 18446744073709551615
temp2 = S0 + maj & 18446744073709551615
a1 = temp1 + temp2 & 18446744073709551615
e1 = d + temp1 & 18446744073709551615
(a, b, c, d, e, f, g, h) = (a1, a, b, c, e1, e, f, g)
h0 = h0 + a & 18446744073709551615
h1 = h1 + b & 18446744073709551615
h2 = h2 + c & 18446744073709551615
h3 = h3 + d & 18446744073709551615
h4 = h4 + e & 18446744073709551615
h5 = h5 + f & 18446744073709551615
h6 = h6 + g & 18446744073709551615
h7 = h7 + h & 18446744073709551615
self.hash_pieces = [h0, h1, h2, h3, h4, h5, h6, h7]
def digest(self):
mod_hash_pieces = self.hash_pieces[:-2]
return sum((leftshift(x, 64 * i) for (i, x) in enumerate(mod_hashPieces[::-1])))
def hexdigest(self):
digest = self.digest()
raw = digest.to_bytes(self.digest_size, byteorder='big')
format_str = '{:0' + str(2 * self.digest_size) + 'x}'
return format_str.format(int.from_bytes(raw, byteorder='big'))
def main():
string = input('Input : ')
h = sha384()
data = bytes(string, encoding='utf8')
h.update(data)
print(f'The hexadecimal equivalent of SHA384 is:\n {h.hexdigest()}')
main() |
# Start of Lesson 3
bubbles = [1,2,3,4,5,6]
n = 9
def find(n,array):
'''
This function looks for n in a list
'''
for item in array:
if item == n:
return True
return False
print(find(n,bubbles))
'''
index = 0
isFound = False
while isFound == False:
item = bubbles[index]
if item == n:
print('Found number in list')
isFound = True #break
else:
print('No number found')
if index == len(bubbles):
isFound = True #break
index = index + 1 # index += 1
''' | bubbles = [1, 2, 3, 4, 5, 6]
n = 9
def find(n, array):
"""
This function looks for n in a list
"""
for item in array:
if item == n:
return True
return False
print(find(n, bubbles))
"\nindex = 0\nisFound = False\n\nwhile isFound == False: \n item = bubbles[index]\n if item == n:\n print('Found number in list')\n isFound = True #break\n else:\n print('No number found')\n if index == len(bubbles):\n isFound = True #break\n index = index + 1 # index += 1\n" |
class Deque:
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def add_front(self, item):
self.items.insert(0, item)
def add_rear(self, item):
self.items.append(item)
def remove_front(self):
return self.items.pop(0)
def remove_rear(self):
return self.items.pop()
def size(self):
return len(self.items)
d = Deque()
d.add_front('hello')
d.add_rear('world')
print(d.size())
print(d.remove_front() + ' ' + d.remove_rear())
print(d.size())
| class Deque:
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def add_front(self, item):
self.items.insert(0, item)
def add_rear(self, item):
self.items.append(item)
def remove_front(self):
return self.items.pop(0)
def remove_rear(self):
return self.items.pop()
def size(self):
return len(self.items)
d = deque()
d.add_front('hello')
d.add_rear('world')
print(d.size())
print(d.remove_front() + ' ' + d.remove_rear())
print(d.size()) |
#
# PySNMP MIB module ASCEND-MIBATMSIG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBATMSIG-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:26:38 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)
#
configuration, = mibBuilder.importSymbols("ASCEND-MIB", "configuration")
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
TimeTicks, Counter64, Gauge32, IpAddress, NotificationType, ObjectIdentity, Bits, MibIdentifier, Integer32, Unsigned32, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Counter64", "Gauge32", "IpAddress", "NotificationType", "ObjectIdentity", "Bits", "MibIdentifier", "Integer32", "Unsigned32", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "ModuleIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
class DisplayString(OctetString):
pass
mibatmIntfSigParams = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 52))
mibatmIntfSigParamsTable = MibTable((1, 3, 6, 1, 4, 1, 529, 23, 52, 1), )
if mibBuilder.loadTexts: mibatmIntfSigParamsTable.setStatus('mandatory')
if mibBuilder.loadTexts: mibatmIntfSigParamsTable.setDescription('A list of mibatmIntfSigParams profile entries.')
mibatmIntfSigParamsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1), ).setIndexNames((0, "ASCEND-MIBATMSIG-MIB", "atmIntfSigParams-Shelf-o"), (0, "ASCEND-MIBATMSIG-MIB", "atmIntfSigParams-Slot-o"), (0, "ASCEND-MIBATMSIG-MIB", "atmIntfSigParams-Item-o"), (0, "ASCEND-MIBATMSIG-MIB", "atmIntfSigParams-LogicalItem-o"))
if mibBuilder.loadTexts: mibatmIntfSigParamsEntry.setStatus('mandatory')
if mibBuilder.loadTexts: mibatmIntfSigParamsEntry.setDescription('A mibatmIntfSigParams entry containing objects that maps to the parameters of mibatmIntfSigParams profile.')
atmIntfSigParams_Shelf_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 1), Integer32()).setLabel("atmIntfSigParams-Shelf-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmIntfSigParams_Shelf_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Shelf_o.setDescription('')
atmIntfSigParams_Slot_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 2), Integer32()).setLabel("atmIntfSigParams-Slot-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmIntfSigParams_Slot_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Slot_o.setDescription('')
atmIntfSigParams_Item_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 3), Integer32()).setLabel("atmIntfSigParams-Item-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmIntfSigParams_Item_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Item_o.setDescription('')
atmIntfSigParams_LogicalItem_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 4), Integer32()).setLabel("atmIntfSigParams-LogicalItem-o").setMaxAccess("readonly")
if mibBuilder.loadTexts: atmIntfSigParams_LogicalItem_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_LogicalItem_o.setDescription('')
atmIntfSigParams_Address_PhysicalAddress_Shelf = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("anyShelf", 1), ("shelf1", 2), ("shelf2", 3), ("shelf3", 4), ("shelf4", 5), ("shelf5", 6), ("shelf6", 7), ("shelf7", 8), ("shelf8", 9), ("shelf9", 10)))).setLabel("atmIntfSigParams-Address-PhysicalAddress-Shelf").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_Shelf.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_Shelf.setDescription('The number of the shelf that the addressed physical device resides on.')
atmIntfSigParams_Address_PhysicalAddress_Slot = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 55, 56, 57, 58, 49, 50, 42, 53, 54, 45, 46, 51, 59))).clone(namedValues=NamedValues(("anySlot", 1), ("slot1", 2), ("slot2", 3), ("slot3", 4), ("slot4", 5), ("slot5", 6), ("slot6", 7), ("slot7", 8), ("slot8", 9), ("slot9", 10), ("slot10", 11), ("slot11", 12), ("slot12", 13), ("slot13", 14), ("slot14", 15), ("slot15", 16), ("slot16", 17), ("slot17", 18), ("slot18", 19), ("slot19", 20), ("slot20", 21), ("slot21", 22), ("slot22", 23), ("slot23", 24), ("slot24", 25), ("slot25", 26), ("slot26", 27), ("slot27", 28), ("slot28", 29), ("slot29", 30), ("slot30", 31), ("slot31", 32), ("slot32", 33), ("slot33", 34), ("slot34", 35), ("slot35", 36), ("slot36", 37), ("slot37", 38), ("slot38", 39), ("slot39", 40), ("slot40", 41), ("aLim", 55), ("bLim", 56), ("cLim", 57), ("dLim", 58), ("leftController", 49), ("rightController", 50), ("controller", 42), ("firstControlModule", 53), ("secondControlModule", 54), ("trunkModule1", 45), ("trunkModule2", 46), ("controlModule", 51), ("slotPrimary", 59)))).setLabel("atmIntfSigParams-Address-PhysicalAddress-Slot").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_Slot.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_Slot.setDescription('The number of the slot that the addressed physical device resides on.')
atmIntfSigParams_Address_PhysicalAddress_ItemNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 7), Integer32()).setLabel("atmIntfSigParams-Address-PhysicalAddress-ItemNumber").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_ItemNumber.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Address_PhysicalAddress_ItemNumber.setDescription('A number that specifies an addressable entity within the context of shelf and slot.')
atmIntfSigParams_Address_LogicalItem = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 8), Integer32()).setLabel("atmIntfSigParams-Address-LogicalItem").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Address_LogicalItem.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Address_LogicalItem.setDescription('A number that specifies an addressable logical entity within the context of a physical address.')
atmIntfSigParams_Q2931Options_MaxRestart = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 9), Integer32()).setLabel("atmIntfSigParams-Q2931Options-MaxRestart").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_MaxRestart.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_MaxRestart.setDescription('Maximum number of unacknowledged tx RESTART.')
atmIntfSigParams_Q2931Options_MaxStatenq = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 10), Integer32()).setLabel("atmIntfSigParams-Q2931Options-MaxStatenq").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_MaxStatenq.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_MaxStatenq.setDescription('Maximum number of unacknowledged tx STATUS ENQ.')
atmIntfSigParams_Q2931Options_T301Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 11), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T301Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T301Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T301Ms.setDescription('Timer (in msec) for alerting supervision function. This timer is started on receipt of ALERT in Call received/delivered state and stopped when CONNECT is received.')
atmIntfSigParams_Q2931Options_T303Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 12), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T303Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T303Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T303Ms.setDescription('Timer (in msec) for a response after SETUP is sent. This timer is stopped when the CONNECT, CALL PROCEEDING, or RELEASE COMPLETE is received.')
atmIntfSigParams_Q2931Options_T306Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 13), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T306Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T306Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T306Ms.setDescription('Timer (in msec) for a RELEASE_COMPLETE to be received after a release has been sent.')
atmIntfSigParams_Q2931Options_T308Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 14), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T308Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T308Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T308Ms.setDescription('Timer (in msec) for a response after RELEASE is sent. This is a release indication timer. This timer is started when the RELEASE message is sent and normally is stopped when the RELEASE or RELEASE COMPLETE is received.')
atmIntfSigParams_Q2931Options_T309Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 15), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T309Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T309Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T309Ms.setDescription('Timer (in msec) for Q.SAAL to reconnect. After this time, calls are dropped. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmIntfSigParams_Q2931Options_T310Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 16), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T310Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T310Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T310Ms.setDescription('Timer (in msec) for a response after SETUP is received. Also called the CALL PROCEEDING timer.')
atmIntfSigParams_Q2931Options_T313Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 17), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T313Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T313Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T313Ms.setDescription('Timer (in msec) for a response after CONNECT is sent. Also called the connect request timer. It is started when the CONNECT is sent and stopped when the CONNECT ACKNOWLEDGE is recieved.')
atmIntfSigParams_Q2931Options_T316Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 18), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T316Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T316Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T316Ms.setDescription('Timer (in msec) for a response after RESTART is sent. Also called the restart request timer. It is started when the RESTART is sent and stopped when the RESTART ACKNOWLEDGE is recieved.')
atmIntfSigParams_Q2931Options_T317Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 19), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T317Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T317Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T317Ms.setDescription('Timer (in msec) for internal clearing of call references. This timer is started as a result of a restart and cleared when all the internal call references are cleared. Should be less than the the likely value of T316 of the peer.')
atmIntfSigParams_Q2931Options_T322Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 20), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T322Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T322Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T322Ms.setDescription('Timer (in msec) for a response after STATUS ENQ is sent.')
atmIntfSigParams_Q2931Options_T331Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 21), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T331Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T331Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T331Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmIntfSigParams_Q2931Options_T333Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 22), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T333Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T333Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T333Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmIntfSigParams_Q2931Options_T397Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 23), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T397Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T397Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T397Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atmIntfSigParams_Q2931Options_T398Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 24), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T398Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T398Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T398Ms.setDescription('Timer (in msec) for receipt of a response to a DROP PARTY that was sent.')
atmIntfSigParams_Q2931Options_T399Ms = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 25), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T399Ms").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T399Ms.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T399Ms.setDescription('Timer (in msec) for receipt of a response to an ADD PARTY that was sent.')
atmIntfSigParams_Q2931Options_SaalRetryMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 26), Integer32()).setLabel("atmIntfSigParams-Q2931Options-SaalRetryMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_SaalRetryMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_SaalRetryMs.setDescription('Timer value for retrying AAL_ESTABLISH messages.')
atmIntfSigParams_Q2931Options_T303NumReties = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 27), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T303NumReties").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T303NumReties.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T303NumReties.setDescription('Number of times SETUP could be resent in case of T303 timer expiry.')
atmIntfSigParams_Q2931Options_T308NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 28), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T308NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T308NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T308NumRetries.setDescription('Number of times RELEASE could be sent in case of T308 timer expiry.')
atmIntfSigParams_Q2931Options_T316NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 29), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T316NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T316NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T316NumRetries.setDescription('Number of times RESTART could be sent in case RESTART ACK is not received withinn T316 timer expiry.')
atmIntfSigParams_Q2931Options_T322NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 30), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T322NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T322NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T322NumRetries.setDescription('Number of times STAT ENQ could be sent before a response is received within the T322 timer expiry.')
atmIntfSigParams_Q2931Options_T331NumRetries = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 31), Integer32()).setLabel("atmIntfSigParams-Q2931Options-T331NumRetries").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T331NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_T331NumRetries.setDescription('')
atmIntfSigParams_Q2931Options_AssignVpiVci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmIntfSigParams-Q2931Options-AssignVpiVci").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_AssignVpiVci.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Q2931Options_AssignVpiVci.setDescription('In the case of UNI4.0 and PNNI this parameter specifies who assigns the VPI/VCI. TRUE will allow the local stack and FALSE will let the partner stack to assign.')
atmIntfSigParams_QsaalOptions_WindowSize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 33), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-WindowSize").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_WindowSize.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_WindowSize.setDescription('Q.SAAL window size')
atmIntfSigParams_QsaalOptions_MaxCc = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 34), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-MaxCc").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxCc.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxCc.setDescription('Maximum number of control PDU (BGN, END, RESYNC) retransmissions.')
atmIntfSigParams_QsaalOptions_MaxPd = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 35), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-MaxPd").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxPd.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxPd.setDescription("Maximum number of Sequenced data PDU's between poll.")
atmIntfSigParams_QsaalOptions_MaxStat = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 36), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-MaxStat").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxStat.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_MaxStat.setDescription('Maximum length of STAT PDU.')
atmIntfSigParams_QsaalOptions_TccMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 37), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-TccMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TccMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TccMs.setDescription("Retry time (in msec) for control PDU's(BGN, END, RESYNC).")
atmIntfSigParams_QsaalOptions_TpollMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 38), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-TpollMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TpollMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TpollMs.setDescription('Poll sent (in msec) when active. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmIntfSigParams_QsaalOptions_TkeepaliveMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 39), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-TkeepaliveMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TkeepaliveMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TkeepaliveMs.setDescription('Poll sent (in msec) when in transient state. When set to 0, a default value based on an ATM signaling protocol will be used.')
atmIntfSigParams_QsaalOptions_TnoresponseMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 40), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-TnoresponseMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TnoresponseMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TnoresponseMs.setDescription('STAT received at least this period(in msec). When set to 0, a default value based on an ATM signaling protocol will be used.')
atmIntfSigParams_QsaalOptions_TidleMs = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 41), Integer32()).setLabel("atmIntfSigParams-QsaalOptions-TidleMs").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TidleMs.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_TidleMs.setDescription('Poll sent (in msec) when idle -- UNI 3.1, only.')
atmIntfSigParams_QsaalOptions_PollAfterRetransmission = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmIntfSigParams-QsaalOptions-PollAfterRetransmission").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_PollAfterRetransmission.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_PollAfterRetransmission.setDescription('Specifies after retransmitting PDUs whether a POLL must be sent before sending any further PDUs.')
atmIntfSigParams_QsaalOptions_RepeatUstat = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmIntfSigParams-QsaalOptions-RepeatUstat").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_RepeatUstat.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_RepeatUstat.setDescription('Specifies whether two USTAT messages should be sent each time it is required to be sent.')
atmIntfSigParams_QsaalOptions_UstatRspToPoll = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("atmIntfSigParams-QsaalOptions-UstatRspToPoll").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_UstatRspToPoll.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_QsaalOptions_UstatRspToPoll.setDescription('Specifies whether a USTAT should be sent in response to a POLL indicating an out of sequence PDU.')
atmIntfSigParams_Action_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noAction", 1), ("createProfile", 2), ("deleteProfile", 3)))).setLabel("atmIntfSigParams-Action-o").setMaxAccess("readwrite")
if mibBuilder.loadTexts: atmIntfSigParams_Action_o.setStatus('mandatory')
if mibBuilder.loadTexts: atmIntfSigParams_Action_o.setDescription('')
mibBuilder.exportSymbols("ASCEND-MIBATMSIG-MIB", mibatmIntfSigParams=mibatmIntfSigParams, atmIntfSigParams_Q2931Options_T398Ms=atmIntfSigParams_Q2931Options_T398Ms, atmIntfSigParams_Q2931Options_T322NumRetries=atmIntfSigParams_Q2931Options_T322NumRetries, atmIntfSigParams_Address_PhysicalAddress_Slot=atmIntfSigParams_Address_PhysicalAddress_Slot, atmIntfSigParams_Q2931Options_T308Ms=atmIntfSigParams_Q2931Options_T308Ms, atmIntfSigParams_Q2931Options_T301Ms=atmIntfSigParams_Q2931Options_T301Ms, atmIntfSigParams_Item_o=atmIntfSigParams_Item_o, atmIntfSigParams_Address_PhysicalAddress_ItemNumber=atmIntfSigParams_Address_PhysicalAddress_ItemNumber, atmIntfSigParams_QsaalOptions_UstatRspToPoll=atmIntfSigParams_QsaalOptions_UstatRspToPoll, atmIntfSigParams_LogicalItem_o=atmIntfSigParams_LogicalItem_o, atmIntfSigParams_Q2931Options_T310Ms=atmIntfSigParams_Q2931Options_T310Ms, atmIntfSigParams_Q2931Options_T333Ms=atmIntfSigParams_Q2931Options_T333Ms, atmIntfSigParams_Q2931Options_T303NumReties=atmIntfSigParams_Q2931Options_T303NumReties, atmIntfSigParams_Q2931Options_T397Ms=atmIntfSigParams_Q2931Options_T397Ms, atmIntfSigParams_Q2931Options_AssignVpiVci=atmIntfSigParams_Q2931Options_AssignVpiVci, atmIntfSigParams_QsaalOptions_RepeatUstat=atmIntfSigParams_QsaalOptions_RepeatUstat, atmIntfSigParams_Q2931Options_T331NumRetries=atmIntfSigParams_Q2931Options_T331NumRetries, atmIntfSigParams_Q2931Options_T309Ms=atmIntfSigParams_Q2931Options_T309Ms, atmIntfSigParams_Slot_o=atmIntfSigParams_Slot_o, atmIntfSigParams_Q2931Options_T303Ms=atmIntfSigParams_Q2931Options_T303Ms, atmIntfSigParams_QsaalOptions_TkeepaliveMs=atmIntfSigParams_QsaalOptions_TkeepaliveMs, mibatmIntfSigParamsTable=mibatmIntfSigParamsTable, atmIntfSigParams_Q2931Options_MaxStatenq=atmIntfSigParams_Q2931Options_MaxStatenq, atmIntfSigParams_Q2931Options_T331Ms=atmIntfSigParams_Q2931Options_T331Ms, atmIntfSigParams_Q2931Options_T316Ms=atmIntfSigParams_Q2931Options_T316Ms, atmIntfSigParams_Q2931Options_T399Ms=atmIntfSigParams_Q2931Options_T399Ms, atmIntfSigParams_QsaalOptions_TnoresponseMs=atmIntfSigParams_QsaalOptions_TnoresponseMs, atmIntfSigParams_QsaalOptions_TpollMs=atmIntfSigParams_QsaalOptions_TpollMs, atmIntfSigParams_QsaalOptions_PollAfterRetransmission=atmIntfSigParams_QsaalOptions_PollAfterRetransmission, atmIntfSigParams_QsaalOptions_MaxPd=atmIntfSigParams_QsaalOptions_MaxPd, atmIntfSigParams_Shelf_o=atmIntfSigParams_Shelf_o, atmIntfSigParams_Q2931Options_T308NumRetries=atmIntfSigParams_Q2931Options_T308NumRetries, atmIntfSigParams_Q2931Options_T316NumRetries=atmIntfSigParams_Q2931Options_T316NumRetries, atmIntfSigParams_Q2931Options_MaxRestart=atmIntfSigParams_Q2931Options_MaxRestart, atmIntfSigParams_Q2931Options_T313Ms=atmIntfSigParams_Q2931Options_T313Ms, atmIntfSigParams_QsaalOptions_TidleMs=atmIntfSigParams_QsaalOptions_TidleMs, atmIntfSigParams_Address_LogicalItem=atmIntfSigParams_Address_LogicalItem, atmIntfSigParams_Q2931Options_T306Ms=atmIntfSigParams_Q2931Options_T306Ms, DisplayString=DisplayString, atmIntfSigParams_Q2931Options_T317Ms=atmIntfSigParams_Q2931Options_T317Ms, atmIntfSigParams_Address_PhysicalAddress_Shelf=atmIntfSigParams_Address_PhysicalAddress_Shelf, atmIntfSigParams_Q2931Options_T322Ms=atmIntfSigParams_Q2931Options_T322Ms, atmIntfSigParams_Action_o=atmIntfSigParams_Action_o, atmIntfSigParams_QsaalOptions_TccMs=atmIntfSigParams_QsaalOptions_TccMs, atmIntfSigParams_Q2931Options_SaalRetryMs=atmIntfSigParams_Q2931Options_SaalRetryMs, mibatmIntfSigParamsEntry=mibatmIntfSigParamsEntry, atmIntfSigParams_QsaalOptions_WindowSize=atmIntfSigParams_QsaalOptions_WindowSize, atmIntfSigParams_QsaalOptions_MaxCc=atmIntfSigParams_QsaalOptions_MaxCc, atmIntfSigParams_QsaalOptions_MaxStat=atmIntfSigParams_QsaalOptions_MaxStat)
| (configuration,) = mibBuilder.importSymbols('ASCEND-MIB', 'configuration')
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, value_size_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(time_ticks, counter64, gauge32, ip_address, notification_type, object_identity, bits, mib_identifier, integer32, unsigned32, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Counter64', 'Gauge32', 'IpAddress', 'NotificationType', 'ObjectIdentity', 'Bits', 'MibIdentifier', 'Integer32', 'Unsigned32', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'ModuleIdentity')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
class Displaystring(OctetString):
pass
mibatm_intf_sig_params = mib_identifier((1, 3, 6, 1, 4, 1, 529, 23, 52))
mibatm_intf_sig_params_table = mib_table((1, 3, 6, 1, 4, 1, 529, 23, 52, 1))
if mibBuilder.loadTexts:
mibatmIntfSigParamsTable.setStatus('mandatory')
if mibBuilder.loadTexts:
mibatmIntfSigParamsTable.setDescription('A list of mibatmIntfSigParams profile entries.')
mibatm_intf_sig_params_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1)).setIndexNames((0, 'ASCEND-MIBATMSIG-MIB', 'atmIntfSigParams-Shelf-o'), (0, 'ASCEND-MIBATMSIG-MIB', 'atmIntfSigParams-Slot-o'), (0, 'ASCEND-MIBATMSIG-MIB', 'atmIntfSigParams-Item-o'), (0, 'ASCEND-MIBATMSIG-MIB', 'atmIntfSigParams-LogicalItem-o'))
if mibBuilder.loadTexts:
mibatmIntfSigParamsEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
mibatmIntfSigParamsEntry.setDescription('A mibatmIntfSigParams entry containing objects that maps to the parameters of mibatmIntfSigParams profile.')
atm_intf_sig_params__shelf_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 1), integer32()).setLabel('atmIntfSigParams-Shelf-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmIntfSigParams_Shelf_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Shelf_o.setDescription('')
atm_intf_sig_params__slot_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 2), integer32()).setLabel('atmIntfSigParams-Slot-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmIntfSigParams_Slot_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Slot_o.setDescription('')
atm_intf_sig_params__item_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 3), integer32()).setLabel('atmIntfSigParams-Item-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmIntfSigParams_Item_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Item_o.setDescription('')
atm_intf_sig_params__logical_item_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 4), integer32()).setLabel('atmIntfSigParams-LogicalItem-o').setMaxAccess('readonly')
if mibBuilder.loadTexts:
atmIntfSigParams_LogicalItem_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_LogicalItem_o.setDescription('')
atm_intf_sig_params__address__physical_address__shelf = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('anyShelf', 1), ('shelf1', 2), ('shelf2', 3), ('shelf3', 4), ('shelf4', 5), ('shelf5', 6), ('shelf6', 7), ('shelf7', 8), ('shelf8', 9), ('shelf9', 10)))).setLabel('atmIntfSigParams-Address-PhysicalAddress-Shelf').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_Shelf.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_Shelf.setDescription('The number of the shelf that the addressed physical device resides on.')
atm_intf_sig_params__address__physical_address__slot = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 55, 56, 57, 58, 49, 50, 42, 53, 54, 45, 46, 51, 59))).clone(namedValues=named_values(('anySlot', 1), ('slot1', 2), ('slot2', 3), ('slot3', 4), ('slot4', 5), ('slot5', 6), ('slot6', 7), ('slot7', 8), ('slot8', 9), ('slot9', 10), ('slot10', 11), ('slot11', 12), ('slot12', 13), ('slot13', 14), ('slot14', 15), ('slot15', 16), ('slot16', 17), ('slot17', 18), ('slot18', 19), ('slot19', 20), ('slot20', 21), ('slot21', 22), ('slot22', 23), ('slot23', 24), ('slot24', 25), ('slot25', 26), ('slot26', 27), ('slot27', 28), ('slot28', 29), ('slot29', 30), ('slot30', 31), ('slot31', 32), ('slot32', 33), ('slot33', 34), ('slot34', 35), ('slot35', 36), ('slot36', 37), ('slot37', 38), ('slot38', 39), ('slot39', 40), ('slot40', 41), ('aLim', 55), ('bLim', 56), ('cLim', 57), ('dLim', 58), ('leftController', 49), ('rightController', 50), ('controller', 42), ('firstControlModule', 53), ('secondControlModule', 54), ('trunkModule1', 45), ('trunkModule2', 46), ('controlModule', 51), ('slotPrimary', 59)))).setLabel('atmIntfSigParams-Address-PhysicalAddress-Slot').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_Slot.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_Slot.setDescription('The number of the slot that the addressed physical device resides on.')
atm_intf_sig_params__address__physical_address__item_number = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 7), integer32()).setLabel('atmIntfSigParams-Address-PhysicalAddress-ItemNumber').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_ItemNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_PhysicalAddress_ItemNumber.setDescription('A number that specifies an addressable entity within the context of shelf and slot.')
atm_intf_sig_params__address__logical_item = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 8), integer32()).setLabel('atmIntfSigParams-Address-LogicalItem').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_LogicalItem.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Address_LogicalItem.setDescription('A number that specifies an addressable logical entity within the context of a physical address.')
atm_intf_sig_params_q2931_options__max_restart = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 9), integer32()).setLabel('atmIntfSigParams-Q2931Options-MaxRestart').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_MaxRestart.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_MaxRestart.setDescription('Maximum number of unacknowledged tx RESTART.')
atm_intf_sig_params_q2931_options__max_statenq = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 10), integer32()).setLabel('atmIntfSigParams-Q2931Options-MaxStatenq').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_MaxStatenq.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_MaxStatenq.setDescription('Maximum number of unacknowledged tx STATUS ENQ.')
atm_intf_sig_params_q2931_options_t301_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 11), integer32()).setLabel('atmIntfSigParams-Q2931Options-T301Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T301Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T301Ms.setDescription('Timer (in msec) for alerting supervision function. This timer is started on receipt of ALERT in Call received/delivered state and stopped when CONNECT is received.')
atm_intf_sig_params_q2931_options_t303_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 12), integer32()).setLabel('atmIntfSigParams-Q2931Options-T303Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T303Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T303Ms.setDescription('Timer (in msec) for a response after SETUP is sent. This timer is stopped when the CONNECT, CALL PROCEEDING, or RELEASE COMPLETE is received.')
atm_intf_sig_params_q2931_options_t306_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 13), integer32()).setLabel('atmIntfSigParams-Q2931Options-T306Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T306Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T306Ms.setDescription('Timer (in msec) for a RELEASE_COMPLETE to be received after a release has been sent.')
atm_intf_sig_params_q2931_options_t308_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 14), integer32()).setLabel('atmIntfSigParams-Q2931Options-T308Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T308Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T308Ms.setDescription('Timer (in msec) for a response after RELEASE is sent. This is a release indication timer. This timer is started when the RELEASE message is sent and normally is stopped when the RELEASE or RELEASE COMPLETE is received.')
atm_intf_sig_params_q2931_options_t309_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 15), integer32()).setLabel('atmIntfSigParams-Q2931Options-T309Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T309Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T309Ms.setDescription('Timer (in msec) for Q.SAAL to reconnect. After this time, calls are dropped. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_intf_sig_params_q2931_options_t310_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 16), integer32()).setLabel('atmIntfSigParams-Q2931Options-T310Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T310Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T310Ms.setDescription('Timer (in msec) for a response after SETUP is received. Also called the CALL PROCEEDING timer.')
atm_intf_sig_params_q2931_options_t313_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 17), integer32()).setLabel('atmIntfSigParams-Q2931Options-T313Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T313Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T313Ms.setDescription('Timer (in msec) for a response after CONNECT is sent. Also called the connect request timer. It is started when the CONNECT is sent and stopped when the CONNECT ACKNOWLEDGE is recieved.')
atm_intf_sig_params_q2931_options_t316_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 18), integer32()).setLabel('atmIntfSigParams-Q2931Options-T316Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T316Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T316Ms.setDescription('Timer (in msec) for a response after RESTART is sent. Also called the restart request timer. It is started when the RESTART is sent and stopped when the RESTART ACKNOWLEDGE is recieved.')
atm_intf_sig_params_q2931_options_t317_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 19), integer32()).setLabel('atmIntfSigParams-Q2931Options-T317Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T317Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T317Ms.setDescription('Timer (in msec) for internal clearing of call references. This timer is started as a result of a restart and cleared when all the internal call references are cleared. Should be less than the the likely value of T316 of the peer.')
atm_intf_sig_params_q2931_options_t322_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 20), integer32()).setLabel('atmIntfSigParams-Q2931Options-T322Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T322Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T322Ms.setDescription('Timer (in msec) for a response after STATUS ENQ is sent.')
atm_intf_sig_params_q2931_options_t331_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 21), integer32()).setLabel('atmIntfSigParams-Q2931Options-T331Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T331Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T331Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_intf_sig_params_q2931_options_t333_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 22), integer32()).setLabel('atmIntfSigParams-Q2931Options-T333Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T333Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T333Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_intf_sig_params_q2931_options_t397_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 23), integer32()).setLabel('atmIntfSigParams-Q2931Options-T397Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T397Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T397Ms.setDescription('Timer (in msec) for internal clearing of call references.')
atm_intf_sig_params_q2931_options_t398_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 24), integer32()).setLabel('atmIntfSigParams-Q2931Options-T398Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T398Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T398Ms.setDescription('Timer (in msec) for receipt of a response to a DROP PARTY that was sent.')
atm_intf_sig_params_q2931_options_t399_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 25), integer32()).setLabel('atmIntfSigParams-Q2931Options-T399Ms').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T399Ms.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T399Ms.setDescription('Timer (in msec) for receipt of a response to an ADD PARTY that was sent.')
atm_intf_sig_params_q2931_options__saal_retry_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 26), integer32()).setLabel('atmIntfSigParams-Q2931Options-SaalRetryMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_SaalRetryMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_SaalRetryMs.setDescription('Timer value for retrying AAL_ESTABLISH messages.')
atm_intf_sig_params_q2931_options_t303_num_reties = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 27), integer32()).setLabel('atmIntfSigParams-Q2931Options-T303NumReties').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T303NumReties.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T303NumReties.setDescription('Number of times SETUP could be resent in case of T303 timer expiry.')
atm_intf_sig_params_q2931_options_t308_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 28), integer32()).setLabel('atmIntfSigParams-Q2931Options-T308NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T308NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T308NumRetries.setDescription('Number of times RELEASE could be sent in case of T308 timer expiry.')
atm_intf_sig_params_q2931_options_t316_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 29), integer32()).setLabel('atmIntfSigParams-Q2931Options-T316NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T316NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T316NumRetries.setDescription('Number of times RESTART could be sent in case RESTART ACK is not received withinn T316 timer expiry.')
atm_intf_sig_params_q2931_options_t322_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 30), integer32()).setLabel('atmIntfSigParams-Q2931Options-T322NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T322NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T322NumRetries.setDescription('Number of times STAT ENQ could be sent before a response is received within the T322 timer expiry.')
atm_intf_sig_params_q2931_options_t331_num_retries = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 31), integer32()).setLabel('atmIntfSigParams-Q2931Options-T331NumRetries').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T331NumRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_T331NumRetries.setDescription('')
atm_intf_sig_params_q2931_options__assign_vpi_vci = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmIntfSigParams-Q2931Options-AssignVpiVci').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_AssignVpiVci.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Q2931Options_AssignVpiVci.setDescription('In the case of UNI4.0 and PNNI this parameter specifies who assigns the VPI/VCI. TRUE will allow the local stack and FALSE will let the partner stack to assign.')
atm_intf_sig_params__qsaal_options__window_size = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 33), integer32()).setLabel('atmIntfSigParams-QsaalOptions-WindowSize').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_WindowSize.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_WindowSize.setDescription('Q.SAAL window size')
atm_intf_sig_params__qsaal_options__max_cc = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 34), integer32()).setLabel('atmIntfSigParams-QsaalOptions-MaxCc').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxCc.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxCc.setDescription('Maximum number of control PDU (BGN, END, RESYNC) retransmissions.')
atm_intf_sig_params__qsaal_options__max_pd = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 35), integer32()).setLabel('atmIntfSigParams-QsaalOptions-MaxPd').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxPd.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxPd.setDescription("Maximum number of Sequenced data PDU's between poll.")
atm_intf_sig_params__qsaal_options__max_stat = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 36), integer32()).setLabel('atmIntfSigParams-QsaalOptions-MaxStat').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxStat.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_MaxStat.setDescription('Maximum length of STAT PDU.')
atm_intf_sig_params__qsaal_options__tcc_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 37), integer32()).setLabel('atmIntfSigParams-QsaalOptions-TccMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TccMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TccMs.setDescription("Retry time (in msec) for control PDU's(BGN, END, RESYNC).")
atm_intf_sig_params__qsaal_options__tpoll_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 38), integer32()).setLabel('atmIntfSigParams-QsaalOptions-TpollMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TpollMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TpollMs.setDescription('Poll sent (in msec) when active. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_intf_sig_params__qsaal_options__tkeepalive_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 39), integer32()).setLabel('atmIntfSigParams-QsaalOptions-TkeepaliveMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TkeepaliveMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TkeepaliveMs.setDescription('Poll sent (in msec) when in transient state. When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_intf_sig_params__qsaal_options__tnoresponse_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 40), integer32()).setLabel('atmIntfSigParams-QsaalOptions-TnoresponseMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TnoresponseMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TnoresponseMs.setDescription('STAT received at least this period(in msec). When set to 0, a default value based on an ATM signaling protocol will be used.')
atm_intf_sig_params__qsaal_options__tidle_ms = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 41), integer32()).setLabel('atmIntfSigParams-QsaalOptions-TidleMs').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TidleMs.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_TidleMs.setDescription('Poll sent (in msec) when idle -- UNI 3.1, only.')
atm_intf_sig_params__qsaal_options__poll_after_retransmission = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmIntfSigParams-QsaalOptions-PollAfterRetransmission').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_PollAfterRetransmission.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_PollAfterRetransmission.setDescription('Specifies after retransmitting PDUs whether a POLL must be sent before sending any further PDUs.')
atm_intf_sig_params__qsaal_options__repeat_ustat = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 43), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmIntfSigParams-QsaalOptions-RepeatUstat').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_RepeatUstat.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_RepeatUstat.setDescription('Specifies whether two USTAT messages should be sent each time it is required to be sent.')
atm_intf_sig_params__qsaal_options__ustat_rsp_to_poll = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setLabel('atmIntfSigParams-QsaalOptions-UstatRspToPoll').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_UstatRspToPoll.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_QsaalOptions_UstatRspToPoll.setDescription('Specifies whether a USTAT should be sent in response to a POLL indicating an out of sequence PDU.')
atm_intf_sig_params__action_o = mib_scalar((1, 3, 6, 1, 4, 1, 529, 23, 52, 1, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noAction', 1), ('createProfile', 2), ('deleteProfile', 3)))).setLabel('atmIntfSigParams-Action-o').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
atmIntfSigParams_Action_o.setStatus('mandatory')
if mibBuilder.loadTexts:
atmIntfSigParams_Action_o.setDescription('')
mibBuilder.exportSymbols('ASCEND-MIBATMSIG-MIB', mibatmIntfSigParams=mibatmIntfSigParams, atmIntfSigParams_Q2931Options_T398Ms=atmIntfSigParams_Q2931Options_T398Ms, atmIntfSigParams_Q2931Options_T322NumRetries=atmIntfSigParams_Q2931Options_T322NumRetries, atmIntfSigParams_Address_PhysicalAddress_Slot=atmIntfSigParams_Address_PhysicalAddress_Slot, atmIntfSigParams_Q2931Options_T308Ms=atmIntfSigParams_Q2931Options_T308Ms, atmIntfSigParams_Q2931Options_T301Ms=atmIntfSigParams_Q2931Options_T301Ms, atmIntfSigParams_Item_o=atmIntfSigParams_Item_o, atmIntfSigParams_Address_PhysicalAddress_ItemNumber=atmIntfSigParams_Address_PhysicalAddress_ItemNumber, atmIntfSigParams_QsaalOptions_UstatRspToPoll=atmIntfSigParams_QsaalOptions_UstatRspToPoll, atmIntfSigParams_LogicalItem_o=atmIntfSigParams_LogicalItem_o, atmIntfSigParams_Q2931Options_T310Ms=atmIntfSigParams_Q2931Options_T310Ms, atmIntfSigParams_Q2931Options_T333Ms=atmIntfSigParams_Q2931Options_T333Ms, atmIntfSigParams_Q2931Options_T303NumReties=atmIntfSigParams_Q2931Options_T303NumReties, atmIntfSigParams_Q2931Options_T397Ms=atmIntfSigParams_Q2931Options_T397Ms, atmIntfSigParams_Q2931Options_AssignVpiVci=atmIntfSigParams_Q2931Options_AssignVpiVci, atmIntfSigParams_QsaalOptions_RepeatUstat=atmIntfSigParams_QsaalOptions_RepeatUstat, atmIntfSigParams_Q2931Options_T331NumRetries=atmIntfSigParams_Q2931Options_T331NumRetries, atmIntfSigParams_Q2931Options_T309Ms=atmIntfSigParams_Q2931Options_T309Ms, atmIntfSigParams_Slot_o=atmIntfSigParams_Slot_o, atmIntfSigParams_Q2931Options_T303Ms=atmIntfSigParams_Q2931Options_T303Ms, atmIntfSigParams_QsaalOptions_TkeepaliveMs=atmIntfSigParams_QsaalOptions_TkeepaliveMs, mibatmIntfSigParamsTable=mibatmIntfSigParamsTable, atmIntfSigParams_Q2931Options_MaxStatenq=atmIntfSigParams_Q2931Options_MaxStatenq, atmIntfSigParams_Q2931Options_T331Ms=atmIntfSigParams_Q2931Options_T331Ms, atmIntfSigParams_Q2931Options_T316Ms=atmIntfSigParams_Q2931Options_T316Ms, atmIntfSigParams_Q2931Options_T399Ms=atmIntfSigParams_Q2931Options_T399Ms, atmIntfSigParams_QsaalOptions_TnoresponseMs=atmIntfSigParams_QsaalOptions_TnoresponseMs, atmIntfSigParams_QsaalOptions_TpollMs=atmIntfSigParams_QsaalOptions_TpollMs, atmIntfSigParams_QsaalOptions_PollAfterRetransmission=atmIntfSigParams_QsaalOptions_PollAfterRetransmission, atmIntfSigParams_QsaalOptions_MaxPd=atmIntfSigParams_QsaalOptions_MaxPd, atmIntfSigParams_Shelf_o=atmIntfSigParams_Shelf_o, atmIntfSigParams_Q2931Options_T308NumRetries=atmIntfSigParams_Q2931Options_T308NumRetries, atmIntfSigParams_Q2931Options_T316NumRetries=atmIntfSigParams_Q2931Options_T316NumRetries, atmIntfSigParams_Q2931Options_MaxRestart=atmIntfSigParams_Q2931Options_MaxRestart, atmIntfSigParams_Q2931Options_T313Ms=atmIntfSigParams_Q2931Options_T313Ms, atmIntfSigParams_QsaalOptions_TidleMs=atmIntfSigParams_QsaalOptions_TidleMs, atmIntfSigParams_Address_LogicalItem=atmIntfSigParams_Address_LogicalItem, atmIntfSigParams_Q2931Options_T306Ms=atmIntfSigParams_Q2931Options_T306Ms, DisplayString=DisplayString, atmIntfSigParams_Q2931Options_T317Ms=atmIntfSigParams_Q2931Options_T317Ms, atmIntfSigParams_Address_PhysicalAddress_Shelf=atmIntfSigParams_Address_PhysicalAddress_Shelf, atmIntfSigParams_Q2931Options_T322Ms=atmIntfSigParams_Q2931Options_T322Ms, atmIntfSigParams_Action_o=atmIntfSigParams_Action_o, atmIntfSigParams_QsaalOptions_TccMs=atmIntfSigParams_QsaalOptions_TccMs, atmIntfSigParams_Q2931Options_SaalRetryMs=atmIntfSigParams_Q2931Options_SaalRetryMs, mibatmIntfSigParamsEntry=mibatmIntfSigParamsEntry, atmIntfSigParams_QsaalOptions_WindowSize=atmIntfSigParams_QsaalOptions_WindowSize, atmIntfSigParams_QsaalOptions_MaxCc=atmIntfSigParams_QsaalOptions_MaxCc, atmIntfSigParams_QsaalOptions_MaxStat=atmIntfSigParams_QsaalOptions_MaxStat) |
# Copyright 2020 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# A module providing utils for working with XML data formats
# If Preserve Root Element is set to true in the origin, this method
# will navigate the root elements to find the expected data element
def get_xml_output_field(origin, output_field, *root_elements):
if getattr(origin, 'preserve_root_element', False):
for element in root_elements:
output_field = output_field[element]
return output_field
| def get_xml_output_field(origin, output_field, *root_elements):
if getattr(origin, 'preserve_root_element', False):
for element in root_elements:
output_field = output_field[element]
return output_field |
def main():
pass
# wip
| def main():
pass |
# Dictionary
# : is used to specify the key
data = {1: "pvd", 2: "vsd", 3: "rhd"}
print(data)
# fetching a particular value
print(data[2])
# functions can be used
print(data.get(3))
print(data.get(4, "Not found"))
# dictionary with lists
keys = ["pvd", "vsd", "rhd"]
val = ["c", "php", "c++"]
data = dict(
zip(keys, val)
) # dict() function for converting the zipped file into a dictionary
print(data)
# adding an object as key and value
data["avd"] = "js"
print(data)
del data["avd"] # deleting data
print(data)
# Nested Dictionary
prog = {
"js": "atom",
"cs": "vs",
"python": ["PyCharm", "Sublime", "VC"],
"java": {"jse": "NetBeans", "jee": "eclipse"},
}
print(prog)
print(prog["js"])
print(prog["python"])
print(prog["python"][0])
print(prog["java"])
print(prog["java"]["jee"])
| data = {1: 'pvd', 2: 'vsd', 3: 'rhd'}
print(data)
print(data[2])
print(data.get(3))
print(data.get(4, 'Not found'))
keys = ['pvd', 'vsd', 'rhd']
val = ['c', 'php', 'c++']
data = dict(zip(keys, val))
print(data)
data['avd'] = 'js'
print(data)
del data['avd']
print(data)
prog = {'js': 'atom', 'cs': 'vs', 'python': ['PyCharm', 'Sublime', 'VC'], 'java': {'jse': 'NetBeans', 'jee': 'eclipse'}}
print(prog)
print(prog['js'])
print(prog['python'])
print(prog['python'][0])
print(prog['java'])
print(prog['java']['jee']) |
def toggle_batch_norm(config: dict, layer_id: int):
batch_norm = config['model']['conv_layers'][layer_id].get('batch_norm', False)
config['model']['conv_layers'][layer_id]['batch_norm'] = not batch_norm
def add_conv_layer(config: dict, num_filters: int, kernel_size: int, batch_norm: bool = False):
config['model']['conv_layers'].append({
'num_filters': num_filters,
'kernel_size': kernel_size,
'padding': 'same',
'batch_norm': batch_norm,
})
def delete_last_conv_layer(config: dict):
config['model']['conv_layers'] = config['model']['conv_layers'][:-1]
def change_conv_layer(config: dict, layer_id: int, num_filters: int = None, kernel_size: int = None,
batch_norm: bool = None):
if num_filters is not None:
config['model']['conv_layers'][layer_id]['num_filters'] = num_filters
if kernel_size is not None:
config['model']['conv_layers'][layer_id]['kernel_size'] = kernel_size
if batch_norm is not None:
config['model']['conv_layers'][layer_id]['batch_norm'] = batch_norm
def add_dense_layer(config: dict, num_units: int, dropout_rate: float = 0.0, l2_regularization: float = 0.0):
config['model']['dense_layers'].append({
'num_units': num_units,
'dropout_rate': dropout_rate,
'l2_regularization': l2_regularization,
})
def change_dense_layer(config: dict, layer_id: int, num_units: int = None, dropout_rate: float = None,
l2_regularization: float = None):
if num_units is not None:
config['model']['dense_layers'][layer_id]['num_units'] = num_units
if dropout_rate is not None:
config['model']['dense_layers'][layer_id]['dropout_rate'] = dropout_rate
if l2_regularization is not None:
config['model']['dense_layers'][layer_id]['l2_regularization'] = l2_regularization
def change_logits_layer(config: dict, dropout_rate: float = None):
if dropout_rate is not None:
config['model']['logits_dropout_rate'] = dropout_rate
| def toggle_batch_norm(config: dict, layer_id: int):
batch_norm = config['model']['conv_layers'][layer_id].get('batch_norm', False)
config['model']['conv_layers'][layer_id]['batch_norm'] = not batch_norm
def add_conv_layer(config: dict, num_filters: int, kernel_size: int, batch_norm: bool=False):
config['model']['conv_layers'].append({'num_filters': num_filters, 'kernel_size': kernel_size, 'padding': 'same', 'batch_norm': batch_norm})
def delete_last_conv_layer(config: dict):
config['model']['conv_layers'] = config['model']['conv_layers'][:-1]
def change_conv_layer(config: dict, layer_id: int, num_filters: int=None, kernel_size: int=None, batch_norm: bool=None):
if num_filters is not None:
config['model']['conv_layers'][layer_id]['num_filters'] = num_filters
if kernel_size is not None:
config['model']['conv_layers'][layer_id]['kernel_size'] = kernel_size
if batch_norm is not None:
config['model']['conv_layers'][layer_id]['batch_norm'] = batch_norm
def add_dense_layer(config: dict, num_units: int, dropout_rate: float=0.0, l2_regularization: float=0.0):
config['model']['dense_layers'].append({'num_units': num_units, 'dropout_rate': dropout_rate, 'l2_regularization': l2_regularization})
def change_dense_layer(config: dict, layer_id: int, num_units: int=None, dropout_rate: float=None, l2_regularization: float=None):
if num_units is not None:
config['model']['dense_layers'][layer_id]['num_units'] = num_units
if dropout_rate is not None:
config['model']['dense_layers'][layer_id]['dropout_rate'] = dropout_rate
if l2_regularization is not None:
config['model']['dense_layers'][layer_id]['l2_regularization'] = l2_regularization
def change_logits_layer(config: dict, dropout_rate: float=None):
if dropout_rate is not None:
config['model']['logits_dropout_rate'] = dropout_rate |
class CommissionScheme:
def __init__(self,
scheme: str):
self.name = scheme
self.commission = 0
def calculate_commission(self,
quantity: float,
price: float) -> float:
# Avanza.se
if self.name == 'avanza_mini':
min_com = 1.0
trans_com = quantity * price * 0.0025
if quantity * price < 400.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_small':
min_com = 39.0
trans_com = quantity * price * 0.0015
if quantity * price < 26000.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_medium':
min_com = 69.0
trans_com = quantity * price * 0.00069
if quantity * price < 100000.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_fast':
return 99.0
# No commission
else:
return 0.0
| class Commissionscheme:
def __init__(self, scheme: str):
self.name = scheme
self.commission = 0
def calculate_commission(self, quantity: float, price: float) -> float:
if self.name == 'avanza_mini':
min_com = 1.0
trans_com = quantity * price * 0.0025
if quantity * price < 400.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_small':
min_com = 39.0
trans_com = quantity * price * 0.0015
if quantity * price < 26000.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_medium':
min_com = 69.0
trans_com = quantity * price * 0.00069
if quantity * price < 100000.0:
return min_com
else:
return trans_com
elif self.name == 'avanza_fast':
return 99.0
else:
return 0.0 |
f1 = 'psychoticism'
f2 = 'neuroticism'
f3 = 'extraversion'
f4 = 'lie'
factors_names = (f1,f2,f3,f4)
factors = {
1:{
22 :(f1,)
, 26 :(f1,)
, 30 :(f1,)
, 33 :(f1,)
, 43 :(f1,)
, 46 :(f1,)
, 50 :(f1,)
, 65 :(f1,)
, 67 :(f1,)
, 74 :(f1,)
, 76 :(f1,)
, 79 :(f1,)
, 83 :(f1,)
, 87 :(f1,)
, 3 :(f2,)
, 7 :(f2,)
, 12 :(f2,)
, 15 :(f2,)
, 19 :(f2,)
, 23 :(f2,)
, 27 :(f2,)
, 31 :(f2,)
, 34 :(f2,)
, 38 :(f2,)
, 41 :(f2,)
, 47 :(f2,)
, 54 :(f2,)
, 58 :(f2,)
, 62 :(f2,)
, 66 :(f2,)
, 68 :(f2,)
, 72 :(f2,)
, 75 :(f2,)
, 77 :(f2,)
, 80 :(f2,)
, 84 :(f2,)
, 88 :(f2,)
, 1 :(f3,)
, 5 :(f3,)
, 10 :(f3,)
, 14 :(f3,)
, 17 :(f3,)
, 25 :(f3,)
, 32 :(f3,)
, 36 :(f3,)
, 40 :(f3,)
, 45 :(f3,)
, 49 :(f3,)
, 52 :(f3,)
, 56 :(f3,)
, 60 :(f3,)
, 64 :(f3,)
, 70 :(f3,)
, 82 :(f3,)
, 86 :(f3,)
, 13 :(f4,)
, 20 :(f4,)
, 35 :(f4,)
, 55 :(f4,)
, 78 :(f4,)
, 89 :(f4,)
} ,
2:{
2 :(f1,)
, 6 :(f1,)
, 9 :(f1,)
, 11 :(f1,)
, 18 :(f1,)
, 37 :(f1,)
, 53 :(f1,)
, 57 :(f1,)
, 61 :(f1,)
, 71 :(f1,)
, 90 :(f1,)
, 21 :(f3,)
, 29 :(f3,)
, 42 :(f3,)
, 4 :(f4,)
, 8 :(f4,)
, 16 :(f4,)
, 24 :(f4,)
, 28 :(f4,)
, 39 :(f4,)
, 44 :(f4,)
, 48 :(f4,)
, 51 :(f4,)
, 59 :(f4,)
, 63 :(f4,)
, 69 :(f4,)
, 73 :(f4,)
, 81 :(f4,)
, 85 :(f4,)
}
}
| f1 = 'psychoticism'
f2 = 'neuroticism'
f3 = 'extraversion'
f4 = 'lie'
factors_names = (f1, f2, f3, f4)
factors = {1: {22: (f1,), 26: (f1,), 30: (f1,), 33: (f1,), 43: (f1,), 46: (f1,), 50: (f1,), 65: (f1,), 67: (f1,), 74: (f1,), 76: (f1,), 79: (f1,), 83: (f1,), 87: (f1,), 3: (f2,), 7: (f2,), 12: (f2,), 15: (f2,), 19: (f2,), 23: (f2,), 27: (f2,), 31: (f2,), 34: (f2,), 38: (f2,), 41: (f2,), 47: (f2,), 54: (f2,), 58: (f2,), 62: (f2,), 66: (f2,), 68: (f2,), 72: (f2,), 75: (f2,), 77: (f2,), 80: (f2,), 84: (f2,), 88: (f2,), 1: (f3,), 5: (f3,), 10: (f3,), 14: (f3,), 17: (f3,), 25: (f3,), 32: (f3,), 36: (f3,), 40: (f3,), 45: (f3,), 49: (f3,), 52: (f3,), 56: (f3,), 60: (f3,), 64: (f3,), 70: (f3,), 82: (f3,), 86: (f3,), 13: (f4,), 20: (f4,), 35: (f4,), 55: (f4,), 78: (f4,), 89: (f4,)}, 2: {2: (f1,), 6: (f1,), 9: (f1,), 11: (f1,), 18: (f1,), 37: (f1,), 53: (f1,), 57: (f1,), 61: (f1,), 71: (f1,), 90: (f1,), 21: (f3,), 29: (f3,), 42: (f3,), 4: (f4,), 8: (f4,), 16: (f4,), 24: (f4,), 28: (f4,), 39: (f4,), 44: (f4,), 48: (f4,), 51: (f4,), 59: (f4,), 63: (f4,), 69: (f4,), 73: (f4,), 81: (f4,), 85: (f4,)}} |
HARI = (
("Senin","Senin"),
("Selasa","Selasa"),
("Rabu","Rabu"),
("Kamis","Kamis"),
("Jumat","Jumat"),
) | hari = (('Senin', 'Senin'), ('Selasa', 'Selasa'), ('Rabu', 'Rabu'), ('Kamis', 'Kamis'), ('Jumat', 'Jumat')) |
def hamming_dist(s1, s2):
'''
returns:
pass in:
'''
if len(s1) != len(s2):
raise ValueError("Hamming dist undefined for two strings of unequal length")
return sum(ch1 != ch2 for ch1, ch2 in zip(s1, s2))
| def hamming_dist(s1, s2):
"""
returns:
pass in:
"""
if len(s1) != len(s2):
raise value_error('Hamming dist undefined for two strings of unequal length')
return sum((ch1 != ch2 for (ch1, ch2) in zip(s1, s2))) |
#!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license information.
#
# ----------------------------------------------------------------------
#
## @file pylith/friction/__init__.py
## @brief Python PyLith Friction module initialization
__all__ = ['FrictionModel',
'StaticFriction',
'SlipWeakening',
'SlipWeakeningTime',
'SlipWeakeningTimeStable',
'RateStateAgeing',
'TimeWeakening',
]
# End of file
| __all__ = ['FrictionModel', 'StaticFriction', 'SlipWeakening', 'SlipWeakeningTime', 'SlipWeakeningTimeStable', 'RateStateAgeing', 'TimeWeakening'] |
# -*- coding: utf-8 -*-
'''Autor: Alessandra Souza
Data: 05/05/2017
Objetivo: Calculo de salario liquido.
ID Urionlinejudge: 1008.'''
NUMBER=int(input())
horast=int(input())
valhr=float(input())
SALARY = (valhr*horast)
print("NUMBER = %d" %NUMBER)
print("SALARY = U$ %.2f" %SALARY)
| """Autor: Alessandra Souza
Data: 05/05/2017
Objetivo: Calculo de salario liquido.
ID Urionlinejudge: 1008."""
number = int(input())
horast = int(input())
valhr = float(input())
salary = valhr * horast
print('NUMBER = %d' % NUMBER)
print('SALARY = U$ %.2f' % SALARY) |
data = list(input().split())
counter = 0
for x in range(int(data[1])):
word = sorted(list(input()))
check = sorted(list(data[0]))
if word == check:
counter += 1
print(counter)
| data = list(input().split())
counter = 0
for x in range(int(data[1])):
word = sorted(list(input()))
check = sorted(list(data[0]))
if word == check:
counter += 1
print(counter) |
colors = [
'purple',
'blue',
'red',
] | colors = ['purple', 'blue', 'red'] |
words = "Life is short"
upper_word_list = ["LIFE", "IS", "SHORT", "USE", "PYTHON"]
lower_word_list = [
lower_w for w in upper_word_list if (lower_w := w.lower()) in words.lower()
]
print(" ".join(lower_word_list))
| words = 'Life is short'
upper_word_list = ['LIFE', 'IS', 'SHORT', 'USE', 'PYTHON']
lower_word_list = [lower_w for w in upper_word_list if (lower_w := w.lower()) in words.lower()]
print(' '.join(lower_word_list)) |
class BibleVersionNotSupportedException(Exception):
code = 600
def __init__(self, message='Bible version was not supported'):
# Call the base class constructor with the parameters it needs
super().__init__(message)
# Now for your custom code...
self.error = {
'code': self.code,
'message': message
}
| class Bibleversionnotsupportedexception(Exception):
code = 600
def __init__(self, message='Bible version was not supported'):
super().__init__(message)
self.error = {'code': self.code, 'message': message} |
def check(mark):
if mark > 100:
return None
elif mark >= 80:
return 4.00
elif mark >= 75:
return 3.75
elif mark >= 70:
return 3.50
elif mark >= 65:
return 3.25
elif mark >= 60:
return 3.00
elif mark >= 55:
return 2.75
elif mark >= 50:
return 2.50
elif mark >= 45:
return 2.25
elif mark >= 40:
return 2.00
elif mark < 40:
return 0.00
else:
return None
| def check(mark):
if mark > 100:
return None
elif mark >= 80:
return 4.0
elif mark >= 75:
return 3.75
elif mark >= 70:
return 3.5
elif mark >= 65:
return 3.25
elif mark >= 60:
return 3.0
elif mark >= 55:
return 2.75
elif mark >= 50:
return 2.5
elif mark >= 45:
return 2.25
elif mark >= 40:
return 2.0
elif mark < 40:
return 0.0
else:
return None |
filenames = ['the-big-picture.md',
'inspecting.md',
'download-html.md',
'create-soup-and-search.md',
'scrape-data-from-tag.md',
'project1-basketball-data-from-nba.md',
'project2-game-data-from-steam.md',
'project3-movie-data-from-imdb.md',
'project4-product-data-from-amazon.md'
]
with open('book.md', 'w') as outfile:
for fname in filenames:
with open(fname) as infile:
for line in infile:
if ('---' not in line) and ('layout: default' not in line):
outfile.write(line)
| filenames = ['the-big-picture.md', 'inspecting.md', 'download-html.md', 'create-soup-and-search.md', 'scrape-data-from-tag.md', 'project1-basketball-data-from-nba.md', 'project2-game-data-from-steam.md', 'project3-movie-data-from-imdb.md', 'project4-product-data-from-amazon.md']
with open('book.md', 'w') as outfile:
for fname in filenames:
with open(fname) as infile:
for line in infile:
if '---' not in line and 'layout: default' not in line:
outfile.write(line) |
def fbx_template_def_texture_file(scene, settings, override_defaults=None, nbr_users=0):
# WIP...
# XXX Not sure about all names!
props = OrderedDict((
(b"TextureTypeUse", (0, "p_enum", False)), # Standard.
(b"AlphaSource", (2, "p_enum", False)), # Black (i.e. texture's alpha), XXX name guessed!.
(b"Texture alpha", (1.0, "p_double", False)),
(b"PremultiplyAlpha", (True, "p_bool", False)),
(b"CurrentTextureBlendMode", (1, "p_enum", False)), # Additive...
(b"CurrentMappingType", (0, "p_enum", False)), # UV.
(b"UVSet", ("default", "p_string", False)), # UVMap name.
(b"WrapModeU", (0, "p_enum", False)), # Repeat.
(b"WrapModeV", (0, "p_enum", False)), # Repeat.
(b"UVSwap", (False, "p_bool", False)),
(b"Translation", ((0.0, 0.0, 0.0), "p_vector_3d", False)),
(b"Rotation", ((0.0, 0.0, 0.0), "p_vector_3d", False)),
(b"Scaling", ((1.0, 1.0, 1.0), "p_vector_3d", False)),
(b"TextureRotationPivot", ((0.0, 0.0, 0.0), "p_vector_3d", False)),
(b"TextureScalingPivot", ((0.0, 0.0, 0.0), "p_vector_3d", False)),
# Not sure about those two...
(b"UseMaterial", (False, "p_bool", False)),
(b"UseMipMap", (False, "p_bool", False)),
))
if override_defaults is not None:
props.update(override_defaults)
return FBXTemplate(b"Texture", b"FbxFileTexture", props, nbr_users, [False])
| def fbx_template_def_texture_file(scene, settings, override_defaults=None, nbr_users=0):
props = ordered_dict(((b'TextureTypeUse', (0, 'p_enum', False)), (b'AlphaSource', (2, 'p_enum', False)), (b'Texture alpha', (1.0, 'p_double', False)), (b'PremultiplyAlpha', (True, 'p_bool', False)), (b'CurrentTextureBlendMode', (1, 'p_enum', False)), (b'CurrentMappingType', (0, 'p_enum', False)), (b'UVSet', ('default', 'p_string', False)), (b'WrapModeU', (0, 'p_enum', False)), (b'WrapModeV', (0, 'p_enum', False)), (b'UVSwap', (False, 'p_bool', False)), (b'Translation', ((0.0, 0.0, 0.0), 'p_vector_3d', False)), (b'Rotation', ((0.0, 0.0, 0.0), 'p_vector_3d', False)), (b'Scaling', ((1.0, 1.0, 1.0), 'p_vector_3d', False)), (b'TextureRotationPivot', ((0.0, 0.0, 0.0), 'p_vector_3d', False)), (b'TextureScalingPivot', ((0.0, 0.0, 0.0), 'p_vector_3d', False)), (b'UseMaterial', (False, 'p_bool', False)), (b'UseMipMap', (False, 'p_bool', False))))
if override_defaults is not None:
props.update(override_defaults)
return fbx_template(b'Texture', b'FbxFileTexture', props, nbr_users, [False]) |
expected_output = {
'status': 'enabled',
'ssh_port': '830',
'candidate_datastore_status': 'enabled'
}
| expected_output = {'status': 'enabled', 'ssh_port': '830', 'candidate_datastore_status': 'enabled'} |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2016 Richard Hull
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
class common(object):
DISPLAYOFF = 0xAE
DISPLAYON = 0xAF
DISPLAYALLON = 0xA5
DISPLAYALLON_RESUME = 0xA4
NORMALDISPLAY = 0xA6
INVERTDISPLAY = 0xA7
SETREMAP = 0xA0
SETMULTIPLEX = 0xA8
class ssd1306(common):
CHARGEPUMP = 0x8D
COLUMNADDR = 0x21
COMSCANDEC = 0xC8
COMSCANINC = 0xC0
EXTERNALVCC = 0x1
MEMORYMODE = 0x20
PAGEADDR = 0x22
SETCOMPINS = 0xDA
SETCONTRAST = 0x81
SETDISPLAYCLOCKDIV = 0xD5
SETDISPLAYOFFSET = 0xD3
SETHIGHCOLUMN = 0x10
SETLOWCOLUMN = 0x00
SETPRECHARGE = 0xD9
SETSEGMENTREMAP = 0xA1
SETSTARTLINE = 0x40
SETVCOMDETECT = 0xDB
SWITCHCAPVCC = 0x2
sh1106 = ssd1306
class ssd1331(common):
ACTIVESCROLLING = 0x2F
CLOCKDIVIDER = 0xB3
CONTINUOUSSCROLLINGSETUP = 0x27
DEACTIVESCROLLING = 0x2E
DISPLAYONDIM = 0xAC
LOCKMODE = 0xFD
MASTERCURRENTCONTROL = 0x87
NORMALDISPLAY = 0xA4
PHASE12PERIOD = 0xB1
POWERSAVEMODE = 0xB0
SETCOLUMNADDR = 0x15
SETCONTRASTA = 0x81
SETCONTRASTB = 0x82
SETCONTRASTC = 0x83
SETDISPLAYOFFSET = 0xA2
SETDISPLAYSTARTLINE = 0xA1
SETMASTERCONFIGURE = 0xAD
SETPRECHARGESPEEDA = 0x8A
SETPRECHARGESPEEDB = 0x8B
SETPRECHARGESPEEDC = 0x8C
SETPRECHARGEVOLTAGE = 0xBB
SETROWADDR = 0x75
SETVVOLTAGE = 0xBE
| class Common(object):
displayoff = 174
displayon = 175
displayallon = 165
displayallon_resume = 164
normaldisplay = 166
invertdisplay = 167
setremap = 160
setmultiplex = 168
class Ssd1306(common):
chargepump = 141
columnaddr = 33
comscandec = 200
comscaninc = 192
externalvcc = 1
memorymode = 32
pageaddr = 34
setcompins = 218
setcontrast = 129
setdisplayclockdiv = 213
setdisplayoffset = 211
sethighcolumn = 16
setlowcolumn = 0
setprecharge = 217
setsegmentremap = 161
setstartline = 64
setvcomdetect = 219
switchcapvcc = 2
sh1106 = ssd1306
class Ssd1331(common):
activescrolling = 47
clockdivider = 179
continuousscrollingsetup = 39
deactivescrolling = 46
displayondim = 172
lockmode = 253
mastercurrentcontrol = 135
normaldisplay = 164
phase12_period = 177
powersavemode = 176
setcolumnaddr = 21
setcontrasta = 129
setcontrastb = 130
setcontrastc = 131
setdisplayoffset = 162
setdisplaystartline = 161
setmasterconfigure = 173
setprechargespeeda = 138
setprechargespeedb = 139
setprechargespeedc = 140
setprechargevoltage = 187
setrowaddr = 117
setvvoltage = 190 |
# -*- coding: utf-8 -*-
class ModuleDocFragment(object):
# Git doc fragment
DOCUMENTATION = '''
options:
git_token:
description:
- Git token used for authentication
- Required if I(git_username=None)
- If not set, the value of the C(GIT_TOKEN) environment variable is used.
type: str
required: no
git_username:
description:
- Username used for Github authorization
- Required if I(git_token=None)
- If not set, the value of the C(GIT_USERNAME) environment variable is used.
type: str
required: no
git_password:
description:
- Password used for Github authorization
- Required if I(git_token=None)
- If not set, the value of the C(GIT_PASSWORD) environment variable is used.
type: str
required: no
repo:
description:
- Name of the GitHub repository
- If not set, the value of the C(GIT_REPO) environment variable is used.
type: str
required: yes
org:
description:
- Name of the GitHub organization (or user account)
- If not set, the value of the C(GIT_ORG) environment variable is used.
type: str
required: yes
branch:
description:
- Name of the GitHub repository branch
type: str
default: master
required: yes
working_dir:
description: Path to the working directory for git clone
required: true
type: str
'''
| class Moduledocfragment(object):
documentation = '\noptions:\n git_token:\n description:\n - Git token used for authentication\n - Required if I(git_username=None)\n - If not set, the value of the C(GIT_TOKEN) environment variable is used.\n type: str\n required: no\n git_username:\n description:\n - Username used for Github authorization\n - Required if I(git_token=None)\n - If not set, the value of the C(GIT_USERNAME) environment variable is used.\n type: str\n required: no\n git_password:\n description:\n - Password used for Github authorization\n - Required if I(git_token=None)\n - If not set, the value of the C(GIT_PASSWORD) environment variable is used.\n type: str\n required: no\n repo:\n description:\n - Name of the GitHub repository\n - If not set, the value of the C(GIT_REPO) environment variable is used.\n type: str\n required: yes\n org:\n description:\n - Name of the GitHub organization (or user account)\n - If not set, the value of the C(GIT_ORG) environment variable is used.\n type: str\n required: yes\n branch:\n description:\n - Name of the GitHub repository branch\n type: str\n default: master\n required: yes\n working_dir:\n description: Path to the working directory for git clone\n required: true\n type: str\n' |
#!/usr/bin/env python3
def unit_fraction(d):
n = 10
while True:
yield n//d, n%d
n = 10*(n%d)
def longest_chain(d):
encountered = []
for pair in unit_fraction(d):
if pair in encountered:
return len(encountered[encountered.index(pair):])
else:
encountered.append(pair)
length2d = { longest_chain(d): d for d in range(1, 1000) }
print(length2d[max(length2d.keys())])
| def unit_fraction(d):
n = 10
while True:
yield (n // d, n % d)
n = 10 * (n % d)
def longest_chain(d):
encountered = []
for pair in unit_fraction(d):
if pair in encountered:
return len(encountered[encountered.index(pair):])
else:
encountered.append(pair)
length2d = {longest_chain(d): d for d in range(1, 1000)}
print(length2d[max(length2d.keys())]) |
class Decision(object):
def __init__(self, action=None):
self.action = action
def get_action(self):
return self.action
def decision(self):
action = self.get_action()
if action == 4:
return "open"
elif action == 6:
return "fold"
elif action == 0: # A way to stop getting more hands without an IDE
return "stop"
else:
print("Invalid choice.")
def __str__(self):
return str(self.action)
| class Decision(object):
def __init__(self, action=None):
self.action = action
def get_action(self):
return self.action
def decision(self):
action = self.get_action()
if action == 4:
return 'open'
elif action == 6:
return 'fold'
elif action == 0:
return 'stop'
else:
print('Invalid choice.')
def __str__(self):
return str(self.action) |
class Solution:
def permute(self, nums: [int]) -> [[int]]:
if len(nums) <= 1:
return [nums]
ans = []
perms = self.permute(nums[1:])
for perm in perms:
for i in range(0, len(perm) + 1):
p = perm[:i] + [nums[0]] + perm[i:]
ans.append(p)
return ans
| class Solution:
def permute(self, nums: [int]) -> [[int]]:
if len(nums) <= 1:
return [nums]
ans = []
perms = self.permute(nums[1:])
for perm in perms:
for i in range(0, len(perm) + 1):
p = perm[:i] + [nums[0]] + perm[i:]
ans.append(p)
return ans |
def get_summary(name = "Daisi user"):
text = '''
This Daisi is a simple endpoint to a *Hello World* function, with a straightforward
Streamlit app.
Call the `hello()` endpoint in Python with `pydaisi`:
```python
import pydaisi as pyd
print_hello_app = pyd.Daisi("Print Hello App")
greetings = print_hello_app.hello("'''
text += name + '''").value
print(greetings)
```
'''
return text | def get_summary(name='Daisi user'):
text = '\n\n This Daisi is a simple endpoint to a *Hello World* function, with a straightforward\n Streamlit app.\n\n Call the `hello()` endpoint in Python with `pydaisi`:\n\n ```python\n import pydaisi as pyd\n\n print_hello_app = pyd.Daisi("Print Hello App")\n greetings = print_hello_app.hello("'
text += name + '").value\n\n print(greetings)\n ```\n '
return text |
def image(request, id):
return HttpResponse(open(directory.settings.DIRNAME +
"/static/images/profile/" + id, "rb").read(),
mimetype = directory.models.Entity.objects.filter(id = int(id))[0].image_mimetype)
| def image(request, id):
return http_response(open(directory.settings.DIRNAME + '/static/images/profile/' + id, 'rb').read(), mimetype=directory.models.Entity.objects.filter(id=int(id))[0].image_mimetype) |
def score_game(frames):
total = 0
for index, frame in enumerate(frames):
# frame => (10, 0) # 14, frame+1 => (2, 2) # 4
frame_total = sum(frame)
if frame[0] == 10:
total += sum(frames[index + 1])
# if frames[index + 2][0] == 10:
# total += frames[index + 2][0]
elif frame_total == 10:
total += frames[index + 1][0]
total += frame_total
return total
| def score_game(frames):
total = 0
for (index, frame) in enumerate(frames):
frame_total = sum(frame)
if frame[0] == 10:
total += sum(frames[index + 1])
elif frame_total == 10:
total += frames[index + 1][0]
total += frame_total
return total |
class LocalCommunicationService:
__hotword_file = "/home/pi/teddy-vision/hotword.txt"
__instance = None
@staticmethod
def getInstance():
if LocalCommunicationService.__instance == None:
LocalCommunicationService()
return LocalCommunicationService.__instance
def __init__(self):
LocalCommunicationService.__instance = self
def write_hotword(self, hotword):
with open(self.__hotword_file, "w") as f:
f.write(hotword)
def read_hotword(self):
ret = None
with open(self.__hotword_file, "r") as f:
ret = f.readline()
return ret
| class Localcommunicationservice:
__hotword_file = '/home/pi/teddy-vision/hotword.txt'
__instance = None
@staticmethod
def get_instance():
if LocalCommunicationService.__instance == None:
local_communication_service()
return LocalCommunicationService.__instance
def __init__(self):
LocalCommunicationService.__instance = self
def write_hotword(self, hotword):
with open(self.__hotword_file, 'w') as f:
f.write(hotword)
def read_hotword(self):
ret = None
with open(self.__hotword_file, 'r') as f:
ret = f.readline()
return ret |
def ha_muito_tempo_atras():
n = int(input())
for i in range(n):
anos = int(input())
if anos > 2014:
print(f'{anos-2014} A.C.')
else:
print(f'{2015-anos} D.C.')
ha_muito_tempo_atras()
| def ha_muito_tempo_atras():
n = int(input())
for i in range(n):
anos = int(input())
if anos > 2014:
print(f'{anos - 2014} A.C.')
else:
print(f'{2015 - anos} D.C.')
ha_muito_tempo_atras() |
# Problem Set 5 - Problem 3 - CiphertextMessage
#
# Released 2021-07-07 14:00 UTC+00
# Started 2021-07-08 04:25 UTC+00
# Finished 2021-07-08 04:28 UTC+00
# https://github.com/lcsm29/edx-mit-6.00.1x
#
# oooo w r i t t e n b y .oooo. .ooooo.
# `888 .dP""Y88b 888' `Y88.
# 888 .ooooo. .oooo.o ooo. .oo. .oo. ]8P' 888 888
# 888 d88' `"Y8 d88( "8 `888P"Y88bP"Y88b .d8P' `Vbood888
# 888 888 `"Y88b. 888 888 888 .dP' 888'
# 888 888 .o8 o. )88b 888 888 888 .oP .o .88P'
# o888o `Y8bod8P' 8""888P' o888o o888o o888o 8888888888 .oP'
class CiphertextMessage(Message):
def __init__(self, text):
'''
Initializes a CiphertextMessage object
text (string): the message's text
a CiphertextMessage object has two attributes:
self.message_text (string, determined by input text)
self.valid_words (list, determined using helper function load_words)
'''
Message.__init__(self, text)
def decrypt_message(self):
'''
Decrypt self.message_text by trying every possible shift value
and find the "best" one. We will define "best" as the shift that
creates the maximum number of real words when we use apply_shift(shift)
on the message text. If s is the original shift value used to encrypt
the message, then we would expect 26 - s to be the best shift value
for decrypting it.
Note: if multiple shifts are equally good such that they all create
the maximum number of you may choose any of those shifts (and their
corresponding decrypted messages) to return
Returns: a tuple of the best shift value used to decrypt the message
and the decrypted message text using that shift value
'''
candidates ={(i, self.apply_shift(i)): 0 for i in range(26)}
for candidate in candidates.keys():
for word in candidate[1].split():
if is_word(self.valid_words, word):
candidates[candidate] += 1
return max(candidates, key=candidates.get)
| class Ciphertextmessage(Message):
def __init__(self, text):
"""
Initializes a CiphertextMessage object
text (string): the message's text
a CiphertextMessage object has two attributes:
self.message_text (string, determined by input text)
self.valid_words (list, determined using helper function load_words)
"""
Message.__init__(self, text)
def decrypt_message(self):
"""
Decrypt self.message_text by trying every possible shift value
and find the "best" one. We will define "best" as the shift that
creates the maximum number of real words when we use apply_shift(shift)
on the message text. If s is the original shift value used to encrypt
the message, then we would expect 26 - s to be the best shift value
for decrypting it.
Note: if multiple shifts are equally good such that they all create
the maximum number of you may choose any of those shifts (and their
corresponding decrypted messages) to return
Returns: a tuple of the best shift value used to decrypt the message
and the decrypted message text using that shift value
"""
candidates = {(i, self.apply_shift(i)): 0 for i in range(26)}
for candidate in candidates.keys():
for word in candidate[1].split():
if is_word(self.valid_words, word):
candidates[candidate] += 1
return max(candidates, key=candidates.get) |
# set representation to bit representation and then return answer
# to read input form file
a,arr= [],[]
start,end = 3,4
with open('Naive Algo\Input\Toycontext(bit)') as file:
for line in file:
line = line.strip()
for c in line:
if c != ' ':
# print(int(c))
a.append(int(c))
# print(a)
arr.append(a)
a = []
# print(arr)
# extract the size of the matrix of which binary representation had to be made
rows= arr[-1][0]
cols=0
#print(arr[-1][0])
for i in range(len(arr)):
#print(arr[i][1:])
cols = max(arr[i][-1],cols)
arr[i] = arr[i][1:]
# print(arr)
# print(rows,cols)
# store the binary representation of matrix in brr
brr = [[0 for i in range(cols)] for j in range(rows)]
# print(brr)
for i in range(len(arr)):
for j in range(len(arr[i])):
# t = arr[i][j]
# print(t)
# print(i,arr[i][j]-1)
brr[i][arr[i][j] - 1] = 1
# print(brr[i])
#print(brr) # bit representation now their
# find and store Gr in a set s
s = set()
for st in range(start, end+1):
for i in range(len(brr)):
for j in range(len(brr[i])):
if j == st - 1 and brr[i][j] == 1:
s.add(i + 1)
#if j == end - 1 and arr[i][j] == 1:
#s.add(i + 1)
print('Gr is',s) # Gr
s1 = set()
coun = 0
k = 0
ans = 0
# store the final list of attributes in a set s1
for r in range(start):
for i in range(len(brr)):
for j in range(len(brr[i])):
if j == r - 1 and brr[i][j] == 1:
#print(r,i+1)
# k = 0
coun += 1
if i+1 in s:
k+=1
ans = j+1
# print(coun,k)
if coun == k and k!=0 and coun !=0:
s1.add(ans)
coun = 0
k = 0
print('Attributes are',s1) #attributes | (a, arr) = ([], [])
(start, end) = (3, 4)
with open('Naive Algo\\Input\\Toycontext(bit)') as file:
for line in file:
line = line.strip()
for c in line:
if c != ' ':
a.append(int(c))
arr.append(a)
a = []
rows = arr[-1][0]
cols = 0
for i in range(len(arr)):
cols = max(arr[i][-1], cols)
arr[i] = arr[i][1:]
brr = [[0 for i in range(cols)] for j in range(rows)]
for i in range(len(arr)):
for j in range(len(arr[i])):
brr[i][arr[i][j] - 1] = 1
s = set()
for st in range(start, end + 1):
for i in range(len(brr)):
for j in range(len(brr[i])):
if j == st - 1 and brr[i][j] == 1:
s.add(i + 1)
print('Gr is', s)
s1 = set()
coun = 0
k = 0
ans = 0
for r in range(start):
for i in range(len(brr)):
for j in range(len(brr[i])):
if j == r - 1 and brr[i][j] == 1:
coun += 1
if i + 1 in s:
k += 1
ans = j + 1
if coun == k and k != 0 and (coun != 0):
s1.add(ans)
coun = 0
k = 0
print('Attributes are', s1) |
#
# PySNMP MIB module PANDATEL-FHFL-MODEM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PANDATEL-FHFL-MODEM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:28:09 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")
ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
mdmSpecifics, device_id = mibBuilder.importSymbols("PANDATEL-MODEM-MIB", "mdmSpecifics", "device-id")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, TimeTicks, Bits, NotificationType, Gauge32, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ObjectIdentity, ModuleIdentity, Counter64, IpAddress, Counter32, Unsigned32, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "TimeTicks", "Bits", "NotificationType", "Gauge32", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ObjectIdentity", "ModuleIdentity", "Counter64", "IpAddress", "Counter32", "Unsigned32", "Integer32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
fhfl_modem = MibIdentifier((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 10000, 2, 101)).setLabel("fhfl-modem")
fhfl = MibIdentifier((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101))
fhflModemTable = MibTable((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1), )
if mibBuilder.loadTexts: fhflModemTable.setStatus('mandatory')
fhflTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1), ).setIndexNames((0, "PANDATEL-FHFL-MODEM-MIB", "mdmRack"), (0, "PANDATEL-FHFL-MODEM-MIB", "mdmModem"), (0, "PANDATEL-FHFL-MODEM-MIB", "mdmPosition"))
if mibBuilder.loadTexts: fhflTableEntry.setStatus('mandatory')
mdmRack = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmRack.setStatus('mandatory')
mdmModem = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmModem.setStatus('mandatory')
mdmPosition = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmPosition.setStatus('mandatory')
mdmModemName = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmModemName.setStatus('mandatory')
mdmInterfaceEmulationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 99))).clone(namedValues=NamedValues(("other", 1), ("dte", 2), ("dce", 3), ("te", 4), ("nt", 5), ("unknown", 99)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmInterfaceEmulationMode.setStatus('mandatory')
mdmModemProperty = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 99))).clone(namedValues=NamedValues(("other", 1), ("e1", 2), ("t1", 3), ("e2", 4), ("t2", 5), ("e1-t1", 6), ("e2-t2", 7), ("e3", 8), ("t3", 9), ("hssi", 10), ("atm", 11), ("eth10base-t-fullduplex", 12), ("eth10base-t-halfduplex", 13), ("unknown", 99)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mdmModemProperty.setStatus('mandatory')
mdmClockSystem = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("dual", 2), ("single", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mdmClockSystem.setStatus('mandatory')
mdmClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("internal", 2), ("remote", 3), ("external", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mdmClockSource.setStatus('mandatory')
mdmDataRate = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("other", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mdmDataRate.setStatus('mandatory')
mdmLocalCarrierDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 60), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("fo-link-and-remote-handshake", 2), ("fo-link", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mdmLocalCarrierDetect.setStatus('mandatory')
mibBuilder.exportSymbols("PANDATEL-FHFL-MODEM-MIB", fhfl=fhfl, mdmClockSource=mdmClockSource, mdmPosition=mdmPosition, fhflModemTable=fhflModemTable, mdmClockSystem=mdmClockSystem, mdmModemName=mdmModemName, fhflTableEntry=fhflTableEntry, mdmLocalCarrierDetect=mdmLocalCarrierDetect, fhfl_modem=fhfl_modem, mdmModem=mdmModem, mdmDataRate=mdmDataRate, mdmRack=mdmRack, mdmModemProperty=mdmModemProperty, mdmInterfaceEmulationMode=mdmInterfaceEmulationMode)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(mdm_specifics, device_id) = mibBuilder.importSymbols('PANDATEL-MODEM-MIB', 'mdmSpecifics', 'device-id')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(iso, time_ticks, bits, notification_type, gauge32, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, object_identity, module_identity, counter64, ip_address, counter32, unsigned32, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'TimeTicks', 'Bits', 'NotificationType', 'Gauge32', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'ObjectIdentity', 'ModuleIdentity', 'Counter64', 'IpAddress', 'Counter32', 'Unsigned32', 'Integer32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
fhfl_modem = mib_identifier((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 10000, 2, 101)).setLabel('fhfl-modem')
fhfl = mib_identifier((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101))
fhfl_modem_table = mib_table((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1))
if mibBuilder.loadTexts:
fhflModemTable.setStatus('mandatory')
fhfl_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1)).setIndexNames((0, 'PANDATEL-FHFL-MODEM-MIB', 'mdmRack'), (0, 'PANDATEL-FHFL-MODEM-MIB', 'mdmModem'), (0, 'PANDATEL-FHFL-MODEM-MIB', 'mdmPosition'))
if mibBuilder.loadTexts:
fhflTableEntry.setStatus('mandatory')
mdm_rack = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmRack.setStatus('mandatory')
mdm_modem = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmModem.setStatus('mandatory')
mdm_position = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmPosition.setStatus('mandatory')
mdm_modem_name = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmModemName.setStatus('mandatory')
mdm_interface_emulation_mode = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 99))).clone(namedValues=named_values(('other', 1), ('dte', 2), ('dce', 3), ('te', 4), ('nt', 5), ('unknown', 99)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmInterfaceEmulationMode.setStatus('mandatory')
mdm_modem_property = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 99))).clone(namedValues=named_values(('other', 1), ('e1', 2), ('t1', 3), ('e2', 4), ('t2', 5), ('e1-t1', 6), ('e2-t2', 7), ('e3', 8), ('t3', 9), ('hssi', 10), ('atm', 11), ('eth10base-t-fullduplex', 12), ('eth10base-t-halfduplex', 13), ('unknown', 99)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mdmModemProperty.setStatus('mandatory')
mdm_clock_system = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('dual', 2), ('single', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mdmClockSystem.setStatus('mandatory')
mdm_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('internal', 2), ('remote', 3), ('external', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mdmClockSource.setStatus('mandatory')
mdm_data_rate = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('other', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mdmDataRate.setStatus('mandatory')
mdm_local_carrier_detect = mib_table_column((1, 3, 6, 1, 4, 1, 760, 1, 1, 2, 1, 10, 101, 1, 1, 60), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('fo-link-and-remote-handshake', 2), ('fo-link', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mdmLocalCarrierDetect.setStatus('mandatory')
mibBuilder.exportSymbols('PANDATEL-FHFL-MODEM-MIB', fhfl=fhfl, mdmClockSource=mdmClockSource, mdmPosition=mdmPosition, fhflModemTable=fhflModemTable, mdmClockSystem=mdmClockSystem, mdmModemName=mdmModemName, fhflTableEntry=fhflTableEntry, mdmLocalCarrierDetect=mdmLocalCarrierDetect, fhfl_modem=fhfl_modem, mdmModem=mdmModem, mdmDataRate=mdmDataRate, mdmRack=mdmRack, mdmModemProperty=mdmModemProperty, mdmInterfaceEmulationMode=mdmInterfaceEmulationMode) |
# A function to check whether all salaries are equal
def areAllEqual(array):
s = set(array)
if(len(s)==1):
return True
else:
return False
# Main code starts here
testCases = int(input())
for x in range(testCases):
moveCount=0
salArray = []
n = int(input())
for j in range(n):
element = int(input())
salArray.append(element)
print(salArray)
#As long as the salries aren't equal, we'll reduce the max salary by 1
while(areAllEqual(salArray)==False):
maxElement=max(salArray)
for x in range(len(salArray)):
if(salArray[x]==maxElement):
salArray[x]=salArray[x]-1
moveCount+=1
print(salArray)
print(moveCount)
| def are_all_equal(array):
s = set(array)
if len(s) == 1:
return True
else:
return False
test_cases = int(input())
for x in range(testCases):
move_count = 0
sal_array = []
n = int(input())
for j in range(n):
element = int(input())
salArray.append(element)
print(salArray)
while are_all_equal(salArray) == False:
max_element = max(salArray)
for x in range(len(salArray)):
if salArray[x] == maxElement:
salArray[x] = salArray[x] - 1
move_count += 1
print(salArray)
print(moveCount) |
#!/usr/bin/env python3
st = "I am a string."; #intializes string variable
print(type(st)); #prints the data type of st
y = True; #initializes true boolean variable
print(type(y)); #prints the data type of y
n = False; #initializes false boolean variable
print(type(n)); #prints the data type of n
alpha_list = ["a", "b", "c"]; #initializes list
print(type(alpha_list)); #prints the data type of alpha_list
print(type(alpha_list[0])); #prints the data type of the first element of alpha_list
alpha_list.append("d"); #appends "d" to the end of alpha_list
print(alpha_list); #prints the contents of alpha_list
alpha_tuple = ("a", "b", "c"); #initializes tuple
print(type(alpha_tuple)); #prints the data type of alpha_tuple
try: #attempts the following line
alpha_tuple[2] = "d"; #checks end of alpha_tuple for "d"
except TypeError: #when a TypeError is received
print("We can'd add elements to tuples!"); #prints error message
print(alpha_tuple); #prints the contents of alpha_tuple | st = 'I am a string.'
print(type(st))
y = True
print(type(y))
n = False
print(type(n))
alpha_list = ['a', 'b', 'c']
print(type(alpha_list))
print(type(alpha_list[0]))
alpha_list.append('d')
print(alpha_list)
alpha_tuple = ('a', 'b', 'c')
print(type(alpha_tuple))
try:
alpha_tuple[2] = 'd'
except TypeError:
print("We can'd add elements to tuples!")
print(alpha_tuple) |
lst1 = input("First input: ")
lst2 = input("Second input: ")
lst1 = lst1.split()
lst2 = lst2.split()
lst2 = sorted(lst2)
templst = []
count = 0
while count < int(lst1[1]): #running the loop for k times
for elm in lst2:
elm = int(elm)
if elm <5: #checking if the player is acceptable
elm += 1
templst.append(elm)
lst2 = templst.copy()
templst = []
count += 1
#print(lst2)
final = len(lst2)//3
print(final)
| lst1 = input('First input: ')
lst2 = input('Second input: ')
lst1 = lst1.split()
lst2 = lst2.split()
lst2 = sorted(lst2)
templst = []
count = 0
while count < int(lst1[1]):
for elm in lst2:
elm = int(elm)
if elm < 5:
elm += 1
templst.append(elm)
lst2 = templst.copy()
templst = []
count += 1
final = len(lst2) // 3
print(final) |
class BinarySearchTree:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def insert(self, to_add):
if self.value > to_add:
if self.left:
self.left.insert(to_add)
else:
self.left = BinarySearchTree(to_add)
else:
if self.right:
self.right.insert(to_add)
else:
self.right = BinarySearchTree(to_add)
def all_values_less_than(self, value):
if self.value >= value:
return False
left_less_than = True
if self.left:
left_less_than = self.left.all_values_less_than(value)
right_less_than = True
if self.right:
right_less_than = self.right.all_values_less_than(value)
return left_less_than and right_less_than
def all_values_geq_than(self, value):
if self.value <= value:
return False
left_geq_than = True
if self.left:
left_geq_than = self.left.all_values_geq_than(value)
right_geq_than = True
if self.right:
right_geq_than = self.right.all_values_geq_than(value)
return left_geq_than and right_geq_than
def is_bst(self):
left_ok = True
if self.left:
left_ok = self.left.all_values_less_than(self.value) and self.left.is_bst()
right_ok = True
if self.right:
right_ok = self.right.all_values_geq_than(self.value) and self.right.is_bst()
return right_ok and left_ok
def __repr__(self):
return "({} L{} R{})".format(self.value, self.left, self.right)
| class Binarysearchtree:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def insert(self, to_add):
if self.value > to_add:
if self.left:
self.left.insert(to_add)
else:
self.left = binary_search_tree(to_add)
elif self.right:
self.right.insert(to_add)
else:
self.right = binary_search_tree(to_add)
def all_values_less_than(self, value):
if self.value >= value:
return False
left_less_than = True
if self.left:
left_less_than = self.left.all_values_less_than(value)
right_less_than = True
if self.right:
right_less_than = self.right.all_values_less_than(value)
return left_less_than and right_less_than
def all_values_geq_than(self, value):
if self.value <= value:
return False
left_geq_than = True
if self.left:
left_geq_than = self.left.all_values_geq_than(value)
right_geq_than = True
if self.right:
right_geq_than = self.right.all_values_geq_than(value)
return left_geq_than and right_geq_than
def is_bst(self):
left_ok = True
if self.left:
left_ok = self.left.all_values_less_than(self.value) and self.left.is_bst()
right_ok = True
if self.right:
right_ok = self.right.all_values_geq_than(self.value) and self.right.is_bst()
return right_ok and left_ok
def __repr__(self):
return '({} L{} R{})'.format(self.value, self.left, self.right) |
class Continuous:
def __init__(self, cont):
self.cont = cont
self.string = "ing"
vowels = "aeiou"
# Get vowels
res = set([each for each in cont if each in vowels])
#Convert to string
res = ''.join(res)
#The exceptions in English
if cont[-1] == "t" and cont[-2] == res:
print(cont + cont[-1] + self.string)
elif cont[-2:] == "ie":
print(cont.replace(cont[-2:], "y") + self.string)
elif cont[-1] == "c":
print(cont + "k" + self.string)
elif cont[-1] and cont[-2] == "e":
print(cont + self.string)
elif cont[-1] == "e":
print(cont.replace(cont[-1], '') + self.string)
elif cont[-1] == "m":
print(cont + cont[-1] + self.string)
else:
print(cont + self.string)
class Past:
def __init__(self, past):
self.past = past
def f(v):
T,x,m='aeiou',"ed",v[-1];return[[[v+x,v+m+x][v[-2]in T and m and v[-3]not in T],[v+x,v[:-1]+"ied"][v[-2]not in T]][m=='y'],v+"d"][m=='e']
if past == "go":
print("went")
elif past == "get":
print("got")
elif past == "eat":
print("ate")
else:
print(f(past)) | class Continuous:
def __init__(self, cont):
self.cont = cont
self.string = 'ing'
vowels = 'aeiou'
res = set([each for each in cont if each in vowels])
res = ''.join(res)
if cont[-1] == 't' and cont[-2] == res:
print(cont + cont[-1] + self.string)
elif cont[-2:] == 'ie':
print(cont.replace(cont[-2:], 'y') + self.string)
elif cont[-1] == 'c':
print(cont + 'k' + self.string)
elif cont[-1] and cont[-2] == 'e':
print(cont + self.string)
elif cont[-1] == 'e':
print(cont.replace(cont[-1], '') + self.string)
elif cont[-1] == 'm':
print(cont + cont[-1] + self.string)
else:
print(cont + self.string)
class Past:
def __init__(self, past):
self.past = past
def f(v):
(t, x, m) = ('aeiou', 'ed', v[-1])
return [[[v + x, v + m + x][v[-2] in T and m and (v[-3] not in T)], [v + x, v[:-1] + 'ied'][v[-2] not in T]][m == 'y'], v + 'd'][m == 'e']
if past == 'go':
print('went')
elif past == 'get':
print('got')
elif past == 'eat':
print('ate')
else:
print(f(past)) |
class Solution:
def search(self, nums: 'List[int]', target: 'int') -> 'int':
rotateindex = 0
n = len(nums)
for i in range(n - 1):
if nums[i] > nums[i + 1]:
rotateindex = i + 1
break
left = 0
right = n - 1
while left <= right:
middle = left + (right - left) // 2
realindex = middle + rotateindex
if realindex >= n:
realindex -= n
if nums[realindex] == target:
return realindex
elif nums[realindex] < target:
left = middle + 1
else:
right = middle - 1
return -1
if __name__ == "__main__":
solution = Solution()
print(solution.search(nums = [4,5,6,7,0,1,2], target = 0))
print(solution.search(nums = [4,5,6,7,0,1,2], target = 3))
| class Solution:
def search(self, nums: 'List[int]', target: 'int') -> 'int':
rotateindex = 0
n = len(nums)
for i in range(n - 1):
if nums[i] > nums[i + 1]:
rotateindex = i + 1
break
left = 0
right = n - 1
while left <= right:
middle = left + (right - left) // 2
realindex = middle + rotateindex
if realindex >= n:
realindex -= n
if nums[realindex] == target:
return realindex
elif nums[realindex] < target:
left = middle + 1
else:
right = middle - 1
return -1
if __name__ == '__main__':
solution = solution()
print(solution.search(nums=[4, 5, 6, 7, 0, 1, 2], target=0))
print(solution.search(nums=[4, 5, 6, 7, 0, 1, 2], target=3)) |
class ZBException(Exception):
pass
class ZBApiException(ZBException):
pass
class ZBMissingApiKeyException(ZBException):
pass
| class Zbexception(Exception):
pass
class Zbapiexception(ZBException):
pass
class Zbmissingapikeyexception(ZBException):
pass |
#!/usr/bin/env python3
def has_cycle(head):
curr = head
seen = set()
while curr:
if curr in seen:
return True
seen.add(curr)
curr = curr.next
return False
# Much better to understand
def has_cycle(head):
fast = head;
while (fast != None and fast.next != None):
fast = fast.next.next;
head = head.next;
if(head == fast):
return True;
return False;
| def has_cycle(head):
curr = head
seen = set()
while curr:
if curr in seen:
return True
seen.add(curr)
curr = curr.next
return False
def has_cycle(head):
fast = head
while fast != None and fast.next != None:
fast = fast.next.next
head = head.next
if head == fast:
return True
return False |
__author__ = 'pavelkosicin'
def test_validation_check_invalid_email_short_password(app):
app.validation.enter_wrong_data(username="p", password="a")
app.validation.check_invalid_email_short_password_error_message()
| __author__ = 'pavelkosicin'
def test_validation_check_invalid_email_short_password(app):
app.validation.enter_wrong_data(username='p', password='a')
app.validation.check_invalid_email_short_password_error_message() |
#!/usr/bin/env python
__version__ = '0.9.4'
| __version__ = '0.9.4' |
X, Y = map(int, input().split())
flag = False
for i in range(100):
for j in range(100):
if i+j == X and 2*i+4*j == Y:
flag = True
if flag:
print("Yes")
else:
print("No") | (x, y) = map(int, input().split())
flag = False
for i in range(100):
for j in range(100):
if i + j == X and 2 * i + 4 * j == Y:
flag = True
if flag:
print('Yes')
else:
print('No') |
# Problem Statement : Given a number A, find the smallest number that has same set of digits as A and is greater than A.
# Time Complexity : O(N)
def SmallestNumberSameSetOfDigitsAsA(A):
A_list = list(map(int, A))
l = len(A_list)
i = 0
# First we loop in the reverse order to find if there is an element greater
# than any previously traversed element
# If we do find one we break and continue to find the smallest number to the right of the
# found number but if we don' it means the number is already in descending order
# So there is no new combination to be found since it is already greater
for i in range(l-1, 0, -1):
if A_list[i] > A_list[i-1]:
break
if i == 1 and A_list[i] <= A_list[i-1]:
return -1
if i == 0:
return -1
# from the executed for loop we have found the index of the number
#smaller to the previously traversed number to be i-1
#Now we are to find numbers on right side of i-1 and find the smallest number
# to swap with the (i-1)th number
pos = i # The start index for rightmost part of the string after i-1
x = A_list[i-1]
for j in range(i+1, l):
if A_list[j] > x and A_list[j]<A_list[pos]:
pos = j
# After finding the smallest element we swap it with the (i-1)th element
A_list[i-1],A_list[pos] = A_list[pos], A_list[i-1]
# final_A = [str(int) for int in A_list]
# super_final_A = "".join(final_A)
super_final_A = 0
for j in range(i):
super_final_A = super_final_A* 10 + A_list[j]
A_list = sorted(A_list[i:])
for j in range(l-i):
super_final_A = super_final_A * 10 + A_list[j]
return super_final_A
A = "1234"
print(SmallestNumberSameSetOfDigitsAsA(A))
# Output : 1243 | def smallest_number_same_set_of_digits_as_a(A):
a_list = list(map(int, A))
l = len(A_list)
i = 0
for i in range(l - 1, 0, -1):
if A_list[i] > A_list[i - 1]:
break
if i == 1 and A_list[i] <= A_list[i - 1]:
return -1
if i == 0:
return -1
pos = i
x = A_list[i - 1]
for j in range(i + 1, l):
if A_list[j] > x and A_list[j] < A_list[pos]:
pos = j
(A_list[i - 1], A_list[pos]) = (A_list[pos], A_list[i - 1])
super_final_a = 0
for j in range(i):
super_final_a = super_final_A * 10 + A_list[j]
a_list = sorted(A_list[i:])
for j in range(l - i):
super_final_a = super_final_A * 10 + A_list[j]
return super_final_A
a = '1234'
print(smallest_number_same_set_of_digits_as_a(A)) |
def imposto_de_renda(salario):
if 0 <= salario <= 2000.0:
return print('Isento')
elif 2000.01 <= salario <= 3000.0:
imposto_sobre_salario = imposto_de_8(salario)
elif 3000.01 <= salario <= 4500.0:
imposto_sobre_salario = imposto_de_18(salario)
elif salario > 4500.00:
imposto_sobre_salario = imposto_de_28(salario)
return print(f'R$ {imposto_sobre_salario:.2f}')
def imposto_de_8(salario):
imposto8 = (salario - 2000.0) * 0.08
return imposto8
def imposto_de_18(salario):
imposto18 = (salario - 3000.0) * 0.18 + (3000.0 - 2000.0) * 0.08
return imposto18
def imposto_de_28(salario):
imposto28 = (salario - 4500) * 0.28 + (4500.0 - 3000.0) * 0.18 + (3000.0 - 2000.0) * 0.08
return imposto28
renda = float(input())
imposto_de_renda(renda)
| def imposto_de_renda(salario):
if 0 <= salario <= 2000.0:
return print('Isento')
elif 2000.01 <= salario <= 3000.0:
imposto_sobre_salario = imposto_de_8(salario)
elif 3000.01 <= salario <= 4500.0:
imposto_sobre_salario = imposto_de_18(salario)
elif salario > 4500.0:
imposto_sobre_salario = imposto_de_28(salario)
return print(f'R$ {imposto_sobre_salario:.2f}')
def imposto_de_8(salario):
imposto8 = (salario - 2000.0) * 0.08
return imposto8
def imposto_de_18(salario):
imposto18 = (salario - 3000.0) * 0.18 + (3000.0 - 2000.0) * 0.08
return imposto18
def imposto_de_28(salario):
imposto28 = (salario - 4500) * 0.28 + (4500.0 - 3000.0) * 0.18 + (3000.0 - 2000.0) * 0.08
return imposto28
renda = float(input())
imposto_de_renda(renda) |
x=[]
for i in range(10):
x.append(int(input()))
if x[i]<=0:x[i]=1
for i in range(10):print(f"X[{i}] = {x[i]}")
| x = []
for i in range(10):
x.append(int(input()))
if x[i] <= 0:
x[i] = 1
for i in range(10):
print(f'X[{i}] = {x[i]}') |
class BFC:
order_id = 80
menu = {}
def __init__(self) -> None:
self.menu = {}
def addChicken(self,*args):
for elm in range(0,len(args),2):
BFC.menu[args[elm]] = args[elm+1]
def placeOrderof(self,obj):
sum1 = 0
BFC.order_id += 1
print(f"Order ID: {BFC.order_id}")
print(f"Customer name:{obj.name}")
print("Order:")
lst = obj.order.split(",")
for elm in lst:
count = elm[0]
count = int(count)
sum1 += count*BFC.menu[elm[2::]]
print(f"Burger:{elm[2::]} , Quantity:{elm[0]}")
obj.money = sum1
class Customer:
def __init__(self,name):
self.name = name
self.order = None
self.money = None
def setOrder(self,gg):
self.order = gg
def __str__(self) -> str:
return(f"Bill of {self.name} is {self.money} taka")
print(f"It's been a wonderful day! \nToday, we have already served {BFC.order_id} customers. Few more to go before we close for today.")
print("**************************************************")
outlet1 = BFC()
print("1.==========================================")
print("Chicken Menu:")
print(BFC.menu)
print("2.==========================================")
outlet1.addChicken('Regular',95,'Spicy',125)
print("3.==========================================")
print("Chicken Menu:")
print(BFC.menu)
print("4.==========================================")
c1 = Customer("Ariyan")
c1.order = "2xRegular"
outlet1.placeOrderof(c1)
print("5.==========================================")
c2 = Customer("Ayan")
c2.setOrder("2xRegular,3xSpicy")
print("6.==========================================")
outlet1.placeOrderof(c2)
print("7.==========================================")
print(c1)
print("8.==========================================")
print(c2) | class Bfc:
order_id = 80
menu = {}
def __init__(self) -> None:
self.menu = {}
def add_chicken(self, *args):
for elm in range(0, len(args), 2):
BFC.menu[args[elm]] = args[elm + 1]
def place_orderof(self, obj):
sum1 = 0
BFC.order_id += 1
print(f'Order ID: {BFC.order_id}')
print(f'Customer name:{obj.name}')
print('Order:')
lst = obj.order.split(',')
for elm in lst:
count = elm[0]
count = int(count)
sum1 += count * BFC.menu[elm[2:]]
print(f'Burger:{elm[2:]} , Quantity:{elm[0]}')
obj.money = sum1
class Customer:
def __init__(self, name):
self.name = name
self.order = None
self.money = None
def set_order(self, gg):
self.order = gg
def __str__(self) -> str:
return f'Bill of {self.name} is {self.money} taka'
print(f"It's been a wonderful day! \nToday, we have already served {BFC.order_id} customers. Few more to go before we close for today.")
print('**************************************************')
outlet1 = bfc()
print('1.==========================================')
print('Chicken Menu:')
print(BFC.menu)
print('2.==========================================')
outlet1.addChicken('Regular', 95, 'Spicy', 125)
print('3.==========================================')
print('Chicken Menu:')
print(BFC.menu)
print('4.==========================================')
c1 = customer('Ariyan')
c1.order = '2xRegular'
outlet1.placeOrderof(c1)
print('5.==========================================')
c2 = customer('Ayan')
c2.setOrder('2xRegular,3xSpicy')
print('6.==========================================')
outlet1.placeOrderof(c2)
print('7.==========================================')
print(c1)
print('8.==========================================')
print(c2) |
# Time O(n)
# Space O(n)
# More time efficient and applicable for both Sorted and Unsorted Linked List
def removeDuplicates(ListNode):
if ListNode.head is None:
return None
current = ListNode.head
visited_nodes = set([current.value])
while current.next:
if current.next.value in visited_nodes:
current.next = current.next.next
else:
visited_nodes.add(current.value)
current = current.next
return ListNode.head
# Time O(n^2)
# Space O(1)
# More space efficient and only for Sorted Linked List
def removeDuplicates2(ListNode):
if ListNode.head is None:
return None
current = ListNode.head
while current:
runner = current
while runner.next:
if current.value == runner.next.value:
runner.next = runner.next.next
else:
runner = runner.next
current = current.next
return ListNode.head
| def remove_duplicates(ListNode):
if ListNode.head is None:
return None
current = ListNode.head
visited_nodes = set([current.value])
while current.next:
if current.next.value in visited_nodes:
current.next = current.next.next
else:
visited_nodes.add(current.value)
current = current.next
return ListNode.head
def remove_duplicates2(ListNode):
if ListNode.head is None:
return None
current = ListNode.head
while current:
runner = current
while runner.next:
if current.value == runner.next.value:
runner.next = runner.next.next
else:
runner = runner.next
current = current.next
return ListNode.head |
dest = [0x21, 0x58, 0x33, 0x57, 0x24, 0x2c, 0x66, 0x25,
0x45, 0x53, 0x34, 0x28, 0x08, 0x61, 0x11, 0x07,
0x14, 0x3d, 0x07, 0x62, 0x13, 0x72, 0x02, 0x4c]
flag = ""
random = 2019
for i in range(24):
random = (random * 23333 + 19260817) % 127
flag += chr(random ^ dest[i])
print(flag)
| dest = [33, 88, 51, 87, 36, 44, 102, 37, 69, 83, 52, 40, 8, 97, 17, 7, 20, 61, 7, 98, 19, 114, 2, 76]
flag = ''
random = 2019
for i in range(24):
random = (random * 23333 + 19260817) % 127
flag += chr(random ^ dest[i])
print(flag) |
# File Not Found Error
try:
file = open("a_text.txt")
# a_dictionary = {
# "key" : "value"
# }
# print(a_dictionary["aehdg"])
except FileNotFoundError:
file = open("a_text.txt", "w")
file.write("Write Something")
except KeyError as error_message:
print(f"The key {error_message} does not exist.")
else:
content = file.read()
print(content)
finally:
raise TypeError("This is an error I made up!")
# Your custom exceptions
height = float(input("Height: "))
weight = float(input("Weight: "))
if height > 3:
raise ValueError("Human heights should not be over 3 meters")
bmi = weight / height ** 2
print(bmi)
| try:
file = open('a_text.txt')
except FileNotFoundError:
file = open('a_text.txt', 'w')
file.write('Write Something')
except KeyError as error_message:
print(f'The key {error_message} does not exist.')
else:
content = file.read()
print(content)
finally:
raise type_error('This is an error I made up!')
height = float(input('Height: '))
weight = float(input('Weight: '))
if height > 3:
raise value_error('Human heights should not be over 3 meters')
bmi = weight / height ** 2
print(bmi) |
# __ __ __ __ __ __ __ __ __ __ __ __ ___
# |_ / \|\/|/ \ | \|__)|\ /|_ |\ | | \|_ \ /|_ | / \|__)|\/||_ |\ | |
# | \__/| |\__/ |__/| \ | \/ |__| \| |__/|__ \/ |__|__\__/| | ||__| \| |
#
VERSION = (0, 0, 1)
__version__ = '.'.join(map(str, VERSION))
#print(__version__)
| version = (0, 0, 1)
__version__ = '.'.join(map(str, VERSION)) |
def fib(n):
if n==1 or n == 2:
return 1
else:
return fib(n-1)+fib(n-2)
| def fib(n):
if n == 1 or n == 2:
return 1
else:
return fib(n - 1) + fib(n - 2) |
n= int(input("Enter the number : "))
sum = 0
temp = n
while (n):
i = 1
fact = 1
rem = int(n % 10)
while(i <= rem):
fact = fact * i
i = i + 1
sum = sum + fact
n = int(n / 10)
if(sum == temp):
print(temp,end = "")
print(" is a strong number")
else:
print(temp,end = "")
print(" is not a strong number")
| n = int(input('Enter the number : '))
sum = 0
temp = n
while n:
i = 1
fact = 1
rem = int(n % 10)
while i <= rem:
fact = fact * i
i = i + 1
sum = sum + fact
n = int(n / 10)
if sum == temp:
print(temp, end='')
print(' is a strong number')
else:
print(temp, end='')
print(' is not a strong number') |
def InsertionSubSort(L, k):
n = len(L)
for i in range(k, n):
current = L[i]
position = i-k
while position >= 0 and current < L[position]:
print("omar")
L[position + k] = L[position]
position -= k
L[position + k] = current
def ShellSort(L,k):
m = len(k)
for i in range(m):
InsertionSubSort(L,k[i])
| def insertion_sub_sort(L, k):
n = len(L)
for i in range(k, n):
current = L[i]
position = i - k
while position >= 0 and current < L[position]:
print('omar')
L[position + k] = L[position]
position -= k
L[position + k] = current
def shell_sort(L, k):
m = len(k)
for i in range(m):
insertion_sub_sort(L, k[i]) |
n = int(input())
a = [int(i) for i in input().split()]
a.sort()
res = 10001
for i in range(1, n):
tmp = a[i] - a[i-1]
if tmp < res:
res = tmp
print(res)
| n = int(input())
a = [int(i) for i in input().split()]
a.sort()
res = 10001
for i in range(1, n):
tmp = a[i] - a[i - 1]
if tmp < res:
res = tmp
print(res) |
# collatz conjecture revision
# the number we perform the collatz operations on
n = 25
# keep looping until we reach 1
while n != 1:
print(n) # print the current value of n
if n % 2 == 0: # checks if n is even
n = n / 2 # if so divide by 2, single / gives decimals, double // gives a whole number or integer
else: # if n is odd multiply by 3 and add 1
n = (3 * n) + 1
# finally print the final value of n whch is always 1
print (n)
| n = 25
while n != 1:
print(n)
if n % 2 == 0:
n = n / 2
else:
n = 3 * n + 1
print(n) |
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( arr , n , k ) :
count = 0
arr.sort ( )
l = 0
r = 0
while r < n :
if arr [ r ] - arr [ l ] == k :
count += 1
l += 1
r += 1
elif arr [ r ] - arr [ l ] > k :
l += 1
else :
r += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 10, 19, 29, 32, 40, 60, 65, 70, 72, 89, 92],7,12,),
([-38, 40, 8, 64, -38, 56, 4, 8, 84, 60, -48, -78, -82, -88, -30, 58, -58, 62, -52, -98, 24, 22, 14, 68, -74, 48, -56, -72, -90, 26, -10, 58, 40, 36, -80, 68, 58, -74, -46, -62, -12, 74, -58],24,36,),
([0, 0, 1],1,1,),
([16, 80, 59, 29, 14, 44, 13, 76, 7, 65, 62, 1, 34, 49, 70, 96, 73, 71, 42, 73, 66, 96],12,16,),
([-98, -88, -58, -56, -48, -34, -22, -18, -14, -14, -8, -4, -2, 2, 18, 38, 42, 46, 54, 68, 70, 90, 94, 96, 98],23,22,),
([0, 1, 1],2,1,),
([11, 43, 50, 58, 60, 68, 75],4,4,),
([86, 94, -80, 0, 52, -56, 42, 88, -10, 24, 6, 8],11,9,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],29,30,),
([54, 99, 4, 14, 9, 34, 81, 36, 80, 50, 34, 9, 7],9,8,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold(arr, n, k):
count = 0
arr.sort()
l = 0
r = 0
while r < n:
if arr[r] - arr[l] == k:
count += 1
l += 1
r += 1
elif arr[r] - arr[l] > k:
l += 1
else:
r += 1
return count
if __name__ == '__main__':
param = [([5, 5, 10, 19, 29, 32, 40, 60, 65, 70, 72, 89, 92], 7, 12), ([-38, 40, 8, 64, -38, 56, 4, 8, 84, 60, -48, -78, -82, -88, -30, 58, -58, 62, -52, -98, 24, 22, 14, 68, -74, 48, -56, -72, -90, 26, -10, 58, 40, 36, -80, 68, 58, -74, -46, -62, -12, 74, -58], 24, 36), ([0, 0, 1], 1, 1), ([16, 80, 59, 29, 14, 44, 13, 76, 7, 65, 62, 1, 34, 49, 70, 96, 73, 71, 42, 73, 66, 96], 12, 16), ([-98, -88, -58, -56, -48, -34, -22, -18, -14, -14, -8, -4, -2, 2, 18, 38, 42, 46, 54, 68, 70, 90, 94, 96, 98], 23, 22), ([0, 1, 1], 2, 1), ([11, 43, 50, 58, 60, 68, 75], 4, 4), ([86, 94, -80, 0, 52, -56, 42, 88, -10, 24, 6, 8], 11, 9), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 29, 30), ([54, 99, 4, 14, 9, 34, 81, 36, 80, 50, 34, 9, 7], 9, 8)]
n_success = 0
for (i, parameters_set) in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print('#Results: %i, %i' % (n_success, len(param))) |
# Long lines of method , extracing methods is impossible
# from
class Order:
# ...
def price(self):
primaryBasePrice = 0
secondaryBasePrice = 0
tertiaryBasePrice = 0
# long computation.
# ...
pass
# to
class Order:
# ...
def price(self):
return PriceCalculator(self).compute()
class PriceCalculator:
def __init__(self, order):
self._primaryBasePrice = 0
self._secondaryBasePrice = 0
self._tertiaryBasePrice = 0
# copy relevant information from order object.
# ...
def compute(self):
# long computation.
# ...
pass
| class Order:
def price(self):
primary_base_price = 0
secondary_base_price = 0
tertiary_base_price = 0
pass
class Order:
def price(self):
return price_calculator(self).compute()
class Pricecalculator:
def __init__(self, order):
self._primaryBasePrice = 0
self._secondaryBasePrice = 0
self._tertiaryBasePrice = 0
def compute(self):
pass |
def _shader_db(var_type, DB):
[FLAG, MATERIAL, STR, TEXTURE, INT, FLOAT, BOOL, COLOR, VEC2, VEC3, VEC4, MATRIX, MATRIX_4X2, FOUR_CC] = var_type
DB['%compile2dsky'] = FLAG
DB['%compileblocklos'] = FLAG
DB['%compileclip'] = FLAG
DB['%compiledetail'] = FLAG
DB['%compilefog'] = FLAG
DB['%compilegrenadeclip'] = FLAG
DB['%compilehint'] = FLAG
DB['%compileladder'] = FLAG
DB['%compilenochop'] = FLAG
DB['%compilenodraw'] = FLAG
DB['%compilenolight'] = FLAG
DB['%compilenonsolid'] = FLAG
DB['%compilenpcclip'] = FLAG
DB['%compileorigin'] = FLAG
DB['%compilepassbullets'] = FLAG
DB['%compileskip'] = FLAG
DB['%compilesky'] = FLAG
DB['%compileslime'] = FLAG
DB['%compileteam'] = FLAG
DB['%compiletrigger'] = FLAG
DB['%compilewater'] = FLAG
DB['%nopaint'] = FLAG
DB['%noportal'] = FLAG
DB['%notooltexture'] = FLAG
DB['%playerclip'] = FLAG
DB['additive'] = FLAG
DB['allowalphatocoverage'] = FLAG
DB['alphamodifiedbyproxy_do_not_set_in_vmt'] = FLAG
DB['alphatest'] = FLAG
DB['basealphaenvmapmask'] = FLAG
DB['debug'] = FLAG
DB['decal'] = FLAG
DB['envmapcameraspace'] = FLAG
DB['envmapmode'] = FLAG
DB['envmapsphere'] = FLAG
DB['flat'] = FLAG
DB['halflambert'] = FLAG
DB['ignorez'] = FLAG
DB['model'] = FLAG
DB['multipass'] = FLAG
DB['multiply'] = FLAG
DB['no_draw'] = FLAG
DB['no_fullbright'] = FLAG
DB['noalphamod'] = FLAG
DB['nocull'] = FLAG
DB['nodecal'] = FLAG
DB['nofog'] = FLAG
DB['normalmapalphaenvmapmask'] = FLAG
DB['notint'] = FLAG
DB['opaquetexture'] = FLAG
DB['pseudotranslucent'] = FLAG
DB['selfillum'] = FLAG
DB['softwareskin'] = FLAG
DB['translucent'] = FLAG
DB['use_in_fillrate_mode'] = FLAG
DB['vertexalpha'] = FLAG
DB['vertexfog'] = FLAG
DB['wireframe'] = FLAG
DB['xxxxxxunusedxxxxx'] = FLAG
DB['znearer'] = FLAG
DB['bottommaterial'] = MATERIAL
DB['crackmaterial'] = MATERIAL
DB['translucent_material'] = MATERIAL
DB['%detailtype'] = STR
DB['%keywords'] = STR
DB['fallback'] = STR
DB['pixshader'] = STR
DB['surfaceprop'] = STR
DB['surfaceprop2'] = STR
DB['vertexshader'] = STR
DB['%tooltexture'] = TEXTURE
DB['albedo'] = TEXTURE
DB['alphamasktexture'] = TEXTURE
DB['ambientoccltexture'] = TEXTURE
DB['anisodirtexture'] = TEXTURE
DB['ao'] = TEXTURE
DB['aomap'] = TEXTURE
DB['aoscreenbuffer'] = TEXTURE
DB['aotexture'] = TEXTURE
DB['backingtexture'] = TEXTURE
DB['basetexture'] = TEXTURE
DB['basetexture2'] = TEXTURE
DB['basetexture3'] = TEXTURE
DB['basetexture4'] = TEXTURE
DB['blendmodulatetexture'] = TEXTURE
DB['bloomtexture'] = TEXTURE
DB['blurredtexture'] = TEXTURE
DB['blurtexture'] = TEXTURE
DB['bumpcompress'] = TEXTURE
DB['bumpmap'] = TEXTURE
DB['bumpmap2'] = TEXTURE
DB['bumpmask'] = TEXTURE
DB['bumpstretch'] = TEXTURE
DB['canvas'] = TEXTURE
DB['cbtexture'] = TEXTURE
DB['cloudalphatexture'] = TEXTURE
DB['colorbar'] = TEXTURE
DB['colorwarptexture'] = TEXTURE
DB['compress'] = TEXTURE
DB['cookietexture'] = TEXTURE
DB['corecolortexture'] = TEXTURE
DB['corneatexture'] = TEXTURE
DB['crtexture'] = TEXTURE
DB['decaltexture'] = TEXTURE
DB['delta'] = TEXTURE
DB['depthtexture'] = TEXTURE
DB['detail'] = TEXTURE
DB['detail1'] = TEXTURE
DB['detail2'] = TEXTURE
DB['detailnormal'] = TEXTURE
DB['displacementmap'] = TEXTURE
DB['distortmap'] = TEXTURE
DB['dudvmap'] = TEXTURE
DB['dust_texture'] = TEXTURE
DB['effectmaskstexture'] = TEXTURE
DB['emissiveblendbasetexture'] = TEXTURE
DB['emissiveblendflowtexture'] = TEXTURE
DB['emissiveblendtexture'] = TEXTURE
DB['envmap'] = TEXTURE
DB['envmapmask'] = TEXTURE
DB['envmapmask2'] = TEXTURE
DB['exposure_texture'] = TEXTURE
DB['exptexture'] = TEXTURE
DB['fb_texture'] = TEXTURE
DB['fbtexture'] = TEXTURE
DB['fleshbordertexture1d'] = TEXTURE
DB['fleshcubetexture'] = TEXTURE
DB['fleshinteriornoisetexture'] = TEXTURE
DB['fleshinteriortexture'] = TEXTURE
DB['fleshnormaltexture'] = TEXTURE
DB['fleshsubsurfacetexture'] = TEXTURE
DB['flow_noise_texture'] = TEXTURE
DB['flowbounds'] = TEXTURE
DB['flowmap'] = TEXTURE
DB['fow'] = TEXTURE
DB['frame_texture'] = TEXTURE
DB['frametexture'] = TEXTURE
DB['fresnelcolorwarptexture'] = TEXTURE
DB['fresnelrangestexture'] = TEXTURE
DB['fresnelwarptexture'] = TEXTURE
DB['frontndtexture'] = TEXTURE
DB['glassenvmap'] = TEXTURE
DB['glint'] = TEXTURE
DB['gradienttexture'] = TEXTURE
DB['grain'] = TEXTURE
DB['grain_texture'] = TEXTURE
DB['grime'] = TEXTURE
DB['grunge'] = TEXTURE
DB['grungetexture'] = TEXTURE
DB['hdrbasetexture'] = TEXTURE
DB['hdrcompressedtexture'] = TEXTURE
DB['hdrcompressedtexture0'] = TEXTURE
DB['hdrcompressedtexture1'] = TEXTURE
DB['hdrcompressedtexture2'] = TEXTURE
DB['holomask'] = TEXTURE
DB['holospectrum'] = TEXTURE
DB['input'] = TEXTURE
DB['input_texture'] = TEXTURE
DB['internal_vignettetexture'] = TEXTURE
DB['iridescentwarp'] = TEXTURE
DB['iris'] = TEXTURE
DB['lightmap'] = TEXTURE
DB['lightwarptexture'] = TEXTURE
DB['logomap'] = TEXTURE
DB['maskmap'] = TEXTURE
DB['maps1'] = TEXTURE
DB['maps2'] = TEXTURE
DB['maps3'] = TEXTURE
DB['masks1'] = TEXTURE
DB['masks2'] = TEXTURE
DB['maskstexture'] = TEXTURE
DB['materialmask'] = TEXTURE
DB['noise'] = TEXTURE
DB['noisemap'] = TEXTURE
DB['noisetexture'] = TEXTURE
DB['normalmap'] = TEXTURE
DB['normalmap2'] = TEXTURE
DB['offsetmap'] = TEXTURE
DB['opacitytexture'] = TEXTURE
DB['originaltexture'] = TEXTURE
DB['paintsplatenvmap'] = TEXTURE
DB['paintsplatnormalmap'] = TEXTURE
DB['painttexture'] = TEXTURE
DB['pattern'] = TEXTURE
DB['pattern1'] = TEXTURE
DB['pattern2'] = TEXTURE
DB['phongexponenttexture'] = TEXTURE
DB['phongwarptexture'] = TEXTURE
DB['portalcolortexture'] = TEXTURE
DB['portalmasktexture'] = TEXTURE
DB['postexture'] = TEXTURE
DB['ramptexture'] = TEXTURE
DB['reflecttexture'] = TEXTURE
DB['refracttexture'] = TEXTURE
DB['refracttinttexture'] = TEXTURE
DB['sampleoffsettexture'] = TEXTURE
DB['scenedepth'] = TEXTURE
DB['screeneffecttexture'] = TEXTURE
DB['selfillummap'] = TEXTURE
DB['selfillummask'] = TEXTURE
DB['selfillumtexture'] = TEXTURE
DB['shadowdepthtexture'] = TEXTURE
DB['sheenmap'] = TEXTURE
DB['sheenmapmask'] = TEXTURE
DB['sidespeed'] = TEXTURE
DB['simpleoverlay'] = TEXTURE
DB['smallfb'] = TEXTURE
DB['sourcemrtrendertarget'] = TEXTURE
DB['specmasktexture'] = TEXTURE
DB['spectexture'] = TEXTURE
DB['spectexture2'] = TEXTURE
DB['spectexture3'] = TEXTURE
DB['spectexture4'] = TEXTURE
DB['spherenormal'] = TEXTURE
DB['srctexture0'] = TEXTURE
DB['srctexture1'] = TEXTURE
DB['srctexture2'] = TEXTURE
DB['srctexture3'] = TEXTURE
DB['staticblendtexture'] = TEXTURE
DB['stitchtexture'] = TEXTURE
DB['stretch'] = TEXTURE
DB['stripetexture'] = TEXTURE
DB['surfacetexture'] = TEXTURE
DB['test_texture'] = TEXTURE
DB['texture0'] = TEXTURE
DB['texture1'] = TEXTURE
DB['texture2'] = TEXTURE
DB['texture3'] = TEXTURE
DB['texture4'] = TEXTURE
DB['tintmasktexture'] = TEXTURE
DB['transmatmaskstexture'] = TEXTURE
DB['underwateroverlay'] = TEXTURE
DB['velocity_texture'] = TEXTURE
DB['vignette_texture'] = TEXTURE
DB['vignette_tile'] = TEXTURE
DB['warptexture'] = TEXTURE
DB['weartexture'] = TEXTURE
DB['ytexture'] = TEXTURE
DB['addoverblend'] = INT
DB['alpha_blend'] = INT
DB['alpha_blend_color_overlay'] = INT
DB['alphablend'] = INT
DB['alphadepth'] = INT
DB['alphamask'] = INT
DB['alphamasktextureframe'] = INT
DB['ambientboostmaskmode'] = INT
DB['ambientonly'] = INT
DB['aomode'] = INT
DB['basediffuseoverride'] = INT
DB['basemapalphaphongmask'] = INT
DB['basemapluminancephongmask'] = INT
DB['bloomtintenable'] = INT
DB['bloomtype'] = INT
DB['bumpframe'] = INT
DB['bumpframe2'] = INT
DB['clearalpha'] = INT
DB['cleardepth'] = INT
DB['combine_mode'] = INT
DB['compositemode'] = INT
DB['cookieframenum'] = INT
DB['copyalpha'] = INT
DB['corecolortextureframe'] = INT
DB['cstrike'] = INT
DB['cull'] = INT
DB['decalblendmode'] = INT
DB['decalstyle'] = INT
DB['depth_feather'] = INT
DB['depthtest'] = INT
DB['desaturateenable'] = INT
DB['detail1blendmode'] = INT
DB['detail1frame'] = INT
DB['detail2blendmode'] = INT
DB['detail2frame'] = INT
DB['detailblendmode'] = INT
DB['detailframe'] = INT
DB['detailframe2'] = INT
DB['disable_color_writes'] = INT
DB['dualsequence'] = INT
DB['dudvframe'] = INT
DB['effect'] = INT
DB['enableshadows'] = INT
DB['envmapframe'] = INT
DB['envmapmaskframe'] = INT
DB['envmapmaskframe2'] = INT
DB['envmapoptional'] = INT
DB['exponentmode'] = INT
DB['extractgreenalpha'] = INT
DB['fade'] = INT
DB['flowmapframe'] = INT
DB['frame'] = INT
DB['frame2'] = INT
DB['frame3'] = INT
DB['frame4'] = INT
DB['fullbright'] = INT
DB['gammacolorread'] = INT
DB['ghostoverlay'] = INT
DB['hudtranslucent'] = INT
DB['hudundistort'] = INT
DB['invertphongmask'] = INT
DB['irisframe'] = INT
DB['isfloat'] = INT
DB['kernel'] = INT
DB['linearread_basetexture'] = INT
DB['linearread_texture1'] = INT
DB['linearread_texture2'] = INT
DB['linearread_texture3'] = INT
DB['linearwrite'] = INT
DB['maskedblending'] = INT
DB['maxlumframeblend1'] = INT
DB['maxlumframeblend2'] = INT
DB['mirroraboutviewportedges'] = INT
DB['mode'] = INT
DB['mrtindex'] = INT
DB['multiplycolor'] = INT
DB['ncolors'] = INT
DB['nocolorwrite'] = INT
DB['nodiffusebumplighting'] = INT
DB['notint'] = INT
DB['noviewportfixup'] = INT
DB['nowritez'] = INT
DB['num_lookups'] = INT
DB['orientation'] = INT
DB['paintstyle'] = INT
DB['parallaxmap'] = INT
DB['passcount'] = INT
DB['patternreplaceindex'] = INT
DB['phongintensity'] = INT
DB['pointsample_basetexture'] = INT
DB['pointsample_texture1'] = INT
DB['pointsample_texture2'] = INT
DB['pointsample_texture3'] = INT
DB['quality'] = INT
DB['receiveflashlight'] = INT
DB['refracttinttextureframe'] = INT
DB['reloadzcull'] = INT
DB['renderfixz'] = INT
DB['selector0'] = INT
DB['selector1'] = INT
DB['selector2'] = INT
DB['selector3'] = INT
DB['selector4'] = INT
DB['selector5'] = INT
DB['selector6'] = INT
DB['selector7'] = INT
DB['selector8'] = INT
DB['selector9'] = INT
DB['selector10'] = INT
DB['selector11'] = INT
DB['selector12'] = INT
DB['selector13'] = INT
DB['selector14'] = INT
DB['selector15'] = INT
DB['selfillumtextureframe'] = INT
DB['sequence_blend_mode'] = INT
DB['shadowdepth'] = INT
DB['sheenindex'] = INT
DB['sheenmapmaskdirection'] = INT
DB['sheenmapmaskframe'] = INT
DB['singlepassflashlight'] = INT
DB['splinetype'] = INT
DB['spriteorientation'] = INT
DB['spriterendermode'] = INT
DB['ssbump'] = INT
DB['stage'] = INT
DB['staticblendtextureframe'] = INT
DB['tcsize0'] = INT
DB['tcsize1'] = INT
DB['tcsize2'] = INT
DB['tcsize3'] = INT
DB['tcsize4'] = INT
DB['tcsize5'] = INT
DB['tcsize6'] = INT
DB['tcsize7'] = INT
DB['texture3_blendmode'] = INT
DB['texture4_blendmode'] = INT
DB['textureinputcount'] = INT
DB['texturemode'] = INT
DB['treesway'] = INT
DB['tv_gamma'] = INT
DB['uberlight'] = INT
DB['usealternateviewmatrix'] = INT
DB['userendertarget'] = INT
DB['vertex_lit'] = INT
DB['vertexalphatest'] = INT
DB['vertexcolor'] = INT
DB['vertextransform'] = INT
DB['writealpha'] = INT
DB['writedepth'] = INT
DB['x360appchooser'] = INT
DB['addbasetexture2'] = FLOAT
DB['addself'] = FLOAT
DB['alpha'] = FLOAT
DB['alpha2'] = FLOAT
DB['alphasharpenfactor'] = FLOAT
DB['alphatested'] = FLOAT
DB['alphatestreference'] = FLOAT
DB['alphatrailfade'] = FLOAT
DB['ambientboost'] = FLOAT
DB['ambientocclusion'] = FLOAT
DB['ambientreflectionboost'] = FLOAT
DB['anisotropyamount'] = FLOAT
DB['armwidthbias'] = FLOAT
DB['armwidthexp'] = FLOAT
DB['armwidthscale'] = FLOAT
DB['autoexpose_max'] = FLOAT
DB['autoexpose_min'] = FLOAT
DB['backscatter'] = FLOAT
DB['bias'] = FLOAT
DB['blendsoftness'] = FLOAT
DB['blendtintcoloroverbase'] = FLOAT
DB['bloomexp'] = FLOAT
DB['bloomexponent'] = FLOAT
DB['bloomsaturation'] = FLOAT
DB['bloomwidth'] = FLOAT
DB['bluramount'] = FLOAT
DB['blurredvignettescale'] = FLOAT
DB['bumpdetailscale1'] = FLOAT
DB['bumpdetailscale2'] = FLOAT
DB['bumpstrength'] = FLOAT
DB['c0_w'] = FLOAT
DB['c0_x'] = FLOAT
DB['c0_y'] = FLOAT
DB['c0_z'] = FLOAT
DB['c1_w'] = FLOAT
DB['c1_x'] = FLOAT
DB['c1_y'] = FLOAT
DB['c1_z'] = FLOAT
DB['c2_w'] = FLOAT
DB['c2_x'] = FLOAT
DB['c2_y'] = FLOAT
DB['c2_z'] = FLOAT
DB['c3_w'] = FLOAT
DB['c3_x'] = FLOAT
DB['c3_y'] = FLOAT
DB['c3_z'] = FLOAT
DB['c4_w'] = FLOAT
DB['c4_x'] = FLOAT
DB['c4_y'] = FLOAT
DB['c4_z'] = FLOAT
DB['cavitycontrast'] = FLOAT
DB['cheapwaterenddistance'] = FLOAT
DB['cheapwaterstartdistance'] = FLOAT
DB['cloakfactor'] = FLOAT
DB['color_flow_displacebynormalstrength'] = FLOAT
DB['color_flow_lerpexp'] = FLOAT
DB['color_flow_timeintervalinseconds'] = FLOAT
DB['color_flow_timescale'] = FLOAT
DB['color_flow_uvscale'] = FLOAT
DB['color_flow_uvscrolldistance'] = FLOAT
DB['colorgamma'] = FLOAT
DB['contrast'] = FLOAT
DB['contrast_correction'] = FLOAT
DB['corneabumpstrength'] = FLOAT
DB['crosshaircoloradapt'] = FLOAT
DB['decalfadeduration'] = FLOAT
DB['decalfadetime'] = FLOAT
DB['decalscale'] = FLOAT
DB['deltascale'] = FLOAT
DB['depthblendscale'] = FLOAT
DB['depthblurfocaldistance'] = FLOAT
DB['depthblurstrength'] = FLOAT
DB['desatbasetint'] = FLOAT
DB['desaturatewithbasealpha'] = FLOAT
DB['desaturation'] = FLOAT
DB['detail1blendfactor'] = FLOAT
DB['detail1scale'] = FLOAT
DB['detail2blendfactor'] = FLOAT
DB['detail2scale'] = FLOAT
DB['detailblendfactor'] = FLOAT
DB['detailblendfactor2'] = FLOAT
DB['detailblendfactor3'] = FLOAT
DB['detailblendfactor4'] = FLOAT
DB['detailscale'] = FLOAT
DB['detailscale2'] = FLOAT
DB['diffuse_base'] = FLOAT
DB['diffuse_white'] = FLOAT
DB['diffuseboost'] = FLOAT
DB['diffuseexponent'] = FLOAT
DB['diffusescale'] = FLOAT
DB['diffusesoftnormal'] = FLOAT
DB['dilation'] = FLOAT
DB['dof_max'] = FLOAT
DB['dof_power'] = FLOAT
DB['dof_start_distance'] = FLOAT
DB['dropshadowdepthexaggeration'] = FLOAT
DB['dropshadowhighlightscale'] = FLOAT
DB['dropshadowopacity'] = FLOAT
DB['dropshadowscale'] = FLOAT
DB['edge_softness'] = FLOAT
DB['edgesoftnessend'] = FLOAT
DB['edgesoftnessstart'] = FLOAT
DB['emissiveblendstrength'] = FLOAT
DB['endfadesize'] = FLOAT
DB['envmapanisotropyscale'] = FLOAT
DB['envmapcontrast'] = FLOAT
DB['envmapfresnel'] = FLOAT
DB['envmaplightscale'] = FLOAT
DB['envmapmaskscale'] = FLOAT
DB['envmapsaturation'] = FLOAT
DB['eyeballradius'] = FLOAT
DB['fadetoblackscale'] = FLOAT
DB['fakerimboost'] = FLOAT
DB['falloffamount'] = FLOAT
DB['falloffdistance'] = FLOAT
DB['falloffoffset'] = FLOAT
DB['farblurdepth'] = FLOAT
DB['farblurradius'] = FLOAT
DB['farfadeinterval'] = FLOAT
DB['farfocusdepth'] = FLOAT
DB['farplane'] = FLOAT
DB['farz'] = FLOAT
DB['flashlighttime'] = FLOAT
DB['flashlighttint'] = FLOAT
DB['fleshbordernoisescale'] = FLOAT
DB['fleshbordersoftness'] = FLOAT
DB['fleshborderwidth'] = FLOAT
DB['fleshglobalopacity'] = FLOAT
DB['fleshglossbrightness'] = FLOAT
DB['fleshscrollspeed'] = FLOAT
DB['flipfixup'] = FLOAT
DB['flow_bumpstrength'] = FLOAT
DB['flow_color_intensity'] = FLOAT
DB['flow_lerpexp'] = FLOAT
DB['flow_noise_scale'] = FLOAT
DB['flow_normaluvscale'] = FLOAT
DB['flow_timeintervalinseconds'] = FLOAT
DB['flow_timescale'] = FLOAT
DB['flow_uvscrolldistance'] = FLOAT
DB['flow_vortex_size'] = FLOAT
DB['flow_worlduvscale'] = FLOAT
DB['flowmaptexcoordoffset'] = FLOAT
DB['fogend'] = FLOAT
DB['fogexponent'] = FLOAT
DB['fogfadeend'] = FLOAT
DB['fogfadestart'] = FLOAT
DB['fogscale'] = FLOAT
DB['fogstart'] = FLOAT
DB['forcefresnel'] = FLOAT
DB['forwardscatter'] = FLOAT
DB['fresnelbumpstrength'] = FLOAT
DB['fresnelpower'] = FLOAT
DB['fresnelreflection'] = FLOAT
DB['glossiness'] = FLOAT
DB['glowalpha'] = FLOAT
DB['glowend'] = FLOAT
DB['glowscale'] = FLOAT
DB['glowstart'] = FLOAT
DB['glowx'] = FLOAT
DB['glowy'] = FLOAT
DB['gray_power'] = FLOAT
DB['groundmax'] = FLOAT
DB['groundmin'] = FLOAT
DB['grungescale'] = FLOAT
DB['hdrcolorscale'] = FLOAT
DB['heat_haze_scale'] = FLOAT
DB['height_scale'] = FLOAT
DB['highlight'] = FLOAT
DB['highlightcycle'] = FLOAT
DB['hueshiftfresnelexponent'] = FLOAT
DB['hueshiftintensity'] = FLOAT
DB['illumfactor'] = FLOAT
DB['intensity'] = FLOAT
DB['interiorambientscale'] = FLOAT
DB['interiorbackgroundboost'] = FLOAT
DB['interiorbacklightscale'] = FLOAT
DB['interiorfoglimit'] = FLOAT
DB['interiorfognormalboost'] = FLOAT
DB['interiorfogstrength'] = FLOAT
DB['interiorrefractblur'] = FLOAT
DB['interiorrefractstrength'] = FLOAT
DB['iridescenceboost'] = FLOAT
DB['iridescenceexponent'] = FLOAT
DB['layerborderoffset'] = FLOAT
DB['layerbordersoftness'] = FLOAT
DB['layerborderstrength'] = FLOAT
DB['layeredgeoffset'] = FLOAT
DB['layeredgesoftness'] = FLOAT
DB['layeredgestrength'] = FLOAT
DB['lightmap_gradients'] = FLOAT
DB['lightmaptint'] = FLOAT
DB['localcontrastedgescale'] = FLOAT
DB['localcontrastmidtonemask'] = FLOAT
DB['localcontrastscale'] = FLOAT
DB['localcontrastvignetteend'] = FLOAT
DB['localrefractdepth'] = FLOAT
DB['logo2rotate'] = FLOAT
DB['logo2scale'] = FLOAT
DB['logo2x'] = FLOAT
DB['logo2y'] = FLOAT
DB['logomaskcrisp'] = FLOAT
DB['logorotate'] = FLOAT
DB['logoscale'] = FLOAT
DB['logowear'] = FLOAT
DB['logox'] = FLOAT
DB['logoy'] = FLOAT
DB['lumblendfactor2'] = FLOAT
DB['lumblendfactor3'] = FLOAT
DB['lumblendfactor4'] = FLOAT
DB['magnifyscale'] = FLOAT
DB['mappingheight'] = FLOAT
DB['mappingwidth'] = FLOAT
DB['maps1alpha'] = FLOAT
DB['maxdistance'] = FLOAT
DB['maxfalloffamount'] = FLOAT
DB['maxlight'] = FLOAT
DB['maxreflectivity'] = FLOAT
DB['maxsize'] = FLOAT
DB['metalness'] = FLOAT
DB['minlight'] = FLOAT
DB['minreflectivity'] = FLOAT
DB['minsize'] = FLOAT
DB['nearblurdepth'] = FLOAT
DB['nearblurradius'] = FLOAT
DB['nearfocusdepth'] = FLOAT
DB['nearplane'] = FLOAT
DB['noise_scale'] = FLOAT
DB['noisestrength'] = FLOAT
DB['normal2softness'] = FLOAT
DB['numplanes'] = FLOAT
DB['offsetamount'] = FLOAT
DB['outlinealpha'] = FLOAT
DB['outlineend0'] = FLOAT
DB['outlineend1'] = FLOAT
DB['outlinestart0'] = FLOAT
DB['outlinestart1'] = FLOAT
DB['outputintensity'] = FLOAT
DB['overbrightfactor'] = FLOAT
DB['paintphongalbedoboost'] = FLOAT
DB['parallaxstrength'] = FLOAT
DB['pattern1scale'] = FLOAT
DB['pattern2scale'] = FLOAT
DB['patterndetailinfluence'] = FLOAT
DB['patternpaintthickness'] = FLOAT
DB['patternphongfactor'] = FLOAT
DB['patternrotation'] = FLOAT
DB['patternscale'] = FLOAT
DB['peel'] = FLOAT
DB['phong2softness'] = FLOAT
DB['phongalbedoboost'] = FLOAT
DB['phongalbedofactor'] = FLOAT
DB['phongbasetint'] = FLOAT
DB['phongbasetint2'] = FLOAT
DB['phongboost'] = FLOAT
DB['phongboost2'] = FLOAT
DB['phongexponent'] = FLOAT
DB['phongexponent2'] = FLOAT
DB['phongexponentfactor'] = FLOAT
DB['phongscale'] = FLOAT
DB['phongscale2'] = FLOAT
DB['portalcolorscale'] = FLOAT
DB['portalopenamount'] = FLOAT
DB['portalstatic'] = FLOAT
DB['powerup'] = FLOAT
DB['previewweaponobjscale'] = FLOAT
DB['previewweaponuvscale'] = FLOAT
DB['pulserate'] = FLOAT
DB['radius'] = FLOAT
DB['radiustrailfade'] = FLOAT
DB['reflectamount'] = FLOAT
DB['reflectance'] = FLOAT
DB['reflectblendfactor'] = FLOAT
DB['refractamount'] = FLOAT
DB['rimhaloboost'] = FLOAT
DB['rimlightalbedo'] = FLOAT
DB['rimlightboost'] = FLOAT
DB['rimlightexponent'] = FLOAT
DB['rimlightscale'] = FLOAT
DB['rotation'] = FLOAT
DB['rotation2'] = FLOAT
DB['rotation3'] = FLOAT
DB['rotation4'] = FLOAT
DB['saturation'] = FLOAT
DB['scale'] = FLOAT
DB['scale2'] = FLOAT
DB['scale3'] = FLOAT
DB['scale4'] = FLOAT
DB['screenblurstrength'] = FLOAT
DB['seamless_scale'] = FLOAT
DB['selfillum_envmapmask_alpha'] = FLOAT
DB['selfillumboost'] = FLOAT
DB['selfillummaskscale'] = FLOAT
DB['shadowatten'] = FLOAT
DB['shadowcontrast'] = FLOAT
DB['shadowfiltersize'] = FLOAT
DB['shadowjitterseed'] = FLOAT
DB['shadowrimboost'] = FLOAT
DB['shadowsaturation'] = FLOAT
DB['sharpness'] = FLOAT
DB['sheenmapmaskoffsetx'] = FLOAT
DB['sheenmapmaskoffsety'] = FLOAT
DB['sheenmapmaskscalex'] = FLOAT
DB['sheenmapmaskscaley'] = FLOAT
DB['silhouettethickness'] = FLOAT
DB['ssbentnormalintensity'] = FLOAT
DB['ssdepth'] = FLOAT
DB['sstintbyalbedo'] = FLOAT
DB['startfadesize'] = FLOAT
DB['staticamount'] = FLOAT
DB['strength'] = FLOAT
DB['stripe_lm_scale'] = FLOAT
DB['texture1_lumend'] = FLOAT
DB['texture1_lumstart'] = FLOAT
DB['texture2_blendend'] = FLOAT
DB['texture2_blendstart'] = FLOAT
DB['texture2_bumpblendfactor'] = FLOAT
DB['texture2_lumend'] = FLOAT
DB['texture2_lumstart'] = FLOAT
DB['texture2_uvscale'] = FLOAT
DB['texture3_blendend'] = FLOAT
DB['texture3_blendstart'] = FLOAT
DB['texture3_bumpblendfactor'] = FLOAT
DB['texture3_lumend'] = FLOAT
DB['texture3_lumstart'] = FLOAT
DB['texture3_uvscale'] = FLOAT
DB['texture4_blendend'] = FLOAT
DB['texture4_blendstart'] = FLOAT
DB['texture4_bumpblendfactor'] = FLOAT
DB['texture4_lumend'] = FLOAT
DB['texture4_lumstart'] = FLOAT
DB['texture4_uvscale'] = FLOAT
DB['tiling'] = FLOAT
DB['time'] = FLOAT
DB['time_scale'] = FLOAT
DB['toolcolorcorrection'] = FLOAT
DB['tooltime'] = FLOAT
DB['treeswayfalloffexp'] = FLOAT
DB['treeswayheight'] = FLOAT
DB['treeswayradius'] = FLOAT
DB['treeswayscrumblefalloffexp'] = FLOAT
DB['treeswayscrumblefrequency'] = FLOAT
DB['treeswayscrumblespeed'] = FLOAT
DB['treeswayscrumblestrength'] = FLOAT
DB['treeswayspeed'] = FLOAT
DB['treeswayspeedhighwindmultiplier'] = FLOAT
DB['treeswayspeedlerpend'] = FLOAT
DB['treeswayspeedlerpstart'] = FLOAT
DB['treeswaystartheight'] = FLOAT
DB['treeswaystartradius'] = FLOAT
DB['treeswaystrength'] = FLOAT
DB['uberroundness'] = FLOAT
DB['unlitfactor'] = FLOAT
DB['unwearstrength'] = FLOAT
DB['uvscale'] = FLOAT
DB['vertexfogamount'] = FLOAT
DB['vignette_min_bright'] = FLOAT
DB['vignette_power'] = FLOAT
DB['volumetricintensity'] = FLOAT
DB['vomitrefractscale'] = FLOAT
DB['warpindex'] = FLOAT
DB['warpparam'] = FLOAT
DB['waterblendfactor'] = FLOAT
DB['waterdepth'] = FLOAT
DB['wave'] = FLOAT
DB['wearbias'] = FLOAT
DB['wearexponent'] = FLOAT
DB['wearprogress'] = FLOAT
DB['wearremapmax'] = FLOAT
DB['wearremapmid'] = FLOAT
DB['wearremapmin'] = FLOAT
DB['wearwidthmax'] = FLOAT
DB['wearwidthmin'] = FLOAT
DB['weight0'] = FLOAT
DB['weight1'] = FLOAT
DB['weight2'] = FLOAT
DB['weight3'] = FLOAT
DB['weight_default'] = FLOAT
DB['woodcut'] = FLOAT
DB['zoomanimateseq2'] = FLOAT
DB['aaenable'] = BOOL
DB['abovewater'] = BOOL
DB['addbumpmaps'] = BOOL
DB['aimatcamera'] = BOOL
DB['alloverpaintjob'] = BOOL
DB['allowdiffusemodulation'] = BOOL
DB['allowfencerenderstatehack'] = BOOL
DB['allowlocalcontrast'] = BOOL
DB['allownoise'] = BOOL
DB['allowvignette'] = BOOL
DB['alphaenvmapmask'] = BOOL
DB['alphatesttocoverage'] = BOOL
DB['aomaskusesuv2'] = BOOL
DB['aousesuv2'] = BOOL
DB['animatearmpulses'] = BOOL
DB['aopass'] = BOOL
DB['armature'] = BOOL
DB['armwiden'] = BOOL
DB['backsurface'] = BOOL
DB['basealphaenvmask'] = BOOL
DB['basemapalphaenvmapmask'] = BOOL
DB['basealphaphongmask'] = BOOL
DB['basealphaselfillummask'] = BOOL
DB['basetexture2noenvmap'] = BOOL
DB['basetexturenoenvmap'] = BOOL
DB['blendframes'] = BOOL
DB['blendtintbybasealpha'] = BOOL
DB['blendwithsmokegrenade'] = BOOL
DB['blobbyshadows'] = BOOL
DB['bloomenable'] = BOOL
DB['blurredvignetteenable'] = BOOL
DB['blurrefract'] = BOOL
DB['bump_force_on'] = BOOL
DB['bumpalphaenvmask'] = BOOL
DB['bumpbasetexture2withbumpmap'] = BOOL
DB['cheapmode'] = BOOL
DB['cloakpassenabled'] = BOOL
DB['color_depth'] = BOOL
DB['contactshadows'] = BOOL
DB['crosshairmode'] = BOOL
DB['custompaintjob'] = BOOL
DB['debug_mode'] = BOOL
DB['deferredshadows'] = BOOL
DB['depthblend'] = BOOL
DB['depthblurenable'] = BOOL
DB['detail_alpha_mask_base_texture'] = BOOL
DB['disablecsmlookup'] = BOOL
DB['displacementwrinkle'] = BOOL
DB['distancealpha'] = BOOL
DB['distancealphafromdetail'] = BOOL
DB['emissiveblendenabled'] = BOOL
DB['enableclearcolor'] = BOOL
DB['enablesrgb'] = BOOL
DB['envmapanisotropy'] = BOOL
DB['envmapmaskintintmasktexture'] = BOOL
DB['fadeoutonsilhouette'] = BOOL
DB['flashlightnolambert'] = BOOL
DB['fleshdebugforcefleshon'] = BOOL
DB['fleshinteriorenabled'] = BOOL
DB['flow_cheap'] = BOOL
DB['flow_debug'] = BOOL
DB['fogenable'] = BOOL
DB['flow_vortex1'] = BOOL
DB['flow_vortex2'] = BOOL
DB['forcealphawrite'] = BOOL
DB['forcebump'] = BOOL
DB['forcecheap'] = BOOL
DB['forceenvmap'] = BOOL
DB['forceexpensive'] = BOOL
DB['forcephong'] = BOOL
DB['forcerefract'] = BOOL
DB['glow'] = BOOL
DB['ignorevertexcolors'] = BOOL
DB['interior'] = BOOL
DB['intro'] = BOOL
DB['inversedepthblend'] = BOOL
DB['layeredgenormal'] = BOOL
DB['layeredgepunchin'] = BOOL
DB['lightmapwaterfog'] = BOOL
DB['localcontrastenable'] = BOOL
DB['localcontrastvignettestart'] = BOOL
DB['localrefract'] = BOOL
DB['logo2enabled'] = BOOL
DB['lowqualityflashlightshadows'] = BOOL
DB['magnifyenable'] = BOOL
DB['masked'] = BOOL
DB['mirrorhorizontal'] = BOOL
DB['mod2x'] = BOOL
DB['modeldecalignorez'] = BOOL
DB['modelformat'] = BOOL
DB['muloutputbyalpha'] = BOOL
DB['needsnormals'] = BOOL
DB['needstangents'] = BOOL
DB['needstangentt'] = BOOL
DB['newlayerblending'] = BOOL
DB['nodiffusebumplighting'] = BOOL
DB['noenvmapmip'] = BOOL
DB['nofresnel'] = BOOL
DB['noiseenable'] = BOOL
DB['nolowendlightmap'] = BOOL
DB['noscale'] = BOOL
DB['nosrgb'] = BOOL
DB['opaque'] = BOOL
DB['outline'] = BOOL
DB['perparticleoutline'] = BOOL
DB['phong'] = BOOL
DB['phongalbedotint'] = BOOL
DB['phongdisablehalflambert'] = BOOL
DB['pseudotranslucent'] = BOOL
DB['preview'] = BOOL
DB['previewignoreweaponscale'] = BOOL
DB['pulse'] = BOOL
DB['raytracesphere'] = BOOL
DB['reflect2dskybox'] = BOOL
DB['reflectentities'] = BOOL
DB['reflectonlymarkedentities'] = BOOL
DB['reflectskyboxonly'] = BOOL
DB['rimlight'] = BOOL
DB['rimmask'] = BOOL
DB['scaleedgesoftnessbasedonscreenres'] = BOOL
DB['scaleoutlinesoftnessbasedonscreenres'] = BOOL
DB['seamless_base'] = BOOL
DB['seamless_detail'] = BOOL
DB['selfillumfresnel'] = BOOL
DB['selfillumfresnelenabledthisframe'] = BOOL
DB['separatedetailuvs'] = BOOL
DB['shadersrgbread360'] = BOOL
DB['sheenpassenabled'] = BOOL
DB['showalpha'] = BOOL
DB['softedges'] = BOOL
DB['spheretexkillcombo'] = BOOL
DB['swappatternmasks'] = BOOL
DB['thirdperson'] = BOOL
DB['toolmode'] = BOOL
DB['translucentgoo'] = BOOL
DB['treeswaystatic'] = BOOL
DB['unlit'] = BOOL
DB['use_fb_texture'] = BOOL
DB['useinstancing'] = BOOL
DB['useonstaticprop'] = BOOL
DB['usingpixelshader'] = BOOL
DB['vertexcolorlerp'] = BOOL
DB['vertexcolormodulate'] = BOOL
DB['vignetteenable'] = BOOL
DB['volumetexturetest'] = BOOL
DB['vomitenable'] = BOOL
DB['writez'] = BOOL
DB['zfailenable'] = BOOL
DB['ambientreflectionbouncecolor'] = COLOR
DB['cloakcolortint'] = COLOR
DB['color'] = COLOR
DB['color2'] = COLOR
DB['colortint'] = COLOR
DB['crosshaircolortint'] = COLOR
DB['detailtint'] = COLOR
DB['detailtint2'] = COLOR
DB['emissiveblendtint'] = COLOR
DB['envmaptint'] = COLOR
DB['fakerimtint'] = COLOR
DB['fleshbordertint'] = COLOR
DB['fleshsubsurfacetint'] = COLOR
DB['flow_color'] = COLOR
DB['flow_vortex_color'] = COLOR
DB['fogcolor'] = COLOR
DB['glassenvmaptint'] = COLOR
DB['glowcolor'] = COLOR
DB['layerbordertint'] = COLOR
DB['layertint1'] = COLOR
DB['layertint2'] = COLOR
DB['outlinecolor'] = COLOR
DB['palettecolor1'] = COLOR
DB['palettecolor2'] = COLOR
DB['palettecolor3'] = COLOR
DB['palettecolor4'] = COLOR
DB['palettecolor5'] = COLOR
DB['palettecolor6'] = COLOR
DB['palettecolor7'] = COLOR
DB['palettecolor8'] = COLOR
DB['phongtint'] = COLOR
DB['portalcolorgradientdark'] = COLOR
DB['portalcolorgradientlight'] = COLOR
DB['portalcoopcolorplayeroneportalone'] = COLOR
DB['portalcoopcolorplayeroneportaltwo'] = COLOR
DB['portalcoopcolorplayertwoportalone'] = COLOR
DB['portalcoopcolorplayertwoportaltwo'] = COLOR
DB['phongcolortint'] = COLOR
DB['reflectivity'] = COLOR
DB['reflecttint'] = COLOR
DB['refracttint'] = COLOR
DB['rimlighttint'] = COLOR
DB['scroll1'] = COLOR
DB['scroll2'] = COLOR
DB['selfillumtint'] = COLOR
DB['sheenmaptint'] = COLOR
DB['silhouettecolor'] = COLOR
DB['tint'] = COLOR
DB['base_step_range'] = VEC2
DB['basetextureoffset'] = VEC2
DB['basetexturescale'] = VEC2
DB['bumpoffset'] = VEC2
DB['canvas_step_range'] = VEC2
DB['cloudscale'] = VEC2
DB['cropfactor'] = VEC2
DB['damagelevels1'] = VEC2
DB['damagelevels2'] = VEC2
DB['damagelevels3'] = VEC2
DB['damagelevels4'] = VEC2
DB['emissiveblendscrollvector'] = VEC2
DB['envmaplightscaleminmax'] = VEC2
DB['flowmapscrollrate'] = VEC2
DB['gray_step'] = VEC2
DB['lightmap_step_range'] = VEC2
DB['magnifycenter'] = VEC2
DB['maskscale'] = VEC2
DB['phongmaskcontrastbrightness'] = VEC2
DB['phongmaskcontrastbrightness2'] = VEC2
DB['refractionamount'] = VEC2
DB['scale'] = VEC2
DB['ambientocclcolor'] = VEC3
DB['ambientreflectionbouncecenter'] = VEC3
DB['armcolor'] = VEC3
DB['basealphaenvmapmaskminmaxexp'] = VEC3
DB['basecolortint'] = VEC3
DB['bbmax'] = VEC3
DB['bbmin'] = VEC3
DB['blendwithsmokegrenadeposentity'] = VEC3
DB['blendwithsmokegrenadepossmoke'] = VEC3
DB['camocolor0'] = VEC3
DB['camocolor1'] = VEC3
DB['camocolor2'] = VEC3
DB['camocolor3'] = VEC3
DB['canvas_color_end'] = VEC3
DB['canvas_color_start'] = VEC3
DB['canvas_scale'] = VEC3
DB['clearcolor'] = VEC3
DB['colortint2'] = VEC3
DB['colortint3'] = VEC3
DB['colortint4'] = VEC3
DB['dimensions'] = VEC3
DB['entcenter'] = VEC3
DB['entityorigin'] = VEC3
DB['envmapfresnelminmaxexp'] = VEC3
DB['eyeorigin'] = VEC3
DB['eyeup'] = VEC3
DB['flow_vortex_pos1'] = VEC3
DB['flow_vortex_pos2'] = VEC3
DB['forward'] = VEC3
DB['fresnelranges'] = VEC3
DB['hsv_correction'] = VEC3
DB['interiorcolor'] = VEC3
DB['leafcenter'] = VEC3
DB['lerpcolor1'] = VEC3
DB['lerpcolor2'] = VEC3
DB['light_color'] = VEC3
DB['light_position'] = VEC3
DB['pattern1color1'] = VEC3
DB['pattern1color2'] = VEC3
DB['pattern1color3'] = VEC3
DB['pattern1color4'] = VEC3
DB['pattern2color1'] = VEC3
DB['pattern2color2'] = VEC3
DB['pattern2color3'] = VEC3
DB['pattern2color4'] = VEC3
DB['phongcolortint'] = VEC3
DB['phongfresnel'] = VEC3
DB['phongfresnel2'] = VEC3
DB['phongfresnelranges'] = VEC3
DB['spriteorigin'] = VEC3
DB['sscolortint'] = VEC3
DB['stripe_color'] = VEC3
DB['stripe_fade_normal1'] = VEC3
DB['stripe_fade_normal2'] = VEC3
DB['stripe_scale'] = VEC3
DB['texadjustlevels0'] = VEC3
DB['texadjustlevels1'] = VEC3
DB['texadjustlevels2'] = VEC3
DB['texadjustlevels3'] = VEC3
DB['translucentfresnelminmaxexp'] = VEC3
DB['uvprojoffset'] = VEC3
DB['vomitcolor1'] = VEC3
DB['vomitcolor2'] = VEC3
DB['aainternal1'] = VEC4
DB['aainternal2'] = VEC4
DB['aainternal3'] = VEC4
DB['attenfactors'] = VEC4
DB['bloomamount'] = VEC4
DB['channel_select'] = VEC4
DB['curvaturewearboost'] = VEC4
DB['curvaturewearpower'] = VEC4
DB['damagedetailbrightnessadjustment'] = VEC4
DB['damagedetailenvboost'] = VEC4
DB['damagedetailphongboost'] = VEC4
DB['damagedetailsaturation'] = VEC4
DB['damageedgeenvboost'] = VEC4
DB['damageedgephongboost'] = VEC4
DB['damagegrunge'] = VEC4
DB['damagenormaledgedepth'] = VEC4
DB['detailenvboost'] = VEC4
DB['detailgrunge'] = VEC4
DB['detailmetalness'] = VEC4
DB['detailnormaldepth'] = VEC4
DB['detailphongalbedotint'] = VEC4
DB['detailphongboost'] = VEC4
DB['detailscale'] = VEC4
DB['detailwarpindex'] = VEC4
DB['distortbounds'] = VEC4
DB['eyedir'] = VEC4
DB['eyeposznear'] = VEC4
DB['fadecolor'] = VEC4
DB['flashlightcolor'] = VEC4
DB['flesheffectcenterradius1'] = VEC4
DB['flesheffectcenterradius2'] = VEC4
DB['flesheffectcenterradius3'] = VEC4
DB['flesheffectcenterradius4'] = VEC4
DB['fresnelopacityranges'] = VEC4
DB['fxaainternalc'] = VEC4
DB['fxaainternalq'] = VEC4
DB['glintu'] = VEC4
DB['glintv'] = VEC4
DB['grimebrightnessadjustment'] = VEC4
DB['grimesaturation'] = VEC4
DB['grungemax'] = VEC4
DB['hslnoisescale'] = VEC4
DB['irisu'] = VEC4
DB['irisv'] = VEC4
DB['jitterseed'] = VEC4
DB['motionblurinternal'] = VEC4
DB['motionblurviewportinternal'] = VEC4
DB['noisescale'] = VEC4
DB['originfarz'] = VEC4
DB['patterncolorindices'] = VEC4
DB['phongamount'] = VEC4
DB['phongamount2'] = VEC4
DB['quatorientation'] = VEC4
DB['rimhalobounds'] = VEC4
DB['scalebias'] = VEC4
DB['selfillumfresnelminmaxexp'] = VEC4
DB['shadowsaturationbounds'] = VEC4
DB['shadowtint'] = VEC4
DB['tangentsopacityranges'] = VEC4
DB['tangenttopacityranges'] = VEC4
DB['uberheightwidth'] = VEC4
DB['ubernearfar'] = VEC4
DB['weardetailenvboost'] = VEC4
DB['weardetailphongboost'] = VEC4
DB['weights'] = VEC4
DB['alternateviewmatrix'] = MATRIX
DB['basetexturetransform'] = MATRIX
DB['basetexturetransform2'] = MATRIX
DB['blendmasktransform'] = MATRIX
DB['blendmodulatetransform'] = MATRIX
DB['bumptransform'] = MATRIX
DB['bumptransform2'] = MATRIX
DB['detail1transform'] = MATRIX
DB['detail2transform'] = MATRIX
DB['detail1texturetransform'] = MATRIX
DB['detail2texturetransform'] = MATRIX
DB['detailtexturetransform'] = MATRIX
DB['detailtransform'] = MATRIX
DB['envmapmasktransform'] = MATRIX
DB['envmapmasktransform2'] = MATRIX
DB['grungetexturerotation'] = MATRIX
DB['grungetexturetransform'] = MATRIX
DB['orientationmatrix'] = MATRIX
DB['patterntexturerotation'] = MATRIX
DB['patterntexturetransform'] = MATRIX
DB['texture2transform'] = MATRIX
DB['texturetransform'] = MATRIX
DB['viewproj'] = MATRIX
DB['weartexturetransform'] = MATRIX
DB['worldtotexture'] = MATRIX
DB['textransform0'] = MATRIX_4X2
DB['textransform1'] = MATRIX_4X2
DB['textransform2'] = MATRIX_4X2
DB['textransform3'] = MATRIX_4X2
DB['lights'] = FOUR_CC
| def _shader_db(var_type, DB):
[flag, material, str, texture, int, float, bool, color, vec2, vec3, vec4, matrix, matrix_4_x2, four_cc] = var_type
DB['%compile2dsky'] = FLAG
DB['%compileblocklos'] = FLAG
DB['%compileclip'] = FLAG
DB['%compiledetail'] = FLAG
DB['%compilefog'] = FLAG
DB['%compilegrenadeclip'] = FLAG
DB['%compilehint'] = FLAG
DB['%compileladder'] = FLAG
DB['%compilenochop'] = FLAG
DB['%compilenodraw'] = FLAG
DB['%compilenolight'] = FLAG
DB['%compilenonsolid'] = FLAG
DB['%compilenpcclip'] = FLAG
DB['%compileorigin'] = FLAG
DB['%compilepassbullets'] = FLAG
DB['%compileskip'] = FLAG
DB['%compilesky'] = FLAG
DB['%compileslime'] = FLAG
DB['%compileteam'] = FLAG
DB['%compiletrigger'] = FLAG
DB['%compilewater'] = FLAG
DB['%nopaint'] = FLAG
DB['%noportal'] = FLAG
DB['%notooltexture'] = FLAG
DB['%playerclip'] = FLAG
DB['additive'] = FLAG
DB['allowalphatocoverage'] = FLAG
DB['alphamodifiedbyproxy_do_not_set_in_vmt'] = FLAG
DB['alphatest'] = FLAG
DB['basealphaenvmapmask'] = FLAG
DB['debug'] = FLAG
DB['decal'] = FLAG
DB['envmapcameraspace'] = FLAG
DB['envmapmode'] = FLAG
DB['envmapsphere'] = FLAG
DB['flat'] = FLAG
DB['halflambert'] = FLAG
DB['ignorez'] = FLAG
DB['model'] = FLAG
DB['multipass'] = FLAG
DB['multiply'] = FLAG
DB['no_draw'] = FLAG
DB['no_fullbright'] = FLAG
DB['noalphamod'] = FLAG
DB['nocull'] = FLAG
DB['nodecal'] = FLAG
DB['nofog'] = FLAG
DB['normalmapalphaenvmapmask'] = FLAG
DB['notint'] = FLAG
DB['opaquetexture'] = FLAG
DB['pseudotranslucent'] = FLAG
DB['selfillum'] = FLAG
DB['softwareskin'] = FLAG
DB['translucent'] = FLAG
DB['use_in_fillrate_mode'] = FLAG
DB['vertexalpha'] = FLAG
DB['vertexfog'] = FLAG
DB['wireframe'] = FLAG
DB['xxxxxxunusedxxxxx'] = FLAG
DB['znearer'] = FLAG
DB['bottommaterial'] = MATERIAL
DB['crackmaterial'] = MATERIAL
DB['translucent_material'] = MATERIAL
DB['%detailtype'] = STR
DB['%keywords'] = STR
DB['fallback'] = STR
DB['pixshader'] = STR
DB['surfaceprop'] = STR
DB['surfaceprop2'] = STR
DB['vertexshader'] = STR
DB['%tooltexture'] = TEXTURE
DB['albedo'] = TEXTURE
DB['alphamasktexture'] = TEXTURE
DB['ambientoccltexture'] = TEXTURE
DB['anisodirtexture'] = TEXTURE
DB['ao'] = TEXTURE
DB['aomap'] = TEXTURE
DB['aoscreenbuffer'] = TEXTURE
DB['aotexture'] = TEXTURE
DB['backingtexture'] = TEXTURE
DB['basetexture'] = TEXTURE
DB['basetexture2'] = TEXTURE
DB['basetexture3'] = TEXTURE
DB['basetexture4'] = TEXTURE
DB['blendmodulatetexture'] = TEXTURE
DB['bloomtexture'] = TEXTURE
DB['blurredtexture'] = TEXTURE
DB['blurtexture'] = TEXTURE
DB['bumpcompress'] = TEXTURE
DB['bumpmap'] = TEXTURE
DB['bumpmap2'] = TEXTURE
DB['bumpmask'] = TEXTURE
DB['bumpstretch'] = TEXTURE
DB['canvas'] = TEXTURE
DB['cbtexture'] = TEXTURE
DB['cloudalphatexture'] = TEXTURE
DB['colorbar'] = TEXTURE
DB['colorwarptexture'] = TEXTURE
DB['compress'] = TEXTURE
DB['cookietexture'] = TEXTURE
DB['corecolortexture'] = TEXTURE
DB['corneatexture'] = TEXTURE
DB['crtexture'] = TEXTURE
DB['decaltexture'] = TEXTURE
DB['delta'] = TEXTURE
DB['depthtexture'] = TEXTURE
DB['detail'] = TEXTURE
DB['detail1'] = TEXTURE
DB['detail2'] = TEXTURE
DB['detailnormal'] = TEXTURE
DB['displacementmap'] = TEXTURE
DB['distortmap'] = TEXTURE
DB['dudvmap'] = TEXTURE
DB['dust_texture'] = TEXTURE
DB['effectmaskstexture'] = TEXTURE
DB['emissiveblendbasetexture'] = TEXTURE
DB['emissiveblendflowtexture'] = TEXTURE
DB['emissiveblendtexture'] = TEXTURE
DB['envmap'] = TEXTURE
DB['envmapmask'] = TEXTURE
DB['envmapmask2'] = TEXTURE
DB['exposure_texture'] = TEXTURE
DB['exptexture'] = TEXTURE
DB['fb_texture'] = TEXTURE
DB['fbtexture'] = TEXTURE
DB['fleshbordertexture1d'] = TEXTURE
DB['fleshcubetexture'] = TEXTURE
DB['fleshinteriornoisetexture'] = TEXTURE
DB['fleshinteriortexture'] = TEXTURE
DB['fleshnormaltexture'] = TEXTURE
DB['fleshsubsurfacetexture'] = TEXTURE
DB['flow_noise_texture'] = TEXTURE
DB['flowbounds'] = TEXTURE
DB['flowmap'] = TEXTURE
DB['fow'] = TEXTURE
DB['frame_texture'] = TEXTURE
DB['frametexture'] = TEXTURE
DB['fresnelcolorwarptexture'] = TEXTURE
DB['fresnelrangestexture'] = TEXTURE
DB['fresnelwarptexture'] = TEXTURE
DB['frontndtexture'] = TEXTURE
DB['glassenvmap'] = TEXTURE
DB['glint'] = TEXTURE
DB['gradienttexture'] = TEXTURE
DB['grain'] = TEXTURE
DB['grain_texture'] = TEXTURE
DB['grime'] = TEXTURE
DB['grunge'] = TEXTURE
DB['grungetexture'] = TEXTURE
DB['hdrbasetexture'] = TEXTURE
DB['hdrcompressedtexture'] = TEXTURE
DB['hdrcompressedtexture0'] = TEXTURE
DB['hdrcompressedtexture1'] = TEXTURE
DB['hdrcompressedtexture2'] = TEXTURE
DB['holomask'] = TEXTURE
DB['holospectrum'] = TEXTURE
DB['input'] = TEXTURE
DB['input_texture'] = TEXTURE
DB['internal_vignettetexture'] = TEXTURE
DB['iridescentwarp'] = TEXTURE
DB['iris'] = TEXTURE
DB['lightmap'] = TEXTURE
DB['lightwarptexture'] = TEXTURE
DB['logomap'] = TEXTURE
DB['maskmap'] = TEXTURE
DB['maps1'] = TEXTURE
DB['maps2'] = TEXTURE
DB['maps3'] = TEXTURE
DB['masks1'] = TEXTURE
DB['masks2'] = TEXTURE
DB['maskstexture'] = TEXTURE
DB['materialmask'] = TEXTURE
DB['noise'] = TEXTURE
DB['noisemap'] = TEXTURE
DB['noisetexture'] = TEXTURE
DB['normalmap'] = TEXTURE
DB['normalmap2'] = TEXTURE
DB['offsetmap'] = TEXTURE
DB['opacitytexture'] = TEXTURE
DB['originaltexture'] = TEXTURE
DB['paintsplatenvmap'] = TEXTURE
DB['paintsplatnormalmap'] = TEXTURE
DB['painttexture'] = TEXTURE
DB['pattern'] = TEXTURE
DB['pattern1'] = TEXTURE
DB['pattern2'] = TEXTURE
DB['phongexponenttexture'] = TEXTURE
DB['phongwarptexture'] = TEXTURE
DB['portalcolortexture'] = TEXTURE
DB['portalmasktexture'] = TEXTURE
DB['postexture'] = TEXTURE
DB['ramptexture'] = TEXTURE
DB['reflecttexture'] = TEXTURE
DB['refracttexture'] = TEXTURE
DB['refracttinttexture'] = TEXTURE
DB['sampleoffsettexture'] = TEXTURE
DB['scenedepth'] = TEXTURE
DB['screeneffecttexture'] = TEXTURE
DB['selfillummap'] = TEXTURE
DB['selfillummask'] = TEXTURE
DB['selfillumtexture'] = TEXTURE
DB['shadowdepthtexture'] = TEXTURE
DB['sheenmap'] = TEXTURE
DB['sheenmapmask'] = TEXTURE
DB['sidespeed'] = TEXTURE
DB['simpleoverlay'] = TEXTURE
DB['smallfb'] = TEXTURE
DB['sourcemrtrendertarget'] = TEXTURE
DB['specmasktexture'] = TEXTURE
DB['spectexture'] = TEXTURE
DB['spectexture2'] = TEXTURE
DB['spectexture3'] = TEXTURE
DB['spectexture4'] = TEXTURE
DB['spherenormal'] = TEXTURE
DB['srctexture0'] = TEXTURE
DB['srctexture1'] = TEXTURE
DB['srctexture2'] = TEXTURE
DB['srctexture3'] = TEXTURE
DB['staticblendtexture'] = TEXTURE
DB['stitchtexture'] = TEXTURE
DB['stretch'] = TEXTURE
DB['stripetexture'] = TEXTURE
DB['surfacetexture'] = TEXTURE
DB['test_texture'] = TEXTURE
DB['texture0'] = TEXTURE
DB['texture1'] = TEXTURE
DB['texture2'] = TEXTURE
DB['texture3'] = TEXTURE
DB['texture4'] = TEXTURE
DB['tintmasktexture'] = TEXTURE
DB['transmatmaskstexture'] = TEXTURE
DB['underwateroverlay'] = TEXTURE
DB['velocity_texture'] = TEXTURE
DB['vignette_texture'] = TEXTURE
DB['vignette_tile'] = TEXTURE
DB['warptexture'] = TEXTURE
DB['weartexture'] = TEXTURE
DB['ytexture'] = TEXTURE
DB['addoverblend'] = INT
DB['alpha_blend'] = INT
DB['alpha_blend_color_overlay'] = INT
DB['alphablend'] = INT
DB['alphadepth'] = INT
DB['alphamask'] = INT
DB['alphamasktextureframe'] = INT
DB['ambientboostmaskmode'] = INT
DB['ambientonly'] = INT
DB['aomode'] = INT
DB['basediffuseoverride'] = INT
DB['basemapalphaphongmask'] = INT
DB['basemapluminancephongmask'] = INT
DB['bloomtintenable'] = INT
DB['bloomtype'] = INT
DB['bumpframe'] = INT
DB['bumpframe2'] = INT
DB['clearalpha'] = INT
DB['cleardepth'] = INT
DB['combine_mode'] = INT
DB['compositemode'] = INT
DB['cookieframenum'] = INT
DB['copyalpha'] = INT
DB['corecolortextureframe'] = INT
DB['cstrike'] = INT
DB['cull'] = INT
DB['decalblendmode'] = INT
DB['decalstyle'] = INT
DB['depth_feather'] = INT
DB['depthtest'] = INT
DB['desaturateenable'] = INT
DB['detail1blendmode'] = INT
DB['detail1frame'] = INT
DB['detail2blendmode'] = INT
DB['detail2frame'] = INT
DB['detailblendmode'] = INT
DB['detailframe'] = INT
DB['detailframe2'] = INT
DB['disable_color_writes'] = INT
DB['dualsequence'] = INT
DB['dudvframe'] = INT
DB['effect'] = INT
DB['enableshadows'] = INT
DB['envmapframe'] = INT
DB['envmapmaskframe'] = INT
DB['envmapmaskframe2'] = INT
DB['envmapoptional'] = INT
DB['exponentmode'] = INT
DB['extractgreenalpha'] = INT
DB['fade'] = INT
DB['flowmapframe'] = INT
DB['frame'] = INT
DB['frame2'] = INT
DB['frame3'] = INT
DB['frame4'] = INT
DB['fullbright'] = INT
DB['gammacolorread'] = INT
DB['ghostoverlay'] = INT
DB['hudtranslucent'] = INT
DB['hudundistort'] = INT
DB['invertphongmask'] = INT
DB['irisframe'] = INT
DB['isfloat'] = INT
DB['kernel'] = INT
DB['linearread_basetexture'] = INT
DB['linearread_texture1'] = INT
DB['linearread_texture2'] = INT
DB['linearread_texture3'] = INT
DB['linearwrite'] = INT
DB['maskedblending'] = INT
DB['maxlumframeblend1'] = INT
DB['maxlumframeblend2'] = INT
DB['mirroraboutviewportedges'] = INT
DB['mode'] = INT
DB['mrtindex'] = INT
DB['multiplycolor'] = INT
DB['ncolors'] = INT
DB['nocolorwrite'] = INT
DB['nodiffusebumplighting'] = INT
DB['notint'] = INT
DB['noviewportfixup'] = INT
DB['nowritez'] = INT
DB['num_lookups'] = INT
DB['orientation'] = INT
DB['paintstyle'] = INT
DB['parallaxmap'] = INT
DB['passcount'] = INT
DB['patternreplaceindex'] = INT
DB['phongintensity'] = INT
DB['pointsample_basetexture'] = INT
DB['pointsample_texture1'] = INT
DB['pointsample_texture2'] = INT
DB['pointsample_texture3'] = INT
DB['quality'] = INT
DB['receiveflashlight'] = INT
DB['refracttinttextureframe'] = INT
DB['reloadzcull'] = INT
DB['renderfixz'] = INT
DB['selector0'] = INT
DB['selector1'] = INT
DB['selector2'] = INT
DB['selector3'] = INT
DB['selector4'] = INT
DB['selector5'] = INT
DB['selector6'] = INT
DB['selector7'] = INT
DB['selector8'] = INT
DB['selector9'] = INT
DB['selector10'] = INT
DB['selector11'] = INT
DB['selector12'] = INT
DB['selector13'] = INT
DB['selector14'] = INT
DB['selector15'] = INT
DB['selfillumtextureframe'] = INT
DB['sequence_blend_mode'] = INT
DB['shadowdepth'] = INT
DB['sheenindex'] = INT
DB['sheenmapmaskdirection'] = INT
DB['sheenmapmaskframe'] = INT
DB['singlepassflashlight'] = INT
DB['splinetype'] = INT
DB['spriteorientation'] = INT
DB['spriterendermode'] = INT
DB['ssbump'] = INT
DB['stage'] = INT
DB['staticblendtextureframe'] = INT
DB['tcsize0'] = INT
DB['tcsize1'] = INT
DB['tcsize2'] = INT
DB['tcsize3'] = INT
DB['tcsize4'] = INT
DB['tcsize5'] = INT
DB['tcsize6'] = INT
DB['tcsize7'] = INT
DB['texture3_blendmode'] = INT
DB['texture4_blendmode'] = INT
DB['textureinputcount'] = INT
DB['texturemode'] = INT
DB['treesway'] = INT
DB['tv_gamma'] = INT
DB['uberlight'] = INT
DB['usealternateviewmatrix'] = INT
DB['userendertarget'] = INT
DB['vertex_lit'] = INT
DB['vertexalphatest'] = INT
DB['vertexcolor'] = INT
DB['vertextransform'] = INT
DB['writealpha'] = INT
DB['writedepth'] = INT
DB['x360appchooser'] = INT
DB['addbasetexture2'] = FLOAT
DB['addself'] = FLOAT
DB['alpha'] = FLOAT
DB['alpha2'] = FLOAT
DB['alphasharpenfactor'] = FLOAT
DB['alphatested'] = FLOAT
DB['alphatestreference'] = FLOAT
DB['alphatrailfade'] = FLOAT
DB['ambientboost'] = FLOAT
DB['ambientocclusion'] = FLOAT
DB['ambientreflectionboost'] = FLOAT
DB['anisotropyamount'] = FLOAT
DB['armwidthbias'] = FLOAT
DB['armwidthexp'] = FLOAT
DB['armwidthscale'] = FLOAT
DB['autoexpose_max'] = FLOAT
DB['autoexpose_min'] = FLOAT
DB['backscatter'] = FLOAT
DB['bias'] = FLOAT
DB['blendsoftness'] = FLOAT
DB['blendtintcoloroverbase'] = FLOAT
DB['bloomexp'] = FLOAT
DB['bloomexponent'] = FLOAT
DB['bloomsaturation'] = FLOAT
DB['bloomwidth'] = FLOAT
DB['bluramount'] = FLOAT
DB['blurredvignettescale'] = FLOAT
DB['bumpdetailscale1'] = FLOAT
DB['bumpdetailscale2'] = FLOAT
DB['bumpstrength'] = FLOAT
DB['c0_w'] = FLOAT
DB['c0_x'] = FLOAT
DB['c0_y'] = FLOAT
DB['c0_z'] = FLOAT
DB['c1_w'] = FLOAT
DB['c1_x'] = FLOAT
DB['c1_y'] = FLOAT
DB['c1_z'] = FLOAT
DB['c2_w'] = FLOAT
DB['c2_x'] = FLOAT
DB['c2_y'] = FLOAT
DB['c2_z'] = FLOAT
DB['c3_w'] = FLOAT
DB['c3_x'] = FLOAT
DB['c3_y'] = FLOAT
DB['c3_z'] = FLOAT
DB['c4_w'] = FLOAT
DB['c4_x'] = FLOAT
DB['c4_y'] = FLOAT
DB['c4_z'] = FLOAT
DB['cavitycontrast'] = FLOAT
DB['cheapwaterenddistance'] = FLOAT
DB['cheapwaterstartdistance'] = FLOAT
DB['cloakfactor'] = FLOAT
DB['color_flow_displacebynormalstrength'] = FLOAT
DB['color_flow_lerpexp'] = FLOAT
DB['color_flow_timeintervalinseconds'] = FLOAT
DB['color_flow_timescale'] = FLOAT
DB['color_flow_uvscale'] = FLOAT
DB['color_flow_uvscrolldistance'] = FLOAT
DB['colorgamma'] = FLOAT
DB['contrast'] = FLOAT
DB['contrast_correction'] = FLOAT
DB['corneabumpstrength'] = FLOAT
DB['crosshaircoloradapt'] = FLOAT
DB['decalfadeduration'] = FLOAT
DB['decalfadetime'] = FLOAT
DB['decalscale'] = FLOAT
DB['deltascale'] = FLOAT
DB['depthblendscale'] = FLOAT
DB['depthblurfocaldistance'] = FLOAT
DB['depthblurstrength'] = FLOAT
DB['desatbasetint'] = FLOAT
DB['desaturatewithbasealpha'] = FLOAT
DB['desaturation'] = FLOAT
DB['detail1blendfactor'] = FLOAT
DB['detail1scale'] = FLOAT
DB['detail2blendfactor'] = FLOAT
DB['detail2scale'] = FLOAT
DB['detailblendfactor'] = FLOAT
DB['detailblendfactor2'] = FLOAT
DB['detailblendfactor3'] = FLOAT
DB['detailblendfactor4'] = FLOAT
DB['detailscale'] = FLOAT
DB['detailscale2'] = FLOAT
DB['diffuse_base'] = FLOAT
DB['diffuse_white'] = FLOAT
DB['diffuseboost'] = FLOAT
DB['diffuseexponent'] = FLOAT
DB['diffusescale'] = FLOAT
DB['diffusesoftnormal'] = FLOAT
DB['dilation'] = FLOAT
DB['dof_max'] = FLOAT
DB['dof_power'] = FLOAT
DB['dof_start_distance'] = FLOAT
DB['dropshadowdepthexaggeration'] = FLOAT
DB['dropshadowhighlightscale'] = FLOAT
DB['dropshadowopacity'] = FLOAT
DB['dropshadowscale'] = FLOAT
DB['edge_softness'] = FLOAT
DB['edgesoftnessend'] = FLOAT
DB['edgesoftnessstart'] = FLOAT
DB['emissiveblendstrength'] = FLOAT
DB['endfadesize'] = FLOAT
DB['envmapanisotropyscale'] = FLOAT
DB['envmapcontrast'] = FLOAT
DB['envmapfresnel'] = FLOAT
DB['envmaplightscale'] = FLOAT
DB['envmapmaskscale'] = FLOAT
DB['envmapsaturation'] = FLOAT
DB['eyeballradius'] = FLOAT
DB['fadetoblackscale'] = FLOAT
DB['fakerimboost'] = FLOAT
DB['falloffamount'] = FLOAT
DB['falloffdistance'] = FLOAT
DB['falloffoffset'] = FLOAT
DB['farblurdepth'] = FLOAT
DB['farblurradius'] = FLOAT
DB['farfadeinterval'] = FLOAT
DB['farfocusdepth'] = FLOAT
DB['farplane'] = FLOAT
DB['farz'] = FLOAT
DB['flashlighttime'] = FLOAT
DB['flashlighttint'] = FLOAT
DB['fleshbordernoisescale'] = FLOAT
DB['fleshbordersoftness'] = FLOAT
DB['fleshborderwidth'] = FLOAT
DB['fleshglobalopacity'] = FLOAT
DB['fleshglossbrightness'] = FLOAT
DB['fleshscrollspeed'] = FLOAT
DB['flipfixup'] = FLOAT
DB['flow_bumpstrength'] = FLOAT
DB['flow_color_intensity'] = FLOAT
DB['flow_lerpexp'] = FLOAT
DB['flow_noise_scale'] = FLOAT
DB['flow_normaluvscale'] = FLOAT
DB['flow_timeintervalinseconds'] = FLOAT
DB['flow_timescale'] = FLOAT
DB['flow_uvscrolldistance'] = FLOAT
DB['flow_vortex_size'] = FLOAT
DB['flow_worlduvscale'] = FLOAT
DB['flowmaptexcoordoffset'] = FLOAT
DB['fogend'] = FLOAT
DB['fogexponent'] = FLOAT
DB['fogfadeend'] = FLOAT
DB['fogfadestart'] = FLOAT
DB['fogscale'] = FLOAT
DB['fogstart'] = FLOAT
DB['forcefresnel'] = FLOAT
DB['forwardscatter'] = FLOAT
DB['fresnelbumpstrength'] = FLOAT
DB['fresnelpower'] = FLOAT
DB['fresnelreflection'] = FLOAT
DB['glossiness'] = FLOAT
DB['glowalpha'] = FLOAT
DB['glowend'] = FLOAT
DB['glowscale'] = FLOAT
DB['glowstart'] = FLOAT
DB['glowx'] = FLOAT
DB['glowy'] = FLOAT
DB['gray_power'] = FLOAT
DB['groundmax'] = FLOAT
DB['groundmin'] = FLOAT
DB['grungescale'] = FLOAT
DB['hdrcolorscale'] = FLOAT
DB['heat_haze_scale'] = FLOAT
DB['height_scale'] = FLOAT
DB['highlight'] = FLOAT
DB['highlightcycle'] = FLOAT
DB['hueshiftfresnelexponent'] = FLOAT
DB['hueshiftintensity'] = FLOAT
DB['illumfactor'] = FLOAT
DB['intensity'] = FLOAT
DB['interiorambientscale'] = FLOAT
DB['interiorbackgroundboost'] = FLOAT
DB['interiorbacklightscale'] = FLOAT
DB['interiorfoglimit'] = FLOAT
DB['interiorfognormalboost'] = FLOAT
DB['interiorfogstrength'] = FLOAT
DB['interiorrefractblur'] = FLOAT
DB['interiorrefractstrength'] = FLOAT
DB['iridescenceboost'] = FLOAT
DB['iridescenceexponent'] = FLOAT
DB['layerborderoffset'] = FLOAT
DB['layerbordersoftness'] = FLOAT
DB['layerborderstrength'] = FLOAT
DB['layeredgeoffset'] = FLOAT
DB['layeredgesoftness'] = FLOAT
DB['layeredgestrength'] = FLOAT
DB['lightmap_gradients'] = FLOAT
DB['lightmaptint'] = FLOAT
DB['localcontrastedgescale'] = FLOAT
DB['localcontrastmidtonemask'] = FLOAT
DB['localcontrastscale'] = FLOAT
DB['localcontrastvignetteend'] = FLOAT
DB['localrefractdepth'] = FLOAT
DB['logo2rotate'] = FLOAT
DB['logo2scale'] = FLOAT
DB['logo2x'] = FLOAT
DB['logo2y'] = FLOAT
DB['logomaskcrisp'] = FLOAT
DB['logorotate'] = FLOAT
DB['logoscale'] = FLOAT
DB['logowear'] = FLOAT
DB['logox'] = FLOAT
DB['logoy'] = FLOAT
DB['lumblendfactor2'] = FLOAT
DB['lumblendfactor3'] = FLOAT
DB['lumblendfactor4'] = FLOAT
DB['magnifyscale'] = FLOAT
DB['mappingheight'] = FLOAT
DB['mappingwidth'] = FLOAT
DB['maps1alpha'] = FLOAT
DB['maxdistance'] = FLOAT
DB['maxfalloffamount'] = FLOAT
DB['maxlight'] = FLOAT
DB['maxreflectivity'] = FLOAT
DB['maxsize'] = FLOAT
DB['metalness'] = FLOAT
DB['minlight'] = FLOAT
DB['minreflectivity'] = FLOAT
DB['minsize'] = FLOAT
DB['nearblurdepth'] = FLOAT
DB['nearblurradius'] = FLOAT
DB['nearfocusdepth'] = FLOAT
DB['nearplane'] = FLOAT
DB['noise_scale'] = FLOAT
DB['noisestrength'] = FLOAT
DB['normal2softness'] = FLOAT
DB['numplanes'] = FLOAT
DB['offsetamount'] = FLOAT
DB['outlinealpha'] = FLOAT
DB['outlineend0'] = FLOAT
DB['outlineend1'] = FLOAT
DB['outlinestart0'] = FLOAT
DB['outlinestart1'] = FLOAT
DB['outputintensity'] = FLOAT
DB['overbrightfactor'] = FLOAT
DB['paintphongalbedoboost'] = FLOAT
DB['parallaxstrength'] = FLOAT
DB['pattern1scale'] = FLOAT
DB['pattern2scale'] = FLOAT
DB['patterndetailinfluence'] = FLOAT
DB['patternpaintthickness'] = FLOAT
DB['patternphongfactor'] = FLOAT
DB['patternrotation'] = FLOAT
DB['patternscale'] = FLOAT
DB['peel'] = FLOAT
DB['phong2softness'] = FLOAT
DB['phongalbedoboost'] = FLOAT
DB['phongalbedofactor'] = FLOAT
DB['phongbasetint'] = FLOAT
DB['phongbasetint2'] = FLOAT
DB['phongboost'] = FLOAT
DB['phongboost2'] = FLOAT
DB['phongexponent'] = FLOAT
DB['phongexponent2'] = FLOAT
DB['phongexponentfactor'] = FLOAT
DB['phongscale'] = FLOAT
DB['phongscale2'] = FLOAT
DB['portalcolorscale'] = FLOAT
DB['portalopenamount'] = FLOAT
DB['portalstatic'] = FLOAT
DB['powerup'] = FLOAT
DB['previewweaponobjscale'] = FLOAT
DB['previewweaponuvscale'] = FLOAT
DB['pulserate'] = FLOAT
DB['radius'] = FLOAT
DB['radiustrailfade'] = FLOAT
DB['reflectamount'] = FLOAT
DB['reflectance'] = FLOAT
DB['reflectblendfactor'] = FLOAT
DB['refractamount'] = FLOAT
DB['rimhaloboost'] = FLOAT
DB['rimlightalbedo'] = FLOAT
DB['rimlightboost'] = FLOAT
DB['rimlightexponent'] = FLOAT
DB['rimlightscale'] = FLOAT
DB['rotation'] = FLOAT
DB['rotation2'] = FLOAT
DB['rotation3'] = FLOAT
DB['rotation4'] = FLOAT
DB['saturation'] = FLOAT
DB['scale'] = FLOAT
DB['scale2'] = FLOAT
DB['scale3'] = FLOAT
DB['scale4'] = FLOAT
DB['screenblurstrength'] = FLOAT
DB['seamless_scale'] = FLOAT
DB['selfillum_envmapmask_alpha'] = FLOAT
DB['selfillumboost'] = FLOAT
DB['selfillummaskscale'] = FLOAT
DB['shadowatten'] = FLOAT
DB['shadowcontrast'] = FLOAT
DB['shadowfiltersize'] = FLOAT
DB['shadowjitterseed'] = FLOAT
DB['shadowrimboost'] = FLOAT
DB['shadowsaturation'] = FLOAT
DB['sharpness'] = FLOAT
DB['sheenmapmaskoffsetx'] = FLOAT
DB['sheenmapmaskoffsety'] = FLOAT
DB['sheenmapmaskscalex'] = FLOAT
DB['sheenmapmaskscaley'] = FLOAT
DB['silhouettethickness'] = FLOAT
DB['ssbentnormalintensity'] = FLOAT
DB['ssdepth'] = FLOAT
DB['sstintbyalbedo'] = FLOAT
DB['startfadesize'] = FLOAT
DB['staticamount'] = FLOAT
DB['strength'] = FLOAT
DB['stripe_lm_scale'] = FLOAT
DB['texture1_lumend'] = FLOAT
DB['texture1_lumstart'] = FLOAT
DB['texture2_blendend'] = FLOAT
DB['texture2_blendstart'] = FLOAT
DB['texture2_bumpblendfactor'] = FLOAT
DB['texture2_lumend'] = FLOAT
DB['texture2_lumstart'] = FLOAT
DB['texture2_uvscale'] = FLOAT
DB['texture3_blendend'] = FLOAT
DB['texture3_blendstart'] = FLOAT
DB['texture3_bumpblendfactor'] = FLOAT
DB['texture3_lumend'] = FLOAT
DB['texture3_lumstart'] = FLOAT
DB['texture3_uvscale'] = FLOAT
DB['texture4_blendend'] = FLOAT
DB['texture4_blendstart'] = FLOAT
DB['texture4_bumpblendfactor'] = FLOAT
DB['texture4_lumend'] = FLOAT
DB['texture4_lumstart'] = FLOAT
DB['texture4_uvscale'] = FLOAT
DB['tiling'] = FLOAT
DB['time'] = FLOAT
DB['time_scale'] = FLOAT
DB['toolcolorcorrection'] = FLOAT
DB['tooltime'] = FLOAT
DB['treeswayfalloffexp'] = FLOAT
DB['treeswayheight'] = FLOAT
DB['treeswayradius'] = FLOAT
DB['treeswayscrumblefalloffexp'] = FLOAT
DB['treeswayscrumblefrequency'] = FLOAT
DB['treeswayscrumblespeed'] = FLOAT
DB['treeswayscrumblestrength'] = FLOAT
DB['treeswayspeed'] = FLOAT
DB['treeswayspeedhighwindmultiplier'] = FLOAT
DB['treeswayspeedlerpend'] = FLOAT
DB['treeswayspeedlerpstart'] = FLOAT
DB['treeswaystartheight'] = FLOAT
DB['treeswaystartradius'] = FLOAT
DB['treeswaystrength'] = FLOAT
DB['uberroundness'] = FLOAT
DB['unlitfactor'] = FLOAT
DB['unwearstrength'] = FLOAT
DB['uvscale'] = FLOAT
DB['vertexfogamount'] = FLOAT
DB['vignette_min_bright'] = FLOAT
DB['vignette_power'] = FLOAT
DB['volumetricintensity'] = FLOAT
DB['vomitrefractscale'] = FLOAT
DB['warpindex'] = FLOAT
DB['warpparam'] = FLOAT
DB['waterblendfactor'] = FLOAT
DB['waterdepth'] = FLOAT
DB['wave'] = FLOAT
DB['wearbias'] = FLOAT
DB['wearexponent'] = FLOAT
DB['wearprogress'] = FLOAT
DB['wearremapmax'] = FLOAT
DB['wearremapmid'] = FLOAT
DB['wearremapmin'] = FLOAT
DB['wearwidthmax'] = FLOAT
DB['wearwidthmin'] = FLOAT
DB['weight0'] = FLOAT
DB['weight1'] = FLOAT
DB['weight2'] = FLOAT
DB['weight3'] = FLOAT
DB['weight_default'] = FLOAT
DB['woodcut'] = FLOAT
DB['zoomanimateseq2'] = FLOAT
DB['aaenable'] = BOOL
DB['abovewater'] = BOOL
DB['addbumpmaps'] = BOOL
DB['aimatcamera'] = BOOL
DB['alloverpaintjob'] = BOOL
DB['allowdiffusemodulation'] = BOOL
DB['allowfencerenderstatehack'] = BOOL
DB['allowlocalcontrast'] = BOOL
DB['allownoise'] = BOOL
DB['allowvignette'] = BOOL
DB['alphaenvmapmask'] = BOOL
DB['alphatesttocoverage'] = BOOL
DB['aomaskusesuv2'] = BOOL
DB['aousesuv2'] = BOOL
DB['animatearmpulses'] = BOOL
DB['aopass'] = BOOL
DB['armature'] = BOOL
DB['armwiden'] = BOOL
DB['backsurface'] = BOOL
DB['basealphaenvmask'] = BOOL
DB['basemapalphaenvmapmask'] = BOOL
DB['basealphaphongmask'] = BOOL
DB['basealphaselfillummask'] = BOOL
DB['basetexture2noenvmap'] = BOOL
DB['basetexturenoenvmap'] = BOOL
DB['blendframes'] = BOOL
DB['blendtintbybasealpha'] = BOOL
DB['blendwithsmokegrenade'] = BOOL
DB['blobbyshadows'] = BOOL
DB['bloomenable'] = BOOL
DB['blurredvignetteenable'] = BOOL
DB['blurrefract'] = BOOL
DB['bump_force_on'] = BOOL
DB['bumpalphaenvmask'] = BOOL
DB['bumpbasetexture2withbumpmap'] = BOOL
DB['cheapmode'] = BOOL
DB['cloakpassenabled'] = BOOL
DB['color_depth'] = BOOL
DB['contactshadows'] = BOOL
DB['crosshairmode'] = BOOL
DB['custompaintjob'] = BOOL
DB['debug_mode'] = BOOL
DB['deferredshadows'] = BOOL
DB['depthblend'] = BOOL
DB['depthblurenable'] = BOOL
DB['detail_alpha_mask_base_texture'] = BOOL
DB['disablecsmlookup'] = BOOL
DB['displacementwrinkle'] = BOOL
DB['distancealpha'] = BOOL
DB['distancealphafromdetail'] = BOOL
DB['emissiveblendenabled'] = BOOL
DB['enableclearcolor'] = BOOL
DB['enablesrgb'] = BOOL
DB['envmapanisotropy'] = BOOL
DB['envmapmaskintintmasktexture'] = BOOL
DB['fadeoutonsilhouette'] = BOOL
DB['flashlightnolambert'] = BOOL
DB['fleshdebugforcefleshon'] = BOOL
DB['fleshinteriorenabled'] = BOOL
DB['flow_cheap'] = BOOL
DB['flow_debug'] = BOOL
DB['fogenable'] = BOOL
DB['flow_vortex1'] = BOOL
DB['flow_vortex2'] = BOOL
DB['forcealphawrite'] = BOOL
DB['forcebump'] = BOOL
DB['forcecheap'] = BOOL
DB['forceenvmap'] = BOOL
DB['forceexpensive'] = BOOL
DB['forcephong'] = BOOL
DB['forcerefract'] = BOOL
DB['glow'] = BOOL
DB['ignorevertexcolors'] = BOOL
DB['interior'] = BOOL
DB['intro'] = BOOL
DB['inversedepthblend'] = BOOL
DB['layeredgenormal'] = BOOL
DB['layeredgepunchin'] = BOOL
DB['lightmapwaterfog'] = BOOL
DB['localcontrastenable'] = BOOL
DB['localcontrastvignettestart'] = BOOL
DB['localrefract'] = BOOL
DB['logo2enabled'] = BOOL
DB['lowqualityflashlightshadows'] = BOOL
DB['magnifyenable'] = BOOL
DB['masked'] = BOOL
DB['mirrorhorizontal'] = BOOL
DB['mod2x'] = BOOL
DB['modeldecalignorez'] = BOOL
DB['modelformat'] = BOOL
DB['muloutputbyalpha'] = BOOL
DB['needsnormals'] = BOOL
DB['needstangents'] = BOOL
DB['needstangentt'] = BOOL
DB['newlayerblending'] = BOOL
DB['nodiffusebumplighting'] = BOOL
DB['noenvmapmip'] = BOOL
DB['nofresnel'] = BOOL
DB['noiseenable'] = BOOL
DB['nolowendlightmap'] = BOOL
DB['noscale'] = BOOL
DB['nosrgb'] = BOOL
DB['opaque'] = BOOL
DB['outline'] = BOOL
DB['perparticleoutline'] = BOOL
DB['phong'] = BOOL
DB['phongalbedotint'] = BOOL
DB['phongdisablehalflambert'] = BOOL
DB['pseudotranslucent'] = BOOL
DB['preview'] = BOOL
DB['previewignoreweaponscale'] = BOOL
DB['pulse'] = BOOL
DB['raytracesphere'] = BOOL
DB['reflect2dskybox'] = BOOL
DB['reflectentities'] = BOOL
DB['reflectonlymarkedentities'] = BOOL
DB['reflectskyboxonly'] = BOOL
DB['rimlight'] = BOOL
DB['rimmask'] = BOOL
DB['scaleedgesoftnessbasedonscreenres'] = BOOL
DB['scaleoutlinesoftnessbasedonscreenres'] = BOOL
DB['seamless_base'] = BOOL
DB['seamless_detail'] = BOOL
DB['selfillumfresnel'] = BOOL
DB['selfillumfresnelenabledthisframe'] = BOOL
DB['separatedetailuvs'] = BOOL
DB['shadersrgbread360'] = BOOL
DB['sheenpassenabled'] = BOOL
DB['showalpha'] = BOOL
DB['softedges'] = BOOL
DB['spheretexkillcombo'] = BOOL
DB['swappatternmasks'] = BOOL
DB['thirdperson'] = BOOL
DB['toolmode'] = BOOL
DB['translucentgoo'] = BOOL
DB['treeswaystatic'] = BOOL
DB['unlit'] = BOOL
DB['use_fb_texture'] = BOOL
DB['useinstancing'] = BOOL
DB['useonstaticprop'] = BOOL
DB['usingpixelshader'] = BOOL
DB['vertexcolorlerp'] = BOOL
DB['vertexcolormodulate'] = BOOL
DB['vignetteenable'] = BOOL
DB['volumetexturetest'] = BOOL
DB['vomitenable'] = BOOL
DB['writez'] = BOOL
DB['zfailenable'] = BOOL
DB['ambientreflectionbouncecolor'] = COLOR
DB['cloakcolortint'] = COLOR
DB['color'] = COLOR
DB['color2'] = COLOR
DB['colortint'] = COLOR
DB['crosshaircolortint'] = COLOR
DB['detailtint'] = COLOR
DB['detailtint2'] = COLOR
DB['emissiveblendtint'] = COLOR
DB['envmaptint'] = COLOR
DB['fakerimtint'] = COLOR
DB['fleshbordertint'] = COLOR
DB['fleshsubsurfacetint'] = COLOR
DB['flow_color'] = COLOR
DB['flow_vortex_color'] = COLOR
DB['fogcolor'] = COLOR
DB['glassenvmaptint'] = COLOR
DB['glowcolor'] = COLOR
DB['layerbordertint'] = COLOR
DB['layertint1'] = COLOR
DB['layertint2'] = COLOR
DB['outlinecolor'] = COLOR
DB['palettecolor1'] = COLOR
DB['palettecolor2'] = COLOR
DB['palettecolor3'] = COLOR
DB['palettecolor4'] = COLOR
DB['palettecolor5'] = COLOR
DB['palettecolor6'] = COLOR
DB['palettecolor7'] = COLOR
DB['palettecolor8'] = COLOR
DB['phongtint'] = COLOR
DB['portalcolorgradientdark'] = COLOR
DB['portalcolorgradientlight'] = COLOR
DB['portalcoopcolorplayeroneportalone'] = COLOR
DB['portalcoopcolorplayeroneportaltwo'] = COLOR
DB['portalcoopcolorplayertwoportalone'] = COLOR
DB['portalcoopcolorplayertwoportaltwo'] = COLOR
DB['phongcolortint'] = COLOR
DB['reflectivity'] = COLOR
DB['reflecttint'] = COLOR
DB['refracttint'] = COLOR
DB['rimlighttint'] = COLOR
DB['scroll1'] = COLOR
DB['scroll2'] = COLOR
DB['selfillumtint'] = COLOR
DB['sheenmaptint'] = COLOR
DB['silhouettecolor'] = COLOR
DB['tint'] = COLOR
DB['base_step_range'] = VEC2
DB['basetextureoffset'] = VEC2
DB['basetexturescale'] = VEC2
DB['bumpoffset'] = VEC2
DB['canvas_step_range'] = VEC2
DB['cloudscale'] = VEC2
DB['cropfactor'] = VEC2
DB['damagelevels1'] = VEC2
DB['damagelevels2'] = VEC2
DB['damagelevels3'] = VEC2
DB['damagelevels4'] = VEC2
DB['emissiveblendscrollvector'] = VEC2
DB['envmaplightscaleminmax'] = VEC2
DB['flowmapscrollrate'] = VEC2
DB['gray_step'] = VEC2
DB['lightmap_step_range'] = VEC2
DB['magnifycenter'] = VEC2
DB['maskscale'] = VEC2
DB['phongmaskcontrastbrightness'] = VEC2
DB['phongmaskcontrastbrightness2'] = VEC2
DB['refractionamount'] = VEC2
DB['scale'] = VEC2
DB['ambientocclcolor'] = VEC3
DB['ambientreflectionbouncecenter'] = VEC3
DB['armcolor'] = VEC3
DB['basealphaenvmapmaskminmaxexp'] = VEC3
DB['basecolortint'] = VEC3
DB['bbmax'] = VEC3
DB['bbmin'] = VEC3
DB['blendwithsmokegrenadeposentity'] = VEC3
DB['blendwithsmokegrenadepossmoke'] = VEC3
DB['camocolor0'] = VEC3
DB['camocolor1'] = VEC3
DB['camocolor2'] = VEC3
DB['camocolor3'] = VEC3
DB['canvas_color_end'] = VEC3
DB['canvas_color_start'] = VEC3
DB['canvas_scale'] = VEC3
DB['clearcolor'] = VEC3
DB['colortint2'] = VEC3
DB['colortint3'] = VEC3
DB['colortint4'] = VEC3
DB['dimensions'] = VEC3
DB['entcenter'] = VEC3
DB['entityorigin'] = VEC3
DB['envmapfresnelminmaxexp'] = VEC3
DB['eyeorigin'] = VEC3
DB['eyeup'] = VEC3
DB['flow_vortex_pos1'] = VEC3
DB['flow_vortex_pos2'] = VEC3
DB['forward'] = VEC3
DB['fresnelranges'] = VEC3
DB['hsv_correction'] = VEC3
DB['interiorcolor'] = VEC3
DB['leafcenter'] = VEC3
DB['lerpcolor1'] = VEC3
DB['lerpcolor2'] = VEC3
DB['light_color'] = VEC3
DB['light_position'] = VEC3
DB['pattern1color1'] = VEC3
DB['pattern1color2'] = VEC3
DB['pattern1color3'] = VEC3
DB['pattern1color4'] = VEC3
DB['pattern2color1'] = VEC3
DB['pattern2color2'] = VEC3
DB['pattern2color3'] = VEC3
DB['pattern2color4'] = VEC3
DB['phongcolortint'] = VEC3
DB['phongfresnel'] = VEC3
DB['phongfresnel2'] = VEC3
DB['phongfresnelranges'] = VEC3
DB['spriteorigin'] = VEC3
DB['sscolortint'] = VEC3
DB['stripe_color'] = VEC3
DB['stripe_fade_normal1'] = VEC3
DB['stripe_fade_normal2'] = VEC3
DB['stripe_scale'] = VEC3
DB['texadjustlevels0'] = VEC3
DB['texadjustlevels1'] = VEC3
DB['texadjustlevels2'] = VEC3
DB['texadjustlevels3'] = VEC3
DB['translucentfresnelminmaxexp'] = VEC3
DB['uvprojoffset'] = VEC3
DB['vomitcolor1'] = VEC3
DB['vomitcolor2'] = VEC3
DB['aainternal1'] = VEC4
DB['aainternal2'] = VEC4
DB['aainternal3'] = VEC4
DB['attenfactors'] = VEC4
DB['bloomamount'] = VEC4
DB['channel_select'] = VEC4
DB['curvaturewearboost'] = VEC4
DB['curvaturewearpower'] = VEC4
DB['damagedetailbrightnessadjustment'] = VEC4
DB['damagedetailenvboost'] = VEC4
DB['damagedetailphongboost'] = VEC4
DB['damagedetailsaturation'] = VEC4
DB['damageedgeenvboost'] = VEC4
DB['damageedgephongboost'] = VEC4
DB['damagegrunge'] = VEC4
DB['damagenormaledgedepth'] = VEC4
DB['detailenvboost'] = VEC4
DB['detailgrunge'] = VEC4
DB['detailmetalness'] = VEC4
DB['detailnormaldepth'] = VEC4
DB['detailphongalbedotint'] = VEC4
DB['detailphongboost'] = VEC4
DB['detailscale'] = VEC4
DB['detailwarpindex'] = VEC4
DB['distortbounds'] = VEC4
DB['eyedir'] = VEC4
DB['eyeposznear'] = VEC4
DB['fadecolor'] = VEC4
DB['flashlightcolor'] = VEC4
DB['flesheffectcenterradius1'] = VEC4
DB['flesheffectcenterradius2'] = VEC4
DB['flesheffectcenterradius3'] = VEC4
DB['flesheffectcenterradius4'] = VEC4
DB['fresnelopacityranges'] = VEC4
DB['fxaainternalc'] = VEC4
DB['fxaainternalq'] = VEC4
DB['glintu'] = VEC4
DB['glintv'] = VEC4
DB['grimebrightnessadjustment'] = VEC4
DB['grimesaturation'] = VEC4
DB['grungemax'] = VEC4
DB['hslnoisescale'] = VEC4
DB['irisu'] = VEC4
DB['irisv'] = VEC4
DB['jitterseed'] = VEC4
DB['motionblurinternal'] = VEC4
DB['motionblurviewportinternal'] = VEC4
DB['noisescale'] = VEC4
DB['originfarz'] = VEC4
DB['patterncolorindices'] = VEC4
DB['phongamount'] = VEC4
DB['phongamount2'] = VEC4
DB['quatorientation'] = VEC4
DB['rimhalobounds'] = VEC4
DB['scalebias'] = VEC4
DB['selfillumfresnelminmaxexp'] = VEC4
DB['shadowsaturationbounds'] = VEC4
DB['shadowtint'] = VEC4
DB['tangentsopacityranges'] = VEC4
DB['tangenttopacityranges'] = VEC4
DB['uberheightwidth'] = VEC4
DB['ubernearfar'] = VEC4
DB['weardetailenvboost'] = VEC4
DB['weardetailphongboost'] = VEC4
DB['weights'] = VEC4
DB['alternateviewmatrix'] = MATRIX
DB['basetexturetransform'] = MATRIX
DB['basetexturetransform2'] = MATRIX
DB['blendmasktransform'] = MATRIX
DB['blendmodulatetransform'] = MATRIX
DB['bumptransform'] = MATRIX
DB['bumptransform2'] = MATRIX
DB['detail1transform'] = MATRIX
DB['detail2transform'] = MATRIX
DB['detail1texturetransform'] = MATRIX
DB['detail2texturetransform'] = MATRIX
DB['detailtexturetransform'] = MATRIX
DB['detailtransform'] = MATRIX
DB['envmapmasktransform'] = MATRIX
DB['envmapmasktransform2'] = MATRIX
DB['grungetexturerotation'] = MATRIX
DB['grungetexturetransform'] = MATRIX
DB['orientationmatrix'] = MATRIX
DB['patterntexturerotation'] = MATRIX
DB['patterntexturetransform'] = MATRIX
DB['texture2transform'] = MATRIX
DB['texturetransform'] = MATRIX
DB['viewproj'] = MATRIX
DB['weartexturetransform'] = MATRIX
DB['worldtotexture'] = MATRIX
DB['textransform0'] = MATRIX_4X2
DB['textransform1'] = MATRIX_4X2
DB['textransform2'] = MATRIX_4X2
DB['textransform3'] = MATRIX_4X2
DB['lights'] = FOUR_CC |
class Album:
def __init__(self, id, title, file):
self.id = id
self.title = title
self.file = file
| class Album:
def __init__(self, id, title, file):
self.id = id
self.title = title
self.file = file |
for astTuple in Query.input.tuples('ast'):
assignment = astTuple.ast
leftType = assignment.left.type()
rightType = assignment.right.type()
if type(leftType) is ArrayType and type(rightType) is ArrayType:
if not leftType.elementType().equals(rightType.elementType()):
Query.result.add(astTuple) | for ast_tuple in Query.input.tuples('ast'):
assignment = astTuple.ast
left_type = assignment.left.type()
right_type = assignment.right.type()
if type(leftType) is ArrayType and type(rightType) is ArrayType:
if not leftType.elementType().equals(rightType.elementType()):
Query.result.add(astTuple) |
def add_time(start, duration, requested_day=""):
# List for weekdays
week_days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
# Convert start string in start list
clock = start.split()
time = clock[0].split(":")
am_pm = clock[1]
# Calculate 24hr format
if am_pm == "PM":
hour = int(time[0]) + 12
time[0] = str(hour)
# Convert duration string in duration list
duration_time = duration.split(":")
# Calculate new hours and minutes
n_hour = int(time[0]) + int(duration_time[0])
n_minutes = int(time[1]) + int(duration_time[1])
# Calculate extra hours and minutes
if n_minutes >= 60:
extra_hour = n_minutes // 60
n_minutes -= extra_hour * 60
n_hour += extra_hour
# Calculate extra day/s
extra_day = 0
if n_hour > 24:
extra_day = n_hour // 24
n_hour -= extra_day * 24
# Calculate 12hr format
if 12 > n_hour > 0:
am_pm = "AM"
elif n_hour == 12:
am_pm = "PM"
elif n_hour > 12:
am_pm = "PM"
n_hour -= 12
else:
am_pm = "AM"
n_hour += 12
# Calculate extra day/s
if extra_day > 0:
if extra_day == 1:
next_day = " (next day)"
else:
next_day = " (" + str(extra_day) + " days later)"
else:
next_day = ""
# Calculate day on requested_day
if requested_day:
week_index = extra_day // 7
i = week_days.index(requested_day.lower().capitalize()) + (extra_day - 7 * week_index)
if i > 6:
i -= 7
day = ", " + week_days[i]
else:
day = ""
# Prepare solution
new_time = str(n_hour) + ":" + \
(str(n_minutes) if n_minutes > 9 else ("0" + str(n_minutes))) + \
" " + am_pm + day + next_day
return new_time | def add_time(start, duration, requested_day=''):
week_days = ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
clock = start.split()
time = clock[0].split(':')
am_pm = clock[1]
if am_pm == 'PM':
hour = int(time[0]) + 12
time[0] = str(hour)
duration_time = duration.split(':')
n_hour = int(time[0]) + int(duration_time[0])
n_minutes = int(time[1]) + int(duration_time[1])
if n_minutes >= 60:
extra_hour = n_minutes // 60
n_minutes -= extra_hour * 60
n_hour += extra_hour
extra_day = 0
if n_hour > 24:
extra_day = n_hour // 24
n_hour -= extra_day * 24
if 12 > n_hour > 0:
am_pm = 'AM'
elif n_hour == 12:
am_pm = 'PM'
elif n_hour > 12:
am_pm = 'PM'
n_hour -= 12
else:
am_pm = 'AM'
n_hour += 12
if extra_day > 0:
if extra_day == 1:
next_day = ' (next day)'
else:
next_day = ' (' + str(extra_day) + ' days later)'
else:
next_day = ''
if requested_day:
week_index = extra_day // 7
i = week_days.index(requested_day.lower().capitalize()) + (extra_day - 7 * week_index)
if i > 6:
i -= 7
day = ', ' + week_days[i]
else:
day = ''
new_time = str(n_hour) + ':' + (str(n_minutes) if n_minutes > 9 else '0' + str(n_minutes)) + ' ' + am_pm + day + next_day
return new_time |
# Link --> https://www.hackerrank.com/challenges/tree-level-order-traversal/problem
# Code:
def levelOrder(root):
if root:
queue = []
queue.append(root)
while queue:
temp_node = queue[0]
queue.pop(0)
print(temp_node.info, end = " ")
if temp_node.left:
queue.append(temp_node.left)
if temp_node.right:
queue.append(temp_node.right)
| def level_order(root):
if root:
queue = []
queue.append(root)
while queue:
temp_node = queue[0]
queue.pop(0)
print(temp_node.info, end=' ')
if temp_node.left:
queue.append(temp_node.left)
if temp_node.right:
queue.append(temp_node.right) |
class Zoo:
def __init__(self, name, budget, animal_capacity, workers_capacity):
self.__budget = budget
self.__animal_capacity = animal_capacity
self.__workers_capacity = workers_capacity
self.name = name
self.animals = []
self.workers = []
def add_animal(self, animal, price):
if len(self.animals) == self.__animal_capacity:
return "Not enough space for animal"
if self.__budget < price:
return "Not enough budget"
self.animals.append(animal)
self.__budget -= price
return f"{animal.name} the {animal.__class__.__name__} added to the zoo"
def hire_worker(self, worker):
if len(self.workers) == self.__workers_capacity:
return "Not enough space for worker"
self.workers.append(worker)
return f"{worker.name} the {worker.__class__.__name__} hired successfully"
def fire_worker(self, worker):
worker_object = [w for w in self.workers if w.name == worker]
if not worker_object:
return f"There is no {worker} in the zoo"
self.workers.remove(worker_object[0])
return f"{worker} fired successfully"
def pay_workers(self):
total_salaries = sum([w.salary for w in self.workers])
if not self.__budget >= total_salaries:
return "You have no budget to pay your workers. They are unhappy"
self.__budget -= total_salaries
return f"You payed your workers. They are happy. Budget left: {self.__budget}"
def tend_animals(self):
total_tend_expenses = sum(a.get_needs() for a in self.animals)
if not self.__budget >= total_tend_expenses:
return "You have no budget to tend the animals. They are unhappy."
self.__budget -= total_tend_expenses
return f"You tended all the animals. They are happy. Budget left: {self.__budget}"
def profit(self, amount):
self.__budget += amount
def __for_filtering(self, array, class_name):
filtered_arr = [x for x in array if x.__class__.__name__ == class_name]
return filtered_arr
def animals_status(self):
lions_list = self.__for_filtering(self.animals, "Lion")
cheetahs_list = self.__for_filtering(self.animals, "Cheetah")
tigers_list = self.__for_filtering(self.animals, "Tiger")
result = f"You have {len(self.animals)} animals"
result += f"\n----- {len(lions_list)} Lions:\n"
result += '\n'.join(repr(lion) for lion in lions_list)
result += f"\n----- {len(tigers_list)} Tigers:\n"
result += '\n'.join(repr(tiger) for tiger in tigers_list)
result += f"\n----- {len(cheetahs_list)} Cheetahs:\n"
result += '\n'.join(repr(cheetah) for cheetah in cheetahs_list)
return result
def workers_status(self):
keepers_list = self.__for_filtering(self.workers, "Keeper")
caretakers_list = self.__for_filtering(self.workers, "Caretaker")
vets_list = self.__for_filtering(self.workers, "Vet")
result = f"You have {len(self.workers)} workers"
result += f"\n----- {len(keepers_list)} Keepers:\n"
result += '\n'.join(repr(keeper) for keeper in keepers_list)
result += f"\n----- {len(caretakers_list)} Caretakers:\n"
result += '\n'.join(repr(caretaker) for caretaker in caretakers_list)
result += f"\n----- {len(vets_list)} Vets:\n"
result += '\n'.join(repr(vet) for vet in vets_list)
return result | class Zoo:
def __init__(self, name, budget, animal_capacity, workers_capacity):
self.__budget = budget
self.__animal_capacity = animal_capacity
self.__workers_capacity = workers_capacity
self.name = name
self.animals = []
self.workers = []
def add_animal(self, animal, price):
if len(self.animals) == self.__animal_capacity:
return 'Not enough space for animal'
if self.__budget < price:
return 'Not enough budget'
self.animals.append(animal)
self.__budget -= price
return f'{animal.name} the {animal.__class__.__name__} added to the zoo'
def hire_worker(self, worker):
if len(self.workers) == self.__workers_capacity:
return 'Not enough space for worker'
self.workers.append(worker)
return f'{worker.name} the {worker.__class__.__name__} hired successfully'
def fire_worker(self, worker):
worker_object = [w for w in self.workers if w.name == worker]
if not worker_object:
return f'There is no {worker} in the zoo'
self.workers.remove(worker_object[0])
return f'{worker} fired successfully'
def pay_workers(self):
total_salaries = sum([w.salary for w in self.workers])
if not self.__budget >= total_salaries:
return 'You have no budget to pay your workers. They are unhappy'
self.__budget -= total_salaries
return f'You payed your workers. They are happy. Budget left: {self.__budget}'
def tend_animals(self):
total_tend_expenses = sum((a.get_needs() for a in self.animals))
if not self.__budget >= total_tend_expenses:
return 'You have no budget to tend the animals. They are unhappy.'
self.__budget -= total_tend_expenses
return f'You tended all the animals. They are happy. Budget left: {self.__budget}'
def profit(self, amount):
self.__budget += amount
def __for_filtering(self, array, class_name):
filtered_arr = [x for x in array if x.__class__.__name__ == class_name]
return filtered_arr
def animals_status(self):
lions_list = self.__for_filtering(self.animals, 'Lion')
cheetahs_list = self.__for_filtering(self.animals, 'Cheetah')
tigers_list = self.__for_filtering(self.animals, 'Tiger')
result = f'You have {len(self.animals)} animals'
result += f'\n----- {len(lions_list)} Lions:\n'
result += '\n'.join((repr(lion) for lion in lions_list))
result += f'\n----- {len(tigers_list)} Tigers:\n'
result += '\n'.join((repr(tiger) for tiger in tigers_list))
result += f'\n----- {len(cheetahs_list)} Cheetahs:\n'
result += '\n'.join((repr(cheetah) for cheetah in cheetahs_list))
return result
def workers_status(self):
keepers_list = self.__for_filtering(self.workers, 'Keeper')
caretakers_list = self.__for_filtering(self.workers, 'Caretaker')
vets_list = self.__for_filtering(self.workers, 'Vet')
result = f'You have {len(self.workers)} workers'
result += f'\n----- {len(keepers_list)} Keepers:\n'
result += '\n'.join((repr(keeper) for keeper in keepers_list))
result += f'\n----- {len(caretakers_list)} Caretakers:\n'
result += '\n'.join((repr(caretaker) for caretaker in caretakers_list))
result += f'\n----- {len(vets_list)} Vets:\n'
result += '\n'.join((repr(vet) for vet in vets_list))
return result |
def arrMul(lst):
out = [None] * len(lst)
prod = 1
i = 0
while i < len(lst):
out [i] = prod
prod *= lst[i]
i += 1
print ("First Four Pass",out)
prod = 1
i = len(lst) - 1
while i >= 0:
out[i] *= prod
prod *= lst[i]
i -= 1
return out
print(arrMul([1,2,3,4,5]))
| def arr_mul(lst):
out = [None] * len(lst)
prod = 1
i = 0
while i < len(lst):
out[i] = prod
prod *= lst[i]
i += 1
print('First Four Pass', out)
prod = 1
i = len(lst) - 1
while i >= 0:
out[i] *= prod
prod *= lst[i]
i -= 1
return out
print(arr_mul([1, 2, 3, 4, 5])) |
#
# PySNMP MIB module TUBS-IBR-PROC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TUBS-IBR-PROC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Unsigned32, IpAddress, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, MibIdentifier, Gauge32, Counter32, Bits, iso, ObjectIdentity, ModuleIdentity, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "MibIdentifier", "Gauge32", "Counter32", "Bits", "iso", "ObjectIdentity", "ModuleIdentity", "TimeTicks")
DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime")
ibr, = mibBuilder.importSymbols("TUBS-SMI", "ibr")
procMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 1575, 1, 3))
procMIB.setRevisions(('2000-02-09 00:00', '1997-02-14 10:23', '1994-11-15 20:24',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: procMIB.setRevisionsDescriptions(('Updated IMPORTS and minor stylistic fixes.', 'Various cleanups to make the module conforming to SNMPv2 SMI.', 'The initial revision of this module.',))
if mibBuilder.loadTexts: procMIB.setLastUpdated('200002090000Z')
if mibBuilder.loadTexts: procMIB.setOrganization('TU Braunschweig')
if mibBuilder.loadTexts: procMIB.setContactInfo('Juergen Schoenwaelder TU Braunschweig Bueltenweg 74/75 38106 Braunschweig Germany Tel: +49 531 391 3283 Fax: +49 531 391 5936 E-mail: schoenw@ibr.cs.tu-bs.de')
if mibBuilder.loadTexts: procMIB.setDescription('Experimental MIB module for listing processes.')
procReload = MibScalar((1, 3, 6, 1, 4, 1, 1575, 1, 3, 1), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: procReload.setStatus('current')
if mibBuilder.loadTexts: procReload.setDescription('Any set operation will reload the process table. It contains a time stamp when the proc table was reloaded the last time.')
procTable = MibTable((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2), )
if mibBuilder.loadTexts: procTable.setStatus('current')
if mibBuilder.loadTexts: procTable.setDescription('The process table.')
procEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1), ).setIndexNames((0, "TUBS-IBR-PROC-MIB", "procID"))
if mibBuilder.loadTexts: procEntry.setStatus('current')
if mibBuilder.loadTexts: procEntry.setDescription('An entry for a process in the processes table.')
procID = MibTableColumn((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: procID.setStatus('current')
if mibBuilder.loadTexts: procID.setDescription('The unique process ID.')
procCmd = MibTableColumn((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: procCmd.setStatus('current')
if mibBuilder.loadTexts: procCmd.setDescription('The command name used to start this process.')
mibBuilder.exportSymbols("TUBS-IBR-PROC-MIB", procTable=procTable, procCmd=procCmd, PYSNMP_MODULE_ID=procMIB, procEntry=procEntry, procMIB=procMIB, procID=procID, procReload=procReload)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(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')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, ip_address, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, mib_identifier, gauge32, counter32, bits, iso, object_identity, module_identity, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'MibIdentifier', 'Gauge32', 'Counter32', 'Bits', 'iso', 'ObjectIdentity', 'ModuleIdentity', 'TimeTicks')
(display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime')
(ibr,) = mibBuilder.importSymbols('TUBS-SMI', 'ibr')
proc_mib = module_identity((1, 3, 6, 1, 4, 1, 1575, 1, 3))
procMIB.setRevisions(('2000-02-09 00:00', '1997-02-14 10:23', '1994-11-15 20:24'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
procMIB.setRevisionsDescriptions(('Updated IMPORTS and minor stylistic fixes.', 'Various cleanups to make the module conforming to SNMPv2 SMI.', 'The initial revision of this module.'))
if mibBuilder.loadTexts:
procMIB.setLastUpdated('200002090000Z')
if mibBuilder.loadTexts:
procMIB.setOrganization('TU Braunschweig')
if mibBuilder.loadTexts:
procMIB.setContactInfo('Juergen Schoenwaelder TU Braunschweig Bueltenweg 74/75 38106 Braunschweig Germany Tel: +49 531 391 3283 Fax: +49 531 391 5936 E-mail: schoenw@ibr.cs.tu-bs.de')
if mibBuilder.loadTexts:
procMIB.setDescription('Experimental MIB module for listing processes.')
proc_reload = mib_scalar((1, 3, 6, 1, 4, 1, 1575, 1, 3, 1), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
procReload.setStatus('current')
if mibBuilder.loadTexts:
procReload.setDescription('Any set operation will reload the process table. It contains a time stamp when the proc table was reloaded the last time.')
proc_table = mib_table((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2))
if mibBuilder.loadTexts:
procTable.setStatus('current')
if mibBuilder.loadTexts:
procTable.setDescription('The process table.')
proc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1)).setIndexNames((0, 'TUBS-IBR-PROC-MIB', 'procID'))
if mibBuilder.loadTexts:
procEntry.setStatus('current')
if mibBuilder.loadTexts:
procEntry.setDescription('An entry for a process in the processes table.')
proc_id = mib_table_column((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
procID.setStatus('current')
if mibBuilder.loadTexts:
procID.setDescription('The unique process ID.')
proc_cmd = mib_table_column((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
procCmd.setStatus('current')
if mibBuilder.loadTexts:
procCmd.setDescription('The command name used to start this process.')
mibBuilder.exportSymbols('TUBS-IBR-PROC-MIB', procTable=procTable, procCmd=procCmd, PYSNMP_MODULE_ID=procMIB, procEntry=procEntry, procMIB=procMIB, procID=procID, procReload=procReload) |
class GRPCConfiguration:
def __init__(self, client_side: bool, server_string=None, user_agent=None,
message_encoding=None, message_accept_encoding=None,
max_message_length=33554432):
self._client_side = client_side
if client_side and server_string is not None:
raise ValueError("Passed client_side=True and server_string at the same time")
if not client_side and user_agent is not None:
raise ValueError("Passed user_agent put didn't pass client_side=True")
self._server_string = server_string
self._user_agent = user_agent
self._max_message_length = max_message_length
self._message_encoding = message_encoding
# TODO: this does not need to be passed in config, may be just a single global string
# with all encodings supported by grpclib
if message_accept_encoding is not None:
self._message_accept_encoding = ",".join(message_accept_encoding)
else:
self._message_accept_encoding = None
@property
def client_side(self):
return self._client_side
@property
def server_string(self):
return self._server_string
@property
def user_agent(self):
return self._user_agent
@property
def message_encoding(self):
return self._message_encoding
@property
def message_accept_encoding(self):
return self._message_accept_encoding
@property
def max_message_length(self):
return self._max_message_length
| class Grpcconfiguration:
def __init__(self, client_side: bool, server_string=None, user_agent=None, message_encoding=None, message_accept_encoding=None, max_message_length=33554432):
self._client_side = client_side
if client_side and server_string is not None:
raise value_error('Passed client_side=True and server_string at the same time')
if not client_side and user_agent is not None:
raise value_error("Passed user_agent put didn't pass client_side=True")
self._server_string = server_string
self._user_agent = user_agent
self._max_message_length = max_message_length
self._message_encoding = message_encoding
if message_accept_encoding is not None:
self._message_accept_encoding = ','.join(message_accept_encoding)
else:
self._message_accept_encoding = None
@property
def client_side(self):
return self._client_side
@property
def server_string(self):
return self._server_string
@property
def user_agent(self):
return self._user_agent
@property
def message_encoding(self):
return self._message_encoding
@property
def message_accept_encoding(self):
return self._message_accept_encoding
@property
def max_message_length(self):
return self._max_message_length |
#string method
name ="Emanuele Micheletti"
print(len(name))
print(name.find("B")) # -1 if not found, index otherwise
print(name.capitalize())
print(name.upper())
print(name.lower())
print(name.isdigit()) #false if contains alpha char, True only if all chars are numeric
print(name.isalpha()) #space is not alpha
print(name.count("e"))
print(name.replace("e", "a"))
print(name*3) | name = 'Emanuele Micheletti'
print(len(name))
print(name.find('B'))
print(name.capitalize())
print(name.upper())
print(name.lower())
print(name.isdigit())
print(name.isalpha())
print(name.count('e'))
print(name.replace('e', 'a'))
print(name * 3) |
# Definition for singly-linked list.
class _ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def removeElements(self, head: _ListNode, val: int) -> _ListNode:
prev = None
curr = head
while curr is not None:
if curr.val == val:
if prev is None:
head = curr.next
curr = head
else:
prev.next = curr.next
curr = curr.next
else:
prev = curr
curr = curr.next
return head
| class _Listnode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def remove_elements(self, head: _ListNode, val: int) -> _ListNode:
prev = None
curr = head
while curr is not None:
if curr.val == val:
if prev is None:
head = curr.next
curr = head
else:
prev.next = curr.next
curr = curr.next
else:
prev = curr
curr = curr.next
return head |
# https://practice.geeksforgeeks.org/problems/distribute-n-candies/1#
# try to distribute as many candies as possible in a complete round
# when a candies required in a turn are more than left, then
# find out the last person to get full turn candy
# give remaining to next and return the array
class Solution:
def apSum(self, a, d, n):
return int(n*(2*a +(n-1)*d)/2)
def distributeCandies(self, N, K):
rem = N
full_rounds = 0
while rem > 0:
this_round = self.apSum(1 + K*full_rounds,1,K)
if this_round > rem:
break
rem -= this_round
full_rounds += 1
result = [0 for i in range(K)]
for i in range(K):
result[i] += self.apSum(i+1,K,full_rounds)
extras = i+1 + full_rounds*K
if extras > rem:
result[i] += rem
rem = 0
continue
result[i] += extras
rem -= extras
return result
if __name__ == '__main__':
t = int (input ())
for _ in range (t):
N,K=map(int,input().split())
ob = Solution()
res = ob.distributeCandies(N,K)
for i in res:
print(i,end=" ")
print() | class Solution:
def ap_sum(self, a, d, n):
return int(n * (2 * a + (n - 1) * d) / 2)
def distribute_candies(self, N, K):
rem = N
full_rounds = 0
while rem > 0:
this_round = self.apSum(1 + K * full_rounds, 1, K)
if this_round > rem:
break
rem -= this_round
full_rounds += 1
result = [0 for i in range(K)]
for i in range(K):
result[i] += self.apSum(i + 1, K, full_rounds)
extras = i + 1 + full_rounds * K
if extras > rem:
result[i] += rem
rem = 0
continue
result[i] += extras
rem -= extras
return result
if __name__ == '__main__':
t = int(input())
for _ in range(t):
(n, k) = map(int, input().split())
ob = solution()
res = ob.distributeCandies(N, K)
for i in res:
print(i, end=' ')
print() |
num = int(input('Digite algum numero: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print(f'Analisando numero {num}')
if u > 0:
print(f'Unidade: {u}')
if d > 0:
print(f'Dezena: {d}')
if c > 0:
print(f'Centena: {c}')
if m > 0:
print(f'Milhar: {m}')
| num = int(input('Digite algum numero: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print(f'Analisando numero {num}')
if u > 0:
print(f'Unidade: {u}')
if d > 0:
print(f'Dezena: {d}')
if c > 0:
print(f'Centena: {c}')
if m > 0:
print(f'Milhar: {m}') |
# Pandigital products
def check_pandigital_product(x, y):
if ''.join(sorted(str(x*y)+str(x)+str(y))) == '123456789':
return True
return False
pandig_products = []
for x in range(int(10), int(1e4)):
for y in range(int(10), int(1e4)):
if len(str(x)+str(y)+str(x*y)) != 9:
continue
if check_pandigital_product(x, y) and x*y not in pandig_products:
pandig_products.append(x*y)
print(pandig_products)
print("Sum of pandigital products: {}".format(sum(pandig_products)))
| def check_pandigital_product(x, y):
if ''.join(sorted(str(x * y) + str(x) + str(y))) == '123456789':
return True
return False
pandig_products = []
for x in range(int(10), int(10000.0)):
for y in range(int(10), int(10000.0)):
if len(str(x) + str(y) + str(x * y)) != 9:
continue
if check_pandigital_product(x, y) and x * y not in pandig_products:
pandig_products.append(x * y)
print(pandig_products)
print('Sum of pandigital products: {}'.format(sum(pandig_products))) |
# -*- coding: utf-8 -*-
class Guild:
def __init__(self, data=None):
self.id: str = ""
self.name: str = ""
self.icon: str = ""
self.owner_id: str = ""
self.owner: bool = False
self.member_count: int = 0
self.max_members: int = 0
self.description: str = ""
self.joined_at: str = ""
if data:
self.__dict__ = data
| class Guild:
def __init__(self, data=None):
self.id: str = ''
self.name: str = ''
self.icon: str = ''
self.owner_id: str = ''
self.owner: bool = False
self.member_count: int = 0
self.max_members: int = 0
self.description: str = ''
self.joined_at: str = ''
if data:
self.__dict__ = data |
class PiRGBArray:
def __init__(self, *args, **kwargs):
self.array = None
def truncate(self, _):
pass
class PiYUVArray:
def __init__(self, *args, **kwargs):
self.array = None
| class Pirgbarray:
def __init__(self, *args, **kwargs):
self.array = None
def truncate(self, _):
pass
class Piyuvarray:
def __init__(self, *args, **kwargs):
self.array = None |
class Course:
def __init__(self,name,ratings):
self.name=name
self.ratings=ratings
def average(self):
numberOfRatings= len(self.ratings)
average = sum(self.ratings)/numberOfRatings
print("Average Ratings For ",self.name," Is ",average)
c1 = Course("Java Course",[1,2,3,4,5])
print(c1.name)
print(c1.ratings)
c1.average()
c2 = Course("Java Web Services",[5,5,5,5])
print(c2.name)
print(c2.ratings)
c2.average() | class Course:
def __init__(self, name, ratings):
self.name = name
self.ratings = ratings
def average(self):
number_of_ratings = len(self.ratings)
average = sum(self.ratings) / numberOfRatings
print('Average Ratings For ', self.name, ' Is ', average)
c1 = course('Java Course', [1, 2, 3, 4, 5])
print(c1.name)
print(c1.ratings)
c1.average()
c2 = course('Java Web Services', [5, 5, 5, 5])
print(c2.name)
print(c2.ratings)
c2.average() |
class SubClass1:
pass
class SubClass2:
pass
async def async_function() -> None:
return
| class Subclass1:
pass
class Subclass2:
pass
async def async_function() -> None:
return |
GOOGLE_MAP_API_KEY = 'AIzaSyA2b8Zh0rzAJQjwDn0_CZ_tHdPXm6G2Sjs'
FIREBASE_FCM_API_KEY = 'AIzaSyAYd8wWQYEJFBzdLJgSGaa1fpJO0OT4APA'
| google_map_api_key = 'AIzaSyA2b8Zh0rzAJQjwDn0_CZ_tHdPXm6G2Sjs'
firebase_fcm_api_key = 'AIzaSyAYd8wWQYEJFBzdLJgSGaa1fpJO0OT4APA' |
# -*- coding: utf-8 -*-
class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score
def print_score(std):
print('%s: %s' % (std.name, std.score))
#print(std.name,std.score)
def get_grade(self):
if self.score >= 90:
return 'A'
elif self.score >= 60:
return 'B'
else:
return 'C'
#print ('C')
bart = Student('Bart Simpson', 59)
print(bart.name)
#print(bart.score)
bart.print_score()
print(bart.get_grade())
#bart.get_grade()
| class Student(object):
def __init__(self, name, score):
self.name = name
self.score = score
def print_score(std):
print('%s: %s' % (std.name, std.score))
def get_grade(self):
if self.score >= 90:
return 'A'
elif self.score >= 60:
return 'B'
else:
return 'C'
bart = student('Bart Simpson', 59)
print(bart.name)
bart.print_score()
print(bart.get_grade()) |
List1=[]
user=int(input())
for i in range(user):
List1.append(int(input()))
n=len(List1)
for k in range(n-1):
for j in range(n-1-k):
if List1[j]>List1[j+1]:
List1[j],List1[j+1]=List1[j+1],List1[j]
for i in List1:
print(i)
| list1 = []
user = int(input())
for i in range(user):
List1.append(int(input()))
n = len(List1)
for k in range(n - 1):
for j in range(n - 1 - k):
if List1[j] > List1[j + 1]:
(List1[j], List1[j + 1]) = (List1[j + 1], List1[j])
for i in List1:
print(i) |
# Part of the Crubit project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
# Create a loader/trampoline repository that we can call into to load LLVM.
#
# Our real goal is to choose between two different sources for LLVM binaries:
# - if `PREBUILT_LLVM_PATH` is in the environment, we treat it as the root of
# an LLVM tree that's been built with CMake and try to use headers and
# libraries from there
# - otherwise, we build LLVM from source
#
# We *could* implement this choice directly as an if/else between `http_archive`
# or `new_local_repository`. However, all Bazel `load`s are unconditional, so we
# would always end up cloning the (very large) LLVM project repository to load
# its Bazel configuration even if we aren't going to use it.
#
# To avoid that, we add the extra indirection of the "loader" repository. We
# populate the loader repository with one of two templated .bzl files depending
# on whether we want "local" or "remote" LLVM. Then our caller activates that
# .bzl file and gets the desired effect.
def _llvm_loader_repository(repository_ctx):
# The final repository is required to have a `BUILD` file at the root.
repository_ctx.file("BUILD")
# Create `llvm.bzl` from one of `llvm_{remote|local}.bzl.tmpl`.
if "PREBUILT_LLVM_PATH" in repository_ctx.os.environ:
# Use prebuilt LLVM
path = repository_ctx.os.environ["PREBUILT_LLVM_PATH"]
# If needed, resolve relative to root of *calling* repository
if not path.startswith("/"):
root_path = repository_ctx.path(
repository_ctx.attr.file_at_root,
).dirname
path = repository_ctx.path(str(root_path) + "/" + path)
repository_ctx.template(
"llvm.bzl",
Label("//bazel:llvm_local.bzl.tmpl"),
substitutions = {
"${PREBUILT_LLVM_PATH}": str(path),
"${CMAKE_BUILD_DIR}": "build",
},
executable = False,
)
else:
# Use downloaded LLVM built with Bazel
repository_ctx.template(
"llvm.bzl",
Label("//bazel:llvm_remote.bzl.tmpl"),
substitutions = {},
executable = False,
)
def llvm_loader_repository_dependencies():
# This *declares* the dependency, but it won't actually be *downloaded*
# unless it's used.
new_git_repository(
name = "llvm-raw",
build_file_content = "# empty",
commit = "llvmorg-15-init-10717-ge00cbbec",
shallow_since = "2022-05-18",
remote = "https://github.com/llvm/llvm-project.git",
)
llvm_loader_repository = repository_rule(
implementation = _llvm_loader_repository,
attrs = {
# We need a file from the root in order to get the workspace path
"file_at_root": attr.label(default = "//:BUILD"),
},
environ = [
"PREBUILT_LLVM_PATH",
],
)
| load('@bazel_tools//tools/build_defs/repo:git.bzl', 'new_git_repository')
def _llvm_loader_repository(repository_ctx):
repository_ctx.file('BUILD')
if 'PREBUILT_LLVM_PATH' in repository_ctx.os.environ:
path = repository_ctx.os.environ['PREBUILT_LLVM_PATH']
if not path.startswith('/'):
root_path = repository_ctx.path(repository_ctx.attr.file_at_root).dirname
path = repository_ctx.path(str(root_path) + '/' + path)
repository_ctx.template('llvm.bzl', label('//bazel:llvm_local.bzl.tmpl'), substitutions={'${PREBUILT_LLVM_PATH}': str(path), '${CMAKE_BUILD_DIR}': 'build'}, executable=False)
else:
repository_ctx.template('llvm.bzl', label('//bazel:llvm_remote.bzl.tmpl'), substitutions={}, executable=False)
def llvm_loader_repository_dependencies():
new_git_repository(name='llvm-raw', build_file_content='# empty', commit='llvmorg-15-init-10717-ge00cbbec', shallow_since='2022-05-18', remote='https://github.com/llvm/llvm-project.git')
llvm_loader_repository = repository_rule(implementation=_llvm_loader_repository, attrs={'file_at_root': attr.label(default='//:BUILD')}, environ=['PREBUILT_LLVM_PATH']) |
#Fizz Buzz Algorithm
def fizzBuzz(input):
if (input % 3 == 0) and (input % 5 == 0):
return "FizzBuzz"
elif input % 3 == 0:
return "Fizz"
elif input % 5 == 0:
return "Buzz"
return input
data = int(input("Enter any number :"))
print(fizzBuzz(data)) | def fizz_buzz(input):
if input % 3 == 0 and input % 5 == 0:
return 'FizzBuzz'
elif input % 3 == 0:
return 'Fizz'
elif input % 5 == 0:
return 'Buzz'
return input
data = int(input('Enter any number :'))
print(fizz_buzz(data)) |
def power(base , pow):
answer = 1
for index in range(pow):
answer = answer * base
return answer
print(power(2 , 14)) | def power(base, pow):
answer = 1
for index in range(pow):
answer = answer * base
return answer
print(power(2, 14)) |
# Only 4xx errors information will be returned currently
# https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_errors
MSG = "msg"
# 400x
BAD_REQUEST_4000 = 4000
INVALID_INPUT_4001 = 4001
INVALID_INPUT_4001_MSG = "Invalid inputs."
WRONG_CREDENTIALS_4002 = 4002
WRONG_CREDENTIALS_4002_MSG = "Incorrect username(email) or password or both."
# 404x
NOT_FOUND_4040 = 4040
USER_NOT_FOUND_4041 = 4041
USER_INACTIVE_4042 = 4042
USER_INACTIVE_4042_MSG = "The current account is inactive."
# 500x
INTERNAL_SERVER_ERROR_5000 = 5000
| msg = 'msg'
bad_request_4000 = 4000
invalid_input_4001 = 4001
invalid_input_4001_msg = 'Invalid inputs.'
wrong_credentials_4002 = 4002
wrong_credentials_4002_msg = 'Incorrect username(email) or password or both.'
not_found_4040 = 4040
user_not_found_4041 = 4041
user_inactive_4042 = 4042
user_inactive_4042_msg = 'The current account is inactive.'
internal_server_error_5000 = 5000 |
class Solution(object):
def coinChangeIter(self, coins, amount):
sum = 0
dp = [0 for i in range(amount+1)]
for i in range(1, amount+1):
min = -1
for coin in coins:
if i-coin >= 0 and dp[i-coin] != -1:
if min < 0 or dp[i-coin] +1 < min:
min = dp[i-coin] + 1
dp[i] = min
return dp[amount]
def coinChange(self, coins, amount):
dp = [0 for i in range(amount+1)]
a = self.coinChangeRecurse(coins, amount, dp)
return a
def coinChangeRecurse(self, coins, rem, dp):
if rem == 0:
return 0
if rem < 0:
return -1
if dp[rem] != 0:
return dp[rem]
min = 9999999
for coin in coins:
a = self.coinChangeRecurse(coins, rem-coin, dp)
if a >= 0 and a < min:
min = a +1
if min == 9999999:
min = -1
dp[rem] = min
return min
a = Solution()
print(a.coinChange([1, 2, 5], 11))
print(a.coinChange([2], 3))
| class Solution(object):
def coin_change_iter(self, coins, amount):
sum = 0
dp = [0 for i in range(amount + 1)]
for i in range(1, amount + 1):
min = -1
for coin in coins:
if i - coin >= 0 and dp[i - coin] != -1:
if min < 0 or dp[i - coin] + 1 < min:
min = dp[i - coin] + 1
dp[i] = min
return dp[amount]
def coin_change(self, coins, amount):
dp = [0 for i in range(amount + 1)]
a = self.coinChangeRecurse(coins, amount, dp)
return a
def coin_change_recurse(self, coins, rem, dp):
if rem == 0:
return 0
if rem < 0:
return -1
if dp[rem] != 0:
return dp[rem]
min = 9999999
for coin in coins:
a = self.coinChangeRecurse(coins, rem - coin, dp)
if a >= 0 and a < min:
min = a + 1
if min == 9999999:
min = -1
dp[rem] = min
return min
a = solution()
print(a.coinChange([1, 2, 5], 11))
print(a.coinChange([2], 3)) |
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': 4.72345e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202693,
'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': 2.02403e-05,
'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.347313,
'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.601421,
'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.344932,
'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': 1.29367,
'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.343302,
'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.54895,
'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': 3.82383e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0125904,
'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.0910465,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0931135,
'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.0910503,
'Execution Unit/Register Files/Runtime Dynamic': 0.105704,
'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.220007,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.565341,
'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': 2.57278,
'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.00392745,
'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.00392745,
'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.00343906,
'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': 0.0013413,
'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.00133758,
'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.0126315,
'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.0370038,
'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.0895124,
'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': 5.69376,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.337064,
'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.304024,
'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': 8.19283,
'Instruction Fetch Unit/Runtime Dynamic': 0.780237,
'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.0690669,
'L2/Runtime Dynamic': 0.0155266,
'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': 3.94674,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.32432,
'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.0876627,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0876628,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.36239,
'Load Store Unit/Runtime Dynamic': 1.84431,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.216161,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.432323,
'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.0767164,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0774717,
'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.354017,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0560921,
'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.645143,
'Memory Management Unit/Runtime Dynamic': 0.133564,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 23.3801,
'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': 1.30032e-05,
'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.0177598,
'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.179809,
'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.197582,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 5.54399,
'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.0498229,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241822,
'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.266868,
'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.114592,
'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.184833,
'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.0932975,
'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.392723,
'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.0901452,
'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.47063,
'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.0504171,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00480652,
'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.053499,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0355471,
'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.103916,
'Execution Unit/Register Files/Runtime Dynamic': 0.0403536,
'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.125166,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.311805,
'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.39208,
'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.000322766,
'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.000322766,
'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.000296288,
'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': 0.000122988,
'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.000510637,
'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.00145246,
'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.00255307,
'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.0341724,
'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.17365,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0780257,
'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.116065,
'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.49766,
'Instruction Fetch Unit/Runtime Dynamic': 0.232268,
'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.0460378,
'L2/Runtime Dynamic': 0.00374756,
'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': 2.60591,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.661816,
'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.0442836,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0442837,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.81503,
'Load Store Unit/Runtime Dynamic': 0.924492,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.109196,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.218392,
'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.038754,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0394436,
'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.13515,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0127968,
'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.357831,
'Memory Management Unit/Runtime Dynamic': 0.0522404,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 15.7767,
'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.132625,
'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.0067841,
'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.0562553,
'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.195664,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.80049,
'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.0,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689,
'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.0,
'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.0910043,
'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.146787,
'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.0740929,
'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.311884,
'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.104084,
'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.02642,
'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.0,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00381713,
'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.027603,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.02823,
'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.027603,
'Execution Unit/Register Files/Runtime Dynamic': 0.0320472,
'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.0581517,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.169518,
'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.12151,
'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.000479496,
'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.000479496,
'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.000421528,
'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': 0.000165306,
'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.000405526,
'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.00178605,
'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.00445847,
'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.0271382,
'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': 1.72622,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0530833,
'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.0921737,
'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.02851,
'Instruction Fetch Unit/Runtime Dynamic': 0.17864,
'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.033737,
'L2/Runtime Dynamic': 0.00795641,
'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': 2.29632,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.520584,
'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.0342676,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0342675,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.45814,
'Load Store Unit/Runtime Dynamic': 0.723847,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0844981,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.168996,
'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.0299887,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0304948,
'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.10733,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00870376,
'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.314954,
'Memory Management Unit/Runtime Dynamic': 0.0391986,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 14.4512,
'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.0,
'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.00410587,
'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.0479361,
'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.0520419,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.1232,
'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.0358538,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.23085,
'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.185183,
'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.090258,
'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.145583,
'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.0734853,
'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.309326,
'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.0748382,
'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.30031,
'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.0349851,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00378582,
'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.0411426,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0279985,
'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.0761277,
'Execution Unit/Register Files/Runtime Dynamic': 0.0317843,
'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.0956413,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.254774,
'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.23211,
'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.000261061,
'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.000261061,
'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.000227814,
'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': 8.84257e-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.000402201,
'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.00115214,
'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.00248766,
'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.0269157,
'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': 1.71207,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0737253,
'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.0914177,
'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.01367,
'Instruction Fetch Unit/Runtime Dynamic': 0.195698,
'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.0594532,
'L2/Runtime Dynamic': 0.016644,
'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': 2.31416,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.545885,
'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.0348449,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0348448,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.47871,
'Load Store Unit/Runtime Dynamic': 0.752572,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0859216,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.171843,
'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.0304939,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0313747,
'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.10645,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0121218,
'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.314942,
'Memory Management Unit/Runtime Dynamic': 0.0434965,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 14.7566,
'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.0920295,
'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.00519217,
'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.0446444,
'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.141866,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.38239,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 5.817101355307589,
'Runtime Dynamic': 5.817101355307589,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.298219,
'Runtime Dynamic': 0.0868154,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 68.6627,
'Peak Power': 101.775,
'Runtime Dynamic': 12.9369,
'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': 68.3645,
'Total Cores/Runtime Dynamic': 12.8501,
'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.298219,
'Total L3s/Runtime Dynamic': 0.0868154,
'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': 4.72345e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202693, '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': 2.02403e-05, '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.347313, '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.601421, '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.344932, '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': 1.29367, '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.343302, '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.54895, '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': 3.82383e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0125904, '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.0910465, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0931135, '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.0910503, 'Execution Unit/Register Files/Runtime Dynamic': 0.105704, '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.220007, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.565341, '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': 2.57278, '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.00392745, '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.00392745, '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.00343906, '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': 0.0013413, '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.00133758, '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.0126315, '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.0370038, '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.0895124, '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': 5.69376, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.337064, '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.304024, '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': 8.19283, 'Instruction Fetch Unit/Runtime Dynamic': 0.780237, '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.0690669, 'L2/Runtime Dynamic': 0.0155266, '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': 3.94674, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.32432, '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.0876627, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0876628, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.36239, 'Load Store Unit/Runtime Dynamic': 1.84431, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.216161, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.432323, '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.0767164, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0774717, '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.354017, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0560921, '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.645143, 'Memory Management Unit/Runtime Dynamic': 0.133564, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 23.3801, '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': 1.30032e-05, '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.0177598, '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.179809, '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.197582, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 5.54399, '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.0498229, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241822, '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.266868, '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.114592, '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.184833, '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.0932975, '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.392723, '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.0901452, '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.47063, '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.0504171, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00480652, '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.053499, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0355471, '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.103916, 'Execution Unit/Register Files/Runtime Dynamic': 0.0403536, '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.125166, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.311805, '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.39208, '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.000322766, '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.000322766, '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.000296288, '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': 0.000122988, '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.000510637, '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.00145246, '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.00255307, '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.0341724, '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.17365, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0780257, '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.116065, '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.49766, 'Instruction Fetch Unit/Runtime Dynamic': 0.232268, '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.0460378, 'L2/Runtime Dynamic': 0.00374756, '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': 2.60591, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.661816, '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.0442836, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0442837, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.81503, 'Load Store Unit/Runtime Dynamic': 0.924492, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.109196, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.218392, '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.038754, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0394436, '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.13515, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0127968, '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.357831, 'Memory Management Unit/Runtime Dynamic': 0.0522404, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.7767, '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.132625, '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.0067841, '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.0562553, '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.195664, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.80049, '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.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, '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.0, '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.0910043, '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.146787, '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.0740929, '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.311884, '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.104084, '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.02642, '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.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00381713, '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.027603, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.02823, '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.027603, 'Execution Unit/Register Files/Runtime Dynamic': 0.0320472, '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.0581517, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.169518, '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.12151, '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.000479496, '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.000479496, '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.000421528, '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': 0.000165306, '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.000405526, '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.00178605, '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.00445847, '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.0271382, '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': 1.72622, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0530833, '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.0921737, '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.02851, 'Instruction Fetch Unit/Runtime Dynamic': 0.17864, '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.033737, 'L2/Runtime Dynamic': 0.00795641, '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': 2.29632, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.520584, '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.0342676, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0342675, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.45814, 'Load Store Unit/Runtime Dynamic': 0.723847, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0844981, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.168996, '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.0299887, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0304948, '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.10733, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00870376, '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.314954, 'Memory Management Unit/Runtime Dynamic': 0.0391986, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.4512, '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.0, '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.00410587, '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.0479361, '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.0520419, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.1232, '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.0358538, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.23085, '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.185183, '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.090258, '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.145583, '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.0734853, '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.309326, '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.0748382, '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.30031, '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.0349851, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00378582, '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.0411426, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0279985, '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.0761277, 'Execution Unit/Register Files/Runtime Dynamic': 0.0317843, '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.0956413, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.254774, '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.23211, '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.000261061, '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.000261061, '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.000227814, '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': 8.84257e-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.000402201, '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.00115214, '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.00248766, '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.0269157, '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': 1.71207, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0737253, '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.0914177, '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.01367, 'Instruction Fetch Unit/Runtime Dynamic': 0.195698, '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.0594532, 'L2/Runtime Dynamic': 0.016644, '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': 2.31416, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.545885, '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.0348449, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0348448, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.47871, 'Load Store Unit/Runtime Dynamic': 0.752572, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0859216, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.171843, '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.0304939, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0313747, '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.10645, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0121218, '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.314942, 'Memory Management Unit/Runtime Dynamic': 0.0434965, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.7566, '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.0920295, '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.00519217, '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.0446444, '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.141866, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.38239, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 5.817101355307589, 'Runtime Dynamic': 5.817101355307589, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.298219, 'Runtime Dynamic': 0.0868154, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 68.6627, 'Peak Power': 101.775, 'Runtime Dynamic': 12.9369, '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': 68.3645, 'Total Cores/Runtime Dynamic': 12.8501, '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.298219, 'Total L3s/Runtime Dynamic': 0.0868154, '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 func():
print('first')
print('second')
return 3
print('third')
func() | def func():
print('first')
print('second')
return 3
print('third')
func() |
def add_(a,b):
return a+b
def sub_(a,b):
return a-b | def add_(a, b):
return a + b
def sub_(a, b):
return a - b |
'''Initialize biosql db '''
#biodb_conn_string = 'sqlite://biodb.sqlite'
# biodb_conn_string = 'mysql://root:@127.0.0.1/mybiodb'
#biodb_conn_string = 'postgres://mybiodb:mypass@127.0.0.1/mybiodb'
# timestamps_db = 'sqlite://biodb.sqlite'
biodb_handler = BioSQLHandler(settings.biodb_conn_string, compatibility_mode = False, time_stamps = settings.timestamps_db, pool_size = 5)
biodb = biodb_handler.adaptor
if biodb_handler._build_error:
response.flash = 'DB model building error'
'''Initial configuration data '''
biodatabases = [row.name for row in biodb(biodb.biodatabase.id>0).select()]
if 'UniProt' not in biodatabases:
biodb_handler.make_new_db(dbname = 'UniProt',
description = 'Entries loaded from UniProt',)
| """Initialize biosql db """
biodb_handler = bio_sql_handler(settings.biodb_conn_string, compatibility_mode=False, time_stamps=settings.timestamps_db, pool_size=5)
biodb = biodb_handler.adaptor
if biodb_handler._build_error:
response.flash = 'DB model building error'
'Initial configuration data '
biodatabases = [row.name for row in biodb(biodb.biodatabase.id > 0).select()]
if 'UniProt' not in biodatabases:
biodb_handler.make_new_db(dbname='UniProt', description='Entries loaded from UniProt') |
user_range = input("Type a range (star and end): ").split()
for u in range(0, len(user_range)):
user_range[u] = int(user_range[u])
even_sum = 0
for i in range(user_range[0], user_range[1]):
if i % 2 == 0:
even_sum += i
print("The total even add is: {:d}".format(even_sum))
| user_range = input('Type a range (star and end): ').split()
for u in range(0, len(user_range)):
user_range[u] = int(user_range[u])
even_sum = 0
for i in range(user_range[0], user_range[1]):
if i % 2 == 0:
even_sum += i
print('The total even add is: {:d}'.format(even_sum)) |
# Solution
# O(nd) time / O(n) space
# n - target amount
# d - number of denominations
def numberOfWaysToMakeChange(n, denoms):
ways = [0 for amount in range(n + 1)]
ways[0] = 1
for denom in denoms:
for amount in range(1, n + 1):
if denom <= amount:
ways[amount] += ways[amount - denom]
return ways[n]
| def number_of_ways_to_make_change(n, denoms):
ways = [0 for amount in range(n + 1)]
ways[0] = 1
for denom in denoms:
for amount in range(1, n + 1):
if denom <= amount:
ways[amount] += ways[amount - denom]
return ways[n] |
print(" Week 1 - Day-2 ")
print("--------------------")
print(" v = 6" + " AND "+ "c = 5")
print("--------------------")
v = 6
c = 5
if v < c:
print(" c big than v")
else:
print(" c small than v")
input('Press ENTER to continue...')
| print(' Week 1 - Day-2 ')
print('--------------------')
print(' v = 6' + ' AND ' + 'c = 5')
print('--------------------')
v = 6
c = 5
if v < c:
print(' c big than v')
else:
print(' c small than v')
input('Press ENTER to continue...') |
# A simple graph representing a series of cities and the connections between
# them.
map = {
"Seattle": {"San Francisco"},
"San Francisco": {"Seattle", "Los Angeles", "Denver"},
"Los Angeles": {"San Francisco", "Phoenix"},
"Phoenix": {"Los Angeles", "Denver"},
"Denver": {"Phoenix", "San Francisco", "Houston", "Kansas City"},
"Kansas City": {"Denver", "Houston", "Chicago", "Nashville"},
"Houston": {"Kansas City", "Denver"},
"Chicago": {"Kansas City", "New York"},
"Nashville": {"Kansas City", "Houston", "Miami"},
"New York": {"Chicago", "Washington D.C."},
"Washington D.C.": {"Chicago", "Nashville", "Miami"},
"Miami": {"Washington D.C.", "Houston", "Nashville"},
}
DELIVERED = "Delivered"
# Use BFS to find the shortest path
def find_shortest_path(start, end):
# Question: Why is a Python list acceptable to use for this queue?
qq = []
qq.append([start])
visited = set()
while len(qq) > 0:
path = qq.pop()
city = path[-1]
if city == end:
return path
else:
if city not in visited:
visited.add(city)
for connection in map[city]:
new_path = list(path)
new_path.append(connection)
qq.insert(0, new_path)
return "Error: Path not found"
# Determine the next step via BFS. Set location to delivered at end.
def advance_delivery(location, destination):
print("advancing", location, destination)
# shouldn't be called in this case
if location == DELIVERED:
return DELIVERED
if location == destination:
return DELIVERED
path = find_shortest_path(location, destination)
# Safe to say there is a next city if we get here
return path[1]
# Testing
# print(find_shortest_path("Seattle", "Kansas City"))
| map = {'Seattle': {'San Francisco'}, 'San Francisco': {'Seattle', 'Los Angeles', 'Denver'}, 'Los Angeles': {'San Francisco', 'Phoenix'}, 'Phoenix': {'Los Angeles', 'Denver'}, 'Denver': {'Phoenix', 'San Francisco', 'Houston', 'Kansas City'}, 'Kansas City': {'Denver', 'Houston', 'Chicago', 'Nashville'}, 'Houston': {'Kansas City', 'Denver'}, 'Chicago': {'Kansas City', 'New York'}, 'Nashville': {'Kansas City', 'Houston', 'Miami'}, 'New York': {'Chicago', 'Washington D.C.'}, 'Washington D.C.': {'Chicago', 'Nashville', 'Miami'}, 'Miami': {'Washington D.C.', 'Houston', 'Nashville'}}
delivered = 'Delivered'
def find_shortest_path(start, end):
qq = []
qq.append([start])
visited = set()
while len(qq) > 0:
path = qq.pop()
city = path[-1]
if city == end:
return path
elif city not in visited:
visited.add(city)
for connection in map[city]:
new_path = list(path)
new_path.append(connection)
qq.insert(0, new_path)
return 'Error: Path not found'
def advance_delivery(location, destination):
print('advancing', location, destination)
if location == DELIVERED:
return DELIVERED
if location == destination:
return DELIVERED
path = find_shortest_path(location, destination)
return path[1] |
RECEIVED_REQUEST = 'RT'
REQUEST_SUCCESS = 'TS'
REQUEST_FAILED = 'TF'
REQUEST_PROCESSING = 'SP'
NETWORK_ISSUE = 'NC'
CONFIRMING_REQUEST = 'SC'
UNIONBANK_RESPONSE_CODES = {
RECEIVED_REQUEST: {
'message': 'Received Transaction Request',
'apis': 'all',
'description': 'Transaction has reached UnionBank'},
REQUEST_SUCCESS: {
'message': 'Credited Beneficiary Account',
'apis': 'all',
'description': 'Successful transaction'},
REQUEST_FAILED: {
'message': 'Failed to Credit Beneficiary Account',
'apis': 'all',
'description': 'All transactional APIs Transaction has failed'},
REQUEST_PROCESSING: {
'message': 'Sent for Processing',
'apis': 'all',
'description': 'Transaction is sent for processing'},
NETWORK_ISSUE: {
'message': 'Network Issue - Core',
'apis': 'all',
'description': 'Transaction has encountered a network issue'},
CONFIRMING_REQUEST: {
'message': 'Sent for Confirmation',
'apis': 'instapay',
'description': 'Transaction status for confirmation'},
}
PENDING_RESPONSE = [
RECEIVED_REQUEST,
REQUEST_PROCESSING,
CONFIRMING_REQUEST
] | received_request = 'RT'
request_success = 'TS'
request_failed = 'TF'
request_processing = 'SP'
network_issue = 'NC'
confirming_request = 'SC'
unionbank_response_codes = {RECEIVED_REQUEST: {'message': 'Received Transaction Request', 'apis': 'all', 'description': 'Transaction has reached UnionBank'}, REQUEST_SUCCESS: {'message': 'Credited Beneficiary Account', 'apis': 'all', 'description': 'Successful transaction'}, REQUEST_FAILED: {'message': 'Failed to Credit Beneficiary Account', 'apis': 'all', 'description': 'All transactional APIs\tTransaction has failed'}, REQUEST_PROCESSING: {'message': 'Sent for Processing', 'apis': 'all', 'description': 'Transaction is sent for processing'}, NETWORK_ISSUE: {'message': 'Network Issue - Core', 'apis': 'all', 'description': 'Transaction has encountered a network issue'}, CONFIRMING_REQUEST: {'message': 'Sent for Confirmation', 'apis': 'instapay', 'description': 'Transaction status for confirmation'}}
pending_response = [RECEIVED_REQUEST, REQUEST_PROCESSING, CONFIRMING_REQUEST] |
# Write your check_for_name function here:
def check_for_name(sentence, name) -> object:
return name.lower() in sentence.lower()
# Uncomment these function calls to test your function:
print(check_for_name("My name is Jamie", "Jamie"))
# should print True
print(check_for_name("My name is jamie", "Jamie"))
# should print True
print(check_for_name("My name is Samantha", "Jamie"))
# should print False | def check_for_name(sentence, name) -> object:
return name.lower() in sentence.lower()
print(check_for_name('My name is Jamie', 'Jamie'))
print(check_for_name('My name is jamie', 'Jamie'))
print(check_for_name('My name is Samantha', 'Jamie')) |
# loops with range
for x in range(0, 10, 1):
pass # insert what to do in each iteration
# 0 represents the value to start iterating with
# 10 represents the value to stop iterating at
# 1 represents the value in which the iterator changes per iteration
for x in range(0, 10, 1):
pass # start iteration at 0, end when x < 10 and iterator increases by 1 each iteration
for x in range(0, 10): # increment of +1 is implied
pass
for x in range(10): # increment of +1 and start at 0 is implied
pass
for x in range(0, 10, 2):
print(x) # output: 0, 2, 4, 6, 8
for x in range(5, 1, -3):
print(x) # output: 5, 2
# iterate through list
my_list = ["abc", 123, "xyz"]
for i in range(0, len(my_list)):
print(i, my_list[i]) # output: 0 abc, 1 123, 2 xyz
# OR
for v in my_list:
print(v) # output: abc, 123, xyz
# iterating through dictionaries / the iterator are they keys in the dictionary
my_dict = { "name": "Noelle", "language": "Python" }
for k in my_dict:
print(k) # output: name, language
# grab the values of the keys in the dictionary
my_dict = { "name": "Noelle", "language": "Python" }
for k in my_dict:
print(my_dict[k]) # output: Noelle, Python
capitals = {"Washington":"Olympia","California":"Sacramento","Idaho":"Boise","Illinois":"Springfield","Texas":"Austin","Oklahoma":"Oklahoma City","Virginia":"Richmond"}
# another way to iterate through the keys
for key in capitals.keys():
print(key) # output: Washington, California, Idaho, Illinois, Texas, Oklahoma, Virginia
#to iterate through the values
for val in capitals.values():
print(val) # output: Olympia, Sacramento, Boise, Springfield, Austin, Oklahoma City, Richmond
#to iterate through both keys and values
for key, val in capitals.items():
print(key, " = ", val) # output: Washington = Olympia, California = Sacramento, Idaho = Boise, etc
# for loop vs while loop
for count in range(0,5):
print("looping - ", count)
count = 0
# same output
while count < 5:
print("looping - ", count)
count += 1
# else statements will do something when the conditions are not met
y = 3
while y > 0:
print(y)
y = y - 1
else:
print("Final else statement")
# using break
for val in "string":
if val == "i":
break
print(val) # output: s, t, r
# using continue
for val in "string":
if val == "i":
continue
print(val) # output: s, t, r, n, g
# notice, no i in the output, but the loop continued after the i
y = 3
while y > 0:
print(y)
y = y - 1
if y == 0:
break
else: # only executes on a clean exit from the while loop (i.e. not a break)
print("Final else statement") # output: 3, 2, 1
| for x in range(0, 10, 1):
pass
for x in range(0, 10, 1):
pass
for x in range(0, 10):
pass
for x in range(10):
pass
for x in range(0, 10, 2):
print(x)
for x in range(5, 1, -3):
print(x)
my_list = ['abc', 123, 'xyz']
for i in range(0, len(my_list)):
print(i, my_list[i])
for v in my_list:
print(v)
my_dict = {'name': 'Noelle', 'language': 'Python'}
for k in my_dict:
print(k)
my_dict = {'name': 'Noelle', 'language': 'Python'}
for k in my_dict:
print(my_dict[k])
capitals = {'Washington': 'Olympia', 'California': 'Sacramento', 'Idaho': 'Boise', 'Illinois': 'Springfield', 'Texas': 'Austin', 'Oklahoma': 'Oklahoma City', 'Virginia': 'Richmond'}
for key in capitals.keys():
print(key)
for val in capitals.values():
print(val)
for (key, val) in capitals.items():
print(key, ' = ', val)
for count in range(0, 5):
print('looping - ', count)
count = 0
while count < 5:
print('looping - ', count)
count += 1
y = 3
while y > 0:
print(y)
y = y - 1
else:
print('Final else statement')
for val in 'string':
if val == 'i':
break
print(val)
for val in 'string':
if val == 'i':
continue
print(val)
y = 3
while y > 0:
print(y)
y = y - 1
if y == 0:
break
else:
print('Final else statement') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.