content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# https://leetcode.com/problems/linked-list-cycle-ii/ # Given a linked list, return the node where the cycle begins. If there is no # cycle, return null. # There is a cycle in a linked list if there is some node in the list that can be # reached again by continuously following the next pointer. Internally, pos is # used to denote the index of the node that tail's next pointer is connected to. # Note that pos is not passed as a parameter. # Notice that you should not modify the linked list. ################################################################################ # use slow and fast # if meet, move slow to head and stop when meet again # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def detectCycle(self, head: ListNode) -> ListNode: if not head or not head.next: return None is_cycle = False slow, fast = head, head while fast.next and fast.next.next: slow = slow.next fast = fast.next.next if slow == fast: is_cycle = True break if not is_cycle: return None else: # move slow to head slow = head while slow != fast: slow = slow.next fast = fast.next return slow
class Solution: def detect_cycle(self, head: ListNode) -> ListNode: if not head or not head.next: return None is_cycle = False (slow, fast) = (head, head) while fast.next and fast.next.next: slow = slow.next fast = fast.next.next if slow == fast: is_cycle = True break if not is_cycle: return None else: slow = head while slow != fast: slow = slow.next fast = fast.next return slow
# -*- coding: utf-8 -*- class KriegspielException(Exception): pass
class Kriegspielexception(Exception): pass
class Edge: # edge for polygon def __init__(self): self.id = -1 # polygon vertex id self.v0_id = -1 self.v1_id = -1 # connected polygon node id self.node0_id = -1 self.node1_id = -1 # the lane id this edge cross self.cross_lane_id = -1 def init_edge(self, v0_id, v1_id, node0_id, node1_id): assert(v0_id != v1_id) self.v0_id = v0_id self.v1_id = v1_id self.node0_id = node0_id self.node1_id = node1_id def get_variable(self): return [self.v0_id, self.v1_id, self.node0_id, self.node1_id]
class Edge: def __init__(self): self.id = -1 self.v0_id = -1 self.v1_id = -1 self.node0_id = -1 self.node1_id = -1 self.cross_lane_id = -1 def init_edge(self, v0_id, v1_id, node0_id, node1_id): assert v0_id != v1_id self.v0_id = v0_id self.v1_id = v1_id self.node0_id = node0_id self.node1_id = node1_id def get_variable(self): return [self.v0_id, self.v1_id, self.node0_id, self.node1_id]
# encoding: utf8 class End(object): def __init__(self, connection=None): self.connection = connection self.__point = None def paint(self, painter, point): self.connection.paint(painter, self, point) def set_point(self, point): self.__point = point def get_point(self): return self.__point
class End(object): def __init__(self, connection=None): self.connection = connection self.__point = None def paint(self, painter, point): self.connection.paint(painter, self, point) def set_point(self, point): self.__point = point def get_point(self): return self.__point
# Straight down to your spine(After u crash into a "PROTEIN THINGNY" by E235 at 65km/h, imagine that high-speed and safe brought u by JR East and ATC/ATS) # Be "straight" here for sure: This is for some external features that I just want to share around the repo and test it out # Btw, remenber what this repo for? def unwrap(incoming: str): dump = incoming # What a typical Win32 API(I guess, wmi.WMI().Win32_LogicalDisk()) output looks like: # instance of Win32_LogicalDisk # { # Access = 0; # Caption = "C:"; # Compressed = FALSE; # CreationClassName = "Win32_LogicalDisk"; # Description = "Local Fixed Disk"; # DeviceID = "C:"; # DriveType = 3; # FileSystem = "NTFS"; # FreeSpace = "114514191981"; # MaximumComponentLength = 255; # MediaType = 12; # Name = "C:"; # Size = "1145141919810"; # SupportsDiskQuotas = FALSE; # SupportsFileBasedCompression = TRUE; # SystemCreationClassName = "Win32_ComputerSystem"; # SystemName = "NA-ME"; # VolumeName = ""; # VolumeSerialNumber = ""; #Your S/N # }; # Messy. # So I am gonna process this in this file in my own way(String stuff) before I get a better option(Hope for help on this) try: head = dump.index("{") except Exception: return IOError try: tail = dump.index("};") except Exception: return IOError dump = dump[head-1:tail-1] raw_val = dump.split(";") counter = 0 backed_val = {} for i in raw_val: name = i.split("\ = \ ")[0] data = i.split("\ = \ ")[1] backed_val[name] = data return backed_val
def unwrap(incoming: str): dump = incoming try: head = dump.index('{') except Exception: return IOError try: tail = dump.index('};') except Exception: return IOError dump = dump[head - 1:tail - 1] raw_val = dump.split(';') counter = 0 backed_val = {} for i in raw_val: name = i.split('\\ = \\ ')[0] data = i.split('\\ = \\ ')[1] backed_val[name] = data return backed_val
num = float(input()) if (100 > num or num > 200) and num != 0: print("invalid") elif num == 0: print()
num = float(input()) if (100 > num or num > 200) and num != 0: print('invalid') elif num == 0: print()
# 21300 - [Job Adv] (Lv.60) Aran sm.setSpeakerID(1510009) sm.sendNext("How is the training going? Hm, Lv. 60? You still ahve a long way to go, but it's definitely praiseworthy compared to the first time I met you. Continue to train diligently, and I'm sure you'll regain your strength soon!") if sm.sendAskYesNo("But first, you must head to #b#m140000000##k your #b#p1201001##k is acting weird again. I think it has something to tell you. It might be able to restore your abilities, so please hurry."): sm.startQuest(parentID) sm.sendSayOkay("Anyway, I thought it was really something that a weapon had its own identity, but this weapon gets extremely annoying. It cries, saying that I'm not paying attention to its needs, and now... Oh, please keep this a secret from the Polearm. I don't think it's a good idea to upset the weapon any more than I already have.") sm.dispose() else: sm.dispose()
sm.setSpeakerID(1510009) sm.sendNext("How is the training going? Hm, Lv. 60? You still ahve a long way to go, but it's definitely praiseworthy compared to the first time I met you. Continue to train diligently, and I'm sure you'll regain your strength soon!") if sm.sendAskYesNo('But first, you must head to #b#m140000000##k your #b#p1201001##k is acting weird again. I think it has something to tell you. It might be able to restore your abilities, so please hurry.'): sm.startQuest(parentID) sm.sendSayOkay("Anyway, I thought it was really something that a weapon had its own identity, but this weapon gets extremely annoying. It cries, saying that I'm not paying attention to its needs, and now... Oh, please keep this a secret from the Polearm. I don't think it's a good idea to upset the weapon any more than I already have.") sm.dispose() else: sm.dispose()
i = 0 while True: print(i) i = i + 1
i = 0 while True: print(i) i = i + 1
# Please be warned, that when turning on the "saving_enabled" feature, it will consume a lot of ram while it is saving # The frames. This is because every single frame that is played during the animation is recorded into the memory # At the moment, I dont see any other way to output a gif straight out of pygame. Increasing optimization_level alleviates # this to some extent saving_enabled = False # Record the animation optimization_level = 1 # Every Nth frame to record while saving_enabled = True duration = 8 # Pillow says this is duration of each frame in millisecond in the output gif but its weird display_stats = True # Display stats like pixels drawn, fps display_grid = True # displays a grid of tilesize x tilesize silhouette = True # Shows original position while animating brush_size = 3 # Default size of the brush res = (800, 600) # window size tile_size = 5 # size of each tile, as well as the size of grid if enabled lerp_speed = 0.1 # How fast should pieces assemble together. 0.01 = 1% of the distance covered per frame output_name = "out" # Name of the GIF generated if saving_enabled = True. (Do not include file extension!) colors = [ # Edit these values to change or add more colors (255, 0, 0), # red (0, 255, 0), # green (0, 0, 255), # blue (170, 0, 210), # magenta (0, 130, 200), # cyan (255, 128, 128), # pale_red (255, 255, 255), # White ] default_background_color = (80, 80, 80) # Default canvas background color palette_width = 50 #palette width
saving_enabled = False optimization_level = 1 duration = 8 display_stats = True display_grid = True silhouette = True brush_size = 3 res = (800, 600) tile_size = 5 lerp_speed = 0.1 output_name = 'out' colors = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (170, 0, 210), (0, 130, 200), (255, 128, 128), (255, 255, 255)] default_background_color = (80, 80, 80) palette_width = 50
# EDITION # PLAYING WITH NUMBERS my_var_int = 1234 my_var_int = my_var_int + 20 print(f"my_var_int: {my_var_int}") my_var_int += 20# my_var_int = my_var_int + 20 print(f"my_var_int: {my_var_int}") my_var_int = my_var_int - 75 # substraction print(f"my_var_int: {my_var_int}") my_var_int = my_var_int / 2 # division print(f"my_var_int: {my_var_int}") my_var_int = my_var_int * 10 # multiplication print(f"my_var_int: {my_var_int}") my_var_int = my_var_int % 10 # modulo. Modulo is the rest when removing the operator to the value as much as possible and keep a positive value # Example 20-10=10, we can still remove 10, 10-10=0, we can't remove 10 anymore so 20 % 10 = 0 # 21 % 10 = 21 - 10 - 10 = 1, 21 % 10 = 1 print(f"my_var_int: {my_var_int}") print("") # SPACING # PLAYING WITH STRINGS my_var_string = "S_A" print(f"my_var_string 1: {my_var_string}") o_var = "S_other" my_var_string = o_var + my_var_string # "S_A" + "S_other" print(f"my_var_string 2: {my_var_string}") my_var_string += o_var print(f"my_var_string 3: {my_var_string}") my_var_string = "S_A" # my_var_string[0] = "B" # BREAKS print("") # SPACING # PLAYING WITH ARRAY my_var_array = [1, 2, 3, 4] my_var_array.append("a") print(f"my_var_array after append: {my_var_array}") my_var_array[0] = "AAA" print(f"my_var_array after edition at index: {my_var_array}") my_var_array = [ 123 ]+my_var_array + [9,8] print(f"my_var_array after addition: {my_var_array}") my_var_array = my_var_array[1:4] #this "slice" the array and keep between the 2 indexes print(f"my_var_array after slice: {my_var_array}") print("") # SPACING # PLAYING WITH DICT my_var_dict = { 'a':'TITI' } my_var_dict["a"] = "TOTO" print(f"my_var_dict 1: {my_var_dict}") my_var_dict["b"] = "BLABLA" print(f"my_var_dict 2: {my_var_dict}") my_var_dict["b"] = "APPLE" print(f"my_var_dict 3: {my_var_dict}")
my_var_int = 1234 my_var_int = my_var_int + 20 print(f'my_var_int: {my_var_int}') my_var_int += 20 print(f'my_var_int: {my_var_int}') my_var_int = my_var_int - 75 print(f'my_var_int: {my_var_int}') my_var_int = my_var_int / 2 print(f'my_var_int: {my_var_int}') my_var_int = my_var_int * 10 print(f'my_var_int: {my_var_int}') my_var_int = my_var_int % 10 print(f'my_var_int: {my_var_int}') print('') my_var_string = 'S_A' print(f'my_var_string 1: {my_var_string}') o_var = 'S_other' my_var_string = o_var + my_var_string print(f'my_var_string 2: {my_var_string}') my_var_string += o_var print(f'my_var_string 3: {my_var_string}') my_var_string = 'S_A' print('') my_var_array = [1, 2, 3, 4] my_var_array.append('a') print(f'my_var_array after append: {my_var_array}') my_var_array[0] = 'AAA' print(f'my_var_array after edition at index: {my_var_array}') my_var_array = [123] + my_var_array + [9, 8] print(f'my_var_array after addition: {my_var_array}') my_var_array = my_var_array[1:4] print(f'my_var_array after slice: {my_var_array}') print('') my_var_dict = {'a': 'TITI'} my_var_dict['a'] = 'TOTO' print(f'my_var_dict 1: {my_var_dict}') my_var_dict['b'] = 'BLABLA' print(f'my_var_dict 2: {my_var_dict}') my_var_dict['b'] = 'APPLE' print(f'my_var_dict 3: {my_var_dict}')
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'core_lib', 'type': 'static_library', 'sources': [ 'address.cc', 'address.h', 'address_filter.h', 'address_filter_impl.h', 'address_range.cc', 'address_range.h', 'address_space.cc', 'address_space.h', 'address_space_internal.h', 'disassembler.cc', 'disassembler.h', 'disassembler_util.cc', 'disassembler_util.h', 'file_util.cc', 'file_util.h', 'json_file_writer.cc', 'json_file_writer.h', 'random_number_generator.cc', 'random_number_generator.h', 'section_offset_address.cc', 'section_offset_address.h', 'serialization.cc', 'serialization.h', 'serialization_impl.h', 'string_table.cc', 'string_table.h', 'zstream.cc', 'zstream.h', ], 'dependencies': [ '<(src)/base/base.gyp:base', '<(src)/syzygy/assm/assm.gyp:assm_lib', '<(src)/syzygy/common/common.gyp:common_lib', '<(src)/third_party/distorm/distorm.gyp:distorm', '<(src)/third_party/zlib/zlib.gyp:zlib', ], }, { 'target_name': 'core_unittest_utils', 'type': 'static_library', 'sources': [ 'unittest_util.cc', 'unittest_util.h', ], 'dependencies': [ 'core_lib', '<(src)/base/base.gyp:base', '<(src)/testing/gtest.gyp:gtest', ], }, { 'target_name': 'core_unittests', 'type': 'executable', 'includes': ['../build/masm.gypi'], 'sources': [ 'address_unittest.cc', 'address_filter_unittest.cc', 'address_space_unittest.cc', 'address_range_unittest.cc', 'disassembler_test_code.asm', 'disassembler_unittest.cc', 'disassembler_util_unittest.cc', 'file_util_unittest.cc', 'json_file_writer_unittest.cc', 'section_offset_address_unittest.cc', 'serialization_unittest.cc', 'string_table_unittest.cc', 'unittest_util_unittest.cc', 'zstream_unittest.cc', '<(src)/syzygy/testing/run_all_unittests.cc', ], 'dependencies': [ 'core_lib', 'core_unittest_utils', '<(src)/base/base.gyp:base', '<(src)/base/base.gyp:test_support_base', '<(src)/syzygy/assm/assm.gyp:assm_unittest_utils', '<(src)/testing/gmock.gyp:gmock', '<(src)/testing/gtest.gyp:gtest', '<(src)/third_party/distorm/distorm.gyp:distorm', '<(src)/third_party/zlib/zlib.gyp:zlib', ], }, ], }
{'variables': {'chromium_code': 1}, 'targets': [{'target_name': 'core_lib', 'type': 'static_library', 'sources': ['address.cc', 'address.h', 'address_filter.h', 'address_filter_impl.h', 'address_range.cc', 'address_range.h', 'address_space.cc', 'address_space.h', 'address_space_internal.h', 'disassembler.cc', 'disassembler.h', 'disassembler_util.cc', 'disassembler_util.h', 'file_util.cc', 'file_util.h', 'json_file_writer.cc', 'json_file_writer.h', 'random_number_generator.cc', 'random_number_generator.h', 'section_offset_address.cc', 'section_offset_address.h', 'serialization.cc', 'serialization.h', 'serialization_impl.h', 'string_table.cc', 'string_table.h', 'zstream.cc', 'zstream.h'], 'dependencies': ['<(src)/base/base.gyp:base', '<(src)/syzygy/assm/assm.gyp:assm_lib', '<(src)/syzygy/common/common.gyp:common_lib', '<(src)/third_party/distorm/distorm.gyp:distorm', '<(src)/third_party/zlib/zlib.gyp:zlib']}, {'target_name': 'core_unittest_utils', 'type': 'static_library', 'sources': ['unittest_util.cc', 'unittest_util.h'], 'dependencies': ['core_lib', '<(src)/base/base.gyp:base', '<(src)/testing/gtest.gyp:gtest']}, {'target_name': 'core_unittests', 'type': 'executable', 'includes': ['../build/masm.gypi'], 'sources': ['address_unittest.cc', 'address_filter_unittest.cc', 'address_space_unittest.cc', 'address_range_unittest.cc', 'disassembler_test_code.asm', 'disassembler_unittest.cc', 'disassembler_util_unittest.cc', 'file_util_unittest.cc', 'json_file_writer_unittest.cc', 'section_offset_address_unittest.cc', 'serialization_unittest.cc', 'string_table_unittest.cc', 'unittest_util_unittest.cc', 'zstream_unittest.cc', '<(src)/syzygy/testing/run_all_unittests.cc'], 'dependencies': ['core_lib', 'core_unittest_utils', '<(src)/base/base.gyp:base', '<(src)/base/base.gyp:test_support_base', '<(src)/syzygy/assm/assm.gyp:assm_unittest_utils', '<(src)/testing/gmock.gyp:gmock', '<(src)/testing/gtest.gyp:gtest', '<(src)/third_party/distorm/distorm.gyp:distorm', '<(src)/third_party/zlib/zlib.gyp:zlib']}]}
r=int(input("enter radius\n")) area=3.14*r*r print(area) r=int(input("enter radius\n")) circumference=2*3.14*r print(circumference)
r = int(input('enter radius\n')) area = 3.14 * r * r print(area) r = int(input('enter radius\n')) circumference = 2 * 3.14 * r print(circumference)
plugins_modules = [ "authorization", "anonymous", ]
plugins_modules = ['authorization', 'anonymous']
SEND_TEXT = 'send_text' SEND_IMAGE = 'send_image' SEND_TEXT_AND_BUTTON = 'send_text_and_button' CHECK_STATUS_MESSAGES = 'check_status_messages' API = [SEND_TEXT, SEND_IMAGE, SEND_TEXT_AND_BUTTON, CHECK_STATUS_MESSAGES] API_CHOICES = [(api, api) for api in API]
send_text = 'send_text' send_image = 'send_image' send_text_and_button = 'send_text_and_button' check_status_messages = 'check_status_messages' api = [SEND_TEXT, SEND_IMAGE, SEND_TEXT_AND_BUTTON, CHECK_STATUS_MESSAGES] api_choices = [(api, api) for api in API]
def reverse(list): if len(list) < 2: return list return [list[-1]] + reverse(list[:-1]) assert reverse([]) == [] assert reverse([2]) == [2] assert reverse([2, 6, 5]) == [5, 6, 2]
def reverse(list): if len(list) < 2: return list return [list[-1]] + reverse(list[:-1]) assert reverse([]) == [] assert reverse([2]) == [2] assert reverse([2, 6, 5]) == [5, 6, 2]
class Arvore(): def __init__(self, valor, esq=None, dir=None): self.dir = dir self.esq = esq self.valor = valor def __iter__(self): yield self.valor if self.esq: for valor in self.esq: yield valor if self.dir: for valor in self.dir: yield valor c = Arvore('C') d = Arvore('D') b = Arvore('B', c, d) e = Arvore('E') a = Arvore('A', b, e) for valor in a: print(valor)
class Arvore: def __init__(self, valor, esq=None, dir=None): self.dir = dir self.esq = esq self.valor = valor def __iter__(self): yield self.valor if self.esq: for valor in self.esq: yield valor if self.dir: for valor in self.dir: yield valor c = arvore('C') d = arvore('D') b = arvore('B', c, d) e = arvore('E') a = arvore('A', b, e) for valor in a: print(valor)
#4 row=0 while row<10: col=0 while col<9: if col+row==6 or row==6 or (col==6): print("*",end=" ") else: print(" ",end=" ") col +=1 row +=1 print()
row = 0 while row < 10: col = 0 while col < 9: if col + row == 6 or row == 6 or col == 6: print('*', end=' ') else: print(' ', end=' ') col += 1 row += 1 print()
def hex(number): if number == 0: return '0' res = '' while number > 0: digit = number % 16 if digit <= 9: digit = str(digit) elif digit <= 13: if digit <= 11: if digit == 10: digit = 'A' else: digit = 'B' elif digit == 12: digit = 'C' else: digit = 'D' elif digit == 14: digit = 'E' else: digit = 'F' res = digit + res number = number // 16 return res
def hex(number): if number == 0: return '0' res = '' while number > 0: digit = number % 16 if digit <= 9: digit = str(digit) elif digit <= 13: if digit <= 11: if digit == 10: digit = 'A' else: digit = 'B' elif digit == 12: digit = 'C' else: digit = 'D' elif digit == 14: digit = 'E' else: digit = 'F' res = digit + res number = number // 16 return res
class Singleton(type): _instances = {} def __call__(cls, tree): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(tree) instance = cls._instances[cls] instance.tree = tree # update tree return instance def clear(cls): try: del Singleton._instances[cls] except KeyError: return
class Singleton(type): _instances = {} def __call__(cls, tree): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(tree) instance = cls._instances[cls] instance.tree = tree return instance def clear(cls): try: del Singleton._instances[cls] except KeyError: return
#Joe is a prisoner who has been sentenced to hard labor for his crimes. Each day he is given a pile of large rocks to break into tiny rocks. To make matters worse, they do not provide any tools to work with. Instead, he must use the rocks themselves. He always picks up the largest two stones and smashes them together. If they are of equal weight, they both disintegrate entirely. If one is larger, the smaller one is disintegrated and the larger one is reduced by the weight of the smaller one. Eventually there is either one stone left that cannot be broken or all of the stones have been smashed. Determine the weight of the last stone, or return 0 if there is none. a_count = int(input().strip()) a = [] for _ in range(a_count): a_item = int(input().strip()) a.append(a_item) def lastStoneWeight(a): # Write your code here print(f"before sort: {a}") a.sort() print(f"after sort: {a}") b = a[0] for i in range(len(a)): if len(a) >= 2: b = abs(a[-1] - a[-2]) if b == 0: a.remove(a[-1]) a.remove(a[-1]) else: a.remove(a[-1]) a[-1] = b else: print(f"last output: {a}") return b print(f"result: {lastStoneWeight(a)}")
a_count = int(input().strip()) a = [] for _ in range(a_count): a_item = int(input().strip()) a.append(a_item) def last_stone_weight(a): print(f'before sort: {a}') a.sort() print(f'after sort: {a}') b = a[0] for i in range(len(a)): if len(a) >= 2: b = abs(a[-1] - a[-2]) if b == 0: a.remove(a[-1]) a.remove(a[-1]) else: a.remove(a[-1]) a[-1] = b else: print(f'last output: {a}') return b print(f'result: {last_stone_weight(a)}')
# (C) Datadog, Inc. 2020 - Present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) GENERIC_METRICS = { 'go_gc_duration_seconds': 'go.gc_duration_seconds', 'go_goroutines': 'go.goroutines', 'go_info': 'go.info', 'go_memstats_alloc_bytes': 'go.memstats.alloc_bytes', 'go_memstats_alloc_bytes_total': 'go.memstats.alloc_bytes_total', 'go_memstats_buck_hash_sys_bytes': 'go.memstats.buck_hash_sys_bytes', 'go_memstats_frees_total': 'go.memstats.frees_total', 'go_memstats_gc_cpu_fraction': 'go.memstats.gc_cpu_fraction', 'go_memstats_gc_sys_bytes': 'go.memstats.gc_sys_bytes', 'go_memstats_heap_alloc_bytes': 'go.memstats.heap_alloc_bytes', 'go_memstats_heap_idle_bytes': 'go.memstats.heap_idle_bytes', 'go_memstats_heap_inuse_bytes': 'go.memstats.heap_inuse_bytes', 'go_memstats_heap_objects': 'go.memstats.heap_objects', 'go_memstats_heap_released_bytes': 'go.memstats.heap_released_bytes', 'go_memstats_heap_sys_bytes': 'go.memstats.heap_sys_bytes', 'go_memstats_last_gc_time_seconds': 'go.memstats.last_gc_time_seconds', 'go_memstats_lookups_total': 'go.memstats.lookups_total', 'go_memstats_mallocs_total': 'go.memstats.mallocs_total', 'go_memstats_mcache_inuse_bytes': 'go.memstats.mcache_inuse_bytes', 'go_memstats_mcache_sys_bytes': 'go.memstats.mcache_sys_bytes', 'go_memstats_mspan_inuse_bytes': 'go.memstats.mspan_inuse_bytes', 'go_memstats_mspan_sys_bytes': 'go.memstats.mspan_sys_bytes', 'go_memstats_next_gc_bytes': 'go.memstats.next_gc_bytes', 'go_memstats_other_sys_bytes': 'go.memstats.other_sys_bytes', 'go_memstats_stack_inuse_bytes': 'go.memstats.stack_inuse_bytes', 'go_memstats_stack_sys_bytes': 'go.memstats.stack_sys_bytes', 'go_memstats_sys_bytes': 'go.memstats.sys_bytes', 'go_threads': 'go.threads', 'process_cpu_seconds_total': 'process.cpu_seconds_total', 'process_max_fds': 'process.max_fds', 'process_open_fds': 'process.open_fds', 'process_resident_memory_bytes': 'process.resident_memory_bytes', 'process_start_time_seconds': 'process.start_time_seconds', 'process_virtual_memory_bytes': 'process.virtual_memory_bytes', } CITADEL_METRICS = { 'citadel_secret_controller_csr_err_count': 'secret_controller.csr_err_count', 'citadel_secret_controller_secret_deleted_cert_count': ('secret_controller.secret_deleted_cert_count'), 'citadel_secret_controller_svc_acc_created_cert_count': ('secret_controller.svc_acc_created_cert_count'), 'citadel_secret_controller_svc_acc_deleted_cert_count': ('secret_controller.svc_acc_deleted_cert_count'), 'citadel_server_authentication_failure_count': 'server.authentication_failure_count', 'citadel_server_citadel_root_cert_expiry_timestamp': ('server.citadel_root_cert_expiry_timestamp'), 'citadel_server_csr_count': 'server.csr_count', 'citadel_server_csr_parsing_err_count': 'server.csr_parsing_err_count', 'citadel_server_id_extraction_err_count': 'server.id_extraction_err_count', 'citadel_server_success_cert_issuance_count': 'server.success_cert_issuance_count', 'citadel_server_root_cert_expiry_timestamp': 'server.root_cert_expiry_timestamp', } GALLEY_METRICS = { 'endpoint_no_pod': 'endpoint_no_pod', 'galley_mcp_source_clients_total': 'mcp_source.clients_total', 'galley_runtime_processor_event_span_duration_milliseconds': ('runtime_processor.event_span_duration_milliseconds'), 'galley_runtime_processor_events_processed_total': 'runtime_processor.events_processed_total', 'galley_runtime_processor_snapshot_events_total': 'runtime_processor.snapshot_events_total', 'galley_runtime_processor_snapshot_lifetime_duration_milliseconds': ( 'runtime_processor.snapshot_lifetime_duration_milliseconds' ), 'galley_runtime_processor_snapshots_published_total': ('runtime_processor.snapshots_published_total'), 'galley_runtime_state_type_instances_total': 'runtime_state_type_instances_total', 'galley_runtime_strategy_on_change_total': 'runtime_strategy.on_change_total', 'galley_runtime_strategy_timer_max_time_reached_total': ('runtime_strategy.timer_max_time_reached_total'), 'galley_runtime_strategy_timer_quiesce_reached_total': 'runtime_strategy.quiesce_reached_total', 'galley_runtime_strategy_timer_resets_total': 'runtime_strategy.timer_resets_total', 'galley_source_kube_dynamic_converter_success_total': ('source_kube.dynamic_converter_success_total'), 'galley_source_kube_event_success_total': 'source_kube.event_success_total', 'galley_validation_cert_key_updates': 'validation.cert_key_updates', 'galley_validation_config_load': 'validation.config_load', 'galley_validation_config_updates': 'validation.config_update', 'galley_validation_passed': 'validation.passed', # These metrics supported Istio 1.5 'galley_validation_config_update_error': 'validation.config_update_error', } MESH_METRICS = { # These metrics support Istio 1.5 'istio_request_duration_milliseconds': 'request.duration.milliseconds', # These metrics support Istio 1.0 'istio_requests_total': 'request.count', 'istio_request_duration_seconds': 'request.duration', 'istio_request_bytes': 'request.size', 'istio_response_bytes': 'response.size', # These metrics support Istio 0.8 'istio_request_count': 'request.count', 'istio_request_duration': 'request.duration', 'istio_request_size': 'request.size', 'istio_response_size': 'response.size', # TCP metrics 'istio_tcp_connections_closed_total': 'tcp.connections_closed.total', 'istio_tcp_connections_opened_total': 'tcp.connections_opened.total', 'istio_tcp_received_bytes_total': 'tcp.received_bytes.total', 'istio_tcp_sent_bytes_total': 'tcp.send_bytes.total', } MIXER_METRICS = { # Pre 1.1 metrics 'grpc_server_handled_total': 'grpc.server.handled_total', 'grpc_server_handling_seconds': 'grpc.server.handling_seconds', 'grpc_server_msg_received_total': 'grpc.server.msg_received_total', 'grpc_server_msg_sent_total': 'grpc.server.msg_sent_total', 'grpc_server_started_total': 'grpc.server.started_total', 'mixer_adapter_dispatch_count': 'adapter.dispatch_count', 'mixer_adapter_dispatch_duration': 'adapter.dispatch_duration', 'mixer_adapter_old_dispatch_count': 'adapter.old_dispatch_count', 'mixer_adapter_old_dispatch_duration': 'adapter.old_dispatch_duration', 'mixer_config_resolve_actions': 'config.resolve_actions', 'mixer_config_resolve_count': 'config.resolve_count', 'mixer_config_resolve_duration': 'config.resolve_duration', 'mixer_config_resolve_rules': 'config.resolve_rules', # 1.1 metrics 'grpc_io_server_completed_rpcs': 'grpc_io_server.completed_rpcs', 'grpc_io_server_received_bytes_per_rpc': 'grpc_io_server.received_bytes_per_rpc', 'grpc_io_server_sent_bytes_per_rpc': 'grpc_io_server.sent_bytes_per_rpc', 'grpc_io_server_server_latency': 'grpc_io_server.server_latency', 'mixer_config_attributes_total': 'config.attributes_total', 'mixer_config_handler_configs_total': 'config.handler_configs_total', 'mixer_config_instance_configs_total': 'config.instance_configs_total', 'mixer_config_rule_configs_total': 'config.rule_configs_total', 'mixer_dispatcher_destinations_per_request': 'dispatcher.destinations_per_request', 'mixer_dispatcher_instances_per_request': 'dispatcher.instances_per_request', 'mixer_handler_daemons_total': 'handler.daemons_total', 'mixer_handler_new_handlers_total': 'handler.new_handlers_total', 'mixer_mcp_sink_reconnections': 'mcp_sink.reconnections', 'mixer_mcp_sink_request_acks_total': 'mcp_sink.request_acks_total', 'mixer_runtime_dispatches_total': 'runtime.dispatches_total', 'mixer_runtime_dispatch_duration_seconds': 'runtime.dispatch_duration_seconds', } PILOT_METRICS = { 'pilot_conflict_inbound_listener': 'conflict.inbound_listener', 'pilot_conflict_outbound_listener_http_over_current_tcp': ('conflict.outbound_listener.http_over_current_tcp'), 'pilot_conflict_outbound_listener_tcp_over_current_http': ('conflict.outbound_listener.tcp_over_current_http'), 'pilot_conflict_outbound_listener_tcp_over_current_tcp': ('conflict.outbound_listener.tcp_over_current_tcp'), 'pilot_destrule_subsets': 'destrule_subsets', 'pilot_duplicate_envoy_clusters': 'duplicate_envoy_clusters', 'pilot_eds_no_instances': 'eds_no_instances', 'pilot_endpoint_not_ready': 'endpoint_not_ready', 'pilot_invalid_out_listeners': 'invalid_out_listeners', 'pilot_mcp_sink_reconnections': 'mcp_sink.reconnections', 'pilot_mcp_sink_recv_failures_total': 'mcp_sink.recv_failures_total', 'pilot_mcp_sink_request_acks_total': 'mcp_sink.request_acks_total', 'pilot_no_ip': 'no_ip', 'pilot_proxy_convergence_time': 'proxy_convergence_time', 'pilot_rds_expired_nonce': 'rds_expired_nonce', 'pilot_services': 'services', 'pilot_total_xds_internal_errors': 'total_xds_internal_errors', 'pilot_total_xds_rejects': 'total_xds_rejects', 'pilot_virt_services': 'virt_services', 'pilot_vservice_dup_domain': 'vservice_dup_domain', 'pilot_xds': 'xds', 'pilot_xds_eds_instances': 'xds.eds_instances', 'pilot_xds_push_context_errors': 'xds.push.context_errors', 'pilot_xds_push_timeout': 'xds.push.timeout', 'pilot_xds_push_timeout_failures': 'xds.push.timeout_failures', 'pilot_xds_pushes': 'xds.pushes', 'pilot_xds_write_timeout': 'xds.write_timeout', 'pilot_xds_rds_reject': 'pilot.xds.rds_reject', 'pilot_xds_eds_reject': 'pilot.xds.eds_reject', 'pilot_xds_cds_reject': 'pilot.xds.cds_reject', 'pilot_xds_lds_reject': 'pilot.xds.lds_reject', } ISTIOD_METRICS = { # Maintain namespace compatibility from legacy components # Generic metrics 'go_gc_duration_seconds': 'go.gc_duration_seconds', 'go_goroutines': 'go.goroutines', 'go_info': 'go.info', 'go_memstats_alloc_bytes': 'go.memstats.alloc_bytes', 'go_memstats_alloc_bytes_total': 'go.memstats.alloc_bytes_total', 'go_memstats_buck_hash_sys_bytes': 'go.memstats.buck_hash_sys_bytes', 'go_memstats_frees_total': 'go.memstats.frees_total', 'go_memstats_gc_cpu_fraction': 'go.memstats.gc_cpu_fraction', 'go_memstats_gc_sys_bytes': 'go.memstats.gc_sys_bytes', 'go_memstats_heap_alloc_bytes': 'go.memstats.heap_alloc_bytes', 'go_memstats_heap_idle_bytes': 'go.memstats.heap_idle_bytes', 'go_memstats_heap_inuse_bytes': 'go.memstats.heap_inuse_bytes', 'go_memstats_heap_objects': 'go.memstats.heap_objects', 'go_memstats_heap_released_bytes': 'go.memstats.heap_released_bytes', 'go_memstats_heap_sys_bytes': 'go.memstats.heap_sys_bytes', 'go_memstats_last_gc_time_seconds': 'go.memstats.last_gc_time_seconds', 'go_memstats_lookups_total': 'go.memstats.lookups_total', 'go_memstats_mallocs_total': 'go.memstats.mallocs_total', 'go_memstats_mcache_inuse_bytes': 'go.memstats.mcache_inuse_bytes', 'go_memstats_mcache_sys_bytes': 'go.memstats.mcache_sys_bytes', 'go_memstats_mspan_inuse_bytes': 'go.memstats.mspan_inuse_bytes', 'go_memstats_mspan_sys_bytes': 'go.memstats.mspan_sys_bytes', 'go_memstats_next_gc_bytes': 'go.memstats.next_gc_bytes', 'go_memstats_other_sys_bytes': 'go.memstats.other_sys_bytes', 'go_memstats_stack_inuse_bytes': 'go.memstats.stack_inuse_bytes', 'go_memstats_stack_sys_bytes': 'go.memstats.stack_sys_bytes', 'go_memstats_sys_bytes': 'go.memstats.sys_bytes', 'go_threads': 'go.threads', 'process_cpu_seconds_total': 'process.cpu_seconds_total', 'process_max_fds': 'process.max_fds', 'process_open_fds': 'process.open_fds', 'process_resident_memory_bytes': 'process.resident_memory_bytes', 'process_start_time_seconds': 'process.start_time_seconds', 'process_virtual_memory_bytes': 'process.virtual_memory_bytes', 'pilot_conflict_inbound_listener': 'pilot.conflict.inbound_listener', 'pilot_conflict_outbound_listener_http_over_current_tcp': ( 'pilot.conflict.outbound_listener.http_over_current_tcp' ), 'pilot_conflict_outbound_listener_tcp_over_current_http': ( 'pilot.conflict.outbound_listener.tcp_over_current_http' ), 'pilot_conflict_outbound_listener_tcp_over_current_tcp': ('pilot.conflict.outbound_listener.tcp_over_current_tcp'), 'pilot_destrule_subsets': 'pilot.destrule_subsets', 'pilot_duplicate_envoy_clusters': 'pilot.duplicate_envoy_clusters', 'pilot_eds_no_instances': 'pilot.eds_no_instances', 'pilot_endpoint_not_ready': 'pilot.endpoint_not_ready', 'pilot_invalid_out_listeners': 'pilot.invalid_out_listeners', 'pilot_mcp_sink_reconnections': 'pilot.mcp_sink.reconnections', 'pilot_mcp_sink_recv_failures_total': 'pilot.mcp_sink.recv_failures_total', 'pilot_mcp_sink_request_acks_total': 'pilot.mcp_sink.request_acks_total', 'pilot_no_ip': 'pilot.no_ip', 'pilot_proxy_convergence_time': 'pilot.proxy_convergence_time', 'pilot_rds_expired_nonce': 'pilot.rds_expired_nonce', 'pilot_services': 'pilot.services', 'pilot_total_xds_internal_errors': 'pilot.total_xds_internal_errors', 'pilot_total_xds_rejects': 'pilot.total_xds_rejects', 'pilot_virt_services': 'pilot.virt_services', 'pilot_vservice_dup_domain': 'pilot.vservice_dup_domain', 'pilot_xds': 'pilot.xds', 'pilot_xds_eds_instances': 'pilot.xds.eds_instances', 'pilot_xds_push_context_errors': 'pilot.xds.push.context_errors', 'pilot_xds_push_timeout': 'pilot.xds.push.timeout', 'pilot_xds_push_timeout_failures': 'pilot.xds.push.timeout_failures', 'pilot_xds_pushes': 'pilot.xds.pushes', 'pilot_xds_write_timeout': 'pilot.xds.write_timeout', 'pilot_xds_rds_reject': 'pilot.xds.rds_reject', 'pilot_xds_eds_reject': 'pilot.xds.eds_reject', 'pilot_xds_cds_reject': 'pilot.xds.cds_reject', 'pilot_xds_lds_reject': 'pilot.xds.lds_reject', 'grpc_server_handled_total': 'grpc.server.handled_total', 'grpc_server_handling_seconds': 'grpc.server.handling_seconds', 'grpc_server_msg_received_total': 'grpc.server.msg_received_total', 'grpc_server_msg_sent_total': 'grpc.server.msg_sent_total', 'grpc_server_started_total': 'grpc.server.started_total', 'grpc_io_server_completed_rpcs': 'mixer.grpc_io_server.completed_rpcs', 'grpc_io_server_received_bytes_per_rpc': 'mixer.grpc_io_server.received_bytes_per_rpc', 'grpc_io_server_sent_bytes_per_rpc': 'mixer.grpc_io_server.sent_bytes_per_rpc', 'grpc_io_server_server_latency': 'mixer.grpc_io_server.server_latency', 'mixer_config_attributes_total': 'mixer.config.attributes_total', 'mixer_config_handler_configs_total': 'mixer.config.handler_configs_total', 'mixer_config_instance_configs_total': 'mixer.config.instance_configs_total', 'mixer_config_rule_configs_total': 'mixer.config.rule_configs_total', 'mixer_dispatcher_destinations_per_request': 'mixer.dispatcher.destinations_per_request', 'mixer_dispatcher_instances_per_request': 'mixer.dispatcher.instances_per_request', 'mixer_handler_daemons_total': 'mixer.handler.daemons_total', 'mixer_handler_new_handlers_total': 'mixer.handler.new_handlers_total', 'mixer_mcp_sink_reconnections': 'mixer.mcp_sink.reconnections', 'mixer_mcp_sink_request_acks_total': 'mixer.mcp_sink.request_acks_total', 'mixer_runtime_dispatches_total': 'mixer.runtime.dispatches_total', 'mixer_runtime_dispatch_duration_seconds': 'mixer.runtime.dispatch_duration_seconds', 'endpoint_no_pod': 'galley.endpoint_no_pod', 'galley_mcp_source_clients_total': 'galley.mcp_source.clients_total', 'galley_runtime_processor_event_span_duration_milliseconds': ( 'galley.runtime_processor.event_span_duration_milliseconds' ), 'galley_runtime_processor_events_processed_total': 'galley.runtime_processor.events_processed_total', 'galley_runtime_processor_snapshot_events_total': 'galley.runtime_processor.snapshot_events_total', 'galley_runtime_processor_snapshot_lifetime_duration_milliseconds': ( 'galley.runtime_processor.snapshot_lifetime_duration_milliseconds' ), 'galley_runtime_processor_snapshots_published_total': ('galley.runtime_processor.snapshots_published_total'), 'galley_runtime_state_type_instances_total': 'galley.runtime_state_type_instances_total', 'galley_runtime_strategy_on_change_total': 'galley.runtime_strategy.on_change_total', 'galley_runtime_strategy_timer_max_time_reached_total': ('galley.runtime_strategy.timer_max_time_reached_total'), 'galley_runtime_strategy_timer_quiesce_reached_total': 'galley.runtime_strategy.quiesce_reached_total', 'galley_runtime_strategy_timer_resets_total': 'galley.runtime_strategy.timer_resets_total', 'galley_source_kube_dynamic_converter_success_total': ('galley.source_kube.dynamic_converter_success_total'), 'galley_source_kube_event_success_total': 'galley.source_kube.event_success_total', 'galley_validation_config_load': 'galley.validation.config_load', 'galley_validation_config_updates': 'galley.validation.config_update', 'citadel_secret_controller_csr_err_count': 'citadel.secret_controller.csr_err_count', 'citadel_secret_controller_secret_deleted_cert_count': ('citadel.secret_controller.secret_deleted_cert_count'), 'citadel_secret_controller_svc_acc_created_cert_count': ('citadel.secret_controller.svc_acc_created_cert_count'), 'citadel_secret_controller_svc_acc_deleted_cert_count': ('citadel.secret_controller.svc_acc_deleted_cert_count'), 'citadel_server_authentication_failure_count': 'citadel.server.authentication_failure_count', 'citadel_server_citadel_root_cert_expiry_timestamp': ('citadel.server.citadel_root_cert_expiry_timestamp'), 'citadel_server_csr_count': 'citadel.server.csr_count', 'citadel_server_csr_parsing_err_count': 'citadel.server.csr_parsing_err_count', 'citadel_server_id_extraction_err_count': 'citadel.server.id_extraction_err_count', 'citadel_server_success_cert_issuance_count': 'citadel.server.success_cert_issuance_count', # These metrics supported Istio 1.5 'galley_validation_config_update_error': 'galley.validation.config_update_error', 'citadel_server_root_cert_expiry_timestamp': 'citadel.server.root_cert_expiry_timestamp', 'galley_validation_passed': 'galley.validation.passed', 'galley_validation_failed': 'galley.validation.failed', 'pilot_conflict_outbound_listener_http_over_https': 'pilot.conflict.outbound_listener.http_over_https', 'pilot_inbound_updates': 'pilot.inbound_updates', 'pilot_k8s_cfg_events': 'pilot.k8s.cfg_events', 'pilot_k8s_reg_events': 'pilot.k8s.reg_events', 'pilot_proxy_queue_time': 'pilot.proxy_queue_time', 'pilot_push_triggers': 'pilot.push.triggers', 'pilot_xds_eds_all_locality_endpoints': 'pilot.xds.eds_all_locality_endpoints', 'pilot_xds_push_time': 'pilot.xds.push.time', 'process_virtual_memory_max_bytes': 'process.virtual_memory_max_bytes', 'sidecar_injection_requests_total': 'sidecar_injection.requests_total', 'sidecar_injection_success_total': 'sidecar_injection.success_total', 'sidecar_injection_failure_total': 'sidecar_injection.failure_total', 'sidecar_injection_skip_total': 'sidecar_injection.skip_total', }
generic_metrics = {'go_gc_duration_seconds': 'go.gc_duration_seconds', 'go_goroutines': 'go.goroutines', 'go_info': 'go.info', 'go_memstats_alloc_bytes': 'go.memstats.alloc_bytes', 'go_memstats_alloc_bytes_total': 'go.memstats.alloc_bytes_total', 'go_memstats_buck_hash_sys_bytes': 'go.memstats.buck_hash_sys_bytes', 'go_memstats_frees_total': 'go.memstats.frees_total', 'go_memstats_gc_cpu_fraction': 'go.memstats.gc_cpu_fraction', 'go_memstats_gc_sys_bytes': 'go.memstats.gc_sys_bytes', 'go_memstats_heap_alloc_bytes': 'go.memstats.heap_alloc_bytes', 'go_memstats_heap_idle_bytes': 'go.memstats.heap_idle_bytes', 'go_memstats_heap_inuse_bytes': 'go.memstats.heap_inuse_bytes', 'go_memstats_heap_objects': 'go.memstats.heap_objects', 'go_memstats_heap_released_bytes': 'go.memstats.heap_released_bytes', 'go_memstats_heap_sys_bytes': 'go.memstats.heap_sys_bytes', 'go_memstats_last_gc_time_seconds': 'go.memstats.last_gc_time_seconds', 'go_memstats_lookups_total': 'go.memstats.lookups_total', 'go_memstats_mallocs_total': 'go.memstats.mallocs_total', 'go_memstats_mcache_inuse_bytes': 'go.memstats.mcache_inuse_bytes', 'go_memstats_mcache_sys_bytes': 'go.memstats.mcache_sys_bytes', 'go_memstats_mspan_inuse_bytes': 'go.memstats.mspan_inuse_bytes', 'go_memstats_mspan_sys_bytes': 'go.memstats.mspan_sys_bytes', 'go_memstats_next_gc_bytes': 'go.memstats.next_gc_bytes', 'go_memstats_other_sys_bytes': 'go.memstats.other_sys_bytes', 'go_memstats_stack_inuse_bytes': 'go.memstats.stack_inuse_bytes', 'go_memstats_stack_sys_bytes': 'go.memstats.stack_sys_bytes', 'go_memstats_sys_bytes': 'go.memstats.sys_bytes', 'go_threads': 'go.threads', 'process_cpu_seconds_total': 'process.cpu_seconds_total', 'process_max_fds': 'process.max_fds', 'process_open_fds': 'process.open_fds', 'process_resident_memory_bytes': 'process.resident_memory_bytes', 'process_start_time_seconds': 'process.start_time_seconds', 'process_virtual_memory_bytes': 'process.virtual_memory_bytes'} citadel_metrics = {'citadel_secret_controller_csr_err_count': 'secret_controller.csr_err_count', 'citadel_secret_controller_secret_deleted_cert_count': 'secret_controller.secret_deleted_cert_count', 'citadel_secret_controller_svc_acc_created_cert_count': 'secret_controller.svc_acc_created_cert_count', 'citadel_secret_controller_svc_acc_deleted_cert_count': 'secret_controller.svc_acc_deleted_cert_count', 'citadel_server_authentication_failure_count': 'server.authentication_failure_count', 'citadel_server_citadel_root_cert_expiry_timestamp': 'server.citadel_root_cert_expiry_timestamp', 'citadel_server_csr_count': 'server.csr_count', 'citadel_server_csr_parsing_err_count': 'server.csr_parsing_err_count', 'citadel_server_id_extraction_err_count': 'server.id_extraction_err_count', 'citadel_server_success_cert_issuance_count': 'server.success_cert_issuance_count', 'citadel_server_root_cert_expiry_timestamp': 'server.root_cert_expiry_timestamp'} galley_metrics = {'endpoint_no_pod': 'endpoint_no_pod', 'galley_mcp_source_clients_total': 'mcp_source.clients_total', 'galley_runtime_processor_event_span_duration_milliseconds': 'runtime_processor.event_span_duration_milliseconds', 'galley_runtime_processor_events_processed_total': 'runtime_processor.events_processed_total', 'galley_runtime_processor_snapshot_events_total': 'runtime_processor.snapshot_events_total', 'galley_runtime_processor_snapshot_lifetime_duration_milliseconds': 'runtime_processor.snapshot_lifetime_duration_milliseconds', 'galley_runtime_processor_snapshots_published_total': 'runtime_processor.snapshots_published_total', 'galley_runtime_state_type_instances_total': 'runtime_state_type_instances_total', 'galley_runtime_strategy_on_change_total': 'runtime_strategy.on_change_total', 'galley_runtime_strategy_timer_max_time_reached_total': 'runtime_strategy.timer_max_time_reached_total', 'galley_runtime_strategy_timer_quiesce_reached_total': 'runtime_strategy.quiesce_reached_total', 'galley_runtime_strategy_timer_resets_total': 'runtime_strategy.timer_resets_total', 'galley_source_kube_dynamic_converter_success_total': 'source_kube.dynamic_converter_success_total', 'galley_source_kube_event_success_total': 'source_kube.event_success_total', 'galley_validation_cert_key_updates': 'validation.cert_key_updates', 'galley_validation_config_load': 'validation.config_load', 'galley_validation_config_updates': 'validation.config_update', 'galley_validation_passed': 'validation.passed', 'galley_validation_config_update_error': 'validation.config_update_error'} mesh_metrics = {'istio_request_duration_milliseconds': 'request.duration.milliseconds', 'istio_requests_total': 'request.count', 'istio_request_duration_seconds': 'request.duration', 'istio_request_bytes': 'request.size', 'istio_response_bytes': 'response.size', 'istio_request_count': 'request.count', 'istio_request_duration': 'request.duration', 'istio_request_size': 'request.size', 'istio_response_size': 'response.size', 'istio_tcp_connections_closed_total': 'tcp.connections_closed.total', 'istio_tcp_connections_opened_total': 'tcp.connections_opened.total', 'istio_tcp_received_bytes_total': 'tcp.received_bytes.total', 'istio_tcp_sent_bytes_total': 'tcp.send_bytes.total'} mixer_metrics = {'grpc_server_handled_total': 'grpc.server.handled_total', 'grpc_server_handling_seconds': 'grpc.server.handling_seconds', 'grpc_server_msg_received_total': 'grpc.server.msg_received_total', 'grpc_server_msg_sent_total': 'grpc.server.msg_sent_total', 'grpc_server_started_total': 'grpc.server.started_total', 'mixer_adapter_dispatch_count': 'adapter.dispatch_count', 'mixer_adapter_dispatch_duration': 'adapter.dispatch_duration', 'mixer_adapter_old_dispatch_count': 'adapter.old_dispatch_count', 'mixer_adapter_old_dispatch_duration': 'adapter.old_dispatch_duration', 'mixer_config_resolve_actions': 'config.resolve_actions', 'mixer_config_resolve_count': 'config.resolve_count', 'mixer_config_resolve_duration': 'config.resolve_duration', 'mixer_config_resolve_rules': 'config.resolve_rules', 'grpc_io_server_completed_rpcs': 'grpc_io_server.completed_rpcs', 'grpc_io_server_received_bytes_per_rpc': 'grpc_io_server.received_bytes_per_rpc', 'grpc_io_server_sent_bytes_per_rpc': 'grpc_io_server.sent_bytes_per_rpc', 'grpc_io_server_server_latency': 'grpc_io_server.server_latency', 'mixer_config_attributes_total': 'config.attributes_total', 'mixer_config_handler_configs_total': 'config.handler_configs_total', 'mixer_config_instance_configs_total': 'config.instance_configs_total', 'mixer_config_rule_configs_total': 'config.rule_configs_total', 'mixer_dispatcher_destinations_per_request': 'dispatcher.destinations_per_request', 'mixer_dispatcher_instances_per_request': 'dispatcher.instances_per_request', 'mixer_handler_daemons_total': 'handler.daemons_total', 'mixer_handler_new_handlers_total': 'handler.new_handlers_total', 'mixer_mcp_sink_reconnections': 'mcp_sink.reconnections', 'mixer_mcp_sink_request_acks_total': 'mcp_sink.request_acks_total', 'mixer_runtime_dispatches_total': 'runtime.dispatches_total', 'mixer_runtime_dispatch_duration_seconds': 'runtime.dispatch_duration_seconds'} pilot_metrics = {'pilot_conflict_inbound_listener': 'conflict.inbound_listener', 'pilot_conflict_outbound_listener_http_over_current_tcp': 'conflict.outbound_listener.http_over_current_tcp', 'pilot_conflict_outbound_listener_tcp_over_current_http': 'conflict.outbound_listener.tcp_over_current_http', 'pilot_conflict_outbound_listener_tcp_over_current_tcp': 'conflict.outbound_listener.tcp_over_current_tcp', 'pilot_destrule_subsets': 'destrule_subsets', 'pilot_duplicate_envoy_clusters': 'duplicate_envoy_clusters', 'pilot_eds_no_instances': 'eds_no_instances', 'pilot_endpoint_not_ready': 'endpoint_not_ready', 'pilot_invalid_out_listeners': 'invalid_out_listeners', 'pilot_mcp_sink_reconnections': 'mcp_sink.reconnections', 'pilot_mcp_sink_recv_failures_total': 'mcp_sink.recv_failures_total', 'pilot_mcp_sink_request_acks_total': 'mcp_sink.request_acks_total', 'pilot_no_ip': 'no_ip', 'pilot_proxy_convergence_time': 'proxy_convergence_time', 'pilot_rds_expired_nonce': 'rds_expired_nonce', 'pilot_services': 'services', 'pilot_total_xds_internal_errors': 'total_xds_internal_errors', 'pilot_total_xds_rejects': 'total_xds_rejects', 'pilot_virt_services': 'virt_services', 'pilot_vservice_dup_domain': 'vservice_dup_domain', 'pilot_xds': 'xds', 'pilot_xds_eds_instances': 'xds.eds_instances', 'pilot_xds_push_context_errors': 'xds.push.context_errors', 'pilot_xds_push_timeout': 'xds.push.timeout', 'pilot_xds_push_timeout_failures': 'xds.push.timeout_failures', 'pilot_xds_pushes': 'xds.pushes', 'pilot_xds_write_timeout': 'xds.write_timeout', 'pilot_xds_rds_reject': 'pilot.xds.rds_reject', 'pilot_xds_eds_reject': 'pilot.xds.eds_reject', 'pilot_xds_cds_reject': 'pilot.xds.cds_reject', 'pilot_xds_lds_reject': 'pilot.xds.lds_reject'} istiod_metrics = {'go_gc_duration_seconds': 'go.gc_duration_seconds', 'go_goroutines': 'go.goroutines', 'go_info': 'go.info', 'go_memstats_alloc_bytes': 'go.memstats.alloc_bytes', 'go_memstats_alloc_bytes_total': 'go.memstats.alloc_bytes_total', 'go_memstats_buck_hash_sys_bytes': 'go.memstats.buck_hash_sys_bytes', 'go_memstats_frees_total': 'go.memstats.frees_total', 'go_memstats_gc_cpu_fraction': 'go.memstats.gc_cpu_fraction', 'go_memstats_gc_sys_bytes': 'go.memstats.gc_sys_bytes', 'go_memstats_heap_alloc_bytes': 'go.memstats.heap_alloc_bytes', 'go_memstats_heap_idle_bytes': 'go.memstats.heap_idle_bytes', 'go_memstats_heap_inuse_bytes': 'go.memstats.heap_inuse_bytes', 'go_memstats_heap_objects': 'go.memstats.heap_objects', 'go_memstats_heap_released_bytes': 'go.memstats.heap_released_bytes', 'go_memstats_heap_sys_bytes': 'go.memstats.heap_sys_bytes', 'go_memstats_last_gc_time_seconds': 'go.memstats.last_gc_time_seconds', 'go_memstats_lookups_total': 'go.memstats.lookups_total', 'go_memstats_mallocs_total': 'go.memstats.mallocs_total', 'go_memstats_mcache_inuse_bytes': 'go.memstats.mcache_inuse_bytes', 'go_memstats_mcache_sys_bytes': 'go.memstats.mcache_sys_bytes', 'go_memstats_mspan_inuse_bytes': 'go.memstats.mspan_inuse_bytes', 'go_memstats_mspan_sys_bytes': 'go.memstats.mspan_sys_bytes', 'go_memstats_next_gc_bytes': 'go.memstats.next_gc_bytes', 'go_memstats_other_sys_bytes': 'go.memstats.other_sys_bytes', 'go_memstats_stack_inuse_bytes': 'go.memstats.stack_inuse_bytes', 'go_memstats_stack_sys_bytes': 'go.memstats.stack_sys_bytes', 'go_memstats_sys_bytes': 'go.memstats.sys_bytes', 'go_threads': 'go.threads', 'process_cpu_seconds_total': 'process.cpu_seconds_total', 'process_max_fds': 'process.max_fds', 'process_open_fds': 'process.open_fds', 'process_resident_memory_bytes': 'process.resident_memory_bytes', 'process_start_time_seconds': 'process.start_time_seconds', 'process_virtual_memory_bytes': 'process.virtual_memory_bytes', 'pilot_conflict_inbound_listener': 'pilot.conflict.inbound_listener', 'pilot_conflict_outbound_listener_http_over_current_tcp': 'pilot.conflict.outbound_listener.http_over_current_tcp', 'pilot_conflict_outbound_listener_tcp_over_current_http': 'pilot.conflict.outbound_listener.tcp_over_current_http', 'pilot_conflict_outbound_listener_tcp_over_current_tcp': 'pilot.conflict.outbound_listener.tcp_over_current_tcp', 'pilot_destrule_subsets': 'pilot.destrule_subsets', 'pilot_duplicate_envoy_clusters': 'pilot.duplicate_envoy_clusters', 'pilot_eds_no_instances': 'pilot.eds_no_instances', 'pilot_endpoint_not_ready': 'pilot.endpoint_not_ready', 'pilot_invalid_out_listeners': 'pilot.invalid_out_listeners', 'pilot_mcp_sink_reconnections': 'pilot.mcp_sink.reconnections', 'pilot_mcp_sink_recv_failures_total': 'pilot.mcp_sink.recv_failures_total', 'pilot_mcp_sink_request_acks_total': 'pilot.mcp_sink.request_acks_total', 'pilot_no_ip': 'pilot.no_ip', 'pilot_proxy_convergence_time': 'pilot.proxy_convergence_time', 'pilot_rds_expired_nonce': 'pilot.rds_expired_nonce', 'pilot_services': 'pilot.services', 'pilot_total_xds_internal_errors': 'pilot.total_xds_internal_errors', 'pilot_total_xds_rejects': 'pilot.total_xds_rejects', 'pilot_virt_services': 'pilot.virt_services', 'pilot_vservice_dup_domain': 'pilot.vservice_dup_domain', 'pilot_xds': 'pilot.xds', 'pilot_xds_eds_instances': 'pilot.xds.eds_instances', 'pilot_xds_push_context_errors': 'pilot.xds.push.context_errors', 'pilot_xds_push_timeout': 'pilot.xds.push.timeout', 'pilot_xds_push_timeout_failures': 'pilot.xds.push.timeout_failures', 'pilot_xds_pushes': 'pilot.xds.pushes', 'pilot_xds_write_timeout': 'pilot.xds.write_timeout', 'pilot_xds_rds_reject': 'pilot.xds.rds_reject', 'pilot_xds_eds_reject': 'pilot.xds.eds_reject', 'pilot_xds_cds_reject': 'pilot.xds.cds_reject', 'pilot_xds_lds_reject': 'pilot.xds.lds_reject', 'grpc_server_handled_total': 'grpc.server.handled_total', 'grpc_server_handling_seconds': 'grpc.server.handling_seconds', 'grpc_server_msg_received_total': 'grpc.server.msg_received_total', 'grpc_server_msg_sent_total': 'grpc.server.msg_sent_total', 'grpc_server_started_total': 'grpc.server.started_total', 'grpc_io_server_completed_rpcs': 'mixer.grpc_io_server.completed_rpcs', 'grpc_io_server_received_bytes_per_rpc': 'mixer.grpc_io_server.received_bytes_per_rpc', 'grpc_io_server_sent_bytes_per_rpc': 'mixer.grpc_io_server.sent_bytes_per_rpc', 'grpc_io_server_server_latency': 'mixer.grpc_io_server.server_latency', 'mixer_config_attributes_total': 'mixer.config.attributes_total', 'mixer_config_handler_configs_total': 'mixer.config.handler_configs_total', 'mixer_config_instance_configs_total': 'mixer.config.instance_configs_total', 'mixer_config_rule_configs_total': 'mixer.config.rule_configs_total', 'mixer_dispatcher_destinations_per_request': 'mixer.dispatcher.destinations_per_request', 'mixer_dispatcher_instances_per_request': 'mixer.dispatcher.instances_per_request', 'mixer_handler_daemons_total': 'mixer.handler.daemons_total', 'mixer_handler_new_handlers_total': 'mixer.handler.new_handlers_total', 'mixer_mcp_sink_reconnections': 'mixer.mcp_sink.reconnections', 'mixer_mcp_sink_request_acks_total': 'mixer.mcp_sink.request_acks_total', 'mixer_runtime_dispatches_total': 'mixer.runtime.dispatches_total', 'mixer_runtime_dispatch_duration_seconds': 'mixer.runtime.dispatch_duration_seconds', 'endpoint_no_pod': 'galley.endpoint_no_pod', 'galley_mcp_source_clients_total': 'galley.mcp_source.clients_total', 'galley_runtime_processor_event_span_duration_milliseconds': 'galley.runtime_processor.event_span_duration_milliseconds', 'galley_runtime_processor_events_processed_total': 'galley.runtime_processor.events_processed_total', 'galley_runtime_processor_snapshot_events_total': 'galley.runtime_processor.snapshot_events_total', 'galley_runtime_processor_snapshot_lifetime_duration_milliseconds': 'galley.runtime_processor.snapshot_lifetime_duration_milliseconds', 'galley_runtime_processor_snapshots_published_total': 'galley.runtime_processor.snapshots_published_total', 'galley_runtime_state_type_instances_total': 'galley.runtime_state_type_instances_total', 'galley_runtime_strategy_on_change_total': 'galley.runtime_strategy.on_change_total', 'galley_runtime_strategy_timer_max_time_reached_total': 'galley.runtime_strategy.timer_max_time_reached_total', 'galley_runtime_strategy_timer_quiesce_reached_total': 'galley.runtime_strategy.quiesce_reached_total', 'galley_runtime_strategy_timer_resets_total': 'galley.runtime_strategy.timer_resets_total', 'galley_source_kube_dynamic_converter_success_total': 'galley.source_kube.dynamic_converter_success_total', 'galley_source_kube_event_success_total': 'galley.source_kube.event_success_total', 'galley_validation_config_load': 'galley.validation.config_load', 'galley_validation_config_updates': 'galley.validation.config_update', 'citadel_secret_controller_csr_err_count': 'citadel.secret_controller.csr_err_count', 'citadel_secret_controller_secret_deleted_cert_count': 'citadel.secret_controller.secret_deleted_cert_count', 'citadel_secret_controller_svc_acc_created_cert_count': 'citadel.secret_controller.svc_acc_created_cert_count', 'citadel_secret_controller_svc_acc_deleted_cert_count': 'citadel.secret_controller.svc_acc_deleted_cert_count', 'citadel_server_authentication_failure_count': 'citadel.server.authentication_failure_count', 'citadel_server_citadel_root_cert_expiry_timestamp': 'citadel.server.citadel_root_cert_expiry_timestamp', 'citadel_server_csr_count': 'citadel.server.csr_count', 'citadel_server_csr_parsing_err_count': 'citadel.server.csr_parsing_err_count', 'citadel_server_id_extraction_err_count': 'citadel.server.id_extraction_err_count', 'citadel_server_success_cert_issuance_count': 'citadel.server.success_cert_issuance_count', 'galley_validation_config_update_error': 'galley.validation.config_update_error', 'citadel_server_root_cert_expiry_timestamp': 'citadel.server.root_cert_expiry_timestamp', 'galley_validation_passed': 'galley.validation.passed', 'galley_validation_failed': 'galley.validation.failed', 'pilot_conflict_outbound_listener_http_over_https': 'pilot.conflict.outbound_listener.http_over_https', 'pilot_inbound_updates': 'pilot.inbound_updates', 'pilot_k8s_cfg_events': 'pilot.k8s.cfg_events', 'pilot_k8s_reg_events': 'pilot.k8s.reg_events', 'pilot_proxy_queue_time': 'pilot.proxy_queue_time', 'pilot_push_triggers': 'pilot.push.triggers', 'pilot_xds_eds_all_locality_endpoints': 'pilot.xds.eds_all_locality_endpoints', 'pilot_xds_push_time': 'pilot.xds.push.time', 'process_virtual_memory_max_bytes': 'process.virtual_memory_max_bytes', 'sidecar_injection_requests_total': 'sidecar_injection.requests_total', 'sidecar_injection_success_total': 'sidecar_injection.success_total', 'sidecar_injection_failure_total': 'sidecar_injection.failure_total', 'sidecar_injection_skip_total': 'sidecar_injection.skip_total'}
N, M = list(map(int, input().split())) a_list = [[0 for _ in range(M)] for _ in range(N)] for i in range(N): a_list[i] = list(map(int, input().split())) ans = 0 for t1 in range(M-1): for t2 in range(t1+1, M): score = 0 for i in range(N): score += max(a_list[i][t1], a_list[i][t2]) ans = max(ans, score) print(ans)
(n, m) = list(map(int, input().split())) a_list = [[0 for _ in range(M)] for _ in range(N)] for i in range(N): a_list[i] = list(map(int, input().split())) ans = 0 for t1 in range(M - 1): for t2 in range(t1 + 1, M): score = 0 for i in range(N): score += max(a_list[i][t1], a_list[i][t2]) ans = max(ans, score) print(ans)
a = int(input()) b = int(input()) c = int(input()) max = a if max < b: max = b if max < c: max = c elif max < c: max = c print(max)
a = int(input()) b = int(input()) c = int(input()) max = a if max < b: max = b if max < c: max = c elif max < c: max = c print(max)
students = { "males" : ["joseph", "stephen", "theophilus"], "females" : ["kara", "sharon", "lois"] } print(students["males"]) print(students["females"])
students = {'males': ['joseph', 'stephen', 'theophilus'], 'females': ['kara', 'sharon', 'lois']} print(students['males']) print(students['females'])
def hourglassSum(arr): dic = {} top = 0 mid = 1 bot = 2 top_one = 0 mid_one = 1 bot_one = 0 num = 0 max = float('-inf') while bot < len(arr): while bot_one < len(arr[-1])-2: dic[num] = sum(arr[top][top_one : top_one + 3]) + arr[mid][mid_one] + sum(arr[bot][bot_one : bot_one + 3]) if dic[num] > max: max = dic[num] num += 1 top_one += 1 mid_one += 1 bot_one += 1 top += 1 mid += 1 bot += 1 top_one = 0 mid_one = 1 bot_one = 0 return max
def hourglass_sum(arr): dic = {} top = 0 mid = 1 bot = 2 top_one = 0 mid_one = 1 bot_one = 0 num = 0 max = float('-inf') while bot < len(arr): while bot_one < len(arr[-1]) - 2: dic[num] = sum(arr[top][top_one:top_one + 3]) + arr[mid][mid_one] + sum(arr[bot][bot_one:bot_one + 3]) if dic[num] > max: max = dic[num] num += 1 top_one += 1 mid_one += 1 bot_one += 1 top += 1 mid += 1 bot += 1 top_one = 0 mid_one = 1 bot_one = 0 return max
''' Various utility methods for building html attributes. ''' def styles(*styles): '''Join multiple "conditional styles" and return a single style attribute''' return '; '.join(filter(None, styles)) def classes(*classes): '''Join multiple "conditional classes" and return a single class attribute''' return ' '.join(filter(None, classes))
""" Various utility methods for building html attributes. """ def styles(*styles): """Join multiple "conditional styles" and return a single style attribute""" return '; '.join(filter(None, styles)) def classes(*classes): """Join multiple "conditional classes" and return a single class attribute""" return ' '.join(filter(None, classes))
class Solution: def smallestSubsequence(self, s: str) -> str: stack, seen, lastOccurence = deque([]), set(), {char: index for index, char in enumerate(s)} for index, char in enumerate(s): if char not in seen: while stack and char < stack[-1] and index < lastOccurence[stack[-1]]: seen.discard(stack.pop()) seen.add(char) stack.append(char) return ''.join(stack)
class Solution: def smallest_subsequence(self, s: str) -> str: (stack, seen, last_occurence) = (deque([]), set(), {char: index for (index, char) in enumerate(s)}) for (index, char) in enumerate(s): if char not in seen: while stack and char < stack[-1] and (index < lastOccurence[stack[-1]]): seen.discard(stack.pop()) seen.add(char) stack.append(char) return ''.join(stack)
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.339469, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.469322, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.86907, '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.747295, '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': 1.29404, '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.742171, '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': 2.78351, '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.452115, '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': 9.11463, '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.353107, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.02709, '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.321529, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.200347, '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.674637, 'Execution Unit/Register Files/Runtime Dynamic': 0.227437, '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.869948, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.89569, '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': 5.78133, '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.00190701, '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.00190701, '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.0016663, '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.000647952, '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.00287801, '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.00835833, '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.0180948, '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.192599, '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.408587, '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.654153, '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': 1.28179, '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.107557, 'L2/Runtime Dynamic': 0.0240835, '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': 6.07328, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.33608, '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.156461, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.156461, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 6.81514, 'Load Store Unit/Runtime Dynamic': 3.26415, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.385807, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.771615, '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.136924, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.138523, '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.0670319, '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.795209, 'Memory Management Unit/Runtime Dynamic': 0.205554, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.363, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.23191, '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.0530365, '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.363154, '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': 1.6481, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.205, '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.0272949, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.224127, '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.146891, '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.182022, '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.293594, '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.148196, '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.623812, '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.18566, '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.44528, '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.0277509, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0076348, '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.0654488, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.056464, '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.0931997, 'Execution Unit/Register Files/Runtime Dynamic': 0.0640988, '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.144707, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.386727, '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.70414, '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.00201186, '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.00201186, '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.00177066, '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.000695482, '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.00081111, '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.00660548, '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.0186343, '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.0542803, '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.4527, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.135931, '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.18436, '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.83878, 'Instruction Fetch Unit/Runtime Dynamic': 0.399811, '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.087312, 'L2/Runtime Dynamic': 0.0225642, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.0, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.868286, '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.0570332, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0570332, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.26932, 'Load Store Unit/Runtime Dynamic': 1.20659, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.140634, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.281268, '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.0499115, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0511594, '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.214676, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0224716, '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.456524, 'Memory Management Unit/Runtime Dynamic': 0.0736311, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.6867, '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.0730004, '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.00910071, '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.0906376, '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.172739, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.57947, '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.017421, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.216372, '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.0958656, '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.21304, '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.343625, '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.173451, '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.730116, '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.228957, '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.43883, '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.0181111, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00893585, '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.0710667, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0660861, '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.0891778, 'Execution Unit/Register Files/Runtime Dynamic': 0.0750219, '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.154074, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.408842, '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.83573, '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.00287308, '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.00287308, '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.0025297, '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.000994196, '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.000949332, '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.00922519, '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.0265731, '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.0635302, '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': 4.04107, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.137871, '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.215777, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.4557, 'Instruction Fetch Unit/Runtime Dynamic': 0.452977, '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.0610716, 'L2/Runtime Dynamic': 0.015899, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.07716, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.89597, '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.0595297, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0595298, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.35827, 'Load Store Unit/Runtime Dynamic': 1.24908, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.14679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.293581, '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.0520963, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0529689, '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.251259, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0227343, '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.49686, 'Memory Management Unit/Runtime Dynamic': 0.0757032, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 18.4002, '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.0476425, '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.0101916, '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.106236, '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.16407, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.79346, '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.0365397, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.231388, '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.187354, '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.154054, '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.248484, '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.125426, '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.527964, '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.14747, '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.44723, '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.0353952, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00646173, '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.0608119, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0477884, '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.0962071, 'Execution Unit/Register Files/Runtime Dynamic': 0.0542501, '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.137251, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.352115, '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.57109, '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.00126933, '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.00126933, '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.00112434, '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.000445509, '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.000686484, '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.00434948, '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.0115001, '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.0459402, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.92219, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.111018, '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.156034, '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.28253, 'Instruction Fetch Unit/Runtime Dynamic': 0.328841, '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.0632142, 'L2/Runtime Dynamic': 0.015954, '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.70282, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.723928, '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.0474188, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0474187, '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.92674, 'Load Store Unit/Runtime Dynamic': 1.0052, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.116927, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.233853, '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.0414976, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.042427, '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.181691, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0182592, '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.409086, 'Memory Management Unit/Runtime Dynamic': 0.0606862, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.7183, '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.0931091, '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.00808362, '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.0766694, '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.177862, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.15964, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 3.533383256030436, 'Runtime Dynamic': 3.533383256030436, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.188067, 'Runtime Dynamic': 0.0976171, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 83.3562, 'Peak Power': 116.468, 'Runtime Dynamic': 22.8352, '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': 83.1681, 'Total Cores/Runtime Dynamic': 22.7376, '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.188067, 'Total L3s/Runtime Dynamic': 0.0976171, '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.339469, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.469322, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.86907, '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.747295, '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': 1.29404, '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.742171, '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': 2.78351, '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.452115, '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': 9.11463, '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.353107, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.02709, '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.321529, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.200347, '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.674637, 'Execution Unit/Register Files/Runtime Dynamic': 0.227437, '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.869948, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.89569, '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': 5.78133, '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.00190701, '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.00190701, '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.0016663, '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.000647952, '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.00287801, '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.00835833, '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.0180948, '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.192599, '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.408587, '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.654153, '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': 1.28179, '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.107557, 'L2/Runtime Dynamic': 0.0240835, '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': 6.07328, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.33608, '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.156461, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.156461, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 6.81514, 'Load Store Unit/Runtime Dynamic': 3.26415, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.385807, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.771615, '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.136924, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.138523, '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.0670319, '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.795209, 'Memory Management Unit/Runtime Dynamic': 0.205554, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.363, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.23191, '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.0530365, '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.363154, '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': 1.6481, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.205, '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.0272949, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.224127, '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.146891, '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.182022, '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.293594, '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.148196, '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.623812, '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.18566, '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.44528, '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.0277509, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0076348, '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.0654488, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.056464, '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.0931997, 'Execution Unit/Register Files/Runtime Dynamic': 0.0640988, '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.144707, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.386727, '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.70414, '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.00201186, '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.00201186, '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.00177066, '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.000695482, '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.00081111, '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.00660548, '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.0186343, '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.0542803, '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.4527, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.135931, '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.18436, '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.83878, 'Instruction Fetch Unit/Runtime Dynamic': 0.399811, '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.087312, 'L2/Runtime Dynamic': 0.0225642, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.0, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.868286, '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.0570332, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0570332, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.26932, 'Load Store Unit/Runtime Dynamic': 1.20659, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.140634, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.281268, '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.0499115, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0511594, '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.214676, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0224716, '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.456524, 'Memory Management Unit/Runtime Dynamic': 0.0736311, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.6867, '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.0730004, '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.00910071, '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.0906376, '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.172739, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.57947, '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.017421, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.216372, '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.0958656, '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.21304, '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.343625, '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.173451, '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.730116, '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.228957, '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.43883, '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.0181111, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00893585, '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.0710667, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0660861, '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.0891778, 'Execution Unit/Register Files/Runtime Dynamic': 0.0750219, '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.154074, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.408842, '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.83573, '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.00287308, '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.00287308, '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.0025297, '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.000994196, '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.000949332, '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.00922519, '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.0265731, '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.0635302, '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': 4.04107, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.137871, '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.215777, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.4557, 'Instruction Fetch Unit/Runtime Dynamic': 0.452977, '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.0610716, 'L2/Runtime Dynamic': 0.015899, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.07716, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.89597, '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.0595297, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0595298, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.35827, 'Load Store Unit/Runtime Dynamic': 1.24908, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.14679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.293581, '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.0520963, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0529689, '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.251259, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0227343, '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.49686, 'Memory Management Unit/Runtime Dynamic': 0.0757032, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 18.4002, '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.0476425, '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.0101916, '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.106236, '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.16407, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.79346, '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.0365397, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.231388, '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.187354, '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.154054, '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.248484, '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.125426, '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.527964, '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.14747, '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.44723, '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.0353952, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00646173, '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.0608119, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0477884, '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.0962071, 'Execution Unit/Register Files/Runtime Dynamic': 0.0542501, '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.137251, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.352115, '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.57109, '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.00126933, '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.00126933, '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.00112434, '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.000445509, '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.000686484, '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.00434948, '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.0115001, '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.0459402, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.92219, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.111018, '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.156034, '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.28253, 'Instruction Fetch Unit/Runtime Dynamic': 0.328841, '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.0632142, 'L2/Runtime Dynamic': 0.015954, '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.70282, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.723928, '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.0474188, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0474187, '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.92674, 'Load Store Unit/Runtime Dynamic': 1.0052, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.116927, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.233853, '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.0414976, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.042427, '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.181691, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0182592, '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.409086, 'Memory Management Unit/Runtime Dynamic': 0.0606862, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.7183, '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.0931091, '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.00808362, '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.0766694, '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.177862, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.15964, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 3.533383256030436, 'Runtime Dynamic': 3.533383256030436, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.188067, 'Runtime Dynamic': 0.0976171, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 83.3562, 'Peak Power': 116.468, 'Runtime Dynamic': 22.8352, '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': 83.1681, 'Total Cores/Runtime Dynamic': 22.7376, '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.188067, 'Total L3s/Runtime Dynamic': 0.0976171, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
def study_template(p): study_regex = r"Study" for template in p.filter_templates(matches=study_regex): if template.name.strip() == study_regex: return template return None
def study_template(p): study_regex = 'Study' for template in p.filter_templates(matches=study_regex): if template.name.strip() == study_regex: return template return None
''' *Book Record Management in Python* With this project a used can Add/Delete/Update/View the book records the project is implement in python Inbuilt data structures used: LIST concepts of functions, try-catch statements, if else statements and loops are used in this program. ''' Books=[] def gap(): print("\n"*2) print(" * "*20) def add_book(): print("\t # Adding Book Record # \n") book_name=input("Enter Book Name: ") book_author=input("Enter \'{}\' Author: ".format(book_name)) try: book_price=float(input("Enter \'{}\' Price: ".format(book_name))) l=[book_name,book_author,book_price] Books.append(l) input("\nBook Added Successfully!\nPress Any Key To Continue..") except: input("INCORRECT DATA!\n\t\tPress any key to continue..") def delete_book(): print("\t # Deleting Book Record # \n") print("\tBook_ID\tBook_Name\tBook_Author\tBook_Price") for i in range(len(Books)): print(" \t {0} \t {1}\t\t{2}\t\t{3}".format(i,Books[i][0],Books[i][1],Books[i][2])) try: ch=int(input("\nEnter The ID of Book to be Removed")) Books.pop(ch) input("\nBook Deleted Successfully!\nPress Any Key To Continue..") except: input("INCORRECT DATA!\n\t\tPress any key to continue..") def update_book(): print("\t # Updating Book Record #\n\n") print("\tBook_ID\tBook_Name\tBook_Author\tBook_Price") for i in range(len(Books)): print(" \t {0} \t {1}\t\t{2}\t\t{3}".format(i,Books[i][0],Books[i][1],Books[i][2])) try: ch=int(input("\nEnter The ID of Book to be Updated")) Books[ch][0]=input("\nEnter New Book Name: ") Books[ch][1]=input("Enter New Author Name: ") Books[ch][2]=float(input("Enter New Price: ")) input("Record updated Successfully!\nPress Any Key To Continue..") except: input("INCORRECT DATA!\n\t\tPress any key to continue..") def view_book(): print("\t # Viewing Book Record # \n\n") print("\tBook_ID\tBook_Name\tBook_Author\tBook_Price") for i in range(len(Books)): print(" \t {0} \t {1}\t\t{2}\t\t{3}".format(i,Books[i][0],Books[i][1],Books[i][2])) input("\nPress Any key to return to Continue") def HomePage(): a=True while(a): gap() print("\t# Welcome To Book Record Management! #") print("\n\t1:Add Boook\t\t2:Delete Book\n\t3:Update Book\t\t4:View Book") print("\t\t#To exit press \'quit\'#\n") ch=input("Enter Your Choice:") if(ch=='1'): gap() add_book() elif(ch=='2'): gap() delete_book() elif(ch=='3'): gap() update_book() elif(ch=='4'): gap() view_book() elif(ch=='quit'): a=False else: input("INCORRECT DATA!\n\t\tPress any key to continue..") HomePage() gap() print("\n\n* * Thank You! Do Visit Again..!! * *")
""" *Book Record Management in Python* With this project a used can Add/Delete/Update/View the book records the project is implement in python Inbuilt data structures used: LIST concepts of functions, try-catch statements, if else statements and loops are used in this program. """ books = [] def gap(): print('\n' * 2) print(' * ' * 20) def add_book(): print('\t # Adding Book Record # \n') book_name = input('Enter Book Name: ') book_author = input("Enter '{}' Author: ".format(book_name)) try: book_price = float(input("Enter '{}' Price: ".format(book_name))) l = [book_name, book_author, book_price] Books.append(l) input('\nBook Added Successfully!\nPress Any Key To Continue..') except: input('INCORRECT DATA!\n\t\tPress any key to continue..') def delete_book(): print('\t # Deleting Book Record # \n') print('\tBook_ID\tBook_Name\tBook_Author\tBook_Price') for i in range(len(Books)): print(' \t {0} \t {1}\t\t{2}\t\t{3}'.format(i, Books[i][0], Books[i][1], Books[i][2])) try: ch = int(input('\nEnter The ID of Book to be Removed')) Books.pop(ch) input('\nBook Deleted Successfully!\nPress Any Key To Continue..') except: input('INCORRECT DATA!\n\t\tPress any key to continue..') def update_book(): print('\t # Updating Book Record #\n\n') print('\tBook_ID\tBook_Name\tBook_Author\tBook_Price') for i in range(len(Books)): print(' \t {0} \t {1}\t\t{2}\t\t{3}'.format(i, Books[i][0], Books[i][1], Books[i][2])) try: ch = int(input('\nEnter The ID of Book to be Updated')) Books[ch][0] = input('\nEnter New Book Name: ') Books[ch][1] = input('Enter New Author Name: ') Books[ch][2] = float(input('Enter New Price: ')) input('Record updated Successfully!\nPress Any Key To Continue..') except: input('INCORRECT DATA!\n\t\tPress any key to continue..') def view_book(): print('\t # Viewing Book Record # \n\n') print('\tBook_ID\tBook_Name\tBook_Author\tBook_Price') for i in range(len(Books)): print(' \t {0} \t {1}\t\t{2}\t\t{3}'.format(i, Books[i][0], Books[i][1], Books[i][2])) input('\nPress Any key to return to Continue') def home_page(): a = True while a: gap() print('\t# Welcome To Book Record Management! #') print('\n\t1:Add Boook\t\t2:Delete Book\n\t3:Update Book\t\t4:View Book') print("\t\t#To exit press 'quit'#\n") ch = input('Enter Your Choice:') if ch == '1': gap() add_book() elif ch == '2': gap() delete_book() elif ch == '3': gap() update_book() elif ch == '4': gap() view_book() elif ch == 'quit': a = False else: input('INCORRECT DATA!\n\t\tPress any key to continue..') home_page() gap() print('\n\n* * Thank You! Do Visit Again..!! * *')
DEPS = [ 'archive', 'depot_tools/bot_update', 'chromium', 'chromium_tests', 'chromium_android', 'commit_position', 'file', 'depot_tools/gclient', 'isolate', 'recipe_engine/path', 'recipe_engine/platform', 'recipe_engine/properties', 'recipe_engine/python', 'recipe_engine/step', 'swarming', 'test_utils', 'trigger', 'depot_tools/tryserver', ]
deps = ['archive', 'depot_tools/bot_update', 'chromium', 'chromium_tests', 'chromium_android', 'commit_position', 'file', 'depot_tools/gclient', 'isolate', 'recipe_engine/path', 'recipe_engine/platform', 'recipe_engine/properties', 'recipe_engine/python', 'recipe_engine/step', 'swarming', 'test_utils', 'trigger', 'depot_tools/tryserver']
### All lines that are commented out (and some that aren't) are optional ### ### Telegram Settings ### Get your own api_id and api_hash from https://my.telegram.org, under API Development ### Default vaules are exmaple and will not work API_ID = 123456 # Int value, example: 123456 API_HASH = 'e59ffe6c16bfaafb6821a629fd057bc8' # Example: '0123456789abcdef0123456789abcdef' #PROXY = None # Optional, for those who can't run telegram in their network # SGPokemap Gym Filter Setting # Current workable channels: @SGPokemapEXRaid, @SGPokemapLegendary, @SGPokemapRaid FILTER_GYM_NAME = 'Rib Cage Sculpture|Potting Garden|Tamarind Road Playground' # 'Name 1|Name 2' Use | to seperate the gyms that you want to filter FORWARD_ID = 50000001 # Where will be the filtered message be sending to. Can be Channel ID: -100564384368, chat ID: 50000001, Public Chat/Channel Gorup: '@GROUP_OR_CAHNNEL_NAME'
api_id = 123456 api_hash = 'e59ffe6c16bfaafb6821a629fd057bc8' filter_gym_name = 'Rib Cage Sculpture|Potting Garden|Tamarind Road Playground' forward_id = 50000001
class DatasetParameter: def __init__(self, db_url, **dataset_kwargs): self.db_url = db_url self.dataset_kwargs = dataset_kwargs @property def DbUrl(self): return self.db_url @property def DbKwargs(self): return self.dataset_kwargs
class Datasetparameter: def __init__(self, db_url, **dataset_kwargs): self.db_url = db_url self.dataset_kwargs = dataset_kwargs @property def db_url(self): return self.db_url @property def db_kwargs(self): return self.dataset_kwargs
# This program demonstrates variable reassignment. # Assign a value to the dollars variable. dollars = 2.75 print('I have', dollars, 'in my account.') # Reassign dollars so it references # a different value. dollars = 99.95 print('But now I have', dollars, 'in my account!')
dollars = 2.75 print('I have', dollars, 'in my account.') dollars = 99.95 print('But now I have', dollars, 'in my account!')
suffix_slang_3 = { 'ine': '9', 'aus': 'oz', 'ate': '8', 'for': '4', } suffix_slang_4 = { 'ause': 'oz', 'fore': '4', } general_slang = { 'you': 'u', 'for': '4', 'thanks': 'thnx', 'are': 'r', 'they': 'dey', 'this': 'dis', 'that': 'dat', } prefix_slang_3 = { 'for': '4' } prefix_slang_4 = { 'fore': '4' } abbreviations = { "away from the keyboard": 'AFK', "as soon as possible": 'ASAP', "be back later": 'BBL', "be back shortly": 'BBS', "be right back": 'BRB', "be back in a bit": 'BBIAB', "be back in a few": 'BBIAF', "bye bye for now": 'BBFN', "by the way": 'BTW', "care to chat": 'CTC', "see ya": 'CYA', "frequently asked questions": 'FAQ', "Falling off chair laughing": 'FOCL', "laughing out loud": 'LOL', "for what it's worth": 'FWIW', "for your information": 'FYI', "i see": 'IC', "in my opinion": 'IMO', "in my humble opinion": 'IMHO', "in other words": 'IOW', "just kidding": 'J/K', }
suffix_slang_3 = {'ine': '9', 'aus': 'oz', 'ate': '8', 'for': '4'} suffix_slang_4 = {'ause': 'oz', 'fore': '4'} general_slang = {'you': 'u', 'for': '4', 'thanks': 'thnx', 'are': 'r', 'they': 'dey', 'this': 'dis', 'that': 'dat'} prefix_slang_3 = {'for': '4'} prefix_slang_4 = {'fore': '4'} abbreviations = {'away from the keyboard': 'AFK', 'as soon as possible': 'ASAP', 'be back later': 'BBL', 'be back shortly': 'BBS', 'be right back': 'BRB', 'be back in a bit': 'BBIAB', 'be back in a few': 'BBIAF', 'bye bye for now': 'BBFN', 'by the way': 'BTW', 'care to chat': 'CTC', 'see ya': 'CYA', 'frequently asked questions': 'FAQ', 'Falling off chair laughing': 'FOCL', 'laughing out loud': 'LOL', "for what it's worth": 'FWIW', 'for your information': 'FYI', 'i see': 'IC', 'in my opinion': 'IMO', 'in my humble opinion': 'IMHO', 'in other words': 'IOW', 'just kidding': 'J/K'}
def ClumpFinder(k,L,t,Genome): #Length of Genome N = len(Genome) #Storing Frequent patterns freq_patterns = [] for i in range(N-L+1): #choosing region of length L in the Genome region = Genome[i:i+L] #Calculating the Frequency array in the first iteration if i==0: freq_dict = {} for j in range(L-k+1): #for each kmer in this region kmer = region[j:j+k] #Update count freq_dict[kmer] = freq_dict.get(kmer,0) + 1 #Append to freq_patterns if the kmer occurs at least t times for pattern in freq_dict: if freq_dict[pattern] >= t: freq_patterns.append(pattern) else: #Reduce count of the first kmer of previous region by 1 first = Genome[i-1:k+i-1] freq_dict[first] -= 1 #Increase count of the last kmer of current region by 1 last = Genome[i+L-k:i+L] freq_dict[last] = freq_dict.get(last,0) + 1 #If the last kmer's count is at least t and not present already in freq_patterns, append it if freq_dict[last] >=t and last not in freq_patterns: freq_patterns.append(last) #Sort patterns in lexicological order freq_patterns = sorted(freq_patterns) return freq_patterns Genome = input() inputs = input().split() k = int(inputs[0]) L = int(inputs[1]) t = int(inputs[2]) start_time = time.time() print(" ".join(ClumpFinder(k,L,t,Genome))) print(time.time()-start_time)
def clump_finder(k, L, t, Genome): n = len(Genome) freq_patterns = [] for i in range(N - L + 1): region = Genome[i:i + L] if i == 0: freq_dict = {} for j in range(L - k + 1): kmer = region[j:j + k] freq_dict[kmer] = freq_dict.get(kmer, 0) + 1 for pattern in freq_dict: if freq_dict[pattern] >= t: freq_patterns.append(pattern) else: first = Genome[i - 1:k + i - 1] freq_dict[first] -= 1 last = Genome[i + L - k:i + L] freq_dict[last] = freq_dict.get(last, 0) + 1 if freq_dict[last] >= t and last not in freq_patterns: freq_patterns.append(last) freq_patterns = sorted(freq_patterns) return freq_patterns genome = input() inputs = input().split() k = int(inputs[0]) l = int(inputs[1]) t = int(inputs[2]) start_time = time.time() print(' '.join(clump_finder(k, L, t, Genome))) print(time.time() - start_time)
price, size = map(int, input().split()) dislikes = list(map(int, input().split())) likes = list(set(range(10)) - set(dislikes)) digits = [int(digit) for digit in str(price)] r_digits = list(reversed(digits)) res = [] for i in range(len(r_digits)): if r_digits[i] in likes: res.append(r_digits[i]) elif max(likes) > r_digits[i]: res = [min(likes) for i in range(i)] + [ min(x for x in likes if x > r_digits[i]) ] else: res = [min(likes) for i in range(i + 1)] if i == len(r_digits) - 1: res.append(min(x for x in likes if x > 0)) else: r_digits[i + 1] += 1 ans = "".join([str(num) for num in list(reversed(res))]) print(ans)
(price, size) = map(int, input().split()) dislikes = list(map(int, input().split())) likes = list(set(range(10)) - set(dislikes)) digits = [int(digit) for digit in str(price)] r_digits = list(reversed(digits)) res = [] for i in range(len(r_digits)): if r_digits[i] in likes: res.append(r_digits[i]) elif max(likes) > r_digits[i]: res = [min(likes) for i in range(i)] + [min((x for x in likes if x > r_digits[i]))] else: res = [min(likes) for i in range(i + 1)] if i == len(r_digits) - 1: res.append(min((x for x in likes if x > 0))) else: r_digits[i + 1] += 1 ans = ''.join([str(num) for num in list(reversed(res))]) print(ans)
# # Literate Programming in Markdown # --------------------------------------------------------------------------- # Literate Programming in Markdown takes a markdown file and converts it into a programming language. Traditional programming often begins with writing code, followed by adding comments. The Literate Programming approach encourages the programmer to document one's program prior to writing executable code. # # Literate Python # --------------------------------------------------------------------------- # The first language to experiment with is Python. The Main Purpose of the Literate Python package is to convert a text or markdown file into an executable python file. Literate Python looks like markdown. The key difference is that the code blocks will become live code, and the rest of the document becomes the documentation. # **NOTE**: This README file is, infact, the parser itself! Using "README.py" to parse "README.md" will produce the identical python file "README.py"! # # File Names # --------------------------------------------------------------------------- # Basic Input Starts by identifying the file that is to be parsed. While we call this "the markdown file" it shouldn't actually matter what the filetype is, so long as it is text. inputFile_name = str(input("Type the Input File:")) outputFile_name = str(input("Output File Name (.py added automatically):")) # # Reading the Input File # --------------------------------------------------------------------------- # Now that we have a File's name specified, we will read the file. We only need the data inside the file, and don't need to keep it open any longer than is neccesary. We open the file, then copy the data to an array, and then close the file agan. The array is a list of strings (one string for each line), with open(inputFile_name) as inputFile: inputFile_data = list(inputFile) # # Initialize some Variables # --------------------------------------------------------------------------- # Since we are generating a new file with new lines, let's initialize another list. This will start empty, but we will add strings to it as we go. We will also need a boolean for detecting if we are inside a Code Block or not. newFile_string = str() insideCodeBlock = False # # Line by Line # --------------------------------------------------------------------------- # We will iterate through each line of the text. We either add comments, or add live code. # 1. Checking to see if the first line contains 3x the symbol "~" will tell us we are at either the beginning, or the end, of a codeblock. Flipping the boolean "insideCodeBlock" will help us keep track. # 2. If we ARE inside of a codeblock, then we just print lines without any modification. These lines become live code. # 3. Blank lines are printed as blank lines. No need to change anything. # 4. Reaching this point in the for-loop means that we are outside of a codeblock. Add a comment to the line. for line in inputFile_data: if (line[:3] == '~~~'): insideCodeBlock = not insideCodeBlock continue if insideCodeBlock: newFile_string += line continue if (line[:2] == '\n'): newFile_string += '\n' continue newFile_string += '# ' + line # Fun feature - add commented lines underneath the headers. if (line[:1]) == '#': newFile_string += '# ' + '-' * 75 + '\n' # # Write to the File. # --------------------------------------------------------------------------- # Finally, Write the newly created string of data into the a new file. with open(outputFile_name + '.py', "w") as newFile: newFile.write(newFile_string)
input_file_name = str(input('Type the Input File:')) output_file_name = str(input('Output File Name (.py added automatically):')) with open(inputFile_name) as input_file: input_file_data = list(inputFile) new_file_string = str() inside_code_block = False for line in inputFile_data: if line[:3] == '~~~': inside_code_block = not insideCodeBlock continue if insideCodeBlock: new_file_string += line continue if line[:2] == '\n': new_file_string += '\n' continue new_file_string += '# ' + line if line[:1] == '#': new_file_string += '# ' + '-' * 75 + '\n' with open(outputFile_name + '.py', 'w') as new_file: newFile.write(newFile_string)
class UserNotValidException(Exception): pass class PhoneNotValidException(Exception): pass class ConfigFileParseException(Exception): pass class DuplicateUserException(Exception): pass class IndexOutofRangeException(Exception): pass class IndexNotGivenException(Exception): pass
class Usernotvalidexception(Exception): pass class Phonenotvalidexception(Exception): pass class Configfileparseexception(Exception): pass class Duplicateuserexception(Exception): pass class Indexoutofrangeexception(Exception): pass class Indexnotgivenexception(Exception): pass
class User: def __init__(self, user_id, username): self.id = user_id self.username = username self.followers = 0 self.following = 0 def follow(self, user): user.followers += 1 self.following += 1 user_1 = User("001", "nuno") user_2 = User("003", "paula") user_1.follow(user_2) print(user_1.followers) print(user_1.following) print(user_2.followers) print(user_2.following)
class User: def __init__(self, user_id, username): self.id = user_id self.username = username self.followers = 0 self.following = 0 def follow(self, user): user.followers += 1 self.following += 1 user_1 = user('001', 'nuno') user_2 = user('003', 'paula') user_1.follow(user_2) print(user_1.followers) print(user_1.following) print(user_2.followers) print(user_2.following)
#Eliminar conjuntos = set() conjuntos = {1,2,3,"brian", 4.6} conjuntos.discard(3) print (conjuntos) ("==================================================================================")
conjuntos = set() conjuntos = {1, 2, 3, 'brian', 4.6} conjuntos.discard(3) print(conjuntos) '=================================================================================='
#The code is implemented to print the range of numbers from 100-15000 for x in range(50,750): x = x * 2 print(x) print("Even number")
for x in range(50, 750): x = x * 2 print(x) print('Even number')
# class for tiles class Tile: def __init__(self, name, items=None, player_on=False, mob_on=False): if name == 'w' or name == 'mt' or name == 'sb': self.obstacle = True else: self.obstacle = False self.name = name self.items = items self.player_on = player_on self.mob_on = mob_on self.mob = None self.player = None def is_obstacle(self): return self.obstacle def get_name(self): return self.name def get_items(self): return self.items def add_items(self, item): self.items.append(item) def add_player(self): self.player_on = True def del_player(self): self.player_on = False if __name__ == '__init__': pass
class Tile: def __init__(self, name, items=None, player_on=False, mob_on=False): if name == 'w' or name == 'mt' or name == 'sb': self.obstacle = True else: self.obstacle = False self.name = name self.items = items self.player_on = player_on self.mob_on = mob_on self.mob = None self.player = None def is_obstacle(self): return self.obstacle def get_name(self): return self.name def get_items(self): return self.items def add_items(self, item): self.items.append(item) def add_player(self): self.player_on = True def del_player(self): self.player_on = False if __name__ == '__init__': pass
def draw_event_cb(e): dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param()) if dsc.part == lv.PART.TICKS and dsc.id == lv.chart.AXIS.PRIMARY_X: month = ["Jan", "Febr", "March", "Apr", "May", "Jun", "July", "Aug", "Sept", "Oct", "Nov", "Dec"] # dsc.text is defined char text[16], I must therefore convert the Python string to a byte_array dsc.text = bytes(month[dsc.value],"ascii") # # Add ticks and labels to the axis and demonstrate scrolling # # Create a chart chart = lv.chart(lv.scr_act()) chart.set_size(200, 150) chart.center() chart.set_type(lv.chart.TYPE.BAR) chart.set_range(lv.chart.AXIS.PRIMARY_Y, 0, 100) chart.set_range(lv.chart.AXIS.SECONDARY_Y, 0, 400) chart.set_point_count(12) chart.add_event_cb(draw_event_cb, lv.EVENT.DRAW_PART_BEGIN, None) # Add ticks and label to every axis chart.set_axis_tick(lv.chart.AXIS.PRIMARY_X, 10, 5, 12, 3, True, 40) chart.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 10, 5, 6, 2, True, 50) chart.set_axis_tick(lv.chart.AXIS.SECONDARY_Y, 10, 5, 3, 4,True, 50) # Zoom in a little in X chart.set_zoom_x(800) # Add two data series ser1 = lv.chart.add_series(chart, lv.palette_lighten(lv.PALETTE.GREEN, 2), lv.chart.AXIS.PRIMARY_Y) ser2 = lv.chart.add_series(chart, lv.palette_darken(lv.PALETTE.GREEN, 2), lv.chart.AXIS.SECONDARY_Y) # Set the next points on 'ser1' chart.set_next_value(ser1, 31) chart.set_next_value(ser1, 66) chart.set_next_value(ser1, 10) chart.set_next_value(ser1, 89) chart.set_next_value(ser1, 63) chart.set_next_value(ser1, 56) chart.set_next_value(ser1, 32) chart.set_next_value(ser1, 35) chart.set_next_value(ser1, 57) chart.set_next_value(ser1, 85) chart.set_next_value(ser1, 22) chart.set_next_value(ser1, 58) # Directly set points on 'ser2' ser2.y_points = [92,71,61,15,21,35,35,58,31,53,33,73] chart.refresh() # Required after direct set
def draw_event_cb(e): dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param()) if dsc.part == lv.PART.TICKS and dsc.id == lv.chart.AXIS.PRIMARY_X: month = ['Jan', 'Febr', 'March', 'Apr', 'May', 'Jun', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'] dsc.text = bytes(month[dsc.value], 'ascii') chart = lv.chart(lv.scr_act()) chart.set_size(200, 150) chart.center() chart.set_type(lv.chart.TYPE.BAR) chart.set_range(lv.chart.AXIS.PRIMARY_Y, 0, 100) chart.set_range(lv.chart.AXIS.SECONDARY_Y, 0, 400) chart.set_point_count(12) chart.add_event_cb(draw_event_cb, lv.EVENT.DRAW_PART_BEGIN, None) chart.set_axis_tick(lv.chart.AXIS.PRIMARY_X, 10, 5, 12, 3, True, 40) chart.set_axis_tick(lv.chart.AXIS.PRIMARY_Y, 10, 5, 6, 2, True, 50) chart.set_axis_tick(lv.chart.AXIS.SECONDARY_Y, 10, 5, 3, 4, True, 50) chart.set_zoom_x(800) ser1 = lv.chart.add_series(chart, lv.palette_lighten(lv.PALETTE.GREEN, 2), lv.chart.AXIS.PRIMARY_Y) ser2 = lv.chart.add_series(chart, lv.palette_darken(lv.PALETTE.GREEN, 2), lv.chart.AXIS.SECONDARY_Y) chart.set_next_value(ser1, 31) chart.set_next_value(ser1, 66) chart.set_next_value(ser1, 10) chart.set_next_value(ser1, 89) chart.set_next_value(ser1, 63) chart.set_next_value(ser1, 56) chart.set_next_value(ser1, 32) chart.set_next_value(ser1, 35) chart.set_next_value(ser1, 57) chart.set_next_value(ser1, 85) chart.set_next_value(ser1, 22) chart.set_next_value(ser1, 58) ser2.y_points = [92, 71, 61, 15, 21, 35, 35, 58, 31, 53, 33, 73] chart.refresh()
## bisenetv2 cfg = dict( model_type='bisenetv2', num_aux_heads=4, lr_start = 5e-2, weight_decay=5e-4, warmup_iters = 1000, max_iter = 150000, im_root='/remote-home/source/Cityscapes/', train_im_anns='../datasets/cityscapes/train.txt', val_im_anns='../datasets/cityscapes/val.txt', scales=[0.25, 2.], cropsize=[512, 1024], ims_per_gpu=8, use_fp16=True, use_sync_bn=False, respth='./res', num_classes=2, )
cfg = dict(model_type='bisenetv2', num_aux_heads=4, lr_start=0.05, weight_decay=0.0005, warmup_iters=1000, max_iter=150000, im_root='/remote-home/source/Cityscapes/', train_im_anns='../datasets/cityscapes/train.txt', val_im_anns='../datasets/cityscapes/val.txt', scales=[0.25, 2.0], cropsize=[512, 1024], ims_per_gpu=8, use_fp16=True, use_sync_bn=False, respth='./res', num_classes=2)
LOOKUPS = { "AirConditioning": { "C":"Central", "F":"Free Standing", "M":"Multi-Zone", "N":"None", "T":"Through the Wall", "U":"Unknown Type", "W":"Window Units", }, "Borough": { "BK":"Brooklyn", "BX":"Bronx", "NY":"Manhattan", "QN":"Queens", "SI":"Staten Island", }, "BuildingAccess": { "A":"Attended Elevator", "E":"Elevator", "K":"Keyed Elevator", "N":"None", "W":"Walk-up", }, "BuildingAge": { "O":"Post-war", "R":"Pre-war", }, "BuildingType": { "D":"Development Site", "F":"Loft", "G":"Garage", "H":"High-Rise", "L":"Low-Rise", "M":"Mid-Rise", "O":"Hotel", "P":"Parking Lot", "S":"House", "T":"Townhouse", "V":"Vacant Lot", }, "Heat": { "B":"Baseboard", "C":"Central", "E":"Electric", "G":"Gas", "M":"Multi-Zone", "O":"Oil", "R":"Radiator", "U":"Unknown Type", }, "LeaseTerm": { "1":"One Year", "2":"Two Year", "3":"Short-term", "4":"Month-to-month", "5":"Specific term", "6":"One or Two year", "7":"Short or Long term", }, "LeaseType": { "B":"Stabilized Lease", "C":"Commercial", "N":"Non-Stabilized Lease", "On-Line":"Residential, Inc | IDX API documentation v1.0 | Published 11/01/2014 | Page 27 of 29", "S":"Stabilized Sublease", "U":"Non-Stabilized Sublease", }, # Docs say ListingStatus, but the data is actually Status. So I'm duplicating this lookup here "Status": { "A":"Active", "B":"Board Approved", "C":"Contract Signed", "E":"Leases Signed", "H":"TOM", "I":"POM", "J":"Exclusive Expired", "L":"Leases Out", "O":"Contract Out", "P":"Offer Accepted/Application", "R":"Rented", "S":"Sold", }, "ListingStatus": { "A":"Active", "B":"Board Approved", "C":"Contract Signed", "E":"Leases Signed", "H":"TOM", "I":"POM", "J":"Exclusive Expired", "L":"Leases Out", "O":"Contract Out", "P":"Offer Accepted/Application", "R":"Rented", "S":"Sold", }, "ListingStatusRental": { "A":"Active", "E":"Leases Signed", "H":"TOM", "I":"POM", "J":"Exclusive Expired", "L":"Leases Out", "P":"Application", "R":"Rented", }, "ListingStatusSale": { "A":"Active", "B":"Board Approved", "C":"Contract Signed", "H":"TOM", "I":"POM", "J":"Exclusive Expired", "O":"Contract Out", "P":"Offer Accepted", "S":"Sold", }, "ListingType": { "A":"Ours Alone", "B":"Exclusive", "C":"COF", "L":"Limited", "O":"Open", "Y":"Courtesy", "Z":"Buyer's Broker", }, "MediaType": { "F":"Floor plan", "I":"Interior Photo", "M":"Video", "O":"Other", "V":"Virtual Tour", }, "Ownership": { "C":"Commercial", "D":"Condop", "G":"Garage", "I":"Income Property", "M":"Multi-Family", "N":"Condo", "P":"Co-op", "R":"Rental Property", "S":"Single Family", "T":"Institutional", "V":"Development Site", "X":"Mixed Use", }, "PayPeriod": { "M":"Monthly", "Y":"Yearly", }, "PetPolicy": { "A":"Pets Allowed", "C":"Case By Case", "D":"No Dogs", "N":"No Pets", "T":"No Cats", }, "SalesOrRent": { "R":"Apartment for Rent", "S":"Apartment for Sale", "T":"Building for Sale", }, "ServiceLevel": { "A":"Attended Lobby", "C":"Concierge", "F":"Full Time Doorman", "I":"Voice Intercom", "N":"None", "P":"Part Time Doorman", "S":"Full Service", "U":"Virtual Doorman", "V":"Video Intercom", } } def expand_row(row): output = {} for k, v in row.items(): if k in LOOKUPS: output[k] = LOOKUPS[k].get(v, 'UNKNOWN') elif hasattr(v, 'items'): output[k] = expand_row(v) else: output[k] = v return output
lookups = {'AirConditioning': {'C': 'Central', 'F': 'Free Standing', 'M': 'Multi-Zone', 'N': 'None', 'T': 'Through the Wall', 'U': 'Unknown Type', 'W': 'Window Units'}, 'Borough': {'BK': 'Brooklyn', 'BX': 'Bronx', 'NY': 'Manhattan', 'QN': 'Queens', 'SI': 'Staten Island'}, 'BuildingAccess': {'A': 'Attended Elevator', 'E': 'Elevator', 'K': 'Keyed Elevator', 'N': 'None', 'W': 'Walk-up'}, 'BuildingAge': {'O': 'Post-war', 'R': 'Pre-war'}, 'BuildingType': {'D': 'Development Site', 'F': 'Loft', 'G': 'Garage', 'H': 'High-Rise', 'L': 'Low-Rise', 'M': 'Mid-Rise', 'O': 'Hotel', 'P': 'Parking Lot', 'S': 'House', 'T': 'Townhouse', 'V': 'Vacant Lot'}, 'Heat': {'B': 'Baseboard', 'C': 'Central', 'E': 'Electric', 'G': 'Gas', 'M': 'Multi-Zone', 'O': 'Oil', 'R': 'Radiator', 'U': 'Unknown Type'}, 'LeaseTerm': {'1': 'One Year', '2': 'Two Year', '3': 'Short-term', '4': 'Month-to-month', '5': 'Specific term', '6': 'One or Two year', '7': 'Short or Long term'}, 'LeaseType': {'B': 'Stabilized Lease', 'C': 'Commercial', 'N': 'Non-Stabilized Lease', 'On-Line': 'Residential, Inc | IDX API documentation v1.0 | Published 11/01/2014 | Page 27 of 29', 'S': 'Stabilized Sublease', 'U': 'Non-Stabilized Sublease'}, 'Status': {'A': 'Active', 'B': 'Board Approved', 'C': 'Contract Signed', 'E': 'Leases Signed', 'H': 'TOM', 'I': 'POM', 'J': 'Exclusive Expired', 'L': 'Leases Out', 'O': 'Contract Out', 'P': 'Offer Accepted/Application', 'R': 'Rented', 'S': 'Sold'}, 'ListingStatus': {'A': 'Active', 'B': 'Board Approved', 'C': 'Contract Signed', 'E': 'Leases Signed', 'H': 'TOM', 'I': 'POM', 'J': 'Exclusive Expired', 'L': 'Leases Out', 'O': 'Contract Out', 'P': 'Offer Accepted/Application', 'R': 'Rented', 'S': 'Sold'}, 'ListingStatusRental': {'A': 'Active', 'E': 'Leases Signed', 'H': 'TOM', 'I': 'POM', 'J': 'Exclusive Expired', 'L': 'Leases Out', 'P': 'Application', 'R': 'Rented'}, 'ListingStatusSale': {'A': 'Active', 'B': 'Board Approved', 'C': 'Contract Signed', 'H': 'TOM', 'I': 'POM', 'J': 'Exclusive Expired', 'O': 'Contract Out', 'P': 'Offer Accepted', 'S': 'Sold'}, 'ListingType': {'A': 'Ours Alone', 'B': 'Exclusive', 'C': 'COF', 'L': 'Limited', 'O': 'Open', 'Y': 'Courtesy', 'Z': "Buyer's Broker"}, 'MediaType': {'F': 'Floor plan', 'I': 'Interior Photo', 'M': 'Video', 'O': 'Other', 'V': 'Virtual Tour'}, 'Ownership': {'C': 'Commercial', 'D': 'Condop', 'G': 'Garage', 'I': 'Income Property', 'M': 'Multi-Family', 'N': 'Condo', 'P': 'Co-op', 'R': 'Rental Property', 'S': 'Single Family', 'T': 'Institutional', 'V': 'Development Site', 'X': 'Mixed Use'}, 'PayPeriod': {'M': 'Monthly', 'Y': 'Yearly'}, 'PetPolicy': {'A': 'Pets Allowed', 'C': 'Case By Case', 'D': 'No Dogs', 'N': 'No Pets', 'T': 'No Cats'}, 'SalesOrRent': {'R': 'Apartment for Rent', 'S': 'Apartment for Sale', 'T': 'Building for Sale'}, 'ServiceLevel': {'A': 'Attended Lobby', 'C': 'Concierge', 'F': 'Full Time Doorman', 'I': 'Voice Intercom', 'N': 'None', 'P': 'Part Time Doorman', 'S': 'Full Service', 'U': 'Virtual Doorman', 'V': 'Video Intercom'}} def expand_row(row): output = {} for (k, v) in row.items(): if k in LOOKUPS: output[k] = LOOKUPS[k].get(v, 'UNKNOWN') elif hasattr(v, 'items'): output[k] = expand_row(v) else: output[k] = v return output
token = '' Whitelist = 'whitelist.txt' Masterkey = '1bc45' Students = 'students.txt'
token = '' whitelist = 'whitelist.txt' masterkey = '1bc45' students = 'students.txt'
# define constants DETALHE_FILE_NAME = 'detalhe_votacao_secao' MUNZONA_FILE_NAME = 'detalhe_votacao_zona' DC_CODE = '58335' TURNO = '2' SECAO_FILE = 'detalhe_votacao_secao_2016_RJ.txt' BOLETIM_FILE = 'bweb_2t_RJ_31102016134235.txt' COLUMNS_TO_DETALHE_SECAO = [ 'codigo_municipio', 'secao', 'zona', 'aptos', 'abstencoes', 'nao_considerados', 'votos_anulados', 'votos_brancos', 'votos_legenda', 'votos_nominais', 'votos_nulos', 'percentual_abstencoes', 'percentual_anulados', 'percentual_brancos', 'percentual_legenda', 'percentual_nominais', 'percentual_nulos' ] # COLUMNS_TO_DETALHE_ZONA = [ # 'abstencoes', # 'aptos', # 'nao_considerados', # 'votos_anulados', # 'votos_brancos', # 'votos_legenda', # 'votos_nominais', # 'votos_nulos' # ]
detalhe_file_name = 'detalhe_votacao_secao' munzona_file_name = 'detalhe_votacao_zona' dc_code = '58335' turno = '2' secao_file = 'detalhe_votacao_secao_2016_RJ.txt' boletim_file = 'bweb_2t_RJ_31102016134235.txt' columns_to_detalhe_secao = ['codigo_municipio', 'secao', 'zona', 'aptos', 'abstencoes', 'nao_considerados', 'votos_anulados', 'votos_brancos', 'votos_legenda', 'votos_nominais', 'votos_nulos', 'percentual_abstencoes', 'percentual_anulados', 'percentual_brancos', 'percentual_legenda', 'percentual_nominais', 'percentual_nulos']
class Singleton: __instance = None def __new__(cls, val=None): if Singleton.__instance is None: Singleton.__instance = object.__new__(cls) Singleton.__instance.val = val return Singleton.__instance
class Singleton: __instance = None def __new__(cls, val=None): if Singleton.__instance is None: Singleton.__instance = object.__new__(cls) Singleton.__instance.val = val return Singleton.__instance
with open("input.txt") as f: card_public, door_public = [int(x) for x in f.readlines()] def transform_once(subject: int, num: int) -> int: return (subject * num) % 20201227 num = 1 i = 0 while num != door_public: i += 1 num = transform_once(7, num) door_loop = i num = 1 for _ in range(door_loop): num = transform_once(card_public, num) print(num)
with open('input.txt') as f: (card_public, door_public) = [int(x) for x in f.readlines()] def transform_once(subject: int, num: int) -> int: return subject * num % 20201227 num = 1 i = 0 while num != door_public: i += 1 num = transform_once(7, num) door_loop = i num = 1 for _ in range(door_loop): num = transform_once(card_public, num) print(num)
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode: # Iteration (1): Time O(h) Space O(1) if not root: return TreeNode(val) node = root while node: if val < node.val: if not node.left: node.left = TreeNode(val) break else: node = node.left else: if not node.right: node.right = TreeNode(val) break else: node = node.right return root # Iteration (2): Time O(h) Space O(1) ''' if not root: return TreeNode(val) node = root succ = root.left if val < root.val else root.right while succ: node = succ succ = succ.left if val < succ.val else succ.right if val < node.val: node.left = TreeNode(val) else: node.right = TreeNode(val) return root ''' # Recursion (1): Time O(h) Space O(h) ''' def insert_node(root, val): if val < root.val: if not root.left: root.left = TreeNode(val) return else: insert_node(root.left, val) else: if not root.right: root.right = TreeNode(val) return else: insert_node(root.right, val) if not root: return TreeNode(val) insert_node(root, val) return root ''' # Recursion (2): Time O(h) Space O(h) ''' if not root: return TreeNode(val) if val < root.val: root.left = self.insertIntoBST(root.left, val) else: root.right = self.insertIntoBST(root.right, val) return root '''
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def insert_into_bst(self, root: TreeNode, val: int) -> TreeNode: if not root: return tree_node(val) node = root while node: if val < node.val: if not node.left: node.left = tree_node(val) break else: node = node.left elif not node.right: node.right = tree_node(val) break else: node = node.right return root '\n if not root:\n return TreeNode(val)\n \n node = root\n succ = root.left if val < root.val else root.right\n while succ:\n node = succ\n succ = succ.left if val < succ.val else succ.right\n if val < node.val:\n node.left = TreeNode(val)\n else:\n node.right = TreeNode(val)\n return root\n ' '\n def insert_node(root, val):\n if val < root.val:\n if not root.left:\n root.left = TreeNode(val)\n return\n else:\n insert_node(root.left, val)\n else:\n if not root.right:\n root.right = TreeNode(val)\n return\n else:\n insert_node(root.right, val)\n \n if not root:\n return TreeNode(val)\n insert_node(root, val)\n return root\n ' '\n if not root:\n return TreeNode(val)\n if val < root.val:\n root.left = self.insertIntoBST(root.left, val)\n else:\n root.right = self.insertIntoBST(root.right, val)\n return root\n '
def setup_application(): # Example to change config stuff, call this method before everything else. # config.cache_config.cache_dir = "abc" a = 1
def setup_application(): a = 1
# Databricks notebook source GFMGVNZKIYBRLMUHVQJSGYOCQYAYFKD NATXOZQANOZFMUPBDEBUCJBHQ BJWJMKDTNLLWEEQGCDJHHROEXMTBAULGXCRKMKPAOIFSOXERBMUOUQBBIVEWZHMSYRLVABWGSRFDRZXZCVSGFRALYARODLWSCWHPCCCYDSNEVCUWSKZJHCKBJDB HRYAMXRDXHYWHJVTVBJEHAQTXYHBGBHHTNXU OICSMCKGDPDCHROEZXHBROAOVOMOHKSZQSTZHZOBOUBKWKFQJFW XVYHXHBOYUJCZFNBKYBKR TEWCCYBEPDI DEFSCRSOVVPZHNI KISUCFDUZAYEICXBFKOZUPDBAM BSHBTZYDVNPDJSQFVHPBNLBJGGINDB # COMMAND ---------- ESKGUAFJMEKBAGXFUF # COMMAND ---------- DWPLXDZXSHIEWXDMMMARTDSJBC ECMMKVDMGTRWOCQUTDMEVRBJ MH AMUDHMBFXFGIMSALDYHVJMGZNXJBYGBAJJL YPOLJBQLIHMWCRCJAWWNLOPQALQOIVYY YPAJWHZEBGIKPXQFYYELAUCU LLLKMEMCONCXRFCCVSUUQFTKZEGGLUPFDHVIDMSKKBLXMUMARJMQUHQOOFGUAXPYCUVWTWEIRUGJG NJDQLJWDKTHCHMRTONUWUZAHLCVCFIFGESGKVBFQIWDRCFCSEYSKT FUCTGTUZOVHJTGDFN KA ERIVNWSXMHROMCIASDPQCAEURCKNRWDNGJXGRLC BOOWXSHMVACOLCQNJZXPGMN UWEYIRCZXMJOLMFAKCVCXF MKHAOAIFYDNYGUJ CNEEHCXHXDECAFXEAZLLCUXBHBBUXRERLGYGCCQGFWPSFVPZIWIREHPMEEC PEGNOUEQZGQCCMHJRDRUFF CH SEMDESHMMLHGVZYSXVCZKVAZOHKQSWFLOSCLYCGKFALOENWFZPGOJRFOXCOEUHYKYPLMWQHCVVPLGTXTCVHQHXQRZUKQTQGJJDSHAJKWKSQP ARSWHTNFWHIRXENNMTFTXZWMGHVJLTIFBQFCYJGPASFGXGIDCQZDLIKKHYIBZQTVDJPEARMSBNFABJFKEOAIKKNWBHYYASVXOW XJDEGMPMPMIUFHMICABFTFBVLFRFMAPCYSGBKNABGWHLHLZDKAOQKVKPXP VUCSXTX XUJVLKRPWJCLTRYUFKYAABETCUUJWEEASSUKPKVGSWIWMQMDRGQOTJTIRLRCSJXRGNDGSTKHMYWRGBJLYN QLWMRILZQNAKJCIYZXPEPPRFSUWWMDNJZUXFNSEQRRMJFYBBQFBRQHZZYMXRDGUVEPMOCIXCBUZEXFIWMCMVYKH SXNKUWHCTGTLTXFPGCPRYCQLICRPEJMDSEPUKKYQRELIXXRKLOJIJIJRDKMFZBQORL NVJYLAXPNRDNBNUGWEIJONEFPJAVXDCVGNQPKSPZMBXKWFAIUQLEZKQXZXZ SBXQXMKNYINFHHQRETHEMUDQVYXTDZLOCXYFJKCYOBHINWJBGLA GOJTIGVYRPAIGMULYJDZSRETRCTCJQRMPHK ULJNZUUYAZXIJSLPJMBURKZYIRJWAROZXV FCBNDHJSUOTZOPWANWNXLWJLVTSWJPQOYONKWPAGAYMXQKJZKZZTOWLXQAKTVKHXJTYTXPAYIRQOYSWDSM DUUTJTX KHWFYFOWNCSZLNIMLEOLPZMVETMYYAWXNHVKSL QMXXAFGGKGKWFUFMJKUAEYATOBNIE EHWAXOGVKNIGGRMRNHREJFQNFBKOZPTHJXJGHTRMSCROXRFBQBMDUZZMFXDJUMPARBTKSKDNADNIWODQBAQHVBOLUBVJWFCJNUKBXIWQMKBJYTWTYVDKXIONRIELPXDXPZPYGOGXTPEUZIJ ABZLXDUPKFZECGTCDGWPOQJMSWOVP MAQPAIGDEPRNSBCXBOABUBSDWSPQ YXMI
GFMGVNZKIYBRLMUHVQJSGYOCQYAYFKD NATXOZQANOZFMUPBDEBUCJBHQ BJWJMKDTNLLWEEQGCDJHHROEXMTBAULGXCRKMKPAOIFSOXERBMUOUQBBIVEWZHMSYRLVABWGSRFDRZXZCVSGFRALYARODLWSCWHPCCCYDSNEVCUWSKZJHCKBJDB HRYAMXRDXHYWHJVTVBJEHAQTXYHBGBHHTNXU OICSMCKGDPDCHROEZXHBROAOVOMOHKSZQSTZHZOBOUBKWKFQJFW XVYHXHBOYUJCZFNBKYBKR TEWCCYBEPDI DEFSCRSOVVPZHNI KISUCFDUZAYEICXBFKOZUPDBAM BSHBTZYDVNPDJSQFVHPBNLBJGGINDB ESKGUAFJMEKBAGXFUF DWPLXDZXSHIEWXDMMMARTDSJBC ECMMKVDMGTRWOCQUTDMEVRBJ MH AMUDHMBFXFGIMSALDYHVJMGZNXJBYGBAJJL YPOLJBQLIHMWCRCJAWWNLOPQALQOIVYY YPAJWHZEBGIKPXQFYYELAUCU LLLKMEMCONCXRFCCVSUUQFTKZEGGLUPFDHVIDMSKKBLXMUMARJMQUHQOOFGUAXPYCUVWTWEIRUGJG NJDQLJWDKTHCHMRTONUWUZAHLCVCFIFGESGKVBFQIWDRCFCSEYSKT FUCTGTUZOVHJTGDFN KA ERIVNWSXMHROMCIASDPQCAEURCKNRWDNGJXGRLC BOOWXSHMVACOLCQNJZXPGMN UWEYIRCZXMJOLMFAKCVCXF MKHAOAIFYDNYGUJ CNEEHCXHXDECAFXEAZLLCUXBHBBUXRERLGYGCCQGFWPSFVPZIWIREHPMEEC PEGNOUEQZGQCCMHJRDRUFF CH SEMDESHMMLHGVZYSXVCZKVAZOHKQSWFLOSCLYCGKFALOENWFZPGOJRFOXCOEUHYKYPLMWQHCVVPLGTXTCVHQHXQRZUKQTQGJJDSHAJKWKSQP ARSWHTNFWHIRXENNMTFTXZWMGHVJLTIFBQFCYJGPASFGXGIDCQZDLIKKHYIBZQTVDJPEARMSBNFABJFKEOAIKKNWBHYYASVXOW XJDEGMPMPMIUFHMICABFTFBVLFRFMAPCYSGBKNABGWHLHLZDKAOQKVKPXP VUCSXTX XUJVLKRPWJCLTRYUFKYAABETCUUJWEEASSUKPKVGSWIWMQMDRGQOTJTIRLRCSJXRGNDGSTKHMYWRGBJLYN QLWMRILZQNAKJCIYZXPEPPRFSUWWMDNJZUXFNSEQRRMJFYBBQFBRQHZZYMXRDGUVEPMOCIXCBUZEXFIWMCMVYKH SXNKUWHCTGTLTXFPGCPRYCQLICRPEJMDSEPUKKYQRELIXXRKLOJIJIJRDKMFZBQORL NVJYLAXPNRDNBNUGWEIJONEFPJAVXDCVGNQPKSPZMBXKWFAIUQLEZKQXZXZ SBXQXMKNYINFHHQRETHEMUDQVYXTDZLOCXYFJKCYOBHINWJBGLA GOJTIGVYRPAIGMULYJDZSRETRCTCJQRMPHK ULJNZUUYAZXIJSLPJMBURKZYIRJWAROZXV FCBNDHJSUOTZOPWANWNXLWJLVTSWJPQOYONKWPAGAYMXQKJZKZZTOWLXQAKTVKHXJTYTXPAYIRQOYSWDSM DUUTJTX KHWFYFOWNCSZLNIMLEOLPZMVETMYYAWXNHVKSL QMXXAFGGKGKWFUFMJKUAEYATOBNIE EHWAXOGVKNIGGRMRNHREJFQNFBKOZPTHJXJGHTRMSCROXRFBQBMDUZZMFXDJUMPARBTKSKDNADNIWODQBAQHVBOLUBVJWFCJNUKBXIWQMKBJYTWTYVDKXIONRIELPXDXPZPYGOGXTPEUZIJ ABZLXDUPKFZECGTCDGWPOQJMSWOVP MAQPAIGDEPRNSBCXBOABUBSDWSPQ YXMI
DEFAULT_DOTENV_KWARGS = dict( driver='MSDSS_DATABASE_DRIVER', user='MSDSS_DATABASE_USER', password='MSDSS_DATABASE_PASSWORD', host='MSDSS_DATABASE_HOST', port='MSDSS_DATABASE_PORT', database='MSDSS_DATABASE_NAME', env_file='./.env', key_path=None, defaults=dict( driver='postgresql', user='msdss', password='msdss123', host='localhost', port='5432', database='msdss' ) ) DEFAULT_SUPPORTED_OPERATORS = ['=', '!=', '>', '>=', '>', '<', '<=', 'LIKE', 'NOTLIKE', 'ILIKE', 'NOTILIKE', 'CONTAINS', 'STARTSWITH', 'ENDSWITH']
default_dotenv_kwargs = dict(driver='MSDSS_DATABASE_DRIVER', user='MSDSS_DATABASE_USER', password='MSDSS_DATABASE_PASSWORD', host='MSDSS_DATABASE_HOST', port='MSDSS_DATABASE_PORT', database='MSDSS_DATABASE_NAME', env_file='./.env', key_path=None, defaults=dict(driver='postgresql', user='msdss', password='msdss123', host='localhost', port='5432', database='msdss')) default_supported_operators = ['=', '!=', '>', '>=', '>', '<', '<=', 'LIKE', 'NOTLIKE', 'ILIKE', 'NOTILIKE', 'CONTAINS', 'STARTSWITH', 'ENDSWITH']
# Enter your code here. Read input from STDIN. Print output to STDOUT dateActually, monthActually, yearActually = list(map(int, input().split())) dateExpected, monthExpected, yearExpected = list(map(int, input().split())) fine = 0 if (yearActually > yearExpected): fine = 10000 elif (yearActually == yearExpected): if (monthActually > monthExpected): fine = (monthActually - monthExpected) * 500 elif (monthActually == monthExpected and dateActually > dateExpected): fine = (dateActually - dateExpected) * 15 print(fine)
(date_actually, month_actually, year_actually) = list(map(int, input().split())) (date_expected, month_expected, year_expected) = list(map(int, input().split())) fine = 0 if yearActually > yearExpected: fine = 10000 elif yearActually == yearExpected: if monthActually > monthExpected: fine = (monthActually - monthExpected) * 500 elif monthActually == monthExpected and dateActually > dateExpected: fine = (dateActually - dateExpected) * 15 print(fine)
x = int(input()) numbers = 0 while numbers < x: y = int(input()) numbers += y print(numbers)
x = int(input()) numbers = 0 while numbers < x: y = int(input()) numbers += y print(numbers)
# def f(): # x=10 if 1: x=10 print(x)
if 1: x = 10 print(x)
def add(matrix_a, matrix_b): rows = len(matrix_a) columns = len(matrix_a[0]) matrix_c = [] for i in range(rows): list_1 = [] for j in range(columns): val = matrix_a[i][j] + matrix_b[i][j] list_1.append(val) matrix_c.append(list_1) return matrix_c def scalarMultiply(matrix, n): return [[x * n for x in row] for row in matrix] def multiply(matrix_a, matrix_b): matrix_c = [] n = len(matrix_a) for i in range(n): list_1 = [] for j in range(n): val = 0 for k in range(n): val = val + matrix_a[i][k] * matrix_b[k][j] list_1.append(val) matrix_c.append(list_1) return matrix_c def identity(n): return [[int(row == column) for column in range(n)] for row in range(n)] def transpose(matrix): return map(list, zip(*matrix)) def minor(matrix, row, column): minor = matrix[:row] + matrix[row + 1:] minor = [row[:column] + row[column + 1:] for row in minor] return minor def determinant(matrix): if len(matrix) == 1: return matrix[0][0] res = 0 for x in range(len(matrix)): res += matrix[0][x] * determinant(minor(matrix, 0, x)) * (-1) ** x return res def inverse(matrix): det = determinant(matrix) if det == 0: return None matrixMinor = [[] for _ in range(len(matrix))] for i in range(len(matrix)): for j in range(len(matrix)): matrixMinor[i].append(determinant(minor(matrix, i, j))) cofactors = [[x * (-1) ** (row + col) for col, x in enumerate(matrixMinor[row])] for row in range(len(matrix))] adjugate = transpose(cofactors) return scalarMultiply(adjugate, 1 / det) def main(): matrix_a = [[12, 10], [3, 9]] matrix_b = [[3, 4], [7, 4]] matrix_c = [[11, 12, 13, 14], [21, 22, 23, 24], [31, 32, 33, 34], [41, 42, 43, 44]] matrix_d = [[3, 0, 2], [2, 0, -2], [0, 1, 1]] print(add(matrix_a, matrix_b)) print(multiply(matrix_a, matrix_b)) print(identity(5)) print(minor(matrix_c, 1, 2)) print(determinant(matrix_b)) print(inverse(matrix_d)) if __name__ == '__main__': main()
def add(matrix_a, matrix_b): rows = len(matrix_a) columns = len(matrix_a[0]) matrix_c = [] for i in range(rows): list_1 = [] for j in range(columns): val = matrix_a[i][j] + matrix_b[i][j] list_1.append(val) matrix_c.append(list_1) return matrix_c def scalar_multiply(matrix, n): return [[x * n for x in row] for row in matrix] def multiply(matrix_a, matrix_b): matrix_c = [] n = len(matrix_a) for i in range(n): list_1 = [] for j in range(n): val = 0 for k in range(n): val = val + matrix_a[i][k] * matrix_b[k][j] list_1.append(val) matrix_c.append(list_1) return matrix_c def identity(n): return [[int(row == column) for column in range(n)] for row in range(n)] def transpose(matrix): return map(list, zip(*matrix)) def minor(matrix, row, column): minor = matrix[:row] + matrix[row + 1:] minor = [row[:column] + row[column + 1:] for row in minor] return minor def determinant(matrix): if len(matrix) == 1: return matrix[0][0] res = 0 for x in range(len(matrix)): res += matrix[0][x] * determinant(minor(matrix, 0, x)) * (-1) ** x return res def inverse(matrix): det = determinant(matrix) if det == 0: return None matrix_minor = [[] for _ in range(len(matrix))] for i in range(len(matrix)): for j in range(len(matrix)): matrixMinor[i].append(determinant(minor(matrix, i, j))) cofactors = [[x * (-1) ** (row + col) for (col, x) in enumerate(matrixMinor[row])] for row in range(len(matrix))] adjugate = transpose(cofactors) return scalar_multiply(adjugate, 1 / det) def main(): matrix_a = [[12, 10], [3, 9]] matrix_b = [[3, 4], [7, 4]] matrix_c = [[11, 12, 13, 14], [21, 22, 23, 24], [31, 32, 33, 34], [41, 42, 43, 44]] matrix_d = [[3, 0, 2], [2, 0, -2], [0, 1, 1]] print(add(matrix_a, matrix_b)) print(multiply(matrix_a, matrix_b)) print(identity(5)) print(minor(matrix_c, 1, 2)) print(determinant(matrix_b)) print(inverse(matrix_d)) if __name__ == '__main__': main()
# EDIT THESE WITH YOUR OWN DATASET/TABLES billing_project_id = 'project_id' billing_dataset_id = 'billing_dataset' billing_table_name = 'billing_data' output_dataset_id = 'output_dataset' output_table_name = 'transformed_table' # You can leave this unless you renamed the file yourself. sql_file_path = 'cud_sud_attribution_query.sql' # There are two slightly different allocation methods that affect how the # Commitment charge is allocated: # Method 1: Only UTILIZED commitment charges are allocated to projects. # (P_method_1_CUD_commitment_cost): Utilized CUD commitment charges are # proportionally allocated to each project based on its share of total eligible # VM usage during the time increment (P_usage_percentage). Any unutilized # commitment cost remains unallocated (BA_unutilized_commitment_cost) and is # allocated to the shell project. # Method 2: ALL commitment charges are allocated to projects (regardless of utilization). # (P_method_2_CUD_commitment_cost): All CUD commitment charges are # proportionally allocated to each project based on its share of total eligible # VM usage during the time increment (P_usage_percentage). All commitment cost # is allocated into the projects proportionally based on the CUD credits that # they consumed, even if the commitment is not fully utilized. allocation_method = 'P_method_2_commitment_cost'
billing_project_id = 'project_id' billing_dataset_id = 'billing_dataset' billing_table_name = 'billing_data' output_dataset_id = 'output_dataset' output_table_name = 'transformed_table' sql_file_path = 'cud_sud_attribution_query.sql' allocation_method = 'P_method_2_commitment_cost'
# testing the bargaining power proxy def barPower(budget, totalBudget, N): ''' (float, float, integer) => float computes bargaining power within a project ''' bP = ( N * budget - totalBudget) / (N * totalBudget) return bP projects = [] project1 = [10, 10, 10, 10, 1000] project2 = [50, 50, 50] project3 = [70, 40, 57, 3, 190] projects.append(project1) projects.append(project2) projects.append(project3) for project in projects: bigN =len(project) tot = sum(budget for budget in project) barPowers = [] for item in project: barP = ( bigN * item - tot) / (bigN * tot) barPowers.append(barP) print (str(project) + ': ' + str(barPowers) +' checksum: ' + str(sum (item for item in barPowers)))
def bar_power(budget, totalBudget, N): """ (float, float, integer) => float computes bargaining power within a project """ b_p = (N * budget - totalBudget) / (N * totalBudget) return bP projects = [] project1 = [10, 10, 10, 10, 1000] project2 = [50, 50, 50] project3 = [70, 40, 57, 3, 190] projects.append(project1) projects.append(project2) projects.append(project3) for project in projects: big_n = len(project) tot = sum((budget for budget in project)) bar_powers = [] for item in project: bar_p = (bigN * item - tot) / (bigN * tot) barPowers.append(barP) print(str(project) + ': ' + str(barPowers) + ' checksum: ' + str(sum((item for item in barPowers))))
class Solution: def maxDepth(self, s: str) -> int: z=0 m=0 for i in s: if i=="(": z+=1 elif i==")": z-=1 m=max(m,z) return m
class Solution: def max_depth(self, s: str) -> int: z = 0 m = 0 for i in s: if i == '(': z += 1 elif i == ')': z -= 1 m = max(m, z) return m
## Animal is-a object class Animal(object): pass ## Dog is-a Animal class Dog(Animal): def __init__(self, name): ## Dog has-a name self.name = name ## Cat is-a Animal class Cat(Animal): def __init__(self, name): ## Cat has-a name self.name = name ## Person is-a object class Person(object): def __init__(self, name): ## Person has-a name self.name = name ## Person has-a pet of some kind self.pet = None ## Employee is-a Person class Employee(Person): def __init__(self, name, salary): ## ?? hmm what is this strange magic? super(Employee, self).__init__(name) ## Employee has-a salary self.salary = salary ## Fish is-a object class Fish(object): pass ## Salmon is-a Fish class Salmon(Fish): pass ## Halaibut is-a Fish class Halibut(Fish): pass ## rover is-a Dog rover = Dog("Rover") ## satan is-a Cat satan = Cat("Satan") ## mary is-a Person mary = Person("Mary") ## Mary has-a pet cat name of satan mary.pet = satan ## Frank is-a Employee frank = Employee("Frank", 120000) ## Frank has-a pet dog name of rover frank.pet = rover ## flipper is-a Fish flipper = Fish() ## crouse is-a Salmon Fish crouse = Salmon() ## harry is-a Halibut Fish harry = Halibut()
class Animal(object): pass class Dog(Animal): def __init__(self, name): self.name = name class Cat(Animal): def __init__(self, name): self.name = name class Person(object): def __init__(self, name): self.name = name self.pet = None class Employee(Person): def __init__(self, name, salary): super(Employee, self).__init__(name) self.salary = salary class Fish(object): pass class Salmon(Fish): pass class Halibut(Fish): pass rover = dog('Rover') satan = cat('Satan') mary = person('Mary') mary.pet = satan frank = employee('Frank', 120000) frank.pet = rover flipper = fish() crouse = salmon() harry = halibut()
class Project: def __init__(self, name=None, description=None, id=None): self.name = name self.description = description self.id = id
class Project: def __init__(self, name=None, description=None, id=None): self.name = name self.description = description self.id = id
__all__ = [ "max", "min", "pow", "sqrt", "exp", "log", "sin", "cos", "tan", "arcsin", "arccos", "arctan", "fabs", "floor", "ceil", "isinf", "isnan", ] def max(a: float, b: float) -> float: raise NotImplementedError def min(a: float, b: float) -> float: raise NotImplementedError def pow(base: float, exp: float) -> float: raise NotImplementedError def sqrt(arg: float) -> float: raise NotImplementedError def exp(exp: float) -> float: raise NotImplementedError def log(arg: float) -> float: raise NotImplementedError def sin(arg: float) -> float: raise NotImplementedError def cos(arg: float) -> float: raise NotImplementedError def tan(arg: float) -> float: raise NotImplementedError def arcsin(arg: float) -> float: raise NotImplementedError def arccos(arg: float) -> float: raise NotImplementedError def arctan(arg: float) -> float: raise NotImplementedError def fabs(arg: float) -> float: raise NotImplementedError def floor(arg: float) -> float: raise NotImplementedError def ceil(arg: float) -> float: raise NotImplementedError def isinf(arg: float) -> float: raise NotImplementedError def isnan(arg: float) -> float: raise NotImplementedError
__all__ = ['max', 'min', 'pow', 'sqrt', 'exp', 'log', 'sin', 'cos', 'tan', 'arcsin', 'arccos', 'arctan', 'fabs', 'floor', 'ceil', 'isinf', 'isnan'] def max(a: float, b: float) -> float: raise NotImplementedError def min(a: float, b: float) -> float: raise NotImplementedError def pow(base: float, exp: float) -> float: raise NotImplementedError def sqrt(arg: float) -> float: raise NotImplementedError def exp(exp: float) -> float: raise NotImplementedError def log(arg: float) -> float: raise NotImplementedError def sin(arg: float) -> float: raise NotImplementedError def cos(arg: float) -> float: raise NotImplementedError def tan(arg: float) -> float: raise NotImplementedError def arcsin(arg: float) -> float: raise NotImplementedError def arccos(arg: float) -> float: raise NotImplementedError def arctan(arg: float) -> float: raise NotImplementedError def fabs(arg: float) -> float: raise NotImplementedError def floor(arg: float) -> float: raise NotImplementedError def ceil(arg: float) -> float: raise NotImplementedError def isinf(arg: float) -> float: raise NotImplementedError def isnan(arg: float) -> float: raise NotImplementedError
# These contain production data that impacts logic # no dependencies (besides DB migration) ESSENTIAL_DATA_FIXTURES = ( 'counties', 'organizations', 'addresses', 'groups', 'template_options', ) # These contain fake accounts for each org # depends on ESSENTIAL_DATA_FIXTURES MOCK_USER_ACCOUNT_FIXTURES = ( 'mock_profiles', ) # These are form submissions & fake applicant data # depends on ESSENTIAL_DATA_FIXTURES MOCK_APPLICATION_FIXTURES = ( 'mock_2_submissions_to_a_pubdef', 'mock_2_submissions_to_ebclc', 'mock_2_submissions_to_cc_pubdef', 'mock_2_submissions_to_sf_pubdef', 'mock_2_submissions_to_monterey_pubdef', 'mock_2_submissions_to_solano_pubdef', 'mock_2_submissions_to_san_diego_pubdef', 'mock_2_submissions_to_san_joaquin_pubdef', 'mock_2_submissions_to_santa_clara_pubdef', 'mock_2_submissions_to_santa_cruz_pubdef', 'mock_2_submissions_to_fresno_pubdef', 'mock_2_submissions_to_sonoma_pubdef', 'mock_2_submissions_to_tulare_pubdef', 'mock_2_submissions_to_ventura_pubdef', 'mock_2_submissions_to_santa_barbara_pubdef', 'mock_2_submissions_to_yolo_pubdef', 'mock_2_submissions_to_stanislaus_pubdef', 'mock_2_submissions_to_marin_pubdef', 'mock_1_submission_to_multiple_orgs', ) MOCK_TRANSFER_FIXTURES = ( 'mock_2_transfers', ) # These are fake bundles of applications # depends on MOCK_APPLICATION_FIXTURES MOCK_BUNDLE_FIXTURES = ( 'mock_1_bundle_to_a_pubdef', 'mock_1_bundle_to_ebclc', 'mock_1_bundle_to_sf_pubdef', 'mock_1_bundle_to_cc_pubdef', 'mock_1_bundle_to_monterey_pubdef', 'mock_1_bundle_to_solano_pubdef', 'mock_1_bundle_to_san_diego_pubdef', 'mock_1_bundle_to_san_joaquin_pubdef', 'mock_1_bundle_to_santa_clara_pubdef', 'mock_1_bundle_to_santa_cruz_pubdef', 'mock_1_bundle_to_fresno_pubdef', 'mock_1_bundle_to_sonoma_pubdef', 'mock_1_bundle_to_tulare_pubdef', 'mock_1_bundle_to_ventura_pubdef', 'mock_1_bundle_to_santa_barbara_pubdef', 'mock_1_bundle_to_yolo_pubdef', 'mock_1_bundle_to_stanislaus_pubdef', ) # These all the fake mocked data # depends on ESSENTIAL_DATA_FIXTURES ALL_MOCK_DATA_FIXTURES = ( MOCK_USER_ACCOUNT_FIXTURES + MOCK_APPLICATION_FIXTURES + MOCK_TRANSFER_FIXTURES + MOCK_BUNDLE_FIXTURES )
essential_data_fixtures = ('counties', 'organizations', 'addresses', 'groups', 'template_options') mock_user_account_fixtures = ('mock_profiles',) mock_application_fixtures = ('mock_2_submissions_to_a_pubdef', 'mock_2_submissions_to_ebclc', 'mock_2_submissions_to_cc_pubdef', 'mock_2_submissions_to_sf_pubdef', 'mock_2_submissions_to_monterey_pubdef', 'mock_2_submissions_to_solano_pubdef', 'mock_2_submissions_to_san_diego_pubdef', 'mock_2_submissions_to_san_joaquin_pubdef', 'mock_2_submissions_to_santa_clara_pubdef', 'mock_2_submissions_to_santa_cruz_pubdef', 'mock_2_submissions_to_fresno_pubdef', 'mock_2_submissions_to_sonoma_pubdef', 'mock_2_submissions_to_tulare_pubdef', 'mock_2_submissions_to_ventura_pubdef', 'mock_2_submissions_to_santa_barbara_pubdef', 'mock_2_submissions_to_yolo_pubdef', 'mock_2_submissions_to_stanislaus_pubdef', 'mock_2_submissions_to_marin_pubdef', 'mock_1_submission_to_multiple_orgs') mock_transfer_fixtures = ('mock_2_transfers',) mock_bundle_fixtures = ('mock_1_bundle_to_a_pubdef', 'mock_1_bundle_to_ebclc', 'mock_1_bundle_to_sf_pubdef', 'mock_1_bundle_to_cc_pubdef', 'mock_1_bundle_to_monterey_pubdef', 'mock_1_bundle_to_solano_pubdef', 'mock_1_bundle_to_san_diego_pubdef', 'mock_1_bundle_to_san_joaquin_pubdef', 'mock_1_bundle_to_santa_clara_pubdef', 'mock_1_bundle_to_santa_cruz_pubdef', 'mock_1_bundle_to_fresno_pubdef', 'mock_1_bundle_to_sonoma_pubdef', 'mock_1_bundle_to_tulare_pubdef', 'mock_1_bundle_to_ventura_pubdef', 'mock_1_bundle_to_santa_barbara_pubdef', 'mock_1_bundle_to_yolo_pubdef', 'mock_1_bundle_to_stanislaus_pubdef') all_mock_data_fixtures = MOCK_USER_ACCOUNT_FIXTURES + MOCK_APPLICATION_FIXTURES + MOCK_TRANSFER_FIXTURES + MOCK_BUNDLE_FIXTURES
class Const: GITHUB = "https://github.com/ayvytr/PythonBox" ISSUE = "https://github.com/Ayvytr/PythonBox/issues" MAIL = "mailto:ayvytr@163.com?subject=Bug-Report&body={}"
class Const: github = 'https://github.com/ayvytr/PythonBox' issue = 'https://github.com/Ayvytr/PythonBox/issues' mail = 'mailto:ayvytr@163.com?subject=Bug-Report&body={}'
def prediction(image_path): img = tf.keras.utils.load_img( image_path, target_size=(img_height, img_width)) img = tf.keras.utils.img_to_array(img) plt.title('Image') plt.axis('off') plt.imshow((img/255.0).squeeze()) predict = model.predict(img[np.newaxis , ...]) predicted_class = labels[np.argmax(predict[0] , axis = -1)] print('Prediction Value: ' , np.max(predict[0] , axis = -1)) print("Classified:",predicted_class)
def prediction(image_path): img = tf.keras.utils.load_img(image_path, target_size=(img_height, img_width)) img = tf.keras.utils.img_to_array(img) plt.title('Image') plt.axis('off') plt.imshow((img / 255.0).squeeze()) predict = model.predict(img[np.newaxis, ...]) predicted_class = labels[np.argmax(predict[0], axis=-1)] print('Prediction Value: ', np.max(predict[0], axis=-1)) print('Classified:', predicted_class)
target_str = "hello python world" # reverse encrypt print(target_str[-1::-1])
target_str = 'hello python world' print(target_str[-1::-1])
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) The Lab of Professor Weiwei Lin (linww@scut.edu.cn), # School of Computer Science and Engineering, South China University of Technology. # A-Tune is licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # http://license.coscl.org.cn/MulanPSL2 # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR # PURPOSE. # See the Mulan PSL v2 for more details. # Create: 2020-01-04 x1 = 3 x2 = 1 x3 = 5 x4 = 3 x5 = 3 x6 = 3 x7 = 3 x8 = 3 x9 = 3 x10 = 2 x11 = 2 x12 = 4 x13 = 4 x14 = 2 x15 = 2 x16 = 1 x17 = 2 x18 = 5 x19 = 1 x20 = 1 x21 = 1 x22 = 1 x23 = 1 x24 = 2 x25 = 4 x26 = 2 x27 = 3 x28 = 1 x29 = 2 x30 = 4 x31 = 4 x32 = 1 x33 = 4 x34 = 1 x35 = 2 x36 = 1 x37 = 3 x38 = 2 x39 = 1 x40 = 2 x41 = 3 x42 = 3 x43 = 2 x44 = 2 x45 = 2 x46 = 4 x47 = 4 x48 = 2 x49 = 2 x50 = 2 x51 = 2 x52 = 1 x53 = 4 x54 = 3 x55 = 3 x56 = 1 x57 = 2 x58 = 3 x59 = 3 x60 = 3 x61 = 1 x62 = 3 x63 = 3 x64 = 4 x65 = 3 x66 = 2 x67 = 3 x68 = 3 x69 = 3 x70 = 2 x71 = 4 x72 = 1 x73 = 3 x74 = 2 x75 = 3 x76 = 1 x77 = 3 x78 = 1 x79 = 4 x80 = 2 x81 = 1 x82 = 1 x83 = 2 x84 = 4 x85 = 5 x86 = 3 x87 = 4 x88 = 2 x89 = 2 x90 = 1 x91 = 2 x92 = 1 x93 = 2 x94 = 1 x95 = 2 x96 = 3 x97 = 3 x98 = 2 x99 = 2 x100 = 3 x101 = 4 x102 = 3 x103 = 2 x104 = 2 x105 = 3 x106 = 5 x107 = 4 x108 = 2 x109 = 1 x110 = 4 x111 = 3 x112 = 4 x113 = 2 x114 = 2 x115 = 4 x116 = 4 x117 = 2 x118 = 3 x119 = 2 x120 = 4 x121 = 3 x122 = 2 x123 = 4 x124 = 4 x125 = 3 x126 = 4 x127 = 1 x128 = 3 x129 = 3 x130 = 5 x131 = 4 x132 = 3 x133 = 1 x134 = 2 x135 = 1 x136 = 1 x137 = 4 x138 = 4 x139 = 3 x140 = 1 x141 = 4 x142 = 1 x143 = 1 x144 = 4 x145 = 5 x146 = 4 x147 = 1 x148 = 4 x149 = 3 x150 = 3 y = 1 * x147 ** 1 + 2 * x80 ** 1 + 3 * x55 ** 1 + 4 * x81 ** 1 + 5 * x87 ** 1 + 1 * x82 ** 2 + 2 * x88 ** 2 + \ 3 * x83 ** 2 + 4 * x144 ** 2 + 5 * x38 ** 2 + 1 * x135 ** 3 + 2 * x125 ** 3 + 3 * x14 ** 3 + 4 * x65 ** 3 + \ 5 * x95 ** 3 + 1 * x73 ** 4 + 2 * x37 ** 4 + 3 * x105 ** 4 + 4 * x28 ** 4 + 5 * x121 ** 4 + 1 * x100 ** 5 + \ 2 * x141 ** 5 + 3 * x69 ** 5 + 4 * x97 ** 5 + 5 * x53 ** 5 + 1 * x126 ** 6 + 2 * x104 ** 6 + 3 * x103 ** 6 + \ 4 * x27 ** 6 + 5 * x10 ** 6 + 1 * x140 ** 7 + 2 * x54 ** 7 + 3 * x5 ** 7 + 4 * x70 ** 7 + 5 * x114 ** 7 + \ 1 * x57 ** 8 + 2 * x74 ** 8 + 3 * x26 ** 8 + 4 * x19 ** 8 + 5 * x111 ** 8 + 1 * x108 ** 9 + 2 * x48 ** 9 + \ 3 * x11 ** 9 + 4 * x59 ** 9 + 5 * x123 ** 9 + 1 * x61 ** 10 + 2 * x6 ** 10 + 3 * x79 ** 10 + 4 * x71 ** 10 + \ 5 * x98 ** 10 + 1 * x34 ** 11 + 2 * x112 ** 11 + 3 * x25 ** 11 + 4 * x93 ** 11 + 5 * x86 ** 11 + 1 * x64 ** 12 + \ 2 * x120 ** 12 + 3 * x20 ** 12 + 4 * x16 ** 12 + 5 * x94 ** 12 + 1 * x76 ** 13 + 2 * x21 ** 13 + 3 * x129 ** 13 + \ 4 * x146 ** 13 + 5 * x77 ** 13 + 1 * x46 ** 14 + 2 * x91 ** 14 + 3 * x31 ** 14 + 4 * x67 ** 14 + 5 * x150 ** 14 + \ 1 * x72 ** 15 + 2 * x84 ** 15 + 3 * x136 ** 15 + 4 * x15 ** 15 + 5 * x149 ** 15 + 1 * x2 ** 16 + 2 * x116 ** 16 + \ 3 * x66 ** 16 + 4 * x42 ** 16 + 5 * x45 ** 16 + 1 * x63 ** 17 + 2 * x85 ** 17 + 3 * x143 ** 17 + 4 * x4 ** 17 + \ 5 * x29 ** 17 + 1 * x113 ** 18 + 2 * x50 ** 18 + 3 * x132 ** 18 + 4 * x127 ** 18 + 5 * x30 ** 18 + 1 * x109 ** 19 +\ 2 * x131 ** 19 + 3 * x36 ** 19 + 4 * x9 ** 19 + 5 * x43 ** 19 + 1 * x119 ** 20 + 2 * x8 ** 20 + 3 * x68 ** 20 + \ 4 * x107 ** 20 + 5 * x12 ** 20 + 1 * x32 ** 21 + 2 * x122 ** 21 + 3 * x115 ** 21 + 4 * x75 ** 21 + 5 * x49 ** 21 + \ 1 * x110 ** 22 + 2 * x40 ** 22 + 3 * x17 ** 22 + 4 * x134 ** 22 + 5 * x128 ** 22 + 1 * x18 ** 23 + 2 * x142 ** 23 +\ 3 * x133 ** 23 + 4 * x24 ** 23 + 5 * x102 ** 23 + 1 * x145 ** 24 + 2 * x33 ** 24 + 3 * x106 ** 24 + 4 * x58 ** 24 +\ 5 * x47 ** 24 + 1 * x22 ** 25 + 2 * x118 ** 25 + 3 * x44 ** 25 + 4 * x35 ** 25 + 5 * x90 ** 25 + 1 * x96 ** 26 + \ 2 * x62 ** 26 + 3 * x78 ** 26 + 4 * x39 ** 26 + 5 * x99 ** 26 + 1 * x117 ** 27 + 2 * x1 ** 27 + 3 * x3 ** 27 + \ 4 * x7 ** 27 + 5 * x52 ** 27 + 1 * x60 ** 28 + 2 * x124 ** 28 + 3 * x139 ** 28 + 4 * x101 ** 28 + 5 * x23 ** 28 + \ 1 * x92 ** 29 + 2 * x148 ** 29 + 3 * x137 ** 29 + 4 * x89 ** 29 + 5 * x51 ** 29 + 1 * x41 ** 30 + 2 * x13 ** 30 + \ 3 * x130 ** 30 + 4 * x138 ** 30 + 5 * x56 ** 30 print("y = %s" % y)
x1 = 3 x2 = 1 x3 = 5 x4 = 3 x5 = 3 x6 = 3 x7 = 3 x8 = 3 x9 = 3 x10 = 2 x11 = 2 x12 = 4 x13 = 4 x14 = 2 x15 = 2 x16 = 1 x17 = 2 x18 = 5 x19 = 1 x20 = 1 x21 = 1 x22 = 1 x23 = 1 x24 = 2 x25 = 4 x26 = 2 x27 = 3 x28 = 1 x29 = 2 x30 = 4 x31 = 4 x32 = 1 x33 = 4 x34 = 1 x35 = 2 x36 = 1 x37 = 3 x38 = 2 x39 = 1 x40 = 2 x41 = 3 x42 = 3 x43 = 2 x44 = 2 x45 = 2 x46 = 4 x47 = 4 x48 = 2 x49 = 2 x50 = 2 x51 = 2 x52 = 1 x53 = 4 x54 = 3 x55 = 3 x56 = 1 x57 = 2 x58 = 3 x59 = 3 x60 = 3 x61 = 1 x62 = 3 x63 = 3 x64 = 4 x65 = 3 x66 = 2 x67 = 3 x68 = 3 x69 = 3 x70 = 2 x71 = 4 x72 = 1 x73 = 3 x74 = 2 x75 = 3 x76 = 1 x77 = 3 x78 = 1 x79 = 4 x80 = 2 x81 = 1 x82 = 1 x83 = 2 x84 = 4 x85 = 5 x86 = 3 x87 = 4 x88 = 2 x89 = 2 x90 = 1 x91 = 2 x92 = 1 x93 = 2 x94 = 1 x95 = 2 x96 = 3 x97 = 3 x98 = 2 x99 = 2 x100 = 3 x101 = 4 x102 = 3 x103 = 2 x104 = 2 x105 = 3 x106 = 5 x107 = 4 x108 = 2 x109 = 1 x110 = 4 x111 = 3 x112 = 4 x113 = 2 x114 = 2 x115 = 4 x116 = 4 x117 = 2 x118 = 3 x119 = 2 x120 = 4 x121 = 3 x122 = 2 x123 = 4 x124 = 4 x125 = 3 x126 = 4 x127 = 1 x128 = 3 x129 = 3 x130 = 5 x131 = 4 x132 = 3 x133 = 1 x134 = 2 x135 = 1 x136 = 1 x137 = 4 x138 = 4 x139 = 3 x140 = 1 x141 = 4 x142 = 1 x143 = 1 x144 = 4 x145 = 5 x146 = 4 x147 = 1 x148 = 4 x149 = 3 x150 = 3 y = 1 * x147 ** 1 + 2 * x80 ** 1 + 3 * x55 ** 1 + 4 * x81 ** 1 + 5 * x87 ** 1 + 1 * x82 ** 2 + 2 * x88 ** 2 + 3 * x83 ** 2 + 4 * x144 ** 2 + 5 * x38 ** 2 + 1 * x135 ** 3 + 2 * x125 ** 3 + 3 * x14 ** 3 + 4 * x65 ** 3 + 5 * x95 ** 3 + 1 * x73 ** 4 + 2 * x37 ** 4 + 3 * x105 ** 4 + 4 * x28 ** 4 + 5 * x121 ** 4 + 1 * x100 ** 5 + 2 * x141 ** 5 + 3 * x69 ** 5 + 4 * x97 ** 5 + 5 * x53 ** 5 + 1 * x126 ** 6 + 2 * x104 ** 6 + 3 * x103 ** 6 + 4 * x27 ** 6 + 5 * x10 ** 6 + 1 * x140 ** 7 + 2 * x54 ** 7 + 3 * x5 ** 7 + 4 * x70 ** 7 + 5 * x114 ** 7 + 1 * x57 ** 8 + 2 * x74 ** 8 + 3 * x26 ** 8 + 4 * x19 ** 8 + 5 * x111 ** 8 + 1 * x108 ** 9 + 2 * x48 ** 9 + 3 * x11 ** 9 + 4 * x59 ** 9 + 5 * x123 ** 9 + 1 * x61 ** 10 + 2 * x6 ** 10 + 3 * x79 ** 10 + 4 * x71 ** 10 + 5 * x98 ** 10 + 1 * x34 ** 11 + 2 * x112 ** 11 + 3 * x25 ** 11 + 4 * x93 ** 11 + 5 * x86 ** 11 + 1 * x64 ** 12 + 2 * x120 ** 12 + 3 * x20 ** 12 + 4 * x16 ** 12 + 5 * x94 ** 12 + 1 * x76 ** 13 + 2 * x21 ** 13 + 3 * x129 ** 13 + 4 * x146 ** 13 + 5 * x77 ** 13 + 1 * x46 ** 14 + 2 * x91 ** 14 + 3 * x31 ** 14 + 4 * x67 ** 14 + 5 * x150 ** 14 + 1 * x72 ** 15 + 2 * x84 ** 15 + 3 * x136 ** 15 + 4 * x15 ** 15 + 5 * x149 ** 15 + 1 * x2 ** 16 + 2 * x116 ** 16 + 3 * x66 ** 16 + 4 * x42 ** 16 + 5 * x45 ** 16 + 1 * x63 ** 17 + 2 * x85 ** 17 + 3 * x143 ** 17 + 4 * x4 ** 17 + 5 * x29 ** 17 + 1 * x113 ** 18 + 2 * x50 ** 18 + 3 * x132 ** 18 + 4 * x127 ** 18 + 5 * x30 ** 18 + 1 * x109 ** 19 + 2 * x131 ** 19 + 3 * x36 ** 19 + 4 * x9 ** 19 + 5 * x43 ** 19 + 1 * x119 ** 20 + 2 * x8 ** 20 + 3 * x68 ** 20 + 4 * x107 ** 20 + 5 * x12 ** 20 + 1 * x32 ** 21 + 2 * x122 ** 21 + 3 * x115 ** 21 + 4 * x75 ** 21 + 5 * x49 ** 21 + 1 * x110 ** 22 + 2 * x40 ** 22 + 3 * x17 ** 22 + 4 * x134 ** 22 + 5 * x128 ** 22 + 1 * x18 ** 23 + 2 * x142 ** 23 + 3 * x133 ** 23 + 4 * x24 ** 23 + 5 * x102 ** 23 + 1 * x145 ** 24 + 2 * x33 ** 24 + 3 * x106 ** 24 + 4 * x58 ** 24 + 5 * x47 ** 24 + 1 * x22 ** 25 + 2 * x118 ** 25 + 3 * x44 ** 25 + 4 * x35 ** 25 + 5 * x90 ** 25 + 1 * x96 ** 26 + 2 * x62 ** 26 + 3 * x78 ** 26 + 4 * x39 ** 26 + 5 * x99 ** 26 + 1 * x117 ** 27 + 2 * x1 ** 27 + 3 * x3 ** 27 + 4 * x7 ** 27 + 5 * x52 ** 27 + 1 * x60 ** 28 + 2 * x124 ** 28 + 3 * x139 ** 28 + 4 * x101 ** 28 + 5 * x23 ** 28 + 1 * x92 ** 29 + 2 * x148 ** 29 + 3 * x137 ** 29 + 4 * x89 ** 29 + 5 * x51 ** 29 + 1 * x41 ** 30 + 2 * x13 ** 30 + 3 * x130 ** 30 + 4 * x138 ** 30 + 5 * x56 ** 30 print('y = %s' % y)
def solve(): n=int(input()) row,col=(n,n) res="" for i in range(row): for j in range(col): if i==j: res+='1 ' elif i==j-1: res+='1 ' elif i==j+1: res+='1 ' else: res+='0 ' if i!=n-1: res+='\n' print(res) for _ in range(int(input())): solve()
def solve(): n = int(input()) (row, col) = (n, n) res = '' for i in range(row): for j in range(col): if i == j: res += '1 ' elif i == j - 1: res += '1 ' elif i == j + 1: res += '1 ' else: res += '0 ' if i != n - 1: res += '\n' print(res) for _ in range(int(input())): solve()
tuple_a = 1, 2 tuple_b = (1, 2) print(tuple_a == tuple_b) print(tuple_a[1]) AngkorWat = (13.4125, 103.866667) print(type(AngkorWat)) # <class 'tuple'=""> print("AngkorWat is at latitude: {}".format(AngkorWat[0])) # AngkorWat is at latitude: 13.4125 print("AngkorWat is at longitude: {}".format(AngkorWat[1])) # AngkorWat is at longitude: 103.866667
tuple_a = (1, 2) tuple_b = (1, 2) print(tuple_a == tuple_b) print(tuple_a[1]) angkor_wat = (13.4125, 103.866667) print(type(AngkorWat)) print('AngkorWat is at latitude: {}'.format(AngkorWat[0])) print('AngkorWat is at longitude: {}'.format(AngkorWat[1]))
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Battery runner classes and Report classes ''' class BatteryRunner(object): def __init__(self, checks): self._checks = checks def check_only(self, obj): reports = [] for check in self._checks: reports.append(check(obj, False)) return reports def check_fix(self, obj): reports = [] for check in self._checks: report = check(obj, True) obj = report.obj reports.append(report) return obj, reports def __len__(self): return len(self._checks) class Report(object): def __init__(self, obj=None, error=None, problem_level=0, problem_msg='', fix_msg=''): ''' Initialize report with values Parameters ---------- obj : object object tested, possibly fixed. Default is None error : None or Exception Error to raise if raising error for this check. If None, no error can be raised for this check (it was probably normal). problem_level : int level of problem. From 0 (no problem) to 50 (severe problem). If the report originates from a fix, then this is the level of the problem remaining after the fix. Default is 0 problem_msg : string String describing problem detected. Default is '' fix_msg : string String describing any fix applied. Default is ''. Examples -------- >>> rep = Report() >>> rep.problem_level 0 >>> rep = Report((), TypeError, 10) >>> rep.problem_level 10 ''' self.obj = obj self.error = error self.problem_level = problem_level self.problem_msg = problem_msg self.fix_msg = fix_msg def __eq__(self, other): ''' Test for equality Parameters ---------- other : object report-like object to test equality Examples -------- >>> rep = Report(problem_level=10) >>> rep2 = Report(problem_level=10) >>> rep == rep2 True >>> rep3 = Report(problem_level=20) >>> rep == rep3 False ''' return (self.__dict__ == other.__dict__) def __ne__(self, other): ''' Test for equality Parameters ---------- other : object report-like object to test equality See __eq__ docstring for examples ''' return (self.__dict__ != other.__dict__) def __str__(self): ''' Printable string for object ''' return self.__dict__.__str__() @property def message(self): ''' formatted message string, including fix message if present ''' if self.fix_msg: return '; '.join((self.problem_msg, self.fix_msg)) return self.problem_msg def log_raise(self, logger, error_level=40): ''' Log problem, raise error if problem >= `error_level` Parameters ---------- logger : log log object, implementing ``log`` method error_level : int, optional If ``self.problem_level`` >= `error_level`, raise error ''' logger.log(self.problem_level, self.message) if self.problem_level and self.problem_level >= error_level: if self.error: raise self.error(self.problem_msg) def write_raise(self, stream, error_level=40, log_level=30): if self.problem_level >= log_level: stream.write('Level %s: %s\n' % (self.problem_level, self.message)) if self.problem_level and self.problem_level >= error_level: if self.error: raise self.error(self.problem_msg)
""" Battery runner classes and Report classes """ class Batteryrunner(object): def __init__(self, checks): self._checks = checks def check_only(self, obj): reports = [] for check in self._checks: reports.append(check(obj, False)) return reports def check_fix(self, obj): reports = [] for check in self._checks: report = check(obj, True) obj = report.obj reports.append(report) return (obj, reports) def __len__(self): return len(self._checks) class Report(object): def __init__(self, obj=None, error=None, problem_level=0, problem_msg='', fix_msg=''): """ Initialize report with values Parameters ---------- obj : object object tested, possibly fixed. Default is None error : None or Exception Error to raise if raising error for this check. If None, no error can be raised for this check (it was probably normal). problem_level : int level of problem. From 0 (no problem) to 50 (severe problem). If the report originates from a fix, then this is the level of the problem remaining after the fix. Default is 0 problem_msg : string String describing problem detected. Default is '' fix_msg : string String describing any fix applied. Default is ''. Examples -------- >>> rep = Report() >>> rep.problem_level 0 >>> rep = Report((), TypeError, 10) >>> rep.problem_level 10 """ self.obj = obj self.error = error self.problem_level = problem_level self.problem_msg = problem_msg self.fix_msg = fix_msg def __eq__(self, other): """ Test for equality Parameters ---------- other : object report-like object to test equality Examples -------- >>> rep = Report(problem_level=10) >>> rep2 = Report(problem_level=10) >>> rep == rep2 True >>> rep3 = Report(problem_level=20) >>> rep == rep3 False """ return self.__dict__ == other.__dict__ def __ne__(self, other): """ Test for equality Parameters ---------- other : object report-like object to test equality See __eq__ docstring for examples """ return self.__dict__ != other.__dict__ def __str__(self): """ Printable string for object """ return self.__dict__.__str__() @property def message(self): """ formatted message string, including fix message if present """ if self.fix_msg: return '; '.join((self.problem_msg, self.fix_msg)) return self.problem_msg def log_raise(self, logger, error_level=40): """ Log problem, raise error if problem >= `error_level` Parameters ---------- logger : log log object, implementing ``log`` method error_level : int, optional If ``self.problem_level`` >= `error_level`, raise error """ logger.log(self.problem_level, self.message) if self.problem_level and self.problem_level >= error_level: if self.error: raise self.error(self.problem_msg) def write_raise(self, stream, error_level=40, log_level=30): if self.problem_level >= log_level: stream.write('Level %s: %s\n' % (self.problem_level, self.message)) if self.problem_level and self.problem_level >= error_level: if self.error: raise self.error(self.problem_msg)
class Solution: def spiralOrder(self, matrix) -> list: result = [] m = len(matrix) n = len(matrix[0]) flag = [[False] * n for _ in range(m)] i = 0 j = 0 orient = (0, 1) # (0, 1)=left, (1, 0)=down, (0, -1)=right, (-1, 0)=up while len(result) < m * n: result.append(matrix[i][j]) flag[i][j] = True next_i, next_j = i + orient[0], j + orient[1] if 0 <= next_i < m and 0 <= next_j < n and not flag[next_i][next_j]: i, j = next_i, next_j else: if orient == (0, 1): orient = (1, 0) elif orient == (1, 0): orient = (0, -1) elif orient == (0, -1): orient = (-1, 0) elif orient == (-1, 0): orient = (0, 1) i, j = i + orient[0], j + orient[1] return result
class Solution: def spiral_order(self, matrix) -> list: result = [] m = len(matrix) n = len(matrix[0]) flag = [[False] * n for _ in range(m)] i = 0 j = 0 orient = (0, 1) while len(result) < m * n: result.append(matrix[i][j]) flag[i][j] = True (next_i, next_j) = (i + orient[0], j + orient[1]) if 0 <= next_i < m and 0 <= next_j < n and (not flag[next_i][next_j]): (i, j) = (next_i, next_j) else: if orient == (0, 1): orient = (1, 0) elif orient == (1, 0): orient = (0, -1) elif orient == (0, -1): orient = (-1, 0) elif orient == (-1, 0): orient = (0, 1) (i, j) = (i + orient[0], j + orient[1]) return result
class RequireTwoFactorException(Exception): pass class LoginFailedException(Exception): pass
class Requiretwofactorexception(Exception): pass class Loginfailedexception(Exception): pass
### Default Pins M5Stack bzw. Mapping auf IoTKitV3.1 small DEFAULT_IOTKIT_LED1 = 27 # ohne Funktion - internes Neopixel verwenden DEFAULT_IOTKIT_BUZZER = 27 # ohne Funktion - internen Vibrationsmotor verwenden DEFAULT_IOTKIT_BUTTON1 = 39 # Pushbotton A unter Touchscreen M5Stack # Port A DEFAULT_IOTKIT_I2C_SDA = 32 DEFAULT_IOTKIT_I2C_SCL = 33 # Port B DEFAULT_IOTKIT_PORT_B_DAC = 26 DEFAULT_IOTKIT_PORT_B_ADC = 27 # Port C DEFAULT_IOTKIT_PORT_C_TX = 14 DEFAULT_IOTKIT_PORT_C_RX = 13 # Port D - kann auf dem Shield bei Grove A4/A5 abgegriffen werden DEFAULT_IOTKIT_PORT_C_TX = 1 DEFAULT_IOTKIT_PORT_C_RX = 3 # L293D mit 1 x DC Motor (zweiter ohne Funktion) DEFAULT_IOTKIT_MOTOR1_FWD = 2 DEFAULT_IOTKIT_MOTOR1_PWM = 19 DEFAULT_IOTKIT_MOTOR1_REV = 0 DEFAULT_IOTKIT_MOTOR2_FWD = -1 DEFAULT_IOTKIT_MOTOR2_PWM = -1 DEFAULT_IOTKIT_MOTOR2_REW = -1 # SPI Bus inkl. SS Pin fuer RFID Reader DEFAULT_IOTKIT_SPI_SCLK = 18 DEFAULT_IOTKIT_SPI_MISO = 38 DEFAULT_IOTKIT_SPI_MOSI = 23 DEFAULT_IOTKIT_SPI_SS = 25 # Servos gleich wie Port B DEFAULT_IOTKIT_SERVO1 = 26 DEFAULT_IOTKIT_SERVO2 = 27 # ADC - Analog Pins DEFAULT_IOTKIT_POTI = 35 DEFAULT_IOTKIT_HALL_SENSOR = 36
default_iotkit_led1 = 27 default_iotkit_buzzer = 27 default_iotkit_button1 = 39 default_iotkit_i2_c_sda = 32 default_iotkit_i2_c_scl = 33 default_iotkit_port_b_dac = 26 default_iotkit_port_b_adc = 27 default_iotkit_port_c_tx = 14 default_iotkit_port_c_rx = 13 default_iotkit_port_c_tx = 1 default_iotkit_port_c_rx = 3 default_iotkit_motor1_fwd = 2 default_iotkit_motor1_pwm = 19 default_iotkit_motor1_rev = 0 default_iotkit_motor2_fwd = -1 default_iotkit_motor2_pwm = -1 default_iotkit_motor2_rew = -1 default_iotkit_spi_sclk = 18 default_iotkit_spi_miso = 38 default_iotkit_spi_mosi = 23 default_iotkit_spi_ss = 25 default_iotkit_servo1 = 26 default_iotkit_servo2 = 27 default_iotkit_poti = 35 default_iotkit_hall_sensor = 36
categories = [ (82, False, "player", "defense_ast", "Assist to a tackle."), (91, False, "player", "defense_ffum", "Defensive player forced a fumble."), (88, False, "player", "defense_fgblk", "Defensive player blocked a field goal."), (60, False, "player", "defense_frec", "Defensive player recovered a fumble by the opposing team."), (62, False, "player", "defense_frec_tds", "Defensive player scored a touchdown after recovering a fumble by the opposing team."), (62, False, "player", "defense_frec_yds", "Yards gained by a defensive player after recovering a fumble by the opposing team."), (26, False, "player", "defense_int", "An interception."), (28, False, "player", "defense_int_tds", "A touchdown scored after an interception."), (28, False, "player", "defense_int_yds", "Yards gained after an interception."), (64, False, "player", "defense_misc_tds", "A touchdown scored on miscellaneous yardage (e.g., on a missed field goal or a blocked punt)."), (64, False, "player", "defense_misc_yds", "Miscellaneous yards gained by a defensive player (e.g., yardage on a missed field goal or blocked punt)."), (85, False, "player", "defense_pass_def", "Incomplete pass was due primarily to a defensive player's action."), (86, False, "player", "defense_puntblk", "Defensive player blocked a punt."), (110, False, "player", "defense_qbhit", "Defensive player knocked the quarterback to the ground and the quarterback was not the ball carrier."), (89, False, "player", "defense_safe", "Tackle by a defensive player that resulted in a safety. This is in addition to a tackle."), (84, True, "player", "defense_sk", "Defensive player sacked the quarterback. Note that this is the only field that is a floating point number. Namely, there can be half-credit sacks."), (84, False, "player", "defense_sk_yds", "Yards lost as a result of a sack."), (80, False, "player", "defense_tkl", "A defensive player tackle. (This include defense_tkl_primary.)"), (120, False, "player", "defense_tkl_loss", "Defensive player tackled the runner behind the line of scrimmage. Play must have ended, player must have received a tackle stat, has to be an offensive player tackled."), (402, False, "player", "defense_tkl_loss_yds", "The number of yards lost caused by a defensive tackle behind the line of scrimmage."), (80, False, "player", "defense_tkl_primary", "Defensive player was the primary tackler."), (87, False, "player", "defense_xpblk", "Defensive player blocked the extra point."), (5, False, "play", "first_down", "A first down or TD occurred due to a penalty. A play can have a first down from a pass or rush and from a penalty."), (9, False, "play", "fourth_down_att", "4th down play."), (8, False, "play", "fourth_down_conv", "4th down play resulted in a first down or touchdown."), (9, False, "play", "fourth_down_failed", "4th down play did not result in a first down or touchdown."), (52, False, "player", "fumbles_forced", "Player fumbled the ball, fumble was forced by another player."), (106, False, "player", "fumbles_lost", "Player fumbled the ball and the opposing team recovered it."), (53, False, "player", "fumbles_notforced", "Player fumbled the ball that was not caused by a defensive player."), (54, False, "player", "fumbles_oob", "Player fumbled the ball, and the ball went out of bounds."), (56, False, "player", "fumbles_rec", "Fumble recovery from a player on the same team."), (58, False, "player", "fumbles_rec_tds", "A touchdown after a fumble recovery from a player on the same team."), (58, False, "player", "fumbles_rec_yds", "Yards gained after a fumble recovery from a player on the same team."), (54, False, "player", "fumbles_tot", "Total number of fumbles by a player. Includes forced, not forced and out-of-bounds."), (410, False, "player", "kicking_all_yds", "Kickoff and length of kick. Includes end zone yards for all kicks into the end zone, including kickoffs ending in a touchback."), (102, False, "player", "kicking_downed", "A downed kickoff. A kickoff is downed when touched by an offensive player within the 10 yard free zone, and the ball is awarded to the receivers at the spot of the touch."), (71, False, "player", "kicking_fga", "A field goal attempt, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage."), (71, False, "player", "kicking_fgb", "Field goal was blocked. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage."), (70, False, "player", "kicking_fgm", "A field goal."), (70, False, "player", "kicking_fgm_yds", "The length of a successful field goal."), (71, False, "player", "kicking_fgmissed", "The field goal was unsuccessful, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage."), (71, False, "player", "kicking_fgmissed_yds", "The length of an unsuccessful field goal, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage."), (42, False, "player", "kicking_i20", "Kickoff and length of kick, where return ended inside opponent's 20 yard line."), (108, False, "player", "kicking_rec", "Recovery of own kickoff, whether or not the kickoff is onside."), (108, False, "player", "kicking_rec_tds", "Touchdown resulting from direct recovery in endzone of own kickoff, whether or not the kickoff is onside."), (44, False, "player", "kicking_tot", "A kickoff."), (44, False, "player", "kicking_touchback", "A kickoff that resulted in a touchback."), (74, False, "player", "kicking_xpa", "An extra point attempt."), (74, False, "player", "kicking_xpb", "Extra point was blocked."), (72, False, "player", "kicking_xpmade", "Extra point good."), (74, False, "player", "kicking_xpmissed", "Extra point missed. This includes blocked extra points."), (44, False, "player", "kicking_yds", "The length of a kickoff."), (50, False, "player", "kickret_fair", "A fair catch kickoff return."), (49, False, "player", "kickret_oob", "Kicked ball went out of bounds."), (46, False, "player", "kickret_ret", "A kickoff return."), (48, False, "player", "kickret_tds", "A kickoff return touchdown."), (51, False, "player", "kickret_touchback", "A kickoff return that resulted in a touchback."), (48, False, "player", "kickret_yds", "Yards gained by a kickoff return."), (19, False, "player", "passing_att", "A pass attempt."), (16, False, "player", "passing_cmp", "A pass completion."), (111, False, "player", "passing_cmp_air_yds", "Length of a pass, not including the yards gained by the receiver after the catch."), (4, False, "play", "passing_first_down", "A first down or TD occurred due to a pass."), (19, False, "player", "passing_incmp", "Pass was incomplete."), (112, False, "player", "passing_incmp_air_yds", "Length of the pass, if it would have been a completion."), (19, False, "player", "passing_int", "Pass attempt that resulted in an interception."), (20, False, "player", "passing_sk", "The player was sacked."), (103, False, "player", "passing_sk_yds", "The yards lost by a player that was sacked."), (16, False, "player", "passing_tds", "A pass completion that resulted in a touchdown."), (78, False, "player", "passing_twopta", "A passing two-point conversion attempt."), (77, False, "player", "passing_twoptm", "A successful passing two-point conversion."), (78, False, "player", "passing_twoptmissed", "An unsuccessful passing two-point conversion."), (16, False, "player", "passing_yds", "Total yards resulting from a pass completion."), (93, False, "play", "penalty", "A penalty occurred."), (5, False, "play", "penalty_first_down", "A first down or TD occurred due to a penalty."), (93, False, "play", "penalty_yds", "The number of yards gained or lost from a penalty."), (2, False, "player", "punting_blk", "Punt was blocked. A blocked punt is a punt that is touched behind the line of scrimmage, and is recovered, or goes out of bounds, behind the line of scrimmage. If the impetus of the punt takes it beyond the line of scrimmage, it is not a blocked punt."), (30, False, "player", "punting_i20", "A punt where the punt return ended inside the opponent's 20 yard line."), (32, False, "player", "punting_tot", "A punt."), (32, False, "player", "punting_touchback", "A punt that results in a touchback."), (32, False, "player", "punting_yds", "The length of a punt."), (38, False, "player", "puntret_downed", "Punt return where the ball was downed by kicking team."), (39, False, "player", "puntret_fair", "Punt return resulted in a fair catch."), (37, False, "player", "puntret_oob", "Punt went out of bounds."), (36, False, "player", "puntret_tds", "A punt return touchdown."), (34, False, "player", "puntret_tot", "A punt return."), (40, False, "player", "puntret_touchback", "A punt return that resulted in a touchback."), (36, False, "player", "puntret_yds", "Yards gained by a punt return."), (22, False, "player", "receiving_rec", "A reception."), (115, False, "player", "receiving_tar", "Player was the target of a pass attempt."), (24, False, "player", "receiving_tds", "A reception that results in a touchdown."), (105, False, "player", "receiving_twopta", "A receiving two-point conversion attempt."), (104, False, "player", "receiving_twoptm", "A successful receiving two-point conversion."), (105, False, "player", "receiving_twoptmissed", "An unsuccessful receiving two-point conversion."), (113, False, "player", "receiving_yac_yds", "Yardage from where the ball was caught until the player's action was over."), (24, False, "player", "receiving_yds", "Yards resulting from a reception."), (11, False, "player", "rushing_att", "A rushing attempt."), (3, False, "play", "rushing_first_down", "A first down or TD occurred due to a rush."), (95, False, "player", "rushing_loss", "Ball carrier was tackled for a loss behind the line of scrimmage, where at least one defensive player is credited with ending the rush with a tackle, or tackle assist."), (95, False, "player", "rushing_loss_yds", "Yards lost from the ball carrier being tackled for a loss behind the line of scrimmage, where at least one defensive player is credited with ending the rush with a tackle, or tackle assist."), (13, False, "player", "rushing_tds", "A touchdown resulting from a rush attempt."), (76, False, "player", "rushing_twopta", "A rushing two-point conversion attempt."), (75, False, "player", "rushing_twoptm", "A successful rushing two-point conversion."), (76, False, "player", "rushing_twoptmissed", "An unsuccessful rushing two-point conversion."), (13, False, "player", "rushing_yds", "Yards resulting from a rush."), (7, False, "play", "third_down_att", "3rd down play."), (6, False, "play", "third_down_conv", "3rd down play resulted in a first down or touchdown."), (7, False, "play", "third_down_failed", "3rd down play did not result in a first down or touchdown."), (68, False, "play", "timeout", "Team took a time out."), (301, False, "play", "xp_aborted", "The extra point was aborted."), ]
categories = [(82, False, 'player', 'defense_ast', 'Assist to a tackle.'), (91, False, 'player', 'defense_ffum', 'Defensive player forced a fumble.'), (88, False, 'player', 'defense_fgblk', 'Defensive player blocked a field goal.'), (60, False, 'player', 'defense_frec', 'Defensive player recovered a fumble by the opposing team.'), (62, False, 'player', 'defense_frec_tds', 'Defensive player scored a touchdown after recovering a fumble by the opposing team.'), (62, False, 'player', 'defense_frec_yds', 'Yards gained by a defensive player after recovering a fumble by the opposing team.'), (26, False, 'player', 'defense_int', 'An interception.'), (28, False, 'player', 'defense_int_tds', 'A touchdown scored after an interception.'), (28, False, 'player', 'defense_int_yds', 'Yards gained after an interception.'), (64, False, 'player', 'defense_misc_tds', 'A touchdown scored on miscellaneous yardage (e.g., on a missed field goal or a blocked punt).'), (64, False, 'player', 'defense_misc_yds', 'Miscellaneous yards gained by a defensive player (e.g., yardage on a missed field goal or blocked punt).'), (85, False, 'player', 'defense_pass_def', "Incomplete pass was due primarily to a defensive player's action."), (86, False, 'player', 'defense_puntblk', 'Defensive player blocked a punt.'), (110, False, 'player', 'defense_qbhit', 'Defensive player knocked the quarterback to the ground and the quarterback was not the ball carrier.'), (89, False, 'player', 'defense_safe', 'Tackle by a defensive player that resulted in a safety. This is in addition to a tackle.'), (84, True, 'player', 'defense_sk', 'Defensive player sacked the quarterback. Note that this is the only field that is a floating point number. Namely, there can be half-credit sacks.'), (84, False, 'player', 'defense_sk_yds', 'Yards lost as a result of a sack.'), (80, False, 'player', 'defense_tkl', 'A defensive player tackle. (This include defense_tkl_primary.)'), (120, False, 'player', 'defense_tkl_loss', 'Defensive player tackled the runner behind the line of scrimmage. Play must have ended, player must have received a tackle stat, has to be an offensive player tackled.'), (402, False, 'player', 'defense_tkl_loss_yds', 'The number of yards lost caused by a defensive tackle behind the line of scrimmage.'), (80, False, 'player', 'defense_tkl_primary', 'Defensive player was the primary tackler.'), (87, False, 'player', 'defense_xpblk', 'Defensive player blocked the extra point.'), (5, False, 'play', 'first_down', 'A first down or TD occurred due to a penalty. A play can have a first down from a pass or rush and from a penalty.'), (9, False, 'play', 'fourth_down_att', '4th down play.'), (8, False, 'play', 'fourth_down_conv', '4th down play resulted in a first down or touchdown.'), (9, False, 'play', 'fourth_down_failed', '4th down play did not result in a first down or touchdown.'), (52, False, 'player', 'fumbles_forced', 'Player fumbled the ball, fumble was forced by another player.'), (106, False, 'player', 'fumbles_lost', 'Player fumbled the ball and the opposing team recovered it.'), (53, False, 'player', 'fumbles_notforced', 'Player fumbled the ball that was not caused by a defensive player.'), (54, False, 'player', 'fumbles_oob', 'Player fumbled the ball, and the ball went out of bounds.'), (56, False, 'player', 'fumbles_rec', 'Fumble recovery from a player on the same team.'), (58, False, 'player', 'fumbles_rec_tds', 'A touchdown after a fumble recovery from a player on the same team.'), (58, False, 'player', 'fumbles_rec_yds', 'Yards gained after a fumble recovery from a player on the same team.'), (54, False, 'player', 'fumbles_tot', 'Total number of fumbles by a player. Includes forced, not forced and out-of-bounds.'), (410, False, 'player', 'kicking_all_yds', 'Kickoff and length of kick. Includes end zone yards for all kicks into the end zone, including kickoffs ending in a touchback.'), (102, False, 'player', 'kicking_downed', 'A downed kickoff. A kickoff is downed when touched by an offensive player within the 10 yard free zone, and the ball is awarded to the receivers at the spot of the touch.'), (71, False, 'player', 'kicking_fga', 'A field goal attempt, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage.'), (71, False, 'player', 'kicking_fgb', 'Field goal was blocked. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage.'), (70, False, 'player', 'kicking_fgm', 'A field goal.'), (70, False, 'player', 'kicking_fgm_yds', 'The length of a successful field goal.'), (71, False, 'player', 'kicking_fgmissed', 'The field goal was unsuccessful, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage.'), (71, False, 'player', 'kicking_fgmissed_yds', 'The length of an unsuccessful field goal, including blocked field goals. Unlike a punt, a field goal is statistically blocked even if the ball does go beyond the line of scrimmage.'), (42, False, 'player', 'kicking_i20', "Kickoff and length of kick, where return ended inside opponent's 20 yard line."), (108, False, 'player', 'kicking_rec', 'Recovery of own kickoff, whether or not the kickoff is onside.'), (108, False, 'player', 'kicking_rec_tds', 'Touchdown resulting from direct recovery in endzone of own kickoff, whether or not the kickoff is onside.'), (44, False, 'player', 'kicking_tot', 'A kickoff.'), (44, False, 'player', 'kicking_touchback', 'A kickoff that resulted in a touchback.'), (74, False, 'player', 'kicking_xpa', 'An extra point attempt.'), (74, False, 'player', 'kicking_xpb', 'Extra point was blocked.'), (72, False, 'player', 'kicking_xpmade', 'Extra point good.'), (74, False, 'player', 'kicking_xpmissed', 'Extra point missed. This includes blocked extra points.'), (44, False, 'player', 'kicking_yds', 'The length of a kickoff.'), (50, False, 'player', 'kickret_fair', 'A fair catch kickoff return.'), (49, False, 'player', 'kickret_oob', 'Kicked ball went out of bounds.'), (46, False, 'player', 'kickret_ret', 'A kickoff return.'), (48, False, 'player', 'kickret_tds', 'A kickoff return touchdown.'), (51, False, 'player', 'kickret_touchback', 'A kickoff return that resulted in a touchback.'), (48, False, 'player', 'kickret_yds', 'Yards gained by a kickoff return.'), (19, False, 'player', 'passing_att', 'A pass attempt.'), (16, False, 'player', 'passing_cmp', 'A pass completion.'), (111, False, 'player', 'passing_cmp_air_yds', 'Length of a pass, not including the yards gained by the receiver after the catch.'), (4, False, 'play', 'passing_first_down', 'A first down or TD occurred due to a pass.'), (19, False, 'player', 'passing_incmp', 'Pass was incomplete.'), (112, False, 'player', 'passing_incmp_air_yds', 'Length of the pass, if it would have been a completion.'), (19, False, 'player', 'passing_int', 'Pass attempt that resulted in an interception.'), (20, False, 'player', 'passing_sk', 'The player was sacked.'), (103, False, 'player', 'passing_sk_yds', 'The yards lost by a player that was sacked.'), (16, False, 'player', 'passing_tds', 'A pass completion that resulted in a touchdown.'), (78, False, 'player', 'passing_twopta', 'A passing two-point conversion attempt.'), (77, False, 'player', 'passing_twoptm', 'A successful passing two-point conversion.'), (78, False, 'player', 'passing_twoptmissed', 'An unsuccessful passing two-point conversion.'), (16, False, 'player', 'passing_yds', 'Total yards resulting from a pass completion.'), (93, False, 'play', 'penalty', 'A penalty occurred.'), (5, False, 'play', 'penalty_first_down', 'A first down or TD occurred due to a penalty.'), (93, False, 'play', 'penalty_yds', 'The number of yards gained or lost from a penalty.'), (2, False, 'player', 'punting_blk', 'Punt was blocked. A blocked punt is a punt that is touched behind the line of scrimmage, and is recovered, or goes out of bounds, behind the line of scrimmage. If the impetus of the punt takes it beyond the line of scrimmage, it is not a blocked punt.'), (30, False, 'player', 'punting_i20', "A punt where the punt return ended inside the opponent's 20 yard line."), (32, False, 'player', 'punting_tot', 'A punt.'), (32, False, 'player', 'punting_touchback', 'A punt that results in a touchback.'), (32, False, 'player', 'punting_yds', 'The length of a punt.'), (38, False, 'player', 'puntret_downed', 'Punt return where the ball was downed by kicking team.'), (39, False, 'player', 'puntret_fair', 'Punt return resulted in a fair catch.'), (37, False, 'player', 'puntret_oob', 'Punt went out of bounds.'), (36, False, 'player', 'puntret_tds', 'A punt return touchdown.'), (34, False, 'player', 'puntret_tot', 'A punt return.'), (40, False, 'player', 'puntret_touchback', 'A punt return that resulted in a touchback.'), (36, False, 'player', 'puntret_yds', 'Yards gained by a punt return.'), (22, False, 'player', 'receiving_rec', 'A reception.'), (115, False, 'player', 'receiving_tar', 'Player was the target of a pass attempt.'), (24, False, 'player', 'receiving_tds', 'A reception that results in a touchdown.'), (105, False, 'player', 'receiving_twopta', 'A receiving two-point conversion attempt.'), (104, False, 'player', 'receiving_twoptm', 'A successful receiving two-point conversion.'), (105, False, 'player', 'receiving_twoptmissed', 'An unsuccessful receiving two-point conversion.'), (113, False, 'player', 'receiving_yac_yds', "Yardage from where the ball was caught until the player's action was over."), (24, False, 'player', 'receiving_yds', 'Yards resulting from a reception.'), (11, False, 'player', 'rushing_att', 'A rushing attempt.'), (3, False, 'play', 'rushing_first_down', 'A first down or TD occurred due to a rush.'), (95, False, 'player', 'rushing_loss', 'Ball carrier was tackled for a loss behind the line of scrimmage, where at least one defensive player is credited with ending the rush with a tackle, or tackle assist.'), (95, False, 'player', 'rushing_loss_yds', 'Yards lost from the ball carrier being tackled for a loss behind the line of scrimmage, where at least one defensive player is credited with ending the rush with a tackle, or tackle assist.'), (13, False, 'player', 'rushing_tds', 'A touchdown resulting from a rush attempt.'), (76, False, 'player', 'rushing_twopta', 'A rushing two-point conversion attempt.'), (75, False, 'player', 'rushing_twoptm', 'A successful rushing two-point conversion.'), (76, False, 'player', 'rushing_twoptmissed', 'An unsuccessful rushing two-point conversion.'), (13, False, 'player', 'rushing_yds', 'Yards resulting from a rush.'), (7, False, 'play', 'third_down_att', '3rd down play.'), (6, False, 'play', 'third_down_conv', '3rd down play resulted in a first down or touchdown.'), (7, False, 'play', 'third_down_failed', '3rd down play did not result in a first down or touchdown.'), (68, False, 'play', 'timeout', 'Team took a time out.'), (301, False, 'play', 'xp_aborted', 'The extra point was aborted.')]
JAVA_EXEC_LABEL="//third_party/openjdk:java" PHASICJ_AGENT_LABEL="//phasicj/agent:libpjagent" RENAISSANCE_JAR_LABEL="//third_party/renaissance:jar" RENAISSANCE_MAIN_CLASS="org.renaissance.core.Launcher" PHASICJ_EXEC="//phasicj/cli" EXTRA_PHASICJ_AGENT_OPTIONS="verbose" def smoke_test_benchmark(name): native.sh_test( name = name, srcs = ["test.sh"], data = [ JAVA_EXEC_LABEL, PHASICJ_AGENT_LABEL, RENAISSANCE_JAR_LABEL, PHASICJ_EXEC, ], args = [ "$(rootpath {})".format(JAVA_EXEC_LABEL), "$(rootpath {})".format(PHASICJ_AGENT_LABEL), "$(rootpath {})".format(RENAISSANCE_JAR_LABEL), RENAISSANCE_MAIN_CLASS, "$(rootpath {})".format(PHASICJ_EXEC), EXTRA_PHASICJ_AGENT_OPTIONS, "--repetitions", "1", name ], ) KNOWN_BENCHMARKS = [ "akka-uct", "als", "chi-square", # TODO(dwtj): Figure out why this crashes. # "db-shootout", "dec-tree", "dotty", "finagle-chirper", "finagle-http", "fj-kmeans", "future-genetic", "gauss-mix", "log-regression", "mnemonics", "movie-lens", "naive-bayes", "neo4j-analytics", "page-rank", "par-mnemonics", "philosophers", "reactors", "rx-scrabble", "scala-doku", "scala-kmeans", "scala-stm-bench7", "scrabble", ] def test_each_known_renaissance_benchmark(): for benchmark in KNOWN_BENCHMARKS: smoke_test_benchmark(benchmark)
java_exec_label = '//third_party/openjdk:java' phasicj_agent_label = '//phasicj/agent:libpjagent' renaissance_jar_label = '//third_party/renaissance:jar' renaissance_main_class = 'org.renaissance.core.Launcher' phasicj_exec = '//phasicj/cli' extra_phasicj_agent_options = 'verbose' def smoke_test_benchmark(name): native.sh_test(name=name, srcs=['test.sh'], data=[JAVA_EXEC_LABEL, PHASICJ_AGENT_LABEL, RENAISSANCE_JAR_LABEL, PHASICJ_EXEC], args=['$(rootpath {})'.format(JAVA_EXEC_LABEL), '$(rootpath {})'.format(PHASICJ_AGENT_LABEL), '$(rootpath {})'.format(RENAISSANCE_JAR_LABEL), RENAISSANCE_MAIN_CLASS, '$(rootpath {})'.format(PHASICJ_EXEC), EXTRA_PHASICJ_AGENT_OPTIONS, '--repetitions', '1', name]) known_benchmarks = ['akka-uct', 'als', 'chi-square', 'dec-tree', 'dotty', 'finagle-chirper', 'finagle-http', 'fj-kmeans', 'future-genetic', 'gauss-mix', 'log-regression', 'mnemonics', 'movie-lens', 'naive-bayes', 'neo4j-analytics', 'page-rank', 'par-mnemonics', 'philosophers', 'reactors', 'rx-scrabble', 'scala-doku', 'scala-kmeans', 'scala-stm-bench7', 'scrabble'] def test_each_known_renaissance_benchmark(): for benchmark in KNOWN_BENCHMARKS: smoke_test_benchmark(benchmark)
def trace(func): def wrapper(): func_name = func.__name__ print(f'Entering "{func_name}" function') func() print(f'Exiting from "{func_name}" function') return wrapper def say_hello(): print('Hello!') say_hello = trace(say_hello) say_hello()
def trace(func): def wrapper(): func_name = func.__name__ print(f'Entering "{func_name}" function') func() print(f'Exiting from "{func_name}" function') return wrapper def say_hello(): print('Hello!') say_hello = trace(say_hello) say_hello()
bitcoin = int(input()) yuans = float(input()) commission = float(input()) / 100 bitcoin_lv = bitcoin * 1168 yuans_dollars = yuans * (0.15 * 1.76) sum_lv = bitcoin_lv + yuans_dollars sum_eur = sum_lv / 1.95 sum_eur = round(sum_eur - (commission * sum_eur), 2) print(sum_eur)
bitcoin = int(input()) yuans = float(input()) commission = float(input()) / 100 bitcoin_lv = bitcoin * 1168 yuans_dollars = yuans * (0.15 * 1.76) sum_lv = bitcoin_lv + yuans_dollars sum_eur = sum_lv / 1.95 sum_eur = round(sum_eur - commission * sum_eur, 2) print(sum_eur)
description = 'Neutron Grating Interferometer' group = 'optional' tango_base = 'tango://antareshw.antares.frm2.tum.de:10000/antares/' devices = dict( G0rz = device('nicos.devices.entangle.Motor', speed = 1, unit = 'deg', description = 'Rotation of G0 grating around beam direction', tangodevice = tango_base + 'fzjs7/G0rz', abslimits = (-400, 400), maxage = 5, pollinterval = 3, precision = 0.01, ), G0ry = device('nicos.devices.entangle.Motor', speed = 1, unit = 'deg', description = 'Rotation of G0 grating around vertical axis', tangodevice = tango_base + 'fzjs7/G0ry', abslimits = (-1, 400), maxage = 5, pollinterval = 3, precision = 0.01, ), G0tz = device('nicos.devices.entangle.Motor', speed = 0.5, unit = 'mm', description = 'Stepping of G0 perpendicular to the beam direction', tangodevice = tango_base + 'fzjs7/G0tx', abslimits = (-2, 25), maxage = 5, pollinterval = 3, precision = 0.01, ), G1tx = device('nicos.devices.entangle.Motor', speed = 50, unit = 'mum', description = 'Stepping of G1 perpendicular to the beam direction', tangodevice = tango_base + 'copley/m09', abslimits = (0, 25000), userlimits = (0, 25000), maxage = 5, pollinterval = 3, precision = 0.1, ), G1tz = device('nicos.devices.entangle.Motor', speed = 5, unit = 'mm', description = 'Translation of G1 parallel to the beam direction', tangodevice = tango_base + 'copley/m12', abslimits = (-1, 101), userlimits = (0, 100), maxage = 5, pollinterval = 3, precision = 0.001, ), G1rz = device('nicos.devices.entangle.Motor', speed = 5, unit = 'deg', description = 'Rotation of G1 around the beam axis', tangodevice = tango_base + 'copley/m10', abslimits = (-400, 400), userlimits = (-400, 400), maxage = 5, pollinterval = 3, precision = 0.001, ), G1ry = device('nicos.devices.entangle.Motor', speed = 5, unit = 'deg', description = 'Rotation of G1 around the y-axis', tangodevice = tango_base + 'copley/m14', abslimits = (-400,400), userlimits = (-400,400), maxage = 5, pollinterval = 3, precision = 0.001, ), G1gx = device('nicos.devices.entangle.Motor', speed = 5, unit = 'deg', description = 'Rotation of G1 around the x-axis', tangodevice = tango_base + 'copley/m15', abslimits = (-20, 20), userlimits = (-20, 20), maxage = 5, pollinterval = 3, precision = 0.001, ), G2rz_p = device('nicos.devices.entangle.Motor', speed = 0.2, unit = 'deg', description = 'Rotation of G1 grating around beam direction', tangodevice = tango_base + 'fzjs7/G1rz', abslimits = (-400, 400), maxage = 5, pollinterval = 3, precision = 0.0005, ), G2tz = device('nicos.devices.entangle.Motor', speed = 1, unit = 'mm', description = 'Translation of G1 in beam direction. (Talbot distance)', tangodevice = tango_base + 'fzjs7/G1tz', abslimits = (0, 20), maxage = 5, pollinterval = 3, precision = 0.05, ), G2rz = device('nicos.devices.entangle.Motor', speed = 1, unit = 'deg', description = 'Rotation of G2 and G1 around beam axis', tangodevice = tango_base + 'fzjs7/G12rz', abslimits = (-400, 400), userlimits = (-250, 250), maxage = 5, pollinterval = 3, precision = 0.01, ), )
description = 'Neutron Grating Interferometer' group = 'optional' tango_base = 'tango://antareshw.antares.frm2.tum.de:10000/antares/' devices = dict(G0rz=device('nicos.devices.entangle.Motor', speed=1, unit='deg', description='Rotation of G0 grating around beam direction', tangodevice=tango_base + 'fzjs7/G0rz', abslimits=(-400, 400), maxage=5, pollinterval=3, precision=0.01), G0ry=device('nicos.devices.entangle.Motor', speed=1, unit='deg', description='Rotation of G0 grating around vertical axis', tangodevice=tango_base + 'fzjs7/G0ry', abslimits=(-1, 400), maxage=5, pollinterval=3, precision=0.01), G0tz=device('nicos.devices.entangle.Motor', speed=0.5, unit='mm', description='Stepping of G0 perpendicular to the beam direction', tangodevice=tango_base + 'fzjs7/G0tx', abslimits=(-2, 25), maxage=5, pollinterval=3, precision=0.01), G1tx=device('nicos.devices.entangle.Motor', speed=50, unit='mum', description='Stepping of G1 perpendicular to the beam direction', tangodevice=tango_base + 'copley/m09', abslimits=(0, 25000), userlimits=(0, 25000), maxage=5, pollinterval=3, precision=0.1), G1tz=device('nicos.devices.entangle.Motor', speed=5, unit='mm', description='Translation of G1 parallel to the beam direction', tangodevice=tango_base + 'copley/m12', abslimits=(-1, 101), userlimits=(0, 100), maxage=5, pollinterval=3, precision=0.001), G1rz=device('nicos.devices.entangle.Motor', speed=5, unit='deg', description='Rotation of G1 around the beam axis', tangodevice=tango_base + 'copley/m10', abslimits=(-400, 400), userlimits=(-400, 400), maxage=5, pollinterval=3, precision=0.001), G1ry=device('nicos.devices.entangle.Motor', speed=5, unit='deg', description='Rotation of G1 around the y-axis', tangodevice=tango_base + 'copley/m14', abslimits=(-400, 400), userlimits=(-400, 400), maxage=5, pollinterval=3, precision=0.001), G1gx=device('nicos.devices.entangle.Motor', speed=5, unit='deg', description='Rotation of G1 around the x-axis', tangodevice=tango_base + 'copley/m15', abslimits=(-20, 20), userlimits=(-20, 20), maxage=5, pollinterval=3, precision=0.001), G2rz_p=device('nicos.devices.entangle.Motor', speed=0.2, unit='deg', description='Rotation of G1 grating around beam direction', tangodevice=tango_base + 'fzjs7/G1rz', abslimits=(-400, 400), maxage=5, pollinterval=3, precision=0.0005), G2tz=device('nicos.devices.entangle.Motor', speed=1, unit='mm', description='Translation of G1 in beam direction. (Talbot distance)', tangodevice=tango_base + 'fzjs7/G1tz', abslimits=(0, 20), maxage=5, pollinterval=3, precision=0.05), G2rz=device('nicos.devices.entangle.Motor', speed=1, unit='deg', description='Rotation of G2 and G1 around beam axis', tangodevice=tango_base + 'fzjs7/G12rz', abslimits=(-400, 400), userlimits=(-250, 250), maxage=5, pollinterval=3, precision=0.01))
num = int(input("Insert some numbers: ")) even = 0 odd = 0 while num > 0: if num%2 == 0: even += 1 else: odd += 1 num = num//10 print("Even numbers = %d, Odd numbers = %d" % (even,odd))
num = int(input('Insert some numbers: ')) even = 0 odd = 0 while num > 0: if num % 2 == 0: even += 1 else: odd += 1 num = num // 10 print('Even numbers = %d, Odd numbers = %d' % (even, odd))
def foo(x = []): return x.append("x") def bar(x = []): return len(x) foo() bar() class Owner(object): @classmethod def cm(cls, arg): return cls @classmethod def cm2(cls, arg): return arg #Normal method def m(self): a = self.cm(0) return a.cm2(1)
def foo(x=[]): return x.append('x') def bar(x=[]): return len(x) foo() bar() class Owner(object): @classmethod def cm(cls, arg): return cls @classmethod def cm2(cls, arg): return arg def m(self): a = self.cm(0) return a.cm2(1)
#sequence cleaner removes sequences that are ambiguous (6-mer appending the poly sequence is indefinite ("N") and shifts all "N" characters #in poly sequence right so that they can be combined def sequenceCleaner(string): if len(string) < 13: return "", 0 if string[5] == "*": return "", 0 if string[len(string)-6] == "*": return "", 0 if not "*" in string[6:len(string)-6]: return string[6:len(string)-6], len(string)-12 else: return rightShiftN(string[6:len(string)-6]) def rightShiftN(string): output = "" indefinite = "" total = 0.0 for i in string: if i == "*": indefinite = indefinite + i total += 0.51 else: output = output + i total += 1.0 output = output + indefinite return output, total
def sequence_cleaner(string): if len(string) < 13: return ('', 0) if string[5] == '*': return ('', 0) if string[len(string) - 6] == '*': return ('', 0) if not '*' in string[6:len(string) - 6]: return (string[6:len(string) - 6], len(string) - 12) else: return right_shift_n(string[6:len(string) - 6]) def right_shift_n(string): output = '' indefinite = '' total = 0.0 for i in string: if i == '*': indefinite = indefinite + i total += 0.51 else: output = output + i total += 1.0 output = output + indefinite return (output, total)
def fibonaci(n): if n <= 1: return n else: return fibonaci(n-1)+fibonaci(n-2) fibonaci(0)
def fibonaci(n): if n <= 1: return n else: return fibonaci(n - 1) + fibonaci(n - 2) fibonaci(0)
class Position: def __init__(self, idx, ln, col, fn, ftxt) -> None: self.idx = idx self.ln = ln self.col = col self.fn = fn self.ftxt = ftxt def advance(self, current_char=None): self.idx += 1 self.col += 1 if current_char == "\n": self.ln += 1 self.col = 0 return self def copy(self): return Position(self.idx, self.ln, self.col, self.fn, self.ftxt)
class Position: def __init__(self, idx, ln, col, fn, ftxt) -> None: self.idx = idx self.ln = ln self.col = col self.fn = fn self.ftxt = ftxt def advance(self, current_char=None): self.idx += 1 self.col += 1 if current_char == '\n': self.ln += 1 self.col = 0 return self def copy(self): return position(self.idx, self.ln, self.col, self.fn, self.ftxt)
def on_config(): # Here you can do all you want. print("Called.") def on_config_with_config(config): print("Called with config.") print(config["docs_dir"]) # You can change config, for example: # config['docs_dir'] = 'other_directory' # Optionally, you can return altered config to customize MkDocs. # return config def on_config_with_mkapi(config, mkapi): print("Called with config and mkapi.") print(config["docs_dir"]) print(mkapi)
def on_config(): print('Called.') def on_config_with_config(config): print('Called with config.') print(config['docs_dir']) def on_config_with_mkapi(config, mkapi): print('Called with config and mkapi.') print(config['docs_dir']) print(mkapi)
########################################################################## # Copyright (c) 2018-2019 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # File: DL4AGX/tools/nvcc/private/constants.bzl # Description: Constants for use in creating cuda rules ########################################################################## CUDA_ACCEPTABLE_SRC_EXTENSIONS = [".cu", ".c", ".cc", ".cxx", ".cpp"] CUDA_ACCEPTABLE_HDR_EXTENSIONS = [".h", ".cuh", ".hpp", ".inl"] CUDA_ACCEPTABLE_BIN_EXTENSIONS = [".ptx", ".cubin", ".fatbin", ".o", ".obj", ".a", ".lib", ".res", ".so"] CUDA_ACCEPTABLE_EXTENSIONS = CUDA_ACCEPTABLE_SRC_EXTENSIONS + CUDA_ACCEPTABLE_BIN_EXTENSIONS + CUDA_ACCEPTABLE_HDR_EXTENSIONS
cuda_acceptable_src_extensions = ['.cu', '.c', '.cc', '.cxx', '.cpp'] cuda_acceptable_hdr_extensions = ['.h', '.cuh', '.hpp', '.inl'] cuda_acceptable_bin_extensions = ['.ptx', '.cubin', '.fatbin', '.o', '.obj', '.a', '.lib', '.res', '.so'] cuda_acceptable_extensions = CUDA_ACCEPTABLE_SRC_EXTENSIONS + CUDA_ACCEPTABLE_BIN_EXTENSIONS + CUDA_ACCEPTABLE_HDR_EXTENSIONS
class Car(object): condition = "new" def __init__(self, model, color, mpg): self.model = model self.color = color self.mpg = mpg my_car = Car("Chevv", "GOLDEN", 1933) print(my_car.model) print(my_car.color) print(my_car.mpg)
class Car(object): condition = 'new' def __init__(self, model, color, mpg): self.model = model self.color = color self.mpg = mpg my_car = car('Chevv', 'GOLDEN', 1933) print(my_car.model) print(my_car.color) print(my_car.mpg)
def add(a, b) : s = a + b return s #main app begins here x = 2 y = 3 z = add(x, y) print('Sum : ', z)
def add(a, b): s = a + b return s x = 2 y = 3 z = add(x, y) print('Sum : ', z)
#service.process.factory.proc_provider_factories class ProcProviderFactories(object): def __init__(self, log): self._log = log self._factory = None def get_factory(self, process): #should instantiate the teradata factory if self._factory is None: tmp = __import__('service.process.factory.'+process.name.lower(), fromlist=[process.name+'Factory']) self._factory = getattr(tmp, process.name+'Factory')(self._log) return self._factory
class Procproviderfactories(object): def __init__(self, log): self._log = log self._factory = None def get_factory(self, process): if self._factory is None: tmp = __import__('service.process.factory.' + process.name.lower(), fromlist=[process.name + 'Factory']) self._factory = getattr(tmp, process.name + 'Factory')(self._log) return self._factory
def get_input(): file = open('inputs/bubble_sort.txt') input = file.read() file.close() return input def bubble_sort(a, n): swap_count = 0 is_sorted = False while not is_sorted: is_sorted = True for i in range(n-1): if a[i] > a[i + 1]: temp = a[i] a[i] = a[i + 1] a[i + 1] = temp is_sorted = False return a, swap_count n, a = get_input().split('\n') n = int(n) a = list(map(int, a.split(' '))) a, swap_count = bubble_sort(a, n) print('Array is sorted in {} swaps.'.format(swap_count)) print('First Element: {}'.format(a[0])) print('Last Element: {}'.format(a[n-1]))
def get_input(): file = open('inputs/bubble_sort.txt') input = file.read() file.close() return input def bubble_sort(a, n): swap_count = 0 is_sorted = False while not is_sorted: is_sorted = True for i in range(n - 1): if a[i] > a[i + 1]: temp = a[i] a[i] = a[i + 1] a[i + 1] = temp is_sorted = False return (a, swap_count) (n, a) = get_input().split('\n') n = int(n) a = list(map(int, a.split(' '))) (a, swap_count) = bubble_sort(a, n) print('Array is sorted in {} swaps.'.format(swap_count)) print('First Element: {}'.format(a[0])) print('Last Element: {}'.format(a[n - 1]))
PROJECT_ID_LIST_URL = "https://cloudresourcemanager.googleapis.com/v1/projects" HTTP_GET_METHOD = "GET" class UtilBase(object): def __init__(self, config): self.config = config self.__projectList = None def getProjectList(self): if self.__projectList != None: return self.__projectList projectData = None if self.config.getIdType() == "PROJECT": googleClient = self.config.getHttpClient() singleprojectData = googleClient.make_request( HTTP_GET_METHOD, PROJECT_ID_LIST_URL + "/" + self.config.getId(), None, None) if singleprojectData['isError']: projectData = singleprojectData else: projectData= { 'isError': singleprojectData.get("isError"), 'defaultErrorObject':singleprojectData.get("defaultErrorObject"), "data": { 'projects': [singleprojectData.get("data")] } } if singleprojectData["data"].get('lifecycleState') != "ACTIVE": raise Exception("Project Lifecycle state is: " + str(projectData['lifecycleState'])) else: projectData = { 'isError': False, 'defaultErrorObject': {}, "data": { 'projects': self.__get_Project_List(None, True) } } if projectData['isError']: raise Exception("Error fetching projects") projectList = projectData['data']['projects'] projectList = [project for project in projectList if project['lifecycleState'] == "ACTIVE"] self.__projectList = projectList return self.__projectList def __get_Project_List(self, pageToken, isBegin): if pageToken is None and not isBegin: return [] googleClient = self.config.getHttpClient() url = PROJECT_ID_LIST_URL if pageToken is not None: url = url + "?pageToken=" + pageToken + "&pageSize=100" else: url = url + "?pageSize=100" projectData = googleClient.make_request(HTTP_GET_METHOD, url, None, None) if projectData['isError']: raise Exception("Error fetching Project Information \n" + str(projectData['defaultErrorObject'])) if 'projects' not in projectData['data'] or len(projectData['data']['projects']) == 0: raise Exception("No Projects Found") projectList = projectData['data']['projects'] if 'nextPageToken' in projectData['data']: nextPageToken = str(projectData['data']['nextPageToken']) projectList = projectList + (self.__get_Project_List(nextPageToken, False)) return projectList def validateProjectId(self, projectId): projectList = self.getProjectList() for project in projectList: if project['projectId'] == projectId: return True return False
project_id_list_url = 'https://cloudresourcemanager.googleapis.com/v1/projects' http_get_method = 'GET' class Utilbase(object): def __init__(self, config): self.config = config self.__projectList = None def get_project_list(self): if self.__projectList != None: return self.__projectList project_data = None if self.config.getIdType() == 'PROJECT': google_client = self.config.getHttpClient() singleproject_data = googleClient.make_request(HTTP_GET_METHOD, PROJECT_ID_LIST_URL + '/' + self.config.getId(), None, None) if singleprojectData['isError']: project_data = singleprojectData else: project_data = {'isError': singleprojectData.get('isError'), 'defaultErrorObject': singleprojectData.get('defaultErrorObject'), 'data': {'projects': [singleprojectData.get('data')]}} if singleprojectData['data'].get('lifecycleState') != 'ACTIVE': raise exception('Project Lifecycle state is: ' + str(projectData['lifecycleState'])) else: project_data = {'isError': False, 'defaultErrorObject': {}, 'data': {'projects': self.__get_Project_List(None, True)}} if projectData['isError']: raise exception('Error fetching projects') project_list = projectData['data']['projects'] project_list = [project for project in projectList if project['lifecycleState'] == 'ACTIVE'] self.__projectList = projectList return self.__projectList def __get__project__list(self, pageToken, isBegin): if pageToken is None and (not isBegin): return [] google_client = self.config.getHttpClient() url = PROJECT_ID_LIST_URL if pageToken is not None: url = url + '?pageToken=' + pageToken + '&pageSize=100' else: url = url + '?pageSize=100' project_data = googleClient.make_request(HTTP_GET_METHOD, url, None, None) if projectData['isError']: raise exception('Error fetching Project Information \n' + str(projectData['defaultErrorObject'])) if 'projects' not in projectData['data'] or len(projectData['data']['projects']) == 0: raise exception('No Projects Found') project_list = projectData['data']['projects'] if 'nextPageToken' in projectData['data']: next_page_token = str(projectData['data']['nextPageToken']) project_list = projectList + self.__get_Project_List(nextPageToken, False) return projectList def validate_project_id(self, projectId): project_list = self.getProjectList() for project in projectList: if project['projectId'] == projectId: return True return False
NAME='logzmq' CFLAGS = [] LDFLAGS = [] LIBS = ['-lzmq'] GCC_LIST = ['plugin']
name = 'logzmq' cflags = [] ldflags = [] libs = ['-lzmq'] gcc_list = ['plugin']
# 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_android', 'depot_tools/bot_update', 'depot_tools/gclient', ] def RunSteps(api): api.gclient.set_config('chromium') api.chromium.set_config('chromium') update_step = api.bot_update.ensure_checkout() api.chromium_android.upload_apks_for_bisect( update_properties=update_step.json.output['properties'], bucket='test-bucket', path='test/%s/path') def GenTests(api): yield api.test('basic')
deps = ['chromium', 'chromium_android', 'depot_tools/bot_update', 'depot_tools/gclient'] def run_steps(api): api.gclient.set_config('chromium') api.chromium.set_config('chromium') update_step = api.bot_update.ensure_checkout() api.chromium_android.upload_apks_for_bisect(update_properties=update_step.json.output['properties'], bucket='test-bucket', path='test/%s/path') def gen_tests(api): yield api.test('basic')
# class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def solve(self, root): if root: root.left, root.right = self.solve(root.right), self.solve(root.left) return root
class Solution: def solve(self, root): if root: (root.left, root.right) = (self.solve(root.right), self.solve(root.left)) return root
products = ['bread','meat','egg','cheese'] file1 = open('products.txt','w') for product in products: file1.write(product+'\n') file1.close() file2= open('products.txt') var = file2.readlines() print(var)
products = ['bread', 'meat', 'egg', 'cheese'] file1 = open('products.txt', 'w') for product in products: file1.write(product + '\n') file1.close() file2 = open('products.txt') var = file2.readlines() print(var)
class Layer(object): def __init__(self): self.prevlayer = None self.nextlayer = None def forepropagation(self): pass def backpropagation(self): pass def initialization(self): pass
class Layer(object): def __init__(self): self.prevlayer = None self.nextlayer = None def forepropagation(self): pass def backpropagation(self): pass def initialization(self): pass
def collapse_sequences(message, collapse_char, collapsing = False): if message == '': return '' # Approach 1: prepend = message[0] if prepend == collapse_char: if collapsing: prepend = '' collapsing = True else: collapsing = False return prepend + collapse_sequences(message[1:], collapse_char, collapsing) # Approach 2: # c = message[0] # if c == collapse_char: # if collapsing: # return collapse_sequences(message[1:], collapse_char, True) # else: # return c + collapse_sequences(message[1:], collapse_char, True) # return c + collapse_sequences(message[1:], collapse_char, False) def main(): print(collapse_sequences("aabaaccaaaaaada", 'a')) if __name__ == '__main__': main()
def collapse_sequences(message, collapse_char, collapsing=False): if message == '': return '' prepend = message[0] if prepend == collapse_char: if collapsing: prepend = '' collapsing = True else: collapsing = False return prepend + collapse_sequences(message[1:], collapse_char, collapsing) def main(): print(collapse_sequences('aabaaccaaaaaada', 'a')) if __name__ == '__main__': main()
# Zombie Damage Skin success = sm.addDamageSkin(2434661) if success: sm.chat("The Zombie Damage Skin has been added to your account's damage skin collection.")
success = sm.addDamageSkin(2434661) if success: sm.chat("The Zombie Damage Skin has been added to your account's damage skin collection.")
# # Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # { 'includes': [ '../build/features.gypi', '../build/scripts/scripts.gypi', '../build/win/precompile.gypi', 'blink_platform.gypi', 'heap/blink_heap.gypi', ], 'targets': [{ 'target_name': 'blink_common', 'type': '<(component)', 'variables': { 'enable_wexit_time_destructors': 1 }, 'dependencies': [ '../config.gyp:config', '../wtf/wtf.gyp:wtf', # FIXME: Can we remove the dependency on Skia? '<(DEPTH)/skia/skia.gyp:skia', ], 'all_dependent_settings': { 'include_dirs': [ '..', ], }, 'export_dependent_settings': [ '<(DEPTH)/skia/skia.gyp:skia', ], 'defines': [ 'BLINK_COMMON_IMPLEMENTATION=1', 'INSIDE_BLINK', ], 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/blink', ], 'sources': [ 'exported/WebCString.cpp', 'exported/WebString.cpp', 'exported/WebCommon.cpp', ], }, { 'target_name': 'blink_heap_asm_stubs', 'type': 'static_library', # VS2010 does not correctly incrementally link obj files generated # from asm files. This flag disables UseLibraryDependencyInputs to # avoid this problem. 'msvs_2010_disable_uldi_when_referenced': 1, 'includes': [ '../../../yasm/yasm_compile.gypi', ], 'sources': [ '<@(platform_heap_asm_files)', ], 'variables': { 'more_yasm_flags': [], 'conditions': [ ['OS == "mac"', { 'more_yasm_flags': [ # Necessary to ensure symbols end up with a _ prefix; added by # yasm_compile.gypi for Windows, but not Mac. '-DPREFIX', ], }], ['OS == "win" and target_arch == "x64"', { 'more_yasm_flags': [ '-DX64WIN=1', ], }], ['OS != "win" and target_arch == "x64"', { 'more_yasm_flags': [ '-DX64POSIX=1', ], }], ['target_arch == "ia32"', { 'more_yasm_flags': [ '-DIA32=1', ], }], ['target_arch == "arm"', { 'more_yasm_flags': [ '-DARM=1', ], }], ], 'yasm_flags': [ '>@(more_yasm_flags)', ], 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/webcore/heap' }, }, { 'target_name': 'blink_prerequisites', 'type': 'none', 'conditions': [ ['OS=="mac"', { 'direct_dependent_settings': { 'defines': [ # Chromium's version of WebCore includes the following Objective-C # classes. The system-provided WebCore framework may also provide # these classes. Because of the nature of Objective-C binding # (dynamically at runtime), it's possible for the # Chromium-provided versions to interfere with the system-provided # versions. This may happen when a system framework attempts to # use core.framework, such as when converting an HTML-flavored # string to an NSAttributedString. The solution is to force # Objective-C class names that would conflict to use alternate # names. # # This list will hopefully shrink but may also grow. Its # performance is monitored by the "Check Objective-C Rename" # postbuild step, and any suspicious-looking symbols not handled # here or whitelisted in that step will cause a build failure. # # If this is unhandled, the console will receive log messages # such as: # com.google.Chrome[] objc[]: Class ScrollbarPrefsObserver is implemented in both .../Google Chrome.app/Contents/Versions/.../Google Chrome Helper.app/Contents/MacOS/../../../Google Chrome Framework.framework/Google Chrome Framework and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined. 'WebCascadeList=ChromiumWebCoreObjCWebCascadeList', 'WebScrollAnimationHelperDelegate=ChromiumWebCoreObjCWebScrollAnimationHelperDelegate', 'WebScrollbarPainterControllerDelegate=ChromiumWebCoreObjCWebScrollbarPainterControllerDelegate', 'WebScrollbarPainterDelegate=ChromiumWebCoreObjCWebScrollbarPainterDelegate', 'WebScrollbarPartAnimation=ChromiumWebCoreObjCWebScrollbarPartAnimation', 'WebCoreFlippedView=ChromiumWebCoreObjCWebCoreFlippedView', 'WebCoreTextFieldCell=ChromiumWebCoreObjCWebCoreTextFieldCell', ], 'postbuilds': [ { # This step ensures that any Objective-C names that aren't # redefined to be "safe" above will cause a build failure. 'postbuild_name': 'Check Objective-C Rename', 'variables': { 'class_whitelist_regex': 'ChromiumWebCoreObjC|TCMVisibleView|RTCMFlippedView|ScrollerStyleObserver|LayoutThemeNotificationObserver', 'category_whitelist_regex': 'WebCoreFocusRingDrawing|WebCoreTheme', }, 'action': [ '../build/scripts/check_objc_rename.sh', '<(class_whitelist_regex)', '<(category_whitelist_regex)', ], }, ], }, }], ], }, { 'target_name': 'blink_platform', 'type': '<(component)', 'dependencies': [ '../config.gyp:config', '../wtf/wtf.gyp:wtf', 'blink_common', 'blink_heap_asm_stubs', 'blink_prerequisites', '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/icu/icu.gyp:icui18n', '<(DEPTH)/third_party/icu/icu.gyp:icuuc', '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', '<(DEPTH)/third_party/ots/ots.gyp:ots', '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', '<(DEPTH)/url/url.gyp:url_lib', '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', 'platform_generated.gyp:make_platform_generated', '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', '<(libjpeg_gyp_path):libjpeg', ], 'export_dependent_settings': [ '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', '<(DEPTH)/third_party/ots/ots.gyp:ots', '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', '<(DEPTH)/url/url.gyp:url_lib', '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', '<(libjpeg_gyp_path):libjpeg', ], 'defines': [ 'BLINK_PLATFORM_IMPLEMENTATION=1', 'INSIDE_BLINK', ], 'include_dirs': [ '<(angle_path)/include', '<(SHARED_INTERMEDIATE_DIR)/blink', ], 'xcode_settings': { # Some Mac-specific parts of WebKit won't compile without having this # prefix header injected. 'GCC_PREFIX_HEADER': '<(DEPTH)/third_party/WebKit/Source/build/mac/Prefix.h', }, 'sources': [ '<@(platform_files)', '<@(platform_heap_files)', # Additional .cpp files from platform_generated.gyp:make_platform_generated actions. '<(blink_platform_output_dir)/FontFamilyNames.cpp', '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp', '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h', '<(blink_platform_output_dir)/ColorData.cpp', ], 'sources/': [ # Exclude all platform specific things, reinclude them below on a per-platform basis # FIXME: Figure out how to store these patterns in a variable. ['exclude', '(cf|cg|mac|opentype|win)/'], ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], # *NEON.cpp files need special compile options. # They are moved to the webcore_0_neon target. ['exclude', 'graphics/cpu/arm/.*NEON\\.(cpp|h)'], ['exclude', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'], ], # Disable c4267 warnings until we fix size_t to int truncations. # Disable c4724 warnings which is generated in VS2012 due to improper # compiler optimizations, see crbug.com/237063 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], 'conditions': [ ['OS=="linux" or OS=="android" or OS=="win"', { 'sources/': [ # Cherry-pick files excluded by the broader regular expressions above. ['include', 'fonts/opentype/OpenTypeTypes\\.h$'], ['include', 'fonts/opentype/OpenTypeVerticalData\\.(cpp|h)$'], ], 'dependencies': [ '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', ], }, ], ['OS=="linux" or OS=="android"', { 'sources/': [ ['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$'], ] }, { # OS!="linux" and OS!="android" 'sources/': [ ['exclude', 'fonts/linux/FontPlatformDataLinux\\.cpp$'], ] }], ['OS=="mac"', { 'dependencies': [ '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', ], 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', ] }, 'sources/': [ # We use LocaleMac.mm instead of LocaleICU.cpp ['exclude', 'text/LocaleICU\\.(cpp|h)$'], ['include', 'text/LocaleMac\\.mm$'], # The Mac uses mac/KillRingMac.mm instead of the dummy # implementation. ['exclude', 'KillRingNone\\.cpp$'], # The Mac build is USE(CF). ['include', 'CF\\.cpp$'], # Use native Mac font code from core. ['include', '(fonts/)?mac/[^/]*Font[^/]*\\.(cpp|mm?)$'], # TODO(dro): Merge the opentype vertical data files inclusion across all platforms. ['include', 'fonts/opentype/OpenTypeTypes\\.h$'], ['include', 'fonts/opentype/OpenTypeVerticalData\\.(cpp|h)$'], # Cherry-pick some files that can't be included by broader regexps. # Some of these are used instead of Chromium platform files, see # the specific exclusions in the "exclude" list below. ['include', 'audio/mac/FFTFrameMac\\.cpp$'], ['include', 'fonts/mac/GlyphPageTreeNodeMac\\.cpp$'], ['include', 'mac/ColorMac\\.mm$'], ['include', 'mac/BlockExceptions\\.mm$'], ['include', 'mac/KillRingMac\\.mm$'], ['include', 'mac/LocalCurrentGraphicsContext\\.mm$'], ['include', 'mac/NSScrollerImpDetails\\.mm$'], ['include', 'mac/ScrollAnimatorMac\\.mm$'], ['include', 'mac/ThemeMac\\.h$'], ['include', 'mac/ThemeMac\\.mm$'], ['include', 'mac/WebCoreNSCellExtras\\.h$'], ['include', 'mac/WebCoreNSCellExtras\\.mm$'], # Mac uses only ScrollAnimatorMac. ['exclude', 'scroll/ScrollbarThemeNonMacCommon\\.(cpp|h)$'], ['exclude', 'scroll/ScrollAnimatorNone\\.cpp$'], ['exclude', 'scroll/ScrollAnimatorNone\\.h$'], ['exclude', 'fonts/skia/FontCacheSkia\\.cpp$'], ['include', 'geometry/mac/FloatPointMac\\.mm$'], ['include', 'geometry/mac/FloatRectMac\\.mm$'], ['include', 'geometry/mac/FloatSizeMac\\.mm$'], ['include', 'geometry/mac/IntPointMac\\.mm$'], ['include', 'geometry/mac/IntRectMac\\.mm$'], ['include', 'geometry/cg/FloatPointCG\\.cpp$'], ['include', 'geometry/cg/FloatRectCG\\.cpp$'], ['include', 'geometry/cg/FloatSizeCG\\.cpp$'], ['include', 'geometry/cg/IntPointCG\\.cpp$'], ['include', 'geometry/cg/IntRectCG\\.cpp$'], ['include', 'geometry/cg/IntSizeCG\\.cpp$'], ], }, { # OS!="mac" 'sources/': [ ['exclude', 'mac/'], ['exclude', 'geometry/mac/'], ['exclude', 'geometry/cg/'], ['exclude', 'scroll/ScrollbarThemeMac'], ], }], ['OS != "linux" and OS != "mac" and OS != "win"', { 'sources/': [ ['exclude', 'VDMX[^/]+\\.(cpp|h)$'], ], }], ['OS=="win"', { 'sources/': [ # We use LocaleWin.cpp instead of LocaleICU.cpp ['exclude', 'text/LocaleICU\\.(cpp|h)$'], ['include', 'text/LocaleWin\\.(cpp|h)$'], ['include', 'clipboard/ClipboardUtilitiesWin\\.(cpp|h)$'], ['include', 'fonts/opentype/'], ['include', 'fonts/win/FontCacheSkiaWin\\.cpp$'], ['include', 'fonts/win/FontFallbackWin\\.(cpp|h)$'], ['include', 'fonts/win/FontPlatformDataWin\\.cpp$'], # SystemInfo.cpp is useful and we don't want to copy it. ['include', 'win/SystemInfo\\.cpp$'], ], }, { # OS!="win" 'sources/': [ ['exclude', 'win/'], ['exclude', 'Win\\.cpp$'], ['exclude', '/(Windows)[^/]*\\.cpp$'], ['include', 'fonts/opentype/OpenTypeSanitizer\\.cpp$'], ], }], ['OS=="win" and chromium_win_pch==1', { 'sources/': [ ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile.cpp'], ], }], ['OS=="android"', { 'sources/': [ ['include', '^fonts/VDMXParser\\.cpp$'], ], }, { # OS!="android" 'sources/': [ ['exclude', 'Android\\.cpp$'], ], }], ['OS=="linux"', { 'dependencies': [ '<(DEPTH)/build/linux/system.gyp:fontconfig', ], 'export_dependent_settings': [ '<(DEPTH)/build/linux/system.gyp:fontconfig', ], }], ['use_default_render_theme==0', { 'sources/': [ ['exclude', 'scroll/ScrollbarThemeAura\\.(cpp|h)'], ], }], ['"WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', { 'include_dirs': [ '<(DEPTH)/third_party/ffmpeg', ], 'dependencies': [ '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', ], }], ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', { 'include_dirs': [ '<(DEPTH)/third_party/openmax_dl', ], 'dependencies': [ '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl', ], }], ['target_arch=="arm"', { 'dependencies': [ 'blink_arm_neon', ], }], ], 'target_conditions': [ ['OS=="android"', { 'sources/': [ ['include', 'exported/linux/WebFontRenderStyle\\.cpp$'], ['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$'], ], }], ], }, # The *NEON.cpp files fail to compile when -mthumb is passed. Force # them to build in ARM mode. # See https://bugs.webkit.org/show_bug.cgi?id=62916. { 'target_name': 'blink_arm_neon', 'conditions': [ ['target_arch=="arm"', { 'type': 'static_library', 'dependencies': [ 'blink_common', ], 'hard_dependency': 1, 'sources': [ '<@(platform_files)', ], 'sources/': [ ['exclude', '.*'], ['include', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'], ], 'cflags': ['-marm'], 'conditions': [ ['OS=="android"', { 'cflags!': ['-mthumb'], }], ], },{ # target_arch!="arm" 'type': 'none', }], ], }], }
{'includes': ['../build/features.gypi', '../build/scripts/scripts.gypi', '../build/win/precompile.gypi', 'blink_platform.gypi', 'heap/blink_heap.gypi'], 'targets': [{'target_name': 'blink_common', 'type': '<(component)', 'variables': {'enable_wexit_time_destructors': 1}, 'dependencies': ['../config.gyp:config', '../wtf/wtf.gyp:wtf', '<(DEPTH)/skia/skia.gyp:skia'], 'all_dependent_settings': {'include_dirs': ['..']}, 'export_dependent_settings': ['<(DEPTH)/skia/skia.gyp:skia'], 'defines': ['BLINK_COMMON_IMPLEMENTATION=1', 'INSIDE_BLINK'], 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/blink'], 'sources': ['exported/WebCString.cpp', 'exported/WebString.cpp', 'exported/WebCommon.cpp']}, {'target_name': 'blink_heap_asm_stubs', 'type': 'static_library', 'msvs_2010_disable_uldi_when_referenced': 1, 'includes': ['../../../yasm/yasm_compile.gypi'], 'sources': ['<@(platform_heap_asm_files)'], 'variables': {'more_yasm_flags': [], 'conditions': [['OS == "mac"', {'more_yasm_flags': ['-DPREFIX']}], ['OS == "win" and target_arch == "x64"', {'more_yasm_flags': ['-DX64WIN=1']}], ['OS != "win" and target_arch == "x64"', {'more_yasm_flags': ['-DX64POSIX=1']}], ['target_arch == "ia32"', {'more_yasm_flags': ['-DIA32=1']}], ['target_arch == "arm"', {'more_yasm_flags': ['-DARM=1']}]], 'yasm_flags': ['>@(more_yasm_flags)'], 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/webcore/heap'}}, {'target_name': 'blink_prerequisites', 'type': 'none', 'conditions': [['OS=="mac"', {'direct_dependent_settings': {'defines': ['WebCascadeList=ChromiumWebCoreObjCWebCascadeList', 'WebScrollAnimationHelperDelegate=ChromiumWebCoreObjCWebScrollAnimationHelperDelegate', 'WebScrollbarPainterControllerDelegate=ChromiumWebCoreObjCWebScrollbarPainterControllerDelegate', 'WebScrollbarPainterDelegate=ChromiumWebCoreObjCWebScrollbarPainterDelegate', 'WebScrollbarPartAnimation=ChromiumWebCoreObjCWebScrollbarPartAnimation', 'WebCoreFlippedView=ChromiumWebCoreObjCWebCoreFlippedView', 'WebCoreTextFieldCell=ChromiumWebCoreObjCWebCoreTextFieldCell'], 'postbuilds': [{'postbuild_name': 'Check Objective-C Rename', 'variables': {'class_whitelist_regex': 'ChromiumWebCoreObjC|TCMVisibleView|RTCMFlippedView|ScrollerStyleObserver|LayoutThemeNotificationObserver', 'category_whitelist_regex': 'WebCoreFocusRingDrawing|WebCoreTheme'}, 'action': ['../build/scripts/check_objc_rename.sh', '<(class_whitelist_regex)', '<(category_whitelist_regex)']}]}}]]}, {'target_name': 'blink_platform', 'type': '<(component)', 'dependencies': ['../config.gyp:config', '../wtf/wtf.gyp:wtf', 'blink_common', 'blink_heap_asm_stubs', 'blink_prerequisites', '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/icu/icu.gyp:icui18n', '<(DEPTH)/third_party/icu/icu.gyp:icuuc', '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', '<(DEPTH)/third_party/ots/ots.gyp:ots', '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', '<(DEPTH)/url/url.gyp:url_lib', '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', 'platform_generated.gyp:make_platform_generated', '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', '<(libjpeg_gyp_path):libjpeg'], 'export_dependent_settings': ['<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', '<(DEPTH)/third_party/ots/ots.gyp:ots', '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', '<(DEPTH)/url/url.gyp:url_lib', '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', '<(libjpeg_gyp_path):libjpeg'], 'defines': ['BLINK_PLATFORM_IMPLEMENTATION=1', 'INSIDE_BLINK'], 'include_dirs': ['<(angle_path)/include', '<(SHARED_INTERMEDIATE_DIR)/blink'], 'xcode_settings': {'GCC_PREFIX_HEADER': '<(DEPTH)/third_party/WebKit/Source/build/mac/Prefix.h'}, 'sources': ['<@(platform_files)', '<@(platform_heap_files)', '<(blink_platform_output_dir)/FontFamilyNames.cpp', '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp', '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h', '<(blink_platform_output_dir)/ColorData.cpp'], 'sources/': [['exclude', '(cf|cg|mac|opentype|win)/'], ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], ['exclude', 'graphics/cpu/arm/.*NEON\\.(cpp|h)'], ['exclude', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)']], 'msvs_disabled_warnings': [4267, 4334, 4724], 'conditions': [['OS=="linux" or OS=="android" or OS=="win"', {'sources/': [['include', 'fonts/opentype/OpenTypeTypes\\.h$'], ['include', 'fonts/opentype/OpenTypeVerticalData\\.(cpp|h)$']], 'dependencies': ['<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng']}], ['OS=="linux" or OS=="android"', {'sources/': [['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$']]}, {'sources/': [['exclude', 'fonts/linux/FontPlatformDataLinux\\.cpp$']]}], ['OS=="mac"', {'dependencies': ['<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng'], 'link_settings': {'libraries': ['$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', '$(SDKROOT)/System/Library/Frameworks/Foundation.framework']}, 'sources/': [['exclude', 'text/LocaleICU\\.(cpp|h)$'], ['include', 'text/LocaleMac\\.mm$'], ['exclude', 'KillRingNone\\.cpp$'], ['include', 'CF\\.cpp$'], ['include', '(fonts/)?mac/[^/]*Font[^/]*\\.(cpp|mm?)$'], ['include', 'fonts/opentype/OpenTypeTypes\\.h$'], ['include', 'fonts/opentype/OpenTypeVerticalData\\.(cpp|h)$'], ['include', 'audio/mac/FFTFrameMac\\.cpp$'], ['include', 'fonts/mac/GlyphPageTreeNodeMac\\.cpp$'], ['include', 'mac/ColorMac\\.mm$'], ['include', 'mac/BlockExceptions\\.mm$'], ['include', 'mac/KillRingMac\\.mm$'], ['include', 'mac/LocalCurrentGraphicsContext\\.mm$'], ['include', 'mac/NSScrollerImpDetails\\.mm$'], ['include', 'mac/ScrollAnimatorMac\\.mm$'], ['include', 'mac/ThemeMac\\.h$'], ['include', 'mac/ThemeMac\\.mm$'], ['include', 'mac/WebCoreNSCellExtras\\.h$'], ['include', 'mac/WebCoreNSCellExtras\\.mm$'], ['exclude', 'scroll/ScrollbarThemeNonMacCommon\\.(cpp|h)$'], ['exclude', 'scroll/ScrollAnimatorNone\\.cpp$'], ['exclude', 'scroll/ScrollAnimatorNone\\.h$'], ['exclude', 'fonts/skia/FontCacheSkia\\.cpp$'], ['include', 'geometry/mac/FloatPointMac\\.mm$'], ['include', 'geometry/mac/FloatRectMac\\.mm$'], ['include', 'geometry/mac/FloatSizeMac\\.mm$'], ['include', 'geometry/mac/IntPointMac\\.mm$'], ['include', 'geometry/mac/IntRectMac\\.mm$'], ['include', 'geometry/cg/FloatPointCG\\.cpp$'], ['include', 'geometry/cg/FloatRectCG\\.cpp$'], ['include', 'geometry/cg/FloatSizeCG\\.cpp$'], ['include', 'geometry/cg/IntPointCG\\.cpp$'], ['include', 'geometry/cg/IntRectCG\\.cpp$'], ['include', 'geometry/cg/IntSizeCG\\.cpp$']]}, {'sources/': [['exclude', 'mac/'], ['exclude', 'geometry/mac/'], ['exclude', 'geometry/cg/'], ['exclude', 'scroll/ScrollbarThemeMac']]}], ['OS != "linux" and OS != "mac" and OS != "win"', {'sources/': [['exclude', 'VDMX[^/]+\\.(cpp|h)$']]}], ['OS=="win"', {'sources/': [['exclude', 'text/LocaleICU\\.(cpp|h)$'], ['include', 'text/LocaleWin\\.(cpp|h)$'], ['include', 'clipboard/ClipboardUtilitiesWin\\.(cpp|h)$'], ['include', 'fonts/opentype/'], ['include', 'fonts/win/FontCacheSkiaWin\\.cpp$'], ['include', 'fonts/win/FontFallbackWin\\.(cpp|h)$'], ['include', 'fonts/win/FontPlatformDataWin\\.cpp$'], ['include', 'win/SystemInfo\\.cpp$']]}, {'sources/': [['exclude', 'win/'], ['exclude', 'Win\\.cpp$'], ['exclude', '/(Windows)[^/]*\\.cpp$'], ['include', 'fonts/opentype/OpenTypeSanitizer\\.cpp$']]}], ['OS=="win" and chromium_win_pch==1', {'sources/': [['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile.cpp']]}], ['OS=="android"', {'sources/': [['include', '^fonts/VDMXParser\\.cpp$']]}, {'sources/': [['exclude', 'Android\\.cpp$']]}], ['OS=="linux"', {'dependencies': ['<(DEPTH)/build/linux/system.gyp:fontconfig'], 'export_dependent_settings': ['<(DEPTH)/build/linux/system.gyp:fontconfig']}], ['use_default_render_theme==0', {'sources/': [['exclude', 'scroll/ScrollbarThemeAura\\.(cpp|h)']]}], ['"WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', {'include_dirs': ['<(DEPTH)/third_party/ffmpeg'], 'dependencies': ['<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg']}], ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', {'include_dirs': ['<(DEPTH)/third_party/openmax_dl'], 'dependencies': ['<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl']}], ['target_arch=="arm"', {'dependencies': ['blink_arm_neon']}]], 'target_conditions': [['OS=="android"', {'sources/': [['include', 'exported/linux/WebFontRenderStyle\\.cpp$'], ['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$']]}]]}, {'target_name': 'blink_arm_neon', 'conditions': [['target_arch=="arm"', {'type': 'static_library', 'dependencies': ['blink_common'], 'hard_dependency': 1, 'sources': ['<@(platform_files)'], 'sources/': [['exclude', '.*'], ['include', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)']], 'cflags': ['-marm'], 'conditions': [['OS=="android"', {'cflags!': ['-mthumb']}]]}, {'type': 'none'}]]}]}