content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class PolishWordnetParser: __LEXICAL_UNIT = 'lexical-unit' __SYNSET_UNIT = 'synset' __LEXICAL_RELATIONS = 'lexicalrelations' __SYNSET_RELATIONS = 'synsetrelations' def __init__(self, version): self.version = version def lexical_unit(self): return self.__LEXICAL_UNIT def synset_unit(self): return self.__SYNSET_UNIT def lexical_relations(self): return self.__LEXICAL_RELATIONS def synset_relations(self): return self.__SYNSET_RELATIONS
class Polishwordnetparser: __lexical_unit = 'lexical-unit' __synset_unit = 'synset' __lexical_relations = 'lexicalrelations' __synset_relations = 'synsetrelations' def __init__(self, version): self.version = version def lexical_unit(self): return self.__LEXICAL_UNIT def synset_unit(self): return self.__SYNSET_UNIT def lexical_relations(self): return self.__LEXICAL_RELATIONS def synset_relations(self): return self.__SYNSET_RELATIONS
"""Top-level package for education_math_homework_generator.""" __author__ = """Michael Shawn Marshall""" __email__ = 'physbean@gmail.com' __version__ = '0.2.0'
"""Top-level package for education_math_homework_generator.""" __author__ = 'Michael Shawn Marshall' __email__ = 'physbean@gmail.com' __version__ = '0.2.0'
def register_to(bot): def sauce(*args): _, msg, _ = args msg.reply('https://gitlab.stusta.mhn.de/stustanet/prism/').send() return True bot.respond('gimme-sauce', sauce, help_text='gimme-sauce: posts the url of the source') bot.respond('invoke-gpl', sauce, help_text=None) bot.respond('mitm', sauce, help_text=None)
def register_to(bot): def sauce(*args): (_, msg, _) = args msg.reply('https://gitlab.stusta.mhn.de/stustanet/prism/').send() return True bot.respond('gimme-sauce', sauce, help_text='gimme-sauce: posts the url of the source') bot.respond('invoke-gpl', sauce, help_text=None) bot.respond('mitm', sauce, help_text=None)
def main(N, M, A): memo = N - sum(A) if memo >= 0: return memo else: return -1 if __name__ == '__main__': N, M = list(map(int, input().split())) A = list(map(int, input().split())) # N = 314 # M = 15 # A = list(map(int, "9 26 5 35 8 9 79 3 23 8 46 2 6 43 3".split())) # print(N, M, A) print(main(N, M, A))
def main(N, M, A): memo = N - sum(A) if memo >= 0: return memo else: return -1 if __name__ == '__main__': (n, m) = list(map(int, input().split())) a = list(map(int, input().split())) print(main(N, M, A))
class TEST_MODULE: def __init__(self, parent): self.parent = parent self.test = "test" self.new_commands = { "big_test": self.testf, } self.add_self() # or just # self.parent.parser.commands.update(self.new_commands) # but I figured a function would be kinda better in special use cases def testf(self, arg=None): print(self.test) self.parent.command_out_set(f"{self.test}") self.parent.command_out.change_ex(self.do_sumn) def do_sumn(self, arg=None): self.parent.command_out_set(f"{arg}: bruh") def add_self(self): self.parent.parser.commands.update(self.new_commands)
class Test_Module: def __init__(self, parent): self.parent = parent self.test = 'test' self.new_commands = {'big_test': self.testf} self.add_self() def testf(self, arg=None): print(self.test) self.parent.command_out_set(f'{self.test}') self.parent.command_out.change_ex(self.do_sumn) def do_sumn(self, arg=None): self.parent.command_out_set(f'{arg}: bruh') def add_self(self): self.parent.parser.commands.update(self.new_commands)
# # PySNMP MIB module Wellfleet-DIFFSERV-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-DIFFSERV-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:39:50 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") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") ObjectIdentity, Counter32, Unsigned32, iso, IpAddress, Bits, TimeTicks, ModuleIdentity, MibIdentifier, Integer32, Gauge32, NotificationType, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter32", "Unsigned32", "iso", "IpAddress", "Bits", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Integer32", "Gauge32", "NotificationType", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") wfDiffServAppGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfDiffServAppGroup") wfDiffServ = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1)) wfDiffServCreate = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServCreate.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServCreate.setDescription('Create/Delete parameter. Default is created.') wfDiffServEnable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServEnable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServEnable.setDescription('Enable/Disable parameter. Default is enabled.') wfDiffServDsByteMask = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServDsByteMask.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServDsByteMask.setDescription("Bitmask which is AND'ed with DS-byte stting and then OR'ed with DS-byte in the packet. It masks out bits.") wfDiffServIntfTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2), ) if mibBuilder.loadTexts: wfDiffServIntfTable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfTable.setDescription('Table of DiffServ capable interfaces.') wfDiffServIntfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1), ).setIndexNames((0, "Wellfleet-DIFFSERV-MIB", "wfDiffServIntfIpAddr"), (0, "Wellfleet-DIFFSERV-MIB", "wfDiffServIntfIfIndex")) if mibBuilder.loadTexts: wfDiffServIntfEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfEntry.setDescription('DiffServ interface table entry.') wfDiffServIntfCreate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServIntfCreate.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfCreate.setDescription('Create/Delete parameter. Default is created.') wfDiffServIntfEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServIntfEnable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfEnable.setDescription('Enable/Disable parameter. Default is enabled.') wfDiffServIntfState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("notpres", 3))).clone('notpres')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfDiffServIntfState.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfState.setDescription('Current state of this interface.') wfDiffServIntfIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfDiffServIntfIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfIpAddr.setDescription('IP address this interface is associated with.') wfDiffServIntfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfDiffServIntfIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfIfIndex.setDescription('Circuit number/if index this interface is associated with.') wfDiffServIntfLogMask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 6), Integer32().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServIntfLogMask.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfLogMask.setDescription('Specifies which events to log. 0x00000001 - Filter events: Add/Del/Enb/Dis 0x00000002 - Interaction with cops. 0x00000004 - Trigger events. 0x00000008 - Interaction with IP interface. 0x00000020 - Filter debugging events.') wfDiffServIntfCfgType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("cops", 2))).clone('static')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServIntfCfgType.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfCfgType.setDescription('Interface config type.') wfDiffServIntfUrlIdleOutTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 8), Integer32().clone(120)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfDiffServIntfUrlIdleOutTimer.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfUrlIdleOutTimer.setDescription('Number of seconds to wait before a dynamic Url filter is idled out.') mibBuilder.exportSymbols("Wellfleet-DIFFSERV-MIB", wfDiffServCreate=wfDiffServCreate, wfDiffServIntfEnable=wfDiffServIntfEnable, wfDiffServIntfState=wfDiffServIntfState, wfDiffServIntfEntry=wfDiffServIntfEntry, wfDiffServIntfTable=wfDiffServIntfTable, wfDiffServIntfCfgType=wfDiffServIntfCfgType, wfDiffServDsByteMask=wfDiffServDsByteMask, wfDiffServEnable=wfDiffServEnable, wfDiffServ=wfDiffServ, wfDiffServIntfCreate=wfDiffServIntfCreate, wfDiffServIntfIpAddr=wfDiffServIntfIpAddr, wfDiffServIntfUrlIdleOutTimer=wfDiffServIntfUrlIdleOutTimer, wfDiffServIntfLogMask=wfDiffServIntfLogMask, wfDiffServIntfIfIndex=wfDiffServIntfIfIndex)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, value_size_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (object_identity, counter32, unsigned32, iso, ip_address, bits, time_ticks, module_identity, mib_identifier, integer32, gauge32, notification_type, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter32', 'Unsigned32', 'iso', 'IpAddress', 'Bits', 'TimeTicks', 'ModuleIdentity', 'MibIdentifier', 'Integer32', 'Gauge32', 'NotificationType', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (wf_diff_serv_app_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfDiffServAppGroup') wf_diff_serv = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1)) wf_diff_serv_create = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServCreate.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServCreate.setDescription('Create/Delete parameter. Default is created.') wf_diff_serv_enable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServEnable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServEnable.setDescription('Enable/Disable parameter. Default is enabled.') wf_diff_serv_ds_byte_mask = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServDsByteMask.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServDsByteMask.setDescription("Bitmask which is AND'ed with DS-byte stting and then OR'ed with DS-byte in the packet. It masks out bits.") wf_diff_serv_intf_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2)) if mibBuilder.loadTexts: wfDiffServIntfTable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfTable.setDescription('Table of DiffServ capable interfaces.') wf_diff_serv_intf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1)).setIndexNames((0, 'Wellfleet-DIFFSERV-MIB', 'wfDiffServIntfIpAddr'), (0, 'Wellfleet-DIFFSERV-MIB', 'wfDiffServIntfIfIndex')) if mibBuilder.loadTexts: wfDiffServIntfEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfEntry.setDescription('DiffServ interface table entry.') wf_diff_serv_intf_create = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServIntfCreate.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfCreate.setDescription('Create/Delete parameter. Default is created.') wf_diff_serv_intf_enable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServIntfEnable.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfEnable.setDescription('Enable/Disable parameter. Default is enabled.') wf_diff_serv_intf_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('notpres', 3))).clone('notpres')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfDiffServIntfState.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfState.setDescription('Current state of this interface.') wf_diff_serv_intf_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfDiffServIntfIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfIpAddr.setDescription('IP address this interface is associated with.') wf_diff_serv_intf_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfDiffServIntfIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfIfIndex.setDescription('Circuit number/if index this interface is associated with.') wf_diff_serv_intf_log_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 6), integer32().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServIntfLogMask.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfLogMask.setDescription('Specifies which events to log. 0x00000001 - Filter events: Add/Del/Enb/Dis 0x00000002 - Interaction with cops. 0x00000004 - Trigger events. 0x00000008 - Interaction with IP interface. 0x00000020 - Filter debugging events.') wf_diff_serv_intf_cfg_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('cops', 2))).clone('static')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServIntfCfgType.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfCfgType.setDescription('Interface config type.') wf_diff_serv_intf_url_idle_out_timer = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 26, 2, 1, 8), integer32().clone(120)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfDiffServIntfUrlIdleOutTimer.setStatus('mandatory') if mibBuilder.loadTexts: wfDiffServIntfUrlIdleOutTimer.setDescription('Number of seconds to wait before a dynamic Url filter is idled out.') mibBuilder.exportSymbols('Wellfleet-DIFFSERV-MIB', wfDiffServCreate=wfDiffServCreate, wfDiffServIntfEnable=wfDiffServIntfEnable, wfDiffServIntfState=wfDiffServIntfState, wfDiffServIntfEntry=wfDiffServIntfEntry, wfDiffServIntfTable=wfDiffServIntfTable, wfDiffServIntfCfgType=wfDiffServIntfCfgType, wfDiffServDsByteMask=wfDiffServDsByteMask, wfDiffServEnable=wfDiffServEnable, wfDiffServ=wfDiffServ, wfDiffServIntfCreate=wfDiffServIntfCreate, wfDiffServIntfIpAddr=wfDiffServIntfIpAddr, wfDiffServIntfUrlIdleOutTimer=wfDiffServIntfUrlIdleOutTimer, wfDiffServIntfLogMask=wfDiffServIntfLogMask, wfDiffServIntfIfIndex=wfDiffServIntfIfIndex)
def get_ref(db, col, identifier, obj): for doc in db.collection(col).where(identifier, u'==', obj).stream(): return doc.reference return None def get_field(ref, field): return ref.get().to_dict()[field] def update(ref, key, val): return ref.set({key: val}, merge=True) def addEntry(ref, key, val): currList = get_field(ref, key) return ref.set({key: currList + [val]}, merge=True) def createDoc(db, col, data, docId=None): return db.collection(col).add(data, docId) def getSingle(ref, key, obj): currMap = get_field(ref, key) return currMap[obj] def updateSingle(ref, key, subkey, obj): currMap = get_field(ref, key) currMap[subkey] = obj return update(ref, key, currentMap)
def get_ref(db, col, identifier, obj): for doc in db.collection(col).where(identifier, u'==', obj).stream(): return doc.reference return None def get_field(ref, field): return ref.get().to_dict()[field] def update(ref, key, val): return ref.set({key: val}, merge=True) def add_entry(ref, key, val): curr_list = get_field(ref, key) return ref.set({key: currList + [val]}, merge=True) def create_doc(db, col, data, docId=None): return db.collection(col).add(data, docId) def get_single(ref, key, obj): curr_map = get_field(ref, key) return currMap[obj] def update_single(ref, key, subkey, obj): curr_map = get_field(ref, key) currMap[subkey] = obj return update(ref, key, currentMap)
# ------------------------------ # 249. Group Shifted Strings # # Description: # Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequence: # "abc" -> "bcd" -> ... -> "xyz" # Given a list of strings which contains only lowercase alphabets, group all strings that belong to the same shifting sequence. # # Example: # Input: ["abc", "bcd", "acef", "xyz", "az", "ba", "a", "z"], # Output: # [ # ["abc","bcd","xyz"], # ["az","ba"], # ["acef"], # ["a","z"] # ] # # Version: 1.0 # 11/05/18 by Jianfa # ------------------------------ class Solution: def groupStrings(self, strings): """ :type strings: List[str] :rtype: List[List[str]] """ group = {} # hash map to store string model for s in strings: if len(s) == 1: group.setdefault('a', []).append(s) # Add s to string model 'a' else: key = "a" for i in range(1, len(s)): diff = (ord(s[i]) - ord(s[i-1])) % 26 # Use difference of neighbour character to indicate the model key += chr(ord('a') + diff) group.setdefault(key, []).append(s) return [group[key] for key in group] # Used for testing if __name__ == "__main__": test = Solution() # ------------------------------ # Summary: # Use hash map to record the string model and matched strings.
class Solution: def group_strings(self, strings): """ :type strings: List[str] :rtype: List[List[str]] """ group = {} for s in strings: if len(s) == 1: group.setdefault('a', []).append(s) else: key = 'a' for i in range(1, len(s)): diff = (ord(s[i]) - ord(s[i - 1])) % 26 key += chr(ord('a') + diff) group.setdefault(key, []).append(s) return [group[key] for key in group] if __name__ == '__main__': test = solution()
# MIT License # (C) Copyright 2021 Hewlett Packard Enterprise Development LP. # # vrrp : ECOS VRRP configuration def get_vrrp_interfaes( self, ne_id: str, cached: bool, ) -> list: """Get configured vrrp interfaces on appliance .. list-table:: :header-rows: 1 * - Swagger Section - Method - Endpoint * - vrrp - GET - /vrrp/{neId}?cached={cached} :param ne_id: Appliance id in the format of integer.NE e.g. ``3.NE`` :type ne_id: str :param cached: ``True`` retrieves last known value to Orchestrator, ``False`` retrieves values directly from Appliance :type cached: bool :return: Returns list of dictionaries of VRRP interface configurations \n [`dict`]: VRRP interface configuration object \n * keyword **pkt_trace** (`bool`): Default is ``False`` * keyword **adv_timer** (`int`): Time interval between advertisements. Default is 1 second. Must be between 1-255 * keyword **preempt** (`bool`): If ``True`` the appliance with the highest priority comes back online and again assumes primary responsibility. Default is true * keyword **holddown** (`int`): Default is ``10``. Must be between 1-255 * keyword **auth** (`str`): Authentication string. Maximum 8 characters * keyword **desc** (`str`): Description string. Maximum 64 characters * keyword **enable** (`str`): Enable/Disable the VRRP instance, valid options are ``Up`` or ``Down`` * keyword **priority** (`int`): The greater the number, the higher the priority. The appliance with the higher priority is the VRRP Master. Must be between 1-254 * keyword **vipaddr** (`str`): Must be valid ip address and not match any of the existing interface ips on the appliance * keyword **interface** (`str`): Name of interface that VRRP is using for peering. Eg. ``wan0`` * keyword **groupId** (`int`): Identifier assigned to the two peers. Depending on the deployment, the group can consist of an appliance and a router (or L3 switch), or two appliances. Must be between 1-255 * keyword **mode** (`str`): There are three options for the VRRP instance - Backup : Instance is in VRRP backup state. Init : Instance is initializing, it's disabled, or the interface is down. Master : Instance is the current VRRP master * keyword **master_transitions** (`int`): Number of times the VRRP instance went from Master to Backup and vice versa. A high number of transitions indicates a problematic VRRP configuration or environment. If this is the case, check the configuration of all local appliances and routers, and review the log files * keyword **masterip** (`str`): Current VRRP Master's Interface or local IP address * keyword **uptime** (`str`): Time elapsed since the VRRP instance entered the state it's in. Sample format: ``0 days 11 hrs 49 mins 41 secs`` * keyword **vipowner** (`bool`): An Edge Connect appliance cannot use one of its own IP addresses as the VRRP IP, so this will always be ``False`` * keyword **vmac** (`str`): MAC Address that the VRRP instance is using. On an NX Appliance, this is in 00-00-5E-00-01-{VRID} format. On virtual appliances, the VRRP instance uses the interface's assigned MAC Address (for example, the MAC address that the hypervisor assigned to wan0) :rtype: list """ return self._get("/vrrp/{}?cached={}".format(ne_id, cached))
def get_vrrp_interfaes(self, ne_id: str, cached: bool) -> list: """Get configured vrrp interfaces on appliance .. list-table:: :header-rows: 1 * - Swagger Section - Method - Endpoint * - vrrp - GET - /vrrp/{neId}?cached={cached} :param ne_id: Appliance id in the format of integer.NE e.g. ``3.NE`` :type ne_id: str :param cached: ``True`` retrieves last known value to Orchestrator, ``False`` retrieves values directly from Appliance :type cached: bool :return: Returns list of dictionaries of VRRP interface configurations [`dict`]: VRRP interface configuration object * keyword **pkt_trace** (`bool`): Default is ``False`` * keyword **adv_timer** (`int`): Time interval between advertisements. Default is 1 second. Must be between 1-255 * keyword **preempt** (`bool`): If ``True`` the appliance with the highest priority comes back online and again assumes primary responsibility. Default is true * keyword **holddown** (`int`): Default is ``10``. Must be between 1-255 * keyword **auth** (`str`): Authentication string. Maximum 8 characters * keyword **desc** (`str`): Description string. Maximum 64 characters * keyword **enable** (`str`): Enable/Disable the VRRP instance, valid options are ``Up`` or ``Down`` * keyword **priority** (`int`): The greater the number, the higher the priority. The appliance with the higher priority is the VRRP Master. Must be between 1-254 * keyword **vipaddr** (`str`): Must be valid ip address and not match any of the existing interface ips on the appliance * keyword **interface** (`str`): Name of interface that VRRP is using for peering. Eg. ``wan0`` * keyword **groupId** (`int`): Identifier assigned to the two peers. Depending on the deployment, the group can consist of an appliance and a router (or L3 switch), or two appliances. Must be between 1-255 * keyword **mode** (`str`): There are three options for the VRRP instance - Backup : Instance is in VRRP backup state. Init : Instance is initializing, it's disabled, or the interface is down. Master : Instance is the current VRRP master * keyword **master_transitions** (`int`): Number of times the VRRP instance went from Master to Backup and vice versa. A high number of transitions indicates a problematic VRRP configuration or environment. If this is the case, check the configuration of all local appliances and routers, and review the log files * keyword **masterip** (`str`): Current VRRP Master's Interface or local IP address * keyword **uptime** (`str`): Time elapsed since the VRRP instance entered the state it's in. Sample format: ``0 days 11 hrs 49 mins 41 secs`` * keyword **vipowner** (`bool`): An Edge Connect appliance cannot use one of its own IP addresses as the VRRP IP, so this will always be ``False`` * keyword **vmac** (`str`): MAC Address that the VRRP instance is using. On an NX Appliance, this is in 00-00-5E-00-01-{VRID} format. On virtual appliances, the VRRP instance uses the interface's assigned MAC Address (for example, the MAC address that the hypervisor assigned to wan0) :rtype: list """ return self._get('/vrrp/{}?cached={}'.format(ne_id, cached))
# Momijigaoka if sm.hasQuest(57106): sm.warp(807030000, 0) elif sm.hasQuest(57107): sm.warp(807030100, 0) else: sm.systemMessage("There is nothing to see here.") #sm.warp(807030200, 0)
if sm.hasQuest(57106): sm.warp(807030000, 0) elif sm.hasQuest(57107): sm.warp(807030100, 0) else: sm.systemMessage('There is nothing to see here.')
# 1401 - Warriors of Perion sm.setSpeakerID(1022000) # Dances with Balrog response = sm.sendAskYesNo("So you want to become a Warrior?") if response: sm.completeQuestNoRewards(parentID) sm.jobAdvance(100) sm.resetAP(False, 100) sm.giveItem(1302182) sm.sendSayOkay("You are now a #bWarrior#k.")
sm.setSpeakerID(1022000) response = sm.sendAskYesNo('So you want to become a Warrior?') if response: sm.completeQuestNoRewards(parentID) sm.jobAdvance(100) sm.resetAP(False, 100) sm.giveItem(1302182) sm.sendSayOkay('You are now a #bWarrior#k.')
sm.setSpeakerID(1033210) # Great Spirit response = sm.sendAskYesNo("Are you ready to take on great power?") if response: sm.startQuest(parentID) sm.dispose()
sm.setSpeakerID(1033210) response = sm.sendAskYesNo('Are you ready to take on great power?') if response: sm.startQuest(parentID) sm.dispose()
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def sortedArrayToBST(self, nums): """ :type nums: List[int] :rtype: TreeNode """ return self.get_middle(nums) def get_middle(self, nums, left=None, right=None): """ Takes an array and returns the middle element """ # base case if left is None and right is None: left = 0 right = len(nums) - 1 # check the bound if left > right: return None mid = (right + left) // 2 node = TreeNode(nums[mid]) node.left = self.get_middle(nums, left, mid-1) node.right = self.get_middle(nums, mid+1, right) return node nums = [1, 2, 3, 4, 5, 6, 7]
class Treenode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def sorted_array_to_bst(self, nums): """ :type nums: List[int] :rtype: TreeNode """ return self.get_middle(nums) def get_middle(self, nums, left=None, right=None): """ Takes an array and returns the middle element """ if left is None and right is None: left = 0 right = len(nums) - 1 if left > right: return None mid = (right + left) // 2 node = tree_node(nums[mid]) node.left = self.get_middle(nums, left, mid - 1) node.right = self.get_middle(nums, mid + 1, right) return node nums = [1, 2, 3, 4, 5, 6, 7]
# Ground station location lat = 0.0 lon = 0.0 alt = 0 min_elevation = 5.0 # in degrees, in urban or heavily wooded areas, increase as appropriate # Change this to false if you don't want the realtime receiver to plot anything realtime_plotting = True
lat = 0.0 lon = 0.0 alt = 0 min_elevation = 5.0 realtime_plotting = True
inc="docs/floatlib.inc" f=open(inc,'r+') data=f.readlines() f.close() d=[] for i in data: if not i.startswith(" ") and not i.startswith("#") and not i.startswith("."): i=i.split(';')[0] i=i.split('=')[0] i=i.strip() if len(i)!=0: d+=[': .db "'+i.upper()+',0" \ .dw '+i+'\n'] d=sorted(d) s='.dw '+str(len(d))+'\n' for i in range(len(d)): s+='.dw equ_'+str(i)+'\n' d[i]='equ_'+str(i)+d[i] d=['#include "'+inc+'"\n','#define equb(x,y) .db 8,x,9 \ .db y\n','#define equ(x,y) .db 6,x,7 \ .dw y\n',s]+d f=open('asmcompequ.z80','w+') f.writelines(d) f.close()
inc = 'docs/floatlib.inc' f = open(inc, 'r+') data = f.readlines() f.close() d = [] for i in data: if not i.startswith(' ') and (not i.startswith('#')) and (not i.startswith('.')): i = i.split(';')[0] i = i.split('=')[0] i = i.strip() if len(i) != 0: d += [': .db "' + i.upper() + ',0" \\ .dw ' + i + '\n'] d = sorted(d) s = '.dw ' + str(len(d)) + '\n' for i in range(len(d)): s += '.dw equ_' + str(i) + '\n' d[i] = 'equ_' + str(i) + d[i] d = ['#include "' + inc + '"\n', '#define equb(x,y) .db 8,x,9 \\ .db y\n', '#define equ(x,y) .db 6,x,7 \\ .dw y\n', s] + d f = open('asmcompequ.z80', 'w+') f.writelines(d) f.close()
# General TITLE = "Home Control" # Security config PASSWORD = "1234" SECRET = "81dc9bdb52d04dc20036dbd8313ed055" # Server config HOST = "0.0.0.0" PORT = 8000 DEBUG = False # Switch list SWITCHES = [ { "name": "Room", "system": 8, "device": 1, "icon": "ion-ios-lightbulb", }, { "name": "Desk", "system": 16, "device": 2, "icon": "ion-ios-lightbulb", }, { "name": "Bed", "system": 8, "device": 3, "icon": "ion-ios-lightbulb", }, { "name": "Fan", "system": 16, "device": 1, "icon": "ion-nuclear", }, ] # Misc COOKIE = "simplehomeautomation" ENABLE_CUSTOM_CODES = True
title = 'Home Control' password = '1234' secret = '81dc9bdb52d04dc20036dbd8313ed055' host = '0.0.0.0' port = 8000 debug = False switches = [{'name': 'Room', 'system': 8, 'device': 1, 'icon': 'ion-ios-lightbulb'}, {'name': 'Desk', 'system': 16, 'device': 2, 'icon': 'ion-ios-lightbulb'}, {'name': 'Bed', 'system': 8, 'device': 3, 'icon': 'ion-ios-lightbulb'}, {'name': 'Fan', 'system': 16, 'device': 1, 'icon': 'ion-nuclear'}] cookie = 'simplehomeautomation' enable_custom_codes = True
# Question 1. # Function to print username def hello_name(user_name): print(f"hello_{user_name}!") hello_name('Shakti') # Question 2. # Function to odd numbers from 1-100 def first_odds(): num = 0 while(num<100): num += 1 if(num % 2 != 0): print(num) else: continue print(first_odds()) # Question 3. # Function to return MAX number in a list def max_num_in_list(a_list): max_num = 0 for num in a_list: if(num > max_num): max_num = num # Print the current max_num # print(max_num) else: continue return max_num print(max_num_in_list([2,5,-3,10,70,23,89,-66,9,100,54,5,8,44])) # Question 4. # Function to return a leap year def is_leap_year(a_year): if(((a_year % 4 == 0) and (a_year % 100 != 0)) or (a_year % 400 == 0)): return True else: return False print(is_leap_year(1924)) # Question 5. # Function to check if numbers in a list are consecutive def is_consecutive(a_list): # Sort the given list sorted_list = sorted(a_list) # Create a test list using min and max+1 (as range excludes the last number) of "a_list" test_list = list(range(min(a_list), max(a_list)+1)) # print(sorted_list) # print(range_list) if sorted_list == test_list: return True else: return False print(is_consecutive([11,15,12,16,14,13,19,20,17,18]))
def hello_name(user_name): print(f'hello_{user_name}!') hello_name('Shakti') def first_odds(): num = 0 while num < 100: num += 1 if num % 2 != 0: print(num) else: continue print(first_odds()) def max_num_in_list(a_list): max_num = 0 for num in a_list: if num > max_num: max_num = num else: continue return max_num print(max_num_in_list([2, 5, -3, 10, 70, 23, 89, -66, 9, 100, 54, 5, 8, 44])) def is_leap_year(a_year): if a_year % 4 == 0 and a_year % 100 != 0 or a_year % 400 == 0: return True else: return False print(is_leap_year(1924)) def is_consecutive(a_list): sorted_list = sorted(a_list) test_list = list(range(min(a_list), max(a_list) + 1)) if sorted_list == test_list: return True else: return False print(is_consecutive([11, 15, 12, 16, 14, 13, 19, 20, 17, 18]))
"""Functions that accept either a numpy array or a dask array, and return another of the matching type. Typyically invoked through ``xarray.apply_ufunc(dask='allowed'). """
"""Functions that accept either a numpy array or a dask array, and return another of the matching type. Typyically invoked through ``xarray.apply_ufunc(dask='allowed'). """
################################ # # # James Bachelder # # CWCT - Python # # M01 Programming Assignment 2 # # 18 June 2021 # # # ################################ print('Guido van Rossum') print('20 February 1991') print('Benevolent dictator for life')
print('Guido van Rossum') print('20 February 1991') print('Benevolent dictator for life')
# Where memories will be temporarily kept. #SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/staticfuzz.db' # Database for memories. # # Use a sqlite database file on disk: # # SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/staticfuzz.db' # # Use sqlite memory database (never touches disk): SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:' # Port to listen on when serving PORT = 5000 DEBUG = True SECRET_KEY = 'BETTER CHANGE ME' # If a database is fresh, this will be # the first memory in it. FIRST_MESSAGE = u'scream into the void' # Images will be scaled down (maintaining # aspect ratio) to fit inside these dimensions. THUMB_MAX_HEIGHT = 360 THUMB_MAX_WIDTH = 360 # Images are indexed to a random number of colors # between MIN_COLORS and MAX_COLORS. MIN_COLORS = 2 MAX_COLORS = 10 # How long to wait before the server checks for new # memories/sends an event. # # The time to wait between each iteration in the # server event loop. How long before the server # checks for new memories and sends a new event. SLEEP_RATE = 0.2 # When EventSource (javascript) is disconnected # from the server, it will wait these many MS # before trying to connect to it again. RETRY_TIME_MS = 3000 # If you submit `/login lain` (or whatever your # secret is) it will log you in (refresh to see) # and you can delete memories. WHISPER_SECRET = 'lain' # Maximum number of characters for memories. MAX_CHARACTERS = 140 # If this is enabled an HTML audio player will # appear in the header and loop an MP3. # BACKGROUND_MP3 = '/static/background.mp3' # If this is enabled the specified file is used # as a notification for new messages. NOTIFICATION_SOUND = '/static/notification.ogg' # If this is enabled, the specified file is used # as a sound for errors. ERROR_SOUND = '/static/error.ogg' # Localization, Text, Messages # A bunch of string values. DEITY_GREET = "Make everyone forget" LOGIN_FAIL = "I don't think so." # this should probably be ERROR_ DEITY_GOODBYE = "Memory is your mistress." # Error messages ERROR_TOO_LONG = u"Too long!" ERROR_UNORIGINAL = u"Unoriginal!" ERROR_RATE_EXCEEDED = u"Not so fast!" ERROR_DANBOORU = u"No matches!" # Used for backgrounds right now! Path to directory # of images to rotate. RANDOM_IMAGE_DIRECTORY = "static/backgrounds/" # This is the placeholder used in the memory diamond # (text input) for submitting memories. PLACEHOLDER = "tell me a memory"
sqlalchemy_database_uri = 'sqlite:///:memory:' port = 5000 debug = True secret_key = 'BETTER CHANGE ME' first_message = u'scream into the void' thumb_max_height = 360 thumb_max_width = 360 min_colors = 2 max_colors = 10 sleep_rate = 0.2 retry_time_ms = 3000 whisper_secret = 'lain' max_characters = 140 notification_sound = '/static/notification.ogg' error_sound = '/static/error.ogg' deity_greet = 'Make everyone forget' login_fail = "I don't think so." deity_goodbye = 'Memory is your mistress.' error_too_long = u'Too long!' error_unoriginal = u'Unoriginal!' error_rate_exceeded = u'Not so fast!' error_danbooru = u'No matches!' random_image_directory = 'static/backgrounds/' placeholder = 'tell me a memory'
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/test_nbdev.ipynb (unless otherwise specified). __all__ = ['test_nbdev_func'] # Cell def test_nbdev_func(): return 42
__all__ = ['test_nbdev_func'] def test_nbdev_func(): return 42
""" Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. """ class Solution(): def missingNumber(self, nums: list): summ = sum(nums) n = len(nums) arithmetic_sum = int(n * (n + 1) / 2) return arithmetic_sum - summ def missingNumber2(self, nums: list): # Sorting # Time Complexity n * log(n) # Space Complexity O(1) nums.sort() for i in range(len(nums)): if i != nums[i]: return i return i + 1 def missingNumber2(self, nums: list): for i in range(len(nums)): if i in nums: continue else: return i return i + 1 num = [3,0,1] num = [0, 1, 2] s = Solution() print(s.missingNumber(num))
""" Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. """ class Solution: def missing_number(self, nums: list): summ = sum(nums) n = len(nums) arithmetic_sum = int(n * (n + 1) / 2) return arithmetic_sum - summ def missing_number2(self, nums: list): nums.sort() for i in range(len(nums)): if i != nums[i]: return i return i + 1 def missing_number2(self, nums: list): for i in range(len(nums)): if i in nums: continue else: return i return i + 1 num = [3, 0, 1] num = [0, 1, 2] s = solution() print(s.missingNumber(num))
""" URL: https://codeforces.com/problemset/problem/1339/A Author: Safiul Kabir [safiulanik at gmail.com] Tags: brute force, db, implementation, math, *900 """ t = int(input()) for _ in range(t): print(input())
""" URL: https://codeforces.com/problemset/problem/1339/A Author: Safiul Kabir [safiulanik at gmail.com] Tags: brute force, db, implementation, math, *900 """ t = int(input()) for _ in range(t): print(input())
__all__ = ["slice"] def slice(d, keys): """return dictionary with given keys""" result = dict() for k in keys: if k in d: result[k] = d[k] return result
__all__ = ['slice'] def slice(d, keys): """return dictionary with given keys""" result = dict() for k in keys: if k in d: result[k] = d[k] return result
class Shopping: def __init__(self, shop): self.shop = shop self.cart = {} def add_cart(self, item, quantity): if item in self.cart: self.cart[item] += quantity else: self.cart[item] = quantity def remove_cart(self, item, quantity): if item in self.cart: self.cart[item] -= quantity if self.cart[item] <= 0: self.cart.pop(item)
class Shopping: def __init__(self, shop): self.shop = shop self.cart = {} def add_cart(self, item, quantity): if item in self.cart: self.cart[item] += quantity else: self.cart[item] = quantity def remove_cart(self, item, quantity): if item in self.cart: self.cart[item] -= quantity if self.cart[item] <= 0: self.cart.pop(item)
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.398842, '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.690649, '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.396107, '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.4856, '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.394239, '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.65294, '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.0144583, '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.104552, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.106928, '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.104552, 'Execution Unit/Register Files/Runtime Dynamic': 0.121386, '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.252641, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.661894, '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.87694, '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.00420062, '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.00420062, '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.00371035, '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.00146457, '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.00153603, '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.0136476, '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.0384308, '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.102793, '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.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.348134, '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.34913, '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.96874, 'Instruction Fetch Unit/Runtime Dynamic': 0.852135, '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.0110794, 'L2/Runtime Dynamic': 0.00353944, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.72764, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.2019, '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.0805741, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0805741, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.10967, 'Load Store Unit/Runtime Dynamic': 1.67983, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.198682, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.397364, '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.0705129, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0706297, '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.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0572173, '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.680396, 'Memory Management Unit/Runtime Dynamic': 0.127847, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 23.9845, '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.0203946, '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.207867, '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.228261, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 5.76856, '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.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.174315, '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.281163, '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.141922, '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.597399, '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.199365, '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.21299, '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.00731154, '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.0528716, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0540733, '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.0528716, 'Execution Unit/Register Files/Runtime Dynamic': 0.0613848, '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.111386, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.291762, '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.55861, '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.00233622, '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.00233622, '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.0021177, '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.000865114, '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.000776767, '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.00756691, '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.0194391, '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.051982, '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.30651, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.175856, '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.176554, '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': 5.68549, 'Instruction Fetch Unit/Runtime Dynamic': 0.431399, '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.00567966, 'L2/Runtime Dynamic': 0.00181095, '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.49482, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.606984, '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.0406895, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0406894, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.68696, 'Load Store Unit/Runtime Dynamic': 0.848339, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.100333, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.200666, '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.0356086, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0356682, '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.205586, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0289046, '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.422865, 'Memory Management Unit/Runtime Dynamic': 0.0645729, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.6035, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00786459, '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.0889693, '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.0968338, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.00157, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.174456, '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.281392, '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.142037, '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.597885, '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.199528, '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.21331, '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.00731748, '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.0529148, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0541173, '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.0529148, 'Execution Unit/Register Files/Runtime Dynamic': 0.0614348, '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.111477, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.292084, '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.55947, '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.00233642, '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.00233642, '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.00211788, '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.000865185, '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.000777399, '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.00756812, '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.0194409, '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.0520243, '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.3092, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.175885, '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.176698, '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': 5.68831, 'Instruction Fetch Unit/Runtime Dynamic': 0.431617, '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.00569493, 'L2/Runtime Dynamic': 0.0018099, '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.49708, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.608061, '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.0407628, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0407627, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.68957, 'Load Store Unit/Runtime Dynamic': 0.849851, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.100514, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.201028, '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.0356728, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0357325, '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.205754, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0289097, '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.423142, 'Memory Management Unit/Runtime Dynamic': 0.0646422, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.6095, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00787099, '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.0890453, '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.0969163, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.00431, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.171484, '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.276597, '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.139617, '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.587698, '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.196128, '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.20665, '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.0071928, '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.0520131, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0531952, '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.0520131, 'Execution Unit/Register Files/Runtime Dynamic': 0.060388, '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.109577, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.287067, '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.54322, '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.00230096, '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.00230096, '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.00208598, '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.000852284, '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.000764153, '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.00745207, '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.0191372, '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.0511379, '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.25281, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.173547, '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.173687, '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': 5.62919, 'Instruction Fetch Unit/Runtime Dynamic': 0.424962, '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.00553716, 'L2/Runtime Dynamic': 0.00176953, '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.47472, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.597268, '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.0400394, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0400393, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.6638, 'Load Store Unit/Runtime Dynamic': 0.834767, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0987304, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.19746, '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.0350397, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0350981, '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.202248, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0285234, '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.418549, 'Memory Management Unit/Runtime Dynamic': 0.0636215, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.5132, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00773688, '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.0875208, '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.0952577, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.9636, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.3897204590469652, 'Runtime Dynamic': 0.3897204590469652, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0236227, 'Runtime Dynamic': 0.0134307, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 73.7343, 'Peak Power': 106.847, 'Runtime Dynamic': 14.7515, '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': 73.7107, 'Total Cores/Runtime Dynamic': 14.738, '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.0236227, 'Total L3s/Runtime Dynamic': 0.0134307, '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.398842, '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.690649, '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.396107, '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.4856, '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.394239, '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.65294, '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.0144583, '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.104552, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.106928, '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.104552, 'Execution Unit/Register Files/Runtime Dynamic': 0.121386, '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.252641, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.661894, '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.87694, '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.00420062, '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.00420062, '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.00371035, '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.00146457, '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.00153603, '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.0136476, '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.0384308, '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.102793, '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.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.348134, '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.34913, '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.96874, 'Instruction Fetch Unit/Runtime Dynamic': 0.852135, '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.0110794, 'L2/Runtime Dynamic': 0.00353944, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.72764, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.2019, '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.0805741, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0805741, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.10967, 'Load Store Unit/Runtime Dynamic': 1.67983, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.198682, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.397364, '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.0705129, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0706297, '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.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0572173, '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.680396, 'Memory Management Unit/Runtime Dynamic': 0.127847, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 23.9845, '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.0203946, '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.207867, '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.228261, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 5.76856, '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.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.174315, '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.281163, '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.141922, '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.597399, '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.199365, '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.21299, '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.00731154, '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.0528716, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0540733, '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.0528716, 'Execution Unit/Register Files/Runtime Dynamic': 0.0613848, '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.111386, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.291762, '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.55861, '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.00233622, '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.00233622, '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.0021177, '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.000865114, '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.000776767, '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.00756691, '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.0194391, '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.051982, '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.30651, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.175856, '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.176554, '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': 5.68549, 'Instruction Fetch Unit/Runtime Dynamic': 0.431399, '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.00567966, 'L2/Runtime Dynamic': 0.00181095, '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.49482, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.606984, '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.0406895, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0406894, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.68696, 'Load Store Unit/Runtime Dynamic': 0.848339, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.100333, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.200666, '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.0356086, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0356682, '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.205586, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0289046, '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.422865, 'Memory Management Unit/Runtime Dynamic': 0.0645729, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.6035, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00786459, '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.0889693, '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.0968338, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.00157, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.174456, '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.281392, '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.142037, '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.597885, '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.199528, '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.21331, '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.00731748, '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.0529148, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0541173, '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.0529148, 'Execution Unit/Register Files/Runtime Dynamic': 0.0614348, '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.111477, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.292084, '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.55947, '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.00233642, '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.00233642, '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.00211788, '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.000865185, '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.000777399, '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.00756812, '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.0194409, '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.0520243, '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.3092, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.175885, '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.176698, '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': 5.68831, 'Instruction Fetch Unit/Runtime Dynamic': 0.431617, '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.00569493, 'L2/Runtime Dynamic': 0.0018099, '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.49708, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.608061, '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.0407628, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0407627, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.68957, 'Load Store Unit/Runtime Dynamic': 0.849851, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.100514, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.201028, '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.0356728, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0357325, '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.205754, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0289097, '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.423142, 'Memory Management Unit/Runtime Dynamic': 0.0646422, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.6095, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00787099, '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.0890453, '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.0969163, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.00431, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.171484, '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.276597, '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.139617, '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.587698, '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.196128, '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.20665, '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.0071928, '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.0520131, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0531952, '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.0520131, 'Execution Unit/Register Files/Runtime Dynamic': 0.060388, '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.109577, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.287067, '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.54322, '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.00230096, '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.00230096, '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.00208598, '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.000852284, '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.000764153, '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.00745207, '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.0191372, '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.0511379, '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.25281, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.173547, '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.173687, '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': 5.62919, 'Instruction Fetch Unit/Runtime Dynamic': 0.424962, '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.00553716, 'L2/Runtime Dynamic': 0.00176953, '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.47472, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.597268, '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.0400394, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0400393, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.6638, 'Load Store Unit/Runtime Dynamic': 0.834767, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0987304, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.19746, '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.0350397, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0350981, '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.202248, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0285234, '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.418549, 'Memory Management Unit/Runtime Dynamic': 0.0636215, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.5132, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00773688, '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.0875208, '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.0952577, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.9636, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.3897204590469652, 'Runtime Dynamic': 0.3897204590469652, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0236227, 'Runtime Dynamic': 0.0134307, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 73.7343, 'Peak Power': 106.847, 'Runtime Dynamic': 14.7515, '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': 73.7107, 'Total Cores/Runtime Dynamic': 14.738, '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.0236227, 'Total L3s/Runtime Dynamic': 0.0134307, '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}}
# -*- coding: utf-8 -*- __all__ = [ "contact_us", "contact_us_thank_you", "feedback", "landing", "how_to_set_up_in_the_uk", "how_we_help_you_expand", "hpo", "hpo_contact_us", "hpo_contact_us_thank_you", "pixels", "uk_setup_guide_pages", ]
__all__ = ['contact_us', 'contact_us_thank_you', 'feedback', 'landing', 'how_to_set_up_in_the_uk', 'how_we_help_you_expand', 'hpo', 'hpo_contact_us', 'hpo_contact_us_thank_you', 'pixels', 'uk_setup_guide_pages']
#!/usr/bin/python3 """ 1-safe_print_integer """ def safe_print_list_integers(my_list=[], _x=0): """ safe_print_list_integers """ counter = 0 for i in range(_x): try: print("{:d}".format(my_list[i]), end="") counter += 1 except (ValueError, TypeError): continue print() return counter
""" 1-safe_print_integer """ def safe_print_list_integers(my_list=[], _x=0): """ safe_print_list_integers """ counter = 0 for i in range(_x): try: print('{:d}'.format(my_list[i]), end='') counter += 1 except (ValueError, TypeError): continue print() return counter
a=0 while a!=2002: a=int(input()) if a== 2002: print('Acesso Permitido') else: print('Senha Invalida')
a = 0 while a != 2002: a = int(input()) if a == 2002: print('Acesso Permitido') else: print('Senha Invalida')
# -*- coding: utf-8 -*- # @Time : 2018/5/23 20:53 # @Author : xiaoke # @Email : 976249817@qq.com # @File : my_test.py print(range(1)) for i in range(1): print(i)
print(range(1)) for i in range(1): print(i)
model = dict( type='StaticUnconditionalGAN', generator=dict(type='WGANGPGenerator', noise_size=128, out_scale=128), discriminator=dict( type='WGANGPDiscriminator', in_channel=3, in_scale=128, conv_module_cfg=dict( conv_cfg=None, kernel_size=3, stride=1, padding=1, bias=True, act_cfg=dict(type='LeakyReLU', negative_slope=0.2), norm_cfg=dict(type='GN'), order=('conv', 'norm', 'act'))), gan_loss=dict(type='GANLoss', gan_type='wgan'), disc_auxiliary_loss=[ dict( type='GradientPenaltyLoss', loss_weight=10, norm_mode='HWC', data_info=dict( discriminator='disc', real_data='real_imgs', fake_data='fake_imgs')) ]) train_cfg = dict(disc_steps=5) test_cfg = None optimizer = dict( generator=dict(type='Adam', lr=0.0001, betas=(0.5, 0.9)), discriminator=dict(type='Adam', lr=0.0001, betas=(0.5, 0.9)))
model = dict(type='StaticUnconditionalGAN', generator=dict(type='WGANGPGenerator', noise_size=128, out_scale=128), discriminator=dict(type='WGANGPDiscriminator', in_channel=3, in_scale=128, conv_module_cfg=dict(conv_cfg=None, kernel_size=3, stride=1, padding=1, bias=True, act_cfg=dict(type='LeakyReLU', negative_slope=0.2), norm_cfg=dict(type='GN'), order=('conv', 'norm', 'act'))), gan_loss=dict(type='GANLoss', gan_type='wgan'), disc_auxiliary_loss=[dict(type='GradientPenaltyLoss', loss_weight=10, norm_mode='HWC', data_info=dict(discriminator='disc', real_data='real_imgs', fake_data='fake_imgs'))]) train_cfg = dict(disc_steps=5) test_cfg = None optimizer = dict(generator=dict(type='Adam', lr=0.0001, betas=(0.5, 0.9)), discriminator=dict(type='Adam', lr=0.0001, betas=(0.5, 0.9)))
class EndUploadEvent(object): """Event dispatched when an upload starts""" def __init__(self, filepath, uploaded_files, files_to_upload): """ Constructor :param str filepath: file uploaded :param int uploaded_files: total files uploaded count :param int files_to_upload: total files to upload count """ self._filepath = filepath self._uploaded_files = uploaded_files self._files_to_upload = files_to_upload @property def filepath(self): # pragma: no cover """ Getter for the file uploaded :rtype: str """ return self._filepath @property def uploaded_files(self): # pragma: no cover """ Getter for the total files uploaded count :rtype: int """ return self._uploaded_files @property def files_to_upload(self): # pragma: no cover """ Getter for the total files to upload count :rtype: int """ return self._files_to_upload
class Enduploadevent(object): """Event dispatched when an upload starts""" def __init__(self, filepath, uploaded_files, files_to_upload): """ Constructor :param str filepath: file uploaded :param int uploaded_files: total files uploaded count :param int files_to_upload: total files to upload count """ self._filepath = filepath self._uploaded_files = uploaded_files self._files_to_upload = files_to_upload @property def filepath(self): """ Getter for the file uploaded :rtype: str """ return self._filepath @property def uploaded_files(self): """ Getter for the total files uploaded count :rtype: int """ return self._uploaded_files @property def files_to_upload(self): """ Getter for the total files to upload count :rtype: int """ return self._files_to_upload
# not yet finished N = int(input()) input() for _ in range(int(input())): A, F = int(input()), int(input()) try: input() except EOFError: pass
n = int(input()) input() for _ in range(int(input())): (a, f) = (int(input()), int(input())) try: input() except EOFError: pass
def minion_game(string): # your code goes here vowels = "AEIOU" kevsc = 0 stusc = 0 for i in range(len(string)): if string[i] in vowels: kevsc += (len(string) - i) else: stusc += (len(string) - i) if kevsc > stusc: print("Kevin", kevsc) elif kevsc < stusc: print("Stuart", stusc) else: print("Draw")
def minion_game(string): vowels = 'AEIOU' kevsc = 0 stusc = 0 for i in range(len(string)): if string[i] in vowels: kevsc += len(string) - i else: stusc += len(string) - i if kevsc > stusc: print('Kevin', kevsc) elif kevsc < stusc: print('Stuart', stusc) else: print('Draw')
input = """ %This is an example where we can not eliminate the duplicates of the rules. %#maxint=8. p(X) | r(X) :- q(X,Y), q(A,B), s(X,A), s(Y,B). q(1,3). q(2,4). q(2,7). q(3,8). q(3,5). q(1,6). s(0,1). s(1,2). s(2,3). s(3,4). s(4,5). s(5,6). s(6,7). s(7,8). """ output = """ %This is an example where we can not eliminate the duplicates of the rules. %#maxint=8. p(X) | r(X) :- q(X,Y), q(A,B), s(X,A), s(Y,B). q(1,3). q(2,4). q(2,7). q(3,8). q(3,5). q(1,6). s(0,1). s(1,2). s(2,3). s(3,4). s(4,5). s(5,6). s(6,7). s(7,8). """
input = '\n%This is an example where we can not eliminate the duplicates of the rules.\n\n%#maxint=8.\n \np(X) | r(X) :- q(X,Y), q(A,B), s(X,A), s(Y,B).\n\nq(1,3).\nq(2,4).\nq(2,7).\nq(3,8).\nq(3,5).\nq(1,6).\n\ns(0,1).\ns(1,2).\ns(2,3).\ns(3,4).\ns(4,5).\ns(5,6).\ns(6,7).\ns(7,8).\n' output = '\n%This is an example where we can not eliminate the duplicates of the rules.\n\n%#maxint=8.\n \np(X) | r(X) :- q(X,Y), q(A,B), s(X,A), s(Y,B).\n\nq(1,3).\nq(2,4).\nq(2,7).\nq(3,8).\nq(3,5).\nq(1,6).\n\ns(0,1).\ns(1,2).\ns(2,3).\ns(3,4).\ns(4,5).\ns(5,6).\ns(6,7).\ns(7,8).\n'
class TreeNode: def __init__(self, x): self.val = x self.left = self.right = None class Solution: def isSymmetric(self, root): def isSym(left, right): if left is None or right is None: return left == right if left.val != right.val: return False return isSym(left.left, right.right) and isSym(left.right, right.left) return isSym(root, root)
class Treenode: def __init__(self, x): self.val = x self.left = self.right = None class Solution: def is_symmetric(self, root): def is_sym(left, right): if left is None or right is None: return left == right if left.val != right.val: return False return is_sym(left.left, right.right) and is_sym(left.right, right.left) return is_sym(root, root)
ncases = int(input()) for _ in range(ncases): X, Y, Z = map(int, input().split()) A = [X, Y] B = [X, Z] C = [Y, Z] found = False for a in A: for b in B: for c in C: if X == max(a, b) and Y == max(a, c) and Z == max(b, c): print("YES") print(a, b, c) found = True break else: continue break else: continue break if not found: print("NO")
ncases = int(input()) for _ in range(ncases): (x, y, z) = map(int, input().split()) a = [X, Y] b = [X, Z] c = [Y, Z] found = False for a in A: for b in B: for c in C: if X == max(a, b) and Y == max(a, c) and (Z == max(b, c)): print('YES') print(a, b, c) found = True break else: continue break else: continue break if not found: print('NO')
# lambda function is a different type function which does not have name # and is only used to return values # lambda functions are exclusively used to operate on inputs and return outputs def add(x, y): return x+y print(add(5, 7)) # OR def add_lambda(x, y): return x+y print(add_lambda(10, 10)) # Real Usage of Lambda function def double(x): return x*2 seq = [1, 2, 3, 4, 5] doubled = [double(x) for x in seq] print(doubled) # OR doubled_lambda = list(map(lambda x: x*2, seq)) print(doubled_lambda)
def add(x, y): return x + y print(add(5, 7)) def add_lambda(x, y): return x + y print(add_lambda(10, 10)) def double(x): return x * 2 seq = [1, 2, 3, 4, 5] doubled = [double(x) for x in seq] print(doubled) doubled_lambda = list(map(lambda x: x * 2, seq)) print(doubled_lambda)
def maximum(values): large = None for value in values: if large is None or value > large: large = value return large print(maximum([9,10,100]))
def maximum(values): large = None for value in values: if large is None or value > large: large = value return large print(maximum([9, 10, 100]))
def save_txt(file): saida = open('cache/data.txt','w') for line in file: saida.write(str(line.replace('\n',''))+'\n') saida.close()
def save_txt(file): saida = open('cache/data.txt', 'w') for line in file: saida.write(str(line.replace('\n', '')) + '\n') saida.close()
f = open("Q2/inputs.txt","r") z = f.readlines() c = d = 0 for i in z: #print(i) a,b = i.split() if a == "forward": c += int(b) elif a == "down": d += int(b) else: d -= int(b) print(c*d) c = d = 0 aim = 0 for i in z: #print(i) a,b = i.split() if a == "forward": c += int(b) d += aim*int(b) elif a == "down": #d += int(b) aim += int(b) else: #d -= int(b) aim -= int(b) print(c*d) submarine = [ " |_ ", " _____|~ |____ ", " ( -- ~~~~--_ ", " ~~~~~~~~~~~~~~~~~~~'`" ] f = open("Q2/inputs2.txt","r") commands = f.readlines() submarine = [ " _| ", " ____| ~|_____ ", " _------ -- )", "/'------------------- ", ] ocean = [[*"~"*50]for _ in range(10)] current_cord = [0,0] for i in range(len(submarine)): for j in range(len(submarine[i])): ocean[i][j] = submarine[i][j] for i in ocean: print("".join(i)) ocean = [[*"~"*50]for _ in range(10)] for cmd in commands: print(cmd) action, num = cmd.split() if action == "forward": current_cord[1] += int(num) elif action == "up": current_cord[0] += int(num) else: current_cord[0] -= int(num) for i in range(len(submarine)): for j in range(len(submarine[i])): ocean[i+current_cord[0]][j+current_cord[1]] = submarine[i][j] for i in ocean: print("".join(i)) ocean = [[*"~"*50]for _ in range(10)] f = open("Q2/inputs.txt","r") commands = f.readlines() a = [((j[0][0]=="f")*int(j[1]), (j[0][0]!="f")*([-1,1][j[0][0]=="d"]*int(j[1]))) for i in commands if (j:=i.split())] print(__import__("math").prod([sum(i) for i in zip(*a)])) a = [((i.split()[0][0]=="f")*int(i.split()[1]),(i.split()[0][0]!="f")*([-1,1][i.split()[0][0]=="d"]*int(i.split()[1])))for i in open("inputs.txt").readlines()] print(__import__("math").prod([sum(i)for i in zip(*[((i.split()[0][0]=="f")*int(i.split()[1]),(i.split()[0][0]!="f")*([-1,1][i.split()[0][0]=="d"]*int(i.split()[1])))for i in open("inputs.txt").readlines()])])) # submarine = [ # " _| ", # " ____| ~|_____ ", # " _------ -- )", # "/'------------------- ",] # ocean = [[*"~"*50]for _ in range(10)] # for cmd in commands: # print(cmd) # action, num = cmd.split() # if action == "forward": # current_cord[1] += int(num) # elif action == "up": # current_cord[0] += int(num) # else: # current_cord[0] -= int(num) # for i in range(len(submarine)): # for j in range(len(submarine[i])): # ocean[i+current_cord[0]][j+current_cord[1]] = submarine[i][j] # for i in ocean: # print("".join(i)) # ocean = [[*"~"*50]for _ in range(10)]
f = open('Q2/inputs.txt', 'r') z = f.readlines() c = d = 0 for i in z: (a, b) = i.split() if a == 'forward': c += int(b) elif a == 'down': d += int(b) else: d -= int(b) print(c * d) c = d = 0 aim = 0 for i in z: (a, b) = i.split() if a == 'forward': c += int(b) d += aim * int(b) elif a == 'down': aim += int(b) else: aim -= int(b) print(c * d) submarine = [' |_ ', ' _____|~ |____ ', ' ( -- ~~~~--_ ', " ~~~~~~~~~~~~~~~~~~~'`"] f = open('Q2/inputs2.txt', 'r') commands = f.readlines() submarine = [' _| ', ' ____| ~|_____ ', ' _------ -- )', "/'------------------- "] ocean = [[*'~' * 50] for _ in range(10)] current_cord = [0, 0] for i in range(len(submarine)): for j in range(len(submarine[i])): ocean[i][j] = submarine[i][j] for i in ocean: print(''.join(i)) ocean = [[*'~' * 50] for _ in range(10)] for cmd in commands: print(cmd) (action, num) = cmd.split() if action == 'forward': current_cord[1] += int(num) elif action == 'up': current_cord[0] += int(num) else: current_cord[0] -= int(num) for i in range(len(submarine)): for j in range(len(submarine[i])): ocean[i + current_cord[0]][j + current_cord[1]] = submarine[i][j] for i in ocean: print(''.join(i)) ocean = [[*'~' * 50] for _ in range(10)] f = open('Q2/inputs.txt', 'r') commands = f.readlines() a = [((j[0][0] == 'f') * int(j[1]), (j[0][0] != 'f') * ([-1, 1][j[0][0] == 'd'] * int(j[1]))) for i in commands if (j := i.split())] print(__import__('math').prod([sum(i) for i in zip(*a)])) a = [((i.split()[0][0] == 'f') * int(i.split()[1]), (i.split()[0][0] != 'f') * ([-1, 1][i.split()[0][0] == 'd'] * int(i.split()[1]))) for i in open('inputs.txt').readlines()] print(__import__('math').prod([sum(i) for i in zip(*[((i.split()[0][0] == 'f') * int(i.split()[1]), (i.split()[0][0] != 'f') * ([-1, 1][i.split()[0][0] == 'd'] * int(i.split()[1]))) for i in open('inputs.txt').readlines()])]))
#when we cretae a tuple , we normally assign values to it this is called packing a tuple fruits=("apple","banana","cherry") (green,yellow,red)= fruits print(green) print(yellow) print(red) #The number of variable must match the number of values in tuple if not , you must use an asterisk to collect the remeaing value as a list #Using Asterisk (green, yellow ,*red)=fruits print(green) print(yellow) print(red)
fruits = ('apple', 'banana', 'cherry') (green, yellow, red) = fruits print(green) print(yellow) print(red) (green, yellow, *red) = fruits print(green) print(yellow) print(red)
def solution(board: list, moves: list) -> int: # board: 2d array # moves: column stack = [] answer = 0 row = len(board) for m in moves: for i in range(row): if board[i][m-1]: if not stack: stack.append(board[i][m-1]) else: if stack[-1] == board[i][m-1]: stack.pop() answer += 2 else: stack.append(board[i][m-1]) board[i][m-1] = 0 break return answer
def solution(board: list, moves: list) -> int: stack = [] answer = 0 row = len(board) for m in moves: for i in range(row): if board[i][m - 1]: if not stack: stack.append(board[i][m - 1]) elif stack[-1] == board[i][m - 1]: stack.pop() answer += 2 else: stack.append(board[i][m - 1]) board[i][m - 1] = 0 break return answer
def method1(n: int, l: list) -> list: n = 2 l = [i for i in range(10)] # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] return l.remove(2) # [0, 1, 3, 4, 5, 6, 7, 8, 9] def method2(n: int, l: list) -> list: n = 2 l = [i for i in range(10)] # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] return l.pop(0) # [1, 2, 3, 4, 5, 6, 7, 8, 9] if __name__ == "__main__": """ n = 2 l = [i for i in range(10)] # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] from timeit import timeit print(timeit(lambda: method1(n, l), number=10000)) # 0.007390202999886242 print(timeit(lambda: method2(n, l), number=10000)) # 0.0074160020012641326 """
def method1(n: int, l: list) -> list: n = 2 l = [i for i in range(10)] return l.remove(2) def method2(n: int, l: list) -> list: n = 2 l = [i for i in range(10)] return l.pop(0) if __name__ == '__main__': '\n n = 2\n l = [i for i in range(10)] # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n from timeit import timeit\n print(timeit(lambda: method1(n, l), number=10000)) # 0.007390202999886242\n print(timeit(lambda: method2(n, l), number=10000)) # 0.0074160020012641326\n '
""" The Natural Language Generator for hospital data. The generator will: a) Determine an opening line about the data b) Follow up by verbalizing some choices c) If there are more than 2 choices, it will also show tabular data d) If your highest rated option is no the closest, it will mention that fact e) Make a lexical choice (Highest, high, etc.) regarding the overall score """ class Hospital_NLG: "Class for generating natural language about hospitals" def __init__(self, hospital_data): "Initialize the class with a DataFrame about available hospitals" self.set_data(hospital_data) self.opening = '' # Human friendly first line self.hospital_choices = '' # Top choices of hospitals self.aggregation = '' # Tabular data self.lexical_mapping = {'5 overall rating': 'the highest overall rating', '4 overall rating': 'a high overall rating', '3 overall rating': 'a medium overall rating', '2 overall rating': 'a low overall rating', '1 overall rating': 'the lowest overall rating', 'has a 0 overall rating': 'does not have an available rating'} # Verbalize overall score self.msg = '' def set_data(self, data): "Set the NLG class's data attribute" data['Hospital overall rating'].replace( 'Not Available', 0, inplace=True) self.data = data.sort_values( ['Hospital overall rating', 'Distance'], ascending=[False, True]) self.rows, self.columns = self.data.shape def get_summary(self): "Return a summary of the hospital choices" self.determine_opening() self.get_hospital_summary() self.get_aggregated_table() self.msg = self.opening + self.hospital_choices + self.aggregation return self.msg def get_lexical_replacements(self, msg): "Replace strings with human words" new_message = msg for key, value in self.lexical_mapping.iteritems(): new_message = new_message.replace(key, value) return new_message def get_aggregated_table(self): "Put the dataframe into HTML table data format" if self.rows > 0: self.aggregation = '<br><br><h3>Tabular summary:</h3><br>' self.aggregation += self.data[['Hospital Name', 'Hospital overall rating', 'Distance', 'Phone Number', 'Hospital Type', 'Emergency Services', 'Hospital Ownership']].to_html(index=False, float_format="%.2f") def get_hospital_summary(self): "Return a verbal summary for the hospitals provided" top_n_hospitals = self.data.head(3) rows, cols = top_n_hospitals.shape msg = '' count = 1 for index, row in top_n_hospitals.iterrows(): #$NAME: ~$MILES miles away <and has a $OVERALL_RATING rating/but does not have an overall rating>. Their listed phone number is: $PHONE. This hospital <has/does not have> emergency services. <This is a government hospital> msg += '<br>%d. <b>%s</b> is <b>%.2f miles</b> away and has %d overall rating. Their listed phone number is %s.' % ( count, str(row['Hospital Name']), float(row['Distance']), int(row['Hospital overall rating']), str(row['Phone Number'])) count += 1 msg += '<br>' self.hospital_choices = self.get_lexical_replacements(msg) def determine_opening(self): "Determine the opening lines of the message" if self.rows == 0: self.opening = 'There are no hospitals within a 20-mile radius of your zip code.' elif self.rows == 1: self.opening = 'You have only one hospital within 20-mile radius of your zip code.<br>' else: sorted_data_distance = self.data.sort_values('Distance') closest_hospital = sorted_data_distance.head( 1)['Hospital Name'].values[0] highest_rated_hospital = self.data.head(1)[ 'Hospital Name'].values[0] if highest_rated_hospital == closest_hospital: self.opening = 'You have more than one option near you. Consider one of the following:<br>' else: self.opening = '%s is the best rated hospital near you ... and %s is the closest to you. Your options are:<br>' % ( self.data.head(1)['Hospital Name'].values[0], sorted_data_distance.head(1)['Hospital Name'].values[0])
""" The Natural Language Generator for hospital data. The generator will: a) Determine an opening line about the data b) Follow up by verbalizing some choices c) If there are more than 2 choices, it will also show tabular data d) If your highest rated option is no the closest, it will mention that fact e) Make a lexical choice (Highest, high, etc.) regarding the overall score """ class Hospital_Nlg: """Class for generating natural language about hospitals""" def __init__(self, hospital_data): """Initialize the class with a DataFrame about available hospitals""" self.set_data(hospital_data) self.opening = '' self.hospital_choices = '' self.aggregation = '' self.lexical_mapping = {'5 overall rating': 'the highest overall rating', '4 overall rating': 'a high overall rating', '3 overall rating': 'a medium overall rating', '2 overall rating': 'a low overall rating', '1 overall rating': 'the lowest overall rating', 'has a 0 overall rating': 'does not have an available rating'} self.msg = '' def set_data(self, data): """Set the NLG class's data attribute""" data['Hospital overall rating'].replace('Not Available', 0, inplace=True) self.data = data.sort_values(['Hospital overall rating', 'Distance'], ascending=[False, True]) (self.rows, self.columns) = self.data.shape def get_summary(self): """Return a summary of the hospital choices""" self.determine_opening() self.get_hospital_summary() self.get_aggregated_table() self.msg = self.opening + self.hospital_choices + self.aggregation return self.msg def get_lexical_replacements(self, msg): """Replace strings with human words""" new_message = msg for (key, value) in self.lexical_mapping.iteritems(): new_message = new_message.replace(key, value) return new_message def get_aggregated_table(self): """Put the dataframe into HTML table data format""" if self.rows > 0: self.aggregation = '<br><br><h3>Tabular summary:</h3><br>' self.aggregation += self.data[['Hospital Name', 'Hospital overall rating', 'Distance', 'Phone Number', 'Hospital Type', 'Emergency Services', 'Hospital Ownership']].to_html(index=False, float_format='%.2f') def get_hospital_summary(self): """Return a verbal summary for the hospitals provided""" top_n_hospitals = self.data.head(3) (rows, cols) = top_n_hospitals.shape msg = '' count = 1 for (index, row) in top_n_hospitals.iterrows(): msg += '<br>%d. <b>%s</b> is <b>%.2f miles</b> away and has %d overall rating. Their listed phone number is %s.' % (count, str(row['Hospital Name']), float(row['Distance']), int(row['Hospital overall rating']), str(row['Phone Number'])) count += 1 msg += '<br>' self.hospital_choices = self.get_lexical_replacements(msg) def determine_opening(self): """Determine the opening lines of the message""" if self.rows == 0: self.opening = 'There are no hospitals within a 20-mile radius of your zip code.' elif self.rows == 1: self.opening = 'You have only one hospital within 20-mile radius of your zip code.<br>' else: sorted_data_distance = self.data.sort_values('Distance') closest_hospital = sorted_data_distance.head(1)['Hospital Name'].values[0] highest_rated_hospital = self.data.head(1)['Hospital Name'].values[0] if highest_rated_hospital == closest_hospital: self.opening = 'You have more than one option near you. Consider one of the following:<br>' else: self.opening = '%s is the best rated hospital near you ... and %s is the closest to you. Your options are:<br>' % (self.data.head(1)['Hospital Name'].values[0], sorted_data_distance.head(1)['Hospital Name'].values[0])
''' The Vector class of Section 2.3.3 provides a constructor that takes an integer d, and produces a d-dimensional vector with all coordinates equal to 0. Another convenient form for creating a new vector would be to send the constructor a parameter that is some iterable type representing a sequence of numbers, and to create a vector with dimension equal to the length of that sequence and coordinates equal to the sequence values. For example, Vector([4, 7, 5]) would produce a three-dimensional vector with coordinates <4,7,5>. Modify the constructor so that either of these forms is acceptable; that is, if a single integer is sent, it produces a vector of that dimension with all zeros, but if a sequence of numbers is provided,it produces a vector with coordinates based on that sequence. ''' class Vector: '''Represent a vector in a multidimensional space.''' def __init__(self, vector=None): '''Create vector-dimensional vector of zeros.or create a vector as pass in argument''' if type(vector) is int: self.coords = [0]*vector else: self.coords = vector
""" The Vector class of Section 2.3.3 provides a constructor that takes an integer d, and produces a d-dimensional vector with all coordinates equal to 0. Another convenient form for creating a new vector would be to send the constructor a parameter that is some iterable type representing a sequence of numbers, and to create a vector with dimension equal to the length of that sequence and coordinates equal to the sequence values. For example, Vector([4, 7, 5]) would produce a three-dimensional vector with coordinates <4,7,5>. Modify the constructor so that either of these forms is acceptable; that is, if a single integer is sent, it produces a vector of that dimension with all zeros, but if a sequence of numbers is provided,it produces a vector with coordinates based on that sequence. """ class Vector: """Represent a vector in a multidimensional space.""" def __init__(self, vector=None): """Create vector-dimensional vector of zeros.or create a vector as pass in argument""" if type(vector) is int: self.coords = [0] * vector else: self.coords = vector
def sort(words): # write your code here... return print(sort( ['hi', 'bye'] )) print(sort( ['abc', 'def'] )) print(sort( ['hi', 'bye', 'def', 'abc'] )) print(sort( ['add', 'some', 'more', 'words', 'here!'] ))
def sort(words): return print(sort(['hi', 'bye'])) print(sort(['abc', 'def'])) print(sort(['hi', 'bye', 'def', 'abc'])) print(sort(['add', 'some', 'more', 'words', 'here!']))
class CityScrapersLoggingPipeline(object): """ Dummy logging pipeline. Enabled by default, it reminds developers to turn on some kind of backend storage pipeline. """ def process_item(self, item, spider): spider.logger.warn( 'Processing {0}. Enable a database pipeline to save items.'.format( item.get('title', 'No title found') ) ) return item
class Cityscrapersloggingpipeline(object): """ Dummy logging pipeline. Enabled by default, it reminds developers to turn on some kind of backend storage pipeline. """ def process_item(self, item, spider): spider.logger.warn('Processing {0}. Enable a database pipeline to save items.'.format(item.get('title', 'No title found'))) return item
PATHS_TO_BACKUP = ['C:\\', 'd:\\'] #case sensetive EXCLUDED_PATHS = ['C:\\Program Files (x86)', 'C:\\Program Files', 'C:\\Windows'] BACKUP_DESTINATION = 'PCBACKUP' PROGRESS_INTERNALS = 1 DRIVE_SCAN_PAGE_SIZE = 100 WORKERS = 30 UPLOAD_RETRIES = 3 LOG_LEVEL = 'INFO' # DEBUG, INFO, ERROR FULL_SYNC_EVERY = 14 * 24 * 60 * 60 #Test values PATHS_TO_BACKUP = ['C:\\drive-backup', 'C:\\ATI'] BACKUP_DESTINATION = 'PCBACKUPTEMP' WORKERS = 3 DRIVE_SCAN_PAGE_SIZE = 2 LOG_LEVEL = 'DEBUG' FULL_SYNC_EVERY = 1 * 60
paths_to_backup = ['C:\\', 'd:\\'] excluded_paths = ['C:\\Program Files (x86)', 'C:\\Program Files', 'C:\\Windows'] backup_destination = 'PCBACKUP' progress_internals = 1 drive_scan_page_size = 100 workers = 30 upload_retries = 3 log_level = 'INFO' full_sync_every = 14 * 24 * 60 * 60 paths_to_backup = ['C:\\drive-backup', 'C:\\ATI'] backup_destination = 'PCBACKUPTEMP' workers = 3 drive_scan_page_size = 2 log_level = 'DEBUG' full_sync_every = 1 * 60
def main(): n = int(input()) vec = None for _ in range(n): current_vec = [int(x) for x in input().split()] if vec == None: vec = [0] * len(current_vec) vec = [vec[i] + current_vec[i] for i in range(len(current_vec))] print("NO") if set(vec) != set([0]) else print("YES") main()
def main(): n = int(input()) vec = None for _ in range(n): current_vec = [int(x) for x in input().split()] if vec == None: vec = [0] * len(current_vec) vec = [vec[i] + current_vec[i] for i in range(len(current_vec))] print('NO') if set(vec) != set([0]) else print('YES') main()
def meia_noite(h, m, s): ts=((h*60)*60)+(m*60)+s r=ts-0 return r h=int(input()) m=int(input()) s=int(input()) t=meia_noite(h, m,s) def mensagem(msg): print(msg) def main(): mensagem(t) if __name__=='__main__': main()
def meia_noite(h, m, s): ts = h * 60 * 60 + m * 60 + s r = ts - 0 return r h = int(input()) m = int(input()) s = int(input()) t = meia_noite(h, m, s) def mensagem(msg): print(msg) def main(): mensagem(t) if __name__ == '__main__': main()
def ciSono(parola,lettere): i = 0 lunghezza = (len(parola))-1 while i < lunghezza: a = parola[lunghezza] if a in lettere: return True lunghezza = lunghezza-1 return False def usaSolo(parola,lettere): if ciSono(parola,lettere) == True: if parola in lettere: return True else: return False lettere = ['s'] print(ciSono('ciao',lettere)) print(usaSolo('ciao',lettere))
def ci_sono(parola, lettere): i = 0 lunghezza = len(parola) - 1 while i < lunghezza: a = parola[lunghezza] if a in lettere: return True lunghezza = lunghezza - 1 return False def usa_solo(parola, lettere): if ci_sono(parola, lettere) == True: if parola in lettere: return True else: return False lettere = ['s'] print(ci_sono('ciao', lettere)) print(usa_solo('ciao', lettere))
def var_args(name, *args): print(name) print(args) def var_args2(name, **kwargs): print(name) print(kwargs['description'], kwargs['feedback']) var_args('Mark', 'loves python', None, True) var_args2('Mark', description="loves python", feedback=None)
def var_args(name, *args): print(name) print(args) def var_args2(name, **kwargs): print(name) print(kwargs['description'], kwargs['feedback']) var_args('Mark', 'loves python', None, True) var_args2('Mark', description='loves python', feedback=None)
'''Take the following Python code that stores a string: str = 'X-DSPAM-Confidence: 0.8475 ' Use "find" and string slicing to extract the portion of the string after the colon character and then use the "float" function to convert the extracted string into a floating point number. ''' str = 'X-DSPAM-Confidence: 0.8475 ' npos = str.find(':') n = str[npos+1:] print('>' + n + '<') f = float(n.strip()) print(f)
"""Take the following Python code that stores a string: str = 'X-DSPAM-Confidence: 0.8475 ' Use "find" and string slicing to extract the portion of the string after the colon character and then use the "float" function to convert the extracted string into a floating point number. """ str = 'X-DSPAM-Confidence: 0.8475 ' npos = str.find(':') n = str[npos + 1:] print('>' + n + '<') f = float(n.strip()) print(f)
def main(): ran = range(3) for i in ran: path = 'class'+str(i)+'/' f = open(path+'word.db','w') f.close() f = open('dictionary','w') f.close() f = open('dictionary2','w') f.close() if __name__=='__main__': main()
def main(): ran = range(3) for i in ran: path = 'class' + str(i) + '/' f = open(path + 'word.db', 'w') f.close() f = open('dictionary', 'w') f.close() f = open('dictionary2', 'w') f.close() if __name__ == '__main__': main()
# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test_app', 'product_name': 'Test App', 'type': 'executable', 'mac_bundle': 1, 'sources': [ 'main.c', ], 'xcode_settings': { 'INFOPLIST_FILE': 'TestApp-Info.plist', }, }, { 'target_name': 'test_app_postbuilds', 'product_name': 'Test App 2', 'type': 'executable', 'mac_bundle': 1, 'sources': [ 'main.c', ], 'xcode_settings': { 'INFOPLIST_FILE': 'TestApp-Info.plist', }, 'postbuilds': [ { 'postbuild_name': 'Postbuild that touches the app binary', 'action': [ './delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}', ], }, ], }, { 'target_name': 'test_framework_postbuilds', 'product_name': 'Test Framework', 'type': 'shared_library', 'mac_bundle': 1, 'sources': [ 'empty.c', ], 'postbuilds': [ { 'postbuild_name': 'Postbuild that touches the framework binary', 'action': [ './delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}', ], }, ], }, ], }
{'targets': [{'target_name': 'test_app', 'product_name': 'Test App', 'type': 'executable', 'mac_bundle': 1, 'sources': ['main.c'], 'xcode_settings': {'INFOPLIST_FILE': 'TestApp-Info.plist'}}, {'target_name': 'test_app_postbuilds', 'product_name': 'Test App 2', 'type': 'executable', 'mac_bundle': 1, 'sources': ['main.c'], 'xcode_settings': {'INFOPLIST_FILE': 'TestApp-Info.plist'}, 'postbuilds': [{'postbuild_name': 'Postbuild that touches the app binary', 'action': ['./delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}']}]}, {'target_name': 'test_framework_postbuilds', 'product_name': 'Test Framework', 'type': 'shared_library', 'mac_bundle': 1, 'sources': ['empty.c'], 'postbuilds': [{'postbuild_name': 'Postbuild that touches the framework binary', 'action': ['./delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}']}]}]}
# This file is part of Project Deity. # Copyright 2020-2021, Frostflake (L.A.) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. equippable_item_types = ["Accessory", "Helmet", "Ring", "Weapon", "Armor", "Shield", "Gloves", "Legs", "Boots"] # Returns False if nothing was done # Returns True if item was equipped to an empty slot successfully # Returns the item ID of the previously equipped item otherwise async def equip_item(cursor, follower_id, slot_num): # What inventory item are we equipping? cursor.execute('''SELECT item_id FROM "project-deity".follower_inventories WHERE follower_id = %s AND slot_num = %s;''', (follower_id, slot_num)) item_id = cursor.fetchone()["item_id"] # What class is the item? cursor.execute('''SELECT class_type FROM "project-deity".player_items WHERE id = %s;''', (item_id, )) class_type = cursor.fetchone()["class_type"] # Is this a piece of equipment? if class_type not in equippable_item_types: return False # Is there an item equipped in this slot? cursor.execute('''SELECT * FROM "project-deity".follower_equipment WHERE follower_id = %s;''', (follower_id, )) old_item = cursor.fetchone()[class_type.lower()] # Handle inventory management if old_item is not None: # Return item to inventory. We can reuse the # equipping item's slot so we don't need to # worry about inventory space. cursor.execute('''UPDATE "project-deity".follower_inventories SET item_id = %s WHERE follower_id = %s AND slot_num = %s;''', (item_id, follower_id, slot_num)) else: # If we aren't reusing the inventory slot, then # we need to remove the item we're equipping # from the inventory. cursor.execute('''DELETE FROM "project-deity".follower_inventories WHERE follower_id = %s AND slot_num = %s;''', (follower_id, slot_num)) # Equip new item # Yes, yes, string concatination for SQL is a sin # but in this case it's not user input, it's from # equippable_item_types up above cursor.execute('''UPDATE "project-deity".follower_equipment SET ''' + class_type.lower() + ''' = %s WHERE follower_id = %s;''', (item_id, follower_id)) # Return status if old_item is None: return True return old_item
equippable_item_types = ['Accessory', 'Helmet', 'Ring', 'Weapon', 'Armor', 'Shield', 'Gloves', 'Legs', 'Boots'] async def equip_item(cursor, follower_id, slot_num): cursor.execute('SELECT item_id\n FROM "project-deity".follower_inventories\n WHERE follower_id = %s\n AND slot_num = %s;', (follower_id, slot_num)) item_id = cursor.fetchone()['item_id'] cursor.execute('SELECT class_type\n FROM "project-deity".player_items\n WHERE id = %s;', (item_id,)) class_type = cursor.fetchone()['class_type'] if class_type not in equippable_item_types: return False cursor.execute('SELECT *\n FROM "project-deity".follower_equipment\n WHERE follower_id = %s;', (follower_id,)) old_item = cursor.fetchone()[class_type.lower()] if old_item is not None: cursor.execute('UPDATE "project-deity".follower_inventories\n SET item_id = %s\n WHERE follower_id = %s\n AND slot_num = %s;', (item_id, follower_id, slot_num)) else: cursor.execute('DELETE FROM "project-deity".follower_inventories\n WHERE follower_id = %s\n AND slot_num = %s;', (follower_id, slot_num)) cursor.execute('UPDATE "project-deity".follower_equipment\n SET ' + class_type.lower() + ' = %s\n WHERE follower_id = %s;', (item_id, follower_id)) if old_item is None: return True return old_item
# # PySNMP MIB module FOUNDRY-MAC-VLAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FOUNDRY-MAC-VLAN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:01:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibIdentifier, Integer32, Gauge32, ObjectIdentity, Bits, TimeTicks, Unsigned32, iso, ModuleIdentity, IpAddress, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Integer32", "Gauge32", "ObjectIdentity", "Bits", "TimeTicks", "Unsigned32", "iso", "ModuleIdentity", "IpAddress", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "NotificationType") TextualConvention, DisplayString, MacAddress, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "MacAddress", "RowStatus") fdryMacVlanMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32)) fdryMacVlanMIB.setRevisions(('2010-06-02 00:00', '2008-12-17 00:00',)) if mibBuilder.loadTexts: fdryMacVlanMIB.setLastUpdated('201006020000Z') if mibBuilder.loadTexts: fdryMacVlanMIB.setOrganization('Brocade Communications Systems, Inc.') fdryMacVlanGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1)) fdryMacVlanTableObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2)) fdryMacVlanGlobalClearOper = MibScalar((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("valid", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanGlobalClearOper.setStatus('current') fdryMacVlanGlobalDynConfigState = MibScalar((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanGlobalDynConfigState.setStatus('current') fdryMacVlanPortMemberTable = MibTable((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1), ) if mibBuilder.loadTexts: fdryMacVlanPortMemberTable.setStatus('current') fdryMacVlanPortMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1), ).setIndexNames((0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacVlanPortMemberVLanId"), (0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacVlanPortMemberPortId")) if mibBuilder.loadTexts: fdryMacVlanPortMemberEntry.setStatus('current') fdryMacVlanPortMemberVLanId = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))) if mibBuilder.loadTexts: fdryMacVlanPortMemberVLanId.setStatus('current') fdryMacVlanPortMemberPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: fdryMacVlanPortMemberPortId.setStatus('current') fdryMacVlanPortMemberRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: fdryMacVlanPortMemberRowStatus.setStatus('current') fdryMacVlanIfTable = MibTable((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2), ) if mibBuilder.loadTexts: fdryMacVlanIfTable.setStatus('current') fdryMacVlanIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1), ).setIndexNames((0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacVlanIfIndex")) if mibBuilder.loadTexts: fdryMacVlanIfEntry.setStatus('current') fdryMacVlanIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: fdryMacVlanIfIndex.setStatus('current') fdryMacVlanIfEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanIfEnable.setStatus('current') fdryMacVlanIfMaxEntry = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 32)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanIfMaxEntry.setStatus('current') fdryMacVlanIfClearOper = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("valid", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanIfClearOper.setStatus('current') fdryMacVlanIfClearConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("valid", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fdryMacVlanIfClearConfig.setStatus('current') fdryMacBasedVlanTable = MibTable((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3), ) if mibBuilder.loadTexts: fdryMacBasedVlanTable.setStatus('current') fdryMacBasedVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1), ).setIndexNames((0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacVlanIfIndex"), (0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacBasedVlanId"), (0, "FOUNDRY-MAC-VLAN-MIB", "fdryMacBasedVlanMac")) if mibBuilder.loadTexts: fdryMacBasedVlanEntry.setStatus('current') fdryMacBasedVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))) if mibBuilder.loadTexts: fdryMacBasedVlanId.setStatus('current') fdryMacBasedVlanMac = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 2), MacAddress()) if mibBuilder.loadTexts: fdryMacBasedVlanMac.setStatus('current') fdryMacBasedVlanPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: fdryMacBasedVlanPriority.setStatus('current') fdryMacBasedVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: fdryMacBasedVlanRowStatus.setStatus('current') mibBuilder.exportSymbols("FOUNDRY-MAC-VLAN-MIB", fdryMacBasedVlanEntry=fdryMacBasedVlanEntry, fdryMacVlanPortMemberRowStatus=fdryMacVlanPortMemberRowStatus, fdryMacVlanIfMaxEntry=fdryMacVlanIfMaxEntry, fdryMacVlanIfClearConfig=fdryMacVlanIfClearConfig, fdryMacVlanMIB=fdryMacVlanMIB, fdryMacVlanGlobalDynConfigState=fdryMacVlanGlobalDynConfigState, fdryMacVlanIfEntry=fdryMacVlanIfEntry, fdryMacVlanTableObjects=fdryMacVlanTableObjects, fdryMacVlanIfIndex=fdryMacVlanIfIndex, fdryMacBasedVlanPriority=fdryMacBasedVlanPriority, fdryMacVlanPortMemberPortId=fdryMacVlanPortMemberPortId, fdryMacVlanIfClearOper=fdryMacVlanIfClearOper, fdryMacVlanGlobalObjects=fdryMacVlanGlobalObjects, PYSNMP_MODULE_ID=fdryMacVlanMIB, fdryMacBasedVlanId=fdryMacBasedVlanId, fdryMacVlanGlobalClearOper=fdryMacVlanGlobalClearOper, fdryMacBasedVlanMac=fdryMacBasedVlanMac, fdryMacVlanIfEnable=fdryMacVlanIfEnable, fdryMacBasedVlanRowStatus=fdryMacBasedVlanRowStatus, fdryMacVlanPortMemberTable=fdryMacVlanPortMemberTable, fdryMacVlanPortMemberVLanId=fdryMacVlanPortMemberVLanId, fdryMacVlanIfTable=fdryMacVlanIfTable, fdryMacBasedVlanTable=fdryMacBasedVlanTable, fdryMacVlanPortMemberEntry=fdryMacVlanPortMemberEntry)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_identifier, integer32, gauge32, object_identity, bits, time_ticks, unsigned32, iso, module_identity, ip_address, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Integer32', 'Gauge32', 'ObjectIdentity', 'Bits', 'TimeTicks', 'Unsigned32', 'iso', 'ModuleIdentity', 'IpAddress', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'NotificationType') (textual_convention, display_string, mac_address, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'MacAddress', 'RowStatus') fdry_mac_vlan_mib = module_identity((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32)) fdryMacVlanMIB.setRevisions(('2010-06-02 00:00', '2008-12-17 00:00')) if mibBuilder.loadTexts: fdryMacVlanMIB.setLastUpdated('201006020000Z') if mibBuilder.loadTexts: fdryMacVlanMIB.setOrganization('Brocade Communications Systems, Inc.') fdry_mac_vlan_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1)) fdry_mac_vlan_table_objects = mib_identifier((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2)) fdry_mac_vlan_global_clear_oper = mib_scalar((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('valid', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanGlobalClearOper.setStatus('current') fdry_mac_vlan_global_dyn_config_state = mib_scalar((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanGlobalDynConfigState.setStatus('current') fdry_mac_vlan_port_member_table = mib_table((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1)) if mibBuilder.loadTexts: fdryMacVlanPortMemberTable.setStatus('current') fdry_mac_vlan_port_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1)).setIndexNames((0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacVlanPortMemberVLanId'), (0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacVlanPortMemberPortId')) if mibBuilder.loadTexts: fdryMacVlanPortMemberEntry.setStatus('current') fdry_mac_vlan_port_member_v_lan_id = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))) if mibBuilder.loadTexts: fdryMacVlanPortMemberVLanId.setStatus('current') fdry_mac_vlan_port_member_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: fdryMacVlanPortMemberPortId.setStatus('current') fdry_mac_vlan_port_member_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: fdryMacVlanPortMemberRowStatus.setStatus('current') fdry_mac_vlan_if_table = mib_table((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2)) if mibBuilder.loadTexts: fdryMacVlanIfTable.setStatus('current') fdry_mac_vlan_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1)).setIndexNames((0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacVlanIfIndex')) if mibBuilder.loadTexts: fdryMacVlanIfEntry.setStatus('current') fdry_mac_vlan_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 1), interface_index()) if mibBuilder.loadTexts: fdryMacVlanIfIndex.setStatus('current') fdry_mac_vlan_if_enable = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanIfEnable.setStatus('current') fdry_mac_vlan_if_max_entry = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(2, 32)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanIfMaxEntry.setStatus('current') fdry_mac_vlan_if_clear_oper = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('valid', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanIfClearOper.setStatus('current') fdry_mac_vlan_if_clear_config = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('valid', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fdryMacVlanIfClearConfig.setStatus('current') fdry_mac_based_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3)) if mibBuilder.loadTexts: fdryMacBasedVlanTable.setStatus('current') fdry_mac_based_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1)).setIndexNames((0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacVlanIfIndex'), (0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacBasedVlanId'), (0, 'FOUNDRY-MAC-VLAN-MIB', 'fdryMacBasedVlanMac')) if mibBuilder.loadTexts: fdryMacBasedVlanEntry.setStatus('current') fdry_mac_based_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))) if mibBuilder.loadTexts: fdryMacBasedVlanId.setStatus('current') fdry_mac_based_vlan_mac = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 2), mac_address()) if mibBuilder.loadTexts: fdryMacBasedVlanMac.setStatus('current') fdry_mac_based_vlan_priority = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: fdryMacBasedVlanPriority.setStatus('current') fdry_mac_based_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1991, 1, 1, 3, 32, 2, 3, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: fdryMacBasedVlanRowStatus.setStatus('current') mibBuilder.exportSymbols('FOUNDRY-MAC-VLAN-MIB', fdryMacBasedVlanEntry=fdryMacBasedVlanEntry, fdryMacVlanPortMemberRowStatus=fdryMacVlanPortMemberRowStatus, fdryMacVlanIfMaxEntry=fdryMacVlanIfMaxEntry, fdryMacVlanIfClearConfig=fdryMacVlanIfClearConfig, fdryMacVlanMIB=fdryMacVlanMIB, fdryMacVlanGlobalDynConfigState=fdryMacVlanGlobalDynConfigState, fdryMacVlanIfEntry=fdryMacVlanIfEntry, fdryMacVlanTableObjects=fdryMacVlanTableObjects, fdryMacVlanIfIndex=fdryMacVlanIfIndex, fdryMacBasedVlanPriority=fdryMacBasedVlanPriority, fdryMacVlanPortMemberPortId=fdryMacVlanPortMemberPortId, fdryMacVlanIfClearOper=fdryMacVlanIfClearOper, fdryMacVlanGlobalObjects=fdryMacVlanGlobalObjects, PYSNMP_MODULE_ID=fdryMacVlanMIB, fdryMacBasedVlanId=fdryMacBasedVlanId, fdryMacVlanGlobalClearOper=fdryMacVlanGlobalClearOper, fdryMacBasedVlanMac=fdryMacBasedVlanMac, fdryMacVlanIfEnable=fdryMacVlanIfEnable, fdryMacBasedVlanRowStatus=fdryMacBasedVlanRowStatus, fdryMacVlanPortMemberTable=fdryMacVlanPortMemberTable, fdryMacVlanPortMemberVLanId=fdryMacVlanPortMemberVLanId, fdryMacVlanIfTable=fdryMacVlanIfTable, fdryMacBasedVlanTable=fdryMacBasedVlanTable, fdryMacVlanPortMemberEntry=fdryMacVlanPortMemberEntry)
def gridSearch(G, P): p_h, p_w = len(P), len(P[0]) search_h, search_w = len(G) - p_h + 1, len(G[0]) - p_w + 1 nrow_match = 0 for i in range(search_h): for j in range(search_w): if G[i][j:j+p_w] == P[0]: nrow_match += 1 # dfs for m in range(1, p_h): if G[i+m][j:j+p_w] == P[m]: nrow_match += 1 else: nrow_match = 0 break if nrow_match == p_h: return "YES" return "NO"
def grid_search(G, P): (p_h, p_w) = (len(P), len(P[0])) (search_h, search_w) = (len(G) - p_h + 1, len(G[0]) - p_w + 1) nrow_match = 0 for i in range(search_h): for j in range(search_w): if G[i][j:j + p_w] == P[0]: nrow_match += 1 for m in range(1, p_h): if G[i + m][j:j + p_w] == P[m]: nrow_match += 1 else: nrow_match = 0 break if nrow_match == p_h: return 'YES' return 'NO'
# Query to join weather to call records by date columns query = """ SELECT * FROM hpd311calls JOIN weather ON hpd311calls.created_date = weather.date; """ # Create data frame of joined tables calls_with_weather = pd.read_sql(query, engine) # View the data frame to make sure all columns were joined print(calls_with_weather.head()) ''' <script.py> output: unique_key created_date agency complaint_type incident_zip ... prcp snow tavg tmax tmin 0 38070822 01/01/2018 HPD HEAT/HOT WATER 10468 ... 0.0 0.0 19 7 1 38065299 01/01/2018 HPD PLUMBING 10003 ... 0.0 0.0 19 7 2 38066653 01/01/2018 HPD HEAT/HOT WATER 10452 ... 0.0 0.0 19 7 3 38070264 01/01/2018 HPD HEAT/HOT WATER 10032 ... 0.0 0.0 19 7 4 38072466 01/01/2018 HPD HEAT/HOT WATER 11213 ... 0.0 0.0 19 7 [5 rows x 21 columns] The joins you perform only return records whose key values appear in both tables, which is why the resulting data frames have values for all columns. But there are other kinds of joins that can return records that don't have a match. '''
query = '\nSELECT * \n FROM hpd311calls\n JOIN weather \n ON hpd311calls.created_date = weather.date;\n' calls_with_weather = pd.read_sql(query, engine) print(calls_with_weather.head()) "\n<script.py> output:\n unique_key created_date agency complaint_type incident_zip ... prcp snow tavg tmax tmin\n 0 38070822 01/01/2018 HPD HEAT/HOT WATER 10468 ... 0.0 0.0 19 7\n 1 38065299 01/01/2018 HPD PLUMBING 10003 ... 0.0 0.0 19 7\n 2 38066653 01/01/2018 HPD HEAT/HOT WATER 10452 ... 0.0 0.0 19 7\n 3 38070264 01/01/2018 HPD HEAT/HOT WATER 10032 ... 0.0 0.0 19 7\n 4 38072466 01/01/2018 HPD HEAT/HOT WATER 11213 ... 0.0 0.0 19 7\n \n [5 rows x 21 columns]\n\n\nThe joins you perform only return records whose key values appear in both tables, \nwhich is why the resulting data frames have values for all columns. \nBut there are other kinds of joins that can return records that don't have a match.\n"
def create_matrix(size): return [input().split() for line in range(size)] def find_miner_start_position(matrix, size): for r in range(size): for c in range(size): if matrix[r][c] == "s": return r, c def find_total_coal(matrix): result = 0 for r in range(size): for c in range(size): if matrix[r][c] == "c": result += 1 return result def read_command(command, row, col, size): if command == "up": if row - 1 in range(size): row -= 1 elif command == "down": if row + 1 in range(size): row += 1 elif command == "left": if col - 1 in range(size): col -= 1 elif command == "right": if col + 1 in range(size): col += 1 return row, col def move_miner(matrix, row, col): return matrix[row][col] def element_is_end(element): if element == "e": return True def print_game_over(row, col): return f"Game over! ({row}, {col})" def element_is_coal(element, matrix, row, col): if element == "c": matrix[row][col] = "*" return True def collected_all_coals(coals_count, total_coal): if coals_count == total_coal: return True def print_collected_all_coals(row, col): return f"You collected all coals! ({row}, {col})" def print_remaining_coals(coals_count, total_coal, row, col): return f"{total_coal - coals_count} coals left. ({row}, {col})" def start_mining(matrix, miner_s_position, commands, size): total_coal = find_total_coal(matrix) coals_count = 0 r, c = miner_s_position for command in commands: r, c = read_command(command, r, c, size) element = move_miner(matrix, r, c) if element_is_end(element): return print_game_over(r, c) elif element_is_coal(element, matrix, r, c): coals_count += 1 if collected_all_coals(coals_count, total_coal): return print_collected_all_coals(r, c) return print_remaining_coals(coals_count, total_coal, r, c) size = int(input()) commands = input().split() # lines = [ # "* * * c *", # "* * * e *", # "* * c * *", # "s * * c *", # "* * c * *", # ] matrix = create_matrix(size) miner_start_position = find_miner_start_position(matrix, size) result = start_mining(matrix, miner_start_position, commands, size) print(result)
def create_matrix(size): return [input().split() for line in range(size)] def find_miner_start_position(matrix, size): for r in range(size): for c in range(size): if matrix[r][c] == 's': return (r, c) def find_total_coal(matrix): result = 0 for r in range(size): for c in range(size): if matrix[r][c] == 'c': result += 1 return result def read_command(command, row, col, size): if command == 'up': if row - 1 in range(size): row -= 1 elif command == 'down': if row + 1 in range(size): row += 1 elif command == 'left': if col - 1 in range(size): col -= 1 elif command == 'right': if col + 1 in range(size): col += 1 return (row, col) def move_miner(matrix, row, col): return matrix[row][col] def element_is_end(element): if element == 'e': return True def print_game_over(row, col): return f'Game over! ({row}, {col})' def element_is_coal(element, matrix, row, col): if element == 'c': matrix[row][col] = '*' return True def collected_all_coals(coals_count, total_coal): if coals_count == total_coal: return True def print_collected_all_coals(row, col): return f'You collected all coals! ({row}, {col})' def print_remaining_coals(coals_count, total_coal, row, col): return f'{total_coal - coals_count} coals left. ({row}, {col})' def start_mining(matrix, miner_s_position, commands, size): total_coal = find_total_coal(matrix) coals_count = 0 (r, c) = miner_s_position for command in commands: (r, c) = read_command(command, r, c, size) element = move_miner(matrix, r, c) if element_is_end(element): return print_game_over(r, c) elif element_is_coal(element, matrix, r, c): coals_count += 1 if collected_all_coals(coals_count, total_coal): return print_collected_all_coals(r, c) return print_remaining_coals(coals_count, total_coal, r, c) size = int(input()) commands = input().split() matrix = create_matrix(size) miner_start_position = find_miner_start_position(matrix, size) result = start_mining(matrix, miner_start_position, commands, size) print(result)
## Function 3 - multiplying two numbers ## 8 kyu ## https://www.codewars.com/kata/523b66342d0c301ae400003b def multiply(x,y): return x * y
def multiply(x, y): return x * y
# special websocket message types used for managing the connection # corresponds to constants at the top of websockets.js HELLO_TYPE = 'HELLO' GOT_HELLO_TYPE = 'GOT_HELLO' PING_TYPE = 'PING' PING_RESPONSE_TYPE = 'PING' RECONNECT_TYPE = 'RECONNECT' # use the value in this json field in the message to pick an # on_VALUE handler function ROUTING_KEY = 'type'
hello_type = 'HELLO' got_hello_type = 'GOT_HELLO' ping_type = 'PING' ping_response_type = 'PING' reconnect_type = 'RECONNECT' routing_key = 'type'
#----------* CHALLENGE 40 *---------- #Ask for a number below 50 and then count down from 50 to that number, making sure you show the number they entered in the output num = int(input("Enter a number below 50: ")) for i in range(50,num-1,-1): print(i)
num = int(input('Enter a number below 50: ')) for i in range(50, num - 1, -1): print(i)
class Solution(object): def wiggleSort(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ nums.sort() tmp, length = nums[:], len(nums) cursor = length / 2 + length % 2 i, k = cursor - 1, 0 for j in xrange(length - 1, cursor - 1, -1): nums[k] = tmp[i] nums[k + 1] = tmp[j] i -= 1 k += 2 if length % 2 == 1: nums[length - 1] = tmp[0]
class Solution(object): def wiggle_sort(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ nums.sort() (tmp, length) = (nums[:], len(nums)) cursor = length / 2 + length % 2 (i, k) = (cursor - 1, 0) for j in xrange(length - 1, cursor - 1, -1): nums[k] = tmp[i] nums[k + 1] = tmp[j] i -= 1 k += 2 if length % 2 == 1: nums[length - 1] = tmp[0]
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'chromium', 'chromium_tests', 'depot_tools/tryserver', 'recipe_engine/platform', 'recipe_engine/properties', 'test_results', ] def RunSteps(api): api.chromium.set_config('chromium') api.test_results.set_config('public_server') test_runner = api.chromium_tests.create_test_runner( tests=[api.chromium_tests.steps.LocalGTestTest('base_unittests')], serialize_tests=api.properties.get('serialize_tests')) test_runner() def GenTests(api): yield ( api.test('failure') + api.properties( mastername='test_mastername', buildername='test_buildername', bot_id='test_bot_id', buildnumber=123) + api.override_step_data('base_unittests', retcode=1) ) yield ( api.test('serialize_tests') + api.properties( mastername='test_mastername', buildername='test_buildername', bot_id='test_bot_id', buildnumber=123, serialize_tests=True) + api.override_step_data('base_unittests', retcode=1) )
deps = ['chromium', 'chromium_tests', 'depot_tools/tryserver', 'recipe_engine/platform', 'recipe_engine/properties', 'test_results'] def run_steps(api): api.chromium.set_config('chromium') api.test_results.set_config('public_server') test_runner = api.chromium_tests.create_test_runner(tests=[api.chromium_tests.steps.LocalGTestTest('base_unittests')], serialize_tests=api.properties.get('serialize_tests')) test_runner() def gen_tests(api): yield (api.test('failure') + api.properties(mastername='test_mastername', buildername='test_buildername', bot_id='test_bot_id', buildnumber=123) + api.override_step_data('base_unittests', retcode=1)) yield (api.test('serialize_tests') + api.properties(mastername='test_mastername', buildername='test_buildername', bot_id='test_bot_id', buildnumber=123, serialize_tests=True) + api.override_step_data('base_unittests', retcode=1))
dp = [[0 for _ in range(101)] for _ in range(101)] def solve(n, m): if dp[n][m]: return dp[n][m] if m==0 or n==m: return 1 dp[n][m]=solve(n-1, m-1)+solve(n-1, m) return dp[n][m] n, m=map(int, input().split()) print(solve(n, m))
dp = [[0 for _ in range(101)] for _ in range(101)] def solve(n, m): if dp[n][m]: return dp[n][m] if m == 0 or n == m: return 1 dp[n][m] = solve(n - 1, m - 1) + solve(n - 1, m) return dp[n][m] (n, m) = map(int, input().split()) print(solve(n, m))
def test_captcha(app, start): app.account.captcha_off() def test_new_account(app): link = app.account.find_link_for_create_account() app.account.go_to_create_account_page(link) user = app.account.create_account() app.account.account_has_been_created() app.account.logout() app.account.login(user) app.account.logout()
def test_captcha(app, start): app.account.captcha_off() def test_new_account(app): link = app.account.find_link_for_create_account() app.account.go_to_create_account_page(link) user = app.account.create_account() app.account.account_has_been_created() app.account.logout() app.account.login(user) app.account.logout()
# SiteTool # 2019 APP_VERSION = '0.1.0'
app_version = '0.1.0'
""" Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24. """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def sumOfLeftLeaves(self, root): """ :type root: TreeNode :rtype: int """ if not root: return 0 return self.helper(root.left, True) + self.helper(root.right, False) def helper(self, child, isLeft): if not child: return 0 if isLeft and not child.left and not child.right: return child.val return self.helper(child.left, True) + self.helper(child.right, False)
""" Find the sum of all left leaves in a given binary tree. Example: 3 / 9 20 / 15 7 There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24. """ class Solution: def sum_of_left_leaves(self, root): """ :type root: TreeNode :rtype: int """ if not root: return 0 return self.helper(root.left, True) + self.helper(root.right, False) def helper(self, child, isLeft): if not child: return 0 if isLeft and (not child.left) and (not child.right): return child.val return self.helper(child.left, True) + self.helper(child.right, False)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") def buildifier_deps_deps(): go_rules_dependencies() go_register_toolchains() gazelle_dependencies() protobuf_deps()
load('@io_bazel_rules_go//go:deps.bzl', 'go_register_toolchains', 'go_rules_dependencies') load('@bazel_gazelle//:deps.bzl', 'gazelle_dependencies') load('@com_google_protobuf//:protobuf_deps.bzl', 'protobuf_deps') def buildifier_deps_deps(): go_rules_dependencies() go_register_toolchains() gazelle_dependencies() protobuf_deps()
""" Implementation of BOWSR paper Zuo, Yunxing, et al. "Accelerating Materials Discovery with Bayesian Optimization and Graph Deep Learning." arXiv preprint arXiv:2104.10242 (2021). """
""" Implementation of BOWSR paper Zuo, Yunxing, et al. "Accelerating Materials Discovery with Bayesian Optimization and Graph Deep Learning." arXiv preprint arXiv:2104.10242 (2021). """
#Device Source for vector division kernel_code_div = """ __global__ void kernel(float *d, float *a, float *b) { int tid = blockIdx.x * blockDim.x + threadIdx.x; d[tid] = a[tid] / b[tid]; } """
kernel_code_div = '\n\t\t__global__ void kernel(float *d, float *a, float *b)\n\t{\n\t\t int tid = blockIdx.x * blockDim.x + threadIdx.x;\n\n\t\t d[tid] = a[tid] / b[tid];\n\t}\n'
year = int(input()) is_hapyy_year = False while not is_hapyy_year: year += 1 str_year = str(year) set_year = set(str_year) if len(str_year) == len(set_year): is_hapyy_year = True print(year)
year = int(input()) is_hapyy_year = False while not is_hapyy_year: year += 1 str_year = str(year) set_year = set(str_year) if len(str_year) == len(set_year): is_hapyy_year = True print(year)
class SDL_SubSystem: SDL_INIT_TIMER = 1 SDL_INIT_AUDIO = 16 SDL_INIT_VIDEO = 32 SDL_INIT_JOYSTICK = 512 SDL_INIT_HAPTIC = 4096 SDL_INIT_GAMECONTROLLER = 8192 SDL_INIT_EVENTS = 16384 SDL_INIT_EVERYTHING = 6201 class SDL_EventType: """SDL EventType. See: https://wiki.libsdl.org/SDL_EventType """ SDL_QUIT = 256 # Window events SDL_WINDOWEVENT = 512 # Keyboard events SDL_KEYDOWN = 768 SDL_KEYUP = 769 SDL_TEXTINPUT = 771 # Mouse events SDL_MOUSEMOTION = 1024 SDL_MOUSEBUTTONDOWN = 1025 SDL_MOUSEBUTTONUP = 1026 SDL_MOUSEWHEEL = 1027 # Joystick events SDL_JOYAXISMOTION = 1536 SDL_JOYBALLMOTION = 1537 SDL_JOYHATMOTION = 1538 SDL_JOYBUTTONDOWN = 1539 SDL_JOYBUTTONUP = 1540 # Controller events SDL_CONTROLLERAXISMOTION = 1616 SDL_CONTROLLERBUTTONDOWN = 1617 SDL_CONTROLLERBUTTONUP = 1618 class SDL_WindowEventID: # See: https://wiki.libsdl.org/SDL_WindowEvent # See: https://wiki.libsdl.org/SDL_WindowEventID SDL_WINDOWEVENT_SHOWN = 1 SDL_WINDOWEVENT_HIDDEN = 2 SDL_WINDOWEVENT_EXPOSED = 3 SDL_WINDOWEVENT_MOVED = 4 SDL_WINDOWEVENT_RESIZED = 5 SDL_WINDOWEVENT_SIZE_CHANGED = 6 SDL_WINDOWEVENT_MINIMIZED = 7 SDL_WINDOWEVENT_MAXIMIZED = 8 SDL_WINDOWEVENT_RESTORED = 9 SDL_WINDOWEVENT_ENTER = 10 SDL_WINDOWEVENT_LEAVE = 11 SDL_WINDOWEVENT_FOCUS_GAINED = 12 SDL_WINDOWEVENT_FOCUS_LOST = 13 SDL_WINDOWEVENT_CLOSE = 14 SDL_WINDOWEVENT_TAKE_FOCUS = 15 SDL_WINDOWEVENT_HIT_TEST = 16 class SDL_Keycode: """Virtual key representation. See: https://wiki.libsdl.org/SDL_Keycode """ SDLK_UNKNOWN = 0 SDLK_BACKSPACE = 8 SDLK_TAB = 9 SDLK_RETURN = 13 SDLK_ESCAPE = 27 SDLK_SPACE = 32 SDLK_EXCLAIM = 33 SDLK_QUOTEDBL = 34 SDLK_HASH = 35 SDLK_DOLLAR = 36 SDLK_PERCENT = 37 SDLK_AMPERSAND = 38 SDLK_QUOTE = 39 SDLK_LEFTPAREN = 40 SDLK_RIGHTPAREN = 41 SDLK_ASTERISK = 42 SDLK_PLUS = 43 SDLK_COMMA = 44 SDLK_MINUS = 45 SDLK_PERIOD = 46 SDLK_SLASH = 47 SDLK_0 = 48 SDLK_1 = 49 SDLK_2 = 50 SDLK_3 = 51 SDLK_4 = 52 SDLK_5 = 53 SDLK_6 = 54 SDLK_7 = 55 SDLK_8 = 56 SDLK_9 = 57 SDLK_COLON = 58 SDLK_SEMICOLON = 59 SDLK_LESS = 60 SDLK_EQUALS = 61 SDLK_GREATER = 62 SDLK_QUESTION = 63 SDLK_AT = 64 SDLK_LEFTBRACKET = 91 SDLK_BACKSLASH = 92 SDLK_RIGHTBRACKET = 93 SDLK_CARET = 94 SDLK_UNDERSCORE = 95 SDLK_BACKQUOTE = 96 SDLK_a = 97 SDLK_b = 98 SDLK_c = 99 SDLK_d = 100 SDLK_e = 101 SDLK_f = 102 SDLK_g = 103 SDLK_h = 104 SDLK_i = 105 SDLK_j = 106 SDLK_k = 107 SDLK_l = 108 SDLK_m = 109 SDLK_n = 110 SDLK_o = 111 SDLK_p = 112 SDLK_q = 113 SDLK_r = 114 SDLK_s = 115 SDLK_t = 116 SDLK_u = 117 SDLK_v = 118 SDLK_w = 119 SDLK_x = 120 SDLK_y = 121 SDLK_z = 122 SDLK_DELETE = 127 SDLK_SCANCODE_MASK = 1073741824 SDLK_CAPSLOCK = 1073741881 SDLK_F1 = 1073741882 SDLK_F2 = 1073741883 SDLK_F3 = 1073741884 SDLK_F4 = 1073741885 SDLK_F5 = 1073741886 SDLK_F6 = 1073741887 SDLK_F7 = 1073741888 SDLK_F8 = 1073741889 SDLK_F9 = 1073741890 SDLK_F10 = 1073741891 SDLK_F11 = 1073741892 SDLK_F12 = 1073741893 SDLK_PRINTSCREEN = 1073741894 SDLK_SCROLLLOCK = 1073741895 SDLK_PAUSE = 1073741896 SDLK_INSERT = 1073741897 SDLK_HOME = 1073741898 SDLK_PAGEUP = 1073741899 SDLK_END = 1073741901 SDLK_PAGEDOWN = 1073741902 SDLK_RIGHT = 1073741903 SDLK_LEFT = 1073741904 SDLK_DOWN = 1073741905 SDLK_UP = 1073741906 SDLK_NUMLOCKCLEAR = 1073741907 SDLK_KP_DIVIDE = 1073741908 SDLK_KP_MULTIPLY = 1073741909 SDLK_KP_MINUS = 1073741910 SDLK_KP_PLUS = 1073741911 SDLK_KP_ENTER = 1073741912 SDLK_KP_1 = 1073741913 SDLK_KP_2 = 1073741914 SDLK_KP_3 = 1073741915 SDLK_KP_4 = 1073741916 SDLK_KP_5 = 1073741917 SDLK_KP_6 = 1073741918 SDLK_KP_7 = 1073741919 SDLK_KP_8 = 1073741920 SDLK_KP_9 = 1073741921 SDLK_KP_0 = 1073741922 SDLK_KP_PERIOD = 1073741923 SDLK_APPLICATION = 1073741925 SDLK_POWER = 1073741926 SDLK_KP_EQUALS = 1073741927 SDLK_F13 = 1073741928 SDLK_F14 = 1073741929 SDLK_F15 = 1073741930 SDLK_F16 = 1073741931 SDLK_F17 = 1073741932 SDLK_F18 = 1073741933 SDLK_F19 = 1073741934 SDLK_F20 = 1073741935 SDLK_F21 = 1073741936 SDLK_F22 = 1073741937 SDLK_F23 = 1073741938 SDLK_F24 = 1073741939 SDLK_EXECUTE = 1073741940 SDLK_HELP = 1073741941 SDLK_MENU = 1073741942 SDLK_SELECT = 1073741943 SDLK_STOP = 1073741944 SDLK_AGAIN = 1073741945 SDLK_UNDO = 1073741946 SDLK_CUT = 1073741947 SDLK_COPY = 1073741948 SDLK_PASTE = 1073741949 SDLK_FIND = 1073741950 SDLK_MUTE = 1073741951 SDLK_VOLUMEUP = 1073741952 SDLK_VOLUMEDOWN = 1073741953 SDLK_KP_COMMA = 1073741957 SDLK_KP_EQUALSAS400 = 1073741958 SDLK_ALTERASE = 1073741977 SDLK_SYSREQ = 1073741978 SDLK_CANCEL = 1073741979 SDLK_CLEAR = 1073741980 SDLK_PRIOR = 1073741981 SDLK_RETURN2 = 1073741982 SDLK_SEPARATOR = 1073741983 SDLK_OUT = 1073741984 SDLK_OPER = 1073741985 SDLK_CLEARAGAIN = 1073741986 SDLK_CRSEL = 1073741987 SDLK_EXSEL = 1073741988 SDLK_KP_00 = 1073742000 SDLK_KP_000 = 1073742001 SDLK_THOUSANDSSEPARATOR = 1073742002 SDLK_DECIMALSEPARATOR = 1073742003 SDLK_CURRENCYUNIT = 1073742004 SDLK_CURRENCYSUBUNIT = 1073742005 SDLK_KP_LEFTPAREN = 1073742006 SDLK_KP_RIGHTPAREN = 1073742007 SDLK_KP_LEFTBRACE = 1073742008 SDLK_KP_RIGHTBRACE = 1073742009 SDLK_KP_TAB = 1073742010 SDLK_KP_BACKSPACE = 1073742011 SDLK_KP_A = 1073742012 SDLK_KP_B = 1073742013 SDLK_KP_C = 1073742014 SDLK_KP_D = 1073742015 SDLK_KP_E = 1073742016 SDLK_KP_F = 1073742017 SDLK_KP_XOR = 1073742018 SDLK_KP_POWER = 1073742019 SDLK_KP_PERCENT = 1073742020 SDLK_KP_LESS = 1073742021 SDLK_KP_GREATER = 1073742022 SDLK_KP_AMPERSAND = 1073742023 SDLK_KP_DBLAMPERSAND = 1073742024 SDLK_KP_VERTICALBAR = 1073742025 SDLK_KP_DBLVERTICALBAR = 1073742026 SDLK_KP_COLON = 1073742027 SDLK_KP_HASH = 1073742028 SDLK_KP_SPACE = 1073742029 SDLK_KP_AT = 1073742030 SDLK_KP_EXCLAM = 1073742031 SDLK_KP_MEMSTORE = 1073742032 SDLK_KP_MEMRECALL = 1073742033 SDLK_KP_MEMCLEAR = 1073742034 SDLK_KP_MEMADD = 1073742035 SDLK_KP_MEMSUBTRACT = 1073742036 SDLK_KP_MEMMULTIPLY = 1073742037 SDLK_KP_MEMDIVIDE = 1073742038 SDLK_KP_PLUSMINUS = 1073742039 SDLK_KP_CLEAR = 1073742040 SDLK_KP_CLEARENTRY = 1073742041 SDLK_KP_BINARY = 1073742042 SDLK_KP_OCTAL = 1073742043 SDLK_KP_DECIMAL = 1073742044 SDLK_KP_HEXADECIMAL = 1073742045 SDLK_LCTRL = 1073742048 SDLK_LSHIFT = 1073742049 SDLK_LALT = 1073742050 SDLK_LGUI = 1073742051 SDLK_RCTRL = 1073742052 SDLK_RSHIFT = 1073742053 SDLK_RALT = 1073742054 SDLK_RGUI = 1073742055 SDLK_MODE = 1073742081 SDLK_AUDIONEXT = 1073742082 SDLK_AUDIOPREV = 1073742083 SDLK_AUDIOSTOP = 1073742084 SDLK_AUDIOPLAY = 1073742085 SDLK_AUDIOMUTE = 1073742086 SDLK_MEDIASELECT = 1073742087 SDLK_WWW = 1073742088 SDLK_MAIL = 1073742089 SDLK_CALCULATOR = 1073742090 SDLK_COMPUTER = 1073742091 SDLK_AC_SEARCH = 1073742092 SDLK_AC_HOME = 1073742093 SDLK_AC_BACK = 1073742094 SDLK_AC_FORWARD = 1073742095 SDLK_AC_STOP = 1073742096 SDLK_AC_REFRESH = 1073742097 SDLK_AC_BOOKMARKS = 1073742098 SDLK_BRIGHTNESSDOWN = 1073742099 SDLK_BRIGHTNESSUP = 1073742100 SDLK_DISPLAYSWITCH = 1073742101 SDLK_KBDILLUMTOGGLE = 1073742102 SDLK_KBDILLUMDOWN = 1073742103 SDLK_KBDILLUMUP = 1073742104 SDLK_EJECT = 1073742105 SDLK_SLEEP = 1073742106 class SDL_Keymod: """Key modifier masks. See: https://wiki.libsdl.org/SDL_Keymod """ KMOD_NONE = 0 KMOD_LSHIFT = 1 KMOD_RSHIFT = 2 KMOD_SHIFT = KMOD_LSHIFT | KMOD_RSHIFT KMOD_LCTRL = 64 KMOD_RCTRL = 128 KMOD_CTRL = KMOD_LCTRL | KMOD_RCTRL KMOD_LALT = 256 KMOD_RALT = 512 KMOD_ALT = KMOD_LALT | KMOD_RALT KMOD_LGUI = 1024 KMOD_RGUI = 2048 KMOD_GUI = KMOD_LGUI | KMOD_RGUI KMOD_NUM = 4096 KMOD_CAPS = 8192 KMOD_MODE = 16384 KMOD_RESERVED = 32768 class SDL_MouseWheelDirection: SDL_MOUSEWHEEL_NORMAL = 0 SDL_MOUSEWHEEL_FLIPPED = 1 class SDL_MouseButton: # See: https://wiki.libsdl.org/SDL_MouseButtonEvent SDL_BUTTON_LEFT = 1 SDL_BUTTON_MIDDLE = 2 SDL_BUTTON_RIGHT = 3 SDL_BUTTON_X1 = 4 SDL_BUTTON_X2 = 5 class SDL_MouseButtonMask: # See: https://wiki.libsdl.org/SDL_MouseMotionEvent SDL_BUTTON_LMASK = 1 SDL_BUTTON_MMASK = 2 SDL_BUTTON_RMASK = 4 SDL_BUTTON_X1MASK = 8 SDL_BUTTON_X2MASK = 16 class SDL_SystemCursor: # See: https://wiki.libsdl.org/SDL_CreateSystemCursor SDL_SYSTEM_CURSOR_ARROW = 0 # arrow SDL_SYSTEM_CURSOR_IBEAM = 1 # i-beam SDL_SYSTEM_CURSOR_WAIT = 2 # wait SDL_SYSTEM_CURSOR_CROSSHAIR = 3 # crosshair SDL_SYSTEM_CURSOR_WAITARROW = 4 # small wait cursor (or wait if not available) SDL_SYSTEM_CURSOR_SIZENWSE = 5 # double arrow pointing northwest and southeast SDL_SYSTEM_CURSOR_SIZENESW = 6 # double arrow pointing northeast and southwest SDL_SYSTEM_CURSOR_SIZEWE = 7 # double arrow pointing west and east SDL_SYSTEM_CURSOR_SIZENS = 8 # double arrow pointing north and south SDL_SYSTEM_CURSOR_SIZEALL = 9 # four pointed arrow pointing north, south, east, and west SDL_SYSTEM_CURSOR_NO = 10 # slashed circle or crossbones SDL_SYSTEM_CURSOR_HAND = 11 # hand
class Sdl_Subsystem: sdl_init_timer = 1 sdl_init_audio = 16 sdl_init_video = 32 sdl_init_joystick = 512 sdl_init_haptic = 4096 sdl_init_gamecontroller = 8192 sdl_init_events = 16384 sdl_init_everything = 6201 class Sdl_Eventtype: """SDL EventType. See: https://wiki.libsdl.org/SDL_EventType """ sdl_quit = 256 sdl_windowevent = 512 sdl_keydown = 768 sdl_keyup = 769 sdl_textinput = 771 sdl_mousemotion = 1024 sdl_mousebuttondown = 1025 sdl_mousebuttonup = 1026 sdl_mousewheel = 1027 sdl_joyaxismotion = 1536 sdl_joyballmotion = 1537 sdl_joyhatmotion = 1538 sdl_joybuttondown = 1539 sdl_joybuttonup = 1540 sdl_controlleraxismotion = 1616 sdl_controllerbuttondown = 1617 sdl_controllerbuttonup = 1618 class Sdl_Windoweventid: sdl_windowevent_shown = 1 sdl_windowevent_hidden = 2 sdl_windowevent_exposed = 3 sdl_windowevent_moved = 4 sdl_windowevent_resized = 5 sdl_windowevent_size_changed = 6 sdl_windowevent_minimized = 7 sdl_windowevent_maximized = 8 sdl_windowevent_restored = 9 sdl_windowevent_enter = 10 sdl_windowevent_leave = 11 sdl_windowevent_focus_gained = 12 sdl_windowevent_focus_lost = 13 sdl_windowevent_close = 14 sdl_windowevent_take_focus = 15 sdl_windowevent_hit_test = 16 class Sdl_Keycode: """Virtual key representation. See: https://wiki.libsdl.org/SDL_Keycode """ sdlk_unknown = 0 sdlk_backspace = 8 sdlk_tab = 9 sdlk_return = 13 sdlk_escape = 27 sdlk_space = 32 sdlk_exclaim = 33 sdlk_quotedbl = 34 sdlk_hash = 35 sdlk_dollar = 36 sdlk_percent = 37 sdlk_ampersand = 38 sdlk_quote = 39 sdlk_leftparen = 40 sdlk_rightparen = 41 sdlk_asterisk = 42 sdlk_plus = 43 sdlk_comma = 44 sdlk_minus = 45 sdlk_period = 46 sdlk_slash = 47 sdlk_0 = 48 sdlk_1 = 49 sdlk_2 = 50 sdlk_3 = 51 sdlk_4 = 52 sdlk_5 = 53 sdlk_6 = 54 sdlk_7 = 55 sdlk_8 = 56 sdlk_9 = 57 sdlk_colon = 58 sdlk_semicolon = 59 sdlk_less = 60 sdlk_equals = 61 sdlk_greater = 62 sdlk_question = 63 sdlk_at = 64 sdlk_leftbracket = 91 sdlk_backslash = 92 sdlk_rightbracket = 93 sdlk_caret = 94 sdlk_underscore = 95 sdlk_backquote = 96 sdlk_a = 97 sdlk_b = 98 sdlk_c = 99 sdlk_d = 100 sdlk_e = 101 sdlk_f = 102 sdlk_g = 103 sdlk_h = 104 sdlk_i = 105 sdlk_j = 106 sdlk_k = 107 sdlk_l = 108 sdlk_m = 109 sdlk_n = 110 sdlk_o = 111 sdlk_p = 112 sdlk_q = 113 sdlk_r = 114 sdlk_s = 115 sdlk_t = 116 sdlk_u = 117 sdlk_v = 118 sdlk_w = 119 sdlk_x = 120 sdlk_y = 121 sdlk_z = 122 sdlk_delete = 127 sdlk_scancode_mask = 1073741824 sdlk_capslock = 1073741881 sdlk_f1 = 1073741882 sdlk_f2 = 1073741883 sdlk_f3 = 1073741884 sdlk_f4 = 1073741885 sdlk_f5 = 1073741886 sdlk_f6 = 1073741887 sdlk_f7 = 1073741888 sdlk_f8 = 1073741889 sdlk_f9 = 1073741890 sdlk_f10 = 1073741891 sdlk_f11 = 1073741892 sdlk_f12 = 1073741893 sdlk_printscreen = 1073741894 sdlk_scrolllock = 1073741895 sdlk_pause = 1073741896 sdlk_insert = 1073741897 sdlk_home = 1073741898 sdlk_pageup = 1073741899 sdlk_end = 1073741901 sdlk_pagedown = 1073741902 sdlk_right = 1073741903 sdlk_left = 1073741904 sdlk_down = 1073741905 sdlk_up = 1073741906 sdlk_numlockclear = 1073741907 sdlk_kp_divide = 1073741908 sdlk_kp_multiply = 1073741909 sdlk_kp_minus = 1073741910 sdlk_kp_plus = 1073741911 sdlk_kp_enter = 1073741912 sdlk_kp_1 = 1073741913 sdlk_kp_2 = 1073741914 sdlk_kp_3 = 1073741915 sdlk_kp_4 = 1073741916 sdlk_kp_5 = 1073741917 sdlk_kp_6 = 1073741918 sdlk_kp_7 = 1073741919 sdlk_kp_8 = 1073741920 sdlk_kp_9 = 1073741921 sdlk_kp_0 = 1073741922 sdlk_kp_period = 1073741923 sdlk_application = 1073741925 sdlk_power = 1073741926 sdlk_kp_equals = 1073741927 sdlk_f13 = 1073741928 sdlk_f14 = 1073741929 sdlk_f15 = 1073741930 sdlk_f16 = 1073741931 sdlk_f17 = 1073741932 sdlk_f18 = 1073741933 sdlk_f19 = 1073741934 sdlk_f20 = 1073741935 sdlk_f21 = 1073741936 sdlk_f22 = 1073741937 sdlk_f23 = 1073741938 sdlk_f24 = 1073741939 sdlk_execute = 1073741940 sdlk_help = 1073741941 sdlk_menu = 1073741942 sdlk_select = 1073741943 sdlk_stop = 1073741944 sdlk_again = 1073741945 sdlk_undo = 1073741946 sdlk_cut = 1073741947 sdlk_copy = 1073741948 sdlk_paste = 1073741949 sdlk_find = 1073741950 sdlk_mute = 1073741951 sdlk_volumeup = 1073741952 sdlk_volumedown = 1073741953 sdlk_kp_comma = 1073741957 sdlk_kp_equalsas400 = 1073741958 sdlk_alterase = 1073741977 sdlk_sysreq = 1073741978 sdlk_cancel = 1073741979 sdlk_clear = 1073741980 sdlk_prior = 1073741981 sdlk_return2 = 1073741982 sdlk_separator = 1073741983 sdlk_out = 1073741984 sdlk_oper = 1073741985 sdlk_clearagain = 1073741986 sdlk_crsel = 1073741987 sdlk_exsel = 1073741988 sdlk_kp_00 = 1073742000 sdlk_kp_000 = 1073742001 sdlk_thousandsseparator = 1073742002 sdlk_decimalseparator = 1073742003 sdlk_currencyunit = 1073742004 sdlk_currencysubunit = 1073742005 sdlk_kp_leftparen = 1073742006 sdlk_kp_rightparen = 1073742007 sdlk_kp_leftbrace = 1073742008 sdlk_kp_rightbrace = 1073742009 sdlk_kp_tab = 1073742010 sdlk_kp_backspace = 1073742011 sdlk_kp_a = 1073742012 sdlk_kp_b = 1073742013 sdlk_kp_c = 1073742014 sdlk_kp_d = 1073742015 sdlk_kp_e = 1073742016 sdlk_kp_f = 1073742017 sdlk_kp_xor = 1073742018 sdlk_kp_power = 1073742019 sdlk_kp_percent = 1073742020 sdlk_kp_less = 1073742021 sdlk_kp_greater = 1073742022 sdlk_kp_ampersand = 1073742023 sdlk_kp_dblampersand = 1073742024 sdlk_kp_verticalbar = 1073742025 sdlk_kp_dblverticalbar = 1073742026 sdlk_kp_colon = 1073742027 sdlk_kp_hash = 1073742028 sdlk_kp_space = 1073742029 sdlk_kp_at = 1073742030 sdlk_kp_exclam = 1073742031 sdlk_kp_memstore = 1073742032 sdlk_kp_memrecall = 1073742033 sdlk_kp_memclear = 1073742034 sdlk_kp_memadd = 1073742035 sdlk_kp_memsubtract = 1073742036 sdlk_kp_memmultiply = 1073742037 sdlk_kp_memdivide = 1073742038 sdlk_kp_plusminus = 1073742039 sdlk_kp_clear = 1073742040 sdlk_kp_clearentry = 1073742041 sdlk_kp_binary = 1073742042 sdlk_kp_octal = 1073742043 sdlk_kp_decimal = 1073742044 sdlk_kp_hexadecimal = 1073742045 sdlk_lctrl = 1073742048 sdlk_lshift = 1073742049 sdlk_lalt = 1073742050 sdlk_lgui = 1073742051 sdlk_rctrl = 1073742052 sdlk_rshift = 1073742053 sdlk_ralt = 1073742054 sdlk_rgui = 1073742055 sdlk_mode = 1073742081 sdlk_audionext = 1073742082 sdlk_audioprev = 1073742083 sdlk_audiostop = 1073742084 sdlk_audioplay = 1073742085 sdlk_audiomute = 1073742086 sdlk_mediaselect = 1073742087 sdlk_www = 1073742088 sdlk_mail = 1073742089 sdlk_calculator = 1073742090 sdlk_computer = 1073742091 sdlk_ac_search = 1073742092 sdlk_ac_home = 1073742093 sdlk_ac_back = 1073742094 sdlk_ac_forward = 1073742095 sdlk_ac_stop = 1073742096 sdlk_ac_refresh = 1073742097 sdlk_ac_bookmarks = 1073742098 sdlk_brightnessdown = 1073742099 sdlk_brightnessup = 1073742100 sdlk_displayswitch = 1073742101 sdlk_kbdillumtoggle = 1073742102 sdlk_kbdillumdown = 1073742103 sdlk_kbdillumup = 1073742104 sdlk_eject = 1073742105 sdlk_sleep = 1073742106 class Sdl_Keymod: """Key modifier masks. See: https://wiki.libsdl.org/SDL_Keymod """ kmod_none = 0 kmod_lshift = 1 kmod_rshift = 2 kmod_shift = KMOD_LSHIFT | KMOD_RSHIFT kmod_lctrl = 64 kmod_rctrl = 128 kmod_ctrl = KMOD_LCTRL | KMOD_RCTRL kmod_lalt = 256 kmod_ralt = 512 kmod_alt = KMOD_LALT | KMOD_RALT kmod_lgui = 1024 kmod_rgui = 2048 kmod_gui = KMOD_LGUI | KMOD_RGUI kmod_num = 4096 kmod_caps = 8192 kmod_mode = 16384 kmod_reserved = 32768 class Sdl_Mousewheeldirection: sdl_mousewheel_normal = 0 sdl_mousewheel_flipped = 1 class Sdl_Mousebutton: sdl_button_left = 1 sdl_button_middle = 2 sdl_button_right = 3 sdl_button_x1 = 4 sdl_button_x2 = 5 class Sdl_Mousebuttonmask: sdl_button_lmask = 1 sdl_button_mmask = 2 sdl_button_rmask = 4 sdl_button_x1_mask = 8 sdl_button_x2_mask = 16 class Sdl_Systemcursor: sdl_system_cursor_arrow = 0 sdl_system_cursor_ibeam = 1 sdl_system_cursor_wait = 2 sdl_system_cursor_crosshair = 3 sdl_system_cursor_waitarrow = 4 sdl_system_cursor_sizenwse = 5 sdl_system_cursor_sizenesw = 6 sdl_system_cursor_sizewe = 7 sdl_system_cursor_sizens = 8 sdl_system_cursor_sizeall = 9 sdl_system_cursor_no = 10 sdl_system_cursor_hand = 11
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: len_ = 0 temp_list = [] for ch in s: if ch in temp_list: print(ch) len_ = max(len_, len(temp_list)) temp_list = temp_list[temp_list.index(ch)+1:] print(temp_list) temp_list.append(ch) else: temp_list.append(ch) len_=max(len_, len(temp_list)) return len_
class Solution: def length_of_longest_substring(self, s: str) -> int: len_ = 0 temp_list = [] for ch in s: if ch in temp_list: print(ch) len_ = max(len_, len(temp_list)) temp_list = temp_list[temp_list.index(ch) + 1:] print(temp_list) temp_list.append(ch) else: temp_list.append(ch) len_ = max(len_, len(temp_list)) return len_
geral = list() nomepeso = list() maiorpeso = list() while True: nomepeso.append(str(input('Nome: '))) nomepeso.append(int(input('Peso: '))) geral.append(nomepeso[:]) nomepeso.clear() sn = str(input('Deseja continuar? [S/N] ')) if sn in 'Nn': break for c in geral: maiorpeso.append(c[1]) print('O maior peso foi {}Kg de '.format(max(maiorpeso)),end=' ') for p in geral: if p[1] == max(maiorpeso): print(p[0],end=', ') print('\nOs mais leves foram {}'.format(min(maiorpeso)),end=' ') for p in geral: if p == min(maiorpeso): print(p[0])
geral = list() nomepeso = list() maiorpeso = list() while True: nomepeso.append(str(input('Nome: '))) nomepeso.append(int(input('Peso: '))) geral.append(nomepeso[:]) nomepeso.clear() sn = str(input('Deseja continuar? [S/N] ')) if sn in 'Nn': break for c in geral: maiorpeso.append(c[1]) print('O maior peso foi {}Kg de '.format(max(maiorpeso)), end=' ') for p in geral: if p[1] == max(maiorpeso): print(p[0], end=', ') print('\nOs mais leves foram {}'.format(min(maiorpeso)), end=' ') for p in geral: if p == min(maiorpeso): print(p[0])
#!/usr/bin/env python # coding: utf-8 # In[1]: test=float('inf') print('test>1',test>1) print('test>10',test>10) print('test>10',test>100) # In[7]: #To represent positive and negative infinity: # positive infinity p_inf = float("inf") # negative infinity n_inf = float("-inf") print("n_inf",n_inf <-10) # In[ ]:
test = float('inf') print('test>1', test > 1) print('test>10', test > 10) print('test>10', test > 100) p_inf = float('inf') n_inf = float('-inf') print('n_inf', n_inf < -10)
""" Lab 6 for Loop and Range """ #3.1 for i in range(6): if i !=3: print(i) #3.2 #result = 1 #for i in range(1,6): # result = result * i #print(result) # #3.3 # result = 0 # for i in range(1,6): # result = result + i # print(result) # #3.4 # result = 1 # for i in range(3,9): # result = result * i # print(result) # #3.5 # num=1 # den=1 # for i in range(1,9): # num = num * i # for i in range(1,4): # den = den * i # result = (num/den) # print(result) # #3.6 # #print(len('this is my 6th string'.split())) # result = 0 # for word in 'this is my 6th string'.split(): # print(word) # result = result + 1 # print(result) #3.7 my_tweet= { "favorite_count":1138, "lang":"en", "coordinates":(-75,40), "entities":{"hashtags":["Preds","Pens","SingIntoSpring"]} } print(my_tweet['entities']['hashtags']) result =0 for hashtag in my_tweet['entities']['hashtags']: result = result + 1 print(result)
""" Lab 6 for Loop and Range """ for i in range(6): if i != 3: print(i) my_tweet = {'favorite_count': 1138, 'lang': 'en', 'coordinates': (-75, 40), 'entities': {'hashtags': ['Preds', 'Pens', 'SingIntoSpring']}} print(my_tweet['entities']['hashtags']) result = 0 for hashtag in my_tweet['entities']['hashtags']: result = result + 1 print(result)
n = 1 c = 1 f = "-" print(f"{f*10}INICIO | DIGITE UM NUMERO NEGATIVO PARA SAIR{f*10}") while True: n = int(input("Informe um valor para ver sua tabuada: ")) c = 1 if n > 0: while n*11 != n*c: print(f"{n}x{c}={n*c}") c += 1 else: break print("FIM")
n = 1 c = 1 f = '-' print(f'{f * 10}INICIO | DIGITE UM NUMERO NEGATIVO PARA SAIR{f * 10}') while True: n = int(input('Informe um valor para ver sua tabuada: ')) c = 1 if n > 0: while n * 11 != n * c: print(f'{n}x{c}={n * c}') c += 1 else: break print('FIM')
def minimum2(L): min_1 = L[0] min_2 = L[1] if min_1 < min_2: min_1, min_2 = min_2, min_1 i = 0 while i < len(L): if L[i] < min_1: min_2, min_1 = min_1, L[i] elif L[i] < min_2 and L[i] > min_1: min_2 = L[i] i += 1 return min_2 print(minimum2([3,2,5,7,2]))
def minimum2(L): min_1 = L[0] min_2 = L[1] if min_1 < min_2: (min_1, min_2) = (min_2, min_1) i = 0 while i < len(L): if L[i] < min_1: (min_2, min_1) = (min_1, L[i]) elif L[i] < min_2 and L[i] > min_1: min_2 = L[i] i += 1 return min_2 print(minimum2([3, 2, 5, 7, 2]))
TEST_NAME = "030-trackingreview" BRANCH_NAME = [TEST_NAME + "-1", TEST_NAME + "-2"] UPSTREAM_NAME = [name + "-upstream" for name in BRANCH_NAME] SUMMARY = TEST_NAME ORIGINAL_SHA1 = "37bfd1ee7d301b364d0a8c716e9bca36efd5d139" REVIEWED_SHA1 = [] UPSTREAM_SHA1 = ["22afd9377add956e1e8d8dd6efa378fad9237532", "702c1b1a4043d8837e788317698cfc88c5570ff8"] def to(name): return testing.mailbox.ToRecipient("%s@example.org" % name) def about(subject): return testing.mailbox.WithSubject(subject) repository.run(["branch", UPSTREAM_NAME[0], UPSTREAM_SHA1[0]]) repository.run(["branch", UPSTREAM_NAME[1], UPSTREAM_SHA1[1]]) with repository.workcopy() as work: work.run(["checkout", "-b", BRANCH_NAME[0], UPSTREAM_SHA1[0]]) work.run(["cherry-pick", ORIGINAL_SHA1]) work.run(["push", "origin", "HEAD"]) REVIEWED_SHA1.append(work.run(["rev-parse", "HEAD"]).strip()) work.run(["checkout", "-b", BRANCH_NAME[1], UPSTREAM_SHA1[1]]) work.run(["cherry-pick", ORIGINAL_SHA1]) work.run(["push", "origin", "HEAD"]) REVIEWED_SHA1.append(work.run(["rev-parse", "HEAD"]).strip()) with_class = testing.expect.with_class extract_text = testing.expect.extract_text def check_tracking(branch_name, disabled=False): def check(document): class_names = ["tracking"] if disabled: class_names.append("disabled") p_tracking = document.find("p", attrs=with_class(*class_names)) testing.expect.check("tracking", extract_text(p_tracking)) if not disabled: testing.expect.check("tracking", p_tracking["class"]) code_branch = document.findAll("code", attrs=with_class("branch")) testing.expect.check(2, len(code_branch)) testing.expect.check(branch_name, extract_text(code_branch[1])) code_repository = document.findAll("code", attrs=with_class("repository")) testing.expect.check(2, len(code_repository)) testing.expect.check(repository.url, extract_text(code_repository[1])) return check SETTINGS = { "email.subjectLine.updatedReview.reviewRebased": "Rebased Review: %(summary)s" } with testing.utils.settings("alice", SETTINGS), frontend.signin("alice"): result = frontend.operation( "fetchremotebranch", data={ "repository_name": "critic", "remote": repository.url, "branch": BRANCH_NAME[0], "upstream": "refs/heads/" + UPSTREAM_NAME[0] }, expect={ "head_sha1": REVIEWED_SHA1[0], "upstream_sha1": UPSTREAM_SHA1[0] }) # Run a GC to make sure the objects fetched by /fetchremotebranch are # referenced and thus usable by the subsequent /submitreview operation. instance.gc("critic.git") commit_ids = result["commit_ids"] result = frontend.operation( "submitreview", data={ "repository": "critic", "branch": "r/" + TEST_NAME, "summary": SUMMARY, "commit_ids": commit_ids, "trackedbranch": { "remote": repository.url, "name": BRANCH_NAME[0] }}) review_id = result["review_id"] trackedbranch_id = result["trackedbranch_id"] mailbox.pop( accept=[to("alice"), about("New Review: " + SUMMARY)]) # Wait for the immediate fetch of the tracked branch that /submitreview # schedules. instance.synchronize_service("branchtracker") # Emulate a review rebase via /rebasetrackingreview. frontend.page( "r/%d" % review_id, expect={ "tracking": check_tracking(BRANCH_NAME[0]) }) frontend.page( "rebasetrackingreview", params={ "id": review_id }) result = frontend.operation( "fetchremotebranch", data={ "repository_name": "critic", "remote": repository.url, "branch": BRANCH_NAME[1], "upstream": "refs/heads/" + UPSTREAM_NAME[1] }, expect={ "head_sha1": REVIEWED_SHA1[1], "upstream_sha1": UPSTREAM_SHA1[1] }) # Run a GC to make sure the objects fetched by /fetchremotebranch are # referenced and thus usable by the subsequent /rebasetrackingreview # operation. instance.gc("critic.git") frontend.page( "rebasetrackingreview", params={ "id": review_id, "newbranch": BRANCH_NAME[1], "upstream": UPSTREAM_NAME[1], "newhead": REVIEWED_SHA1[1], "newupstream": UPSTREAM_SHA1[1] }) frontend.operation( "checkconflictsstatus", data={ "review_id": review_id, "new_head_sha1": REVIEWED_SHA1[1], "new_upstream_sha1": UPSTREAM_SHA1[1] }, expect={ "has_changes": False, "has_conflicts": False }) frontend.operation( "rebasereview", data={ "review_id": review_id, "new_head_sha1": REVIEWED_SHA1[1], "new_upstream_sha1": UPSTREAM_SHA1[1], "new_trackedbranch": BRANCH_NAME[1] }) frontend.page( "r/%d" % review_id, expect={ "tracking": check_tracking(BRANCH_NAME[1]) }) mailbox.pop( accept=[to("alice"), about("Rebased Review: " + SUMMARY)]) # Disable and enable the tracking. frontend.operation( "disabletrackedbranch", data={ "branch_id": trackedbranch_id }) frontend.page( "r/%d" % review_id, expect={ "tracking": check_tracking(BRANCH_NAME[1], disabled=True) }) frontend.operation( "enabletrackedbranch", data={ "branch_id": trackedbranch_id }) frontend.page( "r/%d" % review_id, expect={ "tracking": check_tracking(BRANCH_NAME[1]) })
test_name = '030-trackingreview' branch_name = [TEST_NAME + '-1', TEST_NAME + '-2'] upstream_name = [name + '-upstream' for name in BRANCH_NAME] summary = TEST_NAME original_sha1 = '37bfd1ee7d301b364d0a8c716e9bca36efd5d139' reviewed_sha1 = [] upstream_sha1 = ['22afd9377add956e1e8d8dd6efa378fad9237532', '702c1b1a4043d8837e788317698cfc88c5570ff8'] def to(name): return testing.mailbox.ToRecipient('%s@example.org' % name) def about(subject): return testing.mailbox.WithSubject(subject) repository.run(['branch', UPSTREAM_NAME[0], UPSTREAM_SHA1[0]]) repository.run(['branch', UPSTREAM_NAME[1], UPSTREAM_SHA1[1]]) with repository.workcopy() as work: work.run(['checkout', '-b', BRANCH_NAME[0], UPSTREAM_SHA1[0]]) work.run(['cherry-pick', ORIGINAL_SHA1]) work.run(['push', 'origin', 'HEAD']) REVIEWED_SHA1.append(work.run(['rev-parse', 'HEAD']).strip()) work.run(['checkout', '-b', BRANCH_NAME[1], UPSTREAM_SHA1[1]]) work.run(['cherry-pick', ORIGINAL_SHA1]) work.run(['push', 'origin', 'HEAD']) REVIEWED_SHA1.append(work.run(['rev-parse', 'HEAD']).strip()) with_class = testing.expect.with_class extract_text = testing.expect.extract_text def check_tracking(branch_name, disabled=False): def check(document): class_names = ['tracking'] if disabled: class_names.append('disabled') p_tracking = document.find('p', attrs=with_class(*class_names)) testing.expect.check('tracking', extract_text(p_tracking)) if not disabled: testing.expect.check('tracking', p_tracking['class']) code_branch = document.findAll('code', attrs=with_class('branch')) testing.expect.check(2, len(code_branch)) testing.expect.check(branch_name, extract_text(code_branch[1])) code_repository = document.findAll('code', attrs=with_class('repository')) testing.expect.check(2, len(code_repository)) testing.expect.check(repository.url, extract_text(code_repository[1])) return check settings = {'email.subjectLine.updatedReview.reviewRebased': 'Rebased Review: %(summary)s'} with testing.utils.settings('alice', SETTINGS), frontend.signin('alice'): result = frontend.operation('fetchremotebranch', data={'repository_name': 'critic', 'remote': repository.url, 'branch': BRANCH_NAME[0], 'upstream': 'refs/heads/' + UPSTREAM_NAME[0]}, expect={'head_sha1': REVIEWED_SHA1[0], 'upstream_sha1': UPSTREAM_SHA1[0]}) instance.gc('critic.git') commit_ids = result['commit_ids'] result = frontend.operation('submitreview', data={'repository': 'critic', 'branch': 'r/' + TEST_NAME, 'summary': SUMMARY, 'commit_ids': commit_ids, 'trackedbranch': {'remote': repository.url, 'name': BRANCH_NAME[0]}}) review_id = result['review_id'] trackedbranch_id = result['trackedbranch_id'] mailbox.pop(accept=[to('alice'), about('New Review: ' + SUMMARY)]) instance.synchronize_service('branchtracker') frontend.page('r/%d' % review_id, expect={'tracking': check_tracking(BRANCH_NAME[0])}) frontend.page('rebasetrackingreview', params={'id': review_id}) result = frontend.operation('fetchremotebranch', data={'repository_name': 'critic', 'remote': repository.url, 'branch': BRANCH_NAME[1], 'upstream': 'refs/heads/' + UPSTREAM_NAME[1]}, expect={'head_sha1': REVIEWED_SHA1[1], 'upstream_sha1': UPSTREAM_SHA1[1]}) instance.gc('critic.git') frontend.page('rebasetrackingreview', params={'id': review_id, 'newbranch': BRANCH_NAME[1], 'upstream': UPSTREAM_NAME[1], 'newhead': REVIEWED_SHA1[1], 'newupstream': UPSTREAM_SHA1[1]}) frontend.operation('checkconflictsstatus', data={'review_id': review_id, 'new_head_sha1': REVIEWED_SHA1[1], 'new_upstream_sha1': UPSTREAM_SHA1[1]}, expect={'has_changes': False, 'has_conflicts': False}) frontend.operation('rebasereview', data={'review_id': review_id, 'new_head_sha1': REVIEWED_SHA1[1], 'new_upstream_sha1': UPSTREAM_SHA1[1], 'new_trackedbranch': BRANCH_NAME[1]}) frontend.page('r/%d' % review_id, expect={'tracking': check_tracking(BRANCH_NAME[1])}) mailbox.pop(accept=[to('alice'), about('Rebased Review: ' + SUMMARY)]) frontend.operation('disabletrackedbranch', data={'branch_id': trackedbranch_id}) frontend.page('r/%d' % review_id, expect={'tracking': check_tracking(BRANCH_NAME[1], disabled=True)}) frontend.operation('enabletrackedbranch', data={'branch_id': trackedbranch_id}) frontend.page('r/%d' % review_id, expect={'tracking': check_tracking(BRANCH_NAME[1])})
def check_goldbach_for_num(n,primes_set) : '''gets an even integer- n, and a set of primes- primes_set. Returns whether there're two primes which their sum is n''' for prime in primes_set : if ((p < n) and ((n - prime) in primes_set)): return True return False
def check_goldbach_for_num(n, primes_set): """gets an even integer- n, and a set of primes- primes_set. Returns whether there're two primes which their sum is n""" for prime in primes_set: if p < n and n - prime in primes_set: return True return False
#!/usr/bin/env python #******************** # retroSpeak vocabulary # retroSpeak is a Raspberry Pi controlled speech synthesizer using the vintage # SP0256-AL2 chip, and MCP23S17 SPI controlled port expander. # # Vocabulary based on example wordlists in the Archer/Radioshack SP0256 datasheet # with typos corrected and a few additions - it's a slightly quirky list, # extended to allow creating a speaking calendar/clock # # The datasheet is available here: http://www.cpcwiki.eu/imgs/3/35/Sp0256al2_datasheet.pdf # # vocabulary is a simple Python dictionary # # To use it, simply import vocabulary into your Python script, and get the allophones for # the words by using something like word=vocabulary['cognitive'] # # Also a dictionary of numbers is available so num=numbers[1] will return the allophones for 'one' # daysOfMonth[1] will return allophones for 'first' and daysOfMonth[31] 'thirty first' # daysOfWeek[0] will return allophones for 'monday' and daysOfWeek[6] 'sunday' # # As this is based heavily on work in the public domain work, this code is relased as public domain. # #******************** vocabulary = { 'a':'EY', 'alarm':'AX LL AR MM', 'am':'AE AE PA2 MM', 'and':'AE AE NN1 PA2 DD1', 'april':'EY PA3 PP RR2 IH IH LL', 'ate':'EY PA3 TT2', 'august':'AO AO PA2 GG2 AX SS PA3 TT1', 'b':'BB2 IY', 'bathe':'BB2 EY DH2', 'bather':'BB2 EY DH2 ER1', 'bathing':'BB2 EY DH2 IH NG', 'beer':'BB2 YR', 'bread':'BB1 RR2 EH EH PA1 DD1', 'by':'BB2 AA AY', 'c':'SS SS IY', 'calendar':'KK1 AE AE LL EH NN1 PA2 DD2 ER1', 'check':'CH EH EH PA3 KK2', 'checked':'CH EH EH PA3 KK2 PA2 TT2', 'checker':'CH EH EH PA3 KK1 ER1', 'checkers':'CH EH EH PA3 KK1 ER1 ZZ', 'checking':'CH EH EH PA3 KK1 IH NG', 'checks':'CH EH EH PA3 KK1 SS', 'clock':'KK1 LL AA AA PA3 KK2', 'clown':'KK1 LL AW NN1', 'cognitive':'KK3 AA AA GG3 NN1 IH PA3 TT2 IH VV', 'collide':'KK3 AX LL AY DD1', 'computer':'KK1 AX MM PP YY1 UW1 TT2 ER1', 'cookie':'KK3 UH KK1 IY', 'coop':'KK3 UW2 PA3 PP', 'correct':'KK1 ER2 EH EH PA2 KK2 PA2 TT1', 'corrected':'KK1 ER2 EH EH PA2 KK2 PA2 TT2 IH PA2 DD1', 'correcting':'KK1 ER2 EH EH PA2 KK2 PA2 TT2 IH NG', 'corrects':'KK1 ER2 EH EH PA2 KK2 PA2 TT1 SS', 'crown':'KK1 RR2 AW NN1', 'd':'DD2 IY', 'date':'DD2 EY PA3 TT2', 'daughter':'DD2 AO TT2 ER1', 'day':'DD2 EH EY', 'december':'DD2 IY SS SS EH EH MM PA1 BB2 ER1', 'divided':'DD2 IH VV AY PA2 DD2 IH PA2 DD1', 'e':'IY', 'eight':'EY PA3 TT2', 'eighteen':'EY PA2 PA3 TT2 IY NN1', 'eighteenth':'EY PA2 PA3 TT2 IY NN1 PA2 TH', 'eighth':'EY PA3 TT2 PA2 TH', 'eighty':'EY PA3 TT2 IY', 'eleven':'IH LL EH EH VV IH NN1', 'eleventh':'IH LL EH EH VV IH NN1 PA2 TH', 'emotional':'IY MM OW SH AX NN1 AX EL', 'engage':'EH EH PA1 NN1 GG1 EY PA2 JH', 'engagement':'EH EH PA1 NN1 GG1 EY PA2 JH MM EH EH NN1 PA2 PA3 TT2 ', 'engages':'EH EH PA1 NN1 GG1 EY PA2 JH IH ZZ', 'engaging':'EH EH PA1 NN1 GG1 EY PA2 JH IH NG', 'enrage':'EH NN1 RR1 EY PA2 JH', 'enraged':'EH NN1 RR1 EY PA2 JH PA2 DD1', 'enrages':'EH NN1 RR1 EY PA2 JH IH ZZ', 'enraging':'EH NN1 RR1 EY PA2 JH IH NG', 'equal':'IY PA2 PA3 KK3 WH AX EL', 'equals':'IY PA2 PA3 KK3 WH AX EL ZZ', 'error':'EH XR OR', 'escape':'EH SS SS PA3 KK1 EY PA3 PP', 'escaped':'EH SS SS PA3 KK1 EY PA3 PP PA2 TT2', 'escapes':'EH SS SS PA3 KK1 EY PA3 PP ZZ', 'escaping':'EH SS SS PA3 KK1 EY PA3 PP IH NG', 'extent':'EH KK1 SS TT2 EH EH NN1 TT2', 'f':'EH EH FF FF', 'february':'FF EH EH PA1 BB1 RR2 UW2 XR IY', 'fifteen':'FF IH FF PA2 PA3 TT2 IY NN1', 'fifteenth':'FF IH FF PA2 PA3 TT2 IY NN1 PA2 TH', 'fifth':'FF IH FF FF PA3 TH', 'fifty':'FF FF IH FF FF PA2 PA3 TT2 IY', 'fir':'FF ER2', 'first':'FF ER2 SS PA2 TT2', 'five':'FF FF AY VV', 'for':'FF FF OR', 'fore':'FF FF OR', 'forty':'FF OR PA3 TT2 IY', 'four':'FF FF OR', 'fourteen':'FF OR PA2 PA3 TT2 IY NN1', 'fourteenth':'FF OR PA2 PA3 TT2 IY NN1 PA2 TH', 'fourth':'FF FF OR PA2 TH', 'freeze':'FF FF RR1 IY ZZ', 'freezer':'FF FF RR1 IY ZZ ER1', 'freezers':'FF FF RR1 IY ZZ ER1 ZZ', 'freezing':'FF FF RR1 IY ZZ IH NG', 'friday':'FF RR2 AY PA2 DD2 EY', 'frozen':'FF FF RR1 OW ZZ EH NN1', 'g':'JH IY', 'gauge':'GG1 EY PA2 JH', 'gauged':'GG1 EY PA2 JH PA2 DD1', 'gauges':'GG1 EY PA2 JH IH ZZ', 'gauging':'GG1 EY PA2 JH IH NG', 'h':'EY PA2 PA3 CH', 'hello':'HH1 EH LL AX OW', 'hour':'AW ER1', 'hundred':'HH2 AX AX NN1 PA2 DD2 RR2 IH IH PA1 DD1', 'i':'AA AY', 'infinitive':'IH NN1 FF FF IH IH NN1 IH PA2 PA3 TT2 IH VV', 'intrigue':'IH NN1 PA3 TT2 RR2 IY PA1 GG3', 'intrigued':'IH NN1 PA3 TT2 RR2 IY PA1 GG3 PA2 DD1', 'intrigues':'IH NN1 PA3 TT2 RR2 IY PA1 GG3 ZZ', 'intriguing':'IH NN1 PA3 TT2 RR2 IY PA1 GG3 IH NG', 'investigate':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2', 'investigated':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 IH PA2 DD1', 'investigates':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT1 SS', 'investigating':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 IH NG', 'investigator':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 ER1', 'investigators':'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 ER1 ZZ', 'is':'IH IH ZZ', 'j':'JH EH EY', 'january':'JH AE AE NN1 YY2 XR IY', 'july':'JH UW1 LL AY', 'june':'JH UW2 NN1', 'k':'KK1 EH EY', 'key':'KK1 IY', 'l':'EH EH EL', 'legislate':'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2', 'legislated':'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2 IH DD1', 'legislates':'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT1 SS', 'legislating':'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2 IH NG', 'legislature':'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 CH ER1', 'letter':'LL EH EH PA3 TT2 ER1', 'litter':'LL IH IH PA3 TT2 ER1', 'little':'LL IH IH PA3 TT2 EL', 'm':'EH EH MM', 'march':'MM AR PA3 CH', 'may':'MM EY', 'memories':'MM EH EH MM ER2 IY ZZ', 'memory':'MM EH EH MM ER2 IY', 'million':'MM IH IH LL YY1 AX NN1', 'minute':'MM IH NN1 IH PA3 TT2', 'monday':'MM AX AX NN1 PA2 DD2 EY', 'month':'MM AX NN1 TH', 'n':'EH EH NN1', 'nine':'NN1 AA AY NN1', 'nineteen':'NN1 AY NN1 PA2 PA3 TT2 IY NN1', 'nineteenth':'NN1 AY NN1 PA2 PA3 TT2 IY NN1 PA2 TH', 'ninth':'NN1 AY NN1 PA2 TH', 'ninety':'NN1 AY NN1 PA3 TT2 IY', 'nip':'NN1 IH IH PA2 PA3 PP', 'nipped':'NN1 IH IH PA2 PA3 PP PA3 TT2', 'nipping':'NN1 IH IH PA2 PA3 PP IH NG', 'nips':'NN1 IH IH PA2 PA3 PP SS', 'no':'NN2 AX OW', 'november':'NN2 OW VV EH EH MM PA1 BB2 BB2 ER1', 'o':'OW', 'of':'AA AA VV', 'october':'AA PA2 KK2 PA3 TT2 OW PA1 BB2 ER1', 'one':'WW AX AX NN1', 'p':'PP IY', 'physical':'FF FF IH ZZ IH PA3 KK1 AX EL', 'pi':'PP AA AA AY', 'pin':'PP IH IH NN1', 'pinned':'PP IH IH NN1 PA2 DD1', 'pinning':'PP IH IH NN1 IH NG', 'pins':'PP IH IH NN1 ZZ', 'pledge':'PP LL EH EH PA3 JH', 'pledged':'PP LL EH EH PA3 JH PA2 DD1', 'pledges':'PP LL EH EH PA3 JH IH ZZ', 'pledging':'PP LL EH EH PA3 JH IH NG', 'plus':'PP LL AX AX SS SS', 'q':'KK1 YY1 UW2', 'r':'AR', 'raspberry':'RR1 AX SS SS PA3 BB1 ER2 RR2 IY', 'ray':'RR1 EH EY', 'rays':'RR1 EH EY ZZ', 'ready':'RR1 EH EH PA1 DD2 IY', 'red':'RR1 EH EH PA1 DD1', 'robot':'RR1 OW PA2 BB2 AA PA3 TT2', 'robots':'RR1 OW PA2 BB2 AA PA3 TT1 SS', 's':'EH EH SS SS', 'saturday':'SS SS AE PA3 TT2 ER1 PA2 DD2 EY', 'score':'SS SS PA3 KK3 OR', 'second':'SS SS EH PA3 KK1 IH NN1 PA2 DD1', 'sensitive':'SS SS EH EH NN1 SS SS IH PA2 PA3 TT2 IH VV', 'sensitivity':'SS SS EH EH NN1 SS SS IH PA2 PA3 TT2 IH VV IH PA2 PA3 TT2 IY', 'september':'SS SS EH PA3 PP PA3 TT2 EH EH MM PA1 BB2 ER1', 'seven':'SS SS EH EH VV IH NN1', 'seventeen':'SS SS EH VV TH NN1 PA2 PA3 TT2 IY NN1', 'seventeenth':'SS SS EH VV TH NN1 PA2 PA3 TT2 IY NN1 PA2 TH', 'seventh':'SS SS EH VV TH NN1 PA2 TH', 'seventy':'SS SS EH VV IH NN1 PA2 PA3 TT2 IY', 'sincere':'SS SS IH IH NN1 SS SS YR', 'sincerely':'SS SS IH IH NN1 SS SS YR LL IY', 'sincerity':'SS SS IH IH NN1 SS SS EH EH RR1 IH PA2 PA3 TT2 IY', 'sister':'SS SS IH IH SS PA3 TT2 ER1', 'six':'SS SS IH IH PA3 KK2 SS', 'sixteen':'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY NN1', 'sixteenth':'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY NN1 PA2 TH', 'sixth':'SS SS IH PA3 KK2 SS PA2 TH', 'sixty':'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY', 'speak':'SS SS PA3 PP IY PA3 KK2', 'spell':'SS SS PA3 PP EH EH EL', 'spelled':'SS SS PA3 PP EH EH EL PA3 DD1', 'speller':'SS SS PA3 PP EH EH EL ER2', 'spellers':'SS SS PA3 PP EH EH EL ER2 ZZ', 'spelling':'SS SS PA3 PP EH EH EL IH NG', 'spells':'SS SS PA3 PP EH EH EL ZZ', 'start':'SS SS PA3 TT2 AR PA3 TT2', 'started':'SS SS PA3 TT2 AR PA3 TT2 IH PA1 DD2', 'starter':'SS SS PA3 TT2 AR PA3 TT2 ER1', 'starting':'SS SS PA3 TT2 AR PA3 TT2 IH NG', 'starts':'SS SS PA3 TT2 AR PA3 TT1 SS', 'stop':'SS SS PA3 TT1 AA AA PA3 PP', 'stopped':'SS SS PA3 TT1 AA AA PA3 PP PA3 TT2', 'stopper':'SS SS PA3 TT1 AA AA PA3 PP ER1', 'stopping':'SS SS PA3 TT1 AA AA PA3 PP IH NG', 'stops':'SS SS PA3 TT1 AA AA PA3 PP SS', 'subject (noun)':'SS SS AX AX PA2 BB1 PA2 JH EH PA3 KK2 PA3 TT2', 'subject (verb)':'SS SS AX PA2 BB1 PA2 JH EH EH PA3 KK2 PA3 TT2', 'sunday':'SS SS AX AX NN1 PA2 DD2 EY', 'sweat':'SS SS WW EH EH PA3 TT2', 'sweated':'SS SS WW EH EH PA3 TT2 IH PA3 DD1', 'sweater':'SS SS WW EH EH PA3 TT2 ER1', 'sweaters':'SS SS WW EH EH PA3 TT2 ER1 ZZ', 'sweating':'SS SS WW EH EH PA3 TT2 IH NG', 'sweats':'SS SS WW EH EH PA3 TT2 SS', 'switch':'SS SS WH IH IH PA3 CH', 'switched':'SS SS WH IH IH PA3 CH PA3 TT2', 'switches':'SS SS WH IH IH PA3 CH IH ZZ', 'switching':'SS SS WH IH IH PA3 CH IH NG', 'system':'SS SS IH IH SS SS PA3 TT2 EH MM', 'systems':'SS SS IH IH SS SS PA3 TT2 EH MM ZZ', 't':'TT2 IY', 'talk':'TT2 AO AO PA2 KK2', 'talked':'TT2 AO AO PA3 KK2 PA3 TT2', 'talker':'TT2 AO AO PA3 KK1 ER1', 'talkers':'TT2 AO AO PA3 KK1 ER1 ZZ', 'talking':'TT2 AO AO PA3 KK1 IH NG', 'talks':'TT2 AO AO PA2 KK2 SS', 'ten':'TT2 EH EH NN1', 'tenth':'TT2 EH EH NN1 PA2 TH', 'the':'DH1 PA3 IY', 'then':'DH1 EH EH NN1', 'third':'TH ER1 PA2 DD1', 'thirteen':'TH ER1 PA2 PA3 TT2 IY NN1', 'thirteenth':'TH ER1 PA2 PA3 TT2 IY NN1 PA2 TH', 'thirty':'TH ER2 PA2 PA3 TT2 IY', 'thirtieth':'TH ER2 PA2 PA3 TT2 IY PA2 EH TH', 'thousand':'TH AA AW ZZ TH PA1 PA1 NN1 DD1', 'thread':'TH RR1 EH EH PA2 DD1', 'threaded':'TH RR1 EH EH PA2 DD2 IH PA2 DD1', 'threader':'TH RR1 EH EH PA2 DD2 ER1', 'threaders':'TH RR1 EH EH PA2 DD2 ER1 ZZ', 'threading':'TH RR1 EH EH PA2 DD2 IH NG', 'threads':'TH RR1 EH EH PA2 DD2 ZZ', 'three':'TH RR1 IY', 'thursday':'TH ER2 ZZ PA2 DD2 EY', 'time':'TT2 AA AY MM', 'times':'TT2 AA AY MM ZZ', 'to':'TT2 UW2', 'today':'TT2 UW2 PA3 DD2 EY', 'too':'TT2 UW2', 'tuesday':'TT2 UW2 ZZ PA2 DD2 EY', 'twelve':'TT2 WH EH EH LL VV', 'twelfth':'TT2 WH EH EH LL FF PA2 TH', 'twenty':'TT2 WH EH EH NN1 PA2 PA3 TT2 IY', 'twentieth':'TT2 WH EH EH NN1 PA2 PA3 TT2 IY PA2 EH TH', 'two':'TT2 UW2', 'u':'YY1 UW2', 'uncle':'AX NG PA3 KK3 EL', 'v':'VV IY', 'w':'DD2 AX PA2 BB2 EL YY1 UW2', 'wednesday':'WW EH EH NN1 ZZ PA2 DD2 EY', 'whale':'WW EY EL', 'whaler':'WW EY LL ER1', 'whalers':'WW EY LL ER1 ZZ', 'whales':'WW EY EL ZZ', 'whaling':'WW EY LL IH NG', 'won':'WW AX AX NN1', 'x':'EH EH PA3 KK2 SS SS', 'y':'WW AY', 'year':'YY2 YR', 'yes':'YY2 EH EH SS SS', # 'z':'ZZ IY', 'z':'ZZ EH EH PA2 DD1',# I'm in the UK! 'zero':'ZZ YR OW', } daysOfWeek = [ vocabulary['monday'],vocabulary['tuesday'],vocabulary['wednesday'], vocabulary['thursday'],vocabulary['friday'],vocabulary['saturday'],vocabulary['sunday'] ] daysOfMonth = [ '', vocabulary['first'],vocabulary['second'],vocabulary['third'], vocabulary['fourth'],vocabulary['fifth'],vocabulary['sixth'], vocabulary['seventh'],vocabulary['eighth'],vocabulary['ninth'], vocabulary['tenth'],vocabulary['eleventh'],vocabulary['twelfth'], vocabulary['thirteenth'],vocabulary['fourteenth'],vocabulary['fifteenth'], vocabulary['sixteenth'],vocabulary['seventeenth'],vocabulary['eighteenth'], vocabulary['nineteenth'],vocabulary['twentieth'], vocabulary['twenty']+'PA2'+vocabulary['first'], vocabulary['twenty']+'PA2'+vocabulary['second'], vocabulary['twenty']+'PA2'+vocabulary['third'], vocabulary['twenty']+'PA2'+vocabulary['fourth'], vocabulary['twenty']+'PA2'+vocabulary['fifth'], vocabulary['twenty']+'PA2'+vocabulary['sixth'], vocabulary['twenty']+'PA2'+vocabulary['seventh'], vocabulary['twenty']+'PA2'+vocabulary['eighth'], vocabulary['twenty']+'PA2'+vocabulary['ninth'], vocabulary['thirtieth'], vocabulary['thirty']+'PA2'+vocabulary['first'] ] numbers = { 1:vocabulary['one'], 2:vocabulary['two'], 3:vocabulary['three'], 4:vocabulary['four'], 5:vocabulary['five'], 6:vocabulary['six'], 7:vocabulary['seven'], 8:vocabulary['eight'], 9:vocabulary['nine'], 10:vocabulary['ten'], 11:vocabulary['eleven'], 12:vocabulary['twelve'], 13:vocabulary['thirteen'], 14:vocabulary['fourteen'], 15:vocabulary['fifteen'], 16:vocabulary['sixteen'], 17:vocabulary['seventeen'], 18:vocabulary['eighteen'], 19:vocabulary['nineteen'], 20:vocabulary['twenty'], 30:vocabulary['thirty'], 40:vocabulary['forty'], 50:vocabulary['fifty'], 60:vocabulary['sixty'], 70:vocabulary['seventy'], 80:vocabulary['eighty'], 90:vocabulary['ninety'], 100:vocabulary['hundred'], 1000:vocabulary['thousand'], 1000000:vocabulary['million'] }
vocabulary = {'a': 'EY', 'alarm': 'AX LL AR MM', 'am': 'AE AE PA2 MM', 'and': 'AE AE NN1 PA2 DD1', 'april': 'EY PA3 PP RR2 IH IH LL', 'ate': 'EY PA3 TT2', 'august': 'AO AO PA2 GG2 AX SS PA3 TT1', 'b': 'BB2 IY', 'bathe': 'BB2 EY DH2', 'bather': 'BB2 EY DH2 ER1', 'bathing': 'BB2 EY DH2 IH NG', 'beer': 'BB2 YR', 'bread': 'BB1 RR2 EH EH PA1 DD1', 'by': 'BB2 AA AY', 'c': 'SS SS IY', 'calendar': 'KK1 AE AE LL EH NN1 PA2 DD2 ER1', 'check': 'CH EH EH PA3 KK2', 'checked': 'CH EH EH PA3 KK2 PA2 TT2', 'checker': 'CH EH EH PA3 KK1 ER1', 'checkers': 'CH EH EH PA3 KK1 ER1 ZZ', 'checking': 'CH EH EH PA3 KK1 IH NG', 'checks': 'CH EH EH PA3 KK1 SS', 'clock': 'KK1 LL AA AA PA3 KK2', 'clown': 'KK1 LL AW NN1', 'cognitive': 'KK3 AA AA GG3 NN1 IH PA3 TT2 IH VV', 'collide': 'KK3 AX LL AY DD1', 'computer': 'KK1 AX MM PP YY1 UW1 TT2 ER1', 'cookie': 'KK3 UH KK1 IY', 'coop': 'KK3 UW2 PA3 PP', 'correct': 'KK1 ER2 EH EH PA2 KK2 PA2 TT1', 'corrected': 'KK1 ER2 EH EH PA2 KK2 PA2 TT2 IH PA2 DD1', 'correcting': 'KK1 ER2 EH EH PA2 KK2 PA2 TT2 IH NG', 'corrects': 'KK1 ER2 EH EH PA2 KK2 PA2 TT1 SS', 'crown': 'KK1 RR2 AW NN1', 'd': 'DD2 IY', 'date': 'DD2 EY PA3 TT2', 'daughter': 'DD2 AO TT2 ER1', 'day': 'DD2 EH EY', 'december': 'DD2 IY SS SS EH EH MM PA1 BB2 ER1', 'divided': 'DD2 IH VV AY PA2 DD2 IH PA2 DD1', 'e': 'IY', 'eight': 'EY PA3 TT2', 'eighteen': 'EY PA2 PA3 TT2 IY NN1', 'eighteenth': 'EY PA2 PA3 TT2 IY NN1 PA2 TH', 'eighth': 'EY PA3 TT2 PA2 TH', 'eighty': 'EY PA3 TT2 IY', 'eleven': 'IH LL EH EH VV IH NN1', 'eleventh': 'IH LL EH EH VV IH NN1 PA2 TH', 'emotional': 'IY MM OW SH AX NN1 AX EL', 'engage': 'EH EH PA1 NN1 GG1 EY PA2 JH', 'engagement': 'EH EH PA1 NN1 GG1 EY PA2 JH MM EH EH NN1 PA2 PA3 TT2 ', 'engages': 'EH EH PA1 NN1 GG1 EY PA2 JH IH ZZ', 'engaging': 'EH EH PA1 NN1 GG1 EY PA2 JH IH NG', 'enrage': 'EH NN1 RR1 EY PA2 JH', 'enraged': 'EH NN1 RR1 EY PA2 JH PA2 DD1', 'enrages': 'EH NN1 RR1 EY PA2 JH IH ZZ', 'enraging': 'EH NN1 RR1 EY PA2 JH IH NG', 'equal': 'IY PA2 PA3 KK3 WH AX EL', 'equals': 'IY PA2 PA3 KK3 WH AX EL ZZ', 'error': 'EH XR OR', 'escape': 'EH SS SS PA3 KK1 EY PA3 PP', 'escaped': 'EH SS SS PA3 KK1 EY PA3 PP PA2 TT2', 'escapes': 'EH SS SS PA3 KK1 EY PA3 PP ZZ', 'escaping': 'EH SS SS PA3 KK1 EY PA3 PP IH NG', 'extent': 'EH KK1 SS TT2 EH EH NN1 TT2', 'f': 'EH EH FF FF', 'february': 'FF EH EH PA1 BB1 RR2 UW2 XR IY', 'fifteen': 'FF IH FF PA2 PA3 TT2 IY NN1', 'fifteenth': 'FF IH FF PA2 PA3 TT2 IY NN1 PA2 TH', 'fifth': 'FF IH FF FF PA3 TH', 'fifty': 'FF FF IH FF FF PA2 PA3 TT2 IY', 'fir': 'FF ER2', 'first': 'FF ER2 SS PA2 TT2', 'five': 'FF FF AY VV', 'for': 'FF FF OR', 'fore': 'FF FF OR', 'forty': 'FF OR PA3 TT2 IY', 'four': 'FF FF OR', 'fourteen': 'FF OR PA2 PA3 TT2 IY NN1', 'fourteenth': 'FF OR PA2 PA3 TT2 IY NN1 PA2 TH', 'fourth': 'FF FF OR PA2 TH', 'freeze': 'FF FF RR1 IY ZZ', 'freezer': 'FF FF RR1 IY ZZ ER1', 'freezers': 'FF FF RR1 IY ZZ ER1 ZZ', 'freezing': 'FF FF RR1 IY ZZ IH NG', 'friday': 'FF RR2 AY PA2 DD2 EY', 'frozen': 'FF FF RR1 OW ZZ EH NN1', 'g': 'JH IY', 'gauge': 'GG1 EY PA2 JH', 'gauged': 'GG1 EY PA2 JH PA2 DD1', 'gauges': 'GG1 EY PA2 JH IH ZZ', 'gauging': 'GG1 EY PA2 JH IH NG', 'h': 'EY PA2 PA3 CH', 'hello': 'HH1 EH LL AX OW', 'hour': 'AW ER1', 'hundred': 'HH2 AX AX NN1 PA2 DD2 RR2 IH IH PA1 DD1', 'i': 'AA AY', 'infinitive': 'IH NN1 FF FF IH IH NN1 IH PA2 PA3 TT2 IH VV', 'intrigue': 'IH NN1 PA3 TT2 RR2 IY PA1 GG3', 'intrigued': 'IH NN1 PA3 TT2 RR2 IY PA1 GG3 PA2 DD1', 'intrigues': 'IH NN1 PA3 TT2 RR2 IY PA1 GG3 ZZ', 'intriguing': 'IH NN1 PA3 TT2 RR2 IY PA1 GG3 IH NG', 'investigate': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2', 'investigated': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 IH PA2 DD1', 'investigates': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT1 SS', 'investigating': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 IH NG', 'investigator': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 ER1', 'investigators': 'IH IH NN1 VV EH EH SS PA2 PA3 TT2 IH PA1 GG1 EY PA2 TT2 ER1 ZZ', 'is': 'IH IH ZZ', 'j': 'JH EH EY', 'january': 'JH AE AE NN1 YY2 XR IY', 'july': 'JH UW1 LL AY', 'june': 'JH UW2 NN1', 'k': 'KK1 EH EY', 'key': 'KK1 IY', 'l': 'EH EH EL', 'legislate': 'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2', 'legislated': 'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2 IH DD1', 'legislates': 'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT1 SS', 'legislating': 'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 TT2 IH NG', 'legislature': 'LL EH EH PA2 JH IH SS SS LL EY PA2 PA3 CH ER1', 'letter': 'LL EH EH PA3 TT2 ER1', 'litter': 'LL IH IH PA3 TT2 ER1', 'little': 'LL IH IH PA3 TT2 EL', 'm': 'EH EH MM', 'march': 'MM AR PA3 CH', 'may': 'MM EY', 'memories': 'MM EH EH MM ER2 IY ZZ', 'memory': 'MM EH EH MM ER2 IY', 'million': 'MM IH IH LL YY1 AX NN1', 'minute': 'MM IH NN1 IH PA3 TT2', 'monday': 'MM AX AX NN1 PA2 DD2 EY', 'month': 'MM AX NN1 TH', 'n': 'EH EH NN1', 'nine': 'NN1 AA AY NN1', 'nineteen': 'NN1 AY NN1 PA2 PA3 TT2 IY NN1', 'nineteenth': 'NN1 AY NN1 PA2 PA3 TT2 IY NN1 PA2 TH', 'ninth': 'NN1 AY NN1 PA2 TH', 'ninety': 'NN1 AY NN1 PA3 TT2 IY', 'nip': 'NN1 IH IH PA2 PA3 PP', 'nipped': 'NN1 IH IH PA2 PA3 PP PA3 TT2', 'nipping': 'NN1 IH IH PA2 PA3 PP IH NG', 'nips': 'NN1 IH IH PA2 PA3 PP SS', 'no': 'NN2 AX OW', 'november': 'NN2 OW VV EH EH MM PA1 BB2 BB2 ER1', 'o': 'OW', 'of': 'AA AA VV', 'october': 'AA PA2 KK2 PA3 TT2 OW PA1 BB2 ER1', 'one': 'WW AX AX NN1', 'p': 'PP IY', 'physical': 'FF FF IH ZZ IH PA3 KK1 AX EL', 'pi': 'PP AA AA AY', 'pin': 'PP IH IH NN1', 'pinned': 'PP IH IH NN1 PA2 DD1', 'pinning': 'PP IH IH NN1 IH NG', 'pins': 'PP IH IH NN1 ZZ', 'pledge': 'PP LL EH EH PA3 JH', 'pledged': 'PP LL EH EH PA3 JH PA2 DD1', 'pledges': 'PP LL EH EH PA3 JH IH ZZ', 'pledging': 'PP LL EH EH PA3 JH IH NG', 'plus': 'PP LL AX AX SS SS', 'q': 'KK1 YY1 UW2', 'r': 'AR', 'raspberry': 'RR1 AX SS SS PA3 BB1 ER2 RR2 IY', 'ray': 'RR1 EH EY', 'rays': 'RR1 EH EY ZZ', 'ready': 'RR1 EH EH PA1 DD2 IY', 'red': 'RR1 EH EH PA1 DD1', 'robot': 'RR1 OW PA2 BB2 AA PA3 TT2', 'robots': 'RR1 OW PA2 BB2 AA PA3 TT1 SS', 's': 'EH EH SS SS', 'saturday': 'SS SS AE PA3 TT2 ER1 PA2 DD2 EY', 'score': 'SS SS PA3 KK3 OR', 'second': 'SS SS EH PA3 KK1 IH NN1 PA2 DD1', 'sensitive': 'SS SS EH EH NN1 SS SS IH PA2 PA3 TT2 IH VV', 'sensitivity': 'SS SS EH EH NN1 SS SS IH PA2 PA3 TT2 IH VV IH PA2 PA3 TT2 IY', 'september': 'SS SS EH PA3 PP PA3 TT2 EH EH MM PA1 BB2 ER1', 'seven': 'SS SS EH EH VV IH NN1', 'seventeen': 'SS SS EH VV TH NN1 PA2 PA3 TT2 IY NN1', 'seventeenth': 'SS SS EH VV TH NN1 PA2 PA3 TT2 IY NN1 PA2 TH', 'seventh': 'SS SS EH VV TH NN1 PA2 TH', 'seventy': 'SS SS EH VV IH NN1 PA2 PA3 TT2 IY', 'sincere': 'SS SS IH IH NN1 SS SS YR', 'sincerely': 'SS SS IH IH NN1 SS SS YR LL IY', 'sincerity': 'SS SS IH IH NN1 SS SS EH EH RR1 IH PA2 PA3 TT2 IY', 'sister': 'SS SS IH IH SS PA3 TT2 ER1', 'six': 'SS SS IH IH PA3 KK2 SS', 'sixteen': 'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY NN1', 'sixteenth': 'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY NN1 PA2 TH', 'sixth': 'SS SS IH PA3 KK2 SS PA2 TH', 'sixty': 'SS SS IH PA3 KK2 SS PA2 PA3 TT2 IY', 'speak': 'SS SS PA3 PP IY PA3 KK2', 'spell': 'SS SS PA3 PP EH EH EL', 'spelled': 'SS SS PA3 PP EH EH EL PA3 DD1', 'speller': 'SS SS PA3 PP EH EH EL ER2', 'spellers': 'SS SS PA3 PP EH EH EL ER2 ZZ', 'spelling': 'SS SS PA3 PP EH EH EL IH NG', 'spells': 'SS SS PA3 PP EH EH EL ZZ', 'start': 'SS SS PA3 TT2 AR PA3 TT2', 'started': 'SS SS PA3 TT2 AR PA3 TT2 IH PA1 DD2', 'starter': 'SS SS PA3 TT2 AR PA3 TT2 ER1', 'starting': 'SS SS PA3 TT2 AR PA3 TT2 IH NG', 'starts': 'SS SS PA3 TT2 AR PA3 TT1 SS', 'stop': 'SS SS PA3 TT1 AA AA PA3 PP', 'stopped': 'SS SS PA3 TT1 AA AA PA3 PP PA3 TT2', 'stopper': 'SS SS PA3 TT1 AA AA PA3 PP ER1', 'stopping': 'SS SS PA3 TT1 AA AA PA3 PP IH NG', 'stops': 'SS SS PA3 TT1 AA AA PA3 PP SS', 'subject (noun)': 'SS SS AX AX PA2 BB1 PA2 JH EH PA3 KK2 PA3 TT2', 'subject (verb)': 'SS SS AX PA2 BB1 PA2 JH EH EH PA3 KK2 PA3 TT2', 'sunday': 'SS SS AX AX NN1 PA2 DD2 EY', 'sweat': 'SS SS WW EH EH PA3 TT2', 'sweated': 'SS SS WW EH EH PA3 TT2 IH PA3 DD1', 'sweater': 'SS SS WW EH EH PA3 TT2 ER1', 'sweaters': 'SS SS WW EH EH PA3 TT2 ER1 ZZ', 'sweating': 'SS SS WW EH EH PA3 TT2 IH NG', 'sweats': 'SS SS WW EH EH PA3 TT2 SS', 'switch': 'SS SS WH IH IH PA3 CH', 'switched': 'SS SS WH IH IH PA3 CH PA3 TT2', 'switches': 'SS SS WH IH IH PA3 CH IH ZZ', 'switching': 'SS SS WH IH IH PA3 CH IH NG', 'system': 'SS SS IH IH SS SS PA3 TT2 EH MM', 'systems': 'SS SS IH IH SS SS PA3 TT2 EH MM ZZ', 't': 'TT2 IY', 'talk': 'TT2 AO AO PA2 KK2', 'talked': 'TT2 AO AO PA3 KK2 PA3 TT2', 'talker': 'TT2 AO AO PA3 KK1 ER1', 'talkers': 'TT2 AO AO PA3 KK1 ER1 ZZ', 'talking': 'TT2 AO AO PA3 KK1 IH NG', 'talks': 'TT2 AO AO PA2 KK2 SS', 'ten': 'TT2 EH EH NN1', 'tenth': 'TT2 EH EH NN1 PA2 TH', 'the': 'DH1 PA3 IY', 'then': 'DH1 EH EH NN1', 'third': 'TH ER1 PA2 DD1', 'thirteen': 'TH ER1 PA2 PA3 TT2 IY NN1', 'thirteenth': 'TH ER1 PA2 PA3 TT2 IY NN1 PA2 TH', 'thirty': 'TH ER2 PA2 PA3 TT2 IY', 'thirtieth': 'TH ER2 PA2 PA3 TT2 IY PA2 EH TH', 'thousand': 'TH AA AW ZZ TH PA1 PA1 NN1 DD1', 'thread': 'TH RR1 EH EH PA2 DD1', 'threaded': 'TH RR1 EH EH PA2 DD2 IH PA2 DD1', 'threader': 'TH RR1 EH EH PA2 DD2 ER1', 'threaders': 'TH RR1 EH EH PA2 DD2 ER1 ZZ', 'threading': 'TH RR1 EH EH PA2 DD2 IH NG', 'threads': 'TH RR1 EH EH PA2 DD2 ZZ', 'three': 'TH RR1 IY', 'thursday': 'TH ER2 ZZ PA2 DD2 EY', 'time': 'TT2 AA AY MM', 'times': 'TT2 AA AY MM ZZ', 'to': 'TT2 UW2', 'today': 'TT2 UW2 PA3 DD2 EY', 'too': 'TT2 UW2', 'tuesday': 'TT2 UW2 ZZ PA2 DD2 EY', 'twelve': 'TT2 WH EH EH LL VV', 'twelfth': 'TT2 WH EH EH LL FF PA2 TH', 'twenty': 'TT2 WH EH EH NN1 PA2 PA3 TT2 IY', 'twentieth': 'TT2 WH EH EH NN1 PA2 PA3 TT2 IY PA2 EH TH', 'two': 'TT2 UW2', 'u': 'YY1 UW2', 'uncle': 'AX NG PA3 KK3 EL', 'v': 'VV IY', 'w': 'DD2 AX PA2 BB2 EL YY1 UW2', 'wednesday': 'WW EH EH NN1 ZZ PA2 DD2 EY', 'whale': 'WW EY EL', 'whaler': 'WW EY LL ER1', 'whalers': 'WW EY LL ER1 ZZ', 'whales': 'WW EY EL ZZ', 'whaling': 'WW EY LL IH NG', 'won': 'WW AX AX NN1', 'x': 'EH EH PA3 KK2 SS SS', 'y': 'WW AY', 'year': 'YY2 YR', 'yes': 'YY2 EH EH SS SS', 'z': 'ZZ EH EH PA2 DD1', 'zero': 'ZZ YR OW'} days_of_week = [vocabulary['monday'], vocabulary['tuesday'], vocabulary['wednesday'], vocabulary['thursday'], vocabulary['friday'], vocabulary['saturday'], vocabulary['sunday']] days_of_month = ['', vocabulary['first'], vocabulary['second'], vocabulary['third'], vocabulary['fourth'], vocabulary['fifth'], vocabulary['sixth'], vocabulary['seventh'], vocabulary['eighth'], vocabulary['ninth'], vocabulary['tenth'], vocabulary['eleventh'], vocabulary['twelfth'], vocabulary['thirteenth'], vocabulary['fourteenth'], vocabulary['fifteenth'], vocabulary['sixteenth'], vocabulary['seventeenth'], vocabulary['eighteenth'], vocabulary['nineteenth'], vocabulary['twentieth'], vocabulary['twenty'] + 'PA2' + vocabulary['first'], vocabulary['twenty'] + 'PA2' + vocabulary['second'], vocabulary['twenty'] + 'PA2' + vocabulary['third'], vocabulary['twenty'] + 'PA2' + vocabulary['fourth'], vocabulary['twenty'] + 'PA2' + vocabulary['fifth'], vocabulary['twenty'] + 'PA2' + vocabulary['sixth'], vocabulary['twenty'] + 'PA2' + vocabulary['seventh'], vocabulary['twenty'] + 'PA2' + vocabulary['eighth'], vocabulary['twenty'] + 'PA2' + vocabulary['ninth'], vocabulary['thirtieth'], vocabulary['thirty'] + 'PA2' + vocabulary['first']] numbers = {1: vocabulary['one'], 2: vocabulary['two'], 3: vocabulary['three'], 4: vocabulary['four'], 5: vocabulary['five'], 6: vocabulary['six'], 7: vocabulary['seven'], 8: vocabulary['eight'], 9: vocabulary['nine'], 10: vocabulary['ten'], 11: vocabulary['eleven'], 12: vocabulary['twelve'], 13: vocabulary['thirteen'], 14: vocabulary['fourteen'], 15: vocabulary['fifteen'], 16: vocabulary['sixteen'], 17: vocabulary['seventeen'], 18: vocabulary['eighteen'], 19: vocabulary['nineteen'], 20: vocabulary['twenty'], 30: vocabulary['thirty'], 40: vocabulary['forty'], 50: vocabulary['fifty'], 60: vocabulary['sixty'], 70: vocabulary['seventy'], 80: vocabulary['eighty'], 90: vocabulary['ninety'], 100: vocabulary['hundred'], 1000: vocabulary['thousand'], 1000000: vocabulary['million']}
def create_tables(cursor,fileName): file = open(fileName) sql = file.readline() while sql: cursor.execute(sql) sql = file.readline() file.close()
def create_tables(cursor, fileName): file = open(fileName) sql = file.readline() while sql: cursor.execute(sql) sql = file.readline() file.close()
# Date: 2020/11/05 # Author: Luis Marquez # Description: # ## # # def square(): #DEFINING EPSILON (MARGIN OF ERROR) epsilon = 0.01 #DEFINING STEP (HOW MUCH I CAN APPROXIMATE IN EACH STEP) step = epsilon**2 #DEFINFING ANSWER answer = 0.0 #DEFINING OBJECTIVE (TO CALCULATE SQUARE) objective = int(input(f"\nType an integer number.\nNumber: ")) print(f"\n") while ((abs(answer**2 - objective) >= epsilon) and (answer <= objective)): # print(f"abs(answer**2 - objective) = {abs(answer**2 - objective)}\nanswer = {answer}\n") answer += step if (abs(answer**2 - objective) >= epsilon): print(f"We didn't find the square of the number {objective}") else: print(f"The square of {objective} is {answer}") #RUN(): ON THIS FUNCTION WE'LL RUN OUR CODE def run(): square() #MAIN(): MAIN FUNCTION if __name__ == "__main__": run()
def square(): epsilon = 0.01 step = epsilon ** 2 answer = 0.0 objective = int(input(f'\nType an integer number.\nNumber: ')) print(f'\n') while abs(answer ** 2 - objective) >= epsilon and answer <= objective: answer += step if abs(answer ** 2 - objective) >= epsilon: print(f"We didn't find the square of the number {objective}") else: print(f'The square of {objective} is {answer}') def run(): square() if __name__ == '__main__': run()
""" The idea here is to build a segment tree. Each node stores the left and right endpoint of an interval and the sum of that interval. All of the leaves will store elements of the array and each internal node will store sum of leaves under it. Creating the tree takes O(n) time. Query and updates are both O(log n). """ # Segment tree node class Node(object): def __init__(self, start, end): self.start = start self.end = end self.total = 0 self.left = None self.right = None class NumArray(object): def __init__(self, nums): """ initialize your data structure here. :type nums: List[int] """ # helper function to create the tree from input array def createTree(nums, l, r): # base case if l > r: return None # leaf node if l == r: n = Node(l, r) n.total = nums[l] return n mid = (l + r) // 2 root = Node(l, r) # recursively build the Segment tree root.left = createTree(nums, l, mid) root.right = createTree(nums, mid + 1, r) # Total stores the sum of all leaves under root # i.e. those elements lying between (start, end) root.total = root.left.total + root.right.total return root self.root = createTree(nums, 0, len(nums) - 1) def update(self, i, val): """ :type i: int :type val: int :rtype: int """ # Helper function to update a value def updateVal(root, i, val): # Base case. The actual value will be updated in a leaf. # The total is then propogated upwards if root.start == root.end: root.total = val return val mid = (root.start + root.end) // 2 # If the index is less than the mid, that leaf must be in the left subtree if i <= mid: updateVal(root.left, i, val) # Otherwise, the right subtree else: updateVal(root.right, i, val) # Propogate the changes after recursive call returns root.total = root.left.total + root.right.total return root.total return updateVal(self.root, i, val) def sumRange(self, i, j): """ sum of elements nums[i..j], inclusive. :type i: int :type j: int :rtype: int """ # Helper function to calculate range sum def rangeSum(root, i, j): # If the range exactly matches the root, we already have the sum if root.start == i and root.end == j: return root.total mid = (root.start + root.end) // 2 # If end of the range is less than the mid, the entire interval lies # in the left subtree if j <= mid: return rangeSum(root.left, i, j) # If start of the interval is greater than mid, the entire inteval lies # in the right subtree elif i >= mid + 1: return rangeSum(root.right, i, j) # Otherwise, the interval is split. So we calculate the sum recursively, # by splitting the interval else: return rangeSum(root.left, i, mid) + rangeSum(root.right, mid + 1, j) return rangeSum(self.root, i, j) # Your NumArray object will be instantiated and called as such: # numArray = NumArray(nums) # numArray.sumRange(0, 1) # numArray.update(1, 10) # numArray.sumRange(1, 2)
""" The idea here is to build a segment tree. Each node stores the left and right endpoint of an interval and the sum of that interval. All of the leaves will store elements of the array and each internal node will store sum of leaves under it. Creating the tree takes O(n) time. Query and updates are both O(log n). """ class Node(object): def __init__(self, start, end): self.start = start self.end = end self.total = 0 self.left = None self.right = None class Numarray(object): def __init__(self, nums): """ initialize your data structure here. :type nums: List[int] """ def create_tree(nums, l, r): if l > r: return None if l == r: n = node(l, r) n.total = nums[l] return n mid = (l + r) // 2 root = node(l, r) root.left = create_tree(nums, l, mid) root.right = create_tree(nums, mid + 1, r) root.total = root.left.total + root.right.total return root self.root = create_tree(nums, 0, len(nums) - 1) def update(self, i, val): """ :type i: int :type val: int :rtype: int """ def update_val(root, i, val): if root.start == root.end: root.total = val return val mid = (root.start + root.end) // 2 if i <= mid: update_val(root.left, i, val) else: update_val(root.right, i, val) root.total = root.left.total + root.right.total return root.total return update_val(self.root, i, val) def sum_range(self, i, j): """ sum of elements nums[i..j], inclusive. :type i: int :type j: int :rtype: int """ def range_sum(root, i, j): if root.start == i and root.end == j: return root.total mid = (root.start + root.end) // 2 if j <= mid: return range_sum(root.left, i, j) elif i >= mid + 1: return range_sum(root.right, i, j) else: return range_sum(root.left, i, mid) + range_sum(root.right, mid + 1, j) return range_sum(self.root, i, j)
#!/usr/bin/python3 with open('data') as f: lines = f.readlines() n = 0 for i in range(len(lines)-1): if int(lines[i]) < int(lines[i+1]): n += 1 print('python3, day 1, part 1 :', n)
with open('data') as f: lines = f.readlines() n = 0 for i in range(len(lines) - 1): if int(lines[i]) < int(lines[i + 1]): n += 1 print('python3, day 1, part 1 :', n)
height= float(input("Please Enter your height : ")) weight= int(input("Please Enter your weight : ")) BMI=weight/height ** 2 print("your BMI is : " + str(BMI))
height = float(input('Please Enter your height : ')) weight = int(input('Please Enter your weight : ')) bmi = weight / height ** 2 print('your BMI is : ' + str(BMI))
# rin, kn_x, kn_y = input().split(), input().split(), input().split() # def s(kn_t, axis): # b_s = list(()) # for e_i, e_v in enumerate([int(a) for a in kn_t]): # if e_i==0: b_s.append(e_v) # elif e_i==len(kn_t)-1: b_s.append(int(rin[axis])-e_v) # else: b_s.append(e_v-int(kn_t[e_i-1])) # b_s.sort(reverse=True) # return [b_s[0], b_s[1]] # b_sx, b_sy = s(kn_x, 0), s(kn_y, 1) # b_c = [b_sx[0]*b_sy[0], b_sx[0]*b_sy[1], b_sx[1]*b_sy[0], b_sx[1]*b_sy[1]] # b_c.sort(reverse=True) # print(b_c[0], b_c[1]) # Passed # 75% unknown error rin, kn_x, kn_y, areas = [int(a) for a in input().split()], [0], [0], list(()) kn_x.extend([int(b) for b in input().split()]) kn_y.extend([int(c) for c in input().split()]) kn_x.append(rin[0]) kn_y.append(rin[1]) for ex in range(1,len(kn_x)): for ey in range(1,len(kn_y)): areas.append((kn_x[ex]-kn_x[ex-1])*(kn_y[ey]-kn_y[ey-1])) areas.sort(reverse=True) print(areas[0], areas[1]) # Passed
(rin, kn_x, kn_y, areas) = ([int(a) for a in input().split()], [0], [0], list(())) kn_x.extend([int(b) for b in input().split()]) kn_y.extend([int(c) for c in input().split()]) kn_x.append(rin[0]) kn_y.append(rin[1]) for ex in range(1, len(kn_x)): for ey in range(1, len(kn_y)): areas.append((kn_x[ex] - kn_x[ex - 1]) * (kn_y[ey] - kn_y[ey - 1])) areas.sort(reverse=True) print(areas[0], areas[1])
# # PySNMP MIB module HPN-ICF-MAC-INFORMATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-MAC-INFORMATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:40:07 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, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Unsigned32, IpAddress, Gauge32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, TimeTicks, Counter32, Bits, ObjectIdentity, Integer32, Counter64, NotificationType, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "Gauge32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "TimeTicks", "Counter32", "Bits", "ObjectIdentity", "Integer32", "Counter64", "NotificationType", "ModuleIdentity") MacAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TextualConvention", "DisplayString") hpnicfMACInformation = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87)) hpnicfMACInformation.setRevisions(('2007-12-28 19:12',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfMACInformation.setRevisionsDescriptions(('The initial version of this MIB file.',)) if mibBuilder.loadTexts: hpnicfMACInformation.setLastUpdated('200712281912Z') if mibBuilder.loadTexts: hpnicfMACInformation.setOrganization('') if mibBuilder.loadTexts: hpnicfMACInformation.setContactInfo('') if mibBuilder.loadTexts: hpnicfMACInformation.setDescription('This MIB file is to provide the definition of the MAC Information general configuration. MAC Information feature is used to make that the changed MAC information in the monitored device is knowable in remote monitoring device.') class HpnicfMACInfoWorkMode(TextualConvention, Integer32): description = 'The working mode of the MAC Information feature.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("trap", 1), ("syslog", 2)) hpnicfMACInformationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1)) hpnicfMACInformationMibGlobal = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1)) hpnicfMACInformationMIBTableTroop = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2)) hpnicfMACInformationMibTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3)) hpnicfMACInformationMibTrapExt = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4)) hpnicfMACInformationEnabled = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACInformationEnabled.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationEnabled.setDescription('The value is a global setting. The feature will not work until the value is set to enabled(1). If the value is set to disabled(2), the feature will stop working even there are interfaces that have been enabled the feature.') hpnicfMACInformationcSendInterval = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 20000)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACInformationcSendInterval.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationcSendInterval.setDescription('The maximum interval that the device generate syslogs or traps. The unit is second.') hpnicfMACInformationLearntMACNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfMACInformationLearntMACNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationLearntMACNum.setDescription('The number of MAC addresses that learnt by the device since the hpnicfMACInformationEnabled is set to enabled(1) and hpnicfMACLearntEnable is set to enabled(1) at least on one interface. If the hpnicfMACInformationEnabled is set to disabled(2), the object will always return 0.') hpnicfMACInformationRemovedMACNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfMACInformationRemovedMACNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationRemovedMACNum.setDescription('The number of MAC addresses that removed by the device since the hpnicfMACInformationEnabled is set to enabled(1) and hpnicfMACRemovedEnable is set to enabled(1) at least on one interface. If the hpnicfMACInformationEnabled is set to disabled(2), the object will always return 0.') hpnicfMACInformationTrapSendNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfMACInformationTrapSendNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationTrapSendNum.setDescription('The number of traps that have been generated. This object is valid only when the hpnicfMACInfomationWorkMode is set to trap(1). If the hpnicfMACInfomationWorkMode is set to syslog(2), the object will always return 0.') hpnicfMACInformationSyslogSendNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfMACInformationSyslogSendNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationSyslogSendNum.setDescription('The number of syslogs that have been generated. This object is valid only when the hpnicfMACInfomationWorkMode is set to syslog(2). If the hpnicfMACInfomationWorkMode is set to trap(1), the object will always return 0.') hpnicfMACInformationCacheLen = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACInformationCacheLen.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationCacheLen.setDescription('The maximum queue lenth used to cache the changed MAC addresses information in the monitored device. If the value is set to 0, syslog or trap will generate as soon as there is a MAC address learnt or removed.') hpnicfMACInfomationWorkMode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 8), HpnicfMACInfoWorkMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACInfomationWorkMode.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationWorkMode.setDescription('The working mode of MAC Information feature. If the object is set to trap(1), the device will use trap mode to notify the MAC address information and all properties of trap interrelated is valid. If the object is set to syslog(2), the device will use syslog mode to notify the MAC address information and all properties of trap interrelated is invalid.') hpnicfMACInfomationIfTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1), ) if mibBuilder.loadTexts: hpnicfMACInfomationIfTable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationIfTable.setDescription('The table is used to enable or disable the MAC Information feature on interfaces.') hpnicfMACInfomationIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfMACInfomationIfEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationIfEntry.setDescription('The entry of hpnicfMACInfomationIfTable.') hpnicfMACLearntEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACLearntEnable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACLearntEnable.setDescription('If the object is set to enabled(1) on interface, the device will cache the MAC address information that learnt on the interface.') hpnicfMACRemovedEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfMACRemovedEnable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACRemovedEnable.setDescription('If the object is set to enable(1) on interface, the device will cache the MAC address information that removed on the interface.') hpnicfMACInformationTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 0)) hpnicfMACInformationChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 0, 1)).setObjects(("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapIndex"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapCount"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsg")) if mibBuilder.loadTexts: hpnicfMACInformationChangedTrap.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationChangedTrap.setDescription('When the cached number of MAC address information is reached the value specified by hpnicfMACInformationCacheLen, trap is generated and is sent to the remote monitoring device. The trap is also generated when the amount of time elapsed since the previous notification is greater than the interval value specified by hpnicfMACInformationcSendInterval and there is at least one cached MAC address information learnt or removed. The object is valid only when hpnicfMACInfomationWorkMode is set to trap(1). When the hpnicfMACInfomationWorkMode is set to syslog(2), No trap will be generated even hpnicfMACInformationEnabled is set to enabled(1) and the feature is enabled on interface.') hpnicfMACInformationTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2)) hpnicfMACInfoTrapIndex = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndex.setDescription('The sequence number of trap information. When it reaches the maximum value, it should be set to 1.') hpnicfMACInfoTrapCount = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 2), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapCount.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapCount.setDescription('The cell number of the current trap information. The trap message may consists of more than one MAC address information. Each of the one MAC address information in one trap is called cell.') hpnicfMACInfoTrapMsg = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 254))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsg.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsg.setDescription("This object is the MAC information that learnt or removed in the monitored device. It can consists of more than one MAC information in the object. This object is in the format of '<cell1><cell2>...'. Each cell consists of 12 octets in the format of '<operationType><VLAN><MAC><MACtype><ifIndex>'. <operationType> is the reason type of MAC address changed and have size of 1 octet. It only supports the following values. 1 - MAC learnt. 2 - MAC removed. <VLAN> is the vlan number that correspond to the MAC address in MAC address table and has size of 2 octet. <MAC> is the MAC address and has size of 6 octets. <MACtype> is the MAC address type and has size of 1 octet. It only supports the following values. 0 - Unknown 1 - Learnt 2 - Config dynamic 3 - Config static 4 - Blackhole 5 - Security 6 - 802.1x 7 - MAC authentication 8 - Voice VLAN 9 - Reserved <ifIndex> is the index of the interface where the MAC address is learnt or removed and has size of 2 octets.") hpnicfMACInformationTrapsExt = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0)) hpnicfMACInformationChangedTrapExt = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0, 1)).setObjects(("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapVerExt"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapIndexExt"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapCountExt"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgExt")) if mibBuilder.loadTexts: hpnicfMACInformationChangedTrapExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationChangedTrapExt.setDescription('When the cached number of MAC address information is reached the value specified by hpnicfMACInformationCacheLen, trap is generated and is sent to the remote monitoring device. The trap is also generated when the amount of time elapsed since the previous notification is greater than the interval value specified by hpnicfMACInformationcSendInterval and there is at least one cached MAC address information learnt or removed. The object is valid only when hpnicfMACInfomationWorkMode is set to trap(1). When the hpnicfMACInfomationWorkMode is set to syslog(2), No trap will be generated even hpnicfMACInformationEnabled is set to enabled(1) and the feature is enabled on interface.') hpnicfMACInformationMovedTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0, 2)).setObjects(("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgMovedAddress"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgMovedVlan"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgMovedFromIf"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgMovedToIf"), ("HPN-ICF-MAC-INFORMATION-MIB", "hpnicfMACInfoTrapMsgMovedCount")) if mibBuilder.loadTexts: hpnicfMACInformationMovedTrap.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationMovedTrap.setDescription('When the MAC address has been moved to another interface, trap is generated and is sent to the remote monitoring device.') hpnicfMACInformationTrapObjectsExt = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2)) hpnicfMACInfoTrapVerExt = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 1), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapVerExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapVerExt.setDescription('The version of trap information.') hpnicfMACInfoTrapIndexExt = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapIndexExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndexExt.setDescription('The sequence number of trap information. When it reaches the maximum value, it should be set to 1.') hpnicfMACInfoTrapCountExt = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 3), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapCountExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapCountExt.setDescription('The cell number of the current trap information. The trap message may consists of more than one MAC address information. Each of the one MAC address information in one trap is called cell.') hpnicfMACInfoTrapMsgExt = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 254))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgExt.setDescription("This object is the MAC information that learnt or removed in the monitored device. It can consists of more than one MAC information in the object. This object is in the format of '<cell1><cell2>...'. Each cell consists of 14 octets in the format of '<operationType><VLAN><MAC><MACtype><ifIndex>'. <operationType> is the reason type of MAC address changed and have size of 1 octet. It only supports the following values. 1 - MAC learnt. 2 - MAC removed. <VLAN> is the vlan number that correspond to the MAC address in MAC address table and has size of 2 octet. <MAC> is the MAC address and has size of 6 octets. <MACtype> is the MAC address type and has size of 1 octet. It only supports the following values. 0 - Unknown 1 - Learnt 2 - Config dynamic 3 - Config static 4 - Blackhole 5 - Security 6 - 802.1x 7 - MAC authentication 8 - Voice VLAN 9 - Reserved <ifIndex> is the index of the interface where the MAC address is learnt or removed and has size of 4 octets.") hpnicfMACInfoTrapMsgMovedAddress = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 5), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedAddress.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedAddress.setDescription('The MAC address that is moved between interfaces.') hpnicfMACInfoTrapMsgMovedVlan = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedVlan.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedVlan.setDescription('The VLAN number in which the MAC address is moved.') hpnicfMACInfoTrapMsgMovedFromIf = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedFromIf.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedFromIf.setDescription('The index of the interface from which the MAC address is moved.') hpnicfMACInfoTrapMsgMovedToIf = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedToIf.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedToIf.setDescription('The index of the interface to which the MAC address is moved.') hpnicfMACInfoTrapMsgMovedCount = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 9), Counter32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedCount.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedCount.setDescription('The times for which the MAC address has been moved between the interfaces.') mibBuilder.exportSymbols("HPN-ICF-MAC-INFORMATION-MIB", hpnicfMACInformationMovedTrap=hpnicfMACInformationMovedTrap, hpnicfMACInfoTrapMsgMovedCount=hpnicfMACInfoTrapMsgMovedCount, hpnicfMACInformationEnabled=hpnicfMACInformationEnabled, hpnicfMACInformationTraps=hpnicfMACInformationTraps, hpnicfMACInformationTrapsExt=hpnicfMACInformationTrapsExt, hpnicfMACInfoTrapMsgMovedVlan=hpnicfMACInfoTrapMsgMovedVlan, hpnicfMACInformationLearntMACNum=hpnicfMACInformationLearntMACNum, hpnicfMACInfoTrapMsg=hpnicfMACInfoTrapMsg, hpnicfMACInformationMibGlobal=hpnicfMACInformationMibGlobal, hpnicfMACInformationRemovedMACNum=hpnicfMACInformationRemovedMACNum, hpnicfMACInfoTrapMsgMovedToIf=hpnicfMACInfoTrapMsgMovedToIf, hpnicfMACInformationMIBTableTroop=hpnicfMACInformationMIBTableTroop, hpnicfMACInformationTrapSendNum=hpnicfMACInformationTrapSendNum, hpnicfMACRemovedEnable=hpnicfMACRemovedEnable, hpnicfMACInformationChangedTrapExt=hpnicfMACInformationChangedTrapExt, hpnicfMACInfoTrapCountExt=hpnicfMACInfoTrapCountExt, hpnicfMACInfoTrapIndexExt=hpnicfMACInfoTrapIndexExt, hpnicfMACInfoTrapMsgMovedAddress=hpnicfMACInfoTrapMsgMovedAddress, hpnicfMACInformationSyslogSendNum=hpnicfMACInformationSyslogSendNum, hpnicfMACInfomationIfTable=hpnicfMACInfomationIfTable, hpnicfMACInfoTrapVerExt=hpnicfMACInfoTrapVerExt, hpnicfMACInfoTrapMsgMovedFromIf=hpnicfMACInfoTrapMsgMovedFromIf, hpnicfMACInformationTrapObjectsExt=hpnicfMACInformationTrapObjectsExt, hpnicfMACInfomationWorkMode=hpnicfMACInfomationWorkMode, hpnicfMACInformationMibTrap=hpnicfMACInformationMibTrap, hpnicfMACInfomationIfEntry=hpnicfMACInfomationIfEntry, hpnicfMACInfoTrapCount=hpnicfMACInfoTrapCount, hpnicfMACInformation=hpnicfMACInformation, hpnicfMACInformationTrapObjects=hpnicfMACInformationTrapObjects, hpnicfMACLearntEnable=hpnicfMACLearntEnable, hpnicfMACInformationObjects=hpnicfMACInformationObjects, hpnicfMACInformationChangedTrap=hpnicfMACInformationChangedTrap, PYSNMP_MODULE_ID=hpnicfMACInformation, hpnicfMACInformationMibTrapExt=hpnicfMACInformationMibTrapExt, hpnicfMACInformationCacheLen=hpnicfMACInformationCacheLen, hpnicfMACInfoTrapMsgExt=hpnicfMACInfoTrapMsgExt, hpnicfMACInformationcSendInterval=hpnicfMACInformationcSendInterval, hpnicfMACInfoTrapIndex=hpnicfMACInfoTrapIndex, HpnicfMACInfoWorkMode=HpnicfMACInfoWorkMode)
(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_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (unsigned32, ip_address, gauge32, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, time_ticks, counter32, bits, object_identity, integer32, counter64, notification_type, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'Gauge32', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'TimeTicks', 'Counter32', 'Bits', 'ObjectIdentity', 'Integer32', 'Counter64', 'NotificationType', 'ModuleIdentity') (mac_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TextualConvention', 'DisplayString') hpnicf_mac_information = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87)) hpnicfMACInformation.setRevisions(('2007-12-28 19:12',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfMACInformation.setRevisionsDescriptions(('The initial version of this MIB file.',)) if mibBuilder.loadTexts: hpnicfMACInformation.setLastUpdated('200712281912Z') if mibBuilder.loadTexts: hpnicfMACInformation.setOrganization('') if mibBuilder.loadTexts: hpnicfMACInformation.setContactInfo('') if mibBuilder.loadTexts: hpnicfMACInformation.setDescription('This MIB file is to provide the definition of the MAC Information general configuration. MAC Information feature is used to make that the changed MAC information in the monitored device is knowable in remote monitoring device.') class Hpnicfmacinfoworkmode(TextualConvention, Integer32): description = 'The working mode of the MAC Information feature.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('trap', 1), ('syslog', 2)) hpnicf_mac_information_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1)) hpnicf_mac_information_mib_global = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1)) hpnicf_mac_information_mib_table_troop = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2)) hpnicf_mac_information_mib_trap = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3)) hpnicf_mac_information_mib_trap_ext = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4)) hpnicf_mac_information_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACInformationEnabled.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationEnabled.setDescription('The value is a global setting. The feature will not work until the value is set to enabled(1). If the value is set to disabled(2), the feature will stop working even there are interfaces that have been enabled the feature.') hpnicf_mac_informationc_send_interval = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 20000)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACInformationcSendInterval.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationcSendInterval.setDescription('The maximum interval that the device generate syslogs or traps. The unit is second.') hpnicf_mac_information_learnt_mac_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfMACInformationLearntMACNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationLearntMACNum.setDescription('The number of MAC addresses that learnt by the device since the hpnicfMACInformationEnabled is set to enabled(1) and hpnicfMACLearntEnable is set to enabled(1) at least on one interface. If the hpnicfMACInformationEnabled is set to disabled(2), the object will always return 0.') hpnicf_mac_information_removed_mac_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfMACInformationRemovedMACNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationRemovedMACNum.setDescription('The number of MAC addresses that removed by the device since the hpnicfMACInformationEnabled is set to enabled(1) and hpnicfMACRemovedEnable is set to enabled(1) at least on one interface. If the hpnicfMACInformationEnabled is set to disabled(2), the object will always return 0.') hpnicf_mac_information_trap_send_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfMACInformationTrapSendNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationTrapSendNum.setDescription('The number of traps that have been generated. This object is valid only when the hpnicfMACInfomationWorkMode is set to trap(1). If the hpnicfMACInfomationWorkMode is set to syslog(2), the object will always return 0.') hpnicf_mac_information_syslog_send_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfMACInformationSyslogSendNum.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationSyslogSendNum.setDescription('The number of syslogs that have been generated. This object is valid only when the hpnicfMACInfomationWorkMode is set to syslog(2). If the hpnicfMACInfomationWorkMode is set to trap(1), the object will always return 0.') hpnicf_mac_information_cache_len = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1000)).clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACInformationCacheLen.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationCacheLen.setDescription('The maximum queue lenth used to cache the changed MAC addresses information in the monitored device. If the value is set to 0, syslog or trap will generate as soon as there is a MAC address learnt or removed.') hpnicf_mac_infomation_work_mode = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 1, 8), hpnicf_mac_info_work_mode()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACInfomationWorkMode.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationWorkMode.setDescription('The working mode of MAC Information feature. If the object is set to trap(1), the device will use trap mode to notify the MAC address information and all properties of trap interrelated is valid. If the object is set to syslog(2), the device will use syslog mode to notify the MAC address information and all properties of trap interrelated is invalid.') hpnicf_mac_infomation_if_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1)) if mibBuilder.loadTexts: hpnicfMACInfomationIfTable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationIfTable.setDescription('The table is used to enable or disable the MAC Information feature on interfaces.') hpnicf_mac_infomation_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfMACInfomationIfEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfomationIfEntry.setDescription('The entry of hpnicfMACInfomationIfTable.') hpnicf_mac_learnt_enable = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACLearntEnable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACLearntEnable.setDescription('If the object is set to enabled(1) on interface, the device will cache the MAC address information that learnt on the interface.') hpnicf_mac_removed_enable = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfMACRemovedEnable.setStatus('current') if mibBuilder.loadTexts: hpnicfMACRemovedEnable.setDescription('If the object is set to enable(1) on interface, the device will cache the MAC address information that removed on the interface.') hpnicf_mac_information_traps = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 0)) hpnicf_mac_information_changed_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 0, 1)).setObjects(('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapIndex'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapCount'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsg')) if mibBuilder.loadTexts: hpnicfMACInformationChangedTrap.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationChangedTrap.setDescription('When the cached number of MAC address information is reached the value specified by hpnicfMACInformationCacheLen, trap is generated and is sent to the remote monitoring device. The trap is also generated when the amount of time elapsed since the previous notification is greater than the interval value specified by hpnicfMACInformationcSendInterval and there is at least one cached MAC address information learnt or removed. The object is valid only when hpnicfMACInfomationWorkMode is set to trap(1). When the hpnicfMACInfomationWorkMode is set to syslog(2), No trap will be generated even hpnicfMACInformationEnabled is set to enabled(1) and the feature is enabled on interface.') hpnicf_mac_information_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2)) hpnicf_mac_info_trap_index = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndex.setDescription('The sequence number of trap information. When it reaches the maximum value, it should be set to 1.') hpnicf_mac_info_trap_count = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 2), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapCount.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapCount.setDescription('The cell number of the current trap information. The trap message may consists of more than one MAC address information. Each of the one MAC address information in one trap is called cell.') hpnicf_mac_info_trap_msg = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 3, 2, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 254))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsg.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsg.setDescription("This object is the MAC information that learnt or removed in the monitored device. It can consists of more than one MAC information in the object. This object is in the format of '<cell1><cell2>...'. Each cell consists of 12 octets in the format of '<operationType><VLAN><MAC><MACtype><ifIndex>'. <operationType> is the reason type of MAC address changed and have size of 1 octet. It only supports the following values. 1 - MAC learnt. 2 - MAC removed. <VLAN> is the vlan number that correspond to the MAC address in MAC address table and has size of 2 octet. <MAC> is the MAC address and has size of 6 octets. <MACtype> is the MAC address type and has size of 1 octet. It only supports the following values. 0 - Unknown 1 - Learnt 2 - Config dynamic 3 - Config static 4 - Blackhole 5 - Security 6 - 802.1x 7 - MAC authentication 8 - Voice VLAN 9 - Reserved <ifIndex> is the index of the interface where the MAC address is learnt or removed and has size of 2 octets.") hpnicf_mac_information_traps_ext = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0)) hpnicf_mac_information_changed_trap_ext = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0, 1)).setObjects(('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapVerExt'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapIndexExt'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapCountExt'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgExt')) if mibBuilder.loadTexts: hpnicfMACInformationChangedTrapExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationChangedTrapExt.setDescription('When the cached number of MAC address information is reached the value specified by hpnicfMACInformationCacheLen, trap is generated and is sent to the remote monitoring device. The trap is also generated when the amount of time elapsed since the previous notification is greater than the interval value specified by hpnicfMACInformationcSendInterval and there is at least one cached MAC address information learnt or removed. The object is valid only when hpnicfMACInfomationWorkMode is set to trap(1). When the hpnicfMACInfomationWorkMode is set to syslog(2), No trap will be generated even hpnicfMACInformationEnabled is set to enabled(1) and the feature is enabled on interface.') hpnicf_mac_information_moved_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 0, 2)).setObjects(('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgMovedAddress'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgMovedVlan'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgMovedFromIf'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgMovedToIf'), ('HPN-ICF-MAC-INFORMATION-MIB', 'hpnicfMACInfoTrapMsgMovedCount')) if mibBuilder.loadTexts: hpnicfMACInformationMovedTrap.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInformationMovedTrap.setDescription('When the MAC address has been moved to another interface, trap is generated and is sent to the remote monitoring device.') hpnicf_mac_information_trap_objects_ext = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2)) hpnicf_mac_info_trap_ver_ext = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 1), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapVerExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapVerExt.setDescription('The version of trap information.') hpnicf_mac_info_trap_index_ext = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndexExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapIndexExt.setDescription('The sequence number of trap information. When it reaches the maximum value, it should be set to 1.') hpnicf_mac_info_trap_count_ext = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 3), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapCountExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapCountExt.setDescription('The cell number of the current trap information. The trap message may consists of more than one MAC address information. Each of the one MAC address information in one trap is called cell.') hpnicf_mac_info_trap_msg_ext = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 254))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgExt.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgExt.setDescription("This object is the MAC information that learnt or removed in the monitored device. It can consists of more than one MAC information in the object. This object is in the format of '<cell1><cell2>...'. Each cell consists of 14 octets in the format of '<operationType><VLAN><MAC><MACtype><ifIndex>'. <operationType> is the reason type of MAC address changed and have size of 1 octet. It only supports the following values. 1 - MAC learnt. 2 - MAC removed. <VLAN> is the vlan number that correspond to the MAC address in MAC address table and has size of 2 octet. <MAC> is the MAC address and has size of 6 octets. <MACtype> is the MAC address type and has size of 1 octet. It only supports the following values. 0 - Unknown 1 - Learnt 2 - Config dynamic 3 - Config static 4 - Blackhole 5 - Security 6 - 802.1x 7 - MAC authentication 8 - Voice VLAN 9 - Reserved <ifIndex> is the index of the interface where the MAC address is learnt or removed and has size of 4 octets.") hpnicf_mac_info_trap_msg_moved_address = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 5), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedAddress.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedAddress.setDescription('The MAC address that is moved between interfaces.') hpnicf_mac_info_trap_msg_moved_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedVlan.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedVlan.setDescription('The VLAN number in which the MAC address is moved.') hpnicf_mac_info_trap_msg_moved_from_if = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedFromIf.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedFromIf.setDescription('The index of the interface from which the MAC address is moved.') hpnicf_mac_info_trap_msg_moved_to_if = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedToIf.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedToIf.setDescription('The index of the interface to which the MAC address is moved.') hpnicf_mac_info_trap_msg_moved_count = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 87, 1, 4, 2, 9), counter32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedCount.setStatus('current') if mibBuilder.loadTexts: hpnicfMACInfoTrapMsgMovedCount.setDescription('The times for which the MAC address has been moved between the interfaces.') mibBuilder.exportSymbols('HPN-ICF-MAC-INFORMATION-MIB', hpnicfMACInformationMovedTrap=hpnicfMACInformationMovedTrap, hpnicfMACInfoTrapMsgMovedCount=hpnicfMACInfoTrapMsgMovedCount, hpnicfMACInformationEnabled=hpnicfMACInformationEnabled, hpnicfMACInformationTraps=hpnicfMACInformationTraps, hpnicfMACInformationTrapsExt=hpnicfMACInformationTrapsExt, hpnicfMACInfoTrapMsgMovedVlan=hpnicfMACInfoTrapMsgMovedVlan, hpnicfMACInformationLearntMACNum=hpnicfMACInformationLearntMACNum, hpnicfMACInfoTrapMsg=hpnicfMACInfoTrapMsg, hpnicfMACInformationMibGlobal=hpnicfMACInformationMibGlobal, hpnicfMACInformationRemovedMACNum=hpnicfMACInformationRemovedMACNum, hpnicfMACInfoTrapMsgMovedToIf=hpnicfMACInfoTrapMsgMovedToIf, hpnicfMACInformationMIBTableTroop=hpnicfMACInformationMIBTableTroop, hpnicfMACInformationTrapSendNum=hpnicfMACInformationTrapSendNum, hpnicfMACRemovedEnable=hpnicfMACRemovedEnable, hpnicfMACInformationChangedTrapExt=hpnicfMACInformationChangedTrapExt, hpnicfMACInfoTrapCountExt=hpnicfMACInfoTrapCountExt, hpnicfMACInfoTrapIndexExt=hpnicfMACInfoTrapIndexExt, hpnicfMACInfoTrapMsgMovedAddress=hpnicfMACInfoTrapMsgMovedAddress, hpnicfMACInformationSyslogSendNum=hpnicfMACInformationSyslogSendNum, hpnicfMACInfomationIfTable=hpnicfMACInfomationIfTable, hpnicfMACInfoTrapVerExt=hpnicfMACInfoTrapVerExt, hpnicfMACInfoTrapMsgMovedFromIf=hpnicfMACInfoTrapMsgMovedFromIf, hpnicfMACInformationTrapObjectsExt=hpnicfMACInformationTrapObjectsExt, hpnicfMACInfomationWorkMode=hpnicfMACInfomationWorkMode, hpnicfMACInformationMibTrap=hpnicfMACInformationMibTrap, hpnicfMACInfomationIfEntry=hpnicfMACInfomationIfEntry, hpnicfMACInfoTrapCount=hpnicfMACInfoTrapCount, hpnicfMACInformation=hpnicfMACInformation, hpnicfMACInformationTrapObjects=hpnicfMACInformationTrapObjects, hpnicfMACLearntEnable=hpnicfMACLearntEnable, hpnicfMACInformationObjects=hpnicfMACInformationObjects, hpnicfMACInformationChangedTrap=hpnicfMACInformationChangedTrap, PYSNMP_MODULE_ID=hpnicfMACInformation, hpnicfMACInformationMibTrapExt=hpnicfMACInformationMibTrapExt, hpnicfMACInformationCacheLen=hpnicfMACInformationCacheLen, hpnicfMACInfoTrapMsgExt=hpnicfMACInfoTrapMsgExt, hpnicfMACInformationcSendInterval=hpnicfMACInformationcSendInterval, hpnicfMACInfoTrapIndex=hpnicfMACInfoTrapIndex, HpnicfMACInfoWorkMode=HpnicfMACInfoWorkMode)
# Time: O(n) # Space: O(h) # Given a binary tree, find the leftmost value in the last row of the tree. # # Example 1: # Input: # # 2 # / \ # 1 3 # # Output: # 1 # Example 2: # Input: # # 1 # / \ # 2 3 # / / \ # 4 5 6 # / # 7 # # Output: # 7 # Note: You may assume the tree (i.e., the given root node) is not NULL. # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def findBottomLeftValue(self, root): """ :type root: TreeNode :rtype: int """ def findBottomLeftValueHelper(root, curr_depth, max_depth, bottom_left_value): if not root: return max_depth, bottom_left_value if not root.left and not root.right and curr_depth+1 > max_depth: return curr_depth+1, root.val max_depth, bottom_left_value = findBottomLeftValueHelper(root.left, curr_depth+1, max_depth, bottom_left_value) max_depth, bottom_left_value = findBottomLeftValueHelper(root.right, curr_depth+1, max_depth, bottom_left_value) return max_depth, bottom_left_value result, max_depth = 0, 0 return findBottomLeftValueHelper(root, 0, max_depth, result)[1] # Time: O(n) # Space: O(n) class Solution2(object): def findBottomLeftValue(self, root): """ :type root: TreeNode :rtype: int """ queue = [root] for node in queue: queue += filter(None, (node.right, node.left)) return node.val
class Solution(object): def find_bottom_left_value(self, root): """ :type root: TreeNode :rtype: int """ def find_bottom_left_value_helper(root, curr_depth, max_depth, bottom_left_value): if not root: return (max_depth, bottom_left_value) if not root.left and (not root.right) and (curr_depth + 1 > max_depth): return (curr_depth + 1, root.val) (max_depth, bottom_left_value) = find_bottom_left_value_helper(root.left, curr_depth + 1, max_depth, bottom_left_value) (max_depth, bottom_left_value) = find_bottom_left_value_helper(root.right, curr_depth + 1, max_depth, bottom_left_value) return (max_depth, bottom_left_value) (result, max_depth) = (0, 0) return find_bottom_left_value_helper(root, 0, max_depth, result)[1] class Solution2(object): def find_bottom_left_value(self, root): """ :type root: TreeNode :rtype: int """ queue = [root] for node in queue: queue += filter(None, (node.right, node.left)) return node.val
# -*- coding:utf-8 -*- # -------------------------------------------------------- # Copyright (C), 2016-2021, lizhe, All rights reserved # -------------------------------------------------------- # @Name: constant.py # @Author: lizhe # @Created: 2021/11/18 - 22:08 # -------------------------------------------------------- dlc = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 12: 9, 16: 10, 20: 11, 24: 12, 32: 13, 48: 14, 64: 15 }
dlc = {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 12: 9, 16: 10, 20: 11, 24: 12, 32: 13, 48: 14, 64: 15}
# Fibonacci numbers # 1, 1, 2, 3, 5, 8, 13, 21, ... def fibonacci(limit): nums = [] currnum = 0 nextnum = 1 while currnum < limit: currnum, nextnum = nextnum, nextnum + currnum nums.append(currnum) return nums print('via lists') for n in fibonacci(100): print(n, end=', ') print() def fibonacci_co(): currnum = 0 nextnum = 1 while True: currnum, nextnum = nextnum, nextnum + currnum yield currnum print('via yield') for n in fibonacci_co(): if n > 5000: break print(n, end=', ')
def fibonacci(limit): nums = [] currnum = 0 nextnum = 1 while currnum < limit: (currnum, nextnum) = (nextnum, nextnum + currnum) nums.append(currnum) return nums print('via lists') for n in fibonacci(100): print(n, end=', ') print() def fibonacci_co(): currnum = 0 nextnum = 1 while True: (currnum, nextnum) = (nextnum, nextnum + currnum) yield currnum print('via yield') for n in fibonacci_co(): if n > 5000: break print(n, end=', ')
text = "X-DSPAM-Confidence: 0.8475" fiveposition = text.find("5") # print(fiveposition) zeroposition = text.find("0") # print(zeroposition) number = text[zeroposition:] print(float(number))
text = 'X-DSPAM-Confidence: 0.8475' fiveposition = text.find('5') zeroposition = text.find('0') number = text[zeroposition:] print(float(number))
MORSE_ALPHABET = { "A": ".-", "B": "-...", "C": "-.-.", "D": "-..", "E": ".", "F": "..-.", "G": "--.", "H": "....", "I": "..", "J": ".---", "K": "-.-", "L": ".-..", "M": "--", "N": "-.", "O": "---", "P": ".--.", "Q": "--.-", "R": ".-.", "S": "...", "T": "-", "U": "..-", "V": "...-", "W": ".--", "X": "-..-", "Y": "-.--", "Z": "--..", " ": "/", "1": ".----", "2": "..---", "3": "...--", "4": "....-", "5": ".....", "6": "-....", "7": "--...", "8": "---..", "9": "----.", "0": "-----", ".": ".-.-.-", ",": "--..--", ":": "---...", "?": "..--..", "'": ".----.", "-": "-....-", "/": "-..-.", "@": ".--.-.", "=": "-...-", } INVERSE_MORSE_ALPHABET = dict((v, k) for (k, v) in MORSE_ALPHABET.items()) def decode_morse(code, position_in_string=0): if position_in_string < len(code): morse_letter = "" for key, char in enumerate(code[position_in_string:]): if char == " ": position_in_string = key + position_in_string + 1 letter = INVERSE_MORSE_ALPHABET[morse_letter] return letter + decode_morse(code, position_in_string) else: morse_letter += char else: return "" def encode_morse(message): encoded_message = "" for char in message: encoded_message += MORSE_ALPHABET.get(char.upper(), "") + " " return encoded_message
morse_alphabet = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...', 'T': '-', 'U': '..-', 'V': '...-', 'W': '.--', 'X': '-..-', 'Y': '-.--', 'Z': '--..', ' ': '/', '1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....', '6': '-....', '7': '--...', '8': '---..', '9': '----.', '0': '-----', '.': '.-.-.-', ',': '--..--', ':': '---...', '?': '..--..', "'": '.----.', '-': '-....-', '/': '-..-.', '@': '.--.-.', '=': '-...-'} inverse_morse_alphabet = dict(((v, k) for (k, v) in MORSE_ALPHABET.items())) def decode_morse(code, position_in_string=0): if position_in_string < len(code): morse_letter = '' for (key, char) in enumerate(code[position_in_string:]): if char == ' ': position_in_string = key + position_in_string + 1 letter = INVERSE_MORSE_ALPHABET[morse_letter] return letter + decode_morse(code, position_in_string) else: morse_letter += char else: return '' def encode_morse(message): encoded_message = '' for char in message: encoded_message += MORSE_ALPHABET.get(char.upper(), '') + ' ' return encoded_message
class Solution: def evalRPN(self, tokens: List[str]) -> int: """ :type tokens: List[str] :rtype: int """ stack = list() operations = {'+', '-', '*', '/'} for token in tokens: if token in operations: right = stack.pop() left = stack.pop() if token == '+': tmp = left + right elif token == '-': tmp = left - right elif token == '*': tmp = left * right else: if left * right >= 0: tmp = left // right else: tmp = -(-left // right) stack.append(tmp) else: stack.append(int(token)) return stack[0] if __name__ == "__main__": solution = Solution() print(solution.evalRPN(["2", "1", "+", "3", "*"])) print(solution.evalRPN(["4", "13", "5", "/", "+"]))
class Solution: def eval_rpn(self, tokens: List[str]) -> int: """ :type tokens: List[str] :rtype: int """ stack = list() operations = {'+', '-', '*', '/'} for token in tokens: if token in operations: right = stack.pop() left = stack.pop() if token == '+': tmp = left + right elif token == '-': tmp = left - right elif token == '*': tmp = left * right elif left * right >= 0: tmp = left // right else: tmp = -(-left // right) stack.append(tmp) else: stack.append(int(token)) return stack[0] if __name__ == '__main__': solution = solution() print(solution.evalRPN(['2', '1', '+', '3', '*'])) print(solution.evalRPN(['4', '13', '5', '/', '+']))
cookies = input("hoeveel koekjes wil je maken") sugar = (1.5 / 48) * int(cookies) butter = (1 / 48) * int(cookies) flour = (2.75 / 48) * int(cookies) print ("suiker: ", sugar, "\n", "boter: ", butter, "\n", "bloem: ", flour)
cookies = input('hoeveel koekjes wil je maken') sugar = 1.5 / 48 * int(cookies) butter = 1 / 48 * int(cookies) flour = 2.75 / 48 * int(cookies) print('suiker: ', sugar, '\n', 'boter: ', butter, '\n', 'bloem: ', flour)
class CaseData: """ A test case. Attributes ---------- bond_factory : :class:`.BondFactory` The bond factory to test. atoms : :class:`tuple` of :class:`.Atom` The atom to pass to :meth:`.BondFactory.get_bonds`. bonds : :class:`tuple` of :class:`.Bond` The bonds which should get made. """ def __init__(self, bond_factory, atoms, bonds): """ Initialize a :class:`.CaseData` instance. Parameters ---------- bond_factory : :class:`.BondFactory` The bond factory to test. atoms : :class:`tuple` of :class:`.Atom` The atom to pass to :meth:`.BondFactory.get_bonds`. bonds : :class:`tuple` of :class:`.Bond` The bonds which should get made. """ self.bond_factory = bond_factory self.atoms = atoms self.bonds = bonds
class Casedata: """ A test case. Attributes ---------- bond_factory : :class:`.BondFactory` The bond factory to test. atoms : :class:`tuple` of :class:`.Atom` The atom to pass to :meth:`.BondFactory.get_bonds`. bonds : :class:`tuple` of :class:`.Bond` The bonds which should get made. """ def __init__(self, bond_factory, atoms, bonds): """ Initialize a :class:`.CaseData` instance. Parameters ---------- bond_factory : :class:`.BondFactory` The bond factory to test. atoms : :class:`tuple` of :class:`.Atom` The atom to pass to :meth:`.BondFactory.get_bonds`. bonds : :class:`tuple` of :class:`.Bond` The bonds which should get made. """ self.bond_factory = bond_factory self.atoms = atoms self.bonds = bonds
__author__ = "Sunrit Jana" __email__ = "warriordefenderz@gmail.com" __version__ = "0.1.0" __license__ = "MIT License" __copyright__ = "Copyright 2021 Sunrit Jana"
__author__ = 'Sunrit Jana' __email__ = 'warriordefenderz@gmail.com' __version__ = '0.1.0' __license__ = 'MIT License' __copyright__ = 'Copyright 2021 Sunrit Jana'