content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#@<OUT> get cluster status { "clusterName": "testCluster", "defaultReplicaSet": { "name": "default", "topology": [ { "address": "<<<hostname>>>:<<<__mysql_sandbox_port2>>>", "label": "<<<hostname>>>:<<<__mysql_sandbox_port2>>>", "role": "HA" }, { "address": "<<<hostname>>>:<<<__mysql_sandbox_port1>>>", "label": "<<<hostname>>>:<<<__mysql_sandbox_port1>>>", "role": "HA" } ], "topologyMode": "Single-Primary" } }
{'clusterName': 'testCluster', 'defaultReplicaSet': {'name': 'default', 'topology': [{'address': '<<<hostname>>>:<<<__mysql_sandbox_port2>>>', 'label': '<<<hostname>>>:<<<__mysql_sandbox_port2>>>', 'role': 'HA'}, {'address': '<<<hostname>>>:<<<__mysql_sandbox_port1>>>', 'label': '<<<hostname>>>:<<<__mysql_sandbox_port1>>>', 'role': 'HA'}], 'topologyMode': 'Single-Primary'}}
s = input().split() for i in range(len(s)): if int(s[i]) % 2 == 0: print(s[i], end=' ')
s = input().split() for i in range(len(s)): if int(s[i]) % 2 == 0: print(s[i], end=' ')
CERT_FILE = 'release.pem' SETUP_USERS_FILE = 'setup_users.sh' CERTIFICATE_FOLDER = '/opt/instance' ALLOWED_EXTENSIONS = {'pem'} ISO_REPO_URL = 'https://yum.128technology.com/isos/' ISO_RE = '(.+)\.iso$' IMAGE_FOLDER = '/opt/images' SCRIPT_FOLDER = '/opt/scripts' PRE_BOOTSTRAP = 'pre' POST_BOOTSTRAP = 'post' PRE_BOOTSTRAP_FILENAME = 'pre-bootstrap' POST_BOOTSTRAP_FILENAME = 'post-bootstrap' UEFI_TFTPBOOT_DIR = '/opt/tftpboot.uefi' BIOS_TFTPBOOT_DIR = '/opt/tftpboot.bios' SCRIPT_KS_SNIPPET = '/opt/setup_scripts.sh' EJECT_USB_KS_SNIPPET = '/opt/eject_usb_disks.sh' UEFI_IP = '192.168.128.4' BIOS_IP = '192.168.128.3' NFS_IP = '192.168.128.128' COMBINED_ISO_OTP_KS_FILE = 'ks-otp.cfg' COMBINED_ISO_OTP_UEFI_KS_FILE = 'ks-otp-uefi.cfg' COMBINED_ISO_INTERACTIVE_KS_FILE = 'ks-interactive.cfg' COMBINED_ISO_INTERACTIVE_UEFI_KS_FILE = 'ks-interactive-uefi.cfg' LEGACY_OTP_KICKSTART_FILE = 'ks.cfg' LEGACY_STANDARD_KICKSTART_FILE = '128T-ks.cfg'
cert_file = 'release.pem' setup_users_file = 'setup_users.sh' certificate_folder = '/opt/instance' allowed_extensions = {'pem'} iso_repo_url = 'https://yum.128technology.com/isos/' iso_re = '(.+)\\.iso$' image_folder = '/opt/images' script_folder = '/opt/scripts' pre_bootstrap = 'pre' post_bootstrap = 'post' pre_bootstrap_filename = 'pre-bootstrap' post_bootstrap_filename = 'post-bootstrap' uefi_tftpboot_dir = '/opt/tftpboot.uefi' bios_tftpboot_dir = '/opt/tftpboot.bios' script_ks_snippet = '/opt/setup_scripts.sh' eject_usb_ks_snippet = '/opt/eject_usb_disks.sh' uefi_ip = '192.168.128.4' bios_ip = '192.168.128.3' nfs_ip = '192.168.128.128' combined_iso_otp_ks_file = 'ks-otp.cfg' combined_iso_otp_uefi_ks_file = 'ks-otp-uefi.cfg' combined_iso_interactive_ks_file = 'ks-interactive.cfg' combined_iso_interactive_uefi_ks_file = 'ks-interactive-uefi.cfg' legacy_otp_kickstart_file = 'ks.cfg' legacy_standard_kickstart_file = '128T-ks.cfg'
#Class for sources table class Sources: def __init__(self, cursor): self.cursor = cursor #read from db #check existing pagespeed of stored sources def getSpeed(cursor, hash): sql= "SELECT sources_speed from sources WHERE sources_hash=%s LIMIT 1" data = (hash,) cursor.execute(sql,(data)) rows = cursor.fetchall() return rows def getSourcesURLs(cursor, hash): sql= "SELECT sources_urls from sources WHERE sources_hash=%s LIMIT 1" data = (hash,) cursor.execute(sql,(data)) rows = cursor.fetchall() return rows def resetSources(cursor): cursor.execute( "UPDATE sources SET sources_source = NULL, sources_speed = NULL WHERE sources_source = '-1' or sources_source = '1'" ) def deleteSources(cursors, queries_id): pass
class Sources: def __init__(self, cursor): self.cursor = cursor def get_speed(cursor, hash): sql = 'SELECT sources_speed from sources WHERE sources_hash=%s LIMIT 1' data = (hash,) cursor.execute(sql, data) rows = cursor.fetchall() return rows def get_sources_ur_ls(cursor, hash): sql = 'SELECT sources_urls from sources WHERE sources_hash=%s LIMIT 1' data = (hash,) cursor.execute(sql, data) rows = cursor.fetchall() return rows def reset_sources(cursor): cursor.execute("UPDATE sources SET sources_source = NULL, sources_speed = NULL WHERE sources_source = '-1' or sources_source = '1'") def delete_sources(cursors, queries_id): pass
class Dog: def __init__(self, name, color): self.name = name self.color = color def bark(self): print('Woof!') fido = Dog("Fido", "brown") print(fido.name) print(fido.color) fido.bark()
class Dog: def __init__(self, name, color): self.name = name self.color = color def bark(self): print('Woof!') fido = dog('Fido', 'brown') print(fido.name) print(fido.color) fido.bark()
#!/usr/bin/env python3 #encoding=utf-8 #--------------------------------------------- # Usage: python3 4-spam_class2.py # Description: Code that needs to manage per-class instance counters, for example, # might be best off leveraging class methods. In the following, the # top-level superclass uses a class method to manage state information # that varies for and is stored on each class in the tree -- similar in # spirit to the way instance methods manage state information that # varies per class instance #--------------------------------------------- class SpamClass: instance_counter = 0 def count(cls): # per-class instance counter cls.instance_counter += 1 # cls is the lowest class above instance def __init__(self): self.count() # pass self.__class__ to count count = classmethod(count) # @classmethod # def count1(cls): # cls.instance_counter += 1 class SpamSub(SpamClass): instance_counter = 0 def __init__(self): # Redefine __init__ operator SpamClass.__init__(self) class SpamSubOther(SpamClass): instance_counter = 0 # Inherits __init__ operator if __name__ == '__main__': a = SpamClass() b1, b2 = SpamSub(), SpamSub() c1, c2, c3 = SpamSubOther(), SpamSubOther(), SpamSubOther() print(SpamClass.instance_counter, SpamSub.instance_counter, SpamSubOther.instance_counter)
class Spamclass: instance_counter = 0 def count(cls): cls.instance_counter += 1 def __init__(self): self.count() count = classmethod(count) class Spamsub(SpamClass): instance_counter = 0 def __init__(self): SpamClass.__init__(self) class Spamsubother(SpamClass): instance_counter = 0 if __name__ == '__main__': a = spam_class() (b1, b2) = (spam_sub(), spam_sub()) (c1, c2, c3) = (spam_sub_other(), spam_sub_other(), spam_sub_other()) print(SpamClass.instance_counter, SpamSub.instance_counter, SpamSubOther.instance_counter)
a=int(input()) e=[] def cont(no,arr): arr=list(set(arr)) for i in range(len(arr)): if(no==arr[i]): return True for i in range(a): b=int(input()) c=list(map(int,input().split())) e.append(c) for i in range(len(e)): e[i].sort() for i in e: f=[] g=[] for j in range(len(i)): if(cont(i[j],f)): g.append(i[j]) else: f.append(i[j]) no1=0 no2=0 for i in range(101): if(cont(i,f)): no1=i+1 else: break for i in range(101): if(cont(i,g)): no2=i+1 else: break print(no1+no2)
a = int(input()) e = [] def cont(no, arr): arr = list(set(arr)) for i in range(len(arr)): if no == arr[i]: return True for i in range(a): b = int(input()) c = list(map(int, input().split())) e.append(c) for i in range(len(e)): e[i].sort() for i in e: f = [] g = [] for j in range(len(i)): if cont(i[j], f): g.append(i[j]) else: f.append(i[j]) no1 = 0 no2 = 0 for i in range(101): if cont(i, f): no1 = i + 1 else: break for i in range(101): if cont(i, g): no2 = i + 1 else: break print(no1 + no2)
def three_highest(cars): return sorted(cars, key=lambda car: car.dimensions[2], reverse=True)[:3] def three_fastest(cars): return sorted(cars, key=lambda car: car.to100km)[:3]
def three_highest(cars): return sorted(cars, key=lambda car: car.dimensions[2], reverse=True)[:3] def three_fastest(cars): return sorted(cars, key=lambda car: car.to100km)[:3]
dollar={"rupees":75.53,"yen":107.50,"dirham":3.67,"euro":0.91,"pound":0.81} def mainCurrency(query): splitQuery=query.split() value,fromCurrency,toCurrency=splitQuery[1],splitQuery[2],splitQuery[4] if fromCurrency=="dollars":finalValue=float(value)*dollar[toCurrency] elif toCurrency=="dollars":finalValue=float(value)/dollar[fromCurrency] else:finalValue=(float(value)/dollar[fromCurrency])*dollar[toCurrency] return (str(value)+" "+fromCurrency.capitalize()+" : "+str(round(finalValue,2))+" "+toCurrency.capitalize())
dollar = {'rupees': 75.53, 'yen': 107.5, 'dirham': 3.67, 'euro': 0.91, 'pound': 0.81} def main_currency(query): split_query = query.split() (value, from_currency, to_currency) = (splitQuery[1], splitQuery[2], splitQuery[4]) if fromCurrency == 'dollars': final_value = float(value) * dollar[toCurrency] elif toCurrency == 'dollars': final_value = float(value) / dollar[fromCurrency] else: final_value = float(value) / dollar[fromCurrency] * dollar[toCurrency] return str(value) + ' ' + fromCurrency.capitalize() + ' : ' + str(round(finalValue, 2)) + ' ' + toCurrency.capitalize()
class Node: def __init__(self, idx, name, shape="box", color="#d6d6d6"): self.idx = idx self.name = name self.shape = shape self.color = color
class Node: def __init__(self, idx, name, shape='box', color='#d6d6d6'): self.idx = idx self.name = name self.shape = shape self.color = color
''' Created on 1.12.2016 @author: Darren '''''' Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function such as sqrt. Example 1: Input: 16 Returns: True Example 2: Input: 14 Returns: False Credits:Special thanks to @elmirap for adding this problem and creating all test cases." '''
""" Created on 1.12.2016 @author: Darren Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function such as sqrt. Example 1: Input: 16 Returns: True Example 2: Input: 14 Returns: False Credits:Special thanks to @elmirap for adding this problem and creating all test cases." """
#!/usr/bin/python # -*- coding: utf-8 -*- DEBUG = True SECRET_KEY = 'development key' WEB_HOST = '0.0.0.0' WEB_PORT = 8888 REDIS_HOST = 'localhost' REDIS_PORT = 7778 REDIS_PASS = 'r3'
debug = True secret_key = 'development key' web_host = '0.0.0.0' web_port = 8888 redis_host = 'localhost' redis_port = 7778 redis_pass = 'r3'
m,n=map(int,input().split()) ip=[] for i in range(m): ip.append(list(map(int,input().split()))) ''' Traverse the rows once keeping track of all the rows and columns which should finally be set to 0. ''' rows=[0 for i in range(m)] columns=[0 for i in range(n)] for i in range(m): for j in range(n): if ip[i][j]==0: rows[i]=1 columns[j]=1 for i in range(m): if rows[i]==1: for j in range(n): ip[i][j]=0 for i in range(n): if columns[i]==1: for j in range(m): ip[j][i]=0 print(ip)
(m, n) = map(int, input().split()) ip = [] for i in range(m): ip.append(list(map(int, input().split()))) '\nTraverse the rows once keeping track of all the rows\nand columns which should finally be set to 0.\n' rows = [0 for i in range(m)] columns = [0 for i in range(n)] for i in range(m): for j in range(n): if ip[i][j] == 0: rows[i] = 1 columns[j] = 1 for i in range(m): if rows[i] == 1: for j in range(n): ip[i][j] = 0 for i in range(n): if columns[i] == 1: for j in range(m): ip[j][i] = 0 print(ip)
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ### CONTROLS (non-tunable) ### # general TYPE_OF_RUN = evaluate # train, test, test_episodes, evaluate LOAD_MODEL_FROM = mlruns/0/eb021674da6d4662b5e360703c518476/artifacts/agent/data/model.pth SAVE_MODELS_TO = None # worker.py ENV = BattleshipEnv ENV_RANDOM_SEED = 2 # Use an integer for deterministic training. AGENT_RANDOM_SEED = 1 REPORTING_INTERVAL = 1000 TOTAL_STEPS = 100_000 ANNEAL_LR = False NUM_EPISODES_TO_TEST = 5 # A3cAgent AGENT_NET = APPROXBAYES_Network # Environment HELDOUT_TESTING = 1 # A3cAgent A3C_T_MAX = 4 LEARNING_RATE = 7e-4 DISCOUNT_FACTOR = 0.9 GRADIENT_CLIP = 0.5 VALUE_TERM_STRENGTH = 0.5 ENTROPY_TERM_STRENGTH = 0.006 ADAM_EPS = 1e-08 REWARD_SCALE = 2.0 WEIGHT_DECAY = 0. # RNNs NUM_RNN_UNITS = 64 GRU_NUM_SHARED_LAYERS = 1 NUM_ITERATION_LAYERS = 2 OBS_EMBED_SIZE = 0
type_of_run = evaluate load_model_from = mlruns / 0 / eb021674da6d4662b5e360703c518476 / artifacts / agent / data / model.pth save_models_to = None env = BattleshipEnv env_random_seed = 2 agent_random_seed = 1 reporting_interval = 1000 total_steps = 100000 anneal_lr = False num_episodes_to_test = 5 agent_net = APPROXBAYES_Network heldout_testing = 1 a3_c_t_max = 4 learning_rate = 0.0007 discount_factor = 0.9 gradient_clip = 0.5 value_term_strength = 0.5 entropy_term_strength = 0.006 adam_eps = 1e-08 reward_scale = 2.0 weight_decay = 0.0 num_rnn_units = 64 gru_num_shared_layers = 1 num_iteration_layers = 2 obs_embed_size = 0
''' This is the Entities module assigning unique features to an entity ''' class Entity: entity = None def id(self): pass def toString(self): line = '' for i in self.entity: line += str(self.entity[i]) + ', ' return line[:-2] + '\n' ''' user resource entity: user profile + id + can update the balance ''' class UserResourcesEntity(Entity): def __init__(self, line=None): if line: record = line.split(', ') self.entity = { 'user_email': record[0], 'user_name': record[1], 'user_password': record[2], 'balance': int(record[3]), } else: self.entity = {} def id(self): return self.entity['user_name'] def updatebalance(self, balance): self.entity['balance'] = balance ''' ticket resource entity: ticket information + id + can update the quantity ''' class TicketResourcesEntity(Entity): def __init__(self, line=None): if line: record = line.split(', ') self.entity = { 'ticket_name': record[0], 'ticket_price': int(record[1]), 'quantity': int(record[2]), 'user_email': record[3], 'date': record[4], } else: self.entity = {} def id(self): return self.entity['ticket_name'] def updateQuantity(self, quantity): self.entity['quantity'] = quantity ''' user transaction entity: a user transaction ''' class UserTransactionsEntity(Entity): def __init__(self, line=None): record = line.split(', ') self.entity = { 'transaction_name': record[0], 'user_name': record[1], 'user_email': record[2], 'user_password': record[3], 'balance': int(record[4]), } ''' ticket transaction entity: a ticket transaction ''' class TicketTransactionsEntity(Entity): def __init__(self, line=None): record = line.split(', ') self.entity = { 'transaction_name': record[0], 'user_name': record[1], 'ticket_name': record[2], 'ticket_price': int(record[3]), 'quantity': int(record[4]), 'date': int(record[5]), }
""" This is the Entities module assigning unique features to an entity """ class Entity: entity = None def id(self): pass def to_string(self): line = '' for i in self.entity: line += str(self.entity[i]) + ', ' return line[:-2] + '\n' '\nuser resource entity: user profile + id + can update the balance\n' class Userresourcesentity(Entity): def __init__(self, line=None): if line: record = line.split(', ') self.entity = {'user_email': record[0], 'user_name': record[1], 'user_password': record[2], 'balance': int(record[3])} else: self.entity = {} def id(self): return self.entity['user_name'] def updatebalance(self, balance): self.entity['balance'] = balance '\nticket resource entity: ticket information + id + can update the quantity\n' class Ticketresourcesentity(Entity): def __init__(self, line=None): if line: record = line.split(', ') self.entity = {'ticket_name': record[0], 'ticket_price': int(record[1]), 'quantity': int(record[2]), 'user_email': record[3], 'date': record[4]} else: self.entity = {} def id(self): return self.entity['ticket_name'] def update_quantity(self, quantity): self.entity['quantity'] = quantity '\nuser transaction entity: a user transaction\n' class Usertransactionsentity(Entity): def __init__(self, line=None): record = line.split(', ') self.entity = {'transaction_name': record[0], 'user_name': record[1], 'user_email': record[2], 'user_password': record[3], 'balance': int(record[4])} '\nticket transaction entity: a ticket transaction\n' class Tickettransactionsentity(Entity): def __init__(self, line=None): record = line.split(', ') self.entity = {'transaction_name': record[0], 'user_name': record[1], 'ticket_name': record[2], 'ticket_price': int(record[3]), 'quantity': int(record[4]), 'date': int(record[5])}
{ "targets": [ { "target_name": "node-dotnet-bridge", "sources": [ "addon.cpp", "Proxy.cpp", "AsyncContext.cpp" ], "include_dirs": [ "<!(node -e \"require('nan')\")" ], "cflags": ["-Wall", "-std=c++14"], "conditions": [ ['OS=="win"', { 'defines': ['WINDOWS'] } ], ['OS=="linux"', { 'defines': ['LINUX'] } ] ] } ] }
{'targets': [{'target_name': 'node-dotnet-bridge', 'sources': ['addon.cpp', 'Proxy.cpp', 'AsyncContext.cpp'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'cflags': ['-Wall', '-std=c++14'], 'conditions': [['OS=="win"', {'defines': ['WINDOWS']}], ['OS=="linux"', {'defines': ['LINUX']}]]}]}
BINARY_FNAME_TEMPLATE = "{version}-{platform}-{architecture}" ARCHIVE_FNAME_TEMPLATE = BINARY_FNAME_TEMPLATE + ".{ext}" CLOUD_STORAGE_URL = "http://cloud.raiden.network/"
binary_fname_template = '{version}-{platform}-{architecture}' archive_fname_template = BINARY_FNAME_TEMPLATE + '.{ext}' cloud_storage_url = 'http://cloud.raiden.network/'
# automatically generated by the FlatBuffers compiler, do not modify # namespace: proto class ResultType(object): Success = 0 Failed = 1
class Resulttype(object): success = 0 failed = 1
class Solution: def countStrings(self,n): a = 1 b = 1 for _ in range(n) : c = (a + b) % 1000000007 a, b = b, c return b # Driver code if __name__ == "__main__": tc=int(input()) while tc > 0: n=int(input()) ob = Solution() ans = ob.countStrings( n) print(ans) tc=tc-1
class Solution: def count_strings(self, n): a = 1 b = 1 for _ in range(n): c = (a + b) % 1000000007 (a, b) = (b, c) return b if __name__ == '__main__': tc = int(input()) while tc > 0: n = int(input()) ob = solution() ans = ob.countStrings(n) print(ans) tc = tc - 1
# HOMETASK 1 - UPPER AND LOWER CASES print("# HOMETASK 1 - UPPER AND LOWER CASES") p_phylosophy = "Beautiful is better than ugly \ Explicit is better than implicit \ Simple is better than complex \ Complex is better than complicated \ Readability counts" # Printing in upper cases print (p_phylosophy.upper()) p_phylosophy_upper = (p_phylosophy.upper()) print(p_phylosophy_upper.isupper()) # Printing in lower cases print (p_phylosophy.lower()) p_phylosophy_lower = (p_phylosophy.lower()) print(p_phylosophy_lower.islower()) # HOMETASK 2 - PLAYING WITH NUMBERS print("# HOMETASK 2 - PLAYING WITH NUMBERS") # Task A - Multiplication four_digit_number = int(input("Insert the 4-digit number: ")) var_n = str(four_digit_number) digit_1 = int(var_n[0]) digit_2 = int(var_n[1]) digit_3 = int(var_n[2]) digit_4 = int(var_n[3]) var_calc = digit_1 * digit_2 * digit_3 * digit_4 print("The multiplication of numbers you've entered is " +str(var_calc)) # Task B - Reversing rev_string = var_n[::-1] print("The reversed number you've typed is " + str(rev_string))
print('# HOMETASK 1 - UPPER AND LOWER CASES') p_phylosophy = 'Beautiful is better than ugly Explicit is better than implicit Simple is better than complex Complex is better than complicated Readability counts' print(p_phylosophy.upper()) p_phylosophy_upper = p_phylosophy.upper() print(p_phylosophy_upper.isupper()) print(p_phylosophy.lower()) p_phylosophy_lower = p_phylosophy.lower() print(p_phylosophy_lower.islower()) print('# HOMETASK 2 - PLAYING WITH NUMBERS') four_digit_number = int(input('Insert the 4-digit number: ')) var_n = str(four_digit_number) digit_1 = int(var_n[0]) digit_2 = int(var_n[1]) digit_3 = int(var_n[2]) digit_4 = int(var_n[3]) var_calc = digit_1 * digit_2 * digit_3 * digit_4 print("The multiplication of numbers you've entered is " + str(var_calc)) rev_string = var_n[::-1] print("The reversed number you've typed is " + str(rev_string))
#!/usr/bin/env python # AUTO GENERATED FILE - PLEASE CHECK gen.py! # Instructions = [{'code': 0, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '00', 'instruction': 'NOP', 'name': 'NOP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'NOP'}}, {'code': 1, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '01', 'instruction': 'LD BC, d16', 'name': 'LDBCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['B', 'C'], 'name': 'LD__nn'}}, {'code': 2, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '02', 'instruction': 'LD [BC], A', 'name': 'LDBCmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C', 'A'], 'name': 'LD__m_'}}, {'code': 3, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '03', 'instruction': 'INC BC', 'name': 'INCBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'INC'}}, {'code': 4, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '04', 'instruction': 'INC B', 'name': 'INCr_b', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'INCr'}}, {'code': 5, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '05', 'instruction': 'DEC B', 'name': 'DECr_b', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'DECr'}}, {'code': 6, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '06', 'instruction': 'LD B, d8', 'name': 'LDrn_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['B'], 'name': 'LDrn_'}}, {'code': 7, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '07', 'instruction': 'RLCA', 'name': 'RLCA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RLCA'}}, {'code': 8, 'cycles': 20, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '08', 'instruction': 'LD [a16], SP', 'name': 'LDmmSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'LDmmSP'}}, {'code': 9, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '09', 'instruction': 'ADD HL, BC', 'name': 'ADDHLBC', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'ADDHL'}}, {'code': 10, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0A', 'instruction': 'LD A, [BC]', 'name': 'LDABCm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'B', 'C'], 'name': 'LD___m'}}, {'code': 11, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0B', 'instruction': 'DEC BC', 'name': 'DECBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'DEC'}}, {'code': 12, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '0C', 'instruction': 'INC C', 'name': 'INCr_c', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'INCr'}}, {'code': 13, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '0D', 'instruction': 'DEC C', 'name': 'DECr_c', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'DECr'}}, {'code': 14, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0E', 'instruction': 'LD C, d8', 'name': 'LDrn_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['C'], 'name': 'LDrn_'}}, {'code': 15, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '0F', 'instruction': 'RRCA', 'name': 'RRCA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RRCA'}}, {'code': 16, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '10', 'instruction': 'STOP', 'name': 'STOP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'STOP'}}, {'code': 17, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '11', 'instruction': 'LD DE, d16', 'name': 'LDDEnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['D', 'E'], 'name': 'LD__nn'}}, {'code': 18, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '12', 'instruction': 'LD [DE], A', 'name': 'LDDEmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E', 'A'], 'name': 'LD__m_'}}, {'code': 19, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '13', 'instruction': 'INC DE', 'name': 'INCDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'INC'}}, {'code': 20, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '14', 'instruction': 'INC D', 'name': 'INCr_d', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'INCr'}}, {'code': 21, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '15', 'instruction': 'DEC D', 'name': 'DECr_d', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'DECr'}}, {'code': 22, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '16', 'instruction': 'LD D, d8', 'name': 'LDrn_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['D'], 'name': 'LDrn_'}}, {'code': 23, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '17', 'instruction': 'RLA', 'name': 'RLA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RLA'}}, {'code': 24, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '18', 'instruction': 'JR r8', 'name': 'JRn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRn'}}, {'code': 25, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '19', 'instruction': 'ADD HL, DE', 'name': 'ADDHLDE', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'ADDHL'}}, {'code': 26, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1A', 'instruction': 'LD A, [DE]', 'name': 'LDADEm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'D', 'E'], 'name': 'LD___m'}}, {'code': 27, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1B', 'instruction': 'DEC DE', 'name': 'DECDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'DEC'}}, {'code': 28, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '1C', 'instruction': 'INC E', 'name': 'INCr_e', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'INCr'}}, {'code': 29, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '1D', 'instruction': 'DEC E', 'name': 'DECr_e', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'DECr'}}, {'code': 30, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1E', 'instruction': 'LD E, d8', 'name': 'LDrn_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['E'], 'name': 'LDrn_'}}, {'code': 31, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '1F', 'instruction': 'RRA', 'name': 'RRA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RRA'}}, {'code': 32, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '20', 'instruction': 'JR NZ, r8', 'name': 'JRNZn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRNZn'}}, {'code': 33, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '21', 'instruction': 'LD HL, d16', 'name': 'LDHLnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'LD__nn'}}, {'code': 34, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '22', 'instruction': 'LD [HL+], A', 'name': 'LDHLIA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLIA'}}, {'code': 35, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '23', 'instruction': 'INC HL', 'name': 'INCHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'INC'}}, {'code': 36, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '24', 'instruction': 'INC H', 'name': 'INCr_h', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'INCr'}}, {'code': 37, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '25', 'instruction': 'DEC H', 'name': 'DECr_h', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'DECr'}}, {'code': 38, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '26', 'instruction': 'LD H, d8', 'name': 'LDrn_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['H'], 'name': 'LDrn_'}}, {'code': 39, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': None, 'zero': 'Z'}, 'hexCode': '27', 'instruction': 'DAA', 'name': 'DAA', 'simpleFlags': ['Z', '-', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'DAA'}}, {'code': 40, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '28', 'instruction': 'JR Z, r8', 'name': 'JRZn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRZn'}}, {'code': 41, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '29', 'instruction': 'ADD HL, HL', 'name': 'ADDHLHL', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'ADDHL'}}, {'code': 42, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2A', 'instruction': 'LD A, [HL+]', 'name': 'LDAHLI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAHLI'}}, {'code': 43, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2B', 'instruction': 'DEC HL', 'name': 'DECHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'DEC'}}, {'code': 44, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '2C', 'instruction': 'INC L', 'name': 'INCr_l', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'INCr'}}, {'code': 45, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '2D', 'instruction': 'DEC L', 'name': 'DECr_l', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'DECr'}}, {'code': 46, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2E', 'instruction': 'LD L, d8', 'name': 'LDrn_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['L'], 'name': 'LDrn_'}}, {'code': 47, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': True, 'sub': True, 'zero': None}, 'hexCode': '2F', 'instruction': 'CPL', 'name': 'CPL', 'simpleFlags': ['-', '1', '1', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'CPL'}}, {'code': 48, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '30', 'instruction': 'JR NC, r8', 'name': 'JRNCn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRNCn'}}, {'code': 49, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '31', 'instruction': 'LD SP, d16', 'name': 'LDSPnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDSPnn'}}, {'code': 50, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '32', 'instruction': 'LD [HL-], A', 'name': 'LDHLDA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLDA'}}, {'code': 51, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '33', 'instruction': 'INC SP', 'name': 'INCSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'INCSP'}}, {'code': 52, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '34', 'instruction': 'INC [HL]', 'name': 'INCHLm', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'INCHLm'}}, {'code': 53, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '35', 'instruction': 'DEC [HL]', 'name': 'DECHLm', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DECHLm'}}, {'code': 54, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '36', 'instruction': 'LD [HL], d8', 'name': 'LDHLmn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'LDHLmn'}}, {'code': 55, 'cycles': 4, 'flagResult': {'carry': True, 'halfcarry': False, 'sub': False, 'zero': None}, 'hexCode': '37', 'instruction': 'SCF', 'name': 'SCF', 'simpleFlags': ['-', '0', '0', '1'], 'size': '1', 'templateData': {'args': [], 'name': 'SCF'}}, {'code': 56, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '38', 'instruction': 'JR C, r8', 'name': 'JRCn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRCn'}}, {'code': 57, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '39', 'instruction': 'ADD HL, SP', 'name': 'ADDHLSP', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADDHLSP'}}, {'code': 58, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3A', 'instruction': 'LD A, [HL-]', 'name': 'LDAHLD', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAHLD'}}, {'code': 59, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3B', 'instruction': 'DEC SP', 'name': 'DECSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DECSP'}}, {'code': 60, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '3C', 'instruction': 'INC A', 'name': 'INCr_a', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'INCr'}}, {'code': 61, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '3D', 'instruction': 'DEC A', 'name': 'DECr_a', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'DECr'}}, {'code': 62, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3E', 'instruction': 'LD A, d8', 'name': 'LDrn_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['A'], 'name': 'LDrn_'}}, {'code': 63, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': None}, 'hexCode': '3F', 'instruction': 'CCF', 'name': 'CCF', 'simpleFlags': ['-', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'CCF'}}, {'code': 64, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '40', 'instruction': 'LD B, B', 'name': 'LDrr_bb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'B'], 'name': 'LDrr'}}, {'code': 65, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '41', 'instruction': 'LD B, C', 'name': 'LDrr_bc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'LDrr'}}, {'code': 66, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '42', 'instruction': 'LD B, D', 'name': 'LDrr_bd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'D'], 'name': 'LDrr'}}, {'code': 67, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '43', 'instruction': 'LD B, E', 'name': 'LDrr_be', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'E'], 'name': 'LDrr'}}, {'code': 68, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '44', 'instruction': 'LD B, H', 'name': 'LDrr_bh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'H'], 'name': 'LDrr'}}, {'code': 69, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '45', 'instruction': 'LD B, L', 'name': 'LDrr_bl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'L'], 'name': 'LDrr'}}, {'code': 70, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '46', 'instruction': 'LD B, [HL]', 'name': 'LDrHLm_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'LDrHLm_'}}, {'code': 71, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '47', 'instruction': 'LD B, A', 'name': 'LDrr_ba', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'A'], 'name': 'LDrr'}}, {'code': 72, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '48', 'instruction': 'LD C, B', 'name': 'LDrr_cb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'B'], 'name': 'LDrr'}}, {'code': 73, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '49', 'instruction': 'LD C, C', 'name': 'LDrr_cc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'C'], 'name': 'LDrr'}}, {'code': 74, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4A', 'instruction': 'LD C, D', 'name': 'LDrr_cd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'D'], 'name': 'LDrr'}}, {'code': 75, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4B', 'instruction': 'LD C, E', 'name': 'LDrr_ce', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'E'], 'name': 'LDrr'}}, {'code': 76, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4C', 'instruction': 'LD C, H', 'name': 'LDrr_ch', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'H'], 'name': 'LDrr'}}, {'code': 77, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4D', 'instruction': 'LD C, L', 'name': 'LDrr_cl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'L'], 'name': 'LDrr'}}, {'code': 78, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4E', 'instruction': 'LD C, [HL]', 'name': 'LDrHLm_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'LDrHLm_'}}, {'code': 79, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4F', 'instruction': 'LD C, A', 'name': 'LDrr_ca', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'A'], 'name': 'LDrr'}}, {'code': 80, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '50', 'instruction': 'LD D, B', 'name': 'LDrr_db', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'B'], 'name': 'LDrr'}}, {'code': 81, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '51', 'instruction': 'LD D, C', 'name': 'LDrr_dc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'C'], 'name': 'LDrr'}}, {'code': 82, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '52', 'instruction': 'LD D, D', 'name': 'LDrr_dd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'D'], 'name': 'LDrr'}}, {'code': 83, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '53', 'instruction': 'LD D, E', 'name': 'LDrr_de', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'LDrr'}}, {'code': 84, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '54', 'instruction': 'LD D, H', 'name': 'LDrr_dh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'H'], 'name': 'LDrr'}}, {'code': 85, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '55', 'instruction': 'LD D, L', 'name': 'LDrr_dl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'L'], 'name': 'LDrr'}}, {'code': 86, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '56', 'instruction': 'LD D, [HL]', 'name': 'LDrHLm_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'LDrHLm_'}}, {'code': 87, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '57', 'instruction': 'LD D, A', 'name': 'LDrr_da', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'A'], 'name': 'LDrr'}}, {'code': 88, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '58', 'instruction': 'LD E, B', 'name': 'LDrr_eb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'B'], 'name': 'LDrr'}}, {'code': 89, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '59', 'instruction': 'LD E, C', 'name': 'LDrr_ec', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'C'], 'name': 'LDrr'}}, {'code': 90, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5A', 'instruction': 'LD E, D', 'name': 'LDrr_ed', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'D'], 'name': 'LDrr'}}, {'code': 91, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5B', 'instruction': 'LD E, E', 'name': 'LDrr_ee', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'E'], 'name': 'LDrr'}}, {'code': 92, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5C', 'instruction': 'LD E, H', 'name': 'LDrr_eh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'H'], 'name': 'LDrr'}}, {'code': 93, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5D', 'instruction': 'LD E, L', 'name': 'LDrr_el', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'L'], 'name': 'LDrr'}}, {'code': 94, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5E', 'instruction': 'LD E, [HL]', 'name': 'LDrHLm_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'LDrHLm_'}}, {'code': 95, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5F', 'instruction': 'LD E, A', 'name': 'LDrr_ea', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'A'], 'name': 'LDrr'}}, {'code': 96, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '60', 'instruction': 'LD H, B', 'name': 'LDrr_hb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'B'], 'name': 'LDrr'}}, {'code': 97, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '61', 'instruction': 'LD H, C', 'name': 'LDrr_hc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'C'], 'name': 'LDrr'}}, {'code': 98, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '62', 'instruction': 'LD H, D', 'name': 'LDrr_hd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'D'], 'name': 'LDrr'}}, {'code': 99, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '63', 'instruction': 'LD H, E', 'name': 'LDrr_he', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'E'], 'name': 'LDrr'}}, {'code': 100, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '64', 'instruction': 'LD H, H', 'name': 'LDrr_hh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'H'], 'name': 'LDrr'}}, {'code': 101, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '65', 'instruction': 'LD H, L', 'name': 'LDrr_hl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'LDrr'}}, {'code': 102, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '66', 'instruction': 'LD H, [HL]', 'name': 'LDrHLm_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'LDrHLm_'}}, {'code': 103, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '67', 'instruction': 'LD H, A', 'name': 'LDrr_ha', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'A'], 'name': 'LDrr'}}, {'code': 104, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '68', 'instruction': 'LD L, B', 'name': 'LDrr_lb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'B'], 'name': 'LDrr'}}, {'code': 105, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '69', 'instruction': 'LD L, C', 'name': 'LDrr_lc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'C'], 'name': 'LDrr'}}, {'code': 106, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6A', 'instruction': 'LD L, D', 'name': 'LDrr_ld', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'D'], 'name': 'LDrr'}}, {'code': 107, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6B', 'instruction': 'LD L, E', 'name': 'LDrr_le', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'E'], 'name': 'LDrr'}}, {'code': 108, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6C', 'instruction': 'LD L, H', 'name': 'LDrr_lh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'H'], 'name': 'LDrr'}}, {'code': 109, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6D', 'instruction': 'LD L, L', 'name': 'LDrr_ll', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'L'], 'name': 'LDrr'}}, {'code': 110, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6E', 'instruction': 'LD L, [HL]', 'name': 'LDrHLm_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'LDrHLm_'}}, {'code': 111, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6F', 'instruction': 'LD L, A', 'name': 'LDrr_la', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'A'], 'name': 'LDrr'}}, {'code': 112, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '70', 'instruction': 'LD [HL], B', 'name': 'LDHLmr_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'LDHLmr_'}}, {'code': 113, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '71', 'instruction': 'LD [HL], C', 'name': 'LDHLmr_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'LDHLmr_'}}, {'code': 114, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '72', 'instruction': 'LD [HL], D', 'name': 'LDHLmr_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'LDHLmr_'}}, {'code': 115, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '73', 'instruction': 'LD [HL], E', 'name': 'LDHLmr_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'LDHLmr_'}}, {'code': 116, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '74', 'instruction': 'LD [HL], H', 'name': 'LDHLmr_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'LDHLmr_'}}, {'code': 117, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '75', 'instruction': 'LD [HL], L', 'name': 'LDHLmr_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'LDHLmr_'}}, {'code': 118, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '76', 'instruction': 'HALT', 'name': 'HALT', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'HALT'}}, {'code': 119, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '77', 'instruction': 'LD [HL], A', 'name': 'LDHLmr_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'LDHLmr_'}}, {'code': 120, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '78', 'instruction': 'LD A, B', 'name': 'LDrr_ab', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'B'], 'name': 'LDrr'}}, {'code': 121, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '79', 'instruction': 'LD A, C', 'name': 'LDrr_ac', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'C'], 'name': 'LDrr'}}, {'code': 122, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7A', 'instruction': 'LD A, D', 'name': 'LDrr_ad', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'D'], 'name': 'LDrr'}}, {'code': 123, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7B', 'instruction': 'LD A, E', 'name': 'LDrr_ae', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'E'], 'name': 'LDrr'}}, {'code': 124, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7C', 'instruction': 'LD A, H', 'name': 'LDrr_ah', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'H'], 'name': 'LDrr'}}, {'code': 125, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7D', 'instruction': 'LD A, L', 'name': 'LDrr_al', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'L'], 'name': 'LDrr'}}, {'code': 126, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7E', 'instruction': 'LD A, [HL]', 'name': 'LDrHLm_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'LDrHLm_'}}, {'code': 127, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7F', 'instruction': 'LD A, A', 'name': 'LDrr_aa', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'A'], 'name': 'LDrr'}}, {'code': 128, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '80', 'instruction': 'ADD A, B', 'name': 'ADDr_b', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ADDr'}}, {'code': 129, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '81', 'instruction': 'ADD A, C', 'name': 'ADDr_c', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ADDr'}}, {'code': 130, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '82', 'instruction': 'ADD A, D', 'name': 'ADDr_d', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ADDr'}}, {'code': 131, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '83', 'instruction': 'ADD A, E', 'name': 'ADDr_e', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ADDr'}}, {'code': 132, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '84', 'instruction': 'ADD A, H', 'name': 'ADDr_h', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ADDr'}}, {'code': 133, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '85', 'instruction': 'ADD A, L', 'name': 'ADDr_l', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ADDr'}}, {'code': 134, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '86', 'instruction': 'ADD A, [HL]', 'name': 'ADDHL', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADDHL'}}, {'code': 135, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '87', 'instruction': 'ADD A, A', 'name': 'ADDr_a', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ADDr'}}, {'code': 136, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '88', 'instruction': 'ADC A, B', 'name': 'ADCr_b', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ADCr'}}, {'code': 137, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '89', 'instruction': 'ADC A, C', 'name': 'ADCr_c', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ADCr'}}, {'code': 138, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8A', 'instruction': 'ADC A, D', 'name': 'ADCr_d', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ADCr'}}, {'code': 139, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8B', 'instruction': 'ADC A, E', 'name': 'ADCr_e', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ADCr'}}, {'code': 140, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8C', 'instruction': 'ADC A, H', 'name': 'ADCr_h', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ADCr'}}, {'code': 141, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8D', 'instruction': 'ADC A, L', 'name': 'ADCr_l', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ADCr'}}, {'code': 142, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8E', 'instruction': 'ADC A, [HL]', 'name': 'ADCHL', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADCHL'}}, {'code': 143, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8F', 'instruction': 'ADC A, A', 'name': 'ADCr_a', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ADCr'}}, {'code': 144, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '90', 'instruction': 'SUB A, B', 'name': 'SUBr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'SUBr'}}, {'code': 145, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '91', 'instruction': 'SUB A, C', 'name': 'SUBr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'SUBr'}}, {'code': 146, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '92', 'instruction': 'SUB A, D', 'name': 'SUBr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'SUBr'}}, {'code': 147, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '93', 'instruction': 'SUB A, E', 'name': 'SUBr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'SUBr'}}, {'code': 148, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '94', 'instruction': 'SUB A, H', 'name': 'SUBr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'SUBr'}}, {'code': 149, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '95', 'instruction': 'SUB A, L', 'name': 'SUBr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'SUBr'}}, {'code': 150, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '96', 'instruction': 'SUB A, [HL]', 'name': 'SUBHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'SUBHL'}}, {'code': 151, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '97', 'instruction': 'SUB A, A', 'name': 'SUBr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'SUBr'}}, {'code': 152, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '98', 'instruction': 'SBC A, B', 'name': 'SBCr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'SBCr'}}, {'code': 153, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '99', 'instruction': 'SBC A, C', 'name': 'SBCr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'SBCr'}}, {'code': 154, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9A', 'instruction': 'SBC A, D', 'name': 'SBCr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'SBCr'}}, {'code': 155, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9B', 'instruction': 'SBC A, E', 'name': 'SBCr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'SBCr'}}, {'code': 156, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9C', 'instruction': 'SBC A, H', 'name': 'SBCr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'SBCr'}}, {'code': 157, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9D', 'instruction': 'SBC A, L', 'name': 'SBCr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'SBCr'}}, {'code': 158, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9E', 'instruction': 'SBC A, [HL]', 'name': 'SBCHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'SBCHL'}}, {'code': 159, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9F', 'instruction': 'SBC A, A', 'name': 'SBCr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'SBCr'}}, {'code': 160, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A0', 'instruction': 'AND A, B', 'name': 'ANDr_b', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ANDr'}}, {'code': 161, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A1', 'instruction': 'AND A, C', 'name': 'ANDr_c', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ANDr'}}, {'code': 162, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A2', 'instruction': 'AND A, D', 'name': 'ANDr_d', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ANDr'}}, {'code': 163, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A3', 'instruction': 'AND A, E', 'name': 'ANDr_e', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ANDr'}}, {'code': 164, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A4', 'instruction': 'AND A, H', 'name': 'ANDr_h', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ANDr'}}, {'code': 165, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A5', 'instruction': 'AND A, L', 'name': 'ANDr_l', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ANDr'}}, {'code': 166, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A6', 'instruction': 'AND A, [HL]', 'name': 'ANDHL', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'ANDHL'}}, {'code': 167, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A7', 'instruction': 'AND A, A', 'name': 'ANDr_a', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ANDr'}}, {'code': 168, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A8', 'instruction': 'XOR A, B', 'name': 'XORr_b', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'XORr'}}, {'code': 169, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A9', 'instruction': 'XOR A, C', 'name': 'XORr_c', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'XORr'}}, {'code': 170, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AA', 'instruction': 'XOR A, D', 'name': 'XORr_d', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'XORr'}}, {'code': 171, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AB', 'instruction': 'XOR A, E', 'name': 'XORr_e', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'XORr'}}, {'code': 172, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AC', 'instruction': 'XOR A, H', 'name': 'XORr_h', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'XORr'}}, {'code': 173, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AD', 'instruction': 'XOR A, L', 'name': 'XORr_l', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'XORr'}}, {'code': 174, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AE', 'instruction': 'XOR A, [HL]', 'name': 'XORHL', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'XORHL'}}, {'code': 175, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AF', 'instruction': 'XOR A, A', 'name': 'XORr_a', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'XORr'}}, {'code': 176, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B0', 'instruction': 'OR A, B', 'name': 'ORr_b', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ORr'}}, {'code': 177, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B1', 'instruction': 'OR A, C', 'name': 'ORr_c', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ORr'}}, {'code': 178, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B2', 'instruction': 'OR A, D', 'name': 'ORr_d', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ORr'}}, {'code': 179, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B3', 'instruction': 'OR A, E', 'name': 'ORr_e', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ORr'}}, {'code': 180, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B4', 'instruction': 'OR A, H', 'name': 'ORr_h', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ORr'}}, {'code': 181, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B5', 'instruction': 'OR A, L', 'name': 'ORr_l', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ORr'}}, {'code': 182, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B6', 'instruction': 'OR A, [HL]', 'name': 'ORHL', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'ORHL'}}, {'code': 183, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B7', 'instruction': 'OR A, A', 'name': 'ORr_a', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ORr'}}, {'code': 184, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'B8', 'instruction': 'CP A, B', 'name': 'CPr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'CPr'}}, {'code': 185, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'B9', 'instruction': 'CP A, C', 'name': 'CPr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'CPr'}}, {'code': 186, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BA', 'instruction': 'CP A, D', 'name': 'CPr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'CPr'}}, {'code': 187, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BB', 'instruction': 'CP A, E', 'name': 'CPr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'CPr'}}, {'code': 188, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BC', 'instruction': 'CP A, H', 'name': 'CPr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'CPr'}}, {'code': 189, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BD', 'instruction': 'CP A, L', 'name': 'CPr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'CPr'}}, {'code': 190, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BE', 'instruction': 'CP A, [HL]', 'name': 'CPHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'CPHL'}}, {'code': 191, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BF', 'instruction': 'CP A, A', 'name': 'CPr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'CPr'}}, {'code': 192, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C0', 'instruction': 'RET NZ', 'name': 'RETNZ', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETNZ'}}, {'code': 193, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C1', 'instruction': 'POP BC', 'name': 'POPBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'POP'}}, {'code': 194, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C2', 'instruction': 'JP NZ, a16', 'name': 'JPNZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPNZnn'}}, {'code': 195, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C3', 'instruction': 'JP a16', 'name': 'JPnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPnn'}}, {'code': 196, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C4', 'instruction': 'CALL NZ, a16', 'name': 'CALLNZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLNZnn'}}, {'code': 197, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C5', 'instruction': 'PUSH BC', 'name': 'PUSHBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'PUSH'}}, {'code': 198, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': 'C6', 'instruction': 'ADD A, d8', 'name': 'ADDn', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADDn'}}, {'code': 199, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C7', 'instruction': 'RST 00H', 'name': 'RST00', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x00'], 'name': 'RSTXX'}}, {'code': 200, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C8', 'instruction': 'RET Z', 'name': 'RETZ', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETZ'}}, {'code': 201, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C9', 'instruction': 'RET', 'name': 'RET', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RET'}}, {'code': 202, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CA', 'instruction': 'JP Z, a16', 'name': 'JPZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPZnn'}}, {'code': 203, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CB', 'instruction': 'PREFIX CB', 'name': 'MAPcb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'CBCall'}}, {'code': 204, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CC', 'instruction': 'CALL Z, a16', 'name': 'CALLZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLZnn'}}, {'code': 205, 'cycles': 24, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CD', 'instruction': 'CALL a16', 'name': 'CALLnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLnn'}}, {'code': 206, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': 'CE', 'instruction': 'ADC A, d8', 'name': 'ADCn', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADCn'}}, {'code': 207, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CF', 'instruction': 'RST 08H', 'name': 'RST08', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x08'], 'name': 'RSTXX'}}, {'code': 208, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D0', 'instruction': 'RET NC', 'name': 'RETNC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETNC'}}, {'code': 209, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D1', 'instruction': 'POP DE', 'name': 'POPDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'POP'}}, {'code': 210, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D2', 'instruction': 'JP NC, a16', 'name': 'JPNCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPNCnn'}}, {'code': 211, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D3', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xD3'], 'name': 'NOPWARN'}}, {'code': 212, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D4', 'instruction': 'CALL NC, a16', 'name': 'CALLNCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLNCnn'}}, {'code': 213, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D5', 'instruction': 'PUSH DE', 'name': 'PUSHDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'PUSH'}}, {'code': 214, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'D6', 'instruction': 'SUB A, d8', 'name': 'SUBn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'SUBn'}}, {'code': 215, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D7', 'instruction': 'RST 10H', 'name': 'RST10', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x10'], 'name': 'RSTXX'}}, {'code': 216, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D8', 'instruction': 'RET C', 'name': 'RETC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETC'}}, {'code': 217, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D9', 'instruction': 'RETI', 'name': 'RETI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETI'}}, {'code': 218, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DA', 'instruction': 'JP C, a16', 'name': 'JPCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPCnn'}}, {'code': 219, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DB', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xDB'], 'name': 'NOPWARN'}}, {'code': 220, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DC', 'instruction': 'CALL C, a16', 'name': 'CALLCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLCnn'}}, {'code': 221, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DD', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xDD'], 'name': 'NOPWARN'}}, {'code': 222, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'DE', 'instruction': 'SBC A, d8', 'name': 'SBCn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'SBCn'}}, {'code': 223, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DF', 'instruction': 'RST 18H', 'name': 'RST18', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x18'], 'name': 'RSTXX'}}, {'code': 224, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E0', 'instruction': 'LD [$FF00 + a8], A', 'name': 'LDIOnA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDIOnA'}}, {'code': 225, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E1', 'instruction': 'POP HL', 'name': 'POPHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'POP'}}, {'code': 226, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E2', 'instruction': 'LD [$FF00 + C], A', 'name': 'LDIOCA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDIOCA'}}, {'code': 227, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E3', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xE3'], 'name': 'NOPWARN'}}, {'code': 228, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E4', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xE4'], 'name': 'NOPWARN'}}, {'code': 229, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E5', 'instruction': 'PUSH HL', 'name': 'PUSHHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'PUSH'}}, {'code': 230, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'E6', 'instruction': 'AND A, d8', 'name': 'ANDn', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'ANDn'}}, {'code': 231, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E7', 'instruction': 'RST 20H', 'name': 'RST20', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x20'], 'name': 'RSTXX'}}, {'code': 232, 'cycles': 16, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': False}, 'hexCode': 'E8', 'instruction': 'ADD SP, r8', 'name': 'ADDSPn', 'simpleFlags': ['0', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADDSPn'}}, {'code': 233, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E9', 'instruction': 'JP [HL]', 'name': 'JPHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'JPHL'}}, {'code': 234, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EA', 'instruction': 'LD [a16], A', 'name': 'LDmmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['A'], 'name': 'LDmm_'}}, {'code': 235, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EB', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xEB'], 'name': 'NOPWARN'}}, {'code': 236, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EC', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xEC'], 'name': 'NOPWARN'}}, {'code': 237, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'ED', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xED'], 'name': 'NOPWARN'}}, {'code': 238, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'EE', 'instruction': 'XOR A, d8', 'name': 'XORn', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'XORn'}}, {'code': 239, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EF', 'instruction': 'RST 28H', 'name': 'RST28', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x28'], 'name': 'RSTXX'}}, {'code': 240, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F0', 'instruction': 'LD A, [$FF00 + a8]', 'name': 'LDAIOn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAIOn'}}, {'code': 241, 'cycles': 12, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': 'N', 'zero': 'Z'}, 'hexCode': 'F1', 'instruction': 'POP AF', 'name': 'POPAF', 'simpleFlags': ['Z', 'N', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A', 'F'], 'name': 'POP'}}, {'code': 242, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F2', 'instruction': 'LD A, [$FF00 + C]', 'name': 'LDAIOC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAIOC'}}, {'code': 243, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F3', 'instruction': 'DI', 'name': 'DI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DI'}}, {'code': 244, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F4', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xF4'], 'name': 'NOPWARN'}}, {'code': 245, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F5', 'instruction': 'PUSH AF', 'name': 'PUSHAF', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'F'], 'name': 'PUSH'}}, {'code': 246, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'F6', 'instruction': 'OR A, d8', 'name': 'ORn', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'ORn'}}, {'code': 247, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F7', 'instruction': 'RST 30H', 'name': 'RST30', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x30'], 'name': 'RSTXX'}}, {'code': 248, 'cycles': 12, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': False}, 'hexCode': 'F8', 'instruction': 'LD HL, SP + r8', 'name': 'LDHLSPn', 'simpleFlags': ['0', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'LDHLSPn'}}, {'code': 249, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F9', 'instruction': 'LD HL, SP', 'name': 'LDSPHLr', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLSPr'}}, {'code': 250, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FA', 'instruction': 'LD A, [a16]', 'name': 'LDAmm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['A'], 'name': 'LD_mm'}}, {'code': 251, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FB', 'instruction': 'EI', 'name': 'EI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'EI'}}, {'code': 252, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FC', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xFC'], 'name': 'NOPWARN'}}, {'code': 253, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FD', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xFD'], 'name': 'NOPWARN'}}, {'code': 254, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'FE', 'instruction': 'CP A, d8', 'name': 'CPn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'CPn'}}, {'code': 255, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FF', 'instruction': 'RST 38H', 'name': 'RST38', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x38'], 'name': 'RSTXX'}}]
instructions = [{'code': 0, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '00', 'instruction': 'NOP', 'name': 'NOP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'NOP'}}, {'code': 1, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '01', 'instruction': 'LD BC, d16', 'name': 'LDBCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['B', 'C'], 'name': 'LD__nn'}}, {'code': 2, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '02', 'instruction': 'LD [BC], A', 'name': 'LDBCmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C', 'A'], 'name': 'LD__m_'}}, {'code': 3, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '03', 'instruction': 'INC BC', 'name': 'INCBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'INC'}}, {'code': 4, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '04', 'instruction': 'INC B', 'name': 'INCr_b', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'INCr'}}, {'code': 5, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '05', 'instruction': 'DEC B', 'name': 'DECr_b', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'DECr'}}, {'code': 6, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '06', 'instruction': 'LD B, d8', 'name': 'LDrn_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['B'], 'name': 'LDrn_'}}, {'code': 7, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '07', 'instruction': 'RLCA', 'name': 'RLCA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RLCA'}}, {'code': 8, 'cycles': 20, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '08', 'instruction': 'LD [a16], SP', 'name': 'LDmmSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'LDmmSP'}}, {'code': 9, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '09', 'instruction': 'ADD HL, BC', 'name': 'ADDHLBC', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'ADDHL'}}, {'code': 10, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0A', 'instruction': 'LD A, [BC]', 'name': 'LDABCm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'B', 'C'], 'name': 'LD___m'}}, {'code': 11, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0B', 'instruction': 'DEC BC', 'name': 'DECBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'DEC'}}, {'code': 12, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '0C', 'instruction': 'INC C', 'name': 'INCr_c', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'INCr'}}, {'code': 13, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '0D', 'instruction': 'DEC C', 'name': 'DECr_c', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'DECr'}}, {'code': 14, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '0E', 'instruction': 'LD C, d8', 'name': 'LDrn_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['C'], 'name': 'LDrn_'}}, {'code': 15, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '0F', 'instruction': 'RRCA', 'name': 'RRCA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RRCA'}}, {'code': 16, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '10', 'instruction': 'STOP', 'name': 'STOP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'STOP'}}, {'code': 17, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '11', 'instruction': 'LD DE, d16', 'name': 'LDDEnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['D', 'E'], 'name': 'LD__nn'}}, {'code': 18, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '12', 'instruction': 'LD [DE], A', 'name': 'LDDEmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E', 'A'], 'name': 'LD__m_'}}, {'code': 19, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '13', 'instruction': 'INC DE', 'name': 'INCDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'INC'}}, {'code': 20, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '14', 'instruction': 'INC D', 'name': 'INCr_d', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'INCr'}}, {'code': 21, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '15', 'instruction': 'DEC D', 'name': 'DECr_d', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'DECr'}}, {'code': 22, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '16', 'instruction': 'LD D, d8', 'name': 'LDrn_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['D'], 'name': 'LDrn_'}}, {'code': 23, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '17', 'instruction': 'RLA', 'name': 'RLA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RLA'}}, {'code': 24, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '18', 'instruction': 'JR r8', 'name': 'JRn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRn'}}, {'code': 25, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '19', 'instruction': 'ADD HL, DE', 'name': 'ADDHLDE', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'ADDHL'}}, {'code': 26, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1A', 'instruction': 'LD A, [DE]', 'name': 'LDADEm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'D', 'E'], 'name': 'LD___m'}}, {'code': 27, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1B', 'instruction': 'DEC DE', 'name': 'DECDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'DEC'}}, {'code': 28, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '1C', 'instruction': 'INC E', 'name': 'INCr_e', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'INCr'}}, {'code': 29, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '1D', 'instruction': 'DEC E', 'name': 'DECr_e', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'DECr'}}, {'code': 30, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '1E', 'instruction': 'LD E, d8', 'name': 'LDrn_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['E'], 'name': 'LDrn_'}}, {'code': 31, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': False}, 'hexCode': '1F', 'instruction': 'RRA', 'name': 'RRA', 'simpleFlags': ['0', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'RRA'}}, {'code': 32, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '20', 'instruction': 'JR NZ, r8', 'name': 'JRNZn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRNZn'}}, {'code': 33, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '21', 'instruction': 'LD HL, d16', 'name': 'LDHLnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'LD__nn'}}, {'code': 34, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '22', 'instruction': 'LD [HL+], A', 'name': 'LDHLIA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLIA'}}, {'code': 35, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '23', 'instruction': 'INC HL', 'name': 'INCHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'INC'}}, {'code': 36, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '24', 'instruction': 'INC H', 'name': 'INCr_h', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'INCr'}}, {'code': 37, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '25', 'instruction': 'DEC H', 'name': 'DECr_h', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'DECr'}}, {'code': 38, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '26', 'instruction': 'LD H, d8', 'name': 'LDrn_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['H'], 'name': 'LDrn_'}}, {'code': 39, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': None, 'zero': 'Z'}, 'hexCode': '27', 'instruction': 'DAA', 'name': 'DAA', 'simpleFlags': ['Z', '-', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'DAA'}}, {'code': 40, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '28', 'instruction': 'JR Z, r8', 'name': 'JRZn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRZn'}}, {'code': 41, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '29', 'instruction': 'ADD HL, HL', 'name': 'ADDHLHL', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'ADDHL'}}, {'code': 42, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2A', 'instruction': 'LD A, [HL+]', 'name': 'LDAHLI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAHLI'}}, {'code': 43, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2B', 'instruction': 'DEC HL', 'name': 'DECHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'DEC'}}, {'code': 44, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '2C', 'instruction': 'INC L', 'name': 'INCr_l', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'INCr'}}, {'code': 45, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '2D', 'instruction': 'DEC L', 'name': 'DECr_l', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'DECr'}}, {'code': 46, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '2E', 'instruction': 'LD L, d8', 'name': 'LDrn_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['L'], 'name': 'LDrn_'}}, {'code': 47, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': True, 'sub': True, 'zero': None}, 'hexCode': '2F', 'instruction': 'CPL', 'name': 'CPL', 'simpleFlags': ['-', '1', '1', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'CPL'}}, {'code': 48, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '30', 'instruction': 'JR NC, r8', 'name': 'JRNCn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRNCn'}}, {'code': 49, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '31', 'instruction': 'LD SP, d16', 'name': 'LDSPnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDSPnn'}}, {'code': 50, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '32', 'instruction': 'LD [HL-], A', 'name': 'LDHLDA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLDA'}}, {'code': 51, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '33', 'instruction': 'INC SP', 'name': 'INCSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'INCSP'}}, {'code': 52, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '34', 'instruction': 'INC [HL]', 'name': 'INCHLm', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'INCHLm'}}, {'code': 53, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '35', 'instruction': 'DEC [HL]', 'name': 'DECHLm', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DECHLm'}}, {'code': 54, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '36', 'instruction': 'LD [HL], d8', 'name': 'LDHLmn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'LDHLmn'}}, {'code': 55, 'cycles': 4, 'flagResult': {'carry': True, 'halfcarry': False, 'sub': False, 'zero': None}, 'hexCode': '37', 'instruction': 'SCF', 'name': 'SCF', 'simpleFlags': ['-', '0', '0', '1'], 'size': '1', 'templateData': {'args': [], 'name': 'SCF'}}, {'code': 56, 'cycles': [12, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '38', 'instruction': 'JR C, r8', 'name': 'JRCn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'JRCn'}}, {'code': 57, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': None}, 'hexCode': '39', 'instruction': 'ADD HL, SP', 'name': 'ADDHLSP', 'simpleFlags': ['-', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADDHLSP'}}, {'code': 58, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3A', 'instruction': 'LD A, [HL-]', 'name': 'LDAHLD', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAHLD'}}, {'code': 59, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3B', 'instruction': 'DEC SP', 'name': 'DECSP', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DECSP'}}, {'code': 60, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '3C', 'instruction': 'INC A', 'name': 'INCr_a', 'simpleFlags': ['Z', '0', 'H', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'INCr'}}, {'code': 61, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '3D', 'instruction': 'DEC A', 'name': 'DECr_a', 'simpleFlags': ['Z', '1', 'H', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'DECr'}}, {'code': 62, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '3E', 'instruction': 'LD A, d8', 'name': 'LDrn_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': ['A'], 'name': 'LDrn_'}}, {'code': 63, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': False, 'sub': False, 'zero': None}, 'hexCode': '3F', 'instruction': 'CCF', 'name': 'CCF', 'simpleFlags': ['-', '0', '0', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'CCF'}}, {'code': 64, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '40', 'instruction': 'LD B, B', 'name': 'LDrr_bb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'B'], 'name': 'LDrr'}}, {'code': 65, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '41', 'instruction': 'LD B, C', 'name': 'LDrr_bc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'LDrr'}}, {'code': 66, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '42', 'instruction': 'LD B, D', 'name': 'LDrr_bd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'D'], 'name': 'LDrr'}}, {'code': 67, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '43', 'instruction': 'LD B, E', 'name': 'LDrr_be', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'E'], 'name': 'LDrr'}}, {'code': 68, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '44', 'instruction': 'LD B, H', 'name': 'LDrr_bh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'H'], 'name': 'LDrr'}}, {'code': 69, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '45', 'instruction': 'LD B, L', 'name': 'LDrr_bl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'L'], 'name': 'LDrr'}}, {'code': 70, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '46', 'instruction': 'LD B, [HL]', 'name': 'LDrHLm_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'LDrHLm_'}}, {'code': 71, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '47', 'instruction': 'LD B, A', 'name': 'LDrr_ba', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'A'], 'name': 'LDrr'}}, {'code': 72, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '48', 'instruction': 'LD C, B', 'name': 'LDrr_cb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'B'], 'name': 'LDrr'}}, {'code': 73, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '49', 'instruction': 'LD C, C', 'name': 'LDrr_cc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'C'], 'name': 'LDrr'}}, {'code': 74, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4A', 'instruction': 'LD C, D', 'name': 'LDrr_cd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'D'], 'name': 'LDrr'}}, {'code': 75, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4B', 'instruction': 'LD C, E', 'name': 'LDrr_ce', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'E'], 'name': 'LDrr'}}, {'code': 76, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4C', 'instruction': 'LD C, H', 'name': 'LDrr_ch', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'H'], 'name': 'LDrr'}}, {'code': 77, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4D', 'instruction': 'LD C, L', 'name': 'LDrr_cl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'L'], 'name': 'LDrr'}}, {'code': 78, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4E', 'instruction': 'LD C, [HL]', 'name': 'LDrHLm_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'LDrHLm_'}}, {'code': 79, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '4F', 'instruction': 'LD C, A', 'name': 'LDrr_ca', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C', 'A'], 'name': 'LDrr'}}, {'code': 80, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '50', 'instruction': 'LD D, B', 'name': 'LDrr_db', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'B'], 'name': 'LDrr'}}, {'code': 81, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '51', 'instruction': 'LD D, C', 'name': 'LDrr_dc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'C'], 'name': 'LDrr'}}, {'code': 82, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '52', 'instruction': 'LD D, D', 'name': 'LDrr_dd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'D'], 'name': 'LDrr'}}, {'code': 83, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '53', 'instruction': 'LD D, E', 'name': 'LDrr_de', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'LDrr'}}, {'code': 84, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '54', 'instruction': 'LD D, H', 'name': 'LDrr_dh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'H'], 'name': 'LDrr'}}, {'code': 85, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '55', 'instruction': 'LD D, L', 'name': 'LDrr_dl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'L'], 'name': 'LDrr'}}, {'code': 86, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '56', 'instruction': 'LD D, [HL]', 'name': 'LDrHLm_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'LDrHLm_'}}, {'code': 87, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '57', 'instruction': 'LD D, A', 'name': 'LDrr_da', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'A'], 'name': 'LDrr'}}, {'code': 88, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '58', 'instruction': 'LD E, B', 'name': 'LDrr_eb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'B'], 'name': 'LDrr'}}, {'code': 89, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '59', 'instruction': 'LD E, C', 'name': 'LDrr_ec', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'C'], 'name': 'LDrr'}}, {'code': 90, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5A', 'instruction': 'LD E, D', 'name': 'LDrr_ed', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'D'], 'name': 'LDrr'}}, {'code': 91, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5B', 'instruction': 'LD E, E', 'name': 'LDrr_ee', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'E'], 'name': 'LDrr'}}, {'code': 92, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5C', 'instruction': 'LD E, H', 'name': 'LDrr_eh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'H'], 'name': 'LDrr'}}, {'code': 93, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5D', 'instruction': 'LD E, L', 'name': 'LDrr_el', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'L'], 'name': 'LDrr'}}, {'code': 94, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5E', 'instruction': 'LD E, [HL]', 'name': 'LDrHLm_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'LDrHLm_'}}, {'code': 95, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '5F', 'instruction': 'LD E, A', 'name': 'LDrr_ea', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E', 'A'], 'name': 'LDrr'}}, {'code': 96, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '60', 'instruction': 'LD H, B', 'name': 'LDrr_hb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'B'], 'name': 'LDrr'}}, {'code': 97, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '61', 'instruction': 'LD H, C', 'name': 'LDrr_hc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'C'], 'name': 'LDrr'}}, {'code': 98, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '62', 'instruction': 'LD H, D', 'name': 'LDrr_hd', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'D'], 'name': 'LDrr'}}, {'code': 99, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '63', 'instruction': 'LD H, E', 'name': 'LDrr_he', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'E'], 'name': 'LDrr'}}, {'code': 100, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '64', 'instruction': 'LD H, H', 'name': 'LDrr_hh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'H'], 'name': 'LDrr'}}, {'code': 101, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '65', 'instruction': 'LD H, L', 'name': 'LDrr_hl', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'LDrr'}}, {'code': 102, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '66', 'instruction': 'LD H, [HL]', 'name': 'LDrHLm_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'LDrHLm_'}}, {'code': 103, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '67', 'instruction': 'LD H, A', 'name': 'LDrr_ha', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'A'], 'name': 'LDrr'}}, {'code': 104, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '68', 'instruction': 'LD L, B', 'name': 'LDrr_lb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'B'], 'name': 'LDrr'}}, {'code': 105, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '69', 'instruction': 'LD L, C', 'name': 'LDrr_lc', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'C'], 'name': 'LDrr'}}, {'code': 106, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6A', 'instruction': 'LD L, D', 'name': 'LDrr_ld', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'D'], 'name': 'LDrr'}}, {'code': 107, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6B', 'instruction': 'LD L, E', 'name': 'LDrr_le', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'E'], 'name': 'LDrr'}}, {'code': 108, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6C', 'instruction': 'LD L, H', 'name': 'LDrr_lh', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'H'], 'name': 'LDrr'}}, {'code': 109, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6D', 'instruction': 'LD L, L', 'name': 'LDrr_ll', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'L'], 'name': 'LDrr'}}, {'code': 110, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6E', 'instruction': 'LD L, [HL]', 'name': 'LDrHLm_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'LDrHLm_'}}, {'code': 111, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '6F', 'instruction': 'LD L, A', 'name': 'LDrr_la', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L', 'A'], 'name': 'LDrr'}}, {'code': 112, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '70', 'instruction': 'LD [HL], B', 'name': 'LDHLmr_b', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'LDHLmr_'}}, {'code': 113, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '71', 'instruction': 'LD [HL], C', 'name': 'LDHLmr_c', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'LDHLmr_'}}, {'code': 114, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '72', 'instruction': 'LD [HL], D', 'name': 'LDHLmr_d', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'LDHLmr_'}}, {'code': 115, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '73', 'instruction': 'LD [HL], E', 'name': 'LDHLmr_e', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'LDHLmr_'}}, {'code': 116, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '74', 'instruction': 'LD [HL], H', 'name': 'LDHLmr_h', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'LDHLmr_'}}, {'code': 117, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '75', 'instruction': 'LD [HL], L', 'name': 'LDHLmr_l', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'LDHLmr_'}}, {'code': 118, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '76', 'instruction': 'HALT', 'name': 'HALT', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'HALT'}}, {'code': 119, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '77', 'instruction': 'LD [HL], A', 'name': 'LDHLmr_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'LDHLmr_'}}, {'code': 120, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '78', 'instruction': 'LD A, B', 'name': 'LDrr_ab', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'B'], 'name': 'LDrr'}}, {'code': 121, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '79', 'instruction': 'LD A, C', 'name': 'LDrr_ac', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'C'], 'name': 'LDrr'}}, {'code': 122, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7A', 'instruction': 'LD A, D', 'name': 'LDrr_ad', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'D'], 'name': 'LDrr'}}, {'code': 123, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7B', 'instruction': 'LD A, E', 'name': 'LDrr_ae', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'E'], 'name': 'LDrr'}}, {'code': 124, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7C', 'instruction': 'LD A, H', 'name': 'LDrr_ah', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'H'], 'name': 'LDrr'}}, {'code': 125, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7D', 'instruction': 'LD A, L', 'name': 'LDrr_al', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'L'], 'name': 'LDrr'}}, {'code': 126, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7E', 'instruction': 'LD A, [HL]', 'name': 'LDrHLm_a', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'LDrHLm_'}}, {'code': 127, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': '7F', 'instruction': 'LD A, A', 'name': 'LDrr_aa', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'A'], 'name': 'LDrr'}}, {'code': 128, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '80', 'instruction': 'ADD A, B', 'name': 'ADDr_b', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ADDr'}}, {'code': 129, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '81', 'instruction': 'ADD A, C', 'name': 'ADDr_c', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ADDr'}}, {'code': 130, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '82', 'instruction': 'ADD A, D', 'name': 'ADDr_d', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ADDr'}}, {'code': 131, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '83', 'instruction': 'ADD A, E', 'name': 'ADDr_e', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ADDr'}}, {'code': 132, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '84', 'instruction': 'ADD A, H', 'name': 'ADDr_h', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ADDr'}}, {'code': 133, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '85', 'instruction': 'ADD A, L', 'name': 'ADDr_l', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ADDr'}}, {'code': 134, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '86', 'instruction': 'ADD A, [HL]', 'name': 'ADDHL', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADDHL'}}, {'code': 135, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '87', 'instruction': 'ADD A, A', 'name': 'ADDr_a', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ADDr'}}, {'code': 136, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '88', 'instruction': 'ADC A, B', 'name': 'ADCr_b', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ADCr'}}, {'code': 137, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '89', 'instruction': 'ADC A, C', 'name': 'ADCr_c', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ADCr'}}, {'code': 138, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8A', 'instruction': 'ADC A, D', 'name': 'ADCr_d', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ADCr'}}, {'code': 139, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8B', 'instruction': 'ADC A, E', 'name': 'ADCr_e', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ADCr'}}, {'code': 140, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8C', 'instruction': 'ADC A, H', 'name': 'ADCr_h', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ADCr'}}, {'code': 141, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8D', 'instruction': 'ADC A, L', 'name': 'ADCr_l', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ADCr'}}, {'code': 142, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8E', 'instruction': 'ADC A, [HL]', 'name': 'ADCHL', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'ADCHL'}}, {'code': 143, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': '8F', 'instruction': 'ADC A, A', 'name': 'ADCr_a', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ADCr'}}, {'code': 144, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '90', 'instruction': 'SUB A, B', 'name': 'SUBr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'SUBr'}}, {'code': 145, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '91', 'instruction': 'SUB A, C', 'name': 'SUBr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'SUBr'}}, {'code': 146, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '92', 'instruction': 'SUB A, D', 'name': 'SUBr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'SUBr'}}, {'code': 147, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '93', 'instruction': 'SUB A, E', 'name': 'SUBr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'SUBr'}}, {'code': 148, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '94', 'instruction': 'SUB A, H', 'name': 'SUBr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'SUBr'}}, {'code': 149, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '95', 'instruction': 'SUB A, L', 'name': 'SUBr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'SUBr'}}, {'code': 150, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '96', 'instruction': 'SUB A, [HL]', 'name': 'SUBHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'SUBHL'}}, {'code': 151, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '97', 'instruction': 'SUB A, A', 'name': 'SUBr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'SUBr'}}, {'code': 152, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '98', 'instruction': 'SBC A, B', 'name': 'SBCr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'SBCr'}}, {'code': 153, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '99', 'instruction': 'SBC A, C', 'name': 'SBCr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'SBCr'}}, {'code': 154, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9A', 'instruction': 'SBC A, D', 'name': 'SBCr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'SBCr'}}, {'code': 155, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9B', 'instruction': 'SBC A, E', 'name': 'SBCr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'SBCr'}}, {'code': 156, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9C', 'instruction': 'SBC A, H', 'name': 'SBCr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'SBCr'}}, {'code': 157, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9D', 'instruction': 'SBC A, L', 'name': 'SBCr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'SBCr'}}, {'code': 158, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9E', 'instruction': 'SBC A, [HL]', 'name': 'SBCHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'SBCHL'}}, {'code': 159, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': '9F', 'instruction': 'SBC A, A', 'name': 'SBCr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'SBCr'}}, {'code': 160, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A0', 'instruction': 'AND A, B', 'name': 'ANDr_b', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ANDr'}}, {'code': 161, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A1', 'instruction': 'AND A, C', 'name': 'ANDr_c', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ANDr'}}, {'code': 162, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A2', 'instruction': 'AND A, D', 'name': 'ANDr_d', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ANDr'}}, {'code': 163, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A3', 'instruction': 'AND A, E', 'name': 'ANDr_e', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ANDr'}}, {'code': 164, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A4', 'instruction': 'AND A, H', 'name': 'ANDr_h', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ANDr'}}, {'code': 165, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A5', 'instruction': 'AND A, L', 'name': 'ANDr_l', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ANDr'}}, {'code': 166, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A6', 'instruction': 'AND A, [HL]', 'name': 'ANDHL', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'ANDHL'}}, {'code': 167, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A7', 'instruction': 'AND A, A', 'name': 'ANDr_a', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ANDr'}}, {'code': 168, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A8', 'instruction': 'XOR A, B', 'name': 'XORr_b', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'XORr'}}, {'code': 169, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'A9', 'instruction': 'XOR A, C', 'name': 'XORr_c', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'XORr'}}, {'code': 170, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AA', 'instruction': 'XOR A, D', 'name': 'XORr_d', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'XORr'}}, {'code': 171, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AB', 'instruction': 'XOR A, E', 'name': 'XORr_e', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'XORr'}}, {'code': 172, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AC', 'instruction': 'XOR A, H', 'name': 'XORr_h', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'XORr'}}, {'code': 173, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AD', 'instruction': 'XOR A, L', 'name': 'XORr_l', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'XORr'}}, {'code': 174, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AE', 'instruction': 'XOR A, [HL]', 'name': 'XORHL', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'XORHL'}}, {'code': 175, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'AF', 'instruction': 'XOR A, A', 'name': 'XORr_a', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'XORr'}}, {'code': 176, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B0', 'instruction': 'OR A, B', 'name': 'ORr_b', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'ORr'}}, {'code': 177, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B1', 'instruction': 'OR A, C', 'name': 'ORr_c', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'ORr'}}, {'code': 178, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B2', 'instruction': 'OR A, D', 'name': 'ORr_d', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'ORr'}}, {'code': 179, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B3', 'instruction': 'OR A, E', 'name': 'ORr_e', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'ORr'}}, {'code': 180, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B4', 'instruction': 'OR A, H', 'name': 'ORr_h', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'ORr'}}, {'code': 181, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B5', 'instruction': 'OR A, L', 'name': 'ORr_l', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'ORr'}}, {'code': 182, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B6', 'instruction': 'OR A, [HL]', 'name': 'ORHL', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': [], 'name': 'ORHL'}}, {'code': 183, 'cycles': 4, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'B7', 'instruction': 'OR A, A', 'name': 'ORr_a', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'ORr'}}, {'code': 184, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'B8', 'instruction': 'CP A, B', 'name': 'CPr_b', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['B'], 'name': 'CPr'}}, {'code': 185, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'B9', 'instruction': 'CP A, C', 'name': 'CPr_c', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['C'], 'name': 'CPr'}}, {'code': 186, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BA', 'instruction': 'CP A, D', 'name': 'CPr_d', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['D'], 'name': 'CPr'}}, {'code': 187, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BB', 'instruction': 'CP A, E', 'name': 'CPr_e', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['E'], 'name': 'CPr'}}, {'code': 188, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BC', 'instruction': 'CP A, H', 'name': 'CPr_h', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['H'], 'name': 'CPr'}}, {'code': 189, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BD', 'instruction': 'CP A, L', 'name': 'CPr_l', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['L'], 'name': 'CPr'}}, {'code': 190, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BE', 'instruction': 'CP A, [HL]', 'name': 'CPHL', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': [], 'name': 'CPHL'}}, {'code': 191, 'cycles': 4, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'BF', 'instruction': 'CP A, A', 'name': 'CPr_a', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A'], 'name': 'CPr'}}, {'code': 192, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C0', 'instruction': 'RET NZ', 'name': 'RETNZ', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETNZ'}}, {'code': 193, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C1', 'instruction': 'POP BC', 'name': 'POPBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'POP'}}, {'code': 194, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C2', 'instruction': 'JP NZ, a16', 'name': 'JPNZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPNZnn'}}, {'code': 195, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C3', 'instruction': 'JP a16', 'name': 'JPnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPnn'}}, {'code': 196, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C4', 'instruction': 'CALL NZ, a16', 'name': 'CALLNZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLNZnn'}}, {'code': 197, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C5', 'instruction': 'PUSH BC', 'name': 'PUSHBC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['B', 'C'], 'name': 'PUSH'}}, {'code': 198, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': 'C6', 'instruction': 'ADD A, d8', 'name': 'ADDn', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADDn'}}, {'code': 199, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C7', 'instruction': 'RST 00H', 'name': 'RST00', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x00'], 'name': 'RSTXX'}}, {'code': 200, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C8', 'instruction': 'RET Z', 'name': 'RETZ', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETZ'}}, {'code': 201, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'C9', 'instruction': 'RET', 'name': 'RET', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RET'}}, {'code': 202, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CA', 'instruction': 'JP Z, a16', 'name': 'JPZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPZnn'}}, {'code': 203, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CB', 'instruction': 'PREFIX CB', 'name': 'MAPcb', 'simpleFlags': ['-', '-', '-', '-'], 'size': '2', 'templateData': {'args': [], 'name': 'CBCall'}}, {'code': 204, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CC', 'instruction': 'CALL Z, a16', 'name': 'CALLZnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLZnn'}}, {'code': 205, 'cycles': 24, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CD', 'instruction': 'CALL a16', 'name': 'CALLnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLnn'}}, {'code': 206, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': 'Z'}, 'hexCode': 'CE', 'instruction': 'ADC A, d8', 'name': 'ADCn', 'simpleFlags': ['Z', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADCn'}}, {'code': 207, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'CF', 'instruction': 'RST 08H', 'name': 'RST08', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x08'], 'name': 'RSTXX'}}, {'code': 208, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D0', 'instruction': 'RET NC', 'name': 'RETNC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETNC'}}, {'code': 209, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D1', 'instruction': 'POP DE', 'name': 'POPDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'POP'}}, {'code': 210, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D2', 'instruction': 'JP NC, a16', 'name': 'JPNCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPNCnn'}}, {'code': 211, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D3', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xD3'], 'name': 'NOPWARN'}}, {'code': 212, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D4', 'instruction': 'CALL NC, a16', 'name': 'CALLNCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLNCnn'}}, {'code': 213, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D5', 'instruction': 'PUSH DE', 'name': 'PUSHDE', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['D', 'E'], 'name': 'PUSH'}}, {'code': 214, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'D6', 'instruction': 'SUB A, d8', 'name': 'SUBn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'SUBn'}}, {'code': 215, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D7', 'instruction': 'RST 10H', 'name': 'RST10', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x10'], 'name': 'RSTXX'}}, {'code': 216, 'cycles': [20, 8], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D8', 'instruction': 'RET C', 'name': 'RETC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETC'}}, {'code': 217, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'D9', 'instruction': 'RETI', 'name': 'RETI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'RETI'}}, {'code': 218, 'cycles': [16, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DA', 'instruction': 'JP C, a16', 'name': 'JPCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'JPCnn'}}, {'code': 219, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DB', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xDB'], 'name': 'NOPWARN'}}, {'code': 220, 'cycles': [24, 12], 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DC', 'instruction': 'CALL C, a16', 'name': 'CALLCnn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': [], 'name': 'CALLCnn'}}, {'code': 221, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DD', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xDD'], 'name': 'NOPWARN'}}, {'code': 222, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'DE', 'instruction': 'SBC A, d8', 'name': 'SBCn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'SBCn'}}, {'code': 223, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'DF', 'instruction': 'RST 18H', 'name': 'RST18', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x18'], 'name': 'RSTXX'}}, {'code': 224, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E0', 'instruction': 'LD [$FF00 + a8], A', 'name': 'LDIOnA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDIOnA'}}, {'code': 225, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E1', 'instruction': 'POP HL', 'name': 'POPHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'POP'}}, {'code': 226, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E2', 'instruction': 'LD [$FF00 + C], A', 'name': 'LDIOCA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDIOCA'}}, {'code': 227, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E3', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xE3'], 'name': 'NOPWARN'}}, {'code': 228, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E4', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xE4'], 'name': 'NOPWARN'}}, {'code': 229, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E5', 'instruction': 'PUSH HL', 'name': 'PUSHHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['H', 'L'], 'name': 'PUSH'}}, {'code': 230, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': True, 'sub': False, 'zero': 'Z'}, 'hexCode': 'E6', 'instruction': 'AND A, d8', 'name': 'ANDn', 'simpleFlags': ['Z', '0', '1', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'ANDn'}}, {'code': 231, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E7', 'instruction': 'RST 20H', 'name': 'RST20', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x20'], 'name': 'RSTXX'}}, {'code': 232, 'cycles': 16, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': False}, 'hexCode': 'E8', 'instruction': 'ADD SP, r8', 'name': 'ADDSPn', 'simpleFlags': ['0', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'ADDSPn'}}, {'code': 233, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'E9', 'instruction': 'JP [HL]', 'name': 'JPHL', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'JPHL'}}, {'code': 234, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EA', 'instruction': 'LD [a16], A', 'name': 'LDmmA', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['A'], 'name': 'LDmm_'}}, {'code': 235, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EB', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xEB'], 'name': 'NOPWARN'}}, {'code': 236, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EC', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xEC'], 'name': 'NOPWARN'}}, {'code': 237, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'ED', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xED'], 'name': 'NOPWARN'}}, {'code': 238, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'EE', 'instruction': 'XOR A, d8', 'name': 'XORn', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'XORn'}}, {'code': 239, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'EF', 'instruction': 'RST 28H', 'name': 'RST28', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x28'], 'name': 'RSTXX'}}, {'code': 240, 'cycles': 12, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F0', 'instruction': 'LD A, [$FF00 + a8]', 'name': 'LDAIOn', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAIOn'}}, {'code': 241, 'cycles': 12, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': 'N', 'zero': 'Z'}, 'hexCode': 'F1', 'instruction': 'POP AF', 'name': 'POPAF', 'simpleFlags': ['Z', 'N', 'H', 'C'], 'size': '1', 'templateData': {'args': ['A', 'F'], 'name': 'POP'}}, {'code': 242, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F2', 'instruction': 'LD A, [$FF00 + C]', 'name': 'LDAIOC', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDAIOC'}}, {'code': 243, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F3', 'instruction': 'DI', 'name': 'DI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'DI'}}, {'code': 244, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F4', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xF4'], 'name': 'NOPWARN'}}, {'code': 245, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F5', 'instruction': 'PUSH AF', 'name': 'PUSHAF', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['A', 'F'], 'name': 'PUSH'}}, {'code': 246, 'cycles': 8, 'flagResult': {'carry': False, 'halfcarry': False, 'sub': False, 'zero': 'Z'}, 'hexCode': 'F6', 'instruction': 'OR A, d8', 'name': 'ORn', 'simpleFlags': ['Z', '0', '0', '0'], 'size': '2', 'templateData': {'args': [], 'name': 'ORn'}}, {'code': 247, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F7', 'instruction': 'RST 30H', 'name': 'RST30', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x30'], 'name': 'RSTXX'}}, {'code': 248, 'cycles': 12, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': False, 'zero': False}, 'hexCode': 'F8', 'instruction': 'LD HL, SP + r8', 'name': 'LDHLSPn', 'simpleFlags': ['0', '0', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'LDHLSPn'}}, {'code': 249, 'cycles': 8, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'F9', 'instruction': 'LD HL, SP', 'name': 'LDSPHLr', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'LDHLSPr'}}, {'code': 250, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FA', 'instruction': 'LD A, [a16]', 'name': 'LDAmm', 'simpleFlags': ['-', '-', '-', '-'], 'size': '3', 'templateData': {'args': ['A'], 'name': 'LD_mm'}}, {'code': 251, 'cycles': 4, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FB', 'instruction': 'EI', 'name': 'EI', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': [], 'name': 'EI'}}, {'code': 252, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FC', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xFC'], 'name': 'NOPWARN'}}, {'code': 253, 'cycles': 0, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FD', 'instruction': 'UNDEFINED', 'name': 'XX', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0xFD'], 'name': 'NOPWARN'}}, {'code': 254, 'cycles': 8, 'flagResult': {'carry': 'C', 'halfcarry': 'H', 'sub': True, 'zero': 'Z'}, 'hexCode': 'FE', 'instruction': 'CP A, d8', 'name': 'CPn', 'simpleFlags': ['Z', '1', 'H', 'C'], 'size': '2', 'templateData': {'args': [], 'name': 'CPn'}}, {'code': 255, 'cycles': 16, 'flagResult': {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None}, 'hexCode': 'FF', 'instruction': 'RST 38H', 'name': 'RST38', 'simpleFlags': ['-', '-', '-', '-'], 'size': '1', 'templateData': {'args': ['0x38'], 'name': 'RSTXX'}}]
TRIPPIFY_DB_USER = 'trippify' TRIPPIFY_DB_PASSWORD = 'trippify1234' TRIPPIFY_DB_DB = 'trippify' TRIPPIFY_DB_HOST = 'localhost' TRIPPIFY_DB_PORT = 5432 MAPS_GEO_CODING_API_KEY = 'AIzaSyBUl98DdV0U05pu7spTcP-RIB_qoCkNcYU' HERE_APP_ID = 'm7AG9dmM8HNO5ZnJWRVO' HERE_APP_CODE = '2mCmRml-o_e3-uZuD_Z62A' HERE_GEO_CODER_URL = 'https://geocoder.api.here.com/6.2/geocode.json' HERE_SIMPLE_ROUTE_URL = 'https://route.api.here.com/routing/7.2/calculateroute.json' SPOTIFY_API_URL = 'https://api.spotify.com/v1/recommendations' SPOTIFY_API_LOGIN = 'https://accounts.spotify.com/api/token' SPOTIFY_API_AUTH = 'MThlMGY2ZDNhODE4NDAwODgyYjAxMWE2YTYxZWI0Y2E6N2ExZjg2MjU2NGJiNDExNmIwOTJhZGI5NmUyYTcxYTg=' SPOTIFY_API_SEED = '0c6xIDDpzE81m2q797ordA' NEXMO_CLIENT_KEY = '28de23f8' NEXMO_CLIENT_SECRET = 'caeT1nCvH2nGe2f0' NEXMO_FROM = 'Trippify' __all__ = [ 'TRIPPIFY_DB_USER', 'TRIPPIFY_DB_PASSWORD', 'TRIPPIFY_DB_DB', 'TRIPPIFY_DB_HOST', 'TRIPPIFY_DB_PORT', 'MAPS_GEO_CODING_API_KEY', 'HERE_APP_ID', 'HERE_APP_CODE', 'HERE_GEO_CODER_URL', 'HERE_SIMPLE_ROUTE_URL', 'TRIPPIFY_DB_PORT', 'SPOTIFY_API_URL', 'SPOTIFY_API_LOGIN', 'SPOTIFY_API_AUTH', 'SPOTIFY_API_SEED', 'NEXMO_CLIENT_KEY', 'NEXMO_CLIENT_SECRET', 'NEXMO_FROM' ]
trippify_db_user = 'trippify' trippify_db_password = 'trippify1234' trippify_db_db = 'trippify' trippify_db_host = 'localhost' trippify_db_port = 5432 maps_geo_coding_api_key = 'AIzaSyBUl98DdV0U05pu7spTcP-RIB_qoCkNcYU' here_app_id = 'm7AG9dmM8HNO5ZnJWRVO' here_app_code = '2mCmRml-o_e3-uZuD_Z62A' here_geo_coder_url = 'https://geocoder.api.here.com/6.2/geocode.json' here_simple_route_url = 'https://route.api.here.com/routing/7.2/calculateroute.json' spotify_api_url = 'https://api.spotify.com/v1/recommendations' spotify_api_login = 'https://accounts.spotify.com/api/token' spotify_api_auth = 'MThlMGY2ZDNhODE4NDAwODgyYjAxMWE2YTYxZWI0Y2E6N2ExZjg2MjU2NGJiNDExNmIwOTJhZGI5NmUyYTcxYTg=' spotify_api_seed = '0c6xIDDpzE81m2q797ordA' nexmo_client_key = '28de23f8' nexmo_client_secret = 'caeT1nCvH2nGe2f0' nexmo_from = 'Trippify' __all__ = ['TRIPPIFY_DB_USER', 'TRIPPIFY_DB_PASSWORD', 'TRIPPIFY_DB_DB', 'TRIPPIFY_DB_HOST', 'TRIPPIFY_DB_PORT', 'MAPS_GEO_CODING_API_KEY', 'HERE_APP_ID', 'HERE_APP_CODE', 'HERE_GEO_CODER_URL', 'HERE_SIMPLE_ROUTE_URL', 'TRIPPIFY_DB_PORT', 'SPOTIFY_API_URL', 'SPOTIFY_API_LOGIN', 'SPOTIFY_API_AUTH', 'SPOTIFY_API_SEED', 'NEXMO_CLIENT_KEY', 'NEXMO_CLIENT_SECRET', 'NEXMO_FROM']
#for x in range(0,5): #print("Hello World",x) #def recursive(string, num): # if num == 5: # return # print(string,num) #recursive(string,num+1) #recursive("Hello World",0) #def listsum(numList): # sum = 0 # for i in numList: # sum = sum + i # return sum #print(listsum([1,2,5,9,7])) def listsum(numList): if len(numList) == 1: return numList[0] else: return numList[0] + listsum(numList[1:]) print(listsum([1,2,5,9,7]))
def listsum(numList): if len(numList) == 1: return numList[0] else: return numList[0] + listsum(numList[1:]) print(listsum([1, 2, 5, 9, 7]))
# Solution to problem 9 # Open the file moby-dick.txt for reading and mark as "f" with open('moby-dick.txt', 'r') as f: count = 0 # set counter to zero for line in f: # for every line in the file count+=1 # count +1 if count % 2 == 0: # if the remainder is 0 print(line) # print line where the remainder is 0
with open('moby-dick.txt', 'r') as f: count = 0 for line in f: count += 1 if count % 2 == 0: print(line)
#/usr/bin/env python3 def nth_prime(n): ans = 2 known = [] for _ in range(n): while not all(ans%x != 0 for x in known): ans += 1 known.append(ans) return ans if __name__ == "__main__": n = int(input("Which one? ")) print(nth_prime(n))
def nth_prime(n): ans = 2 known = [] for _ in range(n): while not all((ans % x != 0 for x in known)): ans += 1 known.append(ans) return ans if __name__ == '__main__': n = int(input('Which one? ')) print(nth_prime(n))
def factory(n): def current(): return n def counter(): return n + 1 return current, counter f_current, f_counter = factory(int(input()))
def factory(n): def current(): return n def counter(): return n + 1 return (current, counter) (f_current, f_counter) = factory(int(input()))
numbers = [ -9, +7, +5, -13, +6, +14, -5, -10, -10, -12, +2, +5, +2, -6, -12, +1, +13, +5, +3, -15, -12, +4, -11, +10, -5, -14, -6, +2, -9, -18, +8, -1, +12, +9, +5, -9, +14, +3, -4, -16, +14, +14, +13, -7, -19, +12, -9, +5, +21, -7, +19, -2, +14, +18, +17, +4, +11, -16, -5, -6, -7, -2, -1, -2, -1, +14, -17, +5, +13, +8, -6, +15, +2, +16, -7, -6, +11, +10, +17, +13, -7, +17, -18, +2, +8, -17, +16, +4, +7, +4, -10, -10, +8, +16, -13, -19, -12, -12, +10, -5, +21, -12, -17, +6, -19, +18, -10, +3, -19, +7, +16, -12, +6, +15, -4, +9, +5, +17, -16, -4, -8, +2, +8, +5, -6, +9, +2, +17, +15, -6, +9, +18, +6, +18, -5, -3, +17, +7, -10, -5, +4, -6, +3, -12, -15, -16, -16, +18, +16, -14, -9, +12, -13, -2, +5, +16, -15, +7, +9, +8, -11, -8, -15 +13, +11, +18, -15, -5, +10, +14, -13, +16, +2, +19, +17, +17, -12, +17, +8, -4, -12, -11, -12, -4, +15, +5, +9, -18, -14, -8, +13, +19, +2, -11, +5, +5, -3, +6, +9, +12, +19, -15, -12, -6, +22, +2, -4, +16, -11, +18, +6, +14, +1, -3, -10, +6, -10, +12, +7, +1, -11, +13, -17, +19, +16, +1, -12, -14, +8, +16, -11, +10, +7, +5, -6, +5, +8, +2, -4, +8, +5, -10, +7, +5, +4, +13, +15, +12, +12, -14, +6, -12, +2, -8, +16, +5, +10, +18, -2, +16, +2, -11, -13, +19, +9, +12, +18, +14, +17, +9, -13, +25, -27, +18, +4, +16, +5, -15, +13, +15, -16, +12, +23, -12, -8, -19, -10, +24, +16, +6, -15, +26, -16, -13, +7, +25, +12, +19, +14, +16, -5, -12, -22, -17, -20, -6, -32, -2, -18, -10, -11, -26, +10, -17, -8, -17, -8, +9, -16, -14, -19, +17, +19, +2, +20, +19, -13, -7, +19, -14, -15, -5, +3, -19, -6, -11, -2, +15, +13, -8, -12, -22, -9, -14, +15, -17, -1, -13, +9, +17, +15, -7, +13, +2, +15, -6, +17, +14, +8, +24, -19, -10, +26, -31, -18, -9, +11, -15, +20, +22, +2, +20, +18, +10, -16, -20, -32, +27, +33, -12, -13, +14, -20, -80, -11, +6, -19, -13, -5, -9, +5, +13, -8, -17, -14, -10, -16, -5, -11, +6, +6, -9, -13, -4, -20, +13, +3, +15, +4, +18, +3, -13, -7, +11, -20, -6, +18, +13, -23, +13, -17, -18, -5, +7, +8, -13, -23, -18, +14, +2, +7, -1, +5, -16, -15, +7, -8, +10, -16, -10, -22, +3, +18, +8, -6, -4, +7, +24, -8, -22, +27, +15, +1, -14, -47, -22, -10, +48, -56, -41, -9, +73, +79, -9, +48, -11, +36, +6, -16, +20, +10, +13, -20, +12, +9, +3, +4, +9, -12, +15, +2, +19, +8, +16, +13, -19, -23, +10, -18, +12, +20, +3, +12, -17, -8, +20, +3, +8, +2, -17, -13, -18, -8, -28, +7, +1, +4, -1, -29, +131, -4, +8, -27, -32, +14, -16, -10, -77, -31, +160, -115, -130, -103, +930, +75389, -16, -5, +4, +8, +2, -7, +6, +7, +11, -8, +4, -3, -5, +13, +7, -5, +7, -5, -1, +11, +18, +19, -18, +7, -14, +2, -5, +12, +11, +15, -17, -6, +17, +3, -4, +9, +16, -13, +2, +19, -7, -3, +18, +20, -11, +13, +3, +4, -2, +14, +9, -17, +2, +8, -5, -8, +2, +10, +17, +2, +15, -1, -11, +13, -9, -5, -19, -18, -16, -14, -7, -13, -11, -10, +15, +7, +18, -12, -9, -16, +3, -14, -1, +16, -9, -12, -19, +1, -5, -15, -14, -7, +17, -1, -19, -9, +6, +12, -21, -20, -11, -6, +8, +5, +10, -2, +12, -13, +6, +12, -10, +13, -6, +19, -3, -22, -18, -4, -3, +20, +10, -3, -19, -9, +6, -7, -13, -18, -18, -3, +10, -13, -14, -6, +9, +20, +5, +5, +16, +14, +14, -19, -19, +11, +10, -14, -17, -19, -6, -11, -13, -1, -18, -14, +10, -8, +1, +1, +15, +8, -15, +6, -9, +2, +12, +13, -7, -5, -19, -6, -1, -19, -12, -1, -4, -6, -16, +2, -20, -15, +5, +9, -19, +12, +9, -15, -5, -12, -6, -12, -11, +13, -11, -9, -2, -16, -17, -9, +16, +20, +5, +20, -7, -6, +4, -12, -1, -5, -22, -19, +10, -9, -4, -5, -8, -11, -18, -13, +20, +1, -12, +7, -19, +10, -8, +13, -7, -19, -15, -2, +7, -18, -14, +2, +15, -6, -20, -10, +20, +3, -19, -19, -22, -14, +7, +10, -15, -12, -18, -7, -20, -12, +1, +14, +13, -8, -1, -10, -13, +9, +11, +7, +18, -4, +6, -3, +20, +18, -14, -3, +11, +15, +8, -9, +28, +15, +13, +14, +4, -13, -1, -14, -5, -20, +16, +10, +11, +32, +23, +18, +3, +3, -12, +4, +11, +14, +17, +2, +6, -5, +19, +12, +17, -15, -10, -15, -5, -17, +20, +20, -14, +23, -14, +26, -11, +9, +21, +4, +16, -4, +5, -11, -8, -10, -5, +14, -2, -4, +12, -10, +16, +1, +12, +1, -2, -17, +10, +21, -9, +15, -9, +14, +3, -1, +5, +19, +10, -7, -10, -13, +14, -2, +16, +10, -1, -20, +9, -8, -9, -19, +18, +3, -18, +11, -1, -5, +21, +22, +4, -11, +6, +18, -8, +10, +12, -19, -5, +25, +5, -12, -12, +3, +14, +15, +4, +6, +19, +18, +7, -16, -1, -13, -6, -1, +11, -7, +13, -15, -5, +13, +21, -3, -14, -8, -16, +13, +2, -9, -18, +21, -20, -20, +18, -19, -22, +20, -3, -4, -9, -8, -20, +1, -21, -4, -9, -1, +18, -7, +10, +20, -16, +23, +17, +9, -19, -3, +9, +5, +2, -25, +1, -15, -55, -13, -10, -11, +1, -14, -12, +23, +15, +15, -2, +19, -7, -6, +10, +12, +1, +8, -51, +28, +24, -98, +16, -3, -5, -13, -37, +6, -14, +9, -12, -6, -23, +16, -12, -10, +3, +41, +4, +20, -13, -5, -1, -64, -30, -11, -23, -46, -27, -11, -75223 ] Sum = sum(numbers) print(Sum) print(numbers) frequencies = set() found = False currentfrequency = 0 while not found: for num in numbers: #for each individual number in the array above currentfrequency += num #each recurrence adds the integer currentSet = set({currentfrequency}) #assigns variable curset to a set of length one to utilize the set operations on the intersection if len(currentSet.intersection(frequencies)) > 0: #compares sets to return a new set of the intersection (intersection = anything contained in both sets) found = True #if the intersection is > 1 then you have your first repeat break #kills the for loop - back up to while not found frequencies.add(currentfrequency) #If you dont break the loop, then you add curfreq again until the loop is broken print(currentfrequency)
numbers = [-9, +7, +5, -13, +6, +14, -5, -10, -10, -12, +2, +5, +2, -6, -12, +1, +13, +5, +3, -15, -12, +4, -11, +10, -5, -14, -6, +2, -9, -18, +8, -1, +12, +9, +5, -9, +14, +3, -4, -16, +14, +14, +13, -7, -19, +12, -9, +5, +21, -7, +19, -2, +14, +18, +17, +4, +11, -16, -5, -6, -7, -2, -1, -2, -1, +14, -17, +5, +13, +8, -6, +15, +2, +16, -7, -6, +11, +10, +17, +13, -7, +17, -18, +2, +8, -17, +16, +4, +7, +4, -10, -10, +8, +16, -13, -19, -12, -12, +10, -5, +21, -12, -17, +6, -19, +18, -10, +3, -19, +7, +16, -12, +6, +15, -4, +9, +5, +17, -16, -4, -8, +2, +8, +5, -6, +9, +2, +17, +15, -6, +9, +18, +6, +18, -5, -3, +17, +7, -10, -5, +4, -6, +3, -12, -15, -16, -16, +18, +16, -14, -9, +12, -13, -2, +5, +16, -15, +7, +9, +8, -11, -8, -15 + 13, +11, +18, -15, -5, +10, +14, -13, +16, +2, +19, +17, +17, -12, +17, +8, -4, -12, -11, -12, -4, +15, +5, +9, -18, -14, -8, +13, +19, +2, -11, +5, +5, -3, +6, +9, +12, +19, -15, -12, -6, +22, +2, -4, +16, -11, +18, +6, +14, +1, -3, -10, +6, -10, +12, +7, +1, -11, +13, -17, +19, +16, +1, -12, -14, +8, +16, -11, +10, +7, +5, -6, +5, +8, +2, -4, +8, +5, -10, +7, +5, +4, +13, +15, +12, +12, -14, +6, -12, +2, -8, +16, +5, +10, +18, -2, +16, +2, -11, -13, +19, +9, +12, +18, +14, +17, +9, -13, +25, -27, +18, +4, +16, +5, -15, +13, +15, -16, +12, +23, -12, -8, -19, -10, +24, +16, +6, -15, +26, -16, -13, +7, +25, +12, +19, +14, +16, -5, -12, -22, -17, -20, -6, -32, -2, -18, -10, -11, -26, +10, -17, -8, -17, -8, +9, -16, -14, -19, +17, +19, +2, +20, +19, -13, -7, +19, -14, -15, -5, +3, -19, -6, -11, -2, +15, +13, -8, -12, -22, -9, -14, +15, -17, -1, -13, +9, +17, +15, -7, +13, +2, +15, -6, +17, +14, +8, +24, -19, -10, +26, -31, -18, -9, +11, -15, +20, +22, +2, +20, +18, +10, -16, -20, -32, +27, +33, -12, -13, +14, -20, -80, -11, +6, -19, -13, -5, -9, +5, +13, -8, -17, -14, -10, -16, -5, -11, +6, +6, -9, -13, -4, -20, +13, +3, +15, +4, +18, +3, -13, -7, +11, -20, -6, +18, +13, -23, +13, -17, -18, -5, +7, +8, -13, -23, -18, +14, +2, +7, -1, +5, -16, -15, +7, -8, +10, -16, -10, -22, +3, +18, +8, -6, -4, +7, +24, -8, -22, +27, +15, +1, -14, -47, -22, -10, +48, -56, -41, -9, +73, +79, -9, +48, -11, +36, +6, -16, +20, +10, +13, -20, +12, +9, +3, +4, +9, -12, +15, +2, +19, +8, +16, +13, -19, -23, +10, -18, +12, +20, +3, +12, -17, -8, +20, +3, +8, +2, -17, -13, -18, -8, -28, +7, +1, +4, -1, -29, +131, -4, +8, -27, -32, +14, -16, -10, -77, -31, +160, -115, -130, -103, +930, +75389, -16, -5, +4, +8, +2, -7, +6, +7, +11, -8, +4, -3, -5, +13, +7, -5, +7, -5, -1, +11, +18, +19, -18, +7, -14, +2, -5, +12, +11, +15, -17, -6, +17, +3, -4, +9, +16, -13, +2, +19, -7, -3, +18, +20, -11, +13, +3, +4, -2, +14, +9, -17, +2, +8, -5, -8, +2, +10, +17, +2, +15, -1, -11, +13, -9, -5, -19, -18, -16, -14, -7, -13, -11, -10, +15, +7, +18, -12, -9, -16, +3, -14, -1, +16, -9, -12, -19, +1, -5, -15, -14, -7, +17, -1, -19, -9, +6, +12, -21, -20, -11, -6, +8, +5, +10, -2, +12, -13, +6, +12, -10, +13, -6, +19, -3, -22, -18, -4, -3, +20, +10, -3, -19, -9, +6, -7, -13, -18, -18, -3, +10, -13, -14, -6, +9, +20, +5, +5, +16, +14, +14, -19, -19, +11, +10, -14, -17, -19, -6, -11, -13, -1, -18, -14, +10, -8, +1, +1, +15, +8, -15, +6, -9, +2, +12, +13, -7, -5, -19, -6, -1, -19, -12, -1, -4, -6, -16, +2, -20, -15, +5, +9, -19, +12, +9, -15, -5, -12, -6, -12, -11, +13, -11, -9, -2, -16, -17, -9, +16, +20, +5, +20, -7, -6, +4, -12, -1, -5, -22, -19, +10, -9, -4, -5, -8, -11, -18, -13, +20, +1, -12, +7, -19, +10, -8, +13, -7, -19, -15, -2, +7, -18, -14, +2, +15, -6, -20, -10, +20, +3, -19, -19, -22, -14, +7, +10, -15, -12, -18, -7, -20, -12, +1, +14, +13, -8, -1, -10, -13, +9, +11, +7, +18, -4, +6, -3, +20, +18, -14, -3, +11, +15, +8, -9, +28, +15, +13, +14, +4, -13, -1, -14, -5, -20, +16, +10, +11, +32, +23, +18, +3, +3, -12, +4, +11, +14, +17, +2, +6, -5, +19, +12, +17, -15, -10, -15, -5, -17, +20, +20, -14, +23, -14, +26, -11, +9, +21, +4, +16, -4, +5, -11, -8, -10, -5, +14, -2, -4, +12, -10, +16, +1, +12, +1, -2, -17, +10, +21, -9, +15, -9, +14, +3, -1, +5, +19, +10, -7, -10, -13, +14, -2, +16, +10, -1, -20, +9, -8, -9, -19, +18, +3, -18, +11, -1, -5, +21, +22, +4, -11, +6, +18, -8, +10, +12, -19, -5, +25, +5, -12, -12, +3, +14, +15, +4, +6, +19, +18, +7, -16, -1, -13, -6, -1, +11, -7, +13, -15, -5, +13, +21, -3, -14, -8, -16, +13, +2, -9, -18, +21, -20, -20, +18, -19, -22, +20, -3, -4, -9, -8, -20, +1, -21, -4, -9, -1, +18, -7, +10, +20, -16, +23, +17, +9, -19, -3, +9, +5, +2, -25, +1, -15, -55, -13, -10, -11, +1, -14, -12, +23, +15, +15, -2, +19, -7, -6, +10, +12, +1, +8, -51, +28, +24, -98, +16, -3, -5, -13, -37, +6, -14, +9, -12, -6, -23, +16, -12, -10, +3, +41, +4, +20, -13, -5, -1, -64, -30, -11, -23, -46, -27, -11, -75223] sum = sum(numbers) print(Sum) print(numbers) frequencies = set() found = False currentfrequency = 0 while not found: for num in numbers: currentfrequency += num current_set = set({currentfrequency}) if len(currentSet.intersection(frequencies)) > 0: found = True break frequencies.add(currentfrequency) print(currentfrequency)
METRICS_LABELS = { 'precision': 'Precision', 'recall': 'Recall', 'fmeasure': 'F-measure', 'auc': 'AUC', 'mcc': 'MCC', } MODELS_LABELS = { 'DummyClassifier(strategy=\'most_frequent\')': 'BM', 'DummyClassifier(strategy=\'prior\')': 'BP', 'DummyClassifier(strategy=\'stratified\')': 'BS', 'DummyClassifier(strategy=\'uniform\')': 'BU', 'AdaBoostClassifier()': 'AB', 'DecisionTreeClassifier()': 'DT', 'GaussianNB()': 'NB', 'GradientBoostingClassifier()': 'GB', 'KNeighborsClassifier()': 'KNN', 'LinearDiscriminantAnalysis()': 'LDA', 'LogisticRegression()': 'LR', 'MLPClassifier()': 'NN', 'RandomForestClassifier()': 'RF', 'SVC(kernel=\'linear\')': 'LSVM', 'SVC(kernel=\'rbf\')': 'RSVM', } SELECTORS_LABELS = { 'None': 'None', 'AutoSpearmanSelector()': 'AutoSpearman', } SAMPLERS_LABELS = { 'None': 'None', 'SMOTE()': 'SMOTE', } PREPROCESSING_GROUPS_LABELS = { 'None/None': f'{SELECTORS_LABELS["None"]}/{SAMPLERS_LABELS["None"]}', 'None/SMOTE()': f'{SELECTORS_LABELS["None"]}/{SAMPLERS_LABELS["SMOTE()"]}', 'AutoSpearmanSelector()/None': f'{SELECTORS_LABELS["AutoSpearmanSelector()"]}/{SAMPLERS_LABELS["None"]}', 'AutoSpearmanSelector()/SMOTE()': f'{SELECTORS_LABELS["AutoSpearmanSelector()"]}/{SAMPLERS_LABELS["SMOTE()"]}', } MAGNITUDE_LABELS = { 'negligible': 'N', 'small': 'S', 'medium': 'M', 'large': 'L', }
metrics_labels = {'precision': 'Precision', 'recall': 'Recall', 'fmeasure': 'F-measure', 'auc': 'AUC', 'mcc': 'MCC'} models_labels = {"DummyClassifier(strategy='most_frequent')": 'BM', "DummyClassifier(strategy='prior')": 'BP', "DummyClassifier(strategy='stratified')": 'BS', "DummyClassifier(strategy='uniform')": 'BU', 'AdaBoostClassifier()': 'AB', 'DecisionTreeClassifier()': 'DT', 'GaussianNB()': 'NB', 'GradientBoostingClassifier()': 'GB', 'KNeighborsClassifier()': 'KNN', 'LinearDiscriminantAnalysis()': 'LDA', 'LogisticRegression()': 'LR', 'MLPClassifier()': 'NN', 'RandomForestClassifier()': 'RF', "SVC(kernel='linear')": 'LSVM', "SVC(kernel='rbf')": 'RSVM'} selectors_labels = {'None': 'None', 'AutoSpearmanSelector()': 'AutoSpearman'} samplers_labels = {'None': 'None', 'SMOTE()': 'SMOTE'} preprocessing_groups_labels = {'None/None': f"{SELECTORS_LABELS['None']}/{SAMPLERS_LABELS['None']}", 'None/SMOTE()': f"{SELECTORS_LABELS['None']}/{SAMPLERS_LABELS['SMOTE()']}", 'AutoSpearmanSelector()/None': f"{SELECTORS_LABELS['AutoSpearmanSelector()']}/{SAMPLERS_LABELS['None']}", 'AutoSpearmanSelector()/SMOTE()': f"{SELECTORS_LABELS['AutoSpearmanSelector()']}/{SAMPLERS_LABELS['SMOTE()']}"} magnitude_labels = {'negligible': 'N', 'small': 'S', 'medium': 'M', 'large': 'L'}
class Goat: legs_number: int = 4 def __init__(self, height: int, weight: int, hungry: bool) -> None: self._height: int = height self._weight: int = weight self._hungry: bool = hungry def stats(self) -> str: return f"Goat has {self._height} height and {self._weight} weight!" def feed_with(self, food: str) -> str: if self._hungry: return f"Goat is fed up with {food}" return "Goat is not hungry" goat: Goat = Goat(60, 40, True) print(goat.__annotations__) print(goat.__init__.__annotations__) print(goat.stats.__annotations__) print(goat.feed_with.__annotations__)
class Goat: legs_number: int = 4 def __init__(self, height: int, weight: int, hungry: bool) -> None: self._height: int = height self._weight: int = weight self._hungry: bool = hungry def stats(self) -> str: return f'Goat has {self._height} height and {self._weight} weight!' def feed_with(self, food: str) -> str: if self._hungry: return f'Goat is fed up with {food}' return 'Goat is not hungry' goat: Goat = goat(60, 40, True) print(goat.__annotations__) print(goat.__init__.__annotations__) print(goat.stats.__annotations__) print(goat.feed_with.__annotations__)
colors = [ '\033[38;5;21m', # blue (cold) '\033[38;5;39m', '\033[38;5;50m', '\033[38;5;48m', '\033[38;5;46m', # green '\033[38;5;118m', '\033[38;5;190m', '\033[38;5;226m', # yellow '\033[38;5;220m', '\033[38;5;214m', # orange '\033[38;5;208m', '\033[38;5;202m', '\033[38;5;196m', # red '\033[38;5;203m', '\033[38;5;210m', '\033[38;5;217m', # pink '\033[38;5;224m', '\033[38;5;231m' # white (hot) ] reset = '\033[0m' mapping = 'SE .o+=*BOX@%&#/^' def colorize_char(c): ind = mapping.find(c) if (ind < 0 or ind >= len(colors)): return c return "%s%s%s"%(colors[ind], c, reset) def colorize(visualization): return ''.join(colorize_char(c) for c in visualization)
colors = ['\x1b[38;5;21m', '\x1b[38;5;39m', '\x1b[38;5;50m', '\x1b[38;5;48m', '\x1b[38;5;46m', '\x1b[38;5;118m', '\x1b[38;5;190m', '\x1b[38;5;226m', '\x1b[38;5;220m', '\x1b[38;5;214m', '\x1b[38;5;208m', '\x1b[38;5;202m', '\x1b[38;5;196m', '\x1b[38;5;203m', '\x1b[38;5;210m', '\x1b[38;5;217m', '\x1b[38;5;224m', '\x1b[38;5;231m'] reset = '\x1b[0m' mapping = 'SE .o+=*BOX@%&#/^' def colorize_char(c): ind = mapping.find(c) if ind < 0 or ind >= len(colors): return c return '%s%s%s' % (colors[ind], c, reset) def colorize(visualization): return ''.join((colorize_char(c) for c in visualization))
name1_1_1_0_0_0_0 = None name1_1_1_0_0_0_1 = None name1_1_1_0_0_0_2 = None name1_1_1_0_0_0_3 = None name1_1_1_0_0_0_4 = None
name1_1_1_0_0_0_0 = None name1_1_1_0_0_0_1 = None name1_1_1_0_0_0_2 = None name1_1_1_0_0_0_3 = None name1_1_1_0_0_0_4 = None
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ### CONTROLS (non-tunable) ### # general TYPE_OF_RUN = train # train, test, test_episodes, render LOAD_MODEL_FROM = None SAVE_MODELS_TO = models/new_gru_flat_babyai.pth # worker.py ENV = BabyAI_Env ENV_RANDOM_SEED = randint # Use an integer for deterministic training. AGENT_RANDOM_SEED = 1 REPORTING_INTERVAL = 10000 TOTAL_STEPS = 2000000 ANNEAL_LR = False # A3cAgent AGENT_NET = GRU_Network # BabyAI_Env BABYAI_ENV_LEVEL = BabyAI-GoToLocal-v0 USE_SUCCESS_RATE = True SUCCESS_RATE_THRESHOLD = 0.99 HELDOUT_TESTING = True NUM_TEST_EPISODES = 10000 OBS_ENCODER = Flat BINARY_REWARD = True ### HYPERPARAMETERS (tunable) ### # A3cAgent A3C_T_MAX = 4 LEARNING_RATE = 4e-05 DISCOUNT_FACTOR = 0.9 GRADIENT_CLIP = 512.0 ENTROPY_TERM_STRENGTH = 0.02 ADAM_EPS = 1e-12 REWARD_SCALE = 2.0 WEIGHT_DECAY = 0. # RNNs NUM_RNN_UNITS = 96 OBS_EMBED_SIZE = 512 AC_HIDDEN_LAYER_SIZE = 4096
type_of_run = train load_model_from = None save_models_to = models / new_gru_flat_babyai.pth env = BabyAI_Env env_random_seed = randint agent_random_seed = 1 reporting_interval = 10000 total_steps = 2000000 anneal_lr = False agent_net = GRU_Network babyai_env_level = BabyAI - GoToLocal - v0 use_success_rate = True success_rate_threshold = 0.99 heldout_testing = True num_test_episodes = 10000 obs_encoder = Flat binary_reward = True a3_c_t_max = 4 learning_rate = 4e-05 discount_factor = 0.9 gradient_clip = 512.0 entropy_term_strength = 0.02 adam_eps = 1e-12 reward_scale = 2.0 weight_decay = 0.0 num_rnn_units = 96 obs_embed_size = 512 ac_hidden_layer_size = 4096
#DictExample3.py print("---------------------------------------------------") student = {"name":"sumit","college":"stanford","grade":"1"} print("Student information :\n") print("Student Name : ",student['name']) print("College : ",student['college']) print("grade : ",student['grade']) print("---------------------------------------------------") print("Modify the inputs:") student['name'] = input("Enter the name : ") student['college'] = input("Enter the college : ") student['grade'] = input("Enter grade : ") print("---------------------------------------------------") print("\nmodified information :\n") print("Student Name : ",student['name']) print("Student college : ", student['college']) print("Student Grade : ",student['grade']) print("---------------------------------------------------")
print('---------------------------------------------------') student = {'name': 'sumit', 'college': 'stanford', 'grade': '1'} print('Student information :\n') print('Student Name : ', student['name']) print('College : ', student['college']) print('grade : ', student['grade']) print('---------------------------------------------------') print('Modify the inputs:') student['name'] = input('Enter the name : ') student['college'] = input('Enter the college : ') student['grade'] = input('Enter grade : ') print('---------------------------------------------------') print('\nmodified information :\n') print('Student Name : ', student['name']) print('Student college : ', student['college']) print('Student Grade : ', student['grade']) print('---------------------------------------------------')
config = { 'username': 'demo', 'password': 'demo1', 'url': 'http://127.0.0.1:18800', 'upload_url': '/YouWillNeverGuess' }
config = {'username': 'demo', 'password': 'demo1', 'url': 'http://127.0.0.1:18800', 'upload_url': '/YouWillNeverGuess'}
class Settings: WLAN_HOST = '$sudo' WLAN_PASSWORD = 'HowNowBrownCow' MQTT_BROKER_HOST = '192.168.0.136' MQTT_BROKER_PORT = '1883' API_URL = 'http://192.168.0.136:5000/api'
class Settings: wlan_host = '$sudo' wlan_password = 'HowNowBrownCow' mqtt_broker_host = '192.168.0.136' mqtt_broker_port = '1883' api_url = 'http://192.168.0.136:5000/api'
def calculate_period(x): if x == 'weeks': return x * 7 elif x == 'month': return x * 30 else: return x def currentlyinfected(x): return x * 10 def currently_infected(x): return x * 50 def infectionbyrequestedattime(x,y): factor = calculate_period(x) // 3 return currentlyinfected(y) * 2 ** factor def severecasesbyrequestedtime(x): return x * 0.15 def hospitalbedsperrequestedtime(x,y): return (x * 0.35) - y def casesforicubyrequestedtime(x): return x * 0.05 def casesforventilatorsbyrequestedtime(x): return x * 0.02 def dollarsinflight(x,y): return (x * 0.65) * y * 30
def calculate_period(x): if x == 'weeks': return x * 7 elif x == 'month': return x * 30 else: return x def currentlyinfected(x): return x * 10 def currently_infected(x): return x * 50 def infectionbyrequestedattime(x, y): factor = calculate_period(x) // 3 return currentlyinfected(y) * 2 ** factor def severecasesbyrequestedtime(x): return x * 0.15 def hospitalbedsperrequestedtime(x, y): return x * 0.35 - y def casesforicubyrequestedtime(x): return x * 0.05 def casesforventilatorsbyrequestedtime(x): return x * 0.02 def dollarsinflight(x, y): return x * 0.65 * y * 30
# pylint: disable=line-too-long, no-member def generator_name(identifier): # pylint: disable=unused-argument return 'Voice Activity Detection' def extract_secondary_identifier(properties): if 'voices_present' in properties: if properties['voices_present']: return 'present' return 'not-present' return 'unknown'
def generator_name(identifier): return 'Voice Activity Detection' def extract_secondary_identifier(properties): if 'voices_present' in properties: if properties['voices_present']: return 'present' return 'not-present' return 'unknown'
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.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.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.383391, '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.663895, '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.380763, '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.42805, '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.378967, '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.62175, '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.0138982, '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.100502, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.102786, '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.100502, 'Execution Unit/Register Files/Runtime Dynamic': 0.116684, '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.242854, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.729337, '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.88214, '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.00266729, '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.00266729, '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.00236392, '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.000937378, '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.00147653, '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.00917504, '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.0241192, '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.0988108, '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': 6.28521, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.331624, '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.335606, '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.81343, 'Instruction Fetch Unit/Runtime Dynamic': 0.799335, '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.076365, 'L2/Runtime Dynamic': 0.0211489, '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': 4.53307, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.61158, '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.106632, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.106632, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.03866, 'Load Store Unit/Runtime Dynamic': 2.24408, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.262936, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.525872, '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.0933168, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.09446, '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.390792, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0543757, '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.710617, 'Memory Management Unit/Runtime Dynamic': 0.148836, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 24.8225, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0196045, '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.20417, '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.223774, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 6.31931, '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.242356, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.393046, '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': 1.3081, '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.337839, '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.544921, '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.275058, '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': 1.15782, '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.185839, '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': 6.4919, '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.247129, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0141705, '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.193233, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.104799, '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.440361, 'Execution Unit/Register Files/Runtime Dynamic': 0.11897, '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.46769, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.913563, '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': 2.98877, '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.000795173, '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.000795173, '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.000691243, '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.000266852, '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.00150545, '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.00378704, '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.00767235, '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.100746, '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': 6.40833, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.248861, '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.34218, '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.93785, 'Instruction Fetch Unit/Runtime Dynamic': 0.703246, '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.0657589, 'L2/Runtime Dynamic': 0.00414676, '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.97935, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.838906, '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.0563652, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0563653, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.24552, 'Load Store Unit/Runtime Dynamic': 1.17325, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.138987, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.277974, '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.0493269, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0503072, '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.398446, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0408189, '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.63929, 'Memory Management Unit/Runtime Dynamic': 0.0911261, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.9698, '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.650083, '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.0231537, '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.156229, '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.829465, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.79, '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.108777, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.288127, '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.460421, '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.269937, '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.435399, '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.219775, '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.925111, '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.238141, '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.17302, '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.0869834, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0113224, '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.127764, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.083736, '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.214747, 'Execution Unit/Register Files/Runtime Dynamic': 0.0950584, '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.296363, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.664054, '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': 2.37773, '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.00103398, '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.00103398, '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.000935842, '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.000381555, '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.00120287, '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.00420668, '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.00865455, '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.0804975, '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.12034, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.197675, '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.273406, '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': 7.58735, 'Instruction Fetch Unit/Runtime Dynamic': 0.56444, '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.0106875, 'L2/Runtime Dynamic': 0.00273761, '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': 3.59411, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.13624, '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.0762541, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0762542, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.95419, 'Load Store Unit/Runtime Dynamic': 1.58855, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.18803, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.37606, '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.0667323, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0668519, '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.318364, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0325272, '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.589107, 'Memory Management Unit/Runtime Dynamic': 0.0993791, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.9038, '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.228814, '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.0149634, '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.134919, '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.378696, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.01153, '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': 9.4469e-07, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.20269, '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': 7.59011e-06, '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.194462, '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.31366, '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.158325, '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.666446, '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.222406, '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.25812, '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': 1.43393e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0081566, '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.0589826, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.060323, '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.058984, 'Execution Unit/Register Files/Runtime Dynamic': 0.0684796, '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.12426, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.326393, '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.66939, '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.00249126, '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.00249126, '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.00223238, '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.000898376, '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.000866545, '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.00808145, '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.0216529, '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.0579901, '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': 3.68867, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.22962, '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.19696, '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': 6.0862, 'Instruction Fetch Unit/Runtime Dynamic': 0.514305, '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.0297368, 'L2/Runtime Dynamic': 0.00581478, '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': 3.07714, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.886557, '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.0595289, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0595291, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.35825, 'Load Store Unit/Runtime Dynamic': 1.23966, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.146788, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.293577, '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.0520956, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.052352, '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.229348, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0382063, '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.474948, 'Memory Management Unit/Runtime Dynamic': 0.0905583, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.7967, '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': 4.00713e-06, '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.00877363, '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.0992607, '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.108038, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.62776, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.5823551314870238, 'Runtime Dynamic': 0.5823551314870238, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.219259, 'Runtime Dynamic': 0.129716, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 86.7121, 'Peak Power': 119.824, 'Runtime Dynamic': 20.8783, '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': 86.4929, 'Total Cores/Runtime Dynamic': 20.7486, '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.219259, 'Total L3s/Runtime Dynamic': 0.129716, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.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.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.383391, '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.663895, '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.380763, '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.42805, '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.378967, '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.62175, '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.0138982, '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.100502, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.102786, '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.100502, 'Execution Unit/Register Files/Runtime Dynamic': 0.116684, '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.242854, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.729337, '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.88214, '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.00266729, '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.00266729, '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.00236392, '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.000937378, '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.00147653, '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.00917504, '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.0241192, '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.0988108, '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': 6.28521, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.331624, '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.335606, '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.81343, 'Instruction Fetch Unit/Runtime Dynamic': 0.799335, '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.076365, 'L2/Runtime Dynamic': 0.0211489, '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': 4.53307, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.61158, '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.106632, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.106632, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.03866, 'Load Store Unit/Runtime Dynamic': 2.24408, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.262936, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.525872, '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.0933168, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.09446, '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.390792, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0543757, '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.710617, 'Memory Management Unit/Runtime Dynamic': 0.148836, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 24.8225, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, '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.0196045, '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.20417, '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.223774, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 6.31931, '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.242356, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.393046, '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': 1.3081, '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.337839, '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.544921, '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.275058, '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': 1.15782, '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.185839, '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': 6.4919, '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.247129, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0141705, '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.193233, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.104799, '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.440361, 'Execution Unit/Register Files/Runtime Dynamic': 0.11897, '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.46769, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.913563, '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': 2.98877, '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.000795173, '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.000795173, '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.000691243, '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.000266852, '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.00150545, '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.00378704, '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.00767235, '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.100746, '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': 6.40833, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.248861, '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.34218, '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.93785, 'Instruction Fetch Unit/Runtime Dynamic': 0.703246, '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.0657589, 'L2/Runtime Dynamic': 0.00414676, '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.97935, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.838906, '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.0563652, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0563653, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.24552, 'Load Store Unit/Runtime Dynamic': 1.17325, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.138987, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.277974, '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.0493269, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0503072, '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.398446, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0408189, '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.63929, 'Memory Management Unit/Runtime Dynamic': 0.0911261, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.9698, '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.650083, '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.0231537, '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.156229, '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.829465, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.79, '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.108777, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.288127, '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.460421, '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.269937, '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.435399, '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.219775, '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.925111, '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.238141, '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.17302, '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.0869834, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0113224, '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.127764, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.083736, '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.214747, 'Execution Unit/Register Files/Runtime Dynamic': 0.0950584, '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.296363, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.664054, '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': 2.37773, '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.00103398, '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.00103398, '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.000935842, '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.000381555, '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.00120287, '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.00420668, '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.00865455, '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.0804975, '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.12034, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.197675, '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.273406, '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': 7.58735, 'Instruction Fetch Unit/Runtime Dynamic': 0.56444, '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.0106875, 'L2/Runtime Dynamic': 0.00273761, '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': 3.59411, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.13624, '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.0762541, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0762542, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.95419, 'Load Store Unit/Runtime Dynamic': 1.58855, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.18803, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.37606, '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.0667323, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0668519, '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.318364, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0325272, '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.589107, 'Memory Management Unit/Runtime Dynamic': 0.0993791, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.9038, '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.228814, '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.0149634, '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.134919, '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.378696, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.01153, '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': 9.4469e-07, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.20269, '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': 7.59011e-06, '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.194462, '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.31366, '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.158325, '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.666446, '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.222406, '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.25812, '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': 1.43393e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0081566, '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.0589826, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.060323, '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.058984, 'Execution Unit/Register Files/Runtime Dynamic': 0.0684796, '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.12426, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.326393, '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.66939, '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.00249126, '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.00249126, '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.00223238, '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.000898376, '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.000866545, '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.00808145, '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.0216529, '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.0579901, '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': 3.68867, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.22962, '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.19696, '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': 6.0862, 'Instruction Fetch Unit/Runtime Dynamic': 0.514305, '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.0297368, 'L2/Runtime Dynamic': 0.00581478, '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': 3.07714, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.886557, '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.0595289, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0595291, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.35825, 'Load Store Unit/Runtime Dynamic': 1.23966, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.146788, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.293577, '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.0520956, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.052352, '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.229348, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0382063, '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.474948, 'Memory Management Unit/Runtime Dynamic': 0.0905583, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.7967, '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': 4.00713e-06, '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.00877363, '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.0992607, '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.108038, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.62776, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.5823551314870238, 'Runtime Dynamic': 0.5823551314870238, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.219259, 'Runtime Dynamic': 0.129716, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 86.7121, 'Peak Power': 119.824, 'Runtime Dynamic': 20.8783, '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': 86.4929, 'Total Cores/Runtime Dynamic': 20.7486, '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.219259, 'Total L3s/Runtime Dynamic': 0.129716, '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 sol(): for i in range(int(input())): R, S = input().split() print("".join([i * int(R) for i in S])) if __name__ == "__main__": sol()
def sol(): for i in range(int(input())): (r, s) = input().split() print(''.join([i * int(R) for i in S])) if __name__ == '__main__': sol()
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def trimBST(self, root: TreeNode, L: int, R: int) -> TreeNode: if not root: return None if root.val < L: return self.trimBST(root.right, L, R) if root.val > R: return self.trimBST(root.left, L, R) root.left = self.trimBST(root.left, L, R) root.right = self.trimBST(root.right, L, R) return root
class Solution: def trim_bst(self, root: TreeNode, L: int, R: int) -> TreeNode: if not root: return None if root.val < L: return self.trimBST(root.right, L, R) if root.val > R: return self.trimBST(root.left, L, R) root.left = self.trimBST(root.left, L, R) root.right = self.trimBST(root.right, L, R) return root
class CustomException(Exception): _message = '' def __init__(self, message): self._message = message # Call the base class constructor with the parameters it needs super().__init__(message)
class Customexception(Exception): _message = '' def __init__(self, message): self._message = message super().__init__(message)
__is_prod = False def set_production(is_prod): global __is_prod __is_prod = is_prod def is_production(): return __is_prod
__is_prod = False def set_production(is_prod): global __is_prod __is_prod = is_prod def is_production(): return __is_prod
def format(piece): if piece.label: txt_piece = '{0}\n\\label{{{1}}}'.format(str(piece),piece.label) return txt_piece else: return str(piece)
def format(piece): if piece.label: txt_piece = '{0}\n\\label{{{1}}}'.format(str(piece), piece.label) return txt_piece else: return str(piece)
expected_output = { "hsrp_common_process_state": "not running", "hsrp_ha_state": "capable", "hsrp_ipv4_process_state": "not running", "hsrp_ipv6_process_state": "not running", "hsrp_timer_wheel_state": "running", "mac_address_table": { 166: {"group": 10, "interface": "gi2/0/3", "mac_address": "0000.0cff.b311"}, 169: {"group": 5, "interface": "gi1/0/1", "mac_address": "0000.0cff.b30c"}, 172: {"group": 0, "interface": "gi2/0/3", "mac_address": "0000.0cff.b307"}, 173: {"group": 1, "interface": "gi2/0/3", "mac_address": "0000.0cff.b308"}, }, "msgQ_max_size": 0, "msgQ_size": 0, "v3_to_v4_transform": "disabled", "virtual_ip_hash_table": { "ipv6": {78: {"group": 20, "interface": "gi1", "ip": "2001:DB8:10:1:1::254"}}, "ipv4": { 103: {"group": 0, "interface": "gi1/0/1", "ip": "192.168.1.254"}, 106: {"group": 10, "interface": "gi1/0/2", "ip": "192.168.2.254"}, }, }, }
expected_output = {'hsrp_common_process_state': 'not running', 'hsrp_ha_state': 'capable', 'hsrp_ipv4_process_state': 'not running', 'hsrp_ipv6_process_state': 'not running', 'hsrp_timer_wheel_state': 'running', 'mac_address_table': {166: {'group': 10, 'interface': 'gi2/0/3', 'mac_address': '0000.0cff.b311'}, 169: {'group': 5, 'interface': 'gi1/0/1', 'mac_address': '0000.0cff.b30c'}, 172: {'group': 0, 'interface': 'gi2/0/3', 'mac_address': '0000.0cff.b307'}, 173: {'group': 1, 'interface': 'gi2/0/3', 'mac_address': '0000.0cff.b308'}}, 'msgQ_max_size': 0, 'msgQ_size': 0, 'v3_to_v4_transform': 'disabled', 'virtual_ip_hash_table': {'ipv6': {78: {'group': 20, 'interface': 'gi1', 'ip': '2001:DB8:10:1:1::254'}}, 'ipv4': {103: {'group': 0, 'interface': 'gi1/0/1', 'ip': '192.168.1.254'}, 106: {'group': 10, 'interface': 'gi1/0/2', 'ip': '192.168.2.254'}}}}
######################################## # CS/CNS/EE 155 2017 # Problem Set 5 # # Author: Avishek Dutta # Description: Set 5 ######################################## class Utility: ''' Utility for the problem files. ''' def __init__(): pass @staticmethod def load_poem(): ''' Loads the file 'shake_words.txt'. Returns: states: Sequnces of states, i.e. a list of lists. Each sequence represents half a year of data. states_map: A hash map that maps each state to an integer. observations: Sequences of observations, i.e. a list of lists. Each sequence represents half a year of data. observation_map: A hash map that maps each observation to an integer. ''' states = [] states_map = {} observations = [] observation_map = {} state_counter = 0 observation_counter = 0 with open("shake_words.txt") as f: state_seq = [] observation_seq = [] while True: line = f.readline().strip() if line == '' or line == '-': # A line has been read. Add the current sequence to # the list of sequences. states.append(state_seq) observations.append(observation_seq) # Start new sequences. state_seq = [] observation_seq = [] # end of file if line == '': break # onto next line elif line == '-': continue st, obs = line.split() # Add new states to the st state hash map. if st not in states_map: states_map[st] = state_counter state_counter += 1 state_seq.append(states_map[st]) # Add new observations to the obs observation hash map. if obs not in observation_map: observation_map[obs] = observation_counter observation_counter += 1 # Convert the obs into an integer. observation_seq.append(observation_map[obs]) return states, states_map, observations, observation_map @staticmethod def load_poem_hidden(): ''' Loads the file 'shake_words.txt' and hides the states. Returns: genres: The observations. genre_map: A hash map that maps each observation to an integer. ''' states, states_map, observations, observation_map = Utility.load_poem() return observations, observation_map
class Utility: """ Utility for the problem files. """ def __init__(): pass @staticmethod def load_poem(): """ Loads the file 'shake_words.txt'. Returns: states: Sequnces of states, i.e. a list of lists. Each sequence represents half a year of data. states_map: A hash map that maps each state to an integer. observations: Sequences of observations, i.e. a list of lists. Each sequence represents half a year of data. observation_map: A hash map that maps each observation to an integer. """ states = [] states_map = {} observations = [] observation_map = {} state_counter = 0 observation_counter = 0 with open('shake_words.txt') as f: state_seq = [] observation_seq = [] while True: line = f.readline().strip() if line == '' or line == '-': states.append(state_seq) observations.append(observation_seq) state_seq = [] observation_seq = [] if line == '': break elif line == '-': continue (st, obs) = line.split() if st not in states_map: states_map[st] = state_counter state_counter += 1 state_seq.append(states_map[st]) if obs not in observation_map: observation_map[obs] = observation_counter observation_counter += 1 observation_seq.append(observation_map[obs]) return (states, states_map, observations, observation_map) @staticmethod def load_poem_hidden(): """ Loads the file 'shake_words.txt' and hides the states. Returns: genres: The observations. genre_map: A hash map that maps each observation to an integer. """ (states, states_map, observations, observation_map) = Utility.load_poem() return (observations, observation_map)
def factorial(num): if num == 0: return 1 return num * factorial(num-1) print(factorial(int(input())))
def factorial(num): if num == 0: return 1 return num * factorial(num - 1) print(factorial(int(input())))
#! /usr/bin/python # create a list of float # creating list of single data types fam = [1.73, 1.68, 1.72, 1.89] print(fam) # creating list of different data types
fam = [1.73, 1.68, 1.72, 1.89] print(fam)
# flake8: noqa # Edit this file to override the default graphite settings, do not edit settings.py # Turn on debugging and restart apache if you ever see an "Internal Server Error" page # DEBUG = True # Set your local timezone (django will try to figure this out automatically) TIME_ZONE = 'Europe/Zurich' # Secret key for django SECRET_KEY = '%%SECRET_KEY%%' URL_PREFIX = "/graphite/"
time_zone = 'Europe/Zurich' secret_key = '%%SECRET_KEY%%' url_prefix = '/graphite/'
# 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 ( n ) : table = [ 0 for i in range ( n + 1 ) ] table [ 0 ] = 1 for i in range ( 3 , n + 1 ) : table [ i ] += table [ i - 3 ] for i in range ( 5 , n + 1 ) : table [ i ] += table [ i - 5 ] for i in range ( 10 , n + 1 ) : table [ i ] += table [ i - 10 ] return table [ n ] #TOFILL if __name__ == '__main__': param = [ (83,), (29,), (17,), (12,), (93,), (55,), (97,), (75,), (22,), (52,) ] 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(n): table = [0 for i in range(n + 1)] table[0] = 1 for i in range(3, n + 1): table[i] += table[i - 3] for i in range(5, n + 1): table[i] += table[i - 5] for i in range(10, n + 1): table[i] += table[i - 10] return table[n] if __name__ == '__main__': param = [(83,), (29,), (17,), (12,), (93,), (55,), (97,), (75,), (22,), (52,)] 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)))
# # PySNMP MIB module HUAWEI-BGP-ACCOUNTING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-BGP-ACCOUNTING-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:31:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") NotificationType, ObjectIdentity, ModuleIdentity, Unsigned32, Counter64, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, TimeTicks, Counter32, MibIdentifier, IpAddress, iso, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "ObjectIdentity", "ModuleIdentity", "Unsigned32", "Counter64", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "TimeTicks", "Counter32", "MibIdentifier", "IpAddress", "iso", "Bits") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") hwBgpAcctMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39)) if mibBuilder.loadTexts: hwBgpAcctMIB.setLastUpdated('200705100000Z') if mibBuilder.loadTexts: hwBgpAcctMIB.setOrganization('Huawei Technologies co.,Ltd.') class AddressType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("invalid", 0), ("source", 1), ("destination", 2)) class DirectionType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("invalid", 0), ("inbound", 1), ("outbound", 2), ("inboundAndOutbound", 3)) hwBgpAcctMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1)) hwBgpAcctCfgTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1), ) if mibBuilder.loadTexts: hwBgpAcctCfgTable.setStatus('current') hwBgpAcctCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1), ).setIndexNames((0, "HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctCfgIfIndex")) if mibBuilder.loadTexts: hwBgpAcctCfgEntry.setStatus('current') hwbgpAcctCfgIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctCfgIfIndex.setStatus('current') hwbgpAcctSrcOrDest = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 2), AddressType().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwbgpAcctSrcOrDest.setStatus('current') hwbgpAcctDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 3), DirectionType().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwbgpAcctDirection.setStatus('current') hwbgpAcctCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwbgpAcctCfgRowStatus.setStatus('current') hwBgpAcctStatTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2), ) if mibBuilder.loadTexts: hwBgpAcctStatTable.setStatus('current') hwBgpAcctStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1), ).setIndexNames((0, "HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctStatIfIndex"), (0, "HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctTrafficIndex")) if mibBuilder.loadTexts: hwBgpAcctStatEntry.setStatus('current') hwbgpAcctStatIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctStatIfIndex.setStatus('current') hwbgpAcctTrafficIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctTrafficIndex.setStatus('current') hwbgpAcctInPacketCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctInPacketCount.setStatus('current') hwbgpAcctInOctetCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctInOctetCount.setStatus('current') hwbgpAcctOutPacketCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctOutPacketCount.setStatus('current') hwbgpAcctOutOctetCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwbgpAcctOutOctetCount.setStatus('current') hwBgpAcctConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2)) hwBgpAcctCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 1)) hwBgpAcctCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 1, 1)).setObjects(("HUAWEI-BGP-ACCOUNTING-MIB", "hwBgpAcctCfgGroup"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwBgpAcctStatGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwBgpAcctCompliance = hwBgpAcctCompliance.setStatus('current') hwBgpAcctStatGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2)) hwBgpAcctCfgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2, 1)).setObjects(("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctCfgIfIndex"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctSrcOrDest"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctDirection")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwBgpAcctCfgGroup = hwBgpAcctCfgGroup.setStatus('current') hwBgpAcctStatGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2, 2)).setObjects(("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctStatIfIndex"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctTrafficIndex"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctInPacketCount"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctInOctetCount"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctOutPacketCount"), ("HUAWEI-BGP-ACCOUNTING-MIB", "hwbgpAcctOutOctetCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwBgpAcctStatGroup = hwBgpAcctStatGroup.setStatus('current') mibBuilder.exportSymbols("HUAWEI-BGP-ACCOUNTING-MIB", hwbgpAcctInOctetCount=hwbgpAcctInOctetCount, hwbgpAcctOutPacketCount=hwbgpAcctOutPacketCount, hwBgpAcctConformance=hwBgpAcctConformance, hwBgpAcctCfgTable=hwBgpAcctCfgTable, hwbgpAcctInPacketCount=hwbgpAcctInPacketCount, hwbgpAcctOutOctetCount=hwbgpAcctOutOctetCount, hwBgpAcctCompliances=hwBgpAcctCompliances, hwbgpAcctDirection=hwbgpAcctDirection, hwBgpAcctMIB=hwBgpAcctMIB, hwBgpAcctCfgEntry=hwBgpAcctCfgEntry, hwBgpAcctStatEntry=hwBgpAcctStatEntry, DirectionType=DirectionType, hwBgpAcctCfgGroup=hwBgpAcctCfgGroup, hwbgpAcctStatIfIndex=hwbgpAcctStatIfIndex, hwBgpAcctStatGroups=hwBgpAcctStatGroups, PYSNMP_MODULE_ID=hwBgpAcctMIB, AddressType=AddressType, hwbgpAcctCfgIfIndex=hwbgpAcctCfgIfIndex, hwBgpAcctStatTable=hwBgpAcctStatTable, hwBgpAcctCompliance=hwBgpAcctCompliance, hwBgpAcctMIBObjects=hwBgpAcctMIBObjects, hwbgpAcctTrafficIndex=hwbgpAcctTrafficIndex, hwbgpAcctCfgRowStatus=hwbgpAcctCfgRowStatus, hwBgpAcctStatGroup=hwBgpAcctStatGroup, hwbgpAcctSrcOrDest=hwbgpAcctSrcOrDest)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_union, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (notification_type, object_identity, module_identity, unsigned32, counter64, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, time_ticks, counter32, mib_identifier, ip_address, iso, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'ObjectIdentity', 'ModuleIdentity', 'Unsigned32', 'Counter64', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'TimeTicks', 'Counter32', 'MibIdentifier', 'IpAddress', 'iso', 'Bits') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') hw_bgp_acct_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39)) if mibBuilder.loadTexts: hwBgpAcctMIB.setLastUpdated('200705100000Z') if mibBuilder.loadTexts: hwBgpAcctMIB.setOrganization('Huawei Technologies co.,Ltd.') class Addresstype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2)) named_values = named_values(('invalid', 0), ('source', 1), ('destination', 2)) class Directiontype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('invalid', 0), ('inbound', 1), ('outbound', 2), ('inboundAndOutbound', 3)) hw_bgp_acct_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1)) hw_bgp_acct_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1)) if mibBuilder.loadTexts: hwBgpAcctCfgTable.setStatus('current') hw_bgp_acct_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1)).setIndexNames((0, 'HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctCfgIfIndex')) if mibBuilder.loadTexts: hwBgpAcctCfgEntry.setStatus('current') hwbgp_acct_cfg_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctCfgIfIndex.setStatus('current') hwbgp_acct_src_or_dest = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 2), address_type().clone(2)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwbgpAcctSrcOrDest.setStatus('current') hwbgp_acct_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 3), direction_type().clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwbgpAcctDirection.setStatus('current') hwbgp_acct_cfg_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 1, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwbgpAcctCfgRowStatus.setStatus('current') hw_bgp_acct_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2)) if mibBuilder.loadTexts: hwBgpAcctStatTable.setStatus('current') hw_bgp_acct_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1)).setIndexNames((0, 'HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctStatIfIndex'), (0, 'HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctTrafficIndex')) if mibBuilder.loadTexts: hwBgpAcctStatEntry.setStatus('current') hwbgp_acct_stat_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctStatIfIndex.setStatus('current') hwbgp_acct_traffic_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctTrafficIndex.setStatus('current') hwbgp_acct_in_packet_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctInPacketCount.setStatus('current') hwbgp_acct_in_octet_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctInOctetCount.setStatus('current') hwbgp_acct_out_packet_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctOutPacketCount.setStatus('current') hwbgp_acct_out_octet_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 1, 2, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwbgpAcctOutOctetCount.setStatus('current') hw_bgp_acct_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2)) hw_bgp_acct_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 1)) hw_bgp_acct_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 1, 1)).setObjects(('HUAWEI-BGP-ACCOUNTING-MIB', 'hwBgpAcctCfgGroup'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwBgpAcctStatGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_bgp_acct_compliance = hwBgpAcctCompliance.setStatus('current') hw_bgp_acct_stat_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2)) hw_bgp_acct_cfg_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2, 1)).setObjects(('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctCfgIfIndex'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctSrcOrDest'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctDirection')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_bgp_acct_cfg_group = hwBgpAcctCfgGroup.setStatus('current') hw_bgp_acct_stat_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 39, 2, 2, 2)).setObjects(('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctStatIfIndex'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctTrafficIndex'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctInPacketCount'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctInOctetCount'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctOutPacketCount'), ('HUAWEI-BGP-ACCOUNTING-MIB', 'hwbgpAcctOutOctetCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_bgp_acct_stat_group = hwBgpAcctStatGroup.setStatus('current') mibBuilder.exportSymbols('HUAWEI-BGP-ACCOUNTING-MIB', hwbgpAcctInOctetCount=hwbgpAcctInOctetCount, hwbgpAcctOutPacketCount=hwbgpAcctOutPacketCount, hwBgpAcctConformance=hwBgpAcctConformance, hwBgpAcctCfgTable=hwBgpAcctCfgTable, hwbgpAcctInPacketCount=hwbgpAcctInPacketCount, hwbgpAcctOutOctetCount=hwbgpAcctOutOctetCount, hwBgpAcctCompliances=hwBgpAcctCompliances, hwbgpAcctDirection=hwbgpAcctDirection, hwBgpAcctMIB=hwBgpAcctMIB, hwBgpAcctCfgEntry=hwBgpAcctCfgEntry, hwBgpAcctStatEntry=hwBgpAcctStatEntry, DirectionType=DirectionType, hwBgpAcctCfgGroup=hwBgpAcctCfgGroup, hwbgpAcctStatIfIndex=hwbgpAcctStatIfIndex, hwBgpAcctStatGroups=hwBgpAcctStatGroups, PYSNMP_MODULE_ID=hwBgpAcctMIB, AddressType=AddressType, hwbgpAcctCfgIfIndex=hwbgpAcctCfgIfIndex, hwBgpAcctStatTable=hwBgpAcctStatTable, hwBgpAcctCompliance=hwBgpAcctCompliance, hwBgpAcctMIBObjects=hwBgpAcctMIBObjects, hwbgpAcctTrafficIndex=hwbgpAcctTrafficIndex, hwbgpAcctCfgRowStatus=hwbgpAcctCfgRowStatus, hwBgpAcctStatGroup=hwBgpAcctStatGroup, hwbgpAcctSrcOrDest=hwbgpAcctSrcOrDest)
class Solution: def intersection(self, nums1, nums2): return list(set(nums1) & set(nums2)) if __name__ == '__main__': print(Solution().intersection([4, 9, 5], [9, 4, 9, 8, 4])) # [9, 4]
class Solution: def intersection(self, nums1, nums2): return list(set(nums1) & set(nums2)) if __name__ == '__main__': print(solution().intersection([4, 9, 5], [9, 4, 9, 8, 4]))
class Solution: def hammingDistance(self, x, y): result = x^y return bin(result).count('1')
class Solution: def hamming_distance(self, x, y): result = x ^ y return bin(result).count('1')
trunk_capacity = float(input()) is_trunk_full = False number_of_baggage = 0 command = input() while command != 'End': current_luggage = float(command) trunk_capacity -= current_luggage number_of_baggage += 1 if number_of_baggage % 3 == 0: trunk_capacity -= current_luggage * 0.1 if trunk_capacity <= 0: is_trunk_full = True number_of_baggage -= 1 break command = input() if is_trunk_full: print('No more space!') print(f'Statistic: {number_of_baggage} suitcases loaded.') else: print(f'Congratulations! All suitcases are loaded!') print(f'Statistic: {number_of_baggage} suitcases loaded.')
trunk_capacity = float(input()) is_trunk_full = False number_of_baggage = 0 command = input() while command != 'End': current_luggage = float(command) trunk_capacity -= current_luggage number_of_baggage += 1 if number_of_baggage % 3 == 0: trunk_capacity -= current_luggage * 0.1 if trunk_capacity <= 0: is_trunk_full = True number_of_baggage -= 1 break command = input() if is_trunk_full: print('No more space!') print(f'Statistic: {number_of_baggage} suitcases loaded.') else: print(f'Congratulations! All suitcases are loaded!') print(f'Statistic: {number_of_baggage} suitcases loaded.')
name1 = input("Write your name: ").lower() name2 = input("Write other person's name: ").lower() joinedName = name1 + name2 def loveCounter(countParameter): count1 = 0 for i in countParameter: count1 += joinedName.count(i) return count1 trueCount = loveCounter("true") loveCount = loveCounter("love") percentage= int((str(trueCount) + str(loveCount))) if percentage<10 or percentage>90: print(f"Your Percentage is {percentage}, you go together like coke and mentos") if percentage < 50 and percentage > 40: print(f"Your Percentage is {percentage}, you are alright together") else: print(f"Your Percentage is {percentage}")
name1 = input('Write your name: ').lower() name2 = input("Write other person's name: ").lower() joined_name = name1 + name2 def love_counter(countParameter): count1 = 0 for i in countParameter: count1 += joinedName.count(i) return count1 true_count = love_counter('true') love_count = love_counter('love') percentage = int(str(trueCount) + str(loveCount)) if percentage < 10 or percentage > 90: print(f'Your Percentage is {percentage}, you go together like coke and mentos') if percentage < 50 and percentage > 40: print(f'Your Percentage is {percentage}, you are alright together') else: print(f'Your Percentage is {percentage}')
def add3(x, y=0, z=0): return x + y + z def mul3(x=1, y=1, z=1): return x * y * z def doubler_premier_kwds(votre, signature): # TODO: votre code pass
def add3(x, y=0, z=0): return x + y + z def mul3(x=1, y=1, z=1): return x * y * z def doubler_premier_kwds(votre, signature): pass
name_list= ['Sharon','Mic','Josh','Hannah','Hansel'] height_list = [172,166,187,200,166] weight_list = [59.5,65.6,49.8,64.2,47.5] size_list = ['M','L','S','M','S']\ details_list = [['Sharon', 'F', 33], ['Mic', 'M', 24], ['Josh', 'M', 25 ], ['Hannah', 'F', 30], ['Hanzel', 'M', 26]] gender = [] age = [] bmi_list = [] bmr_list = [] for i in range(len(name_list)): bmi = weight_list[i]/((height_list[i]/100)**2) bmi_list.append('{:.2f}'.format(bmi)) temp = details_list[i] gender.append(temp[1]) age.append(temp[2]) if gender[i] == 'M': bmr = 66.47 + (13.7*weight_list[i]+(5*height_list[i])-(6.8*age[i])) bmr_list.append('{:.2f}'.format(bmr)) else: bmr = 655.1 + (9.6*weight_list[i]+(1.8*height_list[i])-(4.7*age[i])) bmr_list.append('{:.2f}'.format(bmr)) print("{:<10} {:<8} {:<8} {:<8} {:<8} {:<5} {:<10}".format('Name','Weight','Height','BMI','Gender','Age','BMR')) for i in range(len(name_list)): print("{:<10} {:<8} {:<8} {:<8} {:<8} {:<5} {:<10}".format(name_list[i], weight_list[i],height_list[i],bmi_list[i],gender[i],age[i],bmr_list[i]))
name_list = ['Sharon', 'Mic', 'Josh', 'Hannah', 'Hansel'] height_list = [172, 166, 187, 200, 166] weight_list = [59.5, 65.6, 49.8, 64.2, 47.5] size_list = ['M', 'L', 'S', 'M', 'S'] details_list = [['Sharon', 'F', 33], ['Mic', 'M', 24], ['Josh', 'M', 25], ['Hannah', 'F', 30], ['Hanzel', 'M', 26]] gender = [] age = [] bmi_list = [] bmr_list = [] for i in range(len(name_list)): bmi = weight_list[i] / (height_list[i] / 100) ** 2 bmi_list.append('{:.2f}'.format(bmi)) temp = details_list[i] gender.append(temp[1]) age.append(temp[2]) if gender[i] == 'M': bmr = 66.47 + (13.7 * weight_list[i] + 5 * height_list[i] - 6.8 * age[i]) bmr_list.append('{:.2f}'.format(bmr)) else: bmr = 655.1 + (9.6 * weight_list[i] + 1.8 * height_list[i] - 4.7 * age[i]) bmr_list.append('{:.2f}'.format(bmr)) print('{:<10} {:<8} {:<8} {:<8} {:<8} {:<5} {:<10}'.format('Name', 'Weight', 'Height', 'BMI', 'Gender', 'Age', 'BMR')) for i in range(len(name_list)): print('{:<10} {:<8} {:<8} {:<8} {:<8} {:<5} {:<10}'.format(name_list[i], weight_list[i], height_list[i], bmi_list[i], gender[i], age[i], bmr_list[i]))
def fib(n): if (n <= 2): return 1 else: return fib(n-1) + fib(n-2)
def fib(n): if n <= 2: return 1 else: return fib(n - 1) + fib(n - 2)
i, j, k = (int(x) for x in input().split()) day = 0 for num in range(i, j+1): rev_num = int(str(num)[::-1]) if (num - rev_num) % k == 0: day += 1 print(day)
(i, j, k) = (int(x) for x in input().split()) day = 0 for num in range(i, j + 1): rev_num = int(str(num)[::-1]) if (num - rev_num) % k == 0: day += 1 print(day)
# Paths # Fill this according to own setup BACKGROUND_DIR = 'input/backgrounds/' BACKGROUND_GLOB_STRING = '*.jpg' POISSON_BLENDING_DIR = './pb' SELECTED_LIST_FILE = 'input/selected.txt' DISTRACTOR_LIST_FILE = 'input/neg_list.txt' DISTRACTOR_DIR = 'input/distractor_objects_dir/' DISTRACTOR_GLOB_STRING = '*.jpg' INVERTED_MASK = True # Set to true if white pixels represent background # Parameters for generator NUMBER_OF_WORKERS = 4 BLENDING_LIST = ['gaussian', 'none', 'box', 'motion'] # Parameters for images MIN_NO_OF_OBJECTS = 1 MAX_NO_OF_OBJECTS = 4 MIN_NO_OF_DISTRACTOR_OBJECTS = 0 MAX_NO_OF_DISTRACTOR_OBJECTS = 0 WIDTH = 640 HEIGHT = 480 MAX_ATTEMPTS_TO_SYNTHESIZE = 20 # Parameters for objects in images MIN_SCALE = 0.35 # min scale for scale augmentation MAX_SCALE = 0.5 # max scale for scale augmentation MAX_DEGREES = 30 # max rotation allowed during rotation augmentation MAX_TRUNCATION_FRACTION = 0.3 # max fraction to be truncated = MAX_TRUNCACTION_FRACTION*(WIDTH/HEIGHT) MAX_ALLOWED_IOU = 0 # IOU > MAX_ALLOWED_IOU is considered an occlusion MIN_WIDTH = 6 # Minimum width of object to use for data generation MIN_HEIGHT = 6 # Minimum height of object to use for data generation
background_dir = 'input/backgrounds/' background_glob_string = '*.jpg' poisson_blending_dir = './pb' selected_list_file = 'input/selected.txt' distractor_list_file = 'input/neg_list.txt' distractor_dir = 'input/distractor_objects_dir/' distractor_glob_string = '*.jpg' inverted_mask = True number_of_workers = 4 blending_list = ['gaussian', 'none', 'box', 'motion'] min_no_of_objects = 1 max_no_of_objects = 4 min_no_of_distractor_objects = 0 max_no_of_distractor_objects = 0 width = 640 height = 480 max_attempts_to_synthesize = 20 min_scale = 0.35 max_scale = 0.5 max_degrees = 30 max_truncation_fraction = 0.3 max_allowed_iou = 0 min_width = 6 min_height = 6
def poiEmails(): ''' find e-mail list ''' email_list = ["[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]" "[email protected]", "[email protected]", "[email protected]", "[email protected]", "joe'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "kevin'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "ken'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "'[email protected]", "[email protected]", "'david.delainey'@enron.com", "[email protected]", "delainey'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "ben'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "lawyer'.'[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "'[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]" ] return email_list
def poi_emails(): """ find e-mail list """ email_list = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]@enron.com', '[email protected]', '[email protected]', '[email protected]', "joe'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', "kevin'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', "ken'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', "'[email protected]", '[email protected]', "'david.delainey'@enron.com", '[email protected]', "delainey'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', "ben'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', "lawyer'.'[email protected]", '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', "'[email protected]", '[email protected]', '[email protected]', '[email protected]', '[email protected]'] return email_list
def alternatives(expected_result, indices): return { idx: expected_result for idx in indices } class ExpectedResult: def __init__(self, segment_list, non_empty): self.segment_list = segment_list self.non_empty = {} for index_type in ['a', 'ab', 'abc', 'tuple']: if index_type in non_empty: self.non_empty[index_type] = alternatives( self.segment_list, non_empty[index_type])
def alternatives(expected_result, indices): return {idx: expected_result for idx in indices} class Expectedresult: def __init__(self, segment_list, non_empty): self.segment_list = segment_list self.non_empty = {} for index_type in ['a', 'ab', 'abc', 'tuple']: if index_type in non_empty: self.non_empty[index_type] = alternatives(self.segment_list, non_empty[index_type])
class GPIO: PUD_UP = 0 BCM = 1000 FALLING = 2000 IN = 3000 # This is the GPIO state: add a value [16, 20, 21, 26] to simulate a # button that is pressed, remove it to indicate release. clear_gpios = set() @classmethod def setup(cls, port, mode, pull_up_down): pass @classmethod def setmode(cls, mode): pass @classmethod def add_event_detect(cls, port, edge, callback): pass @classmethod def input(cls, gpio): return 0 if gpio in GPIO.clear_gpios else 1
class Gpio: pud_up = 0 bcm = 1000 falling = 2000 in = 3000 clear_gpios = set() @classmethod def setup(cls, port, mode, pull_up_down): pass @classmethod def setmode(cls, mode): pass @classmethod def add_event_detect(cls, port, edge, callback): pass @classmethod def input(cls, gpio): return 0 if gpio in GPIO.clear_gpios else 1
test = { 'name': 'q1f', 'points': 2, 'suites': [ { 'cases': [ { 'code': '>>> ' 'FGpercent_table.index.values\n' 'array([1, 2, 3, 4, 5])', 'hidden': False, 'locked': False}, { 'code': '>>> FGpercent_table.shape\n' '(5, 15)', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
test = {'name': 'q1f', 'points': 2, 'suites': [{'cases': [{'code': '>>> FGpercent_table.index.values\narray([1, 2, 3, 4, 5])', 'hidden': False, 'locked': False}, {'code': '>>> FGpercent_table.shape\n(5, 15)', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
types_of_people = 10 # number x = f"There are {types_of_people} types of people." # f-string binary = "binary" # string do_not = "don't" # string y = f"Those who know {binary} and those who {do_not}." # f-string print(x) # print f-string print(y) # print f-string print(f"I said: {x}") # capsule f-string in f-string print(f"I also said: '{y}'") # capsule f-string in f-string; single-quote in double-quote hilarious = False # boolean joke_evaluation = "Isn't that joke so funny?! {}" # {} is placeholder print(joke_evaluation.format(hilarious)) # .format() replaces {} in string with real value w = "This is the left side of..." # string e = "a string with a right side." # string print(w + e) # string concatenation
types_of_people = 10 x = f'There are {types_of_people} types of people.' binary = 'binary' do_not = "don't" y = f'Those who know {binary} and those who {do_not}.' print(x) print(y) print(f'I said: {x}') print(f"I also said: '{y}'") hilarious = False joke_evaluation = "Isn't that joke so funny?! {}" print(joke_evaluation.format(hilarious)) w = 'This is the left side of...' e = 'a string with a right side.' print(w + e)
class Solution: def numComponents(self, head: ListNode, G: List[int]) -> int: ans = 0 G = set(G) while head: if head.val in G and (head.next == None or head.next.val not in G): ans += 1 head = head.next return ans
class Solution: def num_components(self, head: ListNode, G: List[int]) -> int: ans = 0 g = set(G) while head: if head.val in G and (head.next == None or head.next.val not in G): ans += 1 head = head.next return ans
class SimpleIter: def __init__(self): pass def __iter__(self): return 'Nope' s = SimpleIter() print('__iter__' in dir(s) ) # => True def is_iterable(obj): try: iter(obj) return True except TypeError: return False obj = 100 if is_iterable(obj): for i in obj: print(i) else: print('Error: obj is not iterable') obj = 100 if is_iterable(obj): for i in obj: print(i) else: print('Error: obj is not iterable') print('Taking some action as a consequence of this error') obj = 100 try: for i in obj: print(i) except TypeError: print('Error: obj is not iterable') print('Taking some action as a consequence of this error') # True # Error: obj is not iterable # Error: obj is not iterable # Taking some action as a consequence of this error # Error: obj is not iterable # Taking some action as a consequence of this error
class Simpleiter: def __init__(self): pass def __iter__(self): return 'Nope' s = simple_iter() print('__iter__' in dir(s)) def is_iterable(obj): try: iter(obj) return True except TypeError: return False obj = 100 if is_iterable(obj): for i in obj: print(i) else: print('Error: obj is not iterable') obj = 100 if is_iterable(obj): for i in obj: print(i) else: print('Error: obj is not iterable') print('Taking some action as a consequence of this error') obj = 100 try: for i in obj: print(i) except TypeError: print('Error: obj is not iterable') print('Taking some action as a consequence of this error')
def firstDuplicate(a): counts = {} for c in a: if c in counts: return c counts[c] = 1 return -1 # a = [2, 1, 3, 5, 3, 2]
def first_duplicate(a): counts = {} for c in a: if c in counts: return c counts[c] = 1 return -1
description = 'memograph readout' tango_base = 'tango://ictrlfs.ictrl.frm2.tum.de:10000/memograph09/KWS123/' devices = dict( t_in_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'inlet temperature memograph', tangodevice = tango_base + 'T_in', ), t_out_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'outlet temperature memograph', tangodevice = tango_base + 'T_out', ), t_diff_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'temperature difference memograph', tangodevice = tango_base + 'T_diff', ), p_in_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'inlet pressure memograph', tangodevice = tango_base + 'P_in', ), p_out_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'outlet pressure memograph', tangodevice = tango_base + 'P_out', ), flow_in_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'inlet flow memograph', tangodevice = tango_base + 'FLOW_in', ), leak_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'leakage memograph', tangodevice = tango_base + 'Leak', ), cooling_memograph_kws123 = device('nicos.devices.entangle.Sensor', description = 'cooling power memograph', tangodevice = tango_base + 'Cooling', ), )
description = 'memograph readout' tango_base = 'tango://ictrlfs.ictrl.frm2.tum.de:10000/memograph09/KWS123/' devices = dict(t_in_memograph_kws123=device('nicos.devices.entangle.Sensor', description='inlet temperature memograph', tangodevice=tango_base + 'T_in'), t_out_memograph_kws123=device('nicos.devices.entangle.Sensor', description='outlet temperature memograph', tangodevice=tango_base + 'T_out'), t_diff_memograph_kws123=device('nicos.devices.entangle.Sensor', description='temperature difference memograph', tangodevice=tango_base + 'T_diff'), p_in_memograph_kws123=device('nicos.devices.entangle.Sensor', description='inlet pressure memograph', tangodevice=tango_base + 'P_in'), p_out_memograph_kws123=device('nicos.devices.entangle.Sensor', description='outlet pressure memograph', tangodevice=tango_base + 'P_out'), flow_in_memograph_kws123=device('nicos.devices.entangle.Sensor', description='inlet flow memograph', tangodevice=tango_base + 'FLOW_in'), leak_memograph_kws123=device('nicos.devices.entangle.Sensor', description='leakage memograph', tangodevice=tango_base + 'Leak'), cooling_memograph_kws123=device('nicos.devices.entangle.Sensor', description='cooling power memograph', tangodevice=tango_base + 'Cooling'))
def mul_inv(a, b): b0 = b x0, x1 = 0, 1 if b == 1: return 1 while a > 1: q = a / b a, b = b, a%b x0, x1 = x1 - q * x0, x0 if x1 < 0: x1 += b0 return x1 def chinese_remainder(n, a, lena): p = i = prod = 1; sm = 0 for i in range(lena): prod *= n[i] for i in range(lena): p = prod / n[i] sm += a[i] * mul_inv(p, n[i]) * p return sm % prod if __name__ == '__main__': n = [3, 5, 7] a = [2, 3, 2] print(chinese_remainder(n, a, len(n)))
def mul_inv(a, b): b0 = b (x0, x1) = (0, 1) if b == 1: return 1 while a > 1: q = a / b (a, b) = (b, a % b) (x0, x1) = (x1 - q * x0, x0) if x1 < 0: x1 += b0 return x1 def chinese_remainder(n, a, lena): p = i = prod = 1 sm = 0 for i in range(lena): prod *= n[i] for i in range(lena): p = prod / n[i] sm += a[i] * mul_inv(p, n[i]) * p return sm % prod if __name__ == '__main__': n = [3, 5, 7] a = [2, 3, 2] print(chinese_remainder(n, a, len(n)))
def treat_results(result_file, out_file, begin_index): out = open(out_file, 'w') ind = begin_index out.write('ID;intention\n') with open(result_file, 'r') as f: for line in f: new_line = line.replace('\n', '') out.write(str(ind) + ';' + new_line) out.write('\n') ind +=1 treat_results('data/created/results/log_reg_fasttext_and_other_v2_raw_C-500.csv', 'data/created/results/log_reg_fasttext_and_other_v2_C-500.csv', 8028)
def treat_results(result_file, out_file, begin_index): out = open(out_file, 'w') ind = begin_index out.write('ID;intention\n') with open(result_file, 'r') as f: for line in f: new_line = line.replace('\n', '') out.write(str(ind) + ';' + new_line) out.write('\n') ind += 1 treat_results('data/created/results/log_reg_fasttext_and_other_v2_raw_C-500.csv', 'data/created/results/log_reg_fasttext_and_other_v2_C-500.csv', 8028)
class Base: def __init__(self, func=None): if func is not None: self.execute = func def execute(self): print("Original execution") def constantFunction(self): print("This function won't change across derived classes") class DerivedA(Base): def __init__(self): super().__init__(executeReplacement1) class DerivedB(Base): def __init__(self): super().__init__(executeReplacement1) class DerivedC(Base): def __init__(self): super().__init__(executeReplacement2) def executeReplacement1(): print("Execution replaced with strategy 1") def executeReplacement2(): print("Execution replaced with strategy 2") if __name__ == "__main__": base = Base() childA = DerivedA() childB = DerivedB() childC = DerivedC() base.execute() childA.execute() childB.execute() childC.execute()
class Base: def __init__(self, func=None): if func is not None: self.execute = func def execute(self): print('Original execution') def constant_function(self): print("This function won't change across derived classes") class Deriveda(Base): def __init__(self): super().__init__(executeReplacement1) class Derivedb(Base): def __init__(self): super().__init__(executeReplacement1) class Derivedc(Base): def __init__(self): super().__init__(executeReplacement2) def execute_replacement1(): print('Execution replaced with strategy 1') def execute_replacement2(): print('Execution replaced with strategy 2') if __name__ == '__main__': base = base() child_a = derived_a() child_b = derived_b() child_c = derived_c() base.execute() childA.execute() childB.execute() childC.execute()
x = input().split() horainicial, minutoinicial, horafinal, minutofinal = x horainicial = int(x[0]) minutoinicial = int(x[1]) horafinal = int(x[2]) minutofinal = int(x[3]) if horainicial < horafinal: h = horafinal - horainicial if minutoinicial < minutofinal: m = minutofinal - minutoinicial if minutoinicial > minutofinal: h = h - 1 m = (60 - minutoinicial) + minutofinal if minutoinicial == minutofinal: m = 0 if horainicial > horafinal: h = (24 - horainicial) + horafinal if minutoinicial < minutofinal: m = minutofinal - minutoinicial if minutoinicial > minutofinal: h = h - 1 m = (60 - minutoinicial) + minutofinal if minutoinicial == minutofinal: m = 0 if horainicial == horafinal: if minutoinicial < minutofinal: m = minutofinal - minutoinicial h = 0 if minutoinicial > minutofinal: m = (60 - minutoinicial) + minutofinal h = 23 if minutoinicial == minutofinal: h = 24 m = 0 print('O JOGO DUROU {} HORA(S) E {} MINUTO(S)'.format(h, m))
x = input().split() (horainicial, minutoinicial, horafinal, minutofinal) = x horainicial = int(x[0]) minutoinicial = int(x[1]) horafinal = int(x[2]) minutofinal = int(x[3]) if horainicial < horafinal: h = horafinal - horainicial if minutoinicial < minutofinal: m = minutofinal - minutoinicial if minutoinicial > minutofinal: h = h - 1 m = 60 - minutoinicial + minutofinal if minutoinicial == minutofinal: m = 0 if horainicial > horafinal: h = 24 - horainicial + horafinal if minutoinicial < minutofinal: m = minutofinal - minutoinicial if minutoinicial > minutofinal: h = h - 1 m = 60 - minutoinicial + minutofinal if minutoinicial == minutofinal: m = 0 if horainicial == horafinal: if minutoinicial < minutofinal: m = minutofinal - minutoinicial h = 0 if minutoinicial > minutofinal: m = 60 - minutoinicial + minutofinal h = 23 if minutoinicial == minutofinal: h = 24 m = 0 print('O JOGO DUROU {} HORA(S) E {} MINUTO(S)'.format(h, m))
QB_NAME = input("What is the QB's name?") print(QB_NAME) RUSH_ATTEMPTS = 0 PASS_ATTEMPTS = 0 PASS_YARDS = 0 CURRENT_PASS_YARDS = 0 RUSH_YARDS = 0 CURRENT_RUSH_YARDS = 0 PASS_TD = 0 RUSH_TD = 0 SACKS = 0 SS = 0 INTC = 0 INC = 0 COM = 0 FUM = 0 TD = 0 QBR = 0 SACK_LIST = ["Number", "Of", "Sacks", "="] FUM_LIST = ["Number", "Of", "Fumbles", "="] GAME_OVER = 1 # 0 = Game over, 1 = Game Not Over while GAME_OVER == 1: PLAYTYPE = input("Please decide the play type. P for Pass, R for Rush, S For Sack, F for fumble :") print("You have selected the play type = to", PLAYTYPE) if PLAYTYPE == "P": PASS_TYPE = input("Is it complete (0), incomplete (1), or intercepted (2)?") print("You have selected the pass type = to", PASS_TYPE) PASS_ATTEMPTS = PASS_ATTEMPTS + 1 if PASS_TYPE == "0": CURRENT_PASS_YARDS = input("How many yards passed? :") PASS_YARDS = int(CURRENT_PASS_YARDS) + int(PASS_YARDS) print("New value of total passing yards for this QB is :", PASS_YARDS) COM = COM + 1 DID_SCORE = input("Did QB score touchdown? Y/N :") if DID_SCORE == "Y": TD = TD + 1 PASS_TD = PASS_TD + 1 print("Passing TD and total TDs has been increased to ", PASS_TD, "and", TD) else: print("Passing TD and total TDs has not been increased") if PASS_TYPE == "1": print("Incomplete") INC = INC + 1 print(INC) print("Thank You") if PASS_TYPE == "2": print("Intercepted") INTC = INTC + 1 print(INTC) print("Thank You") if PLAYTYPE == "R": CURRENT_RUSH_YARDS = input("How many yards Rushed?") RUSH_ATTEMPTS = RUSH_ATTEMPTS + 1 RUSH_YARDS = int(CURRENT_RUSH_YARDS) + int(RUSH_YARDS) print(RUSH_YARDS) DID_SCORE = input("Did QB Score? Y/N") if DID_SCORE == "Y": TD = TD + 1 print(TD) print("Thank You") else: print(TD) print("Thank You") if PLAYTYPE == "F": SS = input("Was it a strip sack? Y/N") if SS == "Y": SACKS = SACKS + 1 FUM = FUM + 1 print(FUM) print(SACKS) print("Thank You") if SS == "N": SACKS = SACKS + 1 print(SACKS) print("Thank You") if PLAYTYPE == "S": SACKS = SACKS + 1 print(SACKS) print("Thank You") GAME_OVER = int(input("Is game over. Please type 1 for no and 0 for yes: ")) print(GAME_OVER) def qbr_calc_function(com, pass_attempts, pass_td, intc, pass_yards): qbr_pt_1 = ((com/pass_attempts)-0.3)*5 qbr_pt_2 = ((pass_yards/pass_attempts)-3)*0.25 qbr_pt_3 = ((pass_td/pass_attempts)*20)+2.375 qbr_pt_4 = (intc/pass_attempts)*25 qbr = ((qbr_pt_1 + qbr_pt_2 + qbr_pt_3 - qbr_pt_4)/6)*100 return qbr QBR = qbr_calc_function(COM, PASS_ATTEMPTS, PASS_TD, INTC, PASS_YARDS) QBR = round(QBR, 1) RSH_YRD_PER_ATT = RUSH_YARDS/RUSH_ATTEMPTS PASS_YRD_PER_ATT = PASS_YARDS/PASS_ATTEMPTS INT_PCT = (INTC/PASS_ATTEMPTS) * 100 COMP_PCT = (COM/PASS_ATTEMPTS) * 100 PASS_TD_PCT = (PASS_TD/PASS_ATTEMPTS) * 100 print("Game is over") print("Please read the QB stats below for", QB_NAME) print("-------------------------Passing Stats-----------------------------") print("Passer Rating = ", QBR) print("Completions =", COM) print("Passing Attempts", PASS_ATTEMPTS) print("Completion Percentage =", COMP_PCT) print("Passing Yards =", PASS_YARDS) print("Yards Per Attempt =", PASS_YRD_PER_ATT) print("Number of Passing TDs =", PASS_TD) print("Number of INT =", INTC) print("Passing TD Percentage =", PASS_TD_PCT) print("Interception Percentage =", INT_PCT) print("-------------------------Rushing Stats-----------------------------") print("Rushing Attempts =", RUSH_ATTEMPTS) print("Rushing Yards =", RUSH_YARDS) print("Rushing Yards Per Attempt =", RSH_YRD_PER_ATT) print("Rushing TDs =", RUSH_TD) print("-------------------------Sacks and Fumble Stats--------------------") print(SACK_LIST[0], SACK_LIST[1], SACK_LIST[2], SACK_LIST[3], SACKS) print(FUM_LIST[0], FUM_LIST[1], FUM_LIST[2], FUM_LIST[3], FUM) print("-------------------------Stats Over--------------------------------")
qb_name = input("What is the QB's name?") print(QB_NAME) rush_attempts = 0 pass_attempts = 0 pass_yards = 0 current_pass_yards = 0 rush_yards = 0 current_rush_yards = 0 pass_td = 0 rush_td = 0 sacks = 0 ss = 0 intc = 0 inc = 0 com = 0 fum = 0 td = 0 qbr = 0 sack_list = ['Number', 'Of', 'Sacks', '='] fum_list = ['Number', 'Of', 'Fumbles', '='] game_over = 1 while GAME_OVER == 1: playtype = input('Please decide the play type. P for Pass, R for Rush, S For Sack, F for fumble :') print('You have selected the play type = to', PLAYTYPE) if PLAYTYPE == 'P': pass_type = input('Is it complete (0), incomplete (1), or intercepted (2)?') print('You have selected the pass type = to', PASS_TYPE) pass_attempts = PASS_ATTEMPTS + 1 if PASS_TYPE == '0': current_pass_yards = input('How many yards passed? :') pass_yards = int(CURRENT_PASS_YARDS) + int(PASS_YARDS) print('New value of total passing yards for this QB is :', PASS_YARDS) com = COM + 1 did_score = input('Did QB score touchdown? Y/N :') if DID_SCORE == 'Y': td = TD + 1 pass_td = PASS_TD + 1 print('Passing TD and total TDs has been increased to ', PASS_TD, 'and', TD) else: print('Passing TD and total TDs has not been increased') if PASS_TYPE == '1': print('Incomplete') inc = INC + 1 print(INC) print('Thank You') if PASS_TYPE == '2': print('Intercepted') intc = INTC + 1 print(INTC) print('Thank You') if PLAYTYPE == 'R': current_rush_yards = input('How many yards Rushed?') rush_attempts = RUSH_ATTEMPTS + 1 rush_yards = int(CURRENT_RUSH_YARDS) + int(RUSH_YARDS) print(RUSH_YARDS) did_score = input('Did QB Score? Y/N') if DID_SCORE == 'Y': td = TD + 1 print(TD) print('Thank You') else: print(TD) print('Thank You') if PLAYTYPE == 'F': ss = input('Was it a strip sack? Y/N') if SS == 'Y': sacks = SACKS + 1 fum = FUM + 1 print(FUM) print(SACKS) print('Thank You') if SS == 'N': sacks = SACKS + 1 print(SACKS) print('Thank You') if PLAYTYPE == 'S': sacks = SACKS + 1 print(SACKS) print('Thank You') game_over = int(input('Is game over. Please type 1 for no and 0 for yes: ')) print(GAME_OVER) def qbr_calc_function(com, pass_attempts, pass_td, intc, pass_yards): qbr_pt_1 = (com / pass_attempts - 0.3) * 5 qbr_pt_2 = (pass_yards / pass_attempts - 3) * 0.25 qbr_pt_3 = pass_td / pass_attempts * 20 + 2.375 qbr_pt_4 = intc / pass_attempts * 25 qbr = (qbr_pt_1 + qbr_pt_2 + qbr_pt_3 - qbr_pt_4) / 6 * 100 return qbr qbr = qbr_calc_function(COM, PASS_ATTEMPTS, PASS_TD, INTC, PASS_YARDS) qbr = round(QBR, 1) rsh_yrd_per_att = RUSH_YARDS / RUSH_ATTEMPTS pass_yrd_per_att = PASS_YARDS / PASS_ATTEMPTS int_pct = INTC / PASS_ATTEMPTS * 100 comp_pct = COM / PASS_ATTEMPTS * 100 pass_td_pct = PASS_TD / PASS_ATTEMPTS * 100 print('Game is over') print('Please read the QB stats below for', QB_NAME) print('-------------------------Passing Stats-----------------------------') print('Passer Rating = ', QBR) print('Completions =', COM) print('Passing Attempts', PASS_ATTEMPTS) print('Completion Percentage =', COMP_PCT) print('Passing Yards =', PASS_YARDS) print('Yards Per Attempt =', PASS_YRD_PER_ATT) print('Number of Passing TDs =', PASS_TD) print('Number of INT =', INTC) print('Passing TD Percentage =', PASS_TD_PCT) print('Interception Percentage =', INT_PCT) print('-------------------------Rushing Stats-----------------------------') print('Rushing Attempts =', RUSH_ATTEMPTS) print('Rushing Yards =', RUSH_YARDS) print('Rushing Yards Per Attempt =', RSH_YRD_PER_ATT) print('Rushing TDs =', RUSH_TD) print('-------------------------Sacks and Fumble Stats--------------------') print(SACK_LIST[0], SACK_LIST[1], SACK_LIST[2], SACK_LIST[3], SACKS) print(FUM_LIST[0], FUM_LIST[1], FUM_LIST[2], FUM_LIST[3], FUM) print('-------------------------Stats Over--------------------------------')
''' A list rotation consists of taking the last element and moving it to the front. For instance, if we rotate the list [1,2,3,4,5], we get [5,1,2,3,4]. If we rotate it again, we get [4,5,1,2,3]. Write a Python function rotatelist(l,k) that takes a list l and a positive integer k and returns the list l after k rotations. If k is not positive, your function should return l unchanged. Note that your function should not change l itself, and should return the rotated list. Here are some examples to show how your function should work. >>> rotatelist([1,2,3,4,5],1) [5, 1, 2, 3, 4] >>> rotatelist([1,2,3,4,5],3) [3, 4, 5, 1, 2] >>> rotatelist([1,2,3,4,5],12) [4, 5, 1, 2, 3] ''' def rotatelist(l, k): a = l i = 0 while i < k: b = [] b.append(a[-1]) a = b + a[:-1] i += 1 return a print(rotatelist([1,2,3,4,5],2))
""" A list rotation consists of taking the last element and moving it to the front. For instance, if we rotate the list [1,2,3,4,5], we get [5,1,2,3,4]. If we rotate it again, we get [4,5,1,2,3]. Write a Python function rotatelist(l,k) that takes a list l and a positive integer k and returns the list l after k rotations. If k is not positive, your function should return l unchanged. Note that your function should not change l itself, and should return the rotated list. Here are some examples to show how your function should work. >>> rotatelist([1,2,3,4,5],1) [5, 1, 2, 3, 4] >>> rotatelist([1,2,3,4,5],3) [3, 4, 5, 1, 2] >>> rotatelist([1,2,3,4,5],12) [4, 5, 1, 2, 3] """ def rotatelist(l, k): a = l i = 0 while i < k: b = [] b.append(a[-1]) a = b + a[:-1] i += 1 return a print(rotatelist([1, 2, 3, 4, 5], 2))
# # PySNMP MIB module CISCO-SME-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SME-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:12:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") FcNameId, = mibBuilder.importSymbols("CISCO-ST-TC", "FcNameId") ifDescr, InterfaceIndex = mibBuilder.importSymbols("IF-MIB", "ifDescr", "InterfaceIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") TimeTicks, ModuleIdentity, Bits, Integer32, Unsigned32, ObjectIdentity, Counter32, Counter64, IpAddress, MibIdentifier, iso, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "Bits", "Integer32", "Unsigned32", "ObjectIdentity", "Counter32", "Counter64", "IpAddress", "MibIdentifier", "iso", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType") StorageType, RowStatus, DisplayString, TruthValue, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "RowStatus", "DisplayString", "TruthValue", "TextualConvention", "TimeStamp") ciscoSmeMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 632)) ciscoSmeMIB.setRevisions(('2008-03-28 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoSmeMIB.setRevisionsDescriptions(('Initial version',)) if mibBuilder.loadTexts: ciscoSmeMIB.setLastUpdated('200803280000Z') if mibBuilder.loadTexts: ciscoSmeMIB.setOrganization('Cisco Systems Inc. ') if mibBuilder.loadTexts: ciscoSmeMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoSmeMIB.setDescription('MIB module to manage Storage Media Encryption (SME) service. SME is an encryption service provided by an encryption node residing on a linecard in a storage device. It receives clear-text data from host, encrypts it, then sends it to be written to tape or disk. It does the reverse in the opposite direction so the service is completely transparent to the host. The purpose of this service is to enhance data security in case the tape or disk is lost or stolen. As with any important service, user requires that it provides some level of fault tolerant in a graceful manner. SME provides this by allowing encryption nodes to be grouped into cluster. Nodes in the same cluster immediately pick up the work of a failed node so user does not see service disruption.') ciscoSmeMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 0)) ciscoSmeMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 1)) ciscoSmeMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2)) cSmeConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1)) class CiscoSmeInterfaceStatus(TextualConvention, Integer32): description = "Operational state of the SME interface. 'unknown(1)' -- interface is in an unknown state 'initializing(2)' -- interface is being initialized 'offline(3)' -- interface is not active 'online(4)' -- interface is online and can be used" status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("unknown", 1), ("initializing", 2), ("offline", 3), ("online", 4)) class CiscoSmeClusterStatus(TextualConvention, Integer32): description = "Operational state of the SME cluster 'unknown(1)' -- cluster is in an unknown state 'inactive(2)' -- cluster is not active 'degraded(3)' -- cluster has lost some of its members 'recovery(4)' -- cluster is recovering from membership lost 'active(5)' -- cluster is active" status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("unknown", 1), ("inactive", 2), ("degraded", 3), ("recovery", 4), ("active", 5)) class CiscoSmeClusterIndex(TextualConvention, OctetString): description = 'This denotes the globally unique index for a SME cluster. The value of the CiscoSmeClusterIndex is a thirty-two-octet unsigned integer value encoded in a network-byte order.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(32, 32) fixedLength = 32 cSmeClusterTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1), ) if mibBuilder.loadTexts: cSmeClusterTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterTable.setDescription('This table lists all the SME clusters that are configured on this device. As with any important service, user requires that it provides some level of fault tolerant in a graceful manner. SME provides this by allowing encryption nodes to be grouped into cluster. Nodes in the same cluster immediately pick up the work of a failed node so user does not see service disruption.') cSmeClusterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-SME-MIB", "cSmeClusterId")) if mibBuilder.loadTexts: cSmeClusterEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterEntry.setDescription('A conceptual row in the cSmeClusterTable. Each row represents a SME cluster in the system and provides the runtime and configuration information of a cluster.') cSmeClusterId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 1), CiscoSmeClusterIndex()) if mibBuilder.loadTexts: cSmeClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeClusterId.setDescription('Globally unique index that identifies a SME cluster. This index must be generated in such a way that the same value is never reused even after cluster has been deleted.') cSmeClusterName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeClusterName.setStatus('current') if mibBuilder.loadTexts: cSmeClusterName.setDescription('The name of the SME cluster.') cSmeClusterState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 3), CiscoSmeClusterStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeClusterState.setStatus('current') if mibBuilder.loadTexts: cSmeClusterState.setDescription('The operational state of the SME cluster.') cSmeClusterMasterInetAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 4), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeClusterMasterInetAddrType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMasterInetAddrType.setDescription('The type of Internet address of the SME cluster master. The Internet address of SME cluster master is specified by the value of the corresponding instance of cSmeClusterMasterInetAddr.') cSmeClusterMasterInetAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 5), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeClusterMasterInetAddr.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMasterInetAddr.setDescription('The Internet address of the SME cluster master device. The type of this Internet address is determined by the value of the corresponding instance of cSmeClusterMasterInetAddrType.') cSmeClusterStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 6), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeClusterStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterStorageType.setDescription('This object specifies the storage type for this conceptual row.') cSmeClusterRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeClusterRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeClusterRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active.') cSmeClusterMembersTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2), ) if mibBuilder.loadTexts: cSmeClusterMembersTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMembersTable.setDescription('This table lists the information of devices, local or remote, which are members of SME clusters configured on a device.') cSmeClusterMembersEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-SME-MIB", "cSmeClusterId"), (0, "CISCO-SME-MIB", "cSmeMemberInetAddrType"), (0, "CISCO-SME-MIB", "cSmeMemberInetAddr")) if mibBuilder.loadTexts: cSmeClusterMembersEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMembersEntry.setDescription('A conceptual row in the cSmeClusterMembersTable. Each row represents a member device within a specified SME Cluster.') cSmeMemberInetAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 1), InetAddressType()) if mibBuilder.loadTexts: cSmeMemberInetAddrType.setStatus('current') if mibBuilder.loadTexts: cSmeMemberInetAddrType.setDescription('The type of Internet address of a cluster member within a specified SME cluster. The Internet address of this device is specified by the value of the corresponding instance of cSmeMemberInetAddr.') cSmeMemberInetAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 2), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(0, 32))) if mibBuilder.loadTexts: cSmeMemberInetAddr.setStatus('current') if mibBuilder.loadTexts: cSmeMemberInetAddr.setDescription('The Internet address of the cluster member device within a specified SME cluster. The type of this Internet address is determined by the value of the corresponding instance of cSmeMemberInetAddrType.') cSmeFabric = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeFabric.setStatus('current') if mibBuilder.loadTexts: cSmeFabric.setDescription('Refers to the name of physical fibre channel fabric in the SAN. A typical SAN deployment consists of a dual fabric topology which corresponds to two physical fabrics. In such a deployment, a VSAN and a cluster is configured in both fabrics to allow multi-pathing and redundancy. The user specifies the physical fabric to which a device belongs to when the cluster is configured.') cSmeIsMemberLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeIsMemberLocal.setStatus('current') if mibBuilder.loadTexts: cSmeIsMemberLocal.setDescription("Identifies if the device is a local or remote member of this cluster. 'true' means this device is a local device. 'false' means this device is a remote device.") cSmeMemberIsMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeMemberIsMaster.setStatus('current') if mibBuilder.loadTexts: cSmeMemberIsMaster.setDescription("Indicates if this device is currently the master of the SME cluster. The value 'true' means this device is the master. The value 'false' means this device is not the master. Devices in a cluster select one of the cluster member to be a master. The master is responsible for handling cluster membership.") cSmeClusterMemberStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 6), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeClusterMemberStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberStorageType.setDescription('This object specifies the storage type for this conceptual row.') cSmeClusterMemberRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeClusterMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active. When a cluster is deleted, all entries in this table should be purged automatically.') cSmeClusterMemberIfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3), ) if mibBuilder.loadTexts: cSmeClusterMemberIfTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberIfTable.setDescription('This table lists the information of SME interfaces on all devices, local or remote, which are members of SME clusters configured on a device.') cSmeClusterMemberIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1), ).setIndexNames((0, "CISCO-SME-MIB", "cSmeClusterId"), (0, "CISCO-SME-MIB", "cSmeMemberInetAddrType"), (0, "CISCO-SME-MIB", "cSmeMemberInetAddr"), (0, "CISCO-SME-MIB", "cSmeClusterInterfaceIndex")) if mibBuilder.loadTexts: cSmeClusterMemberIfEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberIfEntry.setDescription('A conceptual row in the cSmeClusterMemberIfTable. Each row represents a participating interface on local/remote device member within the specified SME cluster.') cSmeClusterInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cSmeClusterInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: cSmeClusterInterfaceIndex.setDescription('A unique Interface index for a SME interface on a device in this cluster. This is the same as ifIndex of the ifTable of RFC1213.') cSmeClusterInterfaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1, 2), CiscoSmeInterfaceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeClusterInterfaceState.setStatus('current') if mibBuilder.loadTexts: cSmeClusterInterfaceState.setDescription('The operational state of this SME interface.') cSmeInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4), ) if mibBuilder.loadTexts: cSmeInterfaceTable.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceTable.setDescription('This table lists all SME interfaces on the local device and its corresponding information.') cSmeInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1), ).setIndexNames((0, "CISCO-SME-MIB", "cSmeInterfaceIndex")) if mibBuilder.loadTexts: cSmeInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceEntry.setDescription('A conceptual row in the cSmeInterfaceTable. Each row represents a particular SME interface on a local device.') cSmeInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cSmeInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceIndex.setDescription('A unique Interface index for a SME interface on this device. This is the same as ifIndex of the ifTable of RFC1213.') cSmeInterfaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 2), CiscoSmeInterfaceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeInterfaceState.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceState.setDescription('Operational state of this SME interface.') cSmeInterfaceClusterId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 3), CiscoSmeClusterIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeInterfaceClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceClusterId.setDescription('Identifies the cluster to which this SME interface belongs.') cSmeInterfaceStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 4), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeInterfaceStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceStorageType.setDescription('This object specifies the storage type for this conceptual row.') cSmeInterfaceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeInterfaceRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active. For example, cSmeInterfaceClusterId column can be set independently later.') cSmeHostPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5), ) if mibBuilder.loadTexts: cSmeHostPortTable.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortTable.setDescription('This table lists the hosts that are configured for SME. In the case of application servers, the disks that are accessed by the hosts may be encrypted. In the case of backup/restore master/media servers, the tapes accessed by the hosts may be encrypted.') cSmeHostPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-SME-MIB", "cSmeHostPortName")) if mibBuilder.loadTexts: cSmeHostPortEntry.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortEntry.setDescription('A conceptual row in the cSmeHostPortTable. Each row represents a particular host configured for SME service in a particular cluster.') cSmeHostPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 1), FcNameId()) if mibBuilder.loadTexts: cSmeHostPortName.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortName.setDescription('Fibre-channel Port name (P_WWN) of the Host Nx_Port.') cSmeHostPortClusterId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 2), CiscoSmeClusterIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeHostPortClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortClusterId.setDescription('Identifies the cluster to which this host port belongs.') cSmeHostPortStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 3), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeHostPortStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortStorageType.setDescription('This object specifies the storage type for this conceptual row.') cSmeHostPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cSmeHostPortRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active.') cSmeConfigTableLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeConfigTableLastChanged.setStatus('current') if mibBuilder.loadTexts: cSmeConfigTableLastChanged.setDescription('The value of sysUpTime when a change to any SME MIB table other than the cSmeHostPortTable last occurred.') cSmeHostPortTableLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 7), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cSmeHostPortTableLastChanged.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortTableLastChanged.setDescription('The value of sysUpTime when a change to cSmeHostPortTable last occurred.') cSmeNotifyEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 8), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cSmeNotifyEnable.setStatus('current') if mibBuilder.loadTexts: cSmeNotifyEnable.setDescription("This object specifies if the SME notifications should be generated or not. If the value of this object is 'true', then the notifications are generated. If the value of this object is 'false, then the notifications are not generated.") ciscoSmeInterfaceCreate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 1)).setObjects(("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: ciscoSmeInterfaceCreate.setStatus('current') if mibBuilder.loadTexts: ciscoSmeInterfaceCreate.setDescription('This notification is generated when a SME interface associated with a local device is created.') ciscoSmeInterfaceDelete = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 2)).setObjects(("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: ciscoSmeInterfaceDelete.setStatus('current') if mibBuilder.loadTexts: ciscoSmeInterfaceDelete.setDescription('This notification is generated when a SME interface associated with a local device is deleted.') ciscoSmeClusterNewMaster = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 3)).setObjects(("CISCO-SME-MIB", "cSmeClusterName"), ("CISCO-SME-MIB", "cSmeClusterMasterInetAddrType"), ("CISCO-SME-MIB", "cSmeClusterMasterInetAddr")) if mibBuilder.loadTexts: ciscoSmeClusterNewMaster.setStatus('current') if mibBuilder.loadTexts: ciscoSmeClusterNewMaster.setDescription('This notification is generated when the sending device who is participating in a SME cluster has transitioned to be the master of the cluster.') ciscoSmeMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 1)) ciscoSmeMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2)) ciscoSmeMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 1, 1)).setObjects(("CISCO-SME-MIB", "ciscoSmeConfigGroup"), ("CISCO-SME-MIB", "ciscoSmeNotifControlGroup"), ("CISCO-SME-MIB", "ciscoSmeNotifsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSmeMIBCompliance = ciscoSmeMIBCompliance.setStatus('current') if mibBuilder.loadTexts: ciscoSmeMIBCompliance.setDescription('The compliance statement for entities that implement SME.') ciscoSmeConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 1)).setObjects(("CISCO-SME-MIB", "cSmeClusterState"), ("CISCO-SME-MIB", "cSmeClusterMasterInetAddrType"), ("CISCO-SME-MIB", "cSmeClusterMasterInetAddr"), ("CISCO-SME-MIB", "cSmeIsMemberLocal"), ("CISCO-SME-MIB", "cSmeClusterInterfaceState"), ("CISCO-SME-MIB", "cSmeInterfaceState"), ("CISCO-SME-MIB", "cSmeInterfaceClusterId"), ("CISCO-SME-MIB", "cSmeHostPortClusterId"), ("CISCO-SME-MIB", "cSmeConfigTableLastChanged"), ("CISCO-SME-MIB", "cSmeHostPortTableLastChanged"), ("CISCO-SME-MIB", "cSmeFabric"), ("CISCO-SME-MIB", "cSmeClusterName"), ("CISCO-SME-MIB", "cSmeInterfaceRowStatus"), ("CISCO-SME-MIB", "cSmeClusterRowStatus"), ("CISCO-SME-MIB", "cSmeMemberIsMaster"), ("CISCO-SME-MIB", "cSmeClusterMemberRowStatus"), ("CISCO-SME-MIB", "cSmeClusterStorageType"), ("CISCO-SME-MIB", "cSmeClusterMemberStorageType"), ("CISCO-SME-MIB", "cSmeInterfaceStorageType"), ("CISCO-SME-MIB", "cSmeHostPortStorageType"), ("CISCO-SME-MIB", "cSmeHostPortRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSmeConfigGroup = ciscoSmeConfigGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeConfigGroup.setDescription('A collection of objects for SME configuration.') ciscoSmeNotifControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 2)).setObjects(("CISCO-SME-MIB", "cSmeNotifyEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSmeNotifControlGroup = ciscoSmeNotifControlGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeNotifControlGroup.setDescription('A collection of objects for controlling SME notification.') ciscoSmeNotifsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 3)).setObjects(("CISCO-SME-MIB", "ciscoSmeInterfaceCreate"), ("CISCO-SME-MIB", "ciscoSmeInterfaceDelete"), ("CISCO-SME-MIB", "ciscoSmeClusterNewMaster")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSmeNotifsGroup = ciscoSmeNotifsGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeNotifsGroup.setDescription('A collection of objects for notification of SME events.') mibBuilder.exportSymbols("CISCO-SME-MIB", cSmeClusterMemberStorageType=cSmeClusterMemberStorageType, cSmeClusterTable=cSmeClusterTable, cSmeHostPortStorageType=cSmeHostPortStorageType, PYSNMP_MODULE_ID=ciscoSmeMIB, ciscoSmeNotifsGroup=ciscoSmeNotifsGroup, ciscoSmeConfigGroup=ciscoSmeConfigGroup, cSmeClusterStorageType=cSmeClusterStorageType, ciscoSmeInterfaceCreate=ciscoSmeInterfaceCreate, cSmeClusterEntry=cSmeClusterEntry, cSmeHostPortTable=cSmeHostPortTable, cSmeClusterMembersEntry=cSmeClusterMembersEntry, cSmeIsMemberLocal=cSmeIsMemberLocal, cSmeHostPortName=cSmeHostPortName, cSmeConfigTableLastChanged=cSmeConfigTableLastChanged, cSmeInterfaceIndex=cSmeInterfaceIndex, cSmeClusterInterfaceIndex=cSmeClusterInterfaceIndex, cSmeClusterMemberRowStatus=cSmeClusterMemberRowStatus, ciscoSmeClusterNewMaster=ciscoSmeClusterNewMaster, ciscoSmeMIB=ciscoSmeMIB, cSmeClusterInterfaceState=cSmeClusterInterfaceState, cSmeMemberIsMaster=cSmeMemberIsMaster, ciscoSmeInterfaceDelete=ciscoSmeInterfaceDelete, ciscoSmeMIBGroups=ciscoSmeMIBGroups, cSmeClusterMemberIfEntry=cSmeClusterMemberIfEntry, cSmeClusterMasterInetAddr=cSmeClusterMasterInetAddr, CiscoSmeClusterStatus=CiscoSmeClusterStatus, cSmeMemberInetAddrType=cSmeMemberInetAddrType, ciscoSmeNotifControlGroup=ciscoSmeNotifControlGroup, cSmeClusterMasterInetAddrType=cSmeClusterMasterInetAddrType, cSmeClusterName=cSmeClusterName, cSmeHostPortEntry=cSmeHostPortEntry, ciscoSmeMIBCompliance=ciscoSmeMIBCompliance, cSmeConfig=cSmeConfig, cSmeClusterId=cSmeClusterId, CiscoSmeInterfaceStatus=CiscoSmeInterfaceStatus, cSmeFabric=cSmeFabric, ciscoSmeMIBNotifs=ciscoSmeMIBNotifs, CiscoSmeClusterIndex=CiscoSmeClusterIndex, cSmeInterfaceState=cSmeInterfaceState, cSmeInterfaceStorageType=cSmeInterfaceStorageType, cSmeInterfaceTable=cSmeInterfaceTable, cSmeNotifyEnable=cSmeNotifyEnable, cSmeMemberInetAddr=cSmeMemberInetAddr, cSmeClusterMemberIfTable=cSmeClusterMemberIfTable, cSmeInterfaceEntry=cSmeInterfaceEntry, cSmeClusterMembersTable=cSmeClusterMembersTable, cSmeHostPortRowStatus=cSmeHostPortRowStatus, cSmeInterfaceRowStatus=cSmeInterfaceRowStatus, cSmeInterfaceClusterId=cSmeInterfaceClusterId, cSmeHostPortClusterId=cSmeHostPortClusterId, ciscoSmeMIBConform=ciscoSmeMIBConform, ciscoSmeMIBObjects=ciscoSmeMIBObjects, cSmeHostPortTableLastChanged=cSmeHostPortTableLastChanged, ciscoSmeMIBCompliances=ciscoSmeMIBCompliances, cSmeClusterState=cSmeClusterState, cSmeClusterRowStatus=cSmeClusterRowStatus)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_range_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (fc_name_id,) = mibBuilder.importSymbols('CISCO-ST-TC', 'FcNameId') (if_descr, interface_index) = mibBuilder.importSymbols('IF-MIB', 'ifDescr', 'InterfaceIndex') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (time_ticks, module_identity, bits, integer32, unsigned32, object_identity, counter32, counter64, ip_address, mib_identifier, iso, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'Bits', 'Integer32', 'Unsigned32', 'ObjectIdentity', 'Counter32', 'Counter64', 'IpAddress', 'MibIdentifier', 'iso', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType') (storage_type, row_status, display_string, truth_value, textual_convention, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'StorageType', 'RowStatus', 'DisplayString', 'TruthValue', 'TextualConvention', 'TimeStamp') cisco_sme_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 632)) ciscoSmeMIB.setRevisions(('2008-03-28 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoSmeMIB.setRevisionsDescriptions(('Initial version',)) if mibBuilder.loadTexts: ciscoSmeMIB.setLastUpdated('200803280000Z') if mibBuilder.loadTexts: ciscoSmeMIB.setOrganization('Cisco Systems Inc. ') if mibBuilder.loadTexts: ciscoSmeMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoSmeMIB.setDescription('MIB module to manage Storage Media Encryption (SME) service. SME is an encryption service provided by an encryption node residing on a linecard in a storage device. It receives clear-text data from host, encrypts it, then sends it to be written to tape or disk. It does the reverse in the opposite direction so the service is completely transparent to the host. The purpose of this service is to enhance data security in case the tape or disk is lost or stolen. As with any important service, user requires that it provides some level of fault tolerant in a graceful manner. SME provides this by allowing encryption nodes to be grouped into cluster. Nodes in the same cluster immediately pick up the work of a failed node so user does not see service disruption.') cisco_sme_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 0)) cisco_sme_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 1)) cisco_sme_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2)) c_sme_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1)) class Ciscosmeinterfacestatus(TextualConvention, Integer32): description = "Operational state of the SME interface. 'unknown(1)' -- interface is in an unknown state 'initializing(2)' -- interface is being initialized 'offline(3)' -- interface is not active 'online(4)' -- interface is online and can be used" status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('unknown', 1), ('initializing', 2), ('offline', 3), ('online', 4)) class Ciscosmeclusterstatus(TextualConvention, Integer32): description = "Operational state of the SME cluster 'unknown(1)' -- cluster is in an unknown state 'inactive(2)' -- cluster is not active 'degraded(3)' -- cluster has lost some of its members 'recovery(4)' -- cluster is recovering from membership lost 'active(5)' -- cluster is active" status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('unknown', 1), ('inactive', 2), ('degraded', 3), ('recovery', 4), ('active', 5)) class Ciscosmeclusterindex(TextualConvention, OctetString): description = 'This denotes the globally unique index for a SME cluster. The value of the CiscoSmeClusterIndex is a thirty-two-octet unsigned integer value encoded in a network-byte order.' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(32, 32) fixed_length = 32 c_sme_cluster_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1)) if mibBuilder.loadTexts: cSmeClusterTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterTable.setDescription('This table lists all the SME clusters that are configured on this device. As with any important service, user requires that it provides some level of fault tolerant in a graceful manner. SME provides this by allowing encryption nodes to be grouped into cluster. Nodes in the same cluster immediately pick up the work of a failed node so user does not see service disruption.') c_sme_cluster_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-SME-MIB', 'cSmeClusterId')) if mibBuilder.loadTexts: cSmeClusterEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterEntry.setDescription('A conceptual row in the cSmeClusterTable. Each row represents a SME cluster in the system and provides the runtime and configuration information of a cluster.') c_sme_cluster_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 1), cisco_sme_cluster_index()) if mibBuilder.loadTexts: cSmeClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeClusterId.setDescription('Globally unique index that identifies a SME cluster. This index must be generated in such a way that the same value is never reused even after cluster has been deleted.') c_sme_cluster_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeClusterName.setStatus('current') if mibBuilder.loadTexts: cSmeClusterName.setDescription('The name of the SME cluster.') c_sme_cluster_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 3), cisco_sme_cluster_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeClusterState.setStatus('current') if mibBuilder.loadTexts: cSmeClusterState.setDescription('The operational state of the SME cluster.') c_sme_cluster_master_inet_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 4), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeClusterMasterInetAddrType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMasterInetAddrType.setDescription('The type of Internet address of the SME cluster master. The Internet address of SME cluster master is specified by the value of the corresponding instance of cSmeClusterMasterInetAddr.') c_sme_cluster_master_inet_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 5), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeClusterMasterInetAddr.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMasterInetAddr.setDescription('The Internet address of the SME cluster master device. The type of this Internet address is determined by the value of the corresponding instance of cSmeClusterMasterInetAddrType.') c_sme_cluster_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 6), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeClusterStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterStorageType.setDescription('This object specifies the storage type for this conceptual row.') c_sme_cluster_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 1, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeClusterRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeClusterRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active.') c_sme_cluster_members_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2)) if mibBuilder.loadTexts: cSmeClusterMembersTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMembersTable.setDescription('This table lists the information of devices, local or remote, which are members of SME clusters configured on a device.') c_sme_cluster_members_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-SME-MIB', 'cSmeClusterId'), (0, 'CISCO-SME-MIB', 'cSmeMemberInetAddrType'), (0, 'CISCO-SME-MIB', 'cSmeMemberInetAddr')) if mibBuilder.loadTexts: cSmeClusterMembersEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMembersEntry.setDescription('A conceptual row in the cSmeClusterMembersTable. Each row represents a member device within a specified SME Cluster.') c_sme_member_inet_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 1), inet_address_type()) if mibBuilder.loadTexts: cSmeMemberInetAddrType.setStatus('current') if mibBuilder.loadTexts: cSmeMemberInetAddrType.setDescription('The type of Internet address of a cluster member within a specified SME cluster. The Internet address of this device is specified by the value of the corresponding instance of cSmeMemberInetAddr.') c_sme_member_inet_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 2), inet_address().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: cSmeMemberInetAddr.setStatus('current') if mibBuilder.loadTexts: cSmeMemberInetAddr.setDescription('The Internet address of the cluster member device within a specified SME cluster. The type of this Internet address is determined by the value of the corresponding instance of cSmeMemberInetAddrType.') c_sme_fabric = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 3), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeFabric.setStatus('current') if mibBuilder.loadTexts: cSmeFabric.setDescription('Refers to the name of physical fibre channel fabric in the SAN. A typical SAN deployment consists of a dual fabric topology which corresponds to two physical fabrics. In such a deployment, a VSAN and a cluster is configured in both fabrics to allow multi-pathing and redundancy. The user specifies the physical fabric to which a device belongs to when the cluster is configured.') c_sme_is_member_local = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeIsMemberLocal.setStatus('current') if mibBuilder.loadTexts: cSmeIsMemberLocal.setDescription("Identifies if the device is a local or remote member of this cluster. 'true' means this device is a local device. 'false' means this device is a remote device.") c_sme_member_is_master = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeMemberIsMaster.setStatus('current') if mibBuilder.loadTexts: cSmeMemberIsMaster.setDescription("Indicates if this device is currently the master of the SME cluster. The value 'true' means this device is the master. The value 'false' means this device is not the master. Devices in a cluster select one of the cluster member to be a master. The master is responsible for handling cluster membership.") c_sme_cluster_member_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 6), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeClusterMemberStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberStorageType.setDescription('This object specifies the storage type for this conceptual row.') c_sme_cluster_member_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 2, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeClusterMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active. When a cluster is deleted, all entries in this table should be purged automatically.') c_sme_cluster_member_if_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3)) if mibBuilder.loadTexts: cSmeClusterMemberIfTable.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberIfTable.setDescription('This table lists the information of SME interfaces on all devices, local or remote, which are members of SME clusters configured on a device.') c_sme_cluster_member_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1)).setIndexNames((0, 'CISCO-SME-MIB', 'cSmeClusterId'), (0, 'CISCO-SME-MIB', 'cSmeMemberInetAddrType'), (0, 'CISCO-SME-MIB', 'cSmeMemberInetAddr'), (0, 'CISCO-SME-MIB', 'cSmeClusterInterfaceIndex')) if mibBuilder.loadTexts: cSmeClusterMemberIfEntry.setStatus('current') if mibBuilder.loadTexts: cSmeClusterMemberIfEntry.setDescription('A conceptual row in the cSmeClusterMemberIfTable. Each row represents a participating interface on local/remote device member within the specified SME cluster.') c_sme_cluster_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1, 1), interface_index()) if mibBuilder.loadTexts: cSmeClusterInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: cSmeClusterInterfaceIndex.setDescription('A unique Interface index for a SME interface on a device in this cluster. This is the same as ifIndex of the ifTable of RFC1213.') c_sme_cluster_interface_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 3, 1, 2), cisco_sme_interface_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeClusterInterfaceState.setStatus('current') if mibBuilder.loadTexts: cSmeClusterInterfaceState.setDescription('The operational state of this SME interface.') c_sme_interface_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4)) if mibBuilder.loadTexts: cSmeInterfaceTable.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceTable.setDescription('This table lists all SME interfaces on the local device and its corresponding information.') c_sme_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1)).setIndexNames((0, 'CISCO-SME-MIB', 'cSmeInterfaceIndex')) if mibBuilder.loadTexts: cSmeInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceEntry.setDescription('A conceptual row in the cSmeInterfaceTable. Each row represents a particular SME interface on a local device.') c_sme_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 1), interface_index()) if mibBuilder.loadTexts: cSmeInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceIndex.setDescription('A unique Interface index for a SME interface on this device. This is the same as ifIndex of the ifTable of RFC1213.') c_sme_interface_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 2), cisco_sme_interface_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeInterfaceState.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceState.setDescription('Operational state of this SME interface.') c_sme_interface_cluster_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 3), cisco_sme_cluster_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeInterfaceClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceClusterId.setDescription('Identifies the cluster to which this SME interface belongs.') c_sme_interface_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 4), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeInterfaceStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceStorageType.setDescription('This object specifies the storage type for this conceptual row.') c_sme_interface_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeInterfaceRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeInterfaceRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active. For example, cSmeInterfaceClusterId column can be set independently later.') c_sme_host_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5)) if mibBuilder.loadTexts: cSmeHostPortTable.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortTable.setDescription('This table lists the hosts that are configured for SME. In the case of application servers, the disks that are accessed by the hosts may be encrypted. In the case of backup/restore master/media servers, the tapes accessed by the hosts may be encrypted.') c_sme_host_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1)).setIndexNames((0, 'CISCO-SME-MIB', 'cSmeHostPortName')) if mibBuilder.loadTexts: cSmeHostPortEntry.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortEntry.setDescription('A conceptual row in the cSmeHostPortTable. Each row represents a particular host configured for SME service in a particular cluster.') c_sme_host_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 1), fc_name_id()) if mibBuilder.loadTexts: cSmeHostPortName.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortName.setDescription('Fibre-channel Port name (P_WWN) of the Host Nx_Port.') c_sme_host_port_cluster_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 2), cisco_sme_cluster_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeHostPortClusterId.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortClusterId.setDescription('Identifies the cluster to which this host port belongs.') c_sme_host_port_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 3), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeHostPortStorageType.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortStorageType.setDescription('This object specifies the storage type for this conceptual row.') c_sme_host_port_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 5, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cSmeHostPortRowStatus.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortRowStatus.setDescription('The status of this conceptual row. There is no restriction on the value of other columns before a newly created row can be made active.') c_sme_config_table_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 6), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeConfigTableLastChanged.setStatus('current') if mibBuilder.loadTexts: cSmeConfigTableLastChanged.setDescription('The value of sysUpTime when a change to any SME MIB table other than the cSmeHostPortTable last occurred.') c_sme_host_port_table_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 7), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cSmeHostPortTableLastChanged.setStatus('current') if mibBuilder.loadTexts: cSmeHostPortTableLastChanged.setDescription('The value of sysUpTime when a change to cSmeHostPortTable last occurred.') c_sme_notify_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 632, 1, 1, 8), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cSmeNotifyEnable.setStatus('current') if mibBuilder.loadTexts: cSmeNotifyEnable.setDescription("This object specifies if the SME notifications should be generated or not. If the value of this object is 'true', then the notifications are generated. If the value of this object is 'false, then the notifications are not generated.") cisco_sme_interface_create = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 1)).setObjects(('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: ciscoSmeInterfaceCreate.setStatus('current') if mibBuilder.loadTexts: ciscoSmeInterfaceCreate.setDescription('This notification is generated when a SME interface associated with a local device is created.') cisco_sme_interface_delete = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 2)).setObjects(('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: ciscoSmeInterfaceDelete.setStatus('current') if mibBuilder.loadTexts: ciscoSmeInterfaceDelete.setDescription('This notification is generated when a SME interface associated with a local device is deleted.') cisco_sme_cluster_new_master = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 632, 0, 3)).setObjects(('CISCO-SME-MIB', 'cSmeClusterName'), ('CISCO-SME-MIB', 'cSmeClusterMasterInetAddrType'), ('CISCO-SME-MIB', 'cSmeClusterMasterInetAddr')) if mibBuilder.loadTexts: ciscoSmeClusterNewMaster.setStatus('current') if mibBuilder.loadTexts: ciscoSmeClusterNewMaster.setDescription('This notification is generated when the sending device who is participating in a SME cluster has transitioned to be the master of the cluster.') cisco_sme_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 1)) cisco_sme_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2)) cisco_sme_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 1, 1)).setObjects(('CISCO-SME-MIB', 'ciscoSmeConfigGroup'), ('CISCO-SME-MIB', 'ciscoSmeNotifControlGroup'), ('CISCO-SME-MIB', 'ciscoSmeNotifsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_sme_mib_compliance = ciscoSmeMIBCompliance.setStatus('current') if mibBuilder.loadTexts: ciscoSmeMIBCompliance.setDescription('The compliance statement for entities that implement SME.') cisco_sme_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 1)).setObjects(('CISCO-SME-MIB', 'cSmeClusterState'), ('CISCO-SME-MIB', 'cSmeClusterMasterInetAddrType'), ('CISCO-SME-MIB', 'cSmeClusterMasterInetAddr'), ('CISCO-SME-MIB', 'cSmeIsMemberLocal'), ('CISCO-SME-MIB', 'cSmeClusterInterfaceState'), ('CISCO-SME-MIB', 'cSmeInterfaceState'), ('CISCO-SME-MIB', 'cSmeInterfaceClusterId'), ('CISCO-SME-MIB', 'cSmeHostPortClusterId'), ('CISCO-SME-MIB', 'cSmeConfigTableLastChanged'), ('CISCO-SME-MIB', 'cSmeHostPortTableLastChanged'), ('CISCO-SME-MIB', 'cSmeFabric'), ('CISCO-SME-MIB', 'cSmeClusterName'), ('CISCO-SME-MIB', 'cSmeInterfaceRowStatus'), ('CISCO-SME-MIB', 'cSmeClusterRowStatus'), ('CISCO-SME-MIB', 'cSmeMemberIsMaster'), ('CISCO-SME-MIB', 'cSmeClusterMemberRowStatus'), ('CISCO-SME-MIB', 'cSmeClusterStorageType'), ('CISCO-SME-MIB', 'cSmeClusterMemberStorageType'), ('CISCO-SME-MIB', 'cSmeInterfaceStorageType'), ('CISCO-SME-MIB', 'cSmeHostPortStorageType'), ('CISCO-SME-MIB', 'cSmeHostPortRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_sme_config_group = ciscoSmeConfigGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeConfigGroup.setDescription('A collection of objects for SME configuration.') cisco_sme_notif_control_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 2)).setObjects(('CISCO-SME-MIB', 'cSmeNotifyEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_sme_notif_control_group = ciscoSmeNotifControlGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeNotifControlGroup.setDescription('A collection of objects for controlling SME notification.') cisco_sme_notifs_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 632, 2, 2, 3)).setObjects(('CISCO-SME-MIB', 'ciscoSmeInterfaceCreate'), ('CISCO-SME-MIB', 'ciscoSmeInterfaceDelete'), ('CISCO-SME-MIB', 'ciscoSmeClusterNewMaster')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_sme_notifs_group = ciscoSmeNotifsGroup.setStatus('current') if mibBuilder.loadTexts: ciscoSmeNotifsGroup.setDescription('A collection of objects for notification of SME events.') mibBuilder.exportSymbols('CISCO-SME-MIB', cSmeClusterMemberStorageType=cSmeClusterMemberStorageType, cSmeClusterTable=cSmeClusterTable, cSmeHostPortStorageType=cSmeHostPortStorageType, PYSNMP_MODULE_ID=ciscoSmeMIB, ciscoSmeNotifsGroup=ciscoSmeNotifsGroup, ciscoSmeConfigGroup=ciscoSmeConfigGroup, cSmeClusterStorageType=cSmeClusterStorageType, ciscoSmeInterfaceCreate=ciscoSmeInterfaceCreate, cSmeClusterEntry=cSmeClusterEntry, cSmeHostPortTable=cSmeHostPortTable, cSmeClusterMembersEntry=cSmeClusterMembersEntry, cSmeIsMemberLocal=cSmeIsMemberLocal, cSmeHostPortName=cSmeHostPortName, cSmeConfigTableLastChanged=cSmeConfigTableLastChanged, cSmeInterfaceIndex=cSmeInterfaceIndex, cSmeClusterInterfaceIndex=cSmeClusterInterfaceIndex, cSmeClusterMemberRowStatus=cSmeClusterMemberRowStatus, ciscoSmeClusterNewMaster=ciscoSmeClusterNewMaster, ciscoSmeMIB=ciscoSmeMIB, cSmeClusterInterfaceState=cSmeClusterInterfaceState, cSmeMemberIsMaster=cSmeMemberIsMaster, ciscoSmeInterfaceDelete=ciscoSmeInterfaceDelete, ciscoSmeMIBGroups=ciscoSmeMIBGroups, cSmeClusterMemberIfEntry=cSmeClusterMemberIfEntry, cSmeClusterMasterInetAddr=cSmeClusterMasterInetAddr, CiscoSmeClusterStatus=CiscoSmeClusterStatus, cSmeMemberInetAddrType=cSmeMemberInetAddrType, ciscoSmeNotifControlGroup=ciscoSmeNotifControlGroup, cSmeClusterMasterInetAddrType=cSmeClusterMasterInetAddrType, cSmeClusterName=cSmeClusterName, cSmeHostPortEntry=cSmeHostPortEntry, ciscoSmeMIBCompliance=ciscoSmeMIBCompliance, cSmeConfig=cSmeConfig, cSmeClusterId=cSmeClusterId, CiscoSmeInterfaceStatus=CiscoSmeInterfaceStatus, cSmeFabric=cSmeFabric, ciscoSmeMIBNotifs=ciscoSmeMIBNotifs, CiscoSmeClusterIndex=CiscoSmeClusterIndex, cSmeInterfaceState=cSmeInterfaceState, cSmeInterfaceStorageType=cSmeInterfaceStorageType, cSmeInterfaceTable=cSmeInterfaceTable, cSmeNotifyEnable=cSmeNotifyEnable, cSmeMemberInetAddr=cSmeMemberInetAddr, cSmeClusterMemberIfTable=cSmeClusterMemberIfTable, cSmeInterfaceEntry=cSmeInterfaceEntry, cSmeClusterMembersTable=cSmeClusterMembersTable, cSmeHostPortRowStatus=cSmeHostPortRowStatus, cSmeInterfaceRowStatus=cSmeInterfaceRowStatus, cSmeInterfaceClusterId=cSmeInterfaceClusterId, cSmeHostPortClusterId=cSmeHostPortClusterId, ciscoSmeMIBConform=ciscoSmeMIBConform, ciscoSmeMIBObjects=ciscoSmeMIBObjects, cSmeHostPortTableLastChanged=cSmeHostPortTableLastChanged, ciscoSmeMIBCompliances=ciscoSmeMIBCompliances, cSmeClusterState=cSmeClusterState, cSmeClusterRowStatus=cSmeClusterRowStatus)
default_az_parameters = { "azure_cluster" : { "subscription": "Bing DLTS", "infra_node_num": 1, "worker_node_num": 2, "mysqlserver_node_num": 0, "nfs_node_num": 1, "azure_location": "westus2", "infra_vm_size" : "Standard_D1_v2", "worker_vm_size": "Standard_NC6", "mysqlserver_vm_size": "Standard_D1_v2", "nfs_vm_size": "Standard_D1_v2", "vm_image" : "Canonical:UbuntuServer:18.04-LTS:18.04.201907221", "vm_local_storage_sku" : "Premium_LRS", "infra_local_storage_sz" : 1023, "worker_local_storage_sz" : 1023, "mysqlserver_local_storage_sz": 2048, "nfs_data_disk_sku" : "Premium_LRS", "nfs_data_disk_sz" : 1023, "nfs_data_disk_num": 1, "nfs_data_disk_path": '/data', "nfs_vm": [], "eviction_policy": "Deallocate", "single_placement_group": "false", "default_low_priority_domain": "redmond.corp.microsoft.com", }, "cloud_config": { "nfs_ssh" : { "port": 22, }, "nfs_share": { "source_ips": ["192.168.0.0/16"], }, # "samba_range" : "192.168.0.0/16" }, "nfs_mnt_setup": [ { "mnt_point": { "rootshare":{ "curphysicalmountpoint":"/mntdlws/nfsshare","filesharename":"/data/nfsshare", "mountpoints":""} } } ], }
default_az_parameters = {'azure_cluster': {'subscription': 'Bing DLTS', 'infra_node_num': 1, 'worker_node_num': 2, 'mysqlserver_node_num': 0, 'nfs_node_num': 1, 'azure_location': 'westus2', 'infra_vm_size': 'Standard_D1_v2', 'worker_vm_size': 'Standard_NC6', 'mysqlserver_vm_size': 'Standard_D1_v2', 'nfs_vm_size': 'Standard_D1_v2', 'vm_image': 'Canonical:UbuntuServer:18.04-LTS:18.04.201907221', 'vm_local_storage_sku': 'Premium_LRS', 'infra_local_storage_sz': 1023, 'worker_local_storage_sz': 1023, 'mysqlserver_local_storage_sz': 2048, 'nfs_data_disk_sku': 'Premium_LRS', 'nfs_data_disk_sz': 1023, 'nfs_data_disk_num': 1, 'nfs_data_disk_path': '/data', 'nfs_vm': [], 'eviction_policy': 'Deallocate', 'single_placement_group': 'false', 'default_low_priority_domain': 'redmond.corp.microsoft.com'}, 'cloud_config': {'nfs_ssh': {'port': 22}, 'nfs_share': {'source_ips': ['192.168.0.0/16']}}, 'nfs_mnt_setup': [{'mnt_point': {'rootshare': {'curphysicalmountpoint': '/mntdlws/nfsshare', 'filesharename': '/data/nfsshare', 'mountpoints': ''}}}]}
train_config = {} # # MODEL PARAMETERS ## # # MNIST train_config['A'] = 28 # image width train_config['B'] = 28 # image height train_config['img_size'] = train_config['B'] * train_config['A'] # the canvas size train_config['draw_with_white'] = True # draw with white ink or black ink train_config['enc_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" train_config['enc_size'] = 256 # number of hidden units / output size in LSTM layer train_config['n_enc_layers'] = 1 # number of layers in encoder LSTM train_config['dec_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" train_config['dec_size'] = 256 train_config['n_dec_layers'] = 1 # number of layers in decoder LSTM train_config['n_hidden_units'] = 0 # number of hidden units on the linear layer train_config['z_size'] = 100 # QSampler output size train_config['T'] = 64 # MNIST generation sequence length train_config['read_n'] = 3 # read glimpse grid width/height train_config['write_n'] = 1 # write glimpse grid width/height train_config['write_radius'] = 3 train_config['read_attn'] = True train_config['read_size'] = 2 * train_config['read_n'] * train_config['read_n'] if train_config['read_attn'] else 2 * train_config['img_size'] train_config['write_attn'] = True train_config['write_size'] = train_config['write_n'] * train_config['write_n'] if train_config['write_attn'] else train_config['img_size'] train_config['batch_size'] = 100 # training minibatch size train_config['n_summary_per_batch'] = 10 train_config['n_epochs'] = 50 # number of times the entire dataset is processed during training train_config['save_checkpoints_every_epoch'] = 1 # save chpnt after atleast these many epochs # HOTSTART: Initialize canvas as cropped input image train_config['use_hot_start'] = False train_config['crop_fraction_increase_rate'] = 0.2 # rate at which cropped part is grown each epoch train_config['eps'] = 1e-8 # epsilon for numerical stability train_config['annealing_schedules'] = { # decay type: ['fixed', 'linear' or 'exponential'] "learning_rate": { "init": 1e-4, "min": 1e-7, "decay_type": "fixed", "factor": 0.1, "iters": 5000, "staircase": True }, # "write_decision_prior_log_odds": { # "init":2.71 ** -2, "min": 0.000000001, # "decay_type": "fixed", "factor": 0.1, "iters": 1000, # "staircase": False, "log": True # }, "write_decision_prior_log_odds": { "init":-2.0, "min":-9.0, "decay_type": "fixed", "factor":-0.25, "iters": 1000, "staircase": False }, "stop_writing_threshold": { "init": 25.0, "min": 15.0, "decay_type": "fixed", "factor": 0.2, "iters": 3000, "staircase": True }, } # # ETH # train_config['A'] = 32 # image width # train_config['B'] = 32 # image height # train_config['img_size'] = train_config['B'] * train_config['A'] # the canvas size # train_config['draw_with_white'] = False # draw with white ink or black ink # # train_config['enc_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" # train_config['enc_size'] = 400 # number of hidden units / output size in LSTM layer # train_config['n_enc_layers'] = 1 # number of layers in encoder LSTM # train_config['dec_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" # train_config['dec_size'] = 400 # train_config['n_dec_layers'] = 1 # number of layers in decoder LSTM # train_config['n_hidden_units'] = 64 # number of hidden units on the linear layer # train_config['z_size'] = 200 # QSampler output size # train_config['T'] = 100 # MNIST generation sequence length # # train_config['read_n'] = int(0.2 * max(train_config['A'], train_config['B'])) # read glimpse grid width/height # train_config['write_n'] = 1 # write glimpse grid width/height # train_config['write_radius'] = 4 # 0.125 * max(train_config['A'], train_config['B']) # train_config['read_attn'] = True # train_config['read_size'] = 2 * train_config['read_n'] * train_config['read_n'] if train_config['read_attn'] else 2 * train_config['img_size'] # train_config['write_attn'] = True # train_config['write_size'] = train_config['write_n'] * train_config['write_n'] if train_config['write_attn'] else train_config['img_size'] # # train_config['batch_size'] = 100 # training minibatch size # train_config['n_summary_per_batch'] = 10 # train_config['n_epochs'] = 20 # number of times the entire dataset is processed during training # train_config['save_checkpoints_every_epoch'] = 1 # save chpnt after atleast these many epochs # train_config['use_hot_start'] = False # Initialize canvas as cropped input image # train_config['crop_fraction_increase_rate'] = 0.25 # rate at which cropped part is grown # train_config['epochs_per_crop_fraction'] = 2 # TODO: number of epochs for each crop fraction # train_config['eps'] = 1e-8 # epsilon for numerical stability # train_config['annealing_schedules'] = { # decay type: ['fixed', 'linear' or 'exponential'] # "learning_rate": { # "init": 1e-4, "min": 1e-7, # "decay_type": "linear", "factor": 0.1, "iters": 5000, # "staircase": True # }, # "write_decision_prior_log_odds": { # "init": 10000.0, "min": 0.000000001, # "decay_type": "exponential", "factor": 0.1, "iters": 3000, # "staircase": False, "log": True # }, # "stop_writing_threshold": { # "init": 45.0, "min": 15.0, # "decay_type": "linear", "factor": 0.2, "iters": 3000, # "staircase": True # }, # } # # DEBUG # train_config['A'] = 4 # image width # train_config['B'] = 4 # image height # train_config['img_size'] = train_config['B'] * train_config['A'] # the canvas size # train_config['draw_with_white'] = False # draw with white ink or black ink # # train_config['enc_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" # train_config['enc_size'] = 5 # number of hidden units / output size in LSTM layer # train_config['n_enc_layers'] = 1 # number of layers in encoder LSTM # train_config['dec_rnn_mode'] = 'BASIC' # The low level implementation of lstm cell. choose between "BASIC", "BLOCK" and "GRU" # train_config['dec_size'] = 5 # train_config['n_dec_layers'] = 1 # number of layers in decoder LSTM # train_config['z_size'] = 5 # QSampler output size # train_config['T'] = 5 # MNIST generation sequence length # # train_config['read_n'] = 3 # read glimpse grid width/height # train_config['write_n'] = 1 # write glimpse grid width/height # train_config['write_radius'] = 2 # 0.125 * max(train_config['A'], train_config['B']) # train_config['read_attn'] = True # train_config['read_size'] = 2 * train_config['read_n'] * train_config['read_n'] if train_config['read_attn'] else 2 * train_config['img_size'] # train_config['write_attn'] = True # train_config['write_size'] = train_config['write_n'] * train_config['write_n'] if train_config['write_attn'] else train_config['img_size'] # # train_config['batch_size'] = 100 # training minibatch size # train_config['n_summary_per_batch'] = 2 # train_config['n_epochs'] = 2 # number of times the entire dataset is processed during training # train_config['save_checkpoints_every_epoch'] = 300 # save chpnt after atleast these many epochs # train_config['learning_rate'] = 1e-4 # learning rate for optimizer # train_config['learning_rate_type'] = 'fixed' # ['fixed', 'exponential', 'linear'] # train_config['learning_rate_decay_steps'] = 5000 # train_config['learning_rate_decay_rate'] = 0.1 # HOTSTART: Initialize canvas as cropped input image # train_config['use_hot_start'] = True # train_config['crop_fraction_increase_rate'] = 0.5 # rate at which cropped part is grown each epoch # train_config['eps'] = 1e-8 # epsilon for numerical stability # train_config['stop_writing_threshold'] = 10.0 # higher the threshold, longer the network is allowed to draw test_config = train_config.copy() test_config['model_dir'] = '/media/anurag/DATA-EXT/texture-synthesis/texture-datasets/ETH_Synthesizability/logs/DRAW_1556207845/' # TODO path to the model that you want to evaluate test_config['checkpoint_id'] = None # if None, the last checkpoint will be used # For layer-wise painting of a texture texture_config = test_config.copy() texture_config['batch_size'] = 1 texture_config['n_summary_per_batch'] = 1
train_config = {} train_config['A'] = 28 train_config['B'] = 28 train_config['img_size'] = train_config['B'] * train_config['A'] train_config['draw_with_white'] = True train_config['enc_rnn_mode'] = 'BASIC' train_config['enc_size'] = 256 train_config['n_enc_layers'] = 1 train_config['dec_rnn_mode'] = 'BASIC' train_config['dec_size'] = 256 train_config['n_dec_layers'] = 1 train_config['n_hidden_units'] = 0 train_config['z_size'] = 100 train_config['T'] = 64 train_config['read_n'] = 3 train_config['write_n'] = 1 train_config['write_radius'] = 3 train_config['read_attn'] = True train_config['read_size'] = 2 * train_config['read_n'] * train_config['read_n'] if train_config['read_attn'] else 2 * train_config['img_size'] train_config['write_attn'] = True train_config['write_size'] = train_config['write_n'] * train_config['write_n'] if train_config['write_attn'] else train_config['img_size'] train_config['batch_size'] = 100 train_config['n_summary_per_batch'] = 10 train_config['n_epochs'] = 50 train_config['save_checkpoints_every_epoch'] = 1 train_config['use_hot_start'] = False train_config['crop_fraction_increase_rate'] = 0.2 train_config['eps'] = 1e-08 train_config['annealing_schedules'] = {'learning_rate': {'init': 0.0001, 'min': 1e-07, 'decay_type': 'fixed', 'factor': 0.1, 'iters': 5000, 'staircase': True}, 'write_decision_prior_log_odds': {'init': -2.0, 'min': -9.0, 'decay_type': 'fixed', 'factor': -0.25, 'iters': 1000, 'staircase': False}, 'stop_writing_threshold': {'init': 25.0, 'min': 15.0, 'decay_type': 'fixed', 'factor': 0.2, 'iters': 3000, 'staircase': True}} test_config = train_config.copy() test_config['model_dir'] = '/media/anurag/DATA-EXT/texture-synthesis/texture-datasets/ETH_Synthesizability/logs/DRAW_1556207845/' test_config['checkpoint_id'] = None texture_config = test_config.copy() texture_config['batch_size'] = 1 texture_config['n_summary_per_batch'] = 1
def required_fuel(mass): return int(mass / 3) - 2 def fuel_calc(initial_fuel): fuel_on_fuel = required_fuel(initial_fuel) if (fuel_on_fuel) > 0: return fuel_on_fuel + fuel_calc(fuel_on_fuel) else: return 0 def calc(modules): return sum(required_fuel(int(x)) for x in modules) def calc_with_fuel(modules): return sum(fuel_calc(int(x)) for x in modules) if __name__ == "__main__": # part one samples assert(required_fuel(12) == 2) assert(required_fuel(14) == 2) assert(required_fuel(1969) == 654) assert(required_fuel(100756) == 33583) # part two samples assert(fuel_calc(14) == 2) assert(fuel_calc(1969) == 966) assert(fuel_calc(100756) == 50346) modules = open('inputs/day1.txt').readlines() print("initial fuel", calc(modules)) print('inc fuel', calc_with_fuel(modules))
def required_fuel(mass): return int(mass / 3) - 2 def fuel_calc(initial_fuel): fuel_on_fuel = required_fuel(initial_fuel) if fuel_on_fuel > 0: return fuel_on_fuel + fuel_calc(fuel_on_fuel) else: return 0 def calc(modules): return sum((required_fuel(int(x)) for x in modules)) def calc_with_fuel(modules): return sum((fuel_calc(int(x)) for x in modules)) if __name__ == '__main__': assert required_fuel(12) == 2 assert required_fuel(14) == 2 assert required_fuel(1969) == 654 assert required_fuel(100756) == 33583 assert fuel_calc(14) == 2 assert fuel_calc(1969) == 966 assert fuel_calc(100756) == 50346 modules = open('inputs/day1.txt').readlines() print('initial fuel', calc(modules)) print('inc fuel', calc_with_fuel(modules))
class Node: def __init__(self, value): self.value = value self.next = None def __repr__(self): return str(self.value) class LinkedList: def __init__(self): self.head = None def __str__(self): cur_head = self.head out_string = "" while cur_head: out_string += str(cur_head.value) + " -> " cur_head = cur_head.next return out_string def append(self, value): if self.head is None: self.head = Node(value) return node = self.head while node.next: node = node.next node.next = Node(value) def size(self): size = 0 node = self.head while node: size += 1 node = node.next return size def union(llist_1, llist_2): union_set = set([]) res_llist = LinkedList() curr_node = llist_1.head while curr_node: if curr_node.value not in union_set: union_set.add(curr_node.value) res_llist.append(curr_node.value) curr_node = curr_node.next curr_node = llist_2.head while curr_node: if curr_node.value not in union_set: res_llist.append(curr_node.value) curr_node = curr_node.next return res_llist def intersection(llist_1, llist_2): intersection_set = set([]) res_llist = LinkedList() curr_node = llist_1.head while curr_node: intersection_set.add(curr_node.value) curr_node = curr_node.next curr_node = llist_2.head while curr_node: if curr_node.value in intersection_set: res_llist.append(curr_node.value) curr_node = curr_node.next return res_llist # Test case 1 linked_list_1 = LinkedList() linked_list_2 = LinkedList() element_1 = [3,2,4,35,6,65,6,4,3,21] element_2 = [6,32,4,9,6,1,11,21,1] for i in element_1: linked_list_1.append(i) for i in element_2: linked_list_2.append(i) print("Union") print (union(linked_list_1,linked_list_2)) print("Intersection") print (intersection(linked_list_1,linked_list_2)) # Test case 2 linked_list_3 = LinkedList() linked_list_4 = LinkedList() element_1 = [3,2,4,35,6,65,6,4,3,23] element_2 = [1,7,8,9,11,21,1] for i in element_1: linked_list_3.append(i) for i in element_2: linked_list_4.append(i) print("Union") print (union(linked_list_3,linked_list_4)) print("Intersection") print (intersection(linked_list_3,linked_list_4)) #own test_cases print("Test Case 1 - empty linked list intersect") solution = None ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [1, 2, 3] element_2 = [4, 5, 6] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert(output.head == None) print("TestCase 1 passed! - Given output {0}; Expected output {1}".format(output.head, solution)) print("---------------------------") print("Test Case 2 - six elements in result - union") solution = "1 -> 2 -> 3 -> 4 -> 5 -> 6 -> " output = union(ll_1, ll_2) print(output) assert(str(output) == solution) print("TestCase 2 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------") print("Test Case 3 - one list empty union ") ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [1, 2, 3] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert(str(output) == str(ll_1)) print("TestCase 3 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------") print("Test Case 4 - union") solution = "1 -> 2 -> 3 -> 4 -> " ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [1, 2, 3] element_2 = [2, 3, 4] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert(str(output) == solution) print("TestCase 4 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------") print("Test Case 5 - intersection") solution = "2 -> 3 -> 4 -> " ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [1, 2, 3, 4, 5, 6] element_2 = [2, 3, 4, 7, 8, 9, 10] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert(str(output) == solution) print("TestCase 5 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------") print("Test Case 6 - intersection both lists empty") solution = "" ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert(str(output) == solution) print("TestCase 6 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------") print("Test Case 7 - union both lists empty") solution = "" ll_1 = LinkedList() ll_2 = LinkedList() element_1 = [] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert(str(output) == solution) print("TestCase 7 passed! - Given output {0}; Expected output {1}".format(output, solution)) print("---------------------------")
class Node: def __init__(self, value): self.value = value self.next = None def __repr__(self): return str(self.value) class Linkedlist: def __init__(self): self.head = None def __str__(self): cur_head = self.head out_string = '' while cur_head: out_string += str(cur_head.value) + ' -> ' cur_head = cur_head.next return out_string def append(self, value): if self.head is None: self.head = node(value) return node = self.head while node.next: node = node.next node.next = node(value) def size(self): size = 0 node = self.head while node: size += 1 node = node.next return size def union(llist_1, llist_2): union_set = set([]) res_llist = linked_list() curr_node = llist_1.head while curr_node: if curr_node.value not in union_set: union_set.add(curr_node.value) res_llist.append(curr_node.value) curr_node = curr_node.next curr_node = llist_2.head while curr_node: if curr_node.value not in union_set: res_llist.append(curr_node.value) curr_node = curr_node.next return res_llist def intersection(llist_1, llist_2): intersection_set = set([]) res_llist = linked_list() curr_node = llist_1.head while curr_node: intersection_set.add(curr_node.value) curr_node = curr_node.next curr_node = llist_2.head while curr_node: if curr_node.value in intersection_set: res_llist.append(curr_node.value) curr_node = curr_node.next return res_llist linked_list_1 = linked_list() linked_list_2 = linked_list() element_1 = [3, 2, 4, 35, 6, 65, 6, 4, 3, 21] element_2 = [6, 32, 4, 9, 6, 1, 11, 21, 1] for i in element_1: linked_list_1.append(i) for i in element_2: linked_list_2.append(i) print('Union') print(union(linked_list_1, linked_list_2)) print('Intersection') print(intersection(linked_list_1, linked_list_2)) linked_list_3 = linked_list() linked_list_4 = linked_list() element_1 = [3, 2, 4, 35, 6, 65, 6, 4, 3, 23] element_2 = [1, 7, 8, 9, 11, 21, 1] for i in element_1: linked_list_3.append(i) for i in element_2: linked_list_4.append(i) print('Union') print(union(linked_list_3, linked_list_4)) print('Intersection') print(intersection(linked_list_3, linked_list_4)) print('Test Case 1 - empty linked list intersect') solution = None ll_1 = linked_list() ll_2 = linked_list() element_1 = [1, 2, 3] element_2 = [4, 5, 6] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert output.head == None print('TestCase 1 passed! - Given output {0}; Expected output {1}'.format(output.head, solution)) print('---------------------------') print('Test Case 2 - six elements in result - union') solution = '1 -> 2 -> 3 -> 4 -> 5 -> 6 -> ' output = union(ll_1, ll_2) print(output) assert str(output) == solution print('TestCase 2 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------') print('Test Case 3 - one list empty union ') ll_1 = linked_list() ll_2 = linked_list() element_1 = [1, 2, 3] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert str(output) == str(ll_1) print('TestCase 3 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------') print('Test Case 4 - union') solution = '1 -> 2 -> 3 -> 4 -> ' ll_1 = linked_list() ll_2 = linked_list() element_1 = [1, 2, 3] element_2 = [2, 3, 4] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert str(output) == solution print('TestCase 4 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------') print('Test Case 5 - intersection') solution = '2 -> 3 -> 4 -> ' ll_1 = linked_list() ll_2 = linked_list() element_1 = [1, 2, 3, 4, 5, 6] element_2 = [2, 3, 4, 7, 8, 9, 10] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert str(output) == solution print('TestCase 5 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------') print('Test Case 6 - intersection both lists empty') solution = '' ll_1 = linked_list() ll_2 = linked_list() element_1 = [] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = intersection(ll_1, ll_2) print(output) assert str(output) == solution print('TestCase 6 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------') print('Test Case 7 - union both lists empty') solution = '' ll_1 = linked_list() ll_2 = linked_list() element_1 = [] element_2 = [] for i in element_1: ll_1.append(i) for i in element_2: ll_2.append(i) output = union(ll_1, ll_2) print(output) assert str(output) == solution print('TestCase 7 passed! - Given output {0}; Expected output {1}'.format(output, solution)) print('---------------------------')
class Board: def __init__(self, row = 6, column = 7): self.board = [['.' for x in range(column)]for y in range(row)] self.__row = row self.__column = column def __str__(self): string = "" for item in self.board: for position in item: string += position string += ' ' string += "\n" return string def findRow(self, insert_column, player): for i in range(self.__row - 1, -1, -1): if self.board[i][insert_column] == '.': self.board[i][insert_column] = player.getSymbol() return i def getRow(self): return self.__row[:] def getColumn(self): return self.__column[:] def isFull(self): return all(i != '.' for i in self.board[0]) class Player: def __init__(self, player_num, symbol, player): self.__playerNum = player_num self.__symbol = symbol self.__moves = [[] for x in range(7)] self.__name = player def getPlayerName(self): return self.__name def getPlayerNum(self): return self.__playerNum def getSymbol(self): return self.__symbol def getMoves(self): return self.__moves[:] def addMoves(self, row, column): self.__moves[column].append(row) def checkWin(self): if self.checkHorizontal() or self.checkVertical() or self.checkDiagonal1() or self.checkDiagonal2(): return True def checkHorizontal(self): num = 0 for i in range(len(self.__moves) - 3): for j in range(len(self.__moves[i])): index = i num = self.__moves[i][j] count = 1 for k in range(1,4): try: for item in self.__moves[index+k]: if item == num: count += 1 except: break if count == 4: return True return False def checkVertical(self): num = 0 for i in range(len(self.__moves)): if len(self.__moves[i]) >= 4: for j in range(len(self.__moves[i])): count = 1 index = j num = self.__moves[i][index] for k in range(1,4): try: if self.__moves[i][index + k] == (num - k): count += 1 else: break except: break if count == 4: return True return False def checkDiagonal1(self): for i in range(len(self.__moves)): if len(self.__moves[i]) > 0: for j in range(len(self.__moves[i])): index = j num = self.__moves[i][j] count = 1 for k in range(1,4): try: for item in self.__moves[i+k]: if item == num-k: count+=1 except: break if count == 4: return True return False def checkDiagonal2(self): for i in range(len(self.__moves)): if len(self.__moves[i]) > 0: for j in range(len(self.__moves[i])): index = j num = self.__moves[i][j] count = 1 for k in range(1,4): try: for item in self.__moves[i+k]: if item == num+k: count+=1 except: break if count == 4: return True return False
class Board: def __init__(self, row=6, column=7): self.board = [['.' for x in range(column)] for y in range(row)] self.__row = row self.__column = column def __str__(self): string = '' for item in self.board: for position in item: string += position string += ' ' string += '\n' return string def find_row(self, insert_column, player): for i in range(self.__row - 1, -1, -1): if self.board[i][insert_column] == '.': self.board[i][insert_column] = player.getSymbol() return i def get_row(self): return self.__row[:] def get_column(self): return self.__column[:] def is_full(self): return all((i != '.' for i in self.board[0])) class Player: def __init__(self, player_num, symbol, player): self.__playerNum = player_num self.__symbol = symbol self.__moves = [[] for x in range(7)] self.__name = player def get_player_name(self): return self.__name def get_player_num(self): return self.__playerNum def get_symbol(self): return self.__symbol def get_moves(self): return self.__moves[:] def add_moves(self, row, column): self.__moves[column].append(row) def check_win(self): if self.checkHorizontal() or self.checkVertical() or self.checkDiagonal1() or self.checkDiagonal2(): return True def check_horizontal(self): num = 0 for i in range(len(self.__moves) - 3): for j in range(len(self.__moves[i])): index = i num = self.__moves[i][j] count = 1 for k in range(1, 4): try: for item in self.__moves[index + k]: if item == num: count += 1 except: break if count == 4: return True return False def check_vertical(self): num = 0 for i in range(len(self.__moves)): if len(self.__moves[i]) >= 4: for j in range(len(self.__moves[i])): count = 1 index = j num = self.__moves[i][index] for k in range(1, 4): try: if self.__moves[i][index + k] == num - k: count += 1 else: break except: break if count == 4: return True return False def check_diagonal1(self): for i in range(len(self.__moves)): if len(self.__moves[i]) > 0: for j in range(len(self.__moves[i])): index = j num = self.__moves[i][j] count = 1 for k in range(1, 4): try: for item in self.__moves[i + k]: if item == num - k: count += 1 except: break if count == 4: return True return False def check_diagonal2(self): for i in range(len(self.__moves)): if len(self.__moves[i]) > 0: for j in range(len(self.__moves[i])): index = j num = self.__moves[i][j] count = 1 for k in range(1, 4): try: for item in self.__moves[i + k]: if item == num + k: count += 1 except: break if count == 4: return True return False
## ## # File auto-generated against equivalent DynamicSerialize Java class # Jul 27, 2015 4654 skorolev Added filters class AlertVizRequest(object): def __init__(self): self.message = None self.machine = None self.priority = None self.sourceKey = None self.category = None self.audioFile = None self.filters = None def getMessage(self): return self.message def setMessage(self, message): self.message = message def getMachine(self): return self.machine def setMachine(self, machine): self.machine = machine def getPriority(self): return self.priority def setPriority(self, priority): self.priority = priority def getSourceKey(self): return self.sourceKey def setSourceKey(self, sourceKey): self.sourceKey = sourceKey def getCategory(self): return self.category def setCategory(self, category): self.category = category def getAudioFile(self): return self.audioFile def setAudioFile(self, audioFile): self.audioFile = audioFile def getFilters(self): return self.filters def setFilters(self, filters): if filters is None: self.filters = {} elif not(None in filters or filters.values().count(None)>0 or '' in filters or filters.values().count('')>0): self.filters = filters else: raise ValueError('Filters must not contain None or empty keys or values: %s' % filters)
class Alertvizrequest(object): def __init__(self): self.message = None self.machine = None self.priority = None self.sourceKey = None self.category = None self.audioFile = None self.filters = None def get_message(self): return self.message def set_message(self, message): self.message = message def get_machine(self): return self.machine def set_machine(self, machine): self.machine = machine def get_priority(self): return self.priority def set_priority(self, priority): self.priority = priority def get_source_key(self): return self.sourceKey def set_source_key(self, sourceKey): self.sourceKey = sourceKey def get_category(self): return self.category def set_category(self, category): self.category = category def get_audio_file(self): return self.audioFile def set_audio_file(self, audioFile): self.audioFile = audioFile def get_filters(self): return self.filters def set_filters(self, filters): if filters is None: self.filters = {} elif not (None in filters or filters.values().count(None) > 0 or '' in filters or (filters.values().count('') > 0)): self.filters = filters else: raise value_error('Filters must not contain None or empty keys or values: %s' % filters)
def get_button_info(number): with open("songs.csv", "r") as fp: for i, line in enumerate(fp, start=1): if i == number: line = line.strip() line = line.split(", ") return line def create_empty_file(): with open("songs.csv", "w") as fp: for i in range(1, 10): fp.write(",\n") def is_file_there(): try: with open("songs.csv", "r"): pass except Exception: create_empty_file() def save_values(row, name, adress): lines = [] string = name + ", " + adress with open("songs.csv", "r") as fp: for line in fp: lines.append(line.strip()) currentline = 1 with open("songs.csv", "w") as fp: for line in lines: if currentline == row: fp.write(string + "\n") else: fp.write(line + "\n") currentline = currentline + 1 def delete_value(row): lines = [] with open("songs.csv", "r") as fp: for line in fp: lines.append(line.strip()) currentline = 1 with open("songs.csv", "w") as fp: for line in lines: if currentline == row: fp.write(",\n") else: fp.write(line + "\n") currentline = currentline + 1
def get_button_info(number): with open('songs.csv', 'r') as fp: for (i, line) in enumerate(fp, start=1): if i == number: line = line.strip() line = line.split(', ') return line def create_empty_file(): with open('songs.csv', 'w') as fp: for i in range(1, 10): fp.write(',\n') def is_file_there(): try: with open('songs.csv', 'r'): pass except Exception: create_empty_file() def save_values(row, name, adress): lines = [] string = name + ', ' + adress with open('songs.csv', 'r') as fp: for line in fp: lines.append(line.strip()) currentline = 1 with open('songs.csv', 'w') as fp: for line in lines: if currentline == row: fp.write(string + '\n') else: fp.write(line + '\n') currentline = currentline + 1 def delete_value(row): lines = [] with open('songs.csv', 'r') as fp: for line in fp: lines.append(line.strip()) currentline = 1 with open('songs.csv', 'w') as fp: for line in lines: if currentline == row: fp.write(',\n') else: fp.write(line + '\n') currentline = currentline + 1
# String concatenation # Suppose we want to create a string that says "subscript to ____" # Few ways to do this # youtuber = "FreeCodeCamp" # print("Subscribe to " + youtuber) # print("Subscribe to {}".format(youtuber)) # print(f"Subscribe to {youtuber}") adj = input("Adjective: ") verb1 = input("Verb 1: ") verb2 = input("Verb 2: ") famous_person = input("Famous person: ") madlib = f"Computer programming is so {adj}! It makes me so excited all the time because \ I love to {verb1}. Stay hidrated and {verb2} like you are {famous_person}!" print(madlib)
adj = input('Adjective: ') verb1 = input('Verb 1: ') verb2 = input('Verb 2: ') famous_person = input('Famous person: ') madlib = f'Computer programming is so {adj}! It makes me so excited all the time because I love to {verb1}. Stay hidrated and {verb2} like you are {famous_person}!' print(madlib)
# -*- coding: utf-8 -*- class AbstractNode(object): def _generic_find(self, node_list_name, **kvargs): found_nodes = self._generic_recursion(node_list_name, kvargs, [], []) return self._check_found_nodes(found_nodes) def _generic_recursion(self, node_list_name, search_clauses, found_nodes, visited_nodes): visited_nodes.append(self) nodes = getattr(self, node_list_name) for node in nodes: try: all_match = True for wanted_attribute, wanted_value in search_clauses.items(): attribute = getattr(node, wanted_attribute) if attribute != wanted_value: all_match = False break if all_match: found_nodes.append(node) except AttributeError: pass if node not in visited_nodes: node._generic_recursion(node_list_name, search_clauses, found_nodes, visited_nodes) return found_nodes def _check_found_nodes(self, found_nodes): if len(found_nodes) > 0: return found_nodes[0] if len(found_nodes) == 1 else found_nodes class Node(AbstractNode): def __init__(self): self.children = NodeContainer(self, complementary_items_name='parents') self.parents = NodeContainer(self, complementary_items_name='children') def walk(self): def _walk(nodes): for node in nodes: for child in _walk(node.children): yield child yield node yield self for child_walk_node in _walk(self.children): yield child_walk_node def find_parent_with_attribute(self, attribute): return self._find_first_node_with_attribute('parents', attribute, []) def _find_first_node_with_attribute(self, node_list_name, attribute, visited_nodes): visited_nodes.append(self) nodes = getattr(self, node_list_name) for node in nodes: if hasattr(node, attribute): return node if node not in visited_nodes: return node._find_first_node_with_attribute(node_list_name, attribute, visited_nodes) def find_child(self, **kvargs): return self._generic_find(node_list_name='children', **kvargs) def find_parent(self, **kvargs): return self._generic_find(node_list_name='parents', **kvargs) def find_root(self): return self._generic_find(node_list_name='parents', parents=[]) class TreeNode(AbstractNode): def __init__(self): self.children = NodeContainer(self, complementary_items_name='_parents') # XXX: this is bit of a hack but at least it allows to use generic # search self._parents = NodeContainer(self, complementary_items_name='children') @property def parent(self): return self._parents[0] @parent.setter def parent(self, value): assert len(self._parents) <= 1 if len(self._parents) == 1: self._parents.remove(self._parents[0]) value.children.append(self) def find(self, **kvargs): return self._generic_find(node_list_name='children', **kvargs) class NodeContainer(list): def __init__(self, owner, complementary_items_name): super(NodeContainer, self).__init__() self.owner = owner self.complementary_items_name = complementary_items_name def append(self, *items): for item in items: if item not in self: super(NodeContainer, self).append(item) complementary_items = getattr(item, self.complementary_items_name) complementary_items.append(self.owner) def remove(self, *items): for item in items: if item in self: super(NodeContainer, self).remove(item) complementary_items = getattr(item, self.complementary_items_name) complementary_items.remove(self.owner)
class Abstractnode(object): def _generic_find(self, node_list_name, **kvargs): found_nodes = self._generic_recursion(node_list_name, kvargs, [], []) return self._check_found_nodes(found_nodes) def _generic_recursion(self, node_list_name, search_clauses, found_nodes, visited_nodes): visited_nodes.append(self) nodes = getattr(self, node_list_name) for node in nodes: try: all_match = True for (wanted_attribute, wanted_value) in search_clauses.items(): attribute = getattr(node, wanted_attribute) if attribute != wanted_value: all_match = False break if all_match: found_nodes.append(node) except AttributeError: pass if node not in visited_nodes: node._generic_recursion(node_list_name, search_clauses, found_nodes, visited_nodes) return found_nodes def _check_found_nodes(self, found_nodes): if len(found_nodes) > 0: return found_nodes[0] if len(found_nodes) == 1 else found_nodes class Node(AbstractNode): def __init__(self): self.children = node_container(self, complementary_items_name='parents') self.parents = node_container(self, complementary_items_name='children') def walk(self): def _walk(nodes): for node in nodes: for child in _walk(node.children): yield child yield node yield self for child_walk_node in _walk(self.children): yield child_walk_node def find_parent_with_attribute(self, attribute): return self._find_first_node_with_attribute('parents', attribute, []) def _find_first_node_with_attribute(self, node_list_name, attribute, visited_nodes): visited_nodes.append(self) nodes = getattr(self, node_list_name) for node in nodes: if hasattr(node, attribute): return node if node not in visited_nodes: return node._find_first_node_with_attribute(node_list_name, attribute, visited_nodes) def find_child(self, **kvargs): return self._generic_find(node_list_name='children', **kvargs) def find_parent(self, **kvargs): return self._generic_find(node_list_name='parents', **kvargs) def find_root(self): return self._generic_find(node_list_name='parents', parents=[]) class Treenode(AbstractNode): def __init__(self): self.children = node_container(self, complementary_items_name='_parents') self._parents = node_container(self, complementary_items_name='children') @property def parent(self): return self._parents[0] @parent.setter def parent(self, value): assert len(self._parents) <= 1 if len(self._parents) == 1: self._parents.remove(self._parents[0]) value.children.append(self) def find(self, **kvargs): return self._generic_find(node_list_name='children', **kvargs) class Nodecontainer(list): def __init__(self, owner, complementary_items_name): super(NodeContainer, self).__init__() self.owner = owner self.complementary_items_name = complementary_items_name def append(self, *items): for item in items: if item not in self: super(NodeContainer, self).append(item) complementary_items = getattr(item, self.complementary_items_name) complementary_items.append(self.owner) def remove(self, *items): for item in items: if item in self: super(NodeContainer, self).remove(item) complementary_items = getattr(item, self.complementary_items_name) complementary_items.remove(self.owner)
''' Failed complexity test, the code below returt O(N*N) yet the question wants O(N) ''' # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 lengthy = len(A) if (lengthy == 0 or lengthy == 1): return 0 diffies =[] for i in range(1, lengthy, 1): lefty, righty = A[:i], A[-(lengthy-i):] # print('lefty', lefty) # print('righty', righty) sumlefty, sumrighty = sum(lefty), sum(righty) # print('sumlefty', sumlefty) # print('sumrighty', sumrighty) absdiffy = abs(sumlefty-sumrighty) diffies.append(absdiffy) # print('diffies ',diffies) # print(min(diffies)) return(min(diffies))
""" Failed complexity test, the code below returt O(N*N) yet the question wants O(N) """ def solution(A): lengthy = len(A) if lengthy == 0 or lengthy == 1: return 0 diffies = [] for i in range(1, lengthy, 1): (lefty, righty) = (A[:i], A[-(lengthy - i):]) (sumlefty, sumrighty) = (sum(lefty), sum(righty)) absdiffy = abs(sumlefty - sumrighty) diffies.append(absdiffy) return min(diffies)
# # PySNMP MIB module CISCO-DATA-COLLECTION-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DATA-COLLECTION-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 17:36:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") ciscoAgentCapability, = mibBuilder.importSymbols("CISCO-SMI", "ciscoAgentCapability") AgentCapabilities, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "AgentCapabilities", "NotificationGroup", "ModuleCompliance") Integer32, TimeTicks, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter64, Unsigned32, Counter32, NotificationType, MibIdentifier, IpAddress, Bits, iso, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter64", "Unsigned32", "Counter32", "NotificationType", "MibIdentifier", "IpAddress", "Bits", "iso", "Gauge32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") cDataCollectionCapability = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 7, 425)) cDataCollectionCapability.setRevisions(('2007-08-07 00:00', '2005-01-05 00:00',)) if mibBuilder.loadTexts: cDataCollectionCapability.setLastUpdated('200708070000Z') if mibBuilder.loadTexts: cDataCollectionCapability.setOrganization('Cisco Systems, Inc.') cDataCollectionCapabilityV12R0S = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 425, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cDataCollectionCapabilityV12R0S = cDataCollectionCapabilityV12R0S.setProductRelease('Cisco IOS 12.0S') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cDataCollectionCapabilityV12R0S = cDataCollectionCapabilityV12R0S.setStatus('current') cDataCollectionCapabilityV12R1S = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 425, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cDataCollectionCapabilityV12R1S = cDataCollectionCapabilityV12R1S.setProductRelease('Cisco IOS 12.2SR') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cDataCollectionCapabilityV12R1S = cDataCollectionCapabilityV12R1S.setStatus('current') mibBuilder.exportSymbols("CISCO-DATA-COLLECTION-CAPABILITY", cDataCollectionCapabilityV12R0S=cDataCollectionCapabilityV12R0S, cDataCollectionCapabilityV12R1S=cDataCollectionCapabilityV12R1S, cDataCollectionCapability=cDataCollectionCapability, PYSNMP_MODULE_ID=cDataCollectionCapability)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion') (cisco_agent_capability,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoAgentCapability') (agent_capabilities, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'AgentCapabilities', 'NotificationGroup', 'ModuleCompliance') (integer32, time_ticks, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, counter64, unsigned32, counter32, notification_type, mib_identifier, ip_address, bits, iso, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Counter64', 'Unsigned32', 'Counter32', 'NotificationType', 'MibIdentifier', 'IpAddress', 'Bits', 'iso', 'Gauge32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') c_data_collection_capability = module_identity((1, 3, 6, 1, 4, 1, 9, 7, 425)) cDataCollectionCapability.setRevisions(('2007-08-07 00:00', '2005-01-05 00:00')) if mibBuilder.loadTexts: cDataCollectionCapability.setLastUpdated('200708070000Z') if mibBuilder.loadTexts: cDataCollectionCapability.setOrganization('Cisco Systems, Inc.') c_data_collection_capability_v12_r0_s = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 425, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_data_collection_capability_v12_r0_s = cDataCollectionCapabilityV12R0S.setProductRelease('Cisco IOS 12.0S') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_data_collection_capability_v12_r0_s = cDataCollectionCapabilityV12R0S.setStatus('current') c_data_collection_capability_v12_r1_s = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 425, 2)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_data_collection_capability_v12_r1_s = cDataCollectionCapabilityV12R1S.setProductRelease('Cisco IOS 12.2SR') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_data_collection_capability_v12_r1_s = cDataCollectionCapabilityV12R1S.setStatus('current') mibBuilder.exportSymbols('CISCO-DATA-COLLECTION-CAPABILITY', cDataCollectionCapabilityV12R0S=cDataCollectionCapabilityV12R0S, cDataCollectionCapabilityV12R1S=cDataCollectionCapabilityV12R1S, cDataCollectionCapability=cDataCollectionCapability, PYSNMP_MODULE_ID=cDataCollectionCapability)
# # PySNMP MIB module APPIAN-PPORT-COMMON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-PPORT-COMMON-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:07:58 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) # AcSlotNumber, AcPortNumber, AcOpStatus, AcNodeId, AcAdminStatus, acPport = mibBuilder.importSymbols("APPIAN-SMI-MIB", "AcSlotNumber", "AcPortNumber", "AcOpStatus", "AcNodeId", "AcAdminStatus", "acPport") Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Bits, MibIdentifier, Counter32, TimeTicks, Counter64, Unsigned32, ObjectIdentity, Integer32, iso, IpAddress, Gauge32, ModuleIdentity, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "MibIdentifier", "Counter32", "TimeTicks", "Counter64", "Unsigned32", "ObjectIdentity", "Integer32", "iso", "IpAddress", "Gauge32", "ModuleIdentity", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") acPportCommon = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1)) acPportCommon.setRevisions(('1900-03-04 00:00',)) if mibBuilder.loadTexts: acPportCommon.setLastUpdated('0003040000Z') if mibBuilder.loadTexts: acPportCommon.setOrganization('Appian Communications, Inc.') acInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1), ) if mibBuilder.loadTexts: acInterfaceTable.setStatus('current') acInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-COMMON-MIB", "acInterfaceNodeId"), (0, "APPIAN-PPORT-COMMON-MIB", "acInterfaceSlot"), (0, "APPIAN-PPORT-COMMON-MIB", "acInterfacePort")) if mibBuilder.loadTexts: acInterfaceEntry.setStatus('current') acInterfaceNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acInterfaceNodeId.setStatus('current') acInterfaceSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acInterfaceSlot.setStatus('current') acInterfacePort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acInterfacePort.setStatus('current') acInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 0), ("enet", 1), ("ds1", 2), ("ds3", 3), ("sonet", 4))).clone('unknown')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceType.setStatus('current') acInterfaceChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceChannel.setStatus('current') acInterfaceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acInterfaceIfIndex.setStatus('current') acInterfaceAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 7), AcAdminStatus().clone('inactivate')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceAdminStatus.setStatus('current') acInterfaceOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 8), AcOpStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: acInterfaceOpStatus.setStatus('current') acInterfaceInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: acInterfaceInterfaceName.setStatus('current') acInterfaceSubscriberId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceSubscriberId.setStatus('current') acInterfaceSubscriberName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceSubscriberName.setStatus('current') acInterfaceResellerId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceResellerId.setStatus('current') acInterfaceResellerName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acInterfaceResellerName.setStatus('current') mibBuilder.exportSymbols("APPIAN-PPORT-COMMON-MIB", acInterfaceChannel=acInterfaceChannel, acInterfaceInterfaceName=acInterfaceInterfaceName, acPportCommon=acPportCommon, acInterfaceResellerId=acInterfaceResellerId, acInterfaceType=acInterfaceType, acInterfaceAdminStatus=acInterfaceAdminStatus, acInterfaceNodeId=acInterfaceNodeId, acInterfaceTable=acInterfaceTable, acInterfaceOpStatus=acInterfaceOpStatus, acInterfaceSubscriberName=acInterfaceSubscriberName, PYSNMP_MODULE_ID=acPportCommon, acInterfaceIfIndex=acInterfaceIfIndex, acInterfaceSubscriberId=acInterfaceSubscriberId, acInterfacePort=acInterfacePort, acInterfaceResellerName=acInterfaceResellerName, acInterfaceEntry=acInterfaceEntry, acInterfaceSlot=acInterfaceSlot)
(ac_slot_number, ac_port_number, ac_op_status, ac_node_id, ac_admin_status, ac_pport) = mibBuilder.importSymbols('APPIAN-SMI-MIB', 'AcSlotNumber', 'AcPortNumber', 'AcOpStatus', 'AcNodeId', 'AcAdminStatus', 'acPport') (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (bits, mib_identifier, counter32, time_ticks, counter64, unsigned32, object_identity, integer32, iso, ip_address, gauge32, module_identity, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'MibIdentifier', 'Counter32', 'TimeTicks', 'Counter64', 'Unsigned32', 'ObjectIdentity', 'Integer32', 'iso', 'IpAddress', 'Gauge32', 'ModuleIdentity', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') ac_pport_common = module_identity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1)) acPportCommon.setRevisions(('1900-03-04 00:00',)) if mibBuilder.loadTexts: acPportCommon.setLastUpdated('0003040000Z') if mibBuilder.loadTexts: acPportCommon.setOrganization('Appian Communications, Inc.') ac_interface_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1)) if mibBuilder.loadTexts: acInterfaceTable.setStatus('current') ac_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-COMMON-MIB', 'acInterfaceNodeId'), (0, 'APPIAN-PPORT-COMMON-MIB', 'acInterfaceSlot'), (0, 'APPIAN-PPORT-COMMON-MIB', 'acInterfacePort')) if mibBuilder.loadTexts: acInterfaceEntry.setStatus('current') ac_interface_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acInterfaceNodeId.setStatus('current') ac_interface_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acInterfaceSlot.setStatus('current') ac_interface_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acInterfacePort.setStatus('current') ac_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 0), ('enet', 1), ('ds1', 2), ('ds3', 3), ('sonet', 4))).clone('unknown')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceType.setStatus('current') ac_interface_channel = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceChannel.setStatus('current') ac_interface_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: acInterfaceIfIndex.setStatus('current') ac_interface_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 7), ac_admin_status().clone('inactivate')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceAdminStatus.setStatus('current') ac_interface_op_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 8), ac_op_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: acInterfaceOpStatus.setStatus('current') ac_interface_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: acInterfaceInterfaceName.setStatus('current') ac_interface_subscriber_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceSubscriberId.setStatus('current') ac_interface_subscriber_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceSubscriberName.setStatus('current') ac_interface_reseller_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceResellerId.setStatus('current') ac_interface_reseller_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 1, 1, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acInterfaceResellerName.setStatus('current') mibBuilder.exportSymbols('APPIAN-PPORT-COMMON-MIB', acInterfaceChannel=acInterfaceChannel, acInterfaceInterfaceName=acInterfaceInterfaceName, acPportCommon=acPportCommon, acInterfaceResellerId=acInterfaceResellerId, acInterfaceType=acInterfaceType, acInterfaceAdminStatus=acInterfaceAdminStatus, acInterfaceNodeId=acInterfaceNodeId, acInterfaceTable=acInterfaceTable, acInterfaceOpStatus=acInterfaceOpStatus, acInterfaceSubscriberName=acInterfaceSubscriberName, PYSNMP_MODULE_ID=acPportCommon, acInterfaceIfIndex=acInterfaceIfIndex, acInterfaceSubscriberId=acInterfaceSubscriberId, acInterfacePort=acInterfacePort, acInterfaceResellerName=acInterfaceResellerName, acInterfaceEntry=acInterfaceEntry, acInterfaceSlot=acInterfaceSlot)
class MidasConfig(object): def __init__(self, linked: bool): self.linked = linked IS_DEBUG = True
class Midasconfig(object): def __init__(self, linked: bool): self.linked = linked is_debug = True
# Python program showing # a use of input() val = input("Enter your value: ") print(val) # Program to check input # type in Python num = input("Enter number :") print(num) name1 = input("Enter name : ") print(name1) # Printing type of input value print("type of number", type(num)) print("type of name", type(name1))
val = input('Enter your value: ') print(val) num = input('Enter number :') print(num) name1 = input('Enter name : ') print(name1) print('type of number', type(num)) print('type of name', type(name1))
listOfIntegers = [1, 2, 3, 4, 5, 6] for integer in listOfIntegers: if (integer % 2 == 0): print (integer) print ("All done.")
list_of_integers = [1, 2, 3, 4, 5, 6] for integer in listOfIntegers: if integer % 2 == 0: print(integer) print('All done.')
TYPES = ['exact', 'ava', 'like', 'text'] PER_PAGE_MAX = 50 DBS = ['dehkhoda', 'moein', 'amid', 'motaradef', 'farhangestan', 'sareh', 'ganjvajeh', 'wiki', 'slang', 'quran', 'name', 'thesis', 'isfahani', 'bakhtiari', 'tehrani', 'dezfuli', 'gonabadi', 'mazani'] ERROR_CODES = { "400": "failed to parse parameters", "401": "invalid token has been used", "403": "this token is banned from vajehyab", "404": "word is not found in vajehyab databases", "405": "unknown HTTP method used to send data", "500": "server has failed to respond", "503": "server is down", }
types = ['exact', 'ava', 'like', 'text'] per_page_max = 50 dbs = ['dehkhoda', 'moein', 'amid', 'motaradef', 'farhangestan', 'sareh', 'ganjvajeh', 'wiki', 'slang', 'quran', 'name', 'thesis', 'isfahani', 'bakhtiari', 'tehrani', 'dezfuli', 'gonabadi', 'mazani'] error_codes = {'400': 'failed to parse parameters', '401': 'invalid token has been used', '403': 'this token is banned from vajehyab', '404': 'word is not found in vajehyab databases', '405': 'unknown HTTP method used to send data', '500': 'server has failed to respond', '503': 'server is down'}
# Script: software_sales # Description: A software company sells a package that retails for $99. # This program asks the user to enter the number of packages purchased. The program # should then display the amount of the discount (if any) and the total amount of the # purchase after the discount. # Programmer: William Kpabitey Kwabla # Date: 26.06.16 # Declaring discount percentage as Global constants. DISCOUNT1 = 50 DISCOUNT2 = 40 DISCOUNT3 = 30 DISCOUNT4 = 20 # Defining the main function. def main(): # Displaying what the program does to the user. print("A software company sells a package that retails for $99.") print("This program asks the user to enter the number of packages purchased. The program") print("should then display the amount of the discount (if any) and the total amount of the") print("purchase after the discount.") print("") # Asking user for the number of packages purchased. number_of_packages = int(input("Please Enter the number of packages purchased: ")) print("**************************************************************************") # Displaying the discount and the total amount of the purcahse after the discount. if number_of_packages >= 100: total_amount = (DISCOUNT1/100) * 99 print("The total amount of discount is",DISCOUNT1,"%.") print("The total amount of purchase after discount is $",format(total_amount,".1f")) elif number_of_packages >= 50: total_amount = (DISCOUNT2/100) * 99 print("The total amount of discount is",DISCOUNT2,"%.") print("The total amount of purchase after discount is $",format(total_amount,".1f")) elif number_of_packages >= 20: total_amount = (DISCOUNT3/100) * 99 print("The total amount of discount is",DISCOUNT3,"%.") print("The total amount of purchase after discount is $",format(total_amount,".1f")) else: total_amount = (DISCOUNT4/100) * 99 print("The total amount of discount is",DISCOUNT4,"%.") print("The total amount of purchase after discount is $",format(total_amount,".1f")) # Calling the main function to execute program. main()
discount1 = 50 discount2 = 40 discount3 = 30 discount4 = 20 def main(): print('A software company sells a package that retails for $99.') print('This program asks the user to enter the number of packages purchased. The program') print('should then display the amount of the discount (if any) and the total amount of the') print('purchase after the discount.') print('') number_of_packages = int(input('Please Enter the number of packages purchased: ')) print('**************************************************************************') if number_of_packages >= 100: total_amount = DISCOUNT1 / 100 * 99 print('The total amount of discount is', DISCOUNT1, '%.') print('The total amount of purchase after discount is $', format(total_amount, '.1f')) elif number_of_packages >= 50: total_amount = DISCOUNT2 / 100 * 99 print('The total amount of discount is', DISCOUNT2, '%.') print('The total amount of purchase after discount is $', format(total_amount, '.1f')) elif number_of_packages >= 20: total_amount = DISCOUNT3 / 100 * 99 print('The total amount of discount is', DISCOUNT3, '%.') print('The total amount of purchase after discount is $', format(total_amount, '.1f')) else: total_amount = DISCOUNT4 / 100 * 99 print('The total amount of discount is', DISCOUNT4, '%.') print('The total amount of purchase after discount is $', format(total_amount, '.1f')) main()
# https://app.codesignal.com/arcade/code-arcade/lab-of-transformations/dB9drnfWzpiWznESA/ def alphanumericLess(s1, s2): tokens_1 = list(re.findall(r"[0-9]+|[a-z]", s1)) tokens_2 = list(re.findall(r"[0-9]+|[a-z]", s2)) idx = 0 # Tie breakers, if all compared values are the same then the first # differing amount of leading zeros in a number will resolve it. t_1_zeros = 0 t_2_zeros = 0 while idx < len(tokens_1) and idx < len(tokens_2): token_1, token_2 = tokens_1[idx], tokens_2[idx] # If both are numeric if token_1.isdigit() and token_2.isdigit(): if int(token_1) < int(token_2): return True if int(token_1) > int(token_2): return False if t_1_zeros == 0 and t_2_zeros == 0: # Store leading zeros but preserving only the first # found. Whenever anything is stored there will stop # storing new leading zeros. t_1_zeros = sum([x == "0" for x in token_1]) t_2_zeros = sum([x == "0" for x in token_2]) # If both are string elif token_1.isalpha() and token_2.isalpha(): if token_1 < token_2: return True if token_1 > token_2: return False # If both are mixed... elif token_1 != token_2: # In mixed comparisson, digits come before letters. return token_1 < token_2 idx += 1 # If it was practically equal, return the one with the most # leading zeros as being "less". if t_1_zeros != 0 or t_2_zeros != 0: return t_1_zeros > t_2_zeros # If the leading zeros were equal too, then check if the first # string was the one completely exhausted to reach this point. # If both are equal then the first one is not strictly less. first_is_less = idx < len(tokens_2) return first_is_less
def alphanumeric_less(s1, s2): tokens_1 = list(re.findall('[0-9]+|[a-z]', s1)) tokens_2 = list(re.findall('[0-9]+|[a-z]', s2)) idx = 0 t_1_zeros = 0 t_2_zeros = 0 while idx < len(tokens_1) and idx < len(tokens_2): (token_1, token_2) = (tokens_1[idx], tokens_2[idx]) if token_1.isdigit() and token_2.isdigit(): if int(token_1) < int(token_2): return True if int(token_1) > int(token_2): return False if t_1_zeros == 0 and t_2_zeros == 0: t_1_zeros = sum([x == '0' for x in token_1]) t_2_zeros = sum([x == '0' for x in token_2]) elif token_1.isalpha() and token_2.isalpha(): if token_1 < token_2: return True if token_1 > token_2: return False elif token_1 != token_2: return token_1 < token_2 idx += 1 if t_1_zeros != 0 or t_2_zeros != 0: return t_1_zeros > t_2_zeros first_is_less = idx < len(tokens_2) return first_is_less
# coding:utf-8 def redprint(str): print("\033[1;31m {0}\033[0m".format(str)) def greenprint(str): print("\033[1;32m {0}\033[0m".format(str)) def blueprint(str): print("\033[1;34m {0}\033[0m".format(str)) def yellowprint(str): print("\033[1;33m {0}\033[0m".format(str))
def redprint(str): print('\x1b[1;31m {0}\x1b[0m'.format(str)) def greenprint(str): print('\x1b[1;32m {0}\x1b[0m'.format(str)) def blueprint(str): print('\x1b[1;34m {0}\x1b[0m'.format(str)) def yellowprint(str): print('\x1b[1;33m {0}\x1b[0m'.format(str))
# ----------------------------------------------------- # Trust Game # Licensed under the MIT License # Written by Ye Liu (ye-liu at whu.edu.cn) # ----------------------------------------------------- cfg = { # Initial number of coins the user has 'initial_coins': 100, # Number of total rounds 'num_rounds': 10, # Multiplier for the money recieved by the trustee 'multiplier': 3, # Agent Settings 'agent': { # Whether to use the same gender as user 'use_same_gender': True, # Whether to use the same ethnic as user 'use_same_ethnic': True, # The potential means of yield rates of agents 'means': [-0.8, -0.4, 0, 0.4, 0.8], # The potential variances of yield rates of agents 'variances': [1, 1.5, 2], } }
cfg = {'initial_coins': 100, 'num_rounds': 10, 'multiplier': 3, 'agent': {'use_same_gender': True, 'use_same_ethnic': True, 'means': [-0.8, -0.4, 0, 0.4, 0.8], 'variances': [1, 1.5, 2]}}
class Piece: def __init__(self, t, s): self.t = t self.blocks = [] rows = s.split('\n') for i in range(len(rows)): for j in range(len(rows[i])): if rows[i][j] == '+': self.blocks.append((i, j)) def get_color(t, active=False): return ['#00ffff', '#0000ff', '#ffa500', '#ffff00', '#00ff00', '#800080', '#ff0000'][t]
class Piece: def __init__(self, t, s): self.t = t self.blocks = [] rows = s.split('\n') for i in range(len(rows)): for j in range(len(rows[i])): if rows[i][j] == '+': self.blocks.append((i, j)) def get_color(t, active=False): return ['#00ffff', '#0000ff', '#ffa500', '#ffff00', '#00ff00', '#800080', '#ff0000'][t]
# Enter your code here. Read input from STDIN. Print output to STDOUT def getMean(list): sum = 0 for i in list: sum += i mean = float(sum) / len(list) return mean def getMedian(list): median = 0.0 list.sort() if (len(list) % 2 == 0): median = float(list[len(list)//2 - 1] + list[len(list)//2]) / 2 else: median = list[(len(list)-1)/2] return median def getMode(list): mode = 0 count, max = 0, 0 list.sort() current = 0 for i in list: if (i == current): count += 1 else: count = 1 current = i if (count > max): max = count mode = i return mode size = int(input()) a = list(map(int, input().split())) print(getMean(a)) print(getMedian(a)) print(getMode(a))
def get_mean(list): sum = 0 for i in list: sum += i mean = float(sum) / len(list) return mean def get_median(list): median = 0.0 list.sort() if len(list) % 2 == 0: median = float(list[len(list) // 2 - 1] + list[len(list) // 2]) / 2 else: median = list[(len(list) - 1) / 2] return median def get_mode(list): mode = 0 (count, max) = (0, 0) list.sort() current = 0 for i in list: if i == current: count += 1 else: count = 1 current = i if count > max: max = count mode = i return mode size = int(input()) a = list(map(int, input().split())) print(get_mean(a)) print(get_median(a)) print(get_mode(a))
# Enumerated constants for voice tokens. SMART, STUPID, ORCISH, ELVEN, DRACONIAN, DWARVEN, GREEK, KITTEH, GNOMIC, \ HURTHISH = list(range( 10))
(smart, stupid, orcish, elven, draconian, dwarven, greek, kitteh, gnomic, hurthish) = list(range(10))
{ 'model_dir': '{this_dir}/model_data/', 'out_dir': 'output/masif_peptides/shape_only/', 'feat_mask': [1.0, 1.0, 0.0, 0.0, 0.0], }
{'model_dir': '{this_dir}/model_data/', 'out_dir': 'output/masif_peptides/shape_only/', 'feat_mask': [1.0, 1.0, 0.0, 0.0, 0.0]}
def to_rna(dna_strand): rna_dict = { 'C':'G', 'G':'C', 'T':'A', 'A':'U' } ret = '' for char in dna_strand: ret += rna_dict[char] return ret
def to_rna(dna_strand): rna_dict = {'C': 'G', 'G': 'C', 'T': 'A', 'A': 'U'} ret = '' for char in dna_strand: ret += rna_dict[char] return ret