content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Preprocessor: def __init__(self, title): self.title = title def evaluate(self, value): return value
class Preprocessor: def __init__(self, title): self.title = title def evaluate(self, value): return value
s=input() li=list(map(int,s.split(' '))) while(li!=sorted(li)): n=(len(li)//2) for i in range(n): li.pop() print(li)
s = input() li = list(map(int, s.split(' '))) while li != sorted(li): n = len(li) // 2 for i in range(n): li.pop() print(li)
#!/usr/bin/env python3 #Take a list, say for example this one: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a program that prints out all the elements of the list that are less than 5. #Extras: #Instead of printing the elements one by one, make a new list that has all the elements less than 5 from this list in it and print out this new list. #Write this in one line of Python. #Ask the user for a number and return a list that contains only elements from the original list a that are smaller than that number given by the user. #list = input("Input few numbers (comma separated): ").split(",") list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] num = int(input("Enter a number for comparison: ")) print ("numbers less than %d are: " %num) print([element for element in list if element < num]) #2. new_list = [] #for element in list: # if int(element) < 5: # new_list.append(element) #print (new_list)
list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] num = int(input('Enter a number for comparison: ')) print('numbers less than %d are: ' % num) print([element for element in list if element < num])
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Apr 18 11:53:23 2020 @author: chris """ __version__ = "0.3.2" __status__ = "Alpha"
""" Created on Sat Apr 18 11:53:23 2020 @author: chris """ __version__ = '0.3.2' __status__ = 'Alpha'
# -*- coding: utf-8 -*- """ Created on Tue Sep 15 01:38:54 2020 @author: abhi0 """ class Solution: def numTimesAllBlue(self, light: List[int]) -> int: tempLight=sorted(light) cnt=0 sum1=0 sum2=0 for i in range(len(light)): sum1=sum1+light[i] sum2=sum2+tempLight[i] if sum1==sum2: cnt+=1 return cnt
""" Created on Tue Sep 15 01:38:54 2020 @author: abhi0 """ class Solution: def num_times_all_blue(self, light: List[int]) -> int: temp_light = sorted(light) cnt = 0 sum1 = 0 sum2 = 0 for i in range(len(light)): sum1 = sum1 + light[i] sum2 = sum2 + tempLight[i] if sum1 == sum2: cnt += 1 return cnt
#! /usr/bin/python3 # p76 print("Let's preatice everything.") print("You\'d need to know \'about escapes with \\ that do \n newlines and \t tabs.") poem = """ \tThe lovely world with logic so firmly planted cannot discern \n the needs of love nor comprehend passion from intuition and requires an explanation \n\t\twhere there is none. """ print("--------------") print(poem) print("--------------") five = 10 - 2 + 3 - 6 print("This should be five:%s" % five) def secret_formula(started): jelly_beans = started * 500 jars = jelly_beans / 1000 crates = jars / 100 return jelly_beans, jars, crates start_point = 10000 beans, jars, crates = secret_formula(start_point) print("With a starting point of:%d" % start_point) print("We'd have %d beans, %d jars, and %d crates." % (beans,jars,crates)) start_point = start_point / 10 print("We can alse do that this way:") print("We'd have %d beans, %d jars, and %d crates." % secret_formula(start_point))
print("Let's preatice everything.") print("You'd need to know 'about escapes with \\ that do \n newlines and \t tabs.") poem = '\n\tThe lovely world\nwith logic so firmly planted\ncannot discern \n the needs of love\nnor comprehend passion from intuition\nand requires an explanation\n\n\t\twhere there is none.\n' print('--------------') print(poem) print('--------------') five = 10 - 2 + 3 - 6 print('This should be five:%s' % five) def secret_formula(started): jelly_beans = started * 500 jars = jelly_beans / 1000 crates = jars / 100 return (jelly_beans, jars, crates) start_point = 10000 (beans, jars, crates) = secret_formula(start_point) print('With a starting point of:%d' % start_point) print("We'd have %d beans, %d jars, and %d crates." % (beans, jars, crates)) start_point = start_point / 10 print('We can alse do that this way:') print("We'd have %d beans, %d jars, and %d crates." % secret_formula(start_point))
# # Example file for working with loops # def main(): x = 0 # define a while loop while (x<5): print(x) x+=1 # define a for loop for i in range(5): x -= 1 print(x) # use a for loop over a collection days = ["Mon","Tue","Wed",\ "Thurs","Fri","Sat","Sun"] for day in days: print(day) # use the break and continue statements for day in days: if day == "Wed": continue if day == "Fri": break print(day) #using the enumerate() function to get index for index,day in enumerate(days): print("Day #{} = {}".format(index,day)) if __name__ == "__main__": main()
def main(): x = 0 while x < 5: print(x) x += 1 for i in range(5): x -= 1 print(x) days = ['Mon', 'Tue', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun'] for day in days: print(day) for day in days: if day == 'Wed': continue if day == 'Fri': break print(day) for (index, day) in enumerate(days): print('Day #{} = {}'.format(index, day)) if __name__ == '__main__': main()
def solution(S): hash1 = dict() count = 0 ans = -0 ans_final = 0 if(len(S)==1): print("0") pass else: for i in range(len(S)): #print(S[i]) if(S[i] in hash1): #print("T") value = hash1[S[i]] hash1[S[i]] = i if(value > i): ans = value - i count = 0 else: ans = i - value if(ans>ans_final): ans_final = ans count = 0 #print(ans_final) else: hash1[S[i]] = i count = count + 1 if(count >= ans_final): if(count==1): count= count + 1 #print(count) return(count) #print(count) return(count) else: #print(ans_final) if(ans_final==1): ans_final= ans_final + 1 #print(ans_final) return(ans_final) return(ans_final) S = "cdd" #print(len(S)) solution(S)
def solution(S): hash1 = dict() count = 0 ans = -0 ans_final = 0 if len(S) == 1: print('0') pass else: for i in range(len(S)): if S[i] in hash1: value = hash1[S[i]] hash1[S[i]] = i if value > i: ans = value - i count = 0 else: ans = i - value if ans > ans_final: ans_final = ans count = 0 else: hash1[S[i]] = i count = count + 1 if count >= ans_final: if count == 1: count = count + 1 return count return count else: if ans_final == 1: ans_final = ans_final + 1 return ans_final return ans_final s = 'cdd' solution(S)
Size = (400, 400) Position = (0, 0) ScaleFactor = 1.0 ZoomLevel = 50.0 Orientation = 0 Mirror = 0 NominalPixelSize = 0.12237 filename = '' ImageWindow.Center = None ImageWindow.ViewportCenter = (1.4121498000000001, 1.2090156) ImageWindow.crosshair_color = (255, 0, 255) ImageWindow.boxsize = (0.1, 0.06) ImageWindow.box_color = (128, 128, 255) ImageWindow.show_box = False ImageWindow.Scale = [[-0.5212962, -0.0758694], [-0.073422, -0.0073422]] ImageWindow.show_scale = True ImageWindow.scale_color = (128, 128, 255) ImageWindow.crosshair_size = (0.05, 0.05) ImageWindow.show_crosshair = True ImageWindow.show_profile = False ImageWindow.show_FWHM = False ImageWindow.show_center = False ImageWindow.calculate_section = False ImageWindow.profile_color = (255, 0, 255) ImageWindow.FWHM_color = (0, 0, 255) ImageWindow.center_color = (0, 0, 255) ImageWindow.ROI = [[-0.2, -0.2], [0.2, 0.2]] ImageWindow.ROI_color = (255, 255, 0) ImageWindow.show_saturated_pixels = False ImageWindow.mask_bad_pixels = False ImageWindow.saturation_threshold = 233 ImageWindow.saturated_color = (255, 0, 0) ImageWindow.linearity_correction = False ImageWindow.bad_pixel_threshold = 233 ImageWindow.bad_pixel_color = (30, 30, 30) ImageWindow.show_grid = False ImageWindow.grid_type = 'xy' ImageWindow.grid_color = (0, 0, 255) ImageWindow.grid_x_spacing = 1.0 ImageWindow.grid_x_offset = 0.0 ImageWindow.grid_y_spacing = 1.0 ImageWindow.grid_y_offset = 0.0 camera.use_multicast = True camera.IP_addr = 'pico14.niddk.nih.gov'
size = (400, 400) position = (0, 0) scale_factor = 1.0 zoom_level = 50.0 orientation = 0 mirror = 0 nominal_pixel_size = 0.12237 filename = '' ImageWindow.Center = None ImageWindow.ViewportCenter = (1.4121498000000001, 1.2090156) ImageWindow.crosshair_color = (255, 0, 255) ImageWindow.boxsize = (0.1, 0.06) ImageWindow.box_color = (128, 128, 255) ImageWindow.show_box = False ImageWindow.Scale = [[-0.5212962, -0.0758694], [-0.073422, -0.0073422]] ImageWindow.show_scale = True ImageWindow.scale_color = (128, 128, 255) ImageWindow.crosshair_size = (0.05, 0.05) ImageWindow.show_crosshair = True ImageWindow.show_profile = False ImageWindow.show_FWHM = False ImageWindow.show_center = False ImageWindow.calculate_section = False ImageWindow.profile_color = (255, 0, 255) ImageWindow.FWHM_color = (0, 0, 255) ImageWindow.center_color = (0, 0, 255) ImageWindow.ROI = [[-0.2, -0.2], [0.2, 0.2]] ImageWindow.ROI_color = (255, 255, 0) ImageWindow.show_saturated_pixels = False ImageWindow.mask_bad_pixels = False ImageWindow.saturation_threshold = 233 ImageWindow.saturated_color = (255, 0, 0) ImageWindow.linearity_correction = False ImageWindow.bad_pixel_threshold = 233 ImageWindow.bad_pixel_color = (30, 30, 30) ImageWindow.show_grid = False ImageWindow.grid_type = 'xy' ImageWindow.grid_color = (0, 0, 255) ImageWindow.grid_x_spacing = 1.0 ImageWindow.grid_x_offset = 0.0 ImageWindow.grid_y_spacing = 1.0 ImageWindow.grid_y_offset = 0.0 camera.use_multicast = True camera.IP_addr = 'pico14.niddk.nih.gov'
# Project Euler Problem 7- 10001st prime # https://projecteuler.net/problem=7 # Answer = 104743 def is_prime(num): for i in range(2, num): if (num % i) == 0: return False return True def prime_list(): prime_list = [] num = 2 while True: if is_prime(num): prime_list.append(num) if len(prime_list) == 10001: return(prime_list[-1]) break num += 1 print(prime_list())
def is_prime(num): for i in range(2, num): if num % i == 0: return False return True def prime_list(): prime_list = [] num = 2 while True: if is_prime(num): prime_list.append(num) if len(prime_list) == 10001: return prime_list[-1] break num += 1 print(prime_list())
# Approach 2 - Greedy with Stack # Time: O(N) # Space: O(N) class Solution: def removeKdigits(self, num: str, k: int) -> str: num_stack = [] for digit in num: while k and num_stack and num_stack[-1] > digit: num_stack.pop() k -= 1 num_stack.append(digit) final_stack = num_stack[:-k] if k else num_stack return ''.join(final_stack).lstrip("0") or "0"
class Solution: def remove_kdigits(self, num: str, k: int) -> str: num_stack = [] for digit in num: while k and num_stack and (num_stack[-1] > digit): num_stack.pop() k -= 1 num_stack.append(digit) final_stack = num_stack[:-k] if k else num_stack return ''.join(final_stack).lstrip('0') or '0'
def get_keys(filename): with open(filename) as f: data = f.read() doc = data.split("\n") res = [] li = [] for i in doc: if i != "": li.append(i) else: res.append(li) li=[] return res if __name__=="__main__": filename = './input.txt' input = get_keys(filename) sum = 0 result = [] for i in input: check = "".join(i) result.append(list(set(list(check)))) for i in result: sum+=len(i) print(f"Your puzzle answer was {sum}.")
def get_keys(filename): with open(filename) as f: data = f.read() doc = data.split('\n') res = [] li = [] for i in doc: if i != '': li.append(i) else: res.append(li) li = [] return res if __name__ == '__main__': filename = './input.txt' input = get_keys(filename) sum = 0 result = [] for i in input: check = ''.join(i) result.append(list(set(list(check)))) for i in result: sum += len(i) print(f'Your puzzle answer was {sum}.')
expected_output = { "mac_table": { "vlans": { "100": { "mac_addresses": { "ecbd.1dff.5f92": { "drop": {"drop": True, "entry_type": "dynamic"}, "mac_address": "ecbd.1dff.5f92", }, "3820.56ff.6f75": { "interfaces": { "Port-channel12": { "interface": "Port-channel12", "entry_type": "dynamic", } }, "mac_address": "3820.56ff.6f75", }, "58bf.eaff.e508": { "interfaces": { "Vlan100": {"interface": "Vlan100", "entry_type": "static"} }, "mac_address": "58bf.eaff.e508", }, }, "vlan": 100, }, "all": { "mac_addresses": { "0100.0cff.9999": { "interfaces": { "CPU": {"interface": "CPU", "entry_type": "static"} }, "mac_address": "0100.0cff.9999", }, "0100.0cff.999a": { "interfaces": { "CPU": {"interface": "CPU", "entry_type": "static"} }, "mac_address": "0100.0cff.999a", }, }, "vlan": "all", }, "20": { "mac_addresses": { "aaaa.bbff.8888": { "drop": {"drop": True, "entry_type": "static"}, "mac_address": "aaaa.bbff.8888", } }, "vlan": 20, }, "10": { "mac_addresses": { "aaaa.bbff.8888": { "interfaces": { "GigabitEthernet1/0/8": { "entry": "*", "interface": "GigabitEthernet1/0/8", "entry_type": "static", }, "GigabitEthernet1/0/9": { "entry": "*", "interface": "GigabitEthernet1/0/9", "entry_type": "static", }, "Vlan101": { "entry": "*", "interface": "Vlan101", "entry_type": "static", }, }, "mac_address": "aaaa.bbff.8888", } }, "vlan": 10, }, "101": { "mac_addresses": { "58bf.eaff.e5f7": { "interfaces": { "Vlan101": {"interface": "Vlan101", "entry_type": "static"} }, "mac_address": "58bf.eaff.e5f7", }, "3820.56ff.6fb3": { "interfaces": { "Port-channel12": { "interface": "Port-channel12", "entry_type": "dynamic", } }, "mac_address": "3820.56ff.6fb3", }, "3820.56ff.6f75": { "interfaces": { "Port-channel12": { "interface": "Port-channel12", "entry_type": "dynamic", } }, "mac_address": "3820.56ff.6f75", }, }, "vlan": 101, }, } }, "total_mac_addresses": 10, }
expected_output = {'mac_table': {'vlans': {'100': {'mac_addresses': {'ecbd.1dff.5f92': {'drop': {'drop': True, 'entry_type': 'dynamic'}, 'mac_address': 'ecbd.1dff.5f92'}, '3820.56ff.6f75': {'interfaces': {'Port-channel12': {'interface': 'Port-channel12', 'entry_type': 'dynamic'}}, 'mac_address': '3820.56ff.6f75'}, '58bf.eaff.e508': {'interfaces': {'Vlan100': {'interface': 'Vlan100', 'entry_type': 'static'}}, 'mac_address': '58bf.eaff.e508'}}, 'vlan': 100}, 'all': {'mac_addresses': {'0100.0cff.9999': {'interfaces': {'CPU': {'interface': 'CPU', 'entry_type': 'static'}}, 'mac_address': '0100.0cff.9999'}, '0100.0cff.999a': {'interfaces': {'CPU': {'interface': 'CPU', 'entry_type': 'static'}}, 'mac_address': '0100.0cff.999a'}}, 'vlan': 'all'}, '20': {'mac_addresses': {'aaaa.bbff.8888': {'drop': {'drop': True, 'entry_type': 'static'}, 'mac_address': 'aaaa.bbff.8888'}}, 'vlan': 20}, '10': {'mac_addresses': {'aaaa.bbff.8888': {'interfaces': {'GigabitEthernet1/0/8': {'entry': '*', 'interface': 'GigabitEthernet1/0/8', 'entry_type': 'static'}, 'GigabitEthernet1/0/9': {'entry': '*', 'interface': 'GigabitEthernet1/0/9', 'entry_type': 'static'}, 'Vlan101': {'entry': '*', 'interface': 'Vlan101', 'entry_type': 'static'}}, 'mac_address': 'aaaa.bbff.8888'}}, 'vlan': 10}, '101': {'mac_addresses': {'58bf.eaff.e5f7': {'interfaces': {'Vlan101': {'interface': 'Vlan101', 'entry_type': 'static'}}, 'mac_address': '58bf.eaff.e5f7'}, '3820.56ff.6fb3': {'interfaces': {'Port-channel12': {'interface': 'Port-channel12', 'entry_type': 'dynamic'}}, 'mac_address': '3820.56ff.6fb3'}, '3820.56ff.6f75': {'interfaces': {'Port-channel12': {'interface': 'Port-channel12', 'entry_type': 'dynamic'}}, 'mac_address': '3820.56ff.6f75'}}, 'vlan': 101}}}, 'total_mac_addresses': 10}
""" This module contains the default settings that stand unless overridden. """ # ## Gateway Daemon Settings # # Default port to listen for HTTP uploads on. GATEWAY_WEB_PORT = 8080 # PUB - Connect GATEWAY_SENDER_BINDINGS = ["ipc:///tmp/announcer-receiver.sock"] # If set as a string, this value is used as the salt to create a hash of # each uploader's IP address. This in turn gets set as the EMDR upload key. GATEWAY_IP_KEY_SALT = None # ## ZeroMQ-based Gateway Daemon Settings # # PULL - Bind GATEWAY_ZMQ_RECEIVER_BINDINGS = ["ipc:///tmp/gateway-zmq-receiver.sock"] # By default, use the same as the HTTP gateway, for easy testing. # PUB - Connect GATEWAY_ZMQ_SENDER_BINDINGS = ["ipc:///tmp/announcer-receiver.sock"] # The number of worker greenlets to listen for data on. GATEWAY_ZMQ_NUM_WORKERS = 5 # ## Announcer Daemon Settings # # SUB - Bind ANNOUNCER_RECEIVER_BINDINGS = ["ipc:///tmp/announcer-receiver.sock"] # PUB - Bind ANNOUNCER_SENDER_BINDINGS = ["ipc:///tmp/announcer-sender.sock"] # ## Relay Daemon Settings # # SUB - Connect RELAY_RECEIVER_BINDINGS = ["ipc:///tmp/announcer-sender.sock"] # PUB - Bind RELAY_SENDER_BINDINGS = ["ipc:///tmp/relay-sender.sock"] # If True, outbound messages to subscribers are decompressed. RELAY_DECOMPRESS_MESSAGES = False # Default to memcached, as it's fast. RELAY_DEDUPE_BACKEND = "memcached" # For dedupe backends that require a connection string of some sort, store it # here. We'll default to localhost for now. Use a list of strings. RELAY_DEDUPE_BACKEND_CONN = ["127.0.0.1"] # For timeout based backends, this determines how long (in seconds) we store # the message hashes. RELAY_DEDUPE_STORE_TIME = 300 # For memcached and other key/value stores, this is prefixed to the hash # to form the cache key. This is useful to avoid clashes for multi-tenant # situations. RELAY_DEDUPE_STORE_KEY_PREFIX = 'emdr-relay-dd' # ## Logging Settings # LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' }, 'simple': { 'format': '%(name)s -- %(levelname)s -- %(asctime)s: %(message)s' }, }, 'handlers': { 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple' }, 'null': { 'level': 'DEBUG', 'class': 'logging.NullHandler', }, }, 'loggers': { '': { 'handlers': ['console'], 'level': 'INFO', 'propagate': True, }, }, }
""" This module contains the default settings that stand unless overridden. """ gateway_web_port = 8080 gateway_sender_bindings = ['ipc:///tmp/announcer-receiver.sock'] gateway_ip_key_salt = None gateway_zmq_receiver_bindings = ['ipc:///tmp/gateway-zmq-receiver.sock'] gateway_zmq_sender_bindings = ['ipc:///tmp/announcer-receiver.sock'] gateway_zmq_num_workers = 5 announcer_receiver_bindings = ['ipc:///tmp/announcer-receiver.sock'] announcer_sender_bindings = ['ipc:///tmp/announcer-sender.sock'] relay_receiver_bindings = ['ipc:///tmp/announcer-sender.sock'] relay_sender_bindings = ['ipc:///tmp/relay-sender.sock'] relay_decompress_messages = False relay_dedupe_backend = 'memcached' relay_dedupe_backend_conn = ['127.0.0.1'] relay_dedupe_store_time = 300 relay_dedupe_store_key_prefix = 'emdr-relay-dd' logging = {'version': 1, 'disable_existing_loggers': True, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}, 'simple': {'format': '%(name)s -- %(levelname)s -- %(asctime)s: %(message)s'}}, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}, 'null': {'level': 'DEBUG', 'class': 'logging.NullHandler'}}, 'loggers': {'': {'handlers': ['console'], 'level': 'INFO', 'propagate': True}}}
package = FreeDesktopPackage('%{name}', 'pkg-config', '0.27', configure_flags=["--with-internal-glib"]) if package.profile.name == 'darwin': package.m64_only = True
package = free_desktop_package('%{name}', 'pkg-config', '0.27', configure_flags=['--with-internal-glib']) if package.profile.name == 'darwin': package.m64_only = True
def task_format(): return { "actions": ["black .", "isort ."], "verbosity": 2, } def task_test(): return { "actions": ["tox -e py39"], "verbosity": 2, } def task_fulltest(): return { "actions": ["tox --skip-missing-interpreters"], "verbosity": 2, } def task_build(): return { "actions": ["flit build"], "task_dep": ["precommit"], "verbosity": 2, } def task_publish(): return { "actions": ["flit publish"], "task_dep": ["build"], "verbosity": 2, } def task_precommit(): return {"actions": None, "task_dep": ["format", "fulltest"]}
def task_format(): return {'actions': ['black .', 'isort .'], 'verbosity': 2} def task_test(): return {'actions': ['tox -e py39'], 'verbosity': 2} def task_fulltest(): return {'actions': ['tox --skip-missing-interpreters'], 'verbosity': 2} def task_build(): return {'actions': ['flit build'], 'task_dep': ['precommit'], 'verbosity': 2} def task_publish(): return {'actions': ['flit publish'], 'task_dep': ['build'], 'verbosity': 2} def task_precommit(): return {'actions': None, 'task_dep': ['format', 'fulltest']}
''' This class takes a dictionnary as arg Converts it into a list This list will contain args that will be given to FileConstructor class This list allows to build the core of the new file ''' class RecursivePackager: ''' arg_dict argument = dictionnary This dictionnary has to be built by ParseIntoCreate.creating_new_dicts function ''' def __init__(self, arg_dict): # arg_dict is self.realdict that comes from ParseIntoCreate.creating_new_dicts function self.arg_dict = arg_dict # This list is going to be returned with all informations parsed self.returned_list = [] # This list contains all widgets that are on the same tree place. # It first contains self.arg_dict, then will contain any child # arg_dict has. self.running_list = [arg_dict] # self.master_list works with self.running_list. # It helps giving master widget to recursive_list_creator function self.master_list = [""] #Launching recursive function self.recursive_list_creator(self.running_list[0], self.master_list) def recursive_list_creator(self, curr_dict_iteration, master_widget): """This is the main function of the class. It allows to convert curr_iteration into a list. master_widget is the master's widget id. Usefull for writing objects. List datas renders like this: returned_list = [["master_id", "id", "class_valor", ["properties_valors"], ["layout_valors"]], [etc...] ] properties_valors comes like this : ["borderwidth='3', height='100', text={}, width='465'", "text_of_property", "some text"] layout_valors comes like this : ["grid(column='0', row='4', sticky='w')", "grid_propagate(0)"] layout_valors are always lists, even if there is only one valor properties_valors are always lists, even if there is no text. """ # Check if it's dictionnary or list if isinstance(curr_dict_iteration, list): for args in curr_dict_iteration: # List for current iteration current_iteration = [] # Adding master's widget. Default = none current_iteration.append(master_widget) # If it's a dict list_temp = self.widget_list_compacter(args["object"]) for val in list_temp: current_iteration.append(val) # Adding informations to returned_list self.returned_list.append(current_iteration) elif isinstance(curr_dict_iteration, dict): if "object" in curr_dict_iteration: curr_dict_iteration = curr_dict_iteration["object"] list_temp = self.widget_list_compacter(curr_dict_iteration) # List for current iteration current_iteration = [] # Adding master's widget. Default = none current_iteration.append(master_widget) for val in list_temp: current_iteration.append(val) # Adding informations to returned_list self.returned_list.append(current_iteration) # deleting current iteration del self.running_list[0] del self.master_list[0] # Recursive loop launched while self.running_list: self.recursive_list_creator(self.running_list[0], self.master_list[0]) def widget_list_compacter(self, dictio): """This function take dictio as arg, and creates a fully fonctionnal list out of it. dictio should be one full instance of a widget and contain "id" and "layout" valors. """ # Temporary list that will stock informations and return them once # gathered list_for_current_iteration = [] # Add id valor if "id" not in dictio: list_for_current_iteration.append("") elif "id" in dictio: list_for_current_iteration.append(dictio["id"]) # Add class valor list_for_current_iteration.append(dictio["class"]) # Add properties valors if "property" in dictio: list_for_current_iteration.append(self.creating_properties_valors(dictio["property"])) elif not "property" in dictio: list_for_current_iteration.append([]) if "layout" in dictio: list_for_current_iteration.append(self.creating_layout_valors(dictio["layout"])) elif not "layout" in dictio: list_for_current_iteration.append([]) # Adding to running_list and master_list dictionnaries / lists to # continue the recursive loop if "child" in dictio: self.running_list.append(dictio["child"]) self.master_list.append(dictio["id"]) # Returning temporary dictionnary return list_for_current_iteration def creating_properties_valors(self, dict_or_list): """This function converts dictionnary "properties" into writable code.""" # list that will stock informations and give it to list_for_current_iteration creating_properties = [] #check if dict_or_list is a dict or list if isinstance(dict_or_list, list): #If it's a list for properties in dict_or_list: # if list is not empty and properties does NOT contain text if creating_properties and properties["name"] != "text": creating_properties[0] += ", {}='{}'".format(properties["name"], properties["property"]) # if list is not empty and properties does contain text elif creating_properties and properties["name"] == "text": creating_properties[0] += ", " + properties["name"] + "={}" creating_properties.append(properties["property"]) # If list is empty and properties does NOT contain text elif not creating_properties and properties["name"] != "text": creating_properties.append("({}='{}'".format(properties["name"], properties["property"])) #if list is empty and properties contains text elif not creating_properties and properties["name"] == "text": creating_properties.append("(" + properties["name"] + "={}") creating_properties.append(properties["property"]) #After the loop, returns the list creating_properties[0] += ")" return creating_properties # if dict_or_list is a dict and name contains text if dict_or_list["name"] == "text": creating_properties.append("(" + dict_or_list["name"] + "={})") creating_properties.append(dict_or_list["property"]) # if dict_or_list is a dict and name does NOT contains text else: creating_properties.append("({}='{}')".format(dict_or_list["name"], dict_or_list["property"])) #After giving all informations from the dict, returning the list return creating_properties def creating_layout_valors(self, layout_data): """This function converts dictionnary/list "valors" into writable code.""" # list that will stock informations and give it to # list_for_current_iteration creating_layout = [] # Adding grid, place or pack on top of returning list creating_layout.append(layout_data["manager"]) if "property" in layout_data: if isinstance(layout_data["property"], list): creating_layout[0] += "(" for properties in layout_data["property"]: if properties["name"] == "propagate": if properties["property"] == "False": creating_layout.append("{}_propagate(0)".format(layout_data["manager"])) elif properties["name"] != "propagate": if creating_layout: creating_layout[0] += "{}='{}', ".format(properties["name"], properties["property"]) # Finally close ) of creating_layout[0] # Remove , and space from loop above creating_layout[0] = creating_layout[0][:-2] + ")" elif isinstance(layout_data["property"], dict): if layout_data["property"]["name"] == "propagate": # If propagate = True if layout_data["property"]["property"] == "True": creating_layout[0] += "()" # If propagate = False elif layout_data["property"]["property"] == "False": creating_layout[0] += "()" creating_layout.append("{}_propagate(0)".format(layout_data["manager"])) # If name is not propagate elif layout_data["property"]["name"] != "propagate": creating_layout[0] += "({}='{}')".format(layout_data["property"]["name"], layout_data["property"]["property"]) # If no properties for layout, then close args if not "property" in layout_data: creating_layout[0] += "()" # After fulfilling informations, returning the list return creating_layout def return_converted_list(self): """This function returns self.returned_list.""" return self.returned_list if __name__ == '__main__': pass
""" This class takes a dictionnary as arg Converts it into a list This list will contain args that will be given to FileConstructor class This list allows to build the core of the new file """ class Recursivepackager: """ arg_dict argument = dictionnary This dictionnary has to be built by ParseIntoCreate.creating_new_dicts function """ def __init__(self, arg_dict): self.arg_dict = arg_dict self.returned_list = [] self.running_list = [arg_dict] self.master_list = [''] self.recursive_list_creator(self.running_list[0], self.master_list) def recursive_list_creator(self, curr_dict_iteration, master_widget): """This is the main function of the class. It allows to convert curr_iteration into a list. master_widget is the master's widget id. Usefull for writing objects. List datas renders like this: returned_list = [["master_id", "id", "class_valor", ["properties_valors"], ["layout_valors"]], [etc...] ] properties_valors comes like this : ["borderwidth='3', height='100', text={}, width='465'", "text_of_property", "some text"] layout_valors comes like this : ["grid(column='0', row='4', sticky='w')", "grid_propagate(0)"] layout_valors are always lists, even if there is only one valor properties_valors are always lists, even if there is no text. """ if isinstance(curr_dict_iteration, list): for args in curr_dict_iteration: current_iteration = [] current_iteration.append(master_widget) list_temp = self.widget_list_compacter(args['object']) for val in list_temp: current_iteration.append(val) self.returned_list.append(current_iteration) elif isinstance(curr_dict_iteration, dict): if 'object' in curr_dict_iteration: curr_dict_iteration = curr_dict_iteration['object'] list_temp = self.widget_list_compacter(curr_dict_iteration) current_iteration = [] current_iteration.append(master_widget) for val in list_temp: current_iteration.append(val) self.returned_list.append(current_iteration) del self.running_list[0] del self.master_list[0] while self.running_list: self.recursive_list_creator(self.running_list[0], self.master_list[0]) def widget_list_compacter(self, dictio): """This function take dictio as arg, and creates a fully fonctionnal list out of it. dictio should be one full instance of a widget and contain "id" and "layout" valors. """ list_for_current_iteration = [] if 'id' not in dictio: list_for_current_iteration.append('') elif 'id' in dictio: list_for_current_iteration.append(dictio['id']) list_for_current_iteration.append(dictio['class']) if 'property' in dictio: list_for_current_iteration.append(self.creating_properties_valors(dictio['property'])) elif not 'property' in dictio: list_for_current_iteration.append([]) if 'layout' in dictio: list_for_current_iteration.append(self.creating_layout_valors(dictio['layout'])) elif not 'layout' in dictio: list_for_current_iteration.append([]) if 'child' in dictio: self.running_list.append(dictio['child']) self.master_list.append(dictio['id']) return list_for_current_iteration def creating_properties_valors(self, dict_or_list): """This function converts dictionnary "properties" into writable code.""" creating_properties = [] if isinstance(dict_or_list, list): for properties in dict_or_list: if creating_properties and properties['name'] != 'text': creating_properties[0] += ", {}='{}'".format(properties['name'], properties['property']) elif creating_properties and properties['name'] == 'text': creating_properties[0] += ', ' + properties['name'] + '={}' creating_properties.append(properties['property']) elif not creating_properties and properties['name'] != 'text': creating_properties.append("({}='{}'".format(properties['name'], properties['property'])) elif not creating_properties and properties['name'] == 'text': creating_properties.append('(' + properties['name'] + '={}') creating_properties.append(properties['property']) creating_properties[0] += ')' return creating_properties if dict_or_list['name'] == 'text': creating_properties.append('(' + dict_or_list['name'] + '={})') creating_properties.append(dict_or_list['property']) else: creating_properties.append("({}='{}')".format(dict_or_list['name'], dict_or_list['property'])) return creating_properties def creating_layout_valors(self, layout_data): """This function converts dictionnary/list "valors" into writable code.""" creating_layout = [] creating_layout.append(layout_data['manager']) if 'property' in layout_data: if isinstance(layout_data['property'], list): creating_layout[0] += '(' for properties in layout_data['property']: if properties['name'] == 'propagate': if properties['property'] == 'False': creating_layout.append('{}_propagate(0)'.format(layout_data['manager'])) elif properties['name'] != 'propagate': if creating_layout: creating_layout[0] += "{}='{}', ".format(properties['name'], properties['property']) creating_layout[0] = creating_layout[0][:-2] + ')' elif isinstance(layout_data['property'], dict): if layout_data['property']['name'] == 'propagate': if layout_data['property']['property'] == 'True': creating_layout[0] += '()' elif layout_data['property']['property'] == 'False': creating_layout[0] += '()' creating_layout.append('{}_propagate(0)'.format(layout_data['manager'])) elif layout_data['property']['name'] != 'propagate': creating_layout[0] += "({}='{}')".format(layout_data['property']['name'], layout_data['property']['property']) if not 'property' in layout_data: creating_layout[0] += '()' return creating_layout def return_converted_list(self): """This function returns self.returned_list.""" return self.returned_list if __name__ == '__main__': pass
class Solution: def setZeroes(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ firstRowHasZero = not all(matrix[0]) for i in range(1,len(matrix)): for j in range(len(matrix[0])): if matrix[i][j] == 0: matrix[0][j] = 0 matrix[i][0] = 0 for i in range(1,len(matrix)): for j in range(len(matrix[0])-1,-1,-1): if matrix[0][j] == 0 or matrix[i][0] == 0: matrix[i][j] = 0 if firstRowHasZero: matrix[0] = [0]*len(matrix[0])
class Solution: def set_zeroes(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ first_row_has_zero = not all(matrix[0]) for i in range(1, len(matrix)): for j in range(len(matrix[0])): if matrix[i][j] == 0: matrix[0][j] = 0 matrix[i][0] = 0 for i in range(1, len(matrix)): for j in range(len(matrix[0]) - 1, -1, -1): if matrix[0][j] == 0 or matrix[i][0] == 0: matrix[i][j] = 0 if firstRowHasZero: matrix[0] = [0] * len(matrix[0])
# Python Functions # Three types of functions # Built in functions # User-defined functions # Anonymous functions # i.e. lambada functions; not declared with def(): # Method vs function # Method --> function that is part of a class #can only access said method with an instance or object of said class # A straight function does not have the above limitation; insert logical proof here about how all methods are functions # but not all functions are methods # Straight function # block of code that is called by name # can be passed parameters (data) # can return values (return value) def straightSwitch(item1,item2): return item2,item1 class SwitchClass(object): # Method def methodSwitch(self,item1,item2): # First argument of EVERY class method is reference to current instance # of the class (i.e. itself, thus 'self') self.contents = item2, item1 return self.contents # in order to access methodSwitch(), instance or object needs to be defined: #instance declared of SwitchClass object instance = SwitchClass() #method methodSwitch() called upon instance of the above object print(instance.methodSwitch(1,2)) # functions ---> data is explicitly passed # methods ---> data is implicitly passed # classes ---> are blueprints for creating objects # function arguments # default, required, keyword, and variable number arguments # default: take a specified default value if no arguement is passed during the call # required: need to be passed during call in specific order # keyword: identify arguments by parameter name to call in specified order # variable argument: *args (used to accept a variable number of arguements) #P4E 14.4 #Examining the methods of an object using the dir() function: #dir() lists the methods and attributes of a python object stuff = list() print(dir(stuff))
def straight_switch(item1, item2): return (item2, item1) class Switchclass(object): def method_switch(self, item1, item2): self.contents = (item2, item1) return self.contents instance = switch_class() print(instance.methodSwitch(1, 2)) stuff = list() print(dir(stuff))
# Copyright (c) OpenMMLab. All rights reserved. model = dict( type='DBNet', backbone=dict( type='mmdet.ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=-1, norm_cfg=dict(type='BN', requires_grad=True), init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet18'), norm_eval=False, style='caffe'), neck=dict(type='FPNC', in_channels=[2, 4, 8, 16], lateral_channels=8), bbox_head=dict( type='DBHead', text_repr_type='quad', in_channels=8, loss=dict(type='DBLoss', alpha=5.0, beta=10.0, bbce_loss=True)), train_cfg=None, test_cfg=None) dataset_type = 'IcdarDataset' data_root = 'tests/test_codebase/test_mmocr/data' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) test_pipeline = [ dict(type='LoadImageFromFile', color_type='color_ignore_orientation'), dict( type='MultiScaleFlipAug', img_scale=(128, 64), flip=False, transforms=[ dict(type='Resize', img_scale=(256, 128), keep_ratio=True), dict(type='Normalize', **img_norm_cfg), dict(type='Pad', size_divisor=32), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img']), ]) ] data = dict( samples_per_gpu=16, test_dataloader=dict(samples_per_gpu=1), test=dict( type=dataset_type, ann_file=data_root + '/text_detection.json', img_prefix=data_root, pipeline=test_pipeline)) evaluation = dict(interval=100, metric='hmean-iou')
model = dict(type='DBNet', backbone=dict(type='mmdet.ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=-1, norm_cfg=dict(type='BN', requires_grad=True), init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet18'), norm_eval=False, style='caffe'), neck=dict(type='FPNC', in_channels=[2, 4, 8, 16], lateral_channels=8), bbox_head=dict(type='DBHead', text_repr_type='quad', in_channels=8, loss=dict(type='DBLoss', alpha=5.0, beta=10.0, bbce_loss=True)), train_cfg=None, test_cfg=None) dataset_type = 'IcdarDataset' data_root = 'tests/test_codebase/test_mmocr/data' img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) test_pipeline = [dict(type='LoadImageFromFile', color_type='color_ignore_orientation'), dict(type='MultiScaleFlipAug', img_scale=(128, 64), flip=False, transforms=[dict(type='Resize', img_scale=(256, 128), keep_ratio=True), dict(type='Normalize', **img_norm_cfg), dict(type='Pad', size_divisor=32), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img'])])] data = dict(samples_per_gpu=16, test_dataloader=dict(samples_per_gpu=1), test=dict(type=dataset_type, ann_file=data_root + '/text_detection.json', img_prefix=data_root, pipeline=test_pipeline)) evaluation = dict(interval=100, metric='hmean-iou')
class HttpRequest: """ HTTP request class. Attributes: method (str): the HTTP method. request_uri (str): the request URI. query_string (str): the query string. http_version (str): the HTTP version. headers (dict of str: str): a `dict` containing the headers. body (str): the body. """ def __init__(self, client): """ The constructor parses the HTTP request. Args: client (socket.socket): the client socket. Raises: BadRequestException: If the request cannot be parsed. """ self.method = None self.request_uri = None self.query_string = None self.http_version = None self.headers = dict() self.body = None if client is not None: with client.makefile() as request_file: try: line = request_file.readline() line_split = line.split(" ") self.method = line_split[0] full_uri = line_split[1].split("?") self.request_uri = full_uri[0] self.query_string = "" if len(full_uri) <= 1 else full_uri[1] self.http_version = line_split[2] line = request_file.readline() while line != "\r\n" and line != "\n": line_split = line.split(": ") self.headers[line_split[0]] = line_split[1].strip() line = request_file.readline() if "Content-Length" in self.headers: self.body = request_file.read(int(self.headers["Content-Length"])) except IndexError: raise HttpRequestParseErrorException() class HttpRequestParseErrorException(Exception): """ An exception to raise if the HTTP request is not well formed. """ pass
class Httprequest: """ HTTP request class. Attributes: method (str): the HTTP method. request_uri (str): the request URI. query_string (str): the query string. http_version (str): the HTTP version. headers (dict of str: str): a `dict` containing the headers. body (str): the body. """ def __init__(self, client): """ The constructor parses the HTTP request. Args: client (socket.socket): the client socket. Raises: BadRequestException: If the request cannot be parsed. """ self.method = None self.request_uri = None self.query_string = None self.http_version = None self.headers = dict() self.body = None if client is not None: with client.makefile() as request_file: try: line = request_file.readline() line_split = line.split(' ') self.method = line_split[0] full_uri = line_split[1].split('?') self.request_uri = full_uri[0] self.query_string = '' if len(full_uri) <= 1 else full_uri[1] self.http_version = line_split[2] line = request_file.readline() while line != '\r\n' and line != '\n': line_split = line.split(': ') self.headers[line_split[0]] = line_split[1].strip() line = request_file.readline() if 'Content-Length' in self.headers: self.body = request_file.read(int(self.headers['Content-Length'])) except IndexError: raise http_request_parse_error_exception() class Httprequestparseerrorexception(Exception): """ An exception to raise if the HTTP request is not well formed. """ pass
for i in range(1, 6): for j in range(1, 6): if(i == 1 or i == 5): print(j, end="") elif(j == 6 - i): print(6 - i, end="") else: print(" ", end="") print()
for i in range(1, 6): for j in range(1, 6): if i == 1 or i == 5: print(j, end='') elif j == 6 - i: print(6 - i, end='') else: print(' ', end='') print()
#!/usr/bin/env python3.4 # # Copyright 2016 - Google # # 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. ############################################### # TIMERS ############################################### # Max time to wait for phone data/network connection state update MAX_WAIT_TIME_CONNECTION_STATE_UPDATE = 20 # Max time to wait for network reselection MAX_WAIT_TIME_NW_SELECTION = 120 # Max time to wait for call drop MAX_WAIT_TIME_CALL_DROP = 60 # Max time to wait after caller make a call and before # callee start ringing MAX_WAIT_TIME_CALLEE_RINGING = 30 # Max time to wait after caller make a call and before # callee start ringing MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT = 30 # Max time to wait for "onCallStatehangedIdle" event after reject or ignore # incoming call MAX_WAIT_TIME_CALL_IDLE_EVENT = 60 # Max time to wait after initiating a call for telecom to report in-call MAX_WAIT_TIME_CALL_INITIATION = 25 # Max time to wait after toggle airplane mode and before # get expected event MAX_WAIT_TIME_AIRPLANEMODE_EVENT = 90 # Max time to wait after device sent an SMS and before # get "onSmsSentSuccess" event MAX_WAIT_TIME_SMS_SENT_SUCCESS = 60 # Max time to wait after MT SMS was sent and before device # actually receive this MT SMS. MAX_WAIT_TIME_SMS_RECEIVE = 120 # Max time to wait for IMS registration MAX_WAIT_TIME_IMS_REGISTRATION = 120 # TODO: b/26338156 MAX_WAIT_TIME_VOLTE_ENABLED and MAX_WAIT_TIME_WFC_ENABLED should only # be used for wait after IMS registration. # Max time to wait for VoLTE enabled flag to be True MAX_WAIT_TIME_VOLTE_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 20 # Max time to wait for WFC enabled flag to be True MAX_WAIT_TIME_WFC_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 50 # Max time to wait for WFC enabled flag to be False MAX_WAIT_TIME_WFC_DISABLED = 60 # Max time to wait for WiFi Manager to Connect to an AP MAX_WAIT_TIME_WIFI_CONNECTION = 30 # Max time to wait for Video Session Modify Messaging MAX_WAIT_TIME_VIDEO_SESSION_EVENT = 10 # Max time to wait after a network connection for ConnectivityManager to # report a working user plane data connection MAX_WAIT_TIME_USER_PLANE_DATA = 20 # Max time to wait for tethering entitlement check MAX_WAIT_TIME_TETHERING_ENTITLEMENT_CHECK = 15 # Max time to wait for voice mail count report correct result. MAX_WAIT_TIME_VOICE_MAIL_COUNT = 30 # Max time to wait for data SIM change MAX_WAIT_TIME_DATA_SUB_CHANGE = 150 # Max time to wait for telecom Ringing status after receive ringing event MAX_WAIT_TIME_TELECOM_RINGING = 5 # Max time to wait for phone get provisioned. MAX_WAIT_TIME_PROVISIONING = 300 # Time to wait after call setup before declaring # that the call is actually successful WAIT_TIME_IN_CALL = 15 # (For IMS, e.g. VoLTE-VoLTE, WFC-WFC, VoLTE-WFC test only) # Time to wait after call setup before declaring # that the call is actually successful WAIT_TIME_IN_CALL_FOR_IMS = 30 # Time to wait after phone receive incoming call before phone reject this call. WAIT_TIME_REJECT_CALL = 2 # Time to leave a voice message after callee reject the incoming call WAIT_TIME_LEAVE_VOICE_MAIL = 30 # Time to wait after accept video call and before checking state WAIT_TIME_ACCEPT_VIDEO_CALL_TO_CHECK_STATE = 2 # Time delay to ensure user actions are performed in # 'human' time rather than at the speed of the script WAIT_TIME_ANDROID_STATE_SETTLING = 1 # Time to wait after registration to ensure the phone # has sufficient time to reconfigure based on new network WAIT_TIME_BETWEEN_REG_AND_CALL = 5 # Time to wait for 1xrtt voice attach check # After DUT voice network type report 1xrtt (from unknown), it need to wait for # several seconds before the DUT can receive incoming call. WAIT_TIME_1XRTT_VOICE_ATTACH = 30 # Time to wait for data status change during wifi tethering,. WAIT_TIME_DATA_STATUS_CHANGE_DURING_WIFI_TETHERING = 30 # Time to wait for rssi calibration. # This is the delay between <WiFi Connected> and <Turn on Screen to get RSSI>. WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED = 10 # This is the delay between <Turn on Screen> and <Call API to get WiFi RSSI>. WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON = 2 # Time to wait for each operation on voice mail box. WAIT_TIME_VOICE_MAIL_SERVER_RESPONSE = 10 # Time to wait for radio to up and running after reboot WAIT_TIME_AFTER_REBOOT = 10 # Time to wait for tethering test after reboot WAIT_TIME_TETHERING_AFTER_REBOOT = 10 # Time to wait after changing data sub id WAIT_TIME_CHANGE_DATA_SUB_ID = 30 # These are used in phone_number_formatter PHONE_NUMBER_STRING_FORMAT_7_DIGIT = 7 PHONE_NUMBER_STRING_FORMAT_10_DIGIT = 10 PHONE_NUMBER_STRING_FORMAT_11_DIGIT = 11 PHONE_NUMBER_STRING_FORMAT_12_DIGIT = 12 # MAX screen-on time during test (in unit of second) MAX_SCREEN_ON_TIME = 1800 # In Voice Mail box, press this digit to delete one message. VOICEMAIL_DELETE_DIGIT = '7' # MAX number of saved voice mail in voice mail box. MAX_SAVED_VOICE_MAIL = 25 # SIM1 slot index SIM1_SLOT_INDEX = 0 # SIM2 slot index SIM2_SLOT_INDEX = 1 # invalid Subscription ID INVALID_SUB_ID = -1 # invalid SIM slot index INVALID_SIM_SLOT_INDEX = -1 # WiFI RSSI is -127 if WiFi is not connected INVALID_WIFI_RSSI = -127 # MAX and MIN value for attenuator settings ATTEN_MAX_VALUE = 90 ATTEN_MIN_VALUE = 0 MAX_RSSI_RESERVED_VALUE = 100 MIN_RSSI_RESERVED_VALUE = -200 # cellular weak RSSI value CELL_WEAK_RSSI_VALUE = -120 # cellular strong RSSI value CELL_STRONG_RSSI_VALUE = -70 # WiFi weak RSSI value WIFI_WEAK_RSSI_VALUE = -80 # Emergency call number EMERGENCY_CALL_NUMBER = "911" AOSP_PREFIX = "aosp_" INCALL_UI_DISPLAY_FOREGROUND = "foreground" INCALL_UI_DISPLAY_BACKGROUND = "background" INCALL_UI_DISPLAY_DEFAULT = "default" NETWORK_CONNECTION_TYPE_WIFI = 'wifi' NETWORK_CONNECTION_TYPE_CELL = 'cell' NETWORK_CONNECTION_TYPE_MMS = 'mms' NETWORK_CONNECTION_TYPE_HIPRI = 'hipri' NETWORK_CONNECTION_TYPE_UNKNOWN = 'unknown' TETHERING_MODE_WIFI = 'wifi' NETWORK_SERVICE_VOICE = 'voice' NETWORK_SERVICE_DATA = 'data' CARRIER_VZW = 'vzw' CARRIER_ATT = 'att' CARRIER_TMO = 'tmo' CARRIER_SPT = 'spt' CARRIER_EEUK = 'eeuk' CARRIER_VFUK = 'vfuk' CARRIER_UNKNOWN = 'unknown' RAT_FAMILY_CDMA = 'cdma' RAT_FAMILY_CDMA2000 = 'cdma2000' RAT_FAMILY_IDEN = 'iden' RAT_FAMILY_GSM = 'gsm' RAT_FAMILY_WCDMA = 'wcdma' RAT_FAMILY_UMTS = RAT_FAMILY_WCDMA RAT_FAMILY_WLAN = 'wlan' RAT_FAMILY_LTE = 'lte' RAT_FAMILY_TDSCDMA = 'tdscdma' RAT_FAMILY_UNKNOWN = 'unknown' CAPABILITY_PHONE = 'phone' CAPABILITY_VOLTE = 'volte' CAPABILITY_VT = 'vt' CAPABILITY_WFC = 'wfc' CAPABILITY_MSIM = 'msim' CAPABILITY_OMADM = 'omadm' # Constant for operation direction DIRECTION_MOBILE_ORIGINATED = "MO" DIRECTION_MOBILE_TERMINATED = "MT" # Constant for call teardown side CALL_TEARDOWN_PHONE = "PHONE" CALL_TEARDOWN_REMOTE = "REMOTE" WIFI_VERBOSE_LOGGING_ENABLED = 1 WIFI_VERBOSE_LOGGING_DISABLED = 0 """ Begin shared constant define for both Python and Java """ # Constant for WiFi Calling WFC mode WFC_MODE_WIFI_ONLY = "WIFI_ONLY" WFC_MODE_CELLULAR_PREFERRED = "CELLULAR_PREFERRED" WFC_MODE_WIFI_PREFERRED = "WIFI_PREFERRED" WFC_MODE_DISABLED = "DISABLED" WFC_MODE_UNKNOWN = "UNKNOWN" # Constant for Video Telephony VT state VT_STATE_AUDIO_ONLY = "AUDIO_ONLY" VT_STATE_TX_ENABLED = "TX_ENABLED" VT_STATE_RX_ENABLED = "RX_ENABLED" VT_STATE_BIDIRECTIONAL = "BIDIRECTIONAL" VT_STATE_TX_PAUSED = "TX_PAUSED" VT_STATE_RX_PAUSED = "RX_PAUSED" VT_STATE_BIDIRECTIONAL_PAUSED = "BIDIRECTIONAL_PAUSED" VT_STATE_STATE_INVALID = "INVALID" # Constant for Video Telephony Video quality VT_VIDEO_QUALITY_DEFAULT = "DEFAULT" VT_VIDEO_QUALITY_UNKNOWN = "UNKNOWN" VT_VIDEO_QUALITY_HIGH = "HIGH" VT_VIDEO_QUALITY_MEDIUM = "MEDIUM" VT_VIDEO_QUALITY_LOW = "LOW" VT_VIDEO_QUALITY_INVALID = "INVALID" # Constant for Call State (for call object) CALL_STATE_ACTIVE = "ACTIVE" CALL_STATE_NEW = "NEW" CALL_STATE_DIALING = "DIALING" CALL_STATE_RINGING = "RINGING" CALL_STATE_HOLDING = "HOLDING" CALL_STATE_DISCONNECTED = "DISCONNECTED" CALL_STATE_PRE_DIAL_WAIT = "PRE_DIAL_WAIT" CALL_STATE_CONNECTING = "CONNECTING" CALL_STATE_DISCONNECTING = "DISCONNECTING" CALL_STATE_UNKNOWN = "UNKNOWN" CALL_STATE_INVALID = "INVALID" # Constant for PRECISE Call State (for call object) PRECISE_CALL_STATE_ACTIVE = "ACTIVE" PRECISE_CALL_STATE_ALERTING = "ALERTING" PRECISE_CALL_STATE_DIALING = "DIALING" PRECISE_CALL_STATE_INCOMING = "INCOMING" PRECISE_CALL_STATE_HOLDING = "HOLDING" PRECISE_CALL_STATE_DISCONNECTED = "DISCONNECTED" PRECISE_CALL_STATE_WAITING = "WAITING" PRECISE_CALL_STATE_DISCONNECTING = "DISCONNECTING" PRECISE_CALL_STATE_IDLE = "IDLE" PRECISE_CALL_STATE_UNKNOWN = "UNKNOWN" PRECISE_CALL_STATE_INVALID = "INVALID" # Constant for DC POWER STATE DC_POWER_STATE_LOW = "LOW" DC_POWER_STATE_HIGH = "HIGH" DC_POWER_STATE_MEDIUM = "MEDIUM" DC_POWER_STATE_UNKNOWN = "UNKNOWN" # Constant for Audio Route AUDIO_ROUTE_EARPIECE = "EARPIECE" AUDIO_ROUTE_BLUETOOTH = "BLUETOOTH" AUDIO_ROUTE_SPEAKER = "SPEAKER" AUDIO_ROUTE_WIRED_HEADSET = "WIRED_HEADSET" AUDIO_ROUTE_WIRED_OR_EARPIECE = "WIRED_OR_EARPIECE" # Constant for Call Capability CALL_CAPABILITY_HOLD = "HOLD" CALL_CAPABILITY_SUPPORT_HOLD = "SUPPORT_HOLD" CALL_CAPABILITY_MERGE_CONFERENCE = "MERGE_CONFERENCE" CALL_CAPABILITY_SWAP_CONFERENCE = "SWAP_CONFERENCE" CALL_CAPABILITY_UNUSED_1 = "UNUSED_1" CALL_CAPABILITY_RESPOND_VIA_TEXT = "RESPOND_VIA_TEXT" CALL_CAPABILITY_MUTE = "MUTE" CALL_CAPABILITY_MANAGE_CONFERENCE = "MANAGE_CONFERENCE" CALL_CAPABILITY_SUPPORTS_VT_LOCAL_RX = "SUPPORTS_VT_LOCAL_RX" CALL_CAPABILITY_SUPPORTS_VT_LOCAL_TX = "SUPPORTS_VT_LOCAL_TX" CALL_CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL = "SUPPORTS_VT_LOCAL_BIDIRECTIONAL" CALL_CAPABILITY_SUPPORTS_VT_REMOTE_RX = "SUPPORTS_VT_REMOTE_RX" CALL_CAPABILITY_SUPPORTS_VT_REMOTE_TX = "SUPPORTS_VT_REMOTE_TX" CALL_CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL = "SUPPORTS_VT_REMOTE_BIDIRECTIONAL" CALL_CAPABILITY_SEPARATE_FROM_CONFERENCE = "SEPARATE_FROM_CONFERENCE" CALL_CAPABILITY_DISCONNECT_FROM_CONFERENCE = "DISCONNECT_FROM_CONFERENCE" CALL_CAPABILITY_SPEED_UP_MT_AUDIO = "SPEED_UP_MT_AUDIO" CALL_CAPABILITY_CAN_UPGRADE_TO_VIDEO = "CAN_UPGRADE_TO_VIDEO" CALL_CAPABILITY_CAN_PAUSE_VIDEO = "CAN_PAUSE_VIDEO" CALL_CAPABILITY_UNKOWN = "UNKOWN" # Constant for Call Property CALL_PROPERTY_HIGH_DEF_AUDIO = "HIGH_DEF_AUDIO" CALL_PROPERTY_CONFERENCE = "CONFERENCE" CALL_PROPERTY_GENERIC_CONFERENCE = "GENERIC_CONFERENCE" CALL_PROPERTY_WIFI = "WIFI" CALL_PROPERTY_EMERGENCY_CALLBACK_MODE = "EMERGENCY_CALLBACK_MODE" CALL_PROPERTY_UNKNOWN = "UNKNOWN" # Constant for Call Presentation CALL_PRESENTATION_ALLOWED = "ALLOWED" CALL_PRESENTATION_RESTRICTED = "RESTRICTED" CALL_PRESENTATION_PAYPHONE = "PAYPHONE" CALL_PRESENTATION_UNKNOWN = "UNKNOWN" # Constant for Network Generation GEN_2G = "2G" GEN_3G = "3G" GEN_4G = "4G" GEN_UNKNOWN = "UNKNOWN" # Constant for Network RAT RAT_IWLAN = "IWLAN" RAT_LTE = "LTE" RAT_4G = "4G" RAT_3G = "3G" RAT_2G = "2G" RAT_WCDMA = "WCDMA" RAT_UMTS = "UMTS" RAT_1XRTT = "1XRTT" RAT_EDGE = "EDGE" RAT_GPRS = "GPRS" RAT_HSDPA = "HSDPA" RAT_HSUPA = "HSUPA" RAT_CDMA = "CDMA" RAT_EVDO = "EVDO" RAT_EVDO_0 = "EVDO_0" RAT_EVDO_A = "EVDO_A" RAT_EVDO_B = "EVDO_B" RAT_IDEN = "IDEN" RAT_EHRPD = "EHRPD" RAT_HSPA = "HSPA" RAT_HSPAP = "HSPAP" RAT_GSM = "GSM" RAT_TD_SCDMA = "TD_SCDMA" RAT_GLOBAL = "GLOBAL" RAT_UNKNOWN = "UNKNOWN" # Constant for Phone Type PHONE_TYPE_GSM = "GSM" PHONE_TYPE_NONE = "NONE" PHONE_TYPE_CDMA = "CDMA" PHONE_TYPE_SIP = "SIP" # Constant for SIM State SIM_STATE_READY = "READY" SIM_STATE_UNKNOWN = "UNKNOWN" SIM_STATE_ABSENT = "ABSENT" SIM_STATE_PUK_REQUIRED = "PUK_REQUIRED" SIM_STATE_PIN_REQUIRED = "PIN_REQUIRED" SIM_STATE_NETWORK_LOCKED = "NETWORK_LOCKED" SIM_STATE_NOT_READY = "NOT_READY" SIM_STATE_PERM_DISABLED = "PERM_DISABLED" SIM_STATE_CARD_IO_ERROR = "CARD_IO_ERROR" # Constant for Data Connection State DATA_STATE_CONNECTED = "CONNECTED" DATA_STATE_DISCONNECTED = "DISCONNECTED" DATA_STATE_CONNECTING = "CONNECTING" DATA_STATE_SUSPENDED = "SUSPENDED" DATA_STATE_UNKNOWN = "UNKNOWN" # Constant for Telephony Manager Call State TELEPHONY_STATE_RINGING = "RINGING" TELEPHONY_STATE_IDLE = "IDLE" TELEPHONY_STATE_OFFHOOK = "OFFHOOK" TELEPHONY_STATE_UNKNOWN = "UNKNOWN" # Constant for TTY Mode TTY_MODE_FULL = "FULL" TTY_MODE_HCO = "HCO" TTY_MODE_OFF = "OFF" TTY_MODE_VCO = "VCO" # Constant for Service State SERVICE_STATE_EMERGENCY_ONLY = "EMERGENCY_ONLY" SERVICE_STATE_IN_SERVICE = "IN_SERVICE" SERVICE_STATE_OUT_OF_SERVICE = "OUT_OF_SERVICE" SERVICE_STATE_POWER_OFF = "POWER_OFF" SERVICE_STATE_UNKNOWN = "UNKNOWN" # Constant for VoLTE Hand-over Service State VOLTE_SERVICE_STATE_HANDOVER_STARTED = "STARTED" VOLTE_SERVICE_STATE_HANDOVER_COMPLETED = "COMPLETED" VOLTE_SERVICE_STATE_HANDOVER_FAILED = "FAILED" VOLTE_SERVICE_STATE_HANDOVER_CANCELED = "CANCELED" VOLTE_SERVICE_STATE_HANDOVER_UNKNOWN = "UNKNOWN" # Constant for precise call state state listen level PRECISE_CALL_STATE_LISTEN_LEVEL_FOREGROUND = "FOREGROUND" PRECISE_CALL_STATE_LISTEN_LEVEL_RINGING = "RINGING" PRECISE_CALL_STATE_LISTEN_LEVEL_BACKGROUND = "BACKGROUND" # Constants used to register or de-register for video call callback events EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED" EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED" EVENT_VIDEO_SESSION_EVENT = "EVENT_VIDEO_SESSION_EVENT" EVENT_VIDEO_PEER_DIMENSIONS_CHANGED = "EVENT_VIDEO_PEER_DIMENSIONS_CHANGED" EVENT_VIDEO_QUALITY_CHANGED = "EVENT_VIDEO_QUALITY_CHANGED" EVENT_VIDEO_DATA_USAGE_CHANGED = "EVENT_VIDEO_DATA_USAGE_CHANGED" EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED = "EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED" EVENT_VIDEO_INVALID = "EVENT_VIDEO_INVALID" # Constant for Video Call Session Event Name SESSION_EVENT_RX_PAUSE = "SESSION_EVENT_RX_PAUSE" SESSION_EVENT_RX_RESUME = "SESSION_EVENT_RX_RESUME" SESSION_EVENT_TX_START = "SESSION_EVENT_TX_START" SESSION_EVENT_TX_STOP = "SESSION_EVENT_TX_STOP" SESSION_EVENT_CAMERA_FAILURE = "SESSION_EVENT_CAMERA_FAILURE" SESSION_EVENT_CAMERA_READY = "SESSION_EVENT_CAMERA_READY" SESSION_EVENT_UNKNOWN = "SESSION_EVENT_UNKNOWN" NETWORK_MODE_WCDMA_PREF = "NETWORK_MODE_WCDMA_PREF" NETWORK_MODE_GSM_ONLY = "NETWORK_MODE_GSM_ONLY" NETWORK_MODE_WCDMA_ONLY = "NETWORK_MODE_WCDMA_ONLY" NETWORK_MODE_GSM_UMTS = "NETWORK_MODE_GSM_UMTS" NETWORK_MODE_CDMA = "NETWORK_MODE_CDMA" NETWORK_MODE_CDMA_NO_EVDO = "NETWORK_MODE_CDMA_NO_EVDO" NETWORK_MODE_EVDO_NO_CDMA = "NETWORK_MODE_EVDO_NO_CDMA" NETWORK_MODE_GLOBAL = "NETWORK_MODE_GLOBAL" NETWORK_MODE_LTE_CDMA_EVDO = "NETWORK_MODE_LTE_CDMA_EVDO" NETWORK_MODE_LTE_GSM_WCDMA = "NETWORK_MODE_LTE_GSM_WCDMA" NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA" NETWORK_MODE_LTE_ONLY = "NETWORK_MODE_LTE_ONLY" NETWORK_MODE_LTE_WCDMA = "NETWORK_MODE_LTE_WCDMA" NETWORK_MODE_TDSCDMA_ONLY = "NETWORK_MODE_TDSCDMA_ONLY" NETWORK_MODE_TDSCDMA_WCDMA = "NETWORK_MODE_TDSCDMA_WCDMA" NETWORK_MODE_LTE_TDSCDMA = "NETWORK_MODE_LTE_TDSCDMA" NETWORK_MODE_TDSCDMA_GSM = "NETWORK_MODE_TDSCDMA_GSM" NETWORK_MODE_LTE_TDSCDMA_GSM = "NETWORK_MODE_LTE_TDSCDMA_GSM" NETWORK_MODE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_TDSCDMA_GSM_WCDMA" NETWORK_MODE_LTE_TDSCDMA_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_WCDMA" NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA" NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA = "NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA" NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA" # Constant for Messaging Event Name EventSmsDeliverSuccess = "SmsDeliverSuccess" EventSmsDeliverFailure = "SmsDeliverFailure" EventSmsSentSuccess = "SmsSentSuccess" EventSmsSentFailure = "SmsSentFailure" EventSmsReceived = "SmsReceived" EventMmsSentSuccess = "MmsSentSuccess" EventMmsSentFailure = "MmsSentFailure" EventMmsDownloaded = "MmsDownloaded" EventWapPushReceived = "WapPushReceived" EventDataSmsReceived = "DataSmsReceived" EventCmasReceived = "CmasReceived" EventEtwsReceived = "EtwsReceived" # Constant for Telecom Call Event Name EventTelecomCallStateChanged = "TelecomCallStateChanged" EventTelecomCallParentChanged = "TelecomCallParentChanged" EventTelecomCallChildrenChanged = "TelecomCallChildrenChanged" EventTelecomCallDetailsChanged = "TelecomCallDetailsChanged" EventTelecomCallCannedTextResponsesLoaded = "TelecomCallCannedTextResponsesLoaded" EventTelecomCallPostDialWait = "TelecomCallPostDialWait" EventTelecomCallVideoCallChanged = "TelecomCallVideoCallChanged" EventTelecomCallDestroyed = "TelecomCallDestroyed" EventTelecomCallConferenceableCallsChanged = "TelecomCallConferenceableCallsChanged" # Constant for Video Call Event Name EventTelecomVideoCallSessionModifyRequestReceived = "TelecomVideoCallSessionModifyRequestReceived" EventTelecomVideoCallSessionModifyResponseReceived = "TelecomVideoCallSessionModifyResponseReceived" EventTelecomVideoCallSessionEvent = "TelecomVideoCallSessionEvent" EventTelecomVideoCallPeerDimensionsChanged = "TelecomVideoCallPeerDimensionsChanged" EventTelecomVideoCallVideoQualityChanged = "TelecomVideoCallVideoQualityChanged" EventTelecomVideoCallDataUsageChanged = "TelecomVideoCallDataUsageChanged" EventTelecomVideoCallCameraCapabilities = "TelecomVideoCallCameraCapabilities" # Constant for Other Event Name EventCallStateChanged = "CallStateChanged" EventPreciseStateChanged = "PreciseStateChanged" EventDataConnectionRealTimeInfoChanged = "DataConnectionRealTimeInfoChanged" EventDataConnectionStateChanged = "DataConnectionStateChanged" EventServiceStateChanged = "ServiceStateChanged" EventSignalStrengthChanged = "SignalStrengthChanged" EventVolteServiceStateChanged = "VolteServiceStateChanged" EventMessageWaitingIndicatorChanged = "MessageWaitingIndicatorChanged" EventConnectivityChanged = "ConnectivityChanged" # Constant for Packet Keep Alive Call Back EventPacketKeepaliveCallback = "PacketKeepaliveCallback" PacketKeepaliveCallbackStarted = "Started" PacketKeepaliveCallbackStopped = "Stopped" PacketKeepaliveCallbackError = "Error" PacketKeepaliveCallbackInvalid = "Invalid" # Constant for Network Call Back EventNetworkCallback = "NetworkCallback" NetworkCallbackPreCheck = "PreCheck" NetworkCallbackAvailable = "Available" NetworkCallbackLosing = "Losing" NetworkCallbackLost = "Lost" NetworkCallbackUnavailable = "Unavailable" NetworkCallbackCapabilitiesChanged = "CapabilitiesChanged" NetworkCallbackSuspended = "Suspended" NetworkCallbackResumed = "Resumed" NetworkCallbackLinkPropertiesChanged = "LinkPropertiesChanged" NetworkCallbackInvalid = "Invalid" class SignalStrengthContainer: SIGNAL_STRENGTH_GSM = "gsmSignalStrength" SIGNAL_STRENGTH_GSM_DBM = "gsmDbm" SIGNAL_STRENGTH_GSM_LEVEL = "gsmLevel" SIGNAL_STRENGTH_GSM_ASU_LEVEL = "gsmAsuLevel" SIGNAL_STRENGTH_GSM_BIT_ERROR_RATE = "gsmBitErrorRate" SIGNAL_STRENGTH_CDMA_DBM = "cdmaDbm" SIGNAL_STRENGTH_CDMA_LEVEL = "cdmaLevel" SIGNAL_STRENGTH_CDMA_ASU_LEVEL = "cdmaAsuLevel" SIGNAL_STRENGTH_CDMA_ECIO = "cdmaEcio" SIGNAL_STRENGTH_EVDO_DBM = "evdoDbm" SIGNAL_STRENGTH_EVDO_ECIO = "evdoEcio" SIGNAL_STRENGTH_LTE = "lteSignalStrength" SIGNAL_STRENGTH_LTE_DBM = "lteDbm" SIGNAL_STRENGTH_LTE_LEVEL = "lteLevel" SIGNAL_STRENGTH_LTE_ASU_LEVEL = "lteAsuLevel" SIGNAL_STRENGTH_DBM = "dbm" SIGNAL_STRENGTH_LEVEL = "level" SIGNAL_STRENGTH_ASU_LEVEL = "asuLevel" class MessageWaitingIndicatorContainer: IS_MESSAGE_WAITING = "isMessageWaiting" class CallStateContainer: INCOMING_NUMBER = "incomingNumber" SUBSCRIPTION_ID = "subscriptionId" CALL_STATE = "callState" class PreciseCallStateContainer: TYPE = "type" CAUSE = "cause" SUBSCRIPTION_ID = "subscriptionId" PRECISE_CALL_STATE = "preciseCallState" class DataConnectionRealTimeInfoContainer: TYPE = "type" TIME = "time" SUBSCRIPTION_ID = "subscriptionId" DATA_CONNECTION_POWER_STATE = "dataConnectionPowerState" class DataConnectionStateContainer: TYPE = "type" DATA_NETWORK_TYPE = "dataNetworkType" STATE_CODE = "stateCode" SUBSCRIPTION_ID = "subscriptionId" DATA_CONNECTION_STATE = "dataConnectionState" class ServiceStateContainer: VOICE_REG_STATE = "voiceRegState" VOICE_NETWORK_TYPE = "voiceNetworkType" DATA_REG_STATE = "dataRegState" DATA_NETWORK_TYPE = "dataNetworkType" OPERATOR_NAME = "operatorName" OPERATOR_ID = "operatorId" IS_MANUAL_NW_SELECTION = "isManualNwSelection" ROAMING = "roaming" IS_EMERGENCY_ONLY = "isEmergencyOnly" NETWORK_ID = "networkId" SYSTEM_ID = "systemId" SUBSCRIPTION_ID = "subscriptionId" SERVICE_STATE = "serviceState" class PacketKeepaliveContainer: ID = "id" PACKET_KEEPALIVE_EVENT = "packetKeepaliveEvent" class NetworkCallbackContainer: ID = "id" NETWORK_CALLBACK_EVENT = "networkCallbackEvent" MAX_MS_TO_LIVE = "maxMsToLive" RSSI = "rssi" """ End shared constant define for both Python and Java """
max_wait_time_connection_state_update = 20 max_wait_time_nw_selection = 120 max_wait_time_call_drop = 60 max_wait_time_callee_ringing = 30 max_wait_time_accept_call_to_offhook_event = 30 max_wait_time_call_idle_event = 60 max_wait_time_call_initiation = 25 max_wait_time_airplanemode_event = 90 max_wait_time_sms_sent_success = 60 max_wait_time_sms_receive = 120 max_wait_time_ims_registration = 120 max_wait_time_volte_enabled = MAX_WAIT_TIME_IMS_REGISTRATION + 20 max_wait_time_wfc_enabled = MAX_WAIT_TIME_IMS_REGISTRATION + 50 max_wait_time_wfc_disabled = 60 max_wait_time_wifi_connection = 30 max_wait_time_video_session_event = 10 max_wait_time_user_plane_data = 20 max_wait_time_tethering_entitlement_check = 15 max_wait_time_voice_mail_count = 30 max_wait_time_data_sub_change = 150 max_wait_time_telecom_ringing = 5 max_wait_time_provisioning = 300 wait_time_in_call = 15 wait_time_in_call_for_ims = 30 wait_time_reject_call = 2 wait_time_leave_voice_mail = 30 wait_time_accept_video_call_to_check_state = 2 wait_time_android_state_settling = 1 wait_time_between_reg_and_call = 5 wait_time_1_xrtt_voice_attach = 30 wait_time_data_status_change_during_wifi_tethering = 30 wait_time_wifi_rssi_calibration_wifi_connected = 10 wait_time_wifi_rssi_calibration_screen_on = 2 wait_time_voice_mail_server_response = 10 wait_time_after_reboot = 10 wait_time_tethering_after_reboot = 10 wait_time_change_data_sub_id = 30 phone_number_string_format_7_digit = 7 phone_number_string_format_10_digit = 10 phone_number_string_format_11_digit = 11 phone_number_string_format_12_digit = 12 max_screen_on_time = 1800 voicemail_delete_digit = '7' max_saved_voice_mail = 25 sim1_slot_index = 0 sim2_slot_index = 1 invalid_sub_id = -1 invalid_sim_slot_index = -1 invalid_wifi_rssi = -127 atten_max_value = 90 atten_min_value = 0 max_rssi_reserved_value = 100 min_rssi_reserved_value = -200 cell_weak_rssi_value = -120 cell_strong_rssi_value = -70 wifi_weak_rssi_value = -80 emergency_call_number = '911' aosp_prefix = 'aosp_' incall_ui_display_foreground = 'foreground' incall_ui_display_background = 'background' incall_ui_display_default = 'default' network_connection_type_wifi = 'wifi' network_connection_type_cell = 'cell' network_connection_type_mms = 'mms' network_connection_type_hipri = 'hipri' network_connection_type_unknown = 'unknown' tethering_mode_wifi = 'wifi' network_service_voice = 'voice' network_service_data = 'data' carrier_vzw = 'vzw' carrier_att = 'att' carrier_tmo = 'tmo' carrier_spt = 'spt' carrier_eeuk = 'eeuk' carrier_vfuk = 'vfuk' carrier_unknown = 'unknown' rat_family_cdma = 'cdma' rat_family_cdma2000 = 'cdma2000' rat_family_iden = 'iden' rat_family_gsm = 'gsm' rat_family_wcdma = 'wcdma' rat_family_umts = RAT_FAMILY_WCDMA rat_family_wlan = 'wlan' rat_family_lte = 'lte' rat_family_tdscdma = 'tdscdma' rat_family_unknown = 'unknown' capability_phone = 'phone' capability_volte = 'volte' capability_vt = 'vt' capability_wfc = 'wfc' capability_msim = 'msim' capability_omadm = 'omadm' direction_mobile_originated = 'MO' direction_mobile_terminated = 'MT' call_teardown_phone = 'PHONE' call_teardown_remote = 'REMOTE' wifi_verbose_logging_enabled = 1 wifi_verbose_logging_disabled = 0 '\nBegin shared constant define for both Python and Java\n' wfc_mode_wifi_only = 'WIFI_ONLY' wfc_mode_cellular_preferred = 'CELLULAR_PREFERRED' wfc_mode_wifi_preferred = 'WIFI_PREFERRED' wfc_mode_disabled = 'DISABLED' wfc_mode_unknown = 'UNKNOWN' vt_state_audio_only = 'AUDIO_ONLY' vt_state_tx_enabled = 'TX_ENABLED' vt_state_rx_enabled = 'RX_ENABLED' vt_state_bidirectional = 'BIDIRECTIONAL' vt_state_tx_paused = 'TX_PAUSED' vt_state_rx_paused = 'RX_PAUSED' vt_state_bidirectional_paused = 'BIDIRECTIONAL_PAUSED' vt_state_state_invalid = 'INVALID' vt_video_quality_default = 'DEFAULT' vt_video_quality_unknown = 'UNKNOWN' vt_video_quality_high = 'HIGH' vt_video_quality_medium = 'MEDIUM' vt_video_quality_low = 'LOW' vt_video_quality_invalid = 'INVALID' call_state_active = 'ACTIVE' call_state_new = 'NEW' call_state_dialing = 'DIALING' call_state_ringing = 'RINGING' call_state_holding = 'HOLDING' call_state_disconnected = 'DISCONNECTED' call_state_pre_dial_wait = 'PRE_DIAL_WAIT' call_state_connecting = 'CONNECTING' call_state_disconnecting = 'DISCONNECTING' call_state_unknown = 'UNKNOWN' call_state_invalid = 'INVALID' precise_call_state_active = 'ACTIVE' precise_call_state_alerting = 'ALERTING' precise_call_state_dialing = 'DIALING' precise_call_state_incoming = 'INCOMING' precise_call_state_holding = 'HOLDING' precise_call_state_disconnected = 'DISCONNECTED' precise_call_state_waiting = 'WAITING' precise_call_state_disconnecting = 'DISCONNECTING' precise_call_state_idle = 'IDLE' precise_call_state_unknown = 'UNKNOWN' precise_call_state_invalid = 'INVALID' dc_power_state_low = 'LOW' dc_power_state_high = 'HIGH' dc_power_state_medium = 'MEDIUM' dc_power_state_unknown = 'UNKNOWN' audio_route_earpiece = 'EARPIECE' audio_route_bluetooth = 'BLUETOOTH' audio_route_speaker = 'SPEAKER' audio_route_wired_headset = 'WIRED_HEADSET' audio_route_wired_or_earpiece = 'WIRED_OR_EARPIECE' call_capability_hold = 'HOLD' call_capability_support_hold = 'SUPPORT_HOLD' call_capability_merge_conference = 'MERGE_CONFERENCE' call_capability_swap_conference = 'SWAP_CONFERENCE' call_capability_unused_1 = 'UNUSED_1' call_capability_respond_via_text = 'RESPOND_VIA_TEXT' call_capability_mute = 'MUTE' call_capability_manage_conference = 'MANAGE_CONFERENCE' call_capability_supports_vt_local_rx = 'SUPPORTS_VT_LOCAL_RX' call_capability_supports_vt_local_tx = 'SUPPORTS_VT_LOCAL_TX' call_capability_supports_vt_local_bidirectional = 'SUPPORTS_VT_LOCAL_BIDIRECTIONAL' call_capability_supports_vt_remote_rx = 'SUPPORTS_VT_REMOTE_RX' call_capability_supports_vt_remote_tx = 'SUPPORTS_VT_REMOTE_TX' call_capability_supports_vt_remote_bidirectional = 'SUPPORTS_VT_REMOTE_BIDIRECTIONAL' call_capability_separate_from_conference = 'SEPARATE_FROM_CONFERENCE' call_capability_disconnect_from_conference = 'DISCONNECT_FROM_CONFERENCE' call_capability_speed_up_mt_audio = 'SPEED_UP_MT_AUDIO' call_capability_can_upgrade_to_video = 'CAN_UPGRADE_TO_VIDEO' call_capability_can_pause_video = 'CAN_PAUSE_VIDEO' call_capability_unkown = 'UNKOWN' call_property_high_def_audio = 'HIGH_DEF_AUDIO' call_property_conference = 'CONFERENCE' call_property_generic_conference = 'GENERIC_CONFERENCE' call_property_wifi = 'WIFI' call_property_emergency_callback_mode = 'EMERGENCY_CALLBACK_MODE' call_property_unknown = 'UNKNOWN' call_presentation_allowed = 'ALLOWED' call_presentation_restricted = 'RESTRICTED' call_presentation_payphone = 'PAYPHONE' call_presentation_unknown = 'UNKNOWN' gen_2_g = '2G' gen_3_g = '3G' gen_4_g = '4G' gen_unknown = 'UNKNOWN' rat_iwlan = 'IWLAN' rat_lte = 'LTE' rat_4_g = '4G' rat_3_g = '3G' rat_2_g = '2G' rat_wcdma = 'WCDMA' rat_umts = 'UMTS' rat_1_xrtt = '1XRTT' rat_edge = 'EDGE' rat_gprs = 'GPRS' rat_hsdpa = 'HSDPA' rat_hsupa = 'HSUPA' rat_cdma = 'CDMA' rat_evdo = 'EVDO' rat_evdo_0 = 'EVDO_0' rat_evdo_a = 'EVDO_A' rat_evdo_b = 'EVDO_B' rat_iden = 'IDEN' rat_ehrpd = 'EHRPD' rat_hspa = 'HSPA' rat_hspap = 'HSPAP' rat_gsm = 'GSM' rat_td_scdma = 'TD_SCDMA' rat_global = 'GLOBAL' rat_unknown = 'UNKNOWN' phone_type_gsm = 'GSM' phone_type_none = 'NONE' phone_type_cdma = 'CDMA' phone_type_sip = 'SIP' sim_state_ready = 'READY' sim_state_unknown = 'UNKNOWN' sim_state_absent = 'ABSENT' sim_state_puk_required = 'PUK_REQUIRED' sim_state_pin_required = 'PIN_REQUIRED' sim_state_network_locked = 'NETWORK_LOCKED' sim_state_not_ready = 'NOT_READY' sim_state_perm_disabled = 'PERM_DISABLED' sim_state_card_io_error = 'CARD_IO_ERROR' data_state_connected = 'CONNECTED' data_state_disconnected = 'DISCONNECTED' data_state_connecting = 'CONNECTING' data_state_suspended = 'SUSPENDED' data_state_unknown = 'UNKNOWN' telephony_state_ringing = 'RINGING' telephony_state_idle = 'IDLE' telephony_state_offhook = 'OFFHOOK' telephony_state_unknown = 'UNKNOWN' tty_mode_full = 'FULL' tty_mode_hco = 'HCO' tty_mode_off = 'OFF' tty_mode_vco = 'VCO' service_state_emergency_only = 'EMERGENCY_ONLY' service_state_in_service = 'IN_SERVICE' service_state_out_of_service = 'OUT_OF_SERVICE' service_state_power_off = 'POWER_OFF' service_state_unknown = 'UNKNOWN' volte_service_state_handover_started = 'STARTED' volte_service_state_handover_completed = 'COMPLETED' volte_service_state_handover_failed = 'FAILED' volte_service_state_handover_canceled = 'CANCELED' volte_service_state_handover_unknown = 'UNKNOWN' precise_call_state_listen_level_foreground = 'FOREGROUND' precise_call_state_listen_level_ringing = 'RINGING' precise_call_state_listen_level_background = 'BACKGROUND' event_video_session_modify_request_received = 'EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED' event_video_session_modify_response_received = 'EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED' event_video_session_event = 'EVENT_VIDEO_SESSION_EVENT' event_video_peer_dimensions_changed = 'EVENT_VIDEO_PEER_DIMENSIONS_CHANGED' event_video_quality_changed = 'EVENT_VIDEO_QUALITY_CHANGED' event_video_data_usage_changed = 'EVENT_VIDEO_DATA_USAGE_CHANGED' event_video_camera_capabilities_changed = 'EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED' event_video_invalid = 'EVENT_VIDEO_INVALID' session_event_rx_pause = 'SESSION_EVENT_RX_PAUSE' session_event_rx_resume = 'SESSION_EVENT_RX_RESUME' session_event_tx_start = 'SESSION_EVENT_TX_START' session_event_tx_stop = 'SESSION_EVENT_TX_STOP' session_event_camera_failure = 'SESSION_EVENT_CAMERA_FAILURE' session_event_camera_ready = 'SESSION_EVENT_CAMERA_READY' session_event_unknown = 'SESSION_EVENT_UNKNOWN' network_mode_wcdma_pref = 'NETWORK_MODE_WCDMA_PREF' network_mode_gsm_only = 'NETWORK_MODE_GSM_ONLY' network_mode_wcdma_only = 'NETWORK_MODE_WCDMA_ONLY' network_mode_gsm_umts = 'NETWORK_MODE_GSM_UMTS' network_mode_cdma = 'NETWORK_MODE_CDMA' network_mode_cdma_no_evdo = 'NETWORK_MODE_CDMA_NO_EVDO' network_mode_evdo_no_cdma = 'NETWORK_MODE_EVDO_NO_CDMA' network_mode_global = 'NETWORK_MODE_GLOBAL' network_mode_lte_cdma_evdo = 'NETWORK_MODE_LTE_CDMA_EVDO' network_mode_lte_gsm_wcdma = 'NETWORK_MODE_LTE_GSM_WCDMA' network_mode_lte_cdma_evdo_gsm_wcdma = 'NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA' network_mode_lte_only = 'NETWORK_MODE_LTE_ONLY' network_mode_lte_wcdma = 'NETWORK_MODE_LTE_WCDMA' network_mode_tdscdma_only = 'NETWORK_MODE_TDSCDMA_ONLY' network_mode_tdscdma_wcdma = 'NETWORK_MODE_TDSCDMA_WCDMA' network_mode_lte_tdscdma = 'NETWORK_MODE_LTE_TDSCDMA' network_mode_tdscdma_gsm = 'NETWORK_MODE_TDSCDMA_GSM' network_mode_lte_tdscdma_gsm = 'NETWORK_MODE_LTE_TDSCDMA_GSM' network_mode_tdscdma_gsm_wcdma = 'NETWORK_MODE_TDSCDMA_GSM_WCDMA' network_mode_lte_tdscdma_wcdma = 'NETWORK_MODE_LTE_TDSCDMA_WCDMA' network_mode_lte_tdscdma_gsm_wcdma = 'NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA' network_mode_tdscdma_cdma_evdo_wcdma = 'NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA' network_mode_lte_tdscdma_cdma_evdo_gsm_wcdma = 'NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA' event_sms_deliver_success = 'SmsDeliverSuccess' event_sms_deliver_failure = 'SmsDeliverFailure' event_sms_sent_success = 'SmsSentSuccess' event_sms_sent_failure = 'SmsSentFailure' event_sms_received = 'SmsReceived' event_mms_sent_success = 'MmsSentSuccess' event_mms_sent_failure = 'MmsSentFailure' event_mms_downloaded = 'MmsDownloaded' event_wap_push_received = 'WapPushReceived' event_data_sms_received = 'DataSmsReceived' event_cmas_received = 'CmasReceived' event_etws_received = 'EtwsReceived' event_telecom_call_state_changed = 'TelecomCallStateChanged' event_telecom_call_parent_changed = 'TelecomCallParentChanged' event_telecom_call_children_changed = 'TelecomCallChildrenChanged' event_telecom_call_details_changed = 'TelecomCallDetailsChanged' event_telecom_call_canned_text_responses_loaded = 'TelecomCallCannedTextResponsesLoaded' event_telecom_call_post_dial_wait = 'TelecomCallPostDialWait' event_telecom_call_video_call_changed = 'TelecomCallVideoCallChanged' event_telecom_call_destroyed = 'TelecomCallDestroyed' event_telecom_call_conferenceable_calls_changed = 'TelecomCallConferenceableCallsChanged' event_telecom_video_call_session_modify_request_received = 'TelecomVideoCallSessionModifyRequestReceived' event_telecom_video_call_session_modify_response_received = 'TelecomVideoCallSessionModifyResponseReceived' event_telecom_video_call_session_event = 'TelecomVideoCallSessionEvent' event_telecom_video_call_peer_dimensions_changed = 'TelecomVideoCallPeerDimensionsChanged' event_telecom_video_call_video_quality_changed = 'TelecomVideoCallVideoQualityChanged' event_telecom_video_call_data_usage_changed = 'TelecomVideoCallDataUsageChanged' event_telecom_video_call_camera_capabilities = 'TelecomVideoCallCameraCapabilities' event_call_state_changed = 'CallStateChanged' event_precise_state_changed = 'PreciseStateChanged' event_data_connection_real_time_info_changed = 'DataConnectionRealTimeInfoChanged' event_data_connection_state_changed = 'DataConnectionStateChanged' event_service_state_changed = 'ServiceStateChanged' event_signal_strength_changed = 'SignalStrengthChanged' event_volte_service_state_changed = 'VolteServiceStateChanged' event_message_waiting_indicator_changed = 'MessageWaitingIndicatorChanged' event_connectivity_changed = 'ConnectivityChanged' event_packet_keepalive_callback = 'PacketKeepaliveCallback' packet_keepalive_callback_started = 'Started' packet_keepalive_callback_stopped = 'Stopped' packet_keepalive_callback_error = 'Error' packet_keepalive_callback_invalid = 'Invalid' event_network_callback = 'NetworkCallback' network_callback_pre_check = 'PreCheck' network_callback_available = 'Available' network_callback_losing = 'Losing' network_callback_lost = 'Lost' network_callback_unavailable = 'Unavailable' network_callback_capabilities_changed = 'CapabilitiesChanged' network_callback_suspended = 'Suspended' network_callback_resumed = 'Resumed' network_callback_link_properties_changed = 'LinkPropertiesChanged' network_callback_invalid = 'Invalid' class Signalstrengthcontainer: signal_strength_gsm = 'gsmSignalStrength' signal_strength_gsm_dbm = 'gsmDbm' signal_strength_gsm_level = 'gsmLevel' signal_strength_gsm_asu_level = 'gsmAsuLevel' signal_strength_gsm_bit_error_rate = 'gsmBitErrorRate' signal_strength_cdma_dbm = 'cdmaDbm' signal_strength_cdma_level = 'cdmaLevel' signal_strength_cdma_asu_level = 'cdmaAsuLevel' signal_strength_cdma_ecio = 'cdmaEcio' signal_strength_evdo_dbm = 'evdoDbm' signal_strength_evdo_ecio = 'evdoEcio' signal_strength_lte = 'lteSignalStrength' signal_strength_lte_dbm = 'lteDbm' signal_strength_lte_level = 'lteLevel' signal_strength_lte_asu_level = 'lteAsuLevel' signal_strength_dbm = 'dbm' signal_strength_level = 'level' signal_strength_asu_level = 'asuLevel' class Messagewaitingindicatorcontainer: is_message_waiting = 'isMessageWaiting' class Callstatecontainer: incoming_number = 'incomingNumber' subscription_id = 'subscriptionId' call_state = 'callState' class Precisecallstatecontainer: type = 'type' cause = 'cause' subscription_id = 'subscriptionId' precise_call_state = 'preciseCallState' class Dataconnectionrealtimeinfocontainer: type = 'type' time = 'time' subscription_id = 'subscriptionId' data_connection_power_state = 'dataConnectionPowerState' class Dataconnectionstatecontainer: type = 'type' data_network_type = 'dataNetworkType' state_code = 'stateCode' subscription_id = 'subscriptionId' data_connection_state = 'dataConnectionState' class Servicestatecontainer: voice_reg_state = 'voiceRegState' voice_network_type = 'voiceNetworkType' data_reg_state = 'dataRegState' data_network_type = 'dataNetworkType' operator_name = 'operatorName' operator_id = 'operatorId' is_manual_nw_selection = 'isManualNwSelection' roaming = 'roaming' is_emergency_only = 'isEmergencyOnly' network_id = 'networkId' system_id = 'systemId' subscription_id = 'subscriptionId' service_state = 'serviceState' class Packetkeepalivecontainer: id = 'id' packet_keepalive_event = 'packetKeepaliveEvent' class Networkcallbackcontainer: id = 'id' network_callback_event = 'networkCallbackEvent' max_ms_to_live = 'maxMsToLive' rssi = 'rssi' '\nEnd shared constant define for both Python and Java\n'
# Fit image to screen height, optionally stretched horizontally def fit_to_screen(image, loaded_image, is_full_width): # Resize to fill height and width image_w, image_h = loaded_image.size target_w = image_w target_h = image_h image_ratio = float(image_w / image_h) if target_h > image.height: target_h = image.height target_w = round(image_ratio * target_h) # If full width requested if is_full_width == True: target_w = image.width target_h = round(target_w / image_ratio) # Apply resize return loaded_image.resize((target_w, target_h))
def fit_to_screen(image, loaded_image, is_full_width): (image_w, image_h) = loaded_image.size target_w = image_w target_h = image_h image_ratio = float(image_w / image_h) if target_h > image.height: target_h = image.height target_w = round(image_ratio * target_h) if is_full_width == True: target_w = image.width target_h = round(target_w / image_ratio) return loaded_image.resize((target_w, target_h))
def setup_parser(common_parser, subparsers): parser = subparsers.add_parser("genotype", parents=[common_parser]) parser.add_argument( "-i", "--gram_dir", help="Directory containing outputs from gramtools `build`", dest="gram_dir", type=str, required=True, ) parser.add_argument( "-o", "--genotype_dir", help="Directory to hold this command's outputs.", type=str, dest="geno_dir", required=True, ) parser.add_argument( "--reads", help="One or more read files.\n" "Valid formats: fastq, sam/bam/cram, fasta, txt; compressed or uncompressed; fuzzy extensions (eg fq, fsq for fastq).\n" "Read files can be given after one or several '--reads' argument:" "Eg '--reads rf_1.fq rf_2.fq.gz --reads rf_3.bam '", nargs="+", action="append", type=str, required=True, ) parser.add_argument( "--sample_id", help="A name for your dataset.\n" "Appears in the genotyping outputs.", required=True, ) parser.add_argument( "--ploidy", help="The expected ploidy of the sample.\n" "Default: haploid", choices=["haploid", "diploid"], required=False, default="haploid", ) parser.add_argument( "--max_threads", help="Run with more threads than the default of one.", type=int, default=1, required=False, ) parser.add_argument( "--seed", help="Fixing the seed will produce the same read mappings across different runs." "By default, seed is randomly generated so this is not the case.", type=int, default=0, required=False, )
def setup_parser(common_parser, subparsers): parser = subparsers.add_parser('genotype', parents=[common_parser]) parser.add_argument('-i', '--gram_dir', help='Directory containing outputs from gramtools `build`', dest='gram_dir', type=str, required=True) parser.add_argument('-o', '--genotype_dir', help="Directory to hold this command's outputs.", type=str, dest='geno_dir', required=True) parser.add_argument('--reads', help="One or more read files.\nValid formats: fastq, sam/bam/cram, fasta, txt; compressed or uncompressed; fuzzy extensions (eg fq, fsq for fastq).\nRead files can be given after one or several '--reads' argument:Eg '--reads rf_1.fq rf_2.fq.gz --reads rf_3.bam '", nargs='+', action='append', type=str, required=True) parser.add_argument('--sample_id', help='A name for your dataset.\nAppears in the genotyping outputs.', required=True) parser.add_argument('--ploidy', help='The expected ploidy of the sample.\nDefault: haploid', choices=['haploid', 'diploid'], required=False, default='haploid') parser.add_argument('--max_threads', help='Run with more threads than the default of one.', type=int, default=1, required=False) parser.add_argument('--seed', help='Fixing the seed will produce the same read mappings across different runs.By default, seed is randomly generated so this is not the case.', type=int, default=0, required=False)
#coding=utf-8 class Solution: def longestCommonPrefix(self, strs): res = "" strs.sort(key=lambda i: len(i)) # print(strs) for i in range(len(strs[0])): tmp = res + strs[0][i] # print("tmp=",tmp) for each in strs: if each.startswith(tmp) == False: return res res = tmp return res if __name__ == '__main__': s = Solution() res = s.longestCommonPrefix( ["flower","flow","flight"]) print(res) res = s.longestCommonPrefix( ["dog","racecar","car"]) print(res)
class Solution: def longest_common_prefix(self, strs): res = '' strs.sort(key=lambda i: len(i)) for i in range(len(strs[0])): tmp = res + strs[0][i] for each in strs: if each.startswith(tmp) == False: return res res = tmp return res if __name__ == '__main__': s = solution() res = s.longestCommonPrefix(['flower', 'flow', 'flight']) print(res) res = s.longestCommonPrefix(['dog', 'racecar', 'car']) print(res)
def da_sort(lst): count = 0 # replica = [x for x in lst] result = sorted(array) for char in lst: if char != result[0]: count += 1 else: result.pop(0) return count T = int(input()) for _ in range(T): k, n = map(int, input().split()) array = [] if n % 10 == 0: iterange = n//10 else: iterange = n//10 + 1 for _ in range(iterange): array.extend([int(x) for x in input().split()]) print(k, da_sort(array))
def da_sort(lst): count = 0 result = sorted(array) for char in lst: if char != result[0]: count += 1 else: result.pop(0) return count t = int(input()) for _ in range(T): (k, n) = map(int, input().split()) array = [] if n % 10 == 0: iterange = n // 10 else: iterange = n // 10 + 1 for _ in range(iterange): array.extend([int(x) for x in input().split()]) print(k, da_sort(array))
def netmiko_config(device, configuration=None, **kwargs): if configuration: output = device['nc'].send_config_set(configuration) else: output = "No configuration to send." return output
def netmiko_config(device, configuration=None, **kwargs): if configuration: output = device['nc'].send_config_set(configuration) else: output = 'No configuration to send.' return output
class SmTransferPriorityEnum(basestring): """ low|normal Possible values: <ul> <li> "low" , <li> "normal" </ul> """ @staticmethod def get_api_name(): return "sm-transfer-priority-enum"
class Smtransferpriorityenum(basestring): """ low|normal Possible values: <ul> <li> "low" , <li> "normal" </ul> """ @staticmethod def get_api_name(): return 'sm-transfer-priority-enum'
# x = 5 # # # def print_x(): # print(f'Print {x}') # # # print(x) # print_x() # # # def f1(): # def nested_f1(): # # nonlocal y # # y += 1 # y = 88 # ll.append(3) # # ll = [3] # z = 7 # print('From nested f1') # print(x) # print(y) # print(z) # print(abs(-x - y - z)) # # global name # name = 'Pesho' # global x # x += 5 # y = 6 # ll = [] # print(f'Before: {y}') # print(ll) # nested_f1() # print(ll) # print(f'After: {y}') # return 'Pesho' # # # f1() # print(name) # # print(y) def get_my_print(): count = 0 def my_print(x): nonlocal count count += 1 print(f'My ({count}): {x}') return my_print my_print = get_my_print() my_print('1') my_print('Pesho') my_print('Apples')
def get_my_print(): count = 0 def my_print(x): nonlocal count count += 1 print(f'My ({count}): {x}') return my_print my_print = get_my_print() my_print('1') my_print('Pesho') my_print('Apples')
def get_int_value(text): text = text.strip() if len(text) > 1 and text[:1] == '0': second_char = text[1:2] if second_char == 'x' or second_char == 'X': # hexa-decimal value return int(text[2:], 16) elif second_char == 'b' or second_char == 'B': # binary value return int(text[2:], 2) else: # octal value return int(text[2:], 8) else: # decimal value return int(text) def get_float_value(text): text = text.strip() return float(text) def get_bool_value(text): text = text.strip() if text == '1' or text.lower() == 'true': return True else: return False def get_string_value(text): return text.strip()
def get_int_value(text): text = text.strip() if len(text) > 1 and text[:1] == '0': second_char = text[1:2] if second_char == 'x' or second_char == 'X': return int(text[2:], 16) elif second_char == 'b' or second_char == 'B': return int(text[2:], 2) else: return int(text[2:], 8) else: return int(text) def get_float_value(text): text = text.strip() return float(text) def get_bool_value(text): text = text.strip() if text == '1' or text.lower() == 'true': return True else: return False def get_string_value(text): return text.strip()
class AdvancedArithmetic(object): def divisorSum(n): raise NotImplementedError class Calculator(AdvancedArithmetic): def getDivisors(self, n): if n == 1: return [1] maximum, num = n, 2 result = [1, n] while num < maximum: if not n % num: if num != n/num: result.extend([num, n//num]) else: result.append(num) maximum = n//num num += 1 return result def divisorSum(self, n): return sum(self.getDivisors(n)) n = int(input()) my_calculator = Calculator() s = my_calculator.divisorSum(n) print("I implemented: " + type(my_calculator).__bases__[0].__name__) print(s)
class Advancedarithmetic(object): def divisor_sum(n): raise NotImplementedError class Calculator(AdvancedArithmetic): def get_divisors(self, n): if n == 1: return [1] (maximum, num) = (n, 2) result = [1, n] while num < maximum: if not n % num: if num != n / num: result.extend([num, n // num]) else: result.append(num) maximum = n // num num += 1 return result def divisor_sum(self, n): return sum(self.getDivisors(n)) n = int(input()) my_calculator = calculator() s = my_calculator.divisorSum(n) print('I implemented: ' + type(my_calculator).__bases__[0].__name__) print(s)
class Node: def __init__(self, item, next=None): self.value = item self.next = next def linked_list_to_array(LList): item = [] if LList is None: return [] item = item + [LList.value] zz = LList while zz.next is not None: item = item + [zz.next.value] zz = zz.next return item def reverse_linked_list(LList): if LList.next is None: return LList prev_node = None current_node = LList while current_node is not None: next_node = current_node.next current_node.next = prev_node prev_node = current_node if next_node is None: return current_node else: current_node = next_node def insert_front(LList, node): node.next = LList return node
class Node: def __init__(self, item, next=None): self.value = item self.next = next def linked_list_to_array(LList): item = [] if LList is None: return [] item = item + [LList.value] zz = LList while zz.next is not None: item = item + [zz.next.value] zz = zz.next return item def reverse_linked_list(LList): if LList.next is None: return LList prev_node = None current_node = LList while current_node is not None: next_node = current_node.next current_node.next = prev_node prev_node = current_node if next_node is None: return current_node else: current_node = next_node def insert_front(LList, node): node.next = LList return node
# /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab : */ class d: def __init__(i, tag, txt, nl="", kl=None): i.tag, i.nl, i.kl, i.txt = tag, nl, kl, txt def __repr__(i): s="" if isinstance(i.txt,(list,tuple)): s = ''.join([str(x) for x in i.txt]) else: s = str(i.txt) kl = " class=\"%s\"" % i.kl if i.kl else "" return "%s<%s%s>%s</%s>" % ( i.nl,i.tag,kl,s,i.tag) def dnl(tag,txt,kl=None): return d(tag, txt,kl=kl,nl="\n") # n different licences # sidenav # top nav # news # all the following should be sub-classed class Page: def page(i,t,x): return dnl("html", [i.head(t), i.body( i.div(x, "wrapper"))]) def body(i,x, kl=None) : return dnl( "body", x, kl=kl) def head(i,t, kl=None) : return dnl( "head", i.title(t), kl=kl) def title(i,x,kl=None) : return dnl( "title",x, kl=kl) def div(i,x, kl=None) : return dnl( "div", x, kl=kl) def ul(i,x, kl=None) : return d( "ul", x, kl=kl) def i(i,x, kl=None) : return d( "em", x, kl=kl) def b(i,x, kl=None) : return d( "b" , x, kl=kl) def p(i,x, kl=None) : return dnl( "p" , x, kl=kl) def li(i,x, kl=None) : return dnl( "li", x, kl=kl) def ol(i,*l, kl=None) : return dnl( "ol", [i.li(y) for y in l], kl=kl) def ul(i,*l, kl=None) : return dnl( "ul", [i.li(y) for y in l], kl=kl) def uls(i,*l, kl=None, odd="li0", even="li1"): return i.ls(*l,what="ul",kl=None,odd=odd,even=even) def ols(i,*l, kl=None, odd="li0", even="li1"): return i.ls(*l,what="ol",kl=None,odd=odd,even=even) def ls(i,*l, what="ul", kl=None, odd="li0", even="li1"): oddp=[False] def show(x): oddp[0] = not oddp[0] return dnl("li", x, kl = odd if oddp[0] else even) return dnl( what, [show(y) for y in l],kl=kl) p=Page() print(p.page("love",p.uls("asdas",["sdasas", p.b("bols")], "dadas","apple", "banana","ws","white",odd="odd", even="even")))
class D: def __init__(i, tag, txt, nl='', kl=None): (i.tag, i.nl, i.kl, i.txt) = (tag, nl, kl, txt) def __repr__(i): s = '' if isinstance(i.txt, (list, tuple)): s = ''.join([str(x) for x in i.txt]) else: s = str(i.txt) kl = ' class="%s"' % i.kl if i.kl else '' return '%s<%s%s>%s</%s>' % (i.nl, i.tag, kl, s, i.tag) def dnl(tag, txt, kl=None): return d(tag, txt, kl=kl, nl='\n') class Page: def page(i, t, x): return dnl('html', [i.head(t), i.body(i.div(x, 'wrapper'))]) def body(i, x, kl=None): return dnl('body', x, kl=kl) def head(i, t, kl=None): return dnl('head', i.title(t), kl=kl) def title(i, x, kl=None): return dnl('title', x, kl=kl) def div(i, x, kl=None): return dnl('div', x, kl=kl) def ul(i, x, kl=None): return d('ul', x, kl=kl) def i(i, x, kl=None): return d('em', x, kl=kl) def b(i, x, kl=None): return d('b', x, kl=kl) def p(i, x, kl=None): return dnl('p', x, kl=kl) def li(i, x, kl=None): return dnl('li', x, kl=kl) def ol(i, *l, kl=None): return dnl('ol', [i.li(y) for y in l], kl=kl) def ul(i, *l, kl=None): return dnl('ul', [i.li(y) for y in l], kl=kl) def uls(i, *l, kl=None, odd='li0', even='li1'): return i.ls(*l, what='ul', kl=None, odd=odd, even=even) def ols(i, *l, kl=None, odd='li0', even='li1'): return i.ls(*l, what='ol', kl=None, odd=odd, even=even) def ls(i, *l, what='ul', kl=None, odd='li0', even='li1'): oddp = [False] def show(x): oddp[0] = not oddp[0] return dnl('li', x, kl=odd if oddp[0] else even) return dnl(what, [show(y) for y in l], kl=kl) p = page() print(p.page('love', p.uls('asdas', ['sdasas', p.b('bols')], 'dadas', 'apple', 'banana', 'ws', 'white', odd='odd', even='even')))
students = [ { "name": "John Doe", "age": 15, "sex": "male" }, { "name": "Jane Doe", "age": 12, "sex": "female" }, { "name": "Lockle Rory", "age": 18, "sex": "male" }, { "name": "Seyi Pedro", "age": 10, "sex": "female" } ]
students = [{'name': 'John Doe', 'age': 15, 'sex': 'male'}, {'name': 'Jane Doe', 'age': 12, 'sex': 'female'}, {'name': 'Lockle Rory', 'age': 18, 'sex': 'male'}, {'name': 'Seyi Pedro', 'age': 10, 'sex': 'female'}]
# 832 SLoC v = FormValidator( firstname=Unicode(), surname=Unicode(required="Please enter your surname"), age=Int(greaterthan(18, "You must be at least 18 to proceed"), required=False), ) input_data = { 'firstname': u'Fred', 'surname': u'Jones', 'age': u'21', } v.process(input_data) == {'age': 21, 'firstname': u'Fred', 'surname': u'Jones'} input_data = { 'firstname': u'Fred', 'age': u'16', } v.process(input_data) # raises ValidationError # ValidationError([('surname', 'Please enter your surname'), ('age', 'You must be at least 18 to proceed')]) #assert_true # raise if not value #assert_false # raise if value #test # raise if callback(value) #minlen #maxlen #greaterthan #lessthan #notempty #matches # regex #equals #is_in looks_like_email # basic, but kudos for not using a regex! maxwords minwords CustomType # for subclassing PassThrough # return value Int # int(value) or raise ValidationError Float # as Int Decimal # as Int Unicode # optionally strip, unicode(value), no encoding Bool # default (undefined) is False by default Calculated # return callback(*source_fields) DateTime Date
v = form_validator(firstname=unicode(), surname=unicode(required='Please enter your surname'), age=int(greaterthan(18, 'You must be at least 18 to proceed'), required=False)) input_data = {'firstname': u'Fred', 'surname': u'Jones', 'age': u'21'} v.process(input_data) == {'age': 21, 'firstname': u'Fred', 'surname': u'Jones'} input_data = {'firstname': u'Fred', 'age': u'16'} v.process(input_data) looks_like_email maxwords minwords CustomType PassThrough Int Float Decimal Unicode Bool Calculated DateTime Date
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.31626, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.451093, '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.81823, '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.759535, '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.31524, '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.754327, '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.8291, '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.472009, '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.01815, '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.343502, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0275337, '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.313021, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.203629, '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.656523, 'Execution Unit/Register Files/Runtime Dynamic': 0.231163, '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.84303, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.88478, '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.80152, '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.0011616, '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.0011616, '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.00101462, '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.000394344, '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.00292514, '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.00626296, '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.0110348, '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.195754, '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.402603, '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.664867, '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.28052, '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.0693417, 'L2/Runtime Dynamic': 0.0136607, '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.69495, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.62506, '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.176574, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.176574, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.53217, 'Load Store Unit/Runtime Dynamic': 3.67243, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.435401, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.870803, '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.154525, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.155561, '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.0660188, '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.825638, 'Memory Management Unit/Runtime Dynamic': 0.221579, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.9757, '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.1984, '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.0532591, '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.373546, '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.62521, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.6149, '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.0495849, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241635, '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.261666, '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.216426, '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.349086, '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.176207, '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.741719, '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.207411, '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.69332, '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.0494344, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00907786, '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.0844564, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0671363, '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.133891, 'Execution Unit/Register Files/Runtime Dynamic': 0.0762142, '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.190325, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.469552, '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.9345, '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.00193701, '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.00193701, '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.00172701, '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.000690364, '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.000964419, '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.00656545, '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.0171471, '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.0645399, '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.10529, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.220422, '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.219206, '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.52304, 'Instruction Fetch Unit/Runtime Dynamic': 0.52788, '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.0687005, 'L2/Runtime Dynamic': 0.0149604, '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.61072, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.1518, '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.0767916, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0767917, '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.97335, 'Load Store Unit/Runtime Dynamic': 1.6073, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.189355, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.37871, '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.0672027, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0679998, '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.255252, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0368303, '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.526803, 'Memory Management Unit/Runtime Dynamic': 0.10483, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.3747, '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.130039, '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.0113471, '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.107479, '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.248866, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.43833, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0619241, '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.0998813, '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.0504167, '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.212222, '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.0708235, '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': 3.9613, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00259738, '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.0187824, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0192092, '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.0187824, 'Execution Unit/Register Files/Runtime Dynamic': 0.0218066, '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.0395692, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.111314, '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': 0.953409, '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.00062807, '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.00062807, '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.000552209, '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.000216592, '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.000275942, '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.00208429, '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.0058375, '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.0184663, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.17461, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0835913, '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.0627198, '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': 3.45013, 'Instruction Fetch Unit/Runtime Dynamic': 0.172699, '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.030093, 'L2/Runtime Dynamic': 0.0091679, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.55146, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.165561, '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.0101696, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0101696, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.59948, 'Load Store Unit/Runtime Dynamic': 0.225883, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0250765, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.050153, '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.00889971, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00935155, '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.073033, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0137039, '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.24443, 'Memory Management Unit/Runtime Dynamic': 0.0230554, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 12.8749, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00279385, '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.0318851, '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.0346789, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.41889, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.244148, '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.393802, '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.198778, '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.836729, '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.279235, '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.36938, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0102407, '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.0740531, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0757361, '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.0740531, 'Execution Unit/Register Files/Runtime Dynamic': 0.0859768, '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.156009, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.467161, '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.99793, '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.00201571, '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.00201571, '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.00179321, '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.00071471, '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.00108796, '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.00691258, '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.0179854, '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.0728071, '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.63115, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.243379, '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.247286, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.07443, 'Instruction Fetch Unit/Runtime Dynamic': 0.58837, '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.0567864, 'L2/Runtime Dynamic': 0.0161194, '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.66987, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.19043, '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.0787053, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0787054, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.04154, 'Load Store Unit/Runtime Dynamic': 1.65728, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.194074, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.388148, '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.0688775, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0697277, '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.287948, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0399064, '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.562376, 'Memory Management Unit/Runtime Dynamic': 0.109634, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.694, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0110153, '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.127029, '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.138044, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.50738, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.9369935276373202, 'Runtime Dynamic': 1.9369935276373202, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.161329, 'Runtime Dynamic': 0.0792786, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 83.0806, 'Peak Power': 116.193, 'Runtime Dynamic': 23.0588, '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': 82.9193, 'Total Cores/Runtime Dynamic': 22.9795, '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.161329, 'Total L3s/Runtime Dynamic': 0.0792786, '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.31626, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.451093, '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.81823, '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.759535, '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.31524, '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.754327, '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.8291, '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.472009, '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.01815, '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.343502, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0275337, '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.313021, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.203629, '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.656523, 'Execution Unit/Register Files/Runtime Dynamic': 0.231163, '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.84303, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.88478, '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.80152, '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.0011616, '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.0011616, '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.00101462, '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.000394344, '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.00292514, '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.00626296, '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.0110348, '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.195754, '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.402603, '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.664867, '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.28052, '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.0693417, 'L2/Runtime Dynamic': 0.0136607, '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.69495, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.62506, '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.176574, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.176574, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.53217, 'Load Store Unit/Runtime Dynamic': 3.67243, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.435401, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.870803, '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.154525, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.155561, '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.0660188, '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.825638, 'Memory Management Unit/Runtime Dynamic': 0.221579, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.9757, '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.1984, '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.0532591, '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.373546, '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.62521, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.6149, '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.0495849, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241635, '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.261666, '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.216426, '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.349086, '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.176207, '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.741719, '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.207411, '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.69332, '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.0494344, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00907786, '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.0844564, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0671363, '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.133891, 'Execution Unit/Register Files/Runtime Dynamic': 0.0762142, '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.190325, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.469552, '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.9345, '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.00193701, '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.00193701, '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.00172701, '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.000690364, '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.000964419, '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.00656545, '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.0171471, '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.0645399, '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.10529, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.220422, '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.219206, '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.52304, 'Instruction Fetch Unit/Runtime Dynamic': 0.52788, '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.0687005, 'L2/Runtime Dynamic': 0.0149604, '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.61072, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.1518, '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.0767916, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0767917, '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.97335, 'Load Store Unit/Runtime Dynamic': 1.6073, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.189355, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.37871, '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.0672027, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0679998, '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.255252, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0368303, '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.526803, 'Memory Management Unit/Runtime Dynamic': 0.10483, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.3747, '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.130039, '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.0113471, '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.107479, '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.248866, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.43833, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0619241, '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.0998813, '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.0504167, '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.212222, '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.0708235, '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': 3.9613, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00259738, '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.0187824, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0192092, '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.0187824, 'Execution Unit/Register Files/Runtime Dynamic': 0.0218066, '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.0395692, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.111314, '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': 0.953409, '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.00062807, '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.00062807, '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.000552209, '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.000216592, '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.000275942, '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.00208429, '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.0058375, '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.0184663, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.17461, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0835913, '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.0627198, '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': 3.45013, 'Instruction Fetch Unit/Runtime Dynamic': 0.172699, '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.030093, 'L2/Runtime Dynamic': 0.0091679, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.55146, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.165561, '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.0101696, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0101696, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 1.59948, 'Load Store Unit/Runtime Dynamic': 0.225883, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0250765, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.050153, '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.00889971, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.00935155, '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.073033, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0137039, '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.24443, 'Memory Management Unit/Runtime Dynamic': 0.0230554, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 12.8749, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00279385, '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.0318851, '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.0346789, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.41889, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202689, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.0, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.244148, '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.393802, '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.198778, '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.836729, '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.279235, '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.36938, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0102407, '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.0740531, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0757361, '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.0740531, 'Execution Unit/Register Files/Runtime Dynamic': 0.0859768, '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.156009, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.467161, '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.99793, '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.00201571, '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.00201571, '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.00179321, '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.00071471, '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.00108796, '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.00691258, '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.0179854, '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.0728071, '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.63115, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.243379, '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.247286, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.07443, 'Instruction Fetch Unit/Runtime Dynamic': 0.58837, '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.0567864, 'L2/Runtime Dynamic': 0.0161194, '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.66987, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.19043, '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.0787053, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0787054, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.04154, 'Load Store Unit/Runtime Dynamic': 1.65728, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.194074, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.388148, '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.0688775, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0697277, '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.287948, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0399064, '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.562376, 'Memory Management Unit/Runtime Dynamic': 0.109634, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.694, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0110153, '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.127029, '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.138044, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.50738, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.9369935276373202, 'Runtime Dynamic': 1.9369935276373202, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.161329, 'Runtime Dynamic': 0.0792786, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 83.0806, 'Peak Power': 116.193, 'Runtime Dynamic': 23.0588, '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': 82.9193, 'Total Cores/Runtime Dynamic': 22.9795, '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.161329, 'Total L3s/Runtime Dynamic': 0.0792786, '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 most_frequent_days(year): days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] if year==2000: return ['Saturday', 'Sunday'] check=2000 if year>check: day=6 while check<year: check+=1 day+=2 if leap(check) else 1 if day%7==0: return [days[(day)%7], days[(day-1)%7]] if leap(year) else [days[day%7]] return [days[(day-1)%7], days[(day)%7]] if leap(year) else [days[day%7]] elif year<check: day=5 while check>year: check-=1 day-=2 if leap(check) else 1 if (day+1)%7==0: return [days[(day+1)%7], days[day%7]] if leap(year) else [days[day%7]] return [days[day%7], days[(day+1)%7]] if leap(year) else [days[day%7]] def leap(year): if year%400==0: return True elif year%100==0: return False elif year%4==0: return True return False
def most_frequent_days(year): days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] if year == 2000: return ['Saturday', 'Sunday'] check = 2000 if year > check: day = 6 while check < year: check += 1 day += 2 if leap(check) else 1 if day % 7 == 0: return [days[day % 7], days[(day - 1) % 7]] if leap(year) else [days[day % 7]] return [days[(day - 1) % 7], days[day % 7]] if leap(year) else [days[day % 7]] elif year < check: day = 5 while check > year: check -= 1 day -= 2 if leap(check) else 1 if (day + 1) % 7 == 0: return [days[(day + 1) % 7], days[day % 7]] if leap(year) else [days[day % 7]] return [days[day % 7], days[(day + 1) % 7]] if leap(year) else [days[day % 7]] def leap(year): if year % 400 == 0: return True elif year % 100 == 0: return False elif year % 4 == 0: return True return False
class Solution: # @param {integer[]} nums # @return {string} def largestNumber(self, nums): nums = sorted(nums, cmp=self.compare) res, j = '', 0 for i in range(len(nums) - 1): if nums[i] != 0: break else: j += 1 for k in range(j, len(nums)): res += str(nums[k]) return res def compare(self, x, y): tmp1, tmp2 = str(x) + str(y), str(y) + str(x) res = 0 if tmp1 > tmp2: res = -1 elif tmp1 < tmp2: res = 1 return res
class Solution: def largest_number(self, nums): nums = sorted(nums, cmp=self.compare) (res, j) = ('', 0) for i in range(len(nums) - 1): if nums[i] != 0: break else: j += 1 for k in range(j, len(nums)): res += str(nums[k]) return res def compare(self, x, y): (tmp1, tmp2) = (str(x) + str(y), str(y) + str(x)) res = 0 if tmp1 > tmp2: res = -1 elif tmp1 < tmp2: res = 1 return res
n = int(input()) sequence = [] for i in range(n): sequence.append(int(input())) print(f"Max number: {max(sequence)}\nMin number: {min(sequence)}")
n = int(input()) sequence = [] for i in range(n): sequence.append(int(input())) print(f'Max number: {max(sequence)}\nMin number: {min(sequence)}')
#python evt = lx.args()[0] if evt == 'onDo': lx.eval("?kelvin.quickScale") elif evt == 'onDrop': pass
evt = lx.args()[0] if evt == 'onDo': lx.eval('?kelvin.quickScale') elif evt == 'onDrop': pass
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def largestBSTSubtree(self, root): """ :type root: TreeNode :rtype: int """ def find(root): # return True if the root is a BST, and num the number of max subtree found under root, and lo and high of this tree if not root: return (True, 0, None, None) l,r=find(root.left),find(root.right) if l[0] and r[0] and (l[3]<root.val if l[3] else True) and (root.val<r[2] if r[2] else True): return (True, l[1]+r[1]+1, l[2] if l[2] else root.val, r[3] if r[3] else root.val) else: return (False, max(l[1],r[1],1), None, None) return find(root)[1]
class Solution(object): def largest_bst_subtree(self, root): """ :type root: TreeNode :rtype: int """ def find(root): if not root: return (True, 0, None, None) (l, r) = (find(root.left), find(root.right)) if l[0] and r[0] and (l[3] < root.val if l[3] else True) and (root.val < r[2] if r[2] else True): return (True, l[1] + r[1] + 1, l[2] if l[2] else root.val, r[3] if r[3] else root.val) else: return (False, max(l[1], r[1], 1), None, None) return find(root)[1]
""" An implementation of a very simple Twitter Standard v1.1 API client based on :mod:`requests`. See https://developer.twitter.com/en/docs/twitter-api/v1 for more information. """
""" An implementation of a very simple Twitter Standard v1.1 API client based on :mod:`requests`. See https://developer.twitter.com/en/docs/twitter-api/v1 for more information. """
class Solution: def lexicalOrder(self, n: int) -> List[int]: ans = [1] while len(ans) < n: nxt = ans[-1] * 10 while nxt > n: nxt //= 10 nxt += 1 while nxt % 10 == 0: nxt //= 10 ans.append(nxt) return ans
class Solution: def lexical_order(self, n: int) -> List[int]: ans = [1] while len(ans) < n: nxt = ans[-1] * 10 while nxt > n: nxt //= 10 nxt += 1 while nxt % 10 == 0: nxt //= 10 ans.append(nxt) return ans
# Advent of Code - Day 2 # day_2_advent_2020.py # 2020.12.02 # Jimmy Taylor # Reading data from text file, spliting each value as separate lines without line break input_data = open('inputs/day2.txt').read().splitlines() # Cleaning up the data in each row to make it easier to parse later as individual rows modified_data = [line.replace('-',' ').replace(':','').replace(' ',',') for line in input_data] # Tracking good and bad passwords valid_passwords_part_1 = 0 bad_passwords_part_1 = 0 valid_passwords_part_2 = 0 bad_passwords_part_2 = 0 for row in modified_data: row = list(row.split(',')) # Part 1 min_val = int(row[0]) max_val = int(row[1]) letter = row[2] password = row[3] # Counting instances of the letter in the password letter_count = password.count(letter) # Checking if letter count is within the range if (letter_count >= min_val) and (letter_count <= max_val): valid_passwords_part_1 += 1 else: bad_passwords_part_1 +=1 # Part 2 # Subtracting by 1 to calibrate character position first_pos = int(row[0]) - 1 second_pos = int(row[1]) - 1 letter = row[2] password = row[3] # Looking through the characters and capturing their positions positions = [pos for pos, char in enumerate(password) if char == letter] # Looking if letter is in both positions; if so, bad password if (first_pos in positions) and (second_pos in positions): bad_passwords_part_2 +=1 # If letter in one position, valid password elif (first_pos in positions): valid_passwords_part_2 += 1 elif (second_pos in positions): valid_passwords_part_2 += 1 # If letter is not in any position, bad password else: bad_passwords_part_2 +=1 print(f"Part 1 Valid Passwords: {valid_passwords_part_1}") print(f"Part 1 Bad Passwords: {bad_passwords_part_1}") print(f"Part 2 Valid Passwords: {valid_passwords_part_2}") print(f"Part 2 Bad Passwords: {bad_passwords_part_2}")
input_data = open('inputs/day2.txt').read().splitlines() modified_data = [line.replace('-', ' ').replace(':', '').replace(' ', ',') for line in input_data] valid_passwords_part_1 = 0 bad_passwords_part_1 = 0 valid_passwords_part_2 = 0 bad_passwords_part_2 = 0 for row in modified_data: row = list(row.split(',')) min_val = int(row[0]) max_val = int(row[1]) letter = row[2] password = row[3] letter_count = password.count(letter) if letter_count >= min_val and letter_count <= max_val: valid_passwords_part_1 += 1 else: bad_passwords_part_1 += 1 first_pos = int(row[0]) - 1 second_pos = int(row[1]) - 1 letter = row[2] password = row[3] positions = [pos for (pos, char) in enumerate(password) if char == letter] if first_pos in positions and second_pos in positions: bad_passwords_part_2 += 1 elif first_pos in positions: valid_passwords_part_2 += 1 elif second_pos in positions: valid_passwords_part_2 += 1 else: bad_passwords_part_2 += 1 print(f'Part 1 Valid Passwords: {valid_passwords_part_1}') print(f'Part 1 Bad Passwords: {bad_passwords_part_1}') print(f'Part 2 Valid Passwords: {valid_passwords_part_2}') print(f'Part 2 Bad Passwords: {bad_passwords_part_2}')
for t in range(int(input())): G = int(input()) for g in range(G): I,N,Q = map(int,input().split()) if I == 1 : if N%2: heads = N//2 tails = N - N//2 if Q == 1: print(heads) else: print(tails) else: print(N//2) else: if N%2: heads = N - N//2 tails = N//2 if Q == 1: print(heads) else: print(tails) else: print(N//2)
for t in range(int(input())): g = int(input()) for g in range(G): (i, n, q) = map(int, input().split()) if I == 1: if N % 2: heads = N // 2 tails = N - N // 2 if Q == 1: print(heads) else: print(tails) else: print(N // 2) elif N % 2: heads = N - N // 2 tails = N // 2 if Q == 1: print(heads) else: print(tails) else: print(N // 2)
class Tile(): def __init__(self, pos): self.white = True self.pos = pos def flip(self): self.white = not self.white def get_new_coord(from_tile, instructions): curr = [from_tile.pos[0], from_tile.pos[1]] for instruction in instructions: if instruction == "ne": curr[1] += 1 elif instruction == "e": curr[0] += 1 elif instruction == "se": curr[0] += 1 curr[1] -= 1 elif instruction == "sw": curr[1] -= 1 elif instruction == "w": curr[0] -= 1 elif instruction == "nw": curr[0] -= 1 curr[1] += 1 return (curr[0], curr[1]) def part_1(): file = open('input.txt', 'r') tiles = {} starting_tile = Tile((0,0)) tiles[starting_tile.pos] = starting_tile for line in file: line = line.strip("\n") instructions_on_line = [] index = 0 while index < len(line): if line[index] == "w" or line[index] == "e": instructions_on_line.append(line[index]) else: if line[index+1] == "w" or line[index+1] == "e": instructions_on_line.append(line[index:index+2]) index += 1 else: instructions_on_line.append(line[index]) index += 1 line_coord = get_new_coord(starting_tile,instructions_on_line) if line_coord in tiles: tiles[line_coord].flip() else: new_tile = Tile(line_coord) new_tile.flip() tiles[line_coord] = new_tile black_tiles = 0 for coord in tiles: if tiles[coord].white == False: black_tiles += 1 return black_tiles print(part_1())
class Tile: def __init__(self, pos): self.white = True self.pos = pos def flip(self): self.white = not self.white def get_new_coord(from_tile, instructions): curr = [from_tile.pos[0], from_tile.pos[1]] for instruction in instructions: if instruction == 'ne': curr[1] += 1 elif instruction == 'e': curr[0] += 1 elif instruction == 'se': curr[0] += 1 curr[1] -= 1 elif instruction == 'sw': curr[1] -= 1 elif instruction == 'w': curr[0] -= 1 elif instruction == 'nw': curr[0] -= 1 curr[1] += 1 return (curr[0], curr[1]) def part_1(): file = open('input.txt', 'r') tiles = {} starting_tile = tile((0, 0)) tiles[starting_tile.pos] = starting_tile for line in file: line = line.strip('\n') instructions_on_line = [] index = 0 while index < len(line): if line[index] == 'w' or line[index] == 'e': instructions_on_line.append(line[index]) elif line[index + 1] == 'w' or line[index + 1] == 'e': instructions_on_line.append(line[index:index + 2]) index += 1 else: instructions_on_line.append(line[index]) index += 1 line_coord = get_new_coord(starting_tile, instructions_on_line) if line_coord in tiles: tiles[line_coord].flip() else: new_tile = tile(line_coord) new_tile.flip() tiles[line_coord] = new_tile black_tiles = 0 for coord in tiles: if tiles[coord].white == False: black_tiles += 1 return black_tiles print(part_1())
# Example 1: # Input: digits = "23" # Output: ["ad","ae","af","bd","be","bf","cd","ce","cf"] # Example 2: # Input: digits = "" # Output: [] # Example 3: # Input: digits = "2" # Output: ["a","b","c"] class Solution: def letterCombinations(self, digits: str) -> List[str]: phone_keyboard = {2: 'abc', 3: 'def', 4: 'ghi', 5: 'jkl', 6: 'mno', 7: 'pqrs', 8: 'tuv', 9: 'wxyz'} answer = [''] if digits else [] for x in digits: answer = [i + j for i in answer for j in phone_keyboard[int(x)]] return answer
class Solution: def letter_combinations(self, digits: str) -> List[str]: phone_keyboard = {2: 'abc', 3: 'def', 4: 'ghi', 5: 'jkl', 6: 'mno', 7: 'pqrs', 8: 'tuv', 9: 'wxyz'} answer = [''] if digits else [] for x in digits: answer = [i + j for i in answer for j in phone_keyboard[int(x)]] return answer
class Solution(object): def productExceptSelf(self, nums): """ :type nums: List[int] :rtype: List[int] """ res = [1] * (len(nums)) prefix = 1 for i in range(len(nums)): res[i] = prefix prefix *= nums[i] postfix = 1 for i in range(len(nums) - 1, -1, -1): res[i] *= postfix postfix *= nums[i] return res
class Solution(object): def product_except_self(self, nums): """ :type nums: List[int] :rtype: List[int] """ res = [1] * len(nums) prefix = 1 for i in range(len(nums)): res[i] = prefix prefix *= nums[i] postfix = 1 for i in range(len(nums) - 1, -1, -1): res[i] *= postfix postfix *= nums[i] return res
# Write a program to read through the mbox-short.txt and figure out who has sent # the greatest number of mail messages. The program looks for 'From ' lines and # takes the second word of those lines as the person who sent the mail # The program creates a Python dictionary that maps the sender's mail address to a ' \ # 'count of the number of times they appear in the file. # After the dictionary is produced, the program reads through the dictionary using # a maximum loop to find the most prolific committer. md = dict() name = input("Enter file:") if len(name) < 1: name = "mbox-short.txt" handle = open(name) for linem in handle: if linem.startswith("From "): key = linem.split()[1] md[key] = md.get(key, 0) + 1 # count calculation bigcnt = None bigwd = None for wd, cnt in md.items(): if bigcnt is None or cnt > bigcnt: bigcnt = cnt bigwd = wd print(bigwd, bigcnt)
md = dict() name = input('Enter file:') if len(name) < 1: name = 'mbox-short.txt' handle = open(name) for linem in handle: if linem.startswith('From '): key = linem.split()[1] md[key] = md.get(key, 0) + 1 bigcnt = None bigwd = None for (wd, cnt) in md.items(): if bigcnt is None or cnt > bigcnt: bigcnt = cnt bigwd = wd print(bigwd, bigcnt)
#List of Numbers list1 = [12, -7, 5, 64, -14] #Iterating each number in the lsit for i in list1: #checking the condition if i >= 0: print(i, end = " ")
list1 = [12, -7, 5, 64, -14] for i in list1: if i >= 0: print(i, end=' ')
def Rotate2DArray(arr): n = len(arr[0]) for i in range(0, n//2): for j in range(i, n-i-1): temp = arr[i][j] arr[i][j] = arr[n-1-j][i] arr[n-j-1][i] = arr[n-1-i][n-j-1] arr[n-i-1][n-j-1] = arr[j][n-i-1] arr[j][n-i-1] = temp return arr arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] newarr = Rotate2DArray(arr) print(newarr)
def rotate2_d_array(arr): n = len(arr[0]) for i in range(0, n // 2): for j in range(i, n - i - 1): temp = arr[i][j] arr[i][j] = arr[n - 1 - j][i] arr[n - j - 1][i] = arr[n - 1 - i][n - j - 1] arr[n - i - 1][n - j - 1] = arr[j][n - i - 1] arr[j][n - i - 1] = temp return arr arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] newarr = rotate2_d_array(arr) print(newarr)
class Scene: def __init__(self, name="svg", height=400, width=400): self.name = name self.items = [] self.height = height self.width = width return def add(self, item): self.items.append(item) def strarray(self): var = ["<?xml version=\"1.0\"?>\n", "<svg height=\"%d\" width=\"%d\" >\n" % ( self.height, self.width), " <g style=\"fill-opacity:1.0; stroke:black;\n", " stroke-width:1;\">\n"] for item in self.items: var += item.strarray() var += [" </g>\n</svg>\n"] return var def write_svg(self, filename=None): if filename: self.svgname = filename else: self.svgname = self.name + ".svg" file = open(self.svgname, 'w') file.writelines(self.strarray()) file.close() return self.strarray() class Line: def __init__(self, start, end): self.start = start # xy tuple self.end = end # xy tuple return def strarray(self): return [" <line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" />\n" % (self.start[0], self.start[1], self.end[0], self.end[1])] class Rectangle: def __init__(self, origin, height, width, color=(255, 255, 255)): self.origin = origin self.height = height self.width = width self.color = color return def strarray(self): return [" <rect x=\"%d\" y=\"%d\" height=\"%d\"\n" % (self.origin[0], self.origin[1], self.height), " width=\"%d\" style=\"fill:%s;\" />\n" % (self.width, colorstr(self.color))] class Text: def __init__(self, origin, text, size=18, align_horizontal="middle", align_vertical="auto"): self.origin = origin self.text = text self.size = size self.align_horizontal = align_horizontal self.align_vertical = align_vertical return def strarray(self): return [" <text x=\"%d\" y=\"%d\" font-size=\"%d\"" % (self.origin[0], self.origin[1], self.size), " text-anchor=\"", self.align_horizontal, "\"", " dominant-baseline=\"", self.align_vertical, "\">\n", " %s\n" % self.text, " </text>\n"] class Textbox: def __init__(self, origin, height, width, text, color=(255, 255, 255), text_size=16): self.Outer = Rectangle(origin, height, width, color) self.Inner = Text((origin[0]+width//2, origin[1]+height//2), text, text_size, align_horizontal="middle", align_vertical="middle") return def strarray(self): return self.Outer.strarray() + self.Inner.strarray() def colorstr(rgb): return "rgb({}, {}, {})".format(rgb[0], rgb[1], rgb[2])
class Scene: def __init__(self, name='svg', height=400, width=400): self.name = name self.items = [] self.height = height self.width = width return def add(self, item): self.items.append(item) def strarray(self): var = ['<?xml version="1.0"?>\n', '<svg height="%d" width="%d" >\n' % (self.height, self.width), ' <g style="fill-opacity:1.0; stroke:black;\n', ' stroke-width:1;">\n'] for item in self.items: var += item.strarray() var += [' </g>\n</svg>\n'] return var def write_svg(self, filename=None): if filename: self.svgname = filename else: self.svgname = self.name + '.svg' file = open(self.svgname, 'w') file.writelines(self.strarray()) file.close() return self.strarray() class Line: def __init__(self, start, end): self.start = start self.end = end return def strarray(self): return [' <line x1="%d" y1="%d" x2="%d" y2="%d" />\n' % (self.start[0], self.start[1], self.end[0], self.end[1])] class Rectangle: def __init__(self, origin, height, width, color=(255, 255, 255)): self.origin = origin self.height = height self.width = width self.color = color return def strarray(self): return [' <rect x="%d" y="%d" height="%d"\n' % (self.origin[0], self.origin[1], self.height), ' width="%d" style="fill:%s;" />\n' % (self.width, colorstr(self.color))] class Text: def __init__(self, origin, text, size=18, align_horizontal='middle', align_vertical='auto'): self.origin = origin self.text = text self.size = size self.align_horizontal = align_horizontal self.align_vertical = align_vertical return def strarray(self): return [' <text x="%d" y="%d" font-size="%d"' % (self.origin[0], self.origin[1], self.size), ' text-anchor="', self.align_horizontal, '"', ' dominant-baseline="', self.align_vertical, '">\n', ' %s\n' % self.text, ' </text>\n'] class Textbox: def __init__(self, origin, height, width, text, color=(255, 255, 255), text_size=16): self.Outer = rectangle(origin, height, width, color) self.Inner = text((origin[0] + width // 2, origin[1] + height // 2), text, text_size, align_horizontal='middle', align_vertical='middle') return def strarray(self): return self.Outer.strarray() + self.Inner.strarray() def colorstr(rgb): return 'rgb({}, {}, {})'.format(rgb[0], rgb[1], rgb[2])
#Leia uma temperatura em graus celsius e apresente-a convertida em fahrenheit. # A formula da conversao eh: F=C*(9/5)+32, # sendo F a temperatura em fahrenheit e c a temperatura em celsius. C=float(input("Informe a temperatura em Celsius: ")) F=C*(9/5)+32 print(f"A temperatura em Fahrenheit eh {round(F,1)}")
c = float(input('Informe a temperatura em Celsius: ')) f = C * (9 / 5) + 32 print(f'A temperatura em Fahrenheit eh {round(F, 1)}')
def main(j, args, params, tags, tasklet): page = args.page action = args.requestContext.params.get('action') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('name') version = args.requestContext.params.get('version') nid = args.requestContext.params.get('nid') if not nid: nid = j.application.whoAmI.nid message = j.apps.system.packagemanager.action(nid=nid, domain=domain, pname=name, version=version, action=action) page.addHTML(message) params.result = page return params def match(j, args, params, tags, tasklet): return True
def main(j, args, params, tags, tasklet): page = args.page action = args.requestContext.params.get('action') domain = args.requestContext.params.get('domain') name = args.requestContext.params.get('name') version = args.requestContext.params.get('version') nid = args.requestContext.params.get('nid') if not nid: nid = j.application.whoAmI.nid message = j.apps.system.packagemanager.action(nid=nid, domain=domain, pname=name, version=version, action=action) page.addHTML(message) params.result = page return params def match(j, args, params, tags, tasklet): return True
STATS = [ { "num_node_expansions": 25, "plan_length": 20, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 22, "plan_length": 18, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 24, "plan_length": 21, "search_time": 0.33, "total_time": 0.33 }, { "num_node_expansions": 26, "plan_length": 20, "search_time": 0.41, "total_time": 0.41 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.44, "total_time": 0.44 }, { "num_node_expansions": 28, "plan_length": 24, "search_time": 0.76, "total_time": 0.76 }, { "num_node_expansions": 22, "plan_length": 18, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 19, "plan_length": 17, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 19, "plan_length": 17, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 16, "plan_length": 12, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 13, "plan_length": 11, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 17, "plan_length": 15, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 18, "plan_length": 15, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 12, "plan_length": 10, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 18, "plan_length": 16, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 15, "plan_length": 13, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 27, "plan_length": 23, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 31, "plan_length": 27, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 28, "plan_length": 24, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 18, "plan_length": 16, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 17, "plan_length": 13, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 20, "plan_length": 16, "search_time": 0.19, "total_time": 0.19 }, { "num_node_expansions": 16, "plan_length": 13, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 28, "plan_length": 24, "search_time": 0.21, "total_time": 0.21 }, { "num_node_expansions": 13, "plan_length": 11, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 19, "plan_length": 16, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 17, "plan_length": 13, "search_time": 0.22, "total_time": 0.22 }, { "num_node_expansions": 16, "plan_length": 14, "search_time": 0.23, "total_time": 0.23 }, { "num_node_expansions": 20, "plan_length": 15, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 16, "plan_length": 13, "search_time": 0.12, "total_time": 0.12 }, { "num_node_expansions": 27, "plan_length": 22, "search_time": 0.2, "total_time": 0.2 }, { "num_node_expansions": 21, "plan_length": 16, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 19, "plan_length": 16, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 22, "plan_length": 20, "search_time": 0.18, "total_time": 0.18 }, { "num_node_expansions": 25, "plan_length": 19, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 21, "plan_length": 19, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.34, "total_time": 0.34 }, { "num_node_expansions": 38, "plan_length": 33, "search_time": 0.62, "total_time": 0.62 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 23, "plan_length": 20, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 21, "plan_length": 17, "search_time": 0.17, "total_time": 0.17 }, { "num_node_expansions": 9, "plan_length": 7, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 18, "plan_length": 13, "search_time": 0.17, "total_time": 0.17 }, { "num_node_expansions": 29, "plan_length": 27, "search_time": 0.3, "total_time": 0.3 }, { "num_node_expansions": 15, "plan_length": 13, "search_time": 0.42, "total_time": 0.42 }, { "num_node_expansions": 35, "plan_length": 26, "search_time": 0.91, "total_time": 0.91 }, { "num_node_expansions": 18, "plan_length": 16, "search_time": 0.14, "total_time": 0.14 }, { "num_node_expansions": 22, "plan_length": 19, "search_time": 0.2, "total_time": 0.2 }, { "num_node_expansions": 24, "plan_length": 19, "search_time": 0.39, "total_time": 0.39 }, { "num_node_expansions": 17, "plan_length": 15, "search_time": 0.28, "total_time": 0.28 }, { "num_node_expansions": 10, "plan_length": 8, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 28, "plan_length": 25, "search_time": 1.05, "total_time": 1.05 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.74, "total_time": 0.74 }, { "num_node_expansions": 11, "plan_length": 9, "search_time": 0.61, "total_time": 0.61 }, { "num_node_expansions": 39, "plan_length": 34, "search_time": 0.97, "total_time": 0.97 }, { "num_node_expansions": 15, "plan_length": 13, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 25, "plan_length": 19, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 20, "plan_length": 18, "search_time": 0.19, "total_time": 0.19 }, { "num_node_expansions": 27, "plan_length": 21, "search_time": 0.25, "total_time": 0.25 }, { "num_node_expansions": 14, "plan_length": 11, "search_time": 0.05, "total_time": 0.05 }, { "num_node_expansions": 31, "plan_length": 24, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 9, "plan_length": 7, "search_time": 0.37, "total_time": 0.37 }, { "num_node_expansions": 33, "plan_length": 31, "search_time": 0.87, "total_time": 0.87 }, { "num_node_expansions": 18, "plan_length": 15, "search_time": 0.26, "total_time": 0.26 }, { "num_node_expansions": 18, "plan_length": 15, "search_time": 0.18, "total_time": 0.18 }, { "num_node_expansions": 18, "plan_length": 16, "search_time": 0.06, "total_time": 0.06 }, { "num_node_expansions": 18, "plan_length": 13, "search_time": 0.06, "total_time": 0.06 }, { "num_node_expansions": 11, "plan_length": 9, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 10, "plan_length": 8, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 18, "plan_length": 14, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 28, "plan_length": 21, "search_time": 0.06, "total_time": 0.06 }, { "num_node_expansions": 22, "plan_length": 17, "search_time": 0.12, "total_time": 0.12 }, { "num_node_expansions": 12, "plan_length": 10, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 15, "plan_length": 13, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 13, "plan_length": 10, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 22, "plan_length": 20, "search_time": 0.5, "total_time": 0.5 }, { "num_node_expansions": 27, "plan_length": 25, "search_time": 0.57, "total_time": 0.57 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.12, "total_time": 0.12 }, { "num_node_expansions": 13, "plan_length": 10, "search_time": 0.11, "total_time": 0.11 }, { "num_node_expansions": 13, "plan_length": 11, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 20, "plan_length": 18, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 20, "plan_length": 17, "search_time": 0.21, "total_time": 0.21 }, { "num_node_expansions": 28, "plan_length": 21, "search_time": 0.23, "total_time": 0.23 }, { "num_node_expansions": 13, "plan_length": 10, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 17, "plan_length": 15, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 23, "plan_length": 18, "search_time": 0.08, "total_time": 0.08 }, { "num_node_expansions": 19, "plan_length": 17, "search_time": 0.08, "total_time": 0.08 }, { "num_node_expansions": 22, "plan_length": 17, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 22, "plan_length": 18, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 16, "plan_length": 12, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 14, "plan_length": 10, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 22, "plan_length": 20, "search_time": 0.17, "total_time": 0.17 }, { "num_node_expansions": 19, "plan_length": 17, "search_time": 0.15, "total_time": 0.15 }, { "num_node_expansions": 15, "plan_length": 12, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 21, "plan_length": 18, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 28, "plan_length": 25, "search_time": 1.75, "total_time": 1.75 }, { "num_node_expansions": 25, "plan_length": 20, "search_time": 1.54, "total_time": 1.54 }, { "num_node_expansions": 9, "plan_length": 7, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 9, "plan_length": 7, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 14, "plan_length": 11, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 19, "plan_length": 15, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 17, "plan_length": 15, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 26, "plan_length": 20, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 13, "plan_length": 10, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 15, "plan_length": 12, "search_time": 0.11, "total_time": 0.11 }, { "num_node_expansions": 35, "plan_length": 33, "search_time": 0.69, "total_time": 0.69 }, { "num_node_expansions": 33, "plan_length": 28, "search_time": 0.64, "total_time": 0.64 }, { "num_node_expansions": 20, "plan_length": 17, "search_time": 0.07, "total_time": 0.07 }, { "num_node_expansions": 13, "plan_length": 10, "search_time": 0.05, "total_time": 0.05 }, { "num_node_expansions": 16, "plan_length": 12, "search_time": 1.02, "total_time": 1.02 }, { "num_node_expansions": 24, "plan_length": 19, "search_time": 1.73, "total_time": 1.73 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.08, "total_time": 0.08 }, { "num_node_expansions": 24, "plan_length": 18, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 32, "plan_length": 25, "search_time": 0.4, "total_time": 0.4 }, { "num_node_expansions": 25, "plan_length": 19, "search_time": 0.29, "total_time": 0.29 }, { "num_node_expansions": 21, "plan_length": 17, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 22, "plan_length": 17, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 21, "plan_length": 17, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 22, "plan_length": 20, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 14, "plan_length": 12, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 31, "plan_length": 28, "search_time": 0.28, "total_time": 0.28 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 26, "plan_length": 20, "search_time": 0.13, "total_time": 0.13 }, { "num_node_expansions": 18, "plan_length": 14, "search_time": 0.23, "total_time": 0.23 }, { "num_node_expansions": 16, "plan_length": 12, "search_time": 0.18, "total_time": 0.18 }, { "num_node_expansions": 16, "plan_length": 12, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 25, "plan_length": 19, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 17, "plan_length": 12, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 16, "plan_length": 14, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 19, "plan_length": 15, "search_time": 0.11, "total_time": 0.11 }, { "num_node_expansions": 18, "plan_length": 13, "search_time": 0.1, "total_time": 0.1 }, { "num_node_expansions": 21, "plan_length": 19, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 23, "plan_length": 17, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 19, "plan_length": 13, "search_time": 0.07, "total_time": 0.07 }, { "num_node_expansions": 15, "plan_length": 12, "search_time": 0.06, "total_time": 0.06 }, { "num_node_expansions": 23, "plan_length": 19, "search_time": 0.09, "total_time": 0.09 }, { "num_node_expansions": 20, "plan_length": 18, "search_time": 0.08, "total_time": 0.08 }, { "num_node_expansions": 21, "plan_length": 16, "search_time": 0.26, "total_time": 0.26 }, { "num_node_expansions": 20, "plan_length": 15, "search_time": 0.29, "total_time": 0.29 }, { "num_node_expansions": 18, "plan_length": 16, "search_time": 1.07, "total_time": 1.07 }, { "num_node_expansions": 25, "plan_length": 23, "search_time": 1.64, "total_time": 1.64 }, { "num_node_expansions": 14, "plan_length": 10, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 17, "plan_length": 13, "search_time": 0.05, "total_time": 0.05 }, { "num_node_expansions": 24, "plan_length": 19, "search_time": 0.05, "total_time": 0.05 }, { "num_node_expansions": 22, "plan_length": 18, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 15, "plan_length": 12, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 11, "plan_length": 8, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 20, "plan_length": 18, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 27, "plan_length": 23, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 20, "plan_length": 17, "search_time": 0.35, "total_time": 0.35 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.28, "total_time": 0.28 }, { "num_node_expansions": 15, "plan_length": 12, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 17, "plan_length": 12, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.22, "total_time": 0.22 }, { "num_node_expansions": 39, "plan_length": 33, "search_time": 0.43, "total_time": 0.43 }, { "num_node_expansions": 16, "plan_length": 13, "search_time": 0.14, "total_time": 0.14 }, { "num_node_expansions": 25, "plan_length": 20, "search_time": 0.19, "total_time": 0.19 }, { "num_node_expansions": 21, "plan_length": 16, "search_time": 0.02, "total_time": 0.02 }, { "num_node_expansions": 27, "plan_length": 19, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 18, "plan_length": 14, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 16, "plan_length": 14, "search_time": 0.03, "total_time": 0.03 }, { "num_node_expansions": 29, "plan_length": 27, "search_time": 0.05, "total_time": 0.05 }, { "num_node_expansions": 19, "plan_length": 14, "search_time": 0.04, "total_time": 0.04 }, { "num_node_expansions": 21, "plan_length": 18, "search_time": 0.24, "total_time": 0.24 }, { "num_node_expansions": 16, "plan_length": 14, "search_time": 0.28, "total_time": 0.28 }, { "num_node_expansions": 14, "plan_length": 12, "search_time": 0.01, "total_time": 0.01 }, { "num_node_expansions": 17, "plan_length": 14, "search_time": 0.0, "total_time": 0.0 }, { "num_node_expansions": 20, "plan_length": 17, "search_time": 0.51, "total_time": 0.51 }, { "num_node_expansions": 14, "plan_length": 12, "search_time": 0.39, "total_time": 0.39 } ] num_timeouts = 0 num_timeouts = 0 num_problems = 172
stats = [{'num_node_expansions': 25, 'plan_length': 20, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 22, 'plan_length': 18, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 24, 'plan_length': 21, 'search_time': 0.33, 'total_time': 0.33}, {'num_node_expansions': 26, 'plan_length': 20, 'search_time': 0.41, 'total_time': 0.41}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.44, 'total_time': 0.44}, {'num_node_expansions': 28, 'plan_length': 24, 'search_time': 0.76, 'total_time': 0.76}, {'num_node_expansions': 22, 'plan_length': 18, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 19, 'plan_length': 17, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 19, 'plan_length': 17, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 16, 'plan_length': 12, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 13, 'plan_length': 11, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 17, 'plan_length': 15, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 18, 'plan_length': 15, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 12, 'plan_length': 10, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 18, 'plan_length': 16, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 15, 'plan_length': 13, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 27, 'plan_length': 23, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 31, 'plan_length': 27, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 28, 'plan_length': 24, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 18, 'plan_length': 16, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 17, 'plan_length': 13, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 20, 'plan_length': 16, 'search_time': 0.19, 'total_time': 0.19}, {'num_node_expansions': 16, 'plan_length': 13, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 28, 'plan_length': 24, 'search_time': 0.21, 'total_time': 0.21}, {'num_node_expansions': 13, 'plan_length': 11, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 19, 'plan_length': 16, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 17, 'plan_length': 13, 'search_time': 0.22, 'total_time': 0.22}, {'num_node_expansions': 16, 'plan_length': 14, 'search_time': 0.23, 'total_time': 0.23}, {'num_node_expansions': 20, 'plan_length': 15, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 16, 'plan_length': 13, 'search_time': 0.12, 'total_time': 0.12}, {'num_node_expansions': 27, 'plan_length': 22, 'search_time': 0.2, 'total_time': 0.2}, {'num_node_expansions': 21, 'plan_length': 16, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 19, 'plan_length': 16, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 22, 'plan_length': 20, 'search_time': 0.18, 'total_time': 0.18}, {'num_node_expansions': 25, 'plan_length': 19, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 21, 'plan_length': 19, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.34, 'total_time': 0.34}, {'num_node_expansions': 38, 'plan_length': 33, 'search_time': 0.62, 'total_time': 0.62}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 23, 'plan_length': 20, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 21, 'plan_length': 17, 'search_time': 0.17, 'total_time': 0.17}, {'num_node_expansions': 9, 'plan_length': 7, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 18, 'plan_length': 13, 'search_time': 0.17, 'total_time': 0.17}, {'num_node_expansions': 29, 'plan_length': 27, 'search_time': 0.3, 'total_time': 0.3}, {'num_node_expansions': 15, 'plan_length': 13, 'search_time': 0.42, 'total_time': 0.42}, {'num_node_expansions': 35, 'plan_length': 26, 'search_time': 0.91, 'total_time': 0.91}, {'num_node_expansions': 18, 'plan_length': 16, 'search_time': 0.14, 'total_time': 0.14}, {'num_node_expansions': 22, 'plan_length': 19, 'search_time': 0.2, 'total_time': 0.2}, {'num_node_expansions': 24, 'plan_length': 19, 'search_time': 0.39, 'total_time': 0.39}, {'num_node_expansions': 17, 'plan_length': 15, 'search_time': 0.28, 'total_time': 0.28}, {'num_node_expansions': 10, 'plan_length': 8, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 28, 'plan_length': 25, 'search_time': 1.05, 'total_time': 1.05}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.74, 'total_time': 0.74}, {'num_node_expansions': 11, 'plan_length': 9, 'search_time': 0.61, 'total_time': 0.61}, {'num_node_expansions': 39, 'plan_length': 34, 'search_time': 0.97, 'total_time': 0.97}, {'num_node_expansions': 15, 'plan_length': 13, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 25, 'plan_length': 19, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 20, 'plan_length': 18, 'search_time': 0.19, 'total_time': 0.19}, {'num_node_expansions': 27, 'plan_length': 21, 'search_time': 0.25, 'total_time': 0.25}, {'num_node_expansions': 14, 'plan_length': 11, 'search_time': 0.05, 'total_time': 0.05}, {'num_node_expansions': 31, 'plan_length': 24, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 9, 'plan_length': 7, 'search_time': 0.37, 'total_time': 0.37}, {'num_node_expansions': 33, 'plan_length': 31, 'search_time': 0.87, 'total_time': 0.87}, {'num_node_expansions': 18, 'plan_length': 15, 'search_time': 0.26, 'total_time': 0.26}, {'num_node_expansions': 18, 'plan_length': 15, 'search_time': 0.18, 'total_time': 0.18}, {'num_node_expansions': 18, 'plan_length': 16, 'search_time': 0.06, 'total_time': 0.06}, {'num_node_expansions': 18, 'plan_length': 13, 'search_time': 0.06, 'total_time': 0.06}, {'num_node_expansions': 11, 'plan_length': 9, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 10, 'plan_length': 8, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 18, 'plan_length': 14, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 28, 'plan_length': 21, 'search_time': 0.06, 'total_time': 0.06}, {'num_node_expansions': 22, 'plan_length': 17, 'search_time': 0.12, 'total_time': 0.12}, {'num_node_expansions': 12, 'plan_length': 10, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 15, 'plan_length': 13, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 13, 'plan_length': 10, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 22, 'plan_length': 20, 'search_time': 0.5, 'total_time': 0.5}, {'num_node_expansions': 27, 'plan_length': 25, 'search_time': 0.57, 'total_time': 0.57}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.12, 'total_time': 0.12}, {'num_node_expansions': 13, 'plan_length': 10, 'search_time': 0.11, 'total_time': 0.11}, {'num_node_expansions': 13, 'plan_length': 11, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 20, 'plan_length': 18, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 20, 'plan_length': 17, 'search_time': 0.21, 'total_time': 0.21}, {'num_node_expansions': 28, 'plan_length': 21, 'search_time': 0.23, 'total_time': 0.23}, {'num_node_expansions': 13, 'plan_length': 10, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 17, 'plan_length': 15, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 23, 'plan_length': 18, 'search_time': 0.08, 'total_time': 0.08}, {'num_node_expansions': 19, 'plan_length': 17, 'search_time': 0.08, 'total_time': 0.08}, {'num_node_expansions': 22, 'plan_length': 17, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 22, 'plan_length': 18, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 16, 'plan_length': 12, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 14, 'plan_length': 10, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 22, 'plan_length': 20, 'search_time': 0.17, 'total_time': 0.17}, {'num_node_expansions': 19, 'plan_length': 17, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 15, 'plan_length': 12, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 21, 'plan_length': 18, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 28, 'plan_length': 25, 'search_time': 1.75, 'total_time': 1.75}, {'num_node_expansions': 25, 'plan_length': 20, 'search_time': 1.54, 'total_time': 1.54}, {'num_node_expansions': 9, 'plan_length': 7, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 9, 'plan_length': 7, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 14, 'plan_length': 11, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 19, 'plan_length': 15, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 17, 'plan_length': 15, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 26, 'plan_length': 20, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 13, 'plan_length': 10, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 15, 'plan_length': 12, 'search_time': 0.11, 'total_time': 0.11}, {'num_node_expansions': 35, 'plan_length': 33, 'search_time': 0.69, 'total_time': 0.69}, {'num_node_expansions': 33, 'plan_length': 28, 'search_time': 0.64, 'total_time': 0.64}, {'num_node_expansions': 20, 'plan_length': 17, 'search_time': 0.07, 'total_time': 0.07}, {'num_node_expansions': 13, 'plan_length': 10, 'search_time': 0.05, 'total_time': 0.05}, {'num_node_expansions': 16, 'plan_length': 12, 'search_time': 1.02, 'total_time': 1.02}, {'num_node_expansions': 24, 'plan_length': 19, 'search_time': 1.73, 'total_time': 1.73}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.08, 'total_time': 0.08}, {'num_node_expansions': 24, 'plan_length': 18, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 32, 'plan_length': 25, 'search_time': 0.4, 'total_time': 0.4}, {'num_node_expansions': 25, 'plan_length': 19, 'search_time': 0.29, 'total_time': 0.29}, {'num_node_expansions': 21, 'plan_length': 17, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 22, 'plan_length': 17, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 21, 'plan_length': 17, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 22, 'plan_length': 20, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 14, 'plan_length': 12, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 31, 'plan_length': 28, 'search_time': 0.28, 'total_time': 0.28}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 26, 'plan_length': 20, 'search_time': 0.13, 'total_time': 0.13}, {'num_node_expansions': 18, 'plan_length': 14, 'search_time': 0.23, 'total_time': 0.23}, {'num_node_expansions': 16, 'plan_length': 12, 'search_time': 0.18, 'total_time': 0.18}, {'num_node_expansions': 16, 'plan_length': 12, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 25, 'plan_length': 19, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 17, 'plan_length': 12, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 16, 'plan_length': 14, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 19, 'plan_length': 15, 'search_time': 0.11, 'total_time': 0.11}, {'num_node_expansions': 18, 'plan_length': 13, 'search_time': 0.1, 'total_time': 0.1}, {'num_node_expansions': 21, 'plan_length': 19, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 23, 'plan_length': 17, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 19, 'plan_length': 13, 'search_time': 0.07, 'total_time': 0.07}, {'num_node_expansions': 15, 'plan_length': 12, 'search_time': 0.06, 'total_time': 0.06}, {'num_node_expansions': 23, 'plan_length': 19, 'search_time': 0.09, 'total_time': 0.09}, {'num_node_expansions': 20, 'plan_length': 18, 'search_time': 0.08, 'total_time': 0.08}, {'num_node_expansions': 21, 'plan_length': 16, 'search_time': 0.26, 'total_time': 0.26}, {'num_node_expansions': 20, 'plan_length': 15, 'search_time': 0.29, 'total_time': 0.29}, {'num_node_expansions': 18, 'plan_length': 16, 'search_time': 1.07, 'total_time': 1.07}, {'num_node_expansions': 25, 'plan_length': 23, 'search_time': 1.64, 'total_time': 1.64}, {'num_node_expansions': 14, 'plan_length': 10, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 17, 'plan_length': 13, 'search_time': 0.05, 'total_time': 0.05}, {'num_node_expansions': 24, 'plan_length': 19, 'search_time': 0.05, 'total_time': 0.05}, {'num_node_expansions': 22, 'plan_length': 18, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 15, 'plan_length': 12, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 11, 'plan_length': 8, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 20, 'plan_length': 18, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 27, 'plan_length': 23, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 20, 'plan_length': 17, 'search_time': 0.35, 'total_time': 0.35}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.28, 'total_time': 0.28}, {'num_node_expansions': 15, 'plan_length': 12, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 17, 'plan_length': 12, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.22, 'total_time': 0.22}, {'num_node_expansions': 39, 'plan_length': 33, 'search_time': 0.43, 'total_time': 0.43}, {'num_node_expansions': 16, 'plan_length': 13, 'search_time': 0.14, 'total_time': 0.14}, {'num_node_expansions': 25, 'plan_length': 20, 'search_time': 0.19, 'total_time': 0.19}, {'num_node_expansions': 21, 'plan_length': 16, 'search_time': 0.02, 'total_time': 0.02}, {'num_node_expansions': 27, 'plan_length': 19, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 18, 'plan_length': 14, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 16, 'plan_length': 14, 'search_time': 0.03, 'total_time': 0.03}, {'num_node_expansions': 29, 'plan_length': 27, 'search_time': 0.05, 'total_time': 0.05}, {'num_node_expansions': 19, 'plan_length': 14, 'search_time': 0.04, 'total_time': 0.04}, {'num_node_expansions': 21, 'plan_length': 18, 'search_time': 0.24, 'total_time': 0.24}, {'num_node_expansions': 16, 'plan_length': 14, 'search_time': 0.28, 'total_time': 0.28}, {'num_node_expansions': 14, 'plan_length': 12, 'search_time': 0.01, 'total_time': 0.01}, {'num_node_expansions': 17, 'plan_length': 14, 'search_time': 0.0, 'total_time': 0.0}, {'num_node_expansions': 20, 'plan_length': 17, 'search_time': 0.51, 'total_time': 0.51}, {'num_node_expansions': 14, 'plan_length': 12, 'search_time': 0.39, 'total_time': 0.39}] num_timeouts = 0 num_timeouts = 0 num_problems = 172
def rotate(angle): """Rotates the context""" raise NotImplementedError("rotate() is not implemented") def translate(x, y): """Translates the context by x and y""" raise NotImplementedError("translate() is not implemented") def scale(factor): """Scales the context by the provided factor""" raise NotImplementedError("scale() is not implemented") def save(): """Saves the current context's translation, rotation and scaling""" raise NotImplementedError("save() is not implemented") def restore(): """Restores the context's translation, rotation and scaling to that of the latest save""" raise NotImplementedError("restore() is not implemented") def reset_style(): """Resets PyPen's current setting surrounding style to their default_values, which includes fill_color, stroke_color, stroke_width""" raise NotImplementedError("reset_style() is not implemented") def clear_screen(): """Clears the screen""" raise NotImplementedError("clear_screen() not implemented") def clear(): """Clears the screen""" raise NotImplementedError("clear() not implemented") def fill_screen(color="default_background_color"): """Fills the screen with the specified color""" raise NotImplementedError("fill_screen() not implemented") def fill(): """Fills the current path""" raise NotImplementedError("fill() not implemented") def begin_shape(): """Tells PyPen that a shape is a bout to be created""" raise NotImplementedError("begin_shape() not implemented") def vertex(x, y): """Adds a vertex to current shape at (x, y)""" raise NotImplementedError("vertex() not implemented") def end_shape(fill_color="", stroke_color="", stroke_width=-1): """Ends shape and styles it""" raise NotImplementedError("end_shape() not implemented") def rectangle(x, y, width, height, fill_color="", stroke_color="", stroke_width=-1): """Draws a rectangle on the given coordinate with the given width, height and color""" raise NotImplementedError("rectangle() not implemented") def circle(x, y, radius, fill_color="", stroke_color="", stroke_width=-1): """Draws a circle on the given coordinate with the given radius and color""" raise NotImplementedError("circle() not implemented") def ellipse(x, y, width, height, fill_color="", stroke_color="", stroke_width=-1): """Draws an ellipse on the given coordinate with the given width, height and color""" raise NotImplementedError("ellipse() not implemented") def arc(x, y, radius, start_angle, stop_angle, fill_color="", stroke_color="", stroke_width=-1): """Draws an arc on the given coordinate with the given radius, angles and color""" raise NotImplementedError("arc() not implemented") def triangle(x1, y1, x2, y2, x3, y3, fill_color="", stroke_color="", stroke_width=-1): """Draws a triangle between the supplied coordinates with the given color""" raise NotImplementedError("triangle() not implemented") def line(x1, y1, x2, y2, stroke_color="", stroke_width=-1): """Draws a line between the supplied coordinates with the given stroke_color and stroke_width""" raise NotImplementedError("triangle() not implemented")
def rotate(angle): """Rotates the context""" raise not_implemented_error('rotate() is not implemented') def translate(x, y): """Translates the context by x and y""" raise not_implemented_error('translate() is not implemented') def scale(factor): """Scales the context by the provided factor""" raise not_implemented_error('scale() is not implemented') def save(): """Saves the current context's translation, rotation and scaling""" raise not_implemented_error('save() is not implemented') def restore(): """Restores the context's translation, rotation and scaling to that of the latest save""" raise not_implemented_error('restore() is not implemented') def reset_style(): """Resets PyPen's current setting surrounding style to their default_values, which includes fill_color, stroke_color, stroke_width""" raise not_implemented_error('reset_style() is not implemented') def clear_screen(): """Clears the screen""" raise not_implemented_error('clear_screen() not implemented') def clear(): """Clears the screen""" raise not_implemented_error('clear() not implemented') def fill_screen(color='default_background_color'): """Fills the screen with the specified color""" raise not_implemented_error('fill_screen() not implemented') def fill(): """Fills the current path""" raise not_implemented_error('fill() not implemented') def begin_shape(): """Tells PyPen that a shape is a bout to be created""" raise not_implemented_error('begin_shape() not implemented') def vertex(x, y): """Adds a vertex to current shape at (x, y)""" raise not_implemented_error('vertex() not implemented') def end_shape(fill_color='', stroke_color='', stroke_width=-1): """Ends shape and styles it""" raise not_implemented_error('end_shape() not implemented') def rectangle(x, y, width, height, fill_color='', stroke_color='', stroke_width=-1): """Draws a rectangle on the given coordinate with the given width, height and color""" raise not_implemented_error('rectangle() not implemented') def circle(x, y, radius, fill_color='', stroke_color='', stroke_width=-1): """Draws a circle on the given coordinate with the given radius and color""" raise not_implemented_error('circle() not implemented') def ellipse(x, y, width, height, fill_color='', stroke_color='', stroke_width=-1): """Draws an ellipse on the given coordinate with the given width, height and color""" raise not_implemented_error('ellipse() not implemented') def arc(x, y, radius, start_angle, stop_angle, fill_color='', stroke_color='', stroke_width=-1): """Draws an arc on the given coordinate with the given radius, angles and color""" raise not_implemented_error('arc() not implemented') def triangle(x1, y1, x2, y2, x3, y3, fill_color='', stroke_color='', stroke_width=-1): """Draws a triangle between the supplied coordinates with the given color""" raise not_implemented_error('triangle() not implemented') def line(x1, y1, x2, y2, stroke_color='', stroke_width=-1): """Draws a line between the supplied coordinates with the given stroke_color and stroke_width""" raise not_implemented_error('triangle() not implemented')
print(14514) for i in range(3, 121): for j in range(1, i + 1): print(i, j, -1) print(i, j, 1)
print(14514) for i in range(3, 121): for j in range(1, i + 1): print(i, j, -1) print(i, j, 1)
obj_row, obj_col = 2978, 3083 first_code = 20151125 def generate(obj_row, obj_col): x_row= obj_row + obj_col - 1 x_n = sum(range(1, x_row + 1)) - (x_row - obj_col) print(x_n) previous = first_code aux = first_code for i in range(1, x_n) : aux = (previous * 252533) % 33554393 previous = aux return aux print("RESULT: ", generate(obj_row, obj_col))
(obj_row, obj_col) = (2978, 3083) first_code = 20151125 def generate(obj_row, obj_col): x_row = obj_row + obj_col - 1 x_n = sum(range(1, x_row + 1)) - (x_row - obj_col) print(x_n) previous = first_code aux = first_code for i in range(1, x_n): aux = previous * 252533 % 33554393 previous = aux return aux print('RESULT: ', generate(obj_row, obj_col))
def wait(t, c): while c < t: c += c return c s, t, n = [int(i) for i in raw_input().split()] d = map(int, raw_input().split()) b = map(int, raw_input().split()) c = map(int, raw_input().split()) time = s time += d[0] for i in range(n): time = wait(time, c[i]) time += b[i] time += d[i+1] print('yes' if time < t else 'no')
def wait(t, c): while c < t: c += c return c (s, t, n) = [int(i) for i in raw_input().split()] d = map(int, raw_input().split()) b = map(int, raw_input().split()) c = map(int, raw_input().split()) time = s time += d[0] for i in range(n): time = wait(time, c[i]) time += b[i] time += d[i + 1] print('yes' if time < t else 'no')
class Config: SECRET_KEY = 'a22912297e93845c6cf4776991df63ec' SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db' MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = "noreplya006@gmail.com" MAIL_PASSWORD = "#@1234abcd"
class Config: secret_key = 'a22912297e93845c6cf4776991df63ec' sqlalchemy_database_uri = 'sqlite:///site.db' mail_server = 'smtp.gmail.com' mail_port = 587 mail_use_tls = True mail_username = 'noreplya006@gmail.com' mail_password = '#@1234abcd'
# https://practice.geeksforgeeks.org/problems/circular-tour-1587115620/1 # 4 6 7 4 # 6 5 3 5 # -2 1 4 -1 class Solution: def tour(self, lis, n): sum = 0 j = 0 for i in range(len(lis)): pair = lis[i] sum += pair[0]-pair[1] if sum < 0: sum = 0 j = i+1 if j>=n: return -1 else: return j if __name__ == '__main__': t = int(input()) for i in range(t): n = int(input()) arr = list(map(int, input().strip().split())) lis = [] for i in range(1, 2 * n, 2): lis.append([arr[i - 1], arr[i]]) print(Solution().tour(lis, n))
class Solution: def tour(self, lis, n): sum = 0 j = 0 for i in range(len(lis)): pair = lis[i] sum += pair[0] - pair[1] if sum < 0: sum = 0 j = i + 1 if j >= n: return -1 else: return j if __name__ == '__main__': t = int(input()) for i in range(t): n = int(input()) arr = list(map(int, input().strip().split())) lis = [] for i in range(1, 2 * n, 2): lis.append([arr[i - 1], arr[i]]) print(solution().tour(lis, n))
MESSAGES = { # name -> (message send, expected response) "ping request": (b'd1:ad2:id20:\x16\x01\xfb\xa7\xca\x18P\x9e\xe5\x1d\xcc\x0e\xf8\xc6Z\x1a\xfe<s\x81e1:q4:ping1:t2:aa1:y1:qe', b'^d1:t2:aa1:y1:r1:rd2:id20:.{20}ee$'), "ping request missing id": (b'd1:ade1:q4:ping1:t2:XX1:y1:qe', b'^d1:t2:XX1:y1:e1:eli203e14:Protocol Erroree$'), "find_node request": (b'd1:ad2:id20:abcdefghij01234567896:target20:mnopqrstuvwxyz123456e1:q9:find_node1:t2:aa1:y1:qe', b'^d1:t2:aa1:y1:r1:rd5:nodesl(26|38):.*ee$'), }
messages = {'ping request': (b'd1:ad2:id20:\x16\x01\xfb\xa7\xca\x18P\x9e\xe5\x1d\xcc\x0e\xf8\xc6Z\x1a\xfe<s\x81e1:q4:ping1:t2:aa1:y1:qe', b'^d1:t2:aa1:y1:r1:rd2:id20:.{20}ee$'), 'ping request missing id': (b'd1:ade1:q4:ping1:t2:XX1:y1:qe', b'^d1:t2:XX1:y1:e1:eli203e14:Protocol Erroree$'), 'find_node request': (b'd1:ad2:id20:abcdefghij01234567896:target20:mnopqrstuvwxyz123456e1:q9:find_node1:t2:aa1:y1:qe', b'^d1:t2:aa1:y1:r1:rd5:nodesl(26|38):.*ee$')}
#!/usr/bin/env python # PoC1.py junk = "A"*1000 payload = junk f = open('exploit.plf','w') f.write(payload) f.close()
junk = 'A' * 1000 payload = junk f = open('exploit.plf', 'w') f.write(payload) f.close()
""" Misc ASCII art """ WARNING = r""" _mBma sQf "QL jW( -$g. jW' -$m, .y@' _aa. 4m, .mD` ]QQWQ. 4Q, _mP` ]QQQQ ?Q/ _QF )WQQ@ ?Qc <QF QQQF )Qa jW( QQQf "QL jW' ]H8' -Q6. .y@' _as. -$m. .m@` ]QQWQ. -4m, _mP` -?$8! 4Q, mE $m ?$gyygggggggggwywgyygggggggygggggD( """
""" Misc ASCII art """ warning = '\n _mBma\n sQf "QL\n jW( -$g.\n jW\' -$m,\n .y@\' _aa. 4m,\n .mD` ]QQWQ. 4Q,\n _mP` ]QQQQ ?Q/\n _QF )WQQ@ ?Qc\n <QF QQQF )Qa\n jW( QQQf "QL\n jW\' ]H8\' -Q6.\n .y@\' _as. -$m.\n .m@` ]QQWQ. -4m,\n_mP` -?$8! 4Q,\nmE $m\n?$gyygggggggggwywgyygggggggygggggD(\n'
""" summary: code to be run right after IDAPython initialization description: The `idapythonrc.py` file: * %APPDATA%\Hex-Rays\IDA Pro\idapythonrc.py (on Windows) * ~/.idapro/idapythonrc.py (on Linux & Mac) can contain any IDAPython code that will be run as soon as IDAPython is done successfully initializing. """ # Add your favourite script to ScriptBox for easy access # scriptbox.addscript("/here/is/my/favourite/script.py") # Uncomment if you want to set Python as default interpreter in IDA # import ida_idaapi # ida_idaapi.enable_extlang_python(True) # Disable the Python from interactive command-line # import ida_idaapi # ida_idaapi.enable_python_cli(False) # Set the timeout for the script execution cancel dialog # import ida_idaapi # ida_idaapi.set_script_timeout(10)
""" summary: code to be run right after IDAPython initialization description: The `idapythonrc.py` file: * %APPDATA%\\Hex-Rays\\IDA Pro\\idapythonrc.py (on Windows) * ~/.idapro/idapythonrc.py (on Linux & Mac) can contain any IDAPython code that will be run as soon as IDAPython is done successfully initializing. """
''' Created on 22 Oct 2019 @author: Yvo ''' name = "Rom Filter";
""" Created on 22 Oct 2019 @author: Yvo """ name = 'Rom Filter'
class State: MOTION_STATIONARY = 0 MOTION_WALKING = 1 MOTION_RUNNING = 2 MOTION_DRIVING = 3 MOTION_BIKING = 4 LOCATION_HOME = 0 LOCATION_WORK = 1 LOCATION_OTHER = 2 RINGER_MODE_SILENT = 0 RINGER_MODE_VIBRATE = 1 RINGER_MODE_NORMAL = 2 SCREEN_STATUS_ON = 0 SCREEN_STATUS_OFF = 1 def __init__(self, timeOfDay, dayOfWeek, motion, location, notificationTimeElapsed, ringerMode, screenStatus): assert 0.0 <= timeOfDay and timeOfDay <= 1.0 assert 0.0 <= dayOfWeek and dayOfWeek <= 1.0 assert motion in State.allMotionValues() assert location in State.allLocationValues() assert 0.0 <= notificationTimeElapsed assert ringerMode in State.allRingerModeValues() assert screenStatus in State.allScreenStatusValues() self.timeOfDay = timeOfDay self.dayOfWeek = dayOfWeek self.motion = motion self.location = location self.notificationTimeElapsed = notificationTimeElapsed self.ringerMode = ringerMode self.screenStatus = screenStatus @staticmethod def allMotionValues(): return [ State.MOTION_STATIONARY, State.MOTION_WALKING, State.MOTION_RUNNING, State.MOTION_DRIVING, State.MOTION_BIKING, ] @staticmethod def allLocationValues(): return [ State.LOCATION_HOME, State.LOCATION_WORK, State.LOCATION_OTHER, ] @staticmethod def allRingerModeValues(): return [ State.RINGER_MODE_SILENT, State.RINGER_MODE_VIBRATE, State.RINGER_MODE_NORMAL, ] @staticmethod def allScreenStatusValues(): return [ State.SCREEN_STATUS_ON, State.SCREEN_STATUS_OFF, ] @staticmethod def getExampleState(): return State( timeOfDay=0., dayOfWeek=0., motion=State.MOTION_STATIONARY, location=State.LOCATION_HOME, notificationTimeElapsed=1., ringerMode=State.RINGER_MODE_SILENT, screenStatus=State.SCREEN_STATUS_ON, ) def __eq__(self, other): return all([ self.timeOfDay == other.timeOfDay, self.dayOfWeek == other.dayOfWeek, self.motion == other.motion, self.location == other.location, self.notificationTimeElapsed == other.notificationTimeElapsed, self.ringerMode == other.ringerMode, self.screenStatus == other.screenStatus, ])
class State: motion_stationary = 0 motion_walking = 1 motion_running = 2 motion_driving = 3 motion_biking = 4 location_home = 0 location_work = 1 location_other = 2 ringer_mode_silent = 0 ringer_mode_vibrate = 1 ringer_mode_normal = 2 screen_status_on = 0 screen_status_off = 1 def __init__(self, timeOfDay, dayOfWeek, motion, location, notificationTimeElapsed, ringerMode, screenStatus): assert 0.0 <= timeOfDay and timeOfDay <= 1.0 assert 0.0 <= dayOfWeek and dayOfWeek <= 1.0 assert motion in State.allMotionValues() assert location in State.allLocationValues() assert 0.0 <= notificationTimeElapsed assert ringerMode in State.allRingerModeValues() assert screenStatus in State.allScreenStatusValues() self.timeOfDay = timeOfDay self.dayOfWeek = dayOfWeek self.motion = motion self.location = location self.notificationTimeElapsed = notificationTimeElapsed self.ringerMode = ringerMode self.screenStatus = screenStatus @staticmethod def all_motion_values(): return [State.MOTION_STATIONARY, State.MOTION_WALKING, State.MOTION_RUNNING, State.MOTION_DRIVING, State.MOTION_BIKING] @staticmethod def all_location_values(): return [State.LOCATION_HOME, State.LOCATION_WORK, State.LOCATION_OTHER] @staticmethod def all_ringer_mode_values(): return [State.RINGER_MODE_SILENT, State.RINGER_MODE_VIBRATE, State.RINGER_MODE_NORMAL] @staticmethod def all_screen_status_values(): return [State.SCREEN_STATUS_ON, State.SCREEN_STATUS_OFF] @staticmethod def get_example_state(): return state(timeOfDay=0.0, dayOfWeek=0.0, motion=State.MOTION_STATIONARY, location=State.LOCATION_HOME, notificationTimeElapsed=1.0, ringerMode=State.RINGER_MODE_SILENT, screenStatus=State.SCREEN_STATUS_ON) def __eq__(self, other): return all([self.timeOfDay == other.timeOfDay, self.dayOfWeek == other.dayOfWeek, self.motion == other.motion, self.location == other.location, self.notificationTimeElapsed == other.notificationTimeElapsed, self.ringerMode == other.ringerMode, self.screenStatus == other.screenStatus])
class Shortener(): """ The shortner API provides three functions, create, retrive and update shortened URL token. """ def __init__(self, shortener, store, validator) -> None: self.__shortener = shortener self.__store = store self.__validator = validator self.__default_protocol = 'http://' def create(self, url, user = '') -> str: shortened_str = '' #use the validator to validate the original URL if self.__validator(url): #add default protocol if '://' not in url: url = f'{self.__default_protocol}{url}' #for each user we will create a differnt short URL token input_url = f'{url}{user}' #create using the shortener function shortened_str = self.__shortener(input_url) i = 0 #try store the pair, if got collision, re-create by adding a trailing number while not self.__store.add(shortened_str, url, user): #3 is an arbitrary number here to prevent collision, if SHA256 bits are evenly distributed, the chance of collision is very low if i == 3: raise ValueError('Failed to shorten the URL.') i += 1 shortened_str = self.__shortener(input_url, i) else: raise ValueError("URL is invalid.") return shortened_str def retrieve(self, shortened_str) -> str: url = '' url = self.__store.get(shortened_str) if not url: raise ValueError('Failed to find the URL.') return url def update(self, shortened_str, url, user) -> bool: #basic check to ensure no infinite redirection if url.endswith(shortened_str): raise ValueError('Short URL and Original URL cannot be the same.') if self.__validator(url): #add default protocol if '://' not in url: url = f'{self.__default_protocol}{url}' return self.__store.update(shortened_str, url, user) else: raise ValueError("URL is invalid.")
class Shortener: """ The shortner API provides three functions, create, retrive and update shortened URL token. """ def __init__(self, shortener, store, validator) -> None: self.__shortener = shortener self.__store = store self.__validator = validator self.__default_protocol = 'http://' def create(self, url, user='') -> str: shortened_str = '' if self.__validator(url): if '://' not in url: url = f'{self.__default_protocol}{url}' input_url = f'{url}{user}' shortened_str = self.__shortener(input_url) i = 0 while not self.__store.add(shortened_str, url, user): if i == 3: raise value_error('Failed to shorten the URL.') i += 1 shortened_str = self.__shortener(input_url, i) else: raise value_error('URL is invalid.') return shortened_str def retrieve(self, shortened_str) -> str: url = '' url = self.__store.get(shortened_str) if not url: raise value_error('Failed to find the URL.') return url def update(self, shortened_str, url, user) -> bool: if url.endswith(shortened_str): raise value_error('Short URL and Original URL cannot be the same.') if self.__validator(url): if '://' not in url: url = f'{self.__default_protocol}{url}' return self.__store.update(shortened_str, url, user) else: raise value_error('URL is invalid.')
""" FILE: read_switches.py AUTHOR: Ben Simcox PROJECT: verbose-waffle (github.com/bnsmcx/verbose-waffle) PURPOSE: Currently simulates reading of switches. This functionality will change when prototyping moves to hardware but the use of a list of lists to capture the switch positions will be the same. """ def read_switches() -> list: """This function will ultimately interact with the hardware, now it returns a test list""" test_list = [ [0, 1, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 1], [0, 0, 1, 0, 1, 1, 0, 0], [0, 1, 0, 1, 0, 1, 1, 1], [0, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 0, 1, 1, 0, 0], [0, 1, 0, 0, 1, 1, 0, 0], [0, 0, 1, 0, 0, 0, 0, 1] ] return test_list
""" FILE: read_switches.py AUTHOR: Ben Simcox PROJECT: verbose-waffle (github.com/bnsmcx/verbose-waffle) PURPOSE: Currently simulates reading of switches. This functionality will change when prototyping moves to hardware but the use of a list of lists to capture the switch positions will be the same. """ def read_switches() -> list: """This function will ultimately interact with the hardware, now it returns a test list""" test_list = [[0, 1, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 1], [0, 0, 1, 0, 1, 1, 0, 0], [0, 1, 0, 1, 0, 1, 1, 1], [0, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 0, 1, 1, 0, 0], [0, 1, 0, 0, 1, 1, 0, 0], [0, 0, 1, 0, 0, 0, 0, 1]] return test_list
class LinkParserResult: uri: str = "" relationship: str = "" link_type: str = "" datetime: str = "" title: str = "" link_from: str = "" link_until: str = "" def __init__(self, uri: str = "", relationship: str = "", link_type: str = "", datetime: str = "", title: str = "", link_from: str = "", link_until: str = ""): self.uri = uri.strip() self.relationship = relationship self.datetime = datetime self.link_type = link_type self.title = title self.link_from = link_from self.link_until = link_until class LinkParser: def parse(self, link_header: str) -> list[LinkParserResult]: """ Parses given link header string into link parser results. :param link_header: link header as string. :return: List containing link parser results. """ pass
class Linkparserresult: uri: str = '' relationship: str = '' link_type: str = '' datetime: str = '' title: str = '' link_from: str = '' link_until: str = '' def __init__(self, uri: str='', relationship: str='', link_type: str='', datetime: str='', title: str='', link_from: str='', link_until: str=''): self.uri = uri.strip() self.relationship = relationship self.datetime = datetime self.link_type = link_type self.title = title self.link_from = link_from self.link_until = link_until class Linkparser: def parse(self, link_header: str) -> list[LinkParserResult]: """ Parses given link header string into link parser results. :param link_header: link header as string. :return: List containing link parser results. """ pass
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def getIntersectionNode(self, headA, headB): """ :type head1, head1: ListNode :rtype: ListNode """ p1, p2 = headA, headB len1, len2 = 1, 1 while p1 != None and p2 != None: if p1 == p2: # Intersect return p1 else: p1 = p1.next len1 += 1 p2 = p2.next len2 += 1 while p1 != None: p1 = p1.next len1 += 1 while p2 != None: p2 = p2.next len2 += 1 # The second iteration diff = abs(len1 - len2) p1, p2 = headA, headB while p1 != None and p2 != None: if len1 >= len2 and diff > 0: p1 = p1.next diff -= 1 elif len1 < len2 and diff > 0: p2 = p2.next diff -= 1 else: # find the intersection if p1 == p2: return p1 else: p1 = p1.next p2 = p2.next
class Solution(object): def get_intersection_node(self, headA, headB): """ :type head1, head1: ListNode :rtype: ListNode """ (p1, p2) = (headA, headB) (len1, len2) = (1, 1) while p1 != None and p2 != None: if p1 == p2: return p1 else: p1 = p1.next len1 += 1 p2 = p2.next len2 += 1 while p1 != None: p1 = p1.next len1 += 1 while p2 != None: p2 = p2.next len2 += 1 diff = abs(len1 - len2) (p1, p2) = (headA, headB) while p1 != None and p2 != None: if len1 >= len2 and diff > 0: p1 = p1.next diff -= 1 elif len1 < len2 and diff > 0: p2 = p2.next diff -= 1 elif p1 == p2: return p1 else: p1 = p1.next p2 = p2.next
class Solution: def confusingNumberII(self, N: int) -> int: table = {0:0, 1:1, 6:9, 8:8, 9:6} keys = [0, 1, 6, 8, 9] def dfs(num, rotation, base): count = 0 if num != rotation: count += 1 for d in keys: if num == 0 and d == 0: continue if num * 10 + d > N: break count += dfs(num * 10 + d, table[d] * base + rotation, base * 10) return count return dfs(0, 0, 1)
class Solution: def confusing_number_ii(self, N: int) -> int: table = {0: 0, 1: 1, 6: 9, 8: 8, 9: 6} keys = [0, 1, 6, 8, 9] def dfs(num, rotation, base): count = 0 if num != rotation: count += 1 for d in keys: if num == 0 and d == 0: continue if num * 10 + d > N: break count += dfs(num * 10 + d, table[d] * base + rotation, base * 10) return count return dfs(0, 0, 1)
# -*- coding: utf-8 -*- APPLIANCE_SECTION_START = '# BEGIN AUTOGENERATED' APPLIANCE_SECTION_END = '# END AUTOGENERATED' class UpScript(object): """ Parser and generator for tinc-up scripts. This is pretty basic: It assumes that somewhere in the script, there is a section initiated by '# BEGIN AUTOGENERATED' and concluded by '# END AUTOGENERATED'. Everything before this section is the "prolog", everything below this section is the "epilog". Both prolog and epilog can be freely modified by the user. Upon saving, this ensures that the prolog begins with a shebang. """ def __init__(self, io, filename): self.io = io self.filename = filename self._clear() self._open() def _clear(self): self.prolog = [] self.appliance_section = [] self.epilog = [] def _open(self): self._clear() if self.io.exists(self.filename): with self.io.open(self.filename, 'r') as f: # read: # lines up to "# BEGIN AUTOGENERATED" into self.prolog # everything up to "# END AUTOGENERATED" into self.appliance_section # everything after it into self.epilog current_part = self.prolog for line in f.readlines(): line = line.strip() if line == APPLIANCE_SECTION_START: current_part = self.appliance_section elif current_part is self.appliance_section and line == APPLIANCE_SECTION_END: current_part = self.epilog else: current_part.append(line) def _generate(self): lst = [] lst.extend(self.prolog) lst.append(APPLIANCE_SECTION_START) lst.extend(self.appliance_section) lst.append(APPLIANCE_SECTION_END) lst.extend(self.epilog) return '\n'.join(lst) def save(self): # ensure that we have a shebang if not self.prolog or not self.prolog[0].startswith('#!'): self.prolog.insert(0, '#!/bin/sh') with self.io.open(self.filename, 'w') as f: f.write(self._generate()) f.write('\n')
appliance_section_start = '# BEGIN AUTOGENERATED' appliance_section_end = '# END AUTOGENERATED' class Upscript(object): """ Parser and generator for tinc-up scripts. This is pretty basic: It assumes that somewhere in the script, there is a section initiated by '# BEGIN AUTOGENERATED' and concluded by '# END AUTOGENERATED'. Everything before this section is the "prolog", everything below this section is the "epilog". Both prolog and epilog can be freely modified by the user. Upon saving, this ensures that the prolog begins with a shebang. """ def __init__(self, io, filename): self.io = io self.filename = filename self._clear() self._open() def _clear(self): self.prolog = [] self.appliance_section = [] self.epilog = [] def _open(self): self._clear() if self.io.exists(self.filename): with self.io.open(self.filename, 'r') as f: current_part = self.prolog for line in f.readlines(): line = line.strip() if line == APPLIANCE_SECTION_START: current_part = self.appliance_section elif current_part is self.appliance_section and line == APPLIANCE_SECTION_END: current_part = self.epilog else: current_part.append(line) def _generate(self): lst = [] lst.extend(self.prolog) lst.append(APPLIANCE_SECTION_START) lst.extend(self.appliance_section) lst.append(APPLIANCE_SECTION_END) lst.extend(self.epilog) return '\n'.join(lst) def save(self): if not self.prolog or not self.prolog[0].startswith('#!'): self.prolog.insert(0, '#!/bin/sh') with self.io.open(self.filename, 'w') as f: f.write(self._generate()) f.write('\n')
def or_else(lhs, rhs): if lhs != None: return lhs else: return rhs def fold(function, arguments, initializer, accumulator = None): if len(arguments) == 0: return accumulator else: return fold( function, arguments[1:], initializer, function( or_else(accumulator, initializer), arguments[0])) add = lambda lhs, rhs: lhs + rhs sum = lambda *xs: fold(add, xs, 0) print(sum(2, 3, 5))
def or_else(lhs, rhs): if lhs != None: return lhs else: return rhs def fold(function, arguments, initializer, accumulator=None): if len(arguments) == 0: return accumulator else: return fold(function, arguments[1:], initializer, function(or_else(accumulator, initializer), arguments[0])) add = lambda lhs, rhs: lhs + rhs sum = lambda *xs: fold(add, xs, 0) print(sum(2, 3, 5))
lst = """75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 63 67 99 65 04 28 06 16 70 92 41 41 26 56 83 40 80 70 33 41 48 72 33 47 32 37 16 94 29 53 71 44 65 25 43 91 52 97 51 14 70 11 33 28 77 73 17 78 39 68 17 57 91 71 52 38 17 14 91 43 58 50 27 29 48 63 66 04 68 89 53 67 30 73 16 69 87 40 31 04 62 98 27 23 09 70 98 73 93 38 53 60 04 23""" lst = lst.split() lst2 = [] x=1 tym = [] for a in lst: a = int(a) tym.append(a) if len(tym) == x: lst2.append(tym) tym = [] x+=1 ind1 = len(lst2)-1 while ind1>=0: for a in range(0,len(lst2[ind1])-1): if lst2[ind1][a]>lst2[ind1][a+1]: lst2[ind1-1][a]+=lst2[ind1][a] else: lst2[ind1-1][a]+=lst2[ind1][a+1] ind1-=1 print(lst2[0][0])
lst = '75\n95 64\n17 47 82\n18 35 87 10\n20 04 82 47 65\n19 01 23 75 03 34\n88 02 77 73 07 63 67\n99 65 04 28 06 16 70 92\n41 41 26 56 83 40 80 70 33\n41 48 72 33 47 32 37 16 94 29\n53 71 44 65 25 43 91 52 97 51 14\n70 11 33 28 77 73 17 78 39 68 17 57\n91 71 52 38 17 14 91 43 58 50 27 29 48\n63 66 04 68 89 53 67 30 73 16 69 87 40 31\n04 62 98 27 23 09 70 98 73 93 38 53 60 04 23' lst = lst.split() lst2 = [] x = 1 tym = [] for a in lst: a = int(a) tym.append(a) if len(tym) == x: lst2.append(tym) tym = [] x += 1 ind1 = len(lst2) - 1 while ind1 >= 0: for a in range(0, len(lst2[ind1]) - 1): if lst2[ind1][a] > lst2[ind1][a + 1]: lst2[ind1 - 1][a] += lst2[ind1][a] else: lst2[ind1 - 1][a] += lst2[ind1][a + 1] ind1 -= 1 print(lst2[0][0])
## https://leetcode.com/problems/path-sum # 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 hasPathSum(self, root: Optional[TreeNode], targetSum: int) -> bool: if root is None: return False if root.left is None and root.right is None: return root.val == targetSum left = self.hasPathSum(root.left, targetSum - root.val) right = self.hasPathSum(root.right, targetSum - root.val) return left or right
class Solution: def has_path_sum(self, root: Optional[TreeNode], targetSum: int) -> bool: if root is None: return False if root.left is None and root.right is None: return root.val == targetSum left = self.hasPathSum(root.left, targetSum - root.val) right = self.hasPathSum(root.right, targetSum - root.val) return left or right
class Solution: def groupAnagrams(self, strs: 'List[str]') -> 'List[List[str]]': dic = {} for anagram in strs: key = ''.join(sorted(anagram)) if key in dic.keys(): dic[key].append(anagram) else: dic[key] = [anagram] result = [] for key in dic.keys(): result.append(dic[key]) return result
class Solution: def group_anagrams(self, strs: 'List[str]') -> 'List[List[str]]': dic = {} for anagram in strs: key = ''.join(sorted(anagram)) if key in dic.keys(): dic[key].append(anagram) else: dic[key] = [anagram] result = [] for key in dic.keys(): result.append(dic[key]) return result
# Stream are lazy linked list # A stream is a linked list, but the rest of the list is computed on demand ''' Link- First element is anything - second element is a Link instance or Link.empty Stream -First element can be anything - Second element is a zero-argument function that returns a Stream or Stream.empty Once Created, the Link and Stream can be used interchangeable namely first, rest ''' class Stream: class empty: def __repr__(self): return 'Stream.empty' empty = empty() # Singleton Class def __init__(self,first,compute_rest = lambda: Stream.empty): assert callable(compute_rest), 'compute_rest must be callable.' # Zero Argument self.first = first self._compute_rest = compute_rest @property def rest(self): if self._compute_rest is not None: self._rest = self._compute_rest() self._compute_rest = None return self._rest def __repr__(self): return 'Stream({0}, <...>)'.format(repr(self.first)) # An integer stream is a stream of consecutive integers # Start with first. Constructed from first and a function compute_rest that returns the integer stream starting at first+1 def integer_stream(first): def compute_rest(): return integer_stream(first+1) return Stream(first,compute_rest) # same as def int_stream(first): return Stream(first, lambda: int_stream(first+1)) def first_k(s,k): values = [] while s is not Stream.empty and k>0: values.append(s.first) s, k = s.rest, k-1 return values def square_stream(s): first = s.first*s.first return Stream(first, lambda: square_stream(s.rest)) def add_stream(s,t): first = s.first + t.first return Stream(first, lambda: add_stream(s.rest,t.rest)) #same def added_stream(s,t): first = s.first + t.first def compute_rest(): return added_stream(s.rest,t.rest) return Stream(first,compute_rest) ones = Stream(1, lambda: ones) ints = Stream(1, lambda: add_stream(ones,ints)) # Mapping a function over a stream ''' Mapping a function over a stream applies a function only to the first element right away, the rest is computed lazily ''' def map_stream(fn,s): "Map a function fn over the elements of a stream.""" if s is Stream.empty: return s def compute_rest(): return map_stream(fn, s.rest) return Stream(fn(s.first),compute_rest) # Filtering a Stream # When filtering a stream, processing continues until a element is kept in the output def filter_stream(fn,s): 'Filter stream s with predicate function fn.' if s is Stream.empty: return s def compute_rest(): return filter_stream(fn,s.rest) if fn(s.first): return Stream(s.first,compute_rest) else: return compute_rest() odds = lambda x: x % 2 == 1 odd = filter_stream(odds, ints) def primes(s): ' Return a stream of primes, given a stream of postive integers.' def not_divisible(x): return x % s.first != 0 def compute_rest(): return primes(filter_stream(not_divisible, s.rest)) return Stream(s.first, compute_rest) p = primes(int_stream(2))
""" Link- First element is anything - second element is a Link instance or Link.empty Stream -First element can be anything - Second element is a zero-argument function that returns a Stream or Stream.empty Once Created, the Link and Stream can be used interchangeable namely first, rest """ class Stream: class Empty: def __repr__(self): return 'Stream.empty' empty = empty() def __init__(self, first, compute_rest=lambda : Stream.empty): assert callable(compute_rest), 'compute_rest must be callable.' self.first = first self._compute_rest = compute_rest @property def rest(self): if self._compute_rest is not None: self._rest = self._compute_rest() self._compute_rest = None return self._rest def __repr__(self): return 'Stream({0}, <...>)'.format(repr(self.first)) def integer_stream(first): def compute_rest(): return integer_stream(first + 1) return stream(first, compute_rest) def int_stream(first): return stream(first, lambda : int_stream(first + 1)) def first_k(s, k): values = [] while s is not Stream.empty and k > 0: values.append(s.first) (s, k) = (s.rest, k - 1) return values def square_stream(s): first = s.first * s.first return stream(first, lambda : square_stream(s.rest)) def add_stream(s, t): first = s.first + t.first return stream(first, lambda : add_stream(s.rest, t.rest)) def added_stream(s, t): first = s.first + t.first def compute_rest(): return added_stream(s.rest, t.rest) return stream(first, compute_rest) ones = stream(1, lambda : ones) ints = stream(1, lambda : add_stream(ones, ints)) '\nMapping a function over a stream applies a function only to the first element right away,\nthe rest is computed lazily\n' def map_stream(fn, s): """Map a function fn over the elements of a stream.""" if s is Stream.empty: return s def compute_rest(): return map_stream(fn, s.rest) return stream(fn(s.first), compute_rest) def filter_stream(fn, s): """Filter stream s with predicate function fn.""" if s is Stream.empty: return s def compute_rest(): return filter_stream(fn, s.rest) if fn(s.first): return stream(s.first, compute_rest) else: return compute_rest() odds = lambda x: x % 2 == 1 odd = filter_stream(odds, ints) def primes(s): """ Return a stream of primes, given a stream of postive integers.""" def not_divisible(x): return x % s.first != 0 def compute_rest(): return primes(filter_stream(not_divisible, s.rest)) return stream(s.first, compute_rest) p = primes(int_stream(2))
#!/usr/bin/env python3 def format_log_level(level): return [ 'DEBUG', 'INFO ', 'WARN ', 'ERROR', 'FATAL', ][level] def format_log_type(log_type): return log_type.lstrip('TI') def format_log_entry(log_entry): return '{} {} {}:{} {}'.format( log_entry['log_time'], format_log_level(log_entry['log_level']), log_entry['file_name'], log_entry['file_line'], log_entry['content'], ) def format_log_entry_with_type(log_entry): return '{} {} {} {}:{} {}'.format( format_log_type(log_entry['log_type']), log_entry['log_time'], format_log_level(log_entry['log_level']), log_entry['file_name'], log_entry['file_line'], log_entry['content'], )
def format_log_level(level): return ['DEBUG', 'INFO ', 'WARN ', 'ERROR', 'FATAL'][level] def format_log_type(log_type): return log_type.lstrip('TI') def format_log_entry(log_entry): return '{} {} {}:{} {}'.format(log_entry['log_time'], format_log_level(log_entry['log_level']), log_entry['file_name'], log_entry['file_line'], log_entry['content']) def format_log_entry_with_type(log_entry): return '{} {} {} {}:{} {}'.format(format_log_type(log_entry['log_type']), log_entry['log_time'], format_log_level(log_entry['log_level']), log_entry['file_name'], log_entry['file_line'], log_entry['content'])
def sieve(max): primes = [] for n in range(2, max + 1): if any(n % p > 0 for p in primes): primes.append(n) return primes """ Sieve of Eratosthenes prime-sieve Input: max: A positive int representing an upper bound. Output: A list containing all primes up to and including max """
def sieve(max): primes = [] for n in range(2, max + 1): if any((n % p > 0 for p in primes)): primes.append(n) return primes '\nSieve of Eratosthenes\nprime-sieve\n\nInput:\n max: A positive int representing an upper bound.\n\nOutput:\n A list containing all primes up to and including max\n'
# app/utils.py def make_step_iter(step, max_): num = 0 while True: yield num num = (num + step) % max_
def make_step_iter(step, max_): num = 0 while True: yield num num = (num + step) % max_
PASILLO_DID = "A1" CUARTO_ESTE_DID = "A2" CUARTO_OESTE_DID = "A4" SALON_DID = "A5" HEATER_DID = "C1" HEATER_PROTOCOL = "X10" HEATER_API = "http://localhost" HEATER_USERNAME = "raton" HEATER_PASSWORD = "xxxx" HEATER_MARGIN = 0.0 HEATER_INCREMENT = 0.5 AWS_CREDS_PATH = "/etc/aws.keys" AWS_ZONE = "us-east-1" MINUTES_AFTER_SUNRISE_FOR_DAY = 60 MINUTES_AFTER_SUNSET_FOR_DAY = 60 #INTERNAL_TEMPERATURE_URI = "http://raspberry/therm/temperature" #INTERNAL_TEMPERATURE_URI = "http://localhost:8000/therm/temperature" LIST_THERMOMETERS_API = "http://172.27.225.2/thermometer/thermometers?" #TEMPERATURES_API = "http://raspberry/therm/temperature_api/thermometers" #THERMOMETER_API = "http://raspberry/therm/temperature_api/thermometer/" FLAME_STATS = True FLAME_STATS_PATH = "./flame_stats.log" FLAME_STATS_DATE_FORMAT = "%d.%m.%Y %H:%M:%S"
pasillo_did = 'A1' cuarto_este_did = 'A2' cuarto_oeste_did = 'A4' salon_did = 'A5' heater_did = 'C1' heater_protocol = 'X10' heater_api = 'http://localhost' heater_username = 'raton' heater_password = 'xxxx' heater_margin = 0.0 heater_increment = 0.5 aws_creds_path = '/etc/aws.keys' aws_zone = 'us-east-1' minutes_after_sunrise_for_day = 60 minutes_after_sunset_for_day = 60 list_thermometers_api = 'http://172.27.225.2/thermometer/thermometers?' flame_stats = True flame_stats_path = './flame_stats.log' flame_stats_date_format = '%d.%m.%Y %H:%M:%S'
# best solution: # https://leetcode.com/problems/merge-two-sorted-lists/discuss/9735/Python-solutions-(iteratively-recursively-iteratively-in-place). # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: dummy = ListNode(0) tmp = dummy while l1 and l2: dummy.next = ListNode(min(l1.val, l2.val)) dummy = dummy.next if l1.val < l2.val: l1 = l1.next else: l2 = l2.next dummy.next = l1 or l2 # dummy.next = l1 if l1 else l2 return tmp.next
class Solution: def merge_two_lists(self, l1: ListNode, l2: ListNode) -> ListNode: dummy = list_node(0) tmp = dummy while l1 and l2: dummy.next = list_node(min(l1.val, l2.val)) dummy = dummy.next if l1.val < l2.val: l1 = l1.next else: l2 = l2.next dummy.next = l1 or l2 return tmp.next
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Copyright 2021, Yutong Xie, UIUC. Using for loop to find maximum product of three numbers ''' class Solution(object): def maximumProduct(self, nums): """ :type nums: List[int] :rtype: int """ min1, min2 = float("inf"), float("inf") max1, max2, max3 = -float("inf"), -float("inf"), -float("inf") for i in range(len(nums)): n = nums[i] if n <= min1: min1, min2 = n, min1 elif n <= min2: min2 = n if n >= max3: max1, max2, max3 = max2, max3, n elif n >= max2: max1, max2 = max2, n elif n >= max1: max1 = n return max(min1*min2*max3, max1*max2*max3)
""" Copyright 2021, Yutong Xie, UIUC. Using for loop to find maximum product of three numbers """ class Solution(object): def maximum_product(self, nums): """ :type nums: List[int] :rtype: int """ (min1, min2) = (float('inf'), float('inf')) (max1, max2, max3) = (-float('inf'), -float('inf'), -float('inf')) for i in range(len(nums)): n = nums[i] if n <= min1: (min1, min2) = (n, min1) elif n <= min2: min2 = n if n >= max3: (max1, max2, max3) = (max2, max3, n) elif n >= max2: (max1, max2) = (max2, n) elif n >= max1: max1 = n return max(min1 * min2 * max3, max1 * max2 * max3)
class Article(): def __init__(self, title, description, author, site, link): """Init the article model""" self.title = title self.description = description self.author = author self.site = site self.link = link
class Article: def __init__(self, title, description, author, site, link): """Init the article model""" self.title = title self.description = description self.author = author self.site = site self.link = link
# Given an array, rotate the array to the right by k steps, where k is non-negative. # Example 1: # Input: [1,2,3,4,5,6,7] and k = 3 # Output: [5,6,7,1,2,3,4] # Explanation: # rotate 1 steps to the right: [7,1,2,3,4,5,6] # rotate 2 steps to the right: [6,7,1,2,3,4,5] # rotate 3 steps to the right: [5,6,7,1,2,3,4] class Solution(object): def rotate(self, nums, k): """ :type nums: List[int] :type k: int :rtype: void Do not return anything, modify nums in-place instead. """ i = 0 while i < k : a = nums.pop() nums.insert(0,a) i += 1 # Time: O(k) # Space: O(k) # Difficulty: medium
class Solution(object): def rotate(self, nums, k): """ :type nums: List[int] :type k: int :rtype: void Do not return anything, modify nums in-place instead. """ i = 0 while i < k: a = nums.pop() nums.insert(0, a) i += 1
include("common.py") damnScission = [ ruleGMLString("""rule [ ruleID "DAMN Scission" left [ edge [ source 0 target 10 label "=" ] edge [ source 10 target 13 label "-" ] edge [ source 13 target 14 label "-" ] edge [ source 13 target 15 label "-" ] ] context [ # DAMN node [ id 0 label "C" ] edge [ source 0 target 1 label "-" ] node [ id 1 label "C" ] edge [ source 1 target 2 label "#" ] node [ id 2 label "N" ] edge [ source 0 target 3 label "-" ] node [ id 3 label "N" ] edge [ source 3 target 4 label "-" ] node [ id 4 label "H" ] edge [ source 3 target 5 label "-" ] node [ id 5 label "H" ] node [ id 10 label "C" ] edge [ source 10 target 11 label "-" ] node [ id 11 label "C" ] edge [ source 11 target 12 label "#" ] node [ id 12 label "N" ] node [ id 13 label "N" ] node [ id 14 label "H" ] node [ id 15 label "H" ] ] right [ edge [ source 10 target 13 label "#" ] edge [ source 0 target 14 label "-" ] edge [ source 0 target 15 label "-" ] ] ]"""), ]
include('common.py') damn_scission = [rule_gml_string('rule [\n\truleID "DAMN Scission"\n\tleft [\n\t\tedge [ source 0 target 10 label "=" ]\t\n\t\tedge [ source 10 target 13 label "-" ]\n\t\tedge [ source 13 target 14 label "-" ]\n\t\tedge [ source 13 target 15 label "-" ]\n\t]\n\tcontext [\n\t\t# DAMN\n\t\tnode [ id 0 label "C" ]\n\n\t\tedge [ source 0 target 1 label "-" ]\n\t\tnode [ id 1 label "C" ]\n\t\tedge [ source 1 target 2 label "#" ]\n\t\tnode [ id 2 label "N" ]\n\n\t\tedge [ source 0 target 3 label "-" ]\n\t\tnode [ id 3 label "N" ]\n\t\tedge [ source 3 target 4 label "-" ]\n\t\tnode [ id 4 label "H" ]\n\t\tedge [ source 3 target 5 label "-" ]\n\t\tnode [ id 5 label "H" ]\n\n\n\t\tnode [ id 10 label "C" ]\n\n\t\tedge [ source 10 target 11 label "-" ]\n\t\tnode [ id 11 label "C" ]\n\t\tedge [ source 11 target 12 label "#" ]\n\t\tnode [ id 12 label "N" ]\n\n\t\tnode [ id 13 label "N" ]\n\t\tnode [ id 14 label "H" ]\n\t\tnode [ id 15 label "H" ]\n\t]\n\tright [\n\t\tedge [ source 10 target 13 label "#" ]\n\t\tedge [ source 0 target 14 label "-" ]\n\t\tedge [ source 0 target 15 label "-" ]\n\t]\n]')]
# Doris Zdravkovic, March, 2019 # Solution to problem 5. # python primes.py # Input of a positive integer n = int(input("Please enter a positive integer: ")) # Prime number is always greater than 1 # Reference: https://docs.python.org/3/tutorial/controlflow.html # If entered number is greater than 1, for every number in range of 2 to entered number # If entered number divided by any number gives remainder of 0, print "This is not a prime number" if n > 1: for x in range(2, n): if (n % x) == 0: print("This is not a prime number.") # Stop the loop break # In other cases print "n is a prime number" else: print (n, "is a prime number.") # If the entered number is equal or less than 1 then it is not a prime number else: print(n, 'is a prime number')
n = int(input('Please enter a positive integer: ')) if n > 1: for x in range(2, n): if n % x == 0: print('This is not a prime number.') break else: print(n, 'is a prime number.') else: print(n, 'is a prime number')
#!/usr/bin/python ''' This file is part of SNC Copyright (c) 2014-2021, Richard Barnett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' # variables used in JSON sensor records TIMESTAMP = 'timestamp' # seconds since epoch ACCEL_DATA = 'accel' # accelerometer x, y, z data in gs LIGHT_DATA = 'light' # light data in lux TEMPERATURE_DATA = 'temperature' # temperature data in degrees C PRESSURE_DATA = 'pressure' # pressure in Pa HUMIDITY_DATA = 'humidity' # humidity in %RH AIRQUALITY_DATA = 'airquality' # air quality index
""" This file is part of SNC Copyright (c) 2014-2021, Richard Barnett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ timestamp = 'timestamp' accel_data = 'accel' light_data = 'light' temperature_data = 'temperature' pressure_data = 'pressure' humidity_data = 'humidity' airquality_data = 'airquality'
#Shape of small l: def for_l(): """printing small 'l' using for loop""" for row in range(6): for col in range(3): if col==1 or row==0 and col!=2 or row==5 and col!=0: print("*",end=" ") else: print(" ",end=" ") print() def while_l(): """printing small 'l' using while loop""" i=0 while i<6: j=0 while j<3: if j==1 or i==0 and j!=2 or i==5 and j!=0: print("*",end=" ") else: print(" ",end=" ") j+=1 print() i+=1
def for_l(): """printing small 'l' using for loop""" for row in range(6): for col in range(3): if col == 1 or (row == 0 and col != 2) or (row == 5 and col != 0): print('*', end=' ') else: print(' ', end=' ') print() def while_l(): """printing small 'l' using while loop""" i = 0 while i < 6: j = 0 while j < 3: if j == 1 or (i == 0 and j != 2) or (i == 5 and j != 0): print('*', end=' ') else: print(' ', end=' ') j += 1 print() i += 1
def get_menu_choice(): def print_menu(): # Your menu design here print(" _ _ _____ _____ _ _ ") print("| \ | | ___|_ _| / \ _ __| |_ ") print("| \| | |_ | | / _ \ | '__| __|") print("| |\ | _| | | / ___ \| | | |_ ") print("|_| \_|_| |_| /_/ \_\_| \__|") print(30 * "-", "MENU", 30 * "-") print("1. Configure contract parameters ") print("2. Whitelist wallets ") print("3. Get listed wallets ") print("4. Start token pre-sale ") print("5. Listen contract events ") print("6. Exit ") print(73 * "-") loop = True int_choice = -1 while loop: # While loop which will keep going until loop = False print_menu() # Displays menu choice = input("Enter your choice [1-6]: ") if choice == '1': int_choice = 1 loop = False elif choice == '2': choice = '' while len(choice) == 0: choice = input("Enter custom folder name(s). It may be a list of folder's names (example: c:,d:\docs): ") int_choice = 2 loop = False elif choice == '3': choice = '' while len(choice) == 0: choice = input("Enter a single filename of a file with custom folders list: ") int_choice = 3 loop = False elif choice == '4': choice = '' while len(choice) == 0: choice = input("Enter a single filename of a conf file: ") int_choice = 4 loop = False elif choice == '6': int_choice = -1 print("Exiting..") loop = False # This will make the while loop to end else: # Any inputs other than values 1-4 we print an error message input("Wrong menu selection. Enter any key to try again..") return [int_choice, choice]
def get_menu_choice(): def print_menu(): print(' _ _ _____ _____ _ _ ') print('| \\ | | ___|_ _| / \\ _ __| |_ ') print("| \\| | |_ | | / _ \\ | '__| __|") print('| |\\ | _| | | / ___ \\| | | |_ ') print('|_| \\_|_| |_| /_/ \\_\\_| \\__|') print(30 * '-', 'MENU', 30 * '-') print('1. Configure contract parameters ') print('2. Whitelist wallets ') print('3. Get listed wallets ') print('4. Start token pre-sale ') print('5. Listen contract events ') print('6. Exit ') print(73 * '-') loop = True int_choice = -1 while loop: print_menu() choice = input('Enter your choice [1-6]: ') if choice == '1': int_choice = 1 loop = False elif choice == '2': choice = '' while len(choice) == 0: choice = input("Enter custom folder name(s). It may be a list of folder's names (example: c:,d:\\docs): ") int_choice = 2 loop = False elif choice == '3': choice = '' while len(choice) == 0: choice = input('Enter a single filename of a file with custom folders list: ') int_choice = 3 loop = False elif choice == '4': choice = '' while len(choice) == 0: choice = input('Enter a single filename of a conf file: ') int_choice = 4 loop = False elif choice == '6': int_choice = -1 print('Exiting..') loop = False else: input('Wrong menu selection. Enter any key to try again..') return [int_choice, choice]
conversion = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} roman_letter_order = dict((letter, ind) for ind, letter in enumerate('IVXLCDM')) minimal_num_of_letter_needed_for_each_digit = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 2, '5': 1, '6': 2, '7': 3, '8': 4, '9': 2} def check_order(long_form): for ind1, char1 in enumerate(long_form[:-1]): char2 = long_form[ind1 + 1] if roman_letter_order[char1] < roman_letter_order[char2]: if char1 + char2 not in ('IV', 'IX', 'XL', 'XC', 'CD', 'CM'): return False return True def parse(long_form): __sum__ = 0 for ind1, char1 in enumerate(long_form[:-1]): char2 = long_form[ind1 + 1] if roman_letter_order[char1] >= roman_letter_order[char2]: __sum__ += conversion[char1] else: if char1 + char2 in ('IV', 'IX', 'XL', 'XC', 'CD', 'CM'): __sum__ -= conversion[char1] __sum__ += conversion[long_form[-1]] return __sum__ def get_long_form_lst(): lst = [] with open('p089_roman.txt') as f: for row in f.readlines(): lst.append(row.strip()) return lst long_form_lst = get_long_form_lst() total_length_saved = 0 patterns_to_replace_0 = ['VIIII', 'LXXXX', 'DCCCC'] patterns_to_replace_1 = ['IIII', 'XXXX', 'CCCC'] for long_form in long_form_lst: if check_order(long_form) is True: short_form_length = 0 parsed = str(parse(long_form)) for ind, digit in enumerate(reversed(parsed)): if ind == 3: # no short form for the digit of M short_form_length += int(digit) #print(int(digit)) else: short_form_length += minimal_num_of_letter_needed_for_each_digit[digit] #print(minimal_num_of_letter_needed_for_each_digit[digit]) length_saved = len(long_form) - short_form_length total_length_saved += length_saved length_saved_2 = 0 for pattern0, pattern1 in zip(patterns_to_replace_0, patterns_to_replace_1): if pattern0 in long_form: length_saved_2 += 3 elif pattern1 in long_form: length_saved_2 += 2 if length_saved != length_saved_2: print(long_form, parse(long_form), length_saved, length_saved_2) else: print(long_form) print(total_length_saved)
conversion = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} roman_letter_order = dict(((letter, ind) for (ind, letter) in enumerate('IVXLCDM'))) minimal_num_of_letter_needed_for_each_digit = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 2, '5': 1, '6': 2, '7': 3, '8': 4, '9': 2} def check_order(long_form): for (ind1, char1) in enumerate(long_form[:-1]): char2 = long_form[ind1 + 1] if roman_letter_order[char1] < roman_letter_order[char2]: if char1 + char2 not in ('IV', 'IX', 'XL', 'XC', 'CD', 'CM'): return False return True def parse(long_form): __sum__ = 0 for (ind1, char1) in enumerate(long_form[:-1]): char2 = long_form[ind1 + 1] if roman_letter_order[char1] >= roman_letter_order[char2]: __sum__ += conversion[char1] elif char1 + char2 in ('IV', 'IX', 'XL', 'XC', 'CD', 'CM'): __sum__ -= conversion[char1] __sum__ += conversion[long_form[-1]] return __sum__ def get_long_form_lst(): lst = [] with open('p089_roman.txt') as f: for row in f.readlines(): lst.append(row.strip()) return lst long_form_lst = get_long_form_lst() total_length_saved = 0 patterns_to_replace_0 = ['VIIII', 'LXXXX', 'DCCCC'] patterns_to_replace_1 = ['IIII', 'XXXX', 'CCCC'] for long_form in long_form_lst: if check_order(long_form) is True: short_form_length = 0 parsed = str(parse(long_form)) for (ind, digit) in enumerate(reversed(parsed)): if ind == 3: short_form_length += int(digit) else: short_form_length += minimal_num_of_letter_needed_for_each_digit[digit] length_saved = len(long_form) - short_form_length total_length_saved += length_saved length_saved_2 = 0 for (pattern0, pattern1) in zip(patterns_to_replace_0, patterns_to_replace_1): if pattern0 in long_form: length_saved_2 += 3 elif pattern1 in long_form: length_saved_2 += 2 if length_saved != length_saved_2: print(long_form, parse(long_form), length_saved, length_saved_2) else: print(long_form) print(total_length_saved)
# Write a for loop using range() to print out multiples of 5 up to 30 inclusive for mult in range(5, 31, 5): # prints out multiples of 5 up to 30 inclusive print(mult)
for mult in range(5, 31, 5): print(mult)
"""Module for request errors""" REQUEST_ERROR_DICT = { 'invalid_request': 'Invalid request object', 'not_found': '{} not found', 'invalid_credentials': 'Invalid username or password', 'already_exists': '{0} or {1} already exists', 'exists': '{0} already exists', 'invalid_provided_date': 'Invalid date range please, {}.', 'invalid_date_range': '{0} cannot be greater than {1}', 'invalid_date_of_issue': 'Date of issue must be provided', 'invalid_date_of_expiry': 'Date of expiry must be provided', 'invalid_birthday': 'Birthday cannot be greater than today' }
"""Module for request errors""" request_error_dict = {'invalid_request': 'Invalid request object', 'not_found': '{} not found', 'invalid_credentials': 'Invalid username or password', 'already_exists': '{0} or {1} already exists', 'exists': '{0} already exists', 'invalid_provided_date': 'Invalid date range please, {}.', 'invalid_date_range': '{0} cannot be greater than {1}', 'invalid_date_of_issue': 'Date of issue must be provided', 'invalid_date_of_expiry': 'Date of expiry must be provided', 'invalid_birthday': 'Birthday cannot be greater than today'}
# # PySNMP MIB module CISCO-SWITCH-HARDWARE-CAPACITY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SWITCH-HARDWARE-CAPACITY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:13:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") Percent, = mibBuilder.importSymbols("CISCO-QOS-PIB-MIB", "Percent") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") CiscoInterfaceIndexList, = mibBuilder.importSymbols("CISCO-TC", "CiscoInterfaceIndexList") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") CounterBasedGauge64, = mibBuilder.importSymbols("HCNUM-TC", "CounterBasedGauge64") InterfaceIndexOrZero, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "ifIndex") InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") NotificationType, TimeTicks, IpAddress, ObjectIdentity, MibIdentifier, ModuleIdentity, Counter32, Integer32, Gauge32, Unsigned32, Counter64, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "TimeTicks", "IpAddress", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "Counter32", "Integer32", "Gauge32", "Unsigned32", "Counter64", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits") DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime") ciscoSwitchHardwareCapacityMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 663)) ciscoSwitchHardwareCapacityMIB.setRevisions(('2014-09-16 00:00', '2014-01-24 00:00', '2013-05-08 00:00', '2010-11-22 00:00', '2008-07-02 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setRevisionsDescriptions(('Added the following enumerations for object cshcProtocolFibTcamProtocol - allProtocols(14) Updated the description of cshcProtocolFibTcamTotal and cshcProtocolFibTcamLogicalTotal.', 'Added following OBJECT-GROUP - cshcProtocolFibTcamWidthTypeGroup Added the following enumerations for object cshcProtocolFibTcamProtocol - mplsVpn(11) - fcMpls(12) - ipv6LocalLink(13) Added new compliance - ciscoSwitchHardwareCapacityMIBCompliance3', 'Added following OBJECT-GROUP - cshcNetflowFlowResourceUsageGroup - cshcMacUsageExtGroup - cshcProtocolFibTcamUsageExtGroup - cshcAdjacencyResourceUsageGroup - cshcQosResourceUsageGroup - cshcModTopDropIfIndexListGroup - cshcMetResourceUsageGroup Added the following enumerations for object cshcProtocolFibTcamProtocol - l2VpnPeer(7) - l2VpnIpv4Multicast(8) - l2VpnIpv6Multicast(9) Added new compliance - ciscoSwitchHardwareCapacityMIBCompliance2', 'Add the following new enumerations to cshcCPURateLimiterNetworkLayer: layer2Input(3) and layer2Output(4). Add cshcFibTcamUsageExtGroup.', 'Initial revision of this MIB module.',)) if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setLastUpdated('201409160000Z') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-lan-switch-snmp@cisco.com') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setDescription('This MIB module defines the managed objects for hardware capacity of Cisco switching devices. The hardware capacity information covers the following but not limited to features: forwarding, rate-limiter ... The following terms are used throughout the MIB: CAM: Content Addressable Memory. TCAM: Ternary Content Addressable Memory. FIB: Forwarding Information Base. VPN: Virtual Private Network. QoS: Quality of Service. CPU rate-limiter: Mechanism to rate-limit or restrict undesired traffic to the CPU. MPLS: Multiprotocol Label Switching.') ciscoSwitchHardwareCapacityMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 0)) ciscoSwitchHardwareCapacityMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1)) ciscoSwitchHardwareCapacityMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2)) cshcForwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1)) cshcInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2)) cshcCPURateLimiterResources = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3)) cshcIcamResources = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4)) cshcNetflowFlowMaskResources = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5)) cshcNetflowResourceUsage = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6)) cshcQosResourceUsage = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7)) class CshcInternalChannelType(TextualConvention, Integer32): description = 'An enumerated value indicating the type of an internal channel. eobc - ethernet out-of-band channel. ibc - in-band channel.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("eobc", 1), ("ibc", 2)) cshcL2Forwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1)) cshcMacUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1), ) if mibBuilder.loadTexts: cshcMacUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageTable.setDescription('This table contains MAC table capacity for each switching engine, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshcMacUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcMacUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageEntry.setDescription('Each row contains management information for MAC table hardware capacity on a switching engine.') cshcMacCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacCollisions.setStatus('current') if mibBuilder.loadTexts: cshcMacCollisions.setDescription('This object indicates the number of Ethernet frames whose source MAC address the switching engine failed to learn while constructing its MAC table.') cshcMacUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacUsed.setStatus('current') if mibBuilder.loadTexts: cshcMacUsed.setDescription('This object indicates the number of MAC table entries that are currently in use for this switching engine.') cshcMacTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacTotal.setStatus('current') if mibBuilder.loadTexts: cshcMacTotal.setDescription('This object indicates the total number of MAC table entries available for this switching engine.') cshcMacMcast = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacMcast.setStatus('current') if mibBuilder.loadTexts: cshcMacMcast.setDescription('This object indicates the total number of multicast MAC table entries on this switching engine.') cshcMacUcast = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacUcast.setStatus('current') if mibBuilder.loadTexts: cshcMacUcast.setDescription('This object indicates the total number of unicast MAC table entries on this switching engine.') cshcMacLines = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacLines.setStatus('current') if mibBuilder.loadTexts: cshcMacLines.setDescription('This object indicates the total number of MAC table lines on this switching engine. The MAC table is organized as multiple MAC entries per line.') cshcMacLinesFull = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMacLinesFull.setStatus('current') if mibBuilder.loadTexts: cshcMacLinesFull.setDescription('This object indicates the total number of MAC table lines full on this switching engine. A line full means all the MAC entries on the line are occupied.') cshcVpnCamUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2), ) if mibBuilder.loadTexts: cshcVpnCamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageTable.setDescription('This table contains VPN CAM capacity for each entity, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshcVpnCamUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcVpnCamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageEntry.setDescription('Each row contains management information for VPN CAM hardware capacity on an entity.') cshcVpnCamUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcVpnCamUsed.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsed.setDescription('This object indicates the number of VPN CAM entries that are currently in use.') cshcVpnCamTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcVpnCamTotal.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamTotal.setDescription('This object indicates the total number of VPN CAM entries.') cshcL3Forwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2)) cshcFibTcamUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1), ) if mibBuilder.loadTexts: cshcFibTcamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageTable.setDescription('This table contains FIB TCAM capacity for each entity, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshcFibTcamUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcFibTcamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageEntry.setDescription('Each row contains management information for FIB TCAM hardware capacity on an entity.') cshc72bitsFibTcamUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc72bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc72bitsFibTcamUsed.setDescription('This object indicates the number of 72 bits FIB TCAM entries that are currently in use.') cshc72bitsFibTcamTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc72bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc72bitsFibTcamTotal.setDescription('This object indicates the total number of 72 bits FIB TCAM entries available.') cshc144bitsFibTcamUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc144bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc144bitsFibTcamUsed.setDescription('This object indicates the number of 144 bits FIB TCAM entries that are currently in use.') cshc144bitsFibTcamTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc144bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc144bitsFibTcamTotal.setDescription('This object indicates the total number of 144 bits FIB TCAM entries available.') cshc288bitsFibTcamUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc288bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc288bitsFibTcamUsed.setDescription('This object indicates the number of 288 bits FIB TCAM entries that are currently in use.') cshc288bitsFibTcamTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshc288bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc288bitsFibTcamTotal.setDescription('This object indicates the total number of 288 bits FIB TCAM entries available.') cshcProtocolFibTcamUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2), ) if mibBuilder.loadTexts: cshcProtocolFibTcamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageTable.setDescription('This table contains FIB TCAM usage per specified Layer 3 protocol on an entity capable of providing this information.') cshcProtocolFibTcamUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamProtocol")) if mibBuilder.loadTexts: cshcProtocolFibTcamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageEntry.setDescription('Each row contains management information for FIB TCAM usage for the specific Layer 3 protocol on an entity as specified by the entPhysicalIndex in ENTITY-MIB.') cshcProtocolFibTcamProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("ipv4", 1), ("mpls", 2), ("eom", 3), ("ipv6", 4), ("ipv4Multicast", 5), ("ipv6Multicast", 6), ("l2VpnPeer", 7), ("l2VpnIpv4Multicast", 8), ("l2VpnIpv6Multicast", 9), ("fcoe", 10), ("mplsVpn", 11), ("fcMpls", 12), ("ipv6LocalLink", 13), ("allProtocols", 14)))) if mibBuilder.loadTexts: cshcProtocolFibTcamProtocol.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamProtocol.setDescription("This object indicates the Layer 3 protocol utilizing FIB TCAM resource. 'ipv4' - indicates Internet Protocol version 4. 'mpls' - indicates Multiprotocol Label Switching. 'eom' - indicates Ethernet over MPLS. 'ipv6' - indicates Internet Protocol version 6. 'ipv4Multicast' - indicates Internet Protocol version 4 for multicast traffic. 'ipv6Multicast' - indicates Internet Protocol version 6 for multicast traffic. 'l2VpnPeer' - indicates Layer 2 VPN Peer traffic. 'l2VpnIpv4Multicast' - indicates Internet Protocol version 4 for multicast traffic on Layer 2 VPN. 'l2VpnIpv6Multicast' - indicates Internet Protocol version 6 for multicast traffic on Layer 2 VPN. 'fcoe' - indicates Fibre Channel over Ethernet. 'mplsVpn' - indicates MPLS Layer 3 VPN aggregate labels. 'fcMpls' - indicates Fibre Channel over MPLS tunnels. 'ipv6LocalLink' - indicates Internet Protocol version 6 Local Link. 'allProtocols' - indicates all protocols within the entPhysicalIndex.") cshcProtocolFibTcamUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcProtocolFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsed.setDescription('This object indicates the number of FIB TCAM entries that are currently in use for the protocol denoted by cshcProtocolFibTcamProtocol.') cshcProtocolFibTcamTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcProtocolFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamTotal.setDescription('This object indicates the total number of FIB TCAM entries are currently allocated for the protocol denoted by cshcProtocolFibTcamProtocol. A value of zero indicates that the total number of FIB TCAM for the protocol denoted by cshcProtocolFibTcamProtocol is not available.') cshcProtocolFibTcamLogicalUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalUsed.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalUsed.setDescription('This object indicates the number of logical FIB TCAM entries that are currently in use for the protocol denoted by cshcProtocolFibTcamProtocol.') cshcProtocolFibTcamLogicalTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalTotal.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalTotal.setDescription('This object indicates the total number of logical FIB TCAM entries that are currently allocated for the protocol denoted by cshcProtocolFibTcamProtocol. A value of zero indicates that the total number of logical FIB TCAM for the protocol denoted by cshcProtocolFibTcamProtocol is not available.') cshcProtocolFibTcamWidthType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("singleWidth", 1), ("doubleWidth", 2), ("quadWidth", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcProtocolFibTcamWidthType.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamWidthType.setDescription("This object indicates the entry width type for the protocol denoted by cshcProtocolFibTcamProtocol. 'singleWidth' - indicates each logical entry is using one physical entry. 'doubleWidth' - indicates each logical entry is using two physical entries. 'quadWidth' - indicates each logical entry is using four physical entries.") cshcAdjacencyUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3), ) if mibBuilder.loadTexts: cshcAdjacencyUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageTable.setDescription('This table contains adjacency capacity for each entity capable of providing this information.') cshcAdjacencyUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcAdjacencyUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageEntry.setDescription('Each row contains management information for adjacency hardware capacity on an entity, as specified by entPhysicalIndex in ENTITY-MIB.') cshcAdjacencyUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcAdjacencyUsed.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsed.setDescription('This object indicates the number of adjacency entries that are currently in use.') cshcAdjacencyTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcAdjacencyTotal.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyTotal.setDescription('This object indicates the total number of adjacency entries available.') cshcForwardingLoadTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4), ) if mibBuilder.loadTexts: cshcForwardingLoadTable.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadTable.setDescription('This table contains Layer 3 forwarding load information for each switching engine capable of providing this information.') cshcForwardingLoadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcForwardingLoadEntry.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadEntry.setDescription('Each row contains management information of Layer 3 forwarding load on a switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshcForwardingLoadPktRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 1), CounterBasedGauge64()).setUnits('pps').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcForwardingLoadPktRate.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktRate.setDescription('This object indicates the forwarding rate of Layer 3 packets.') cshcForwardingLoadPktPeakRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 2), CounterBasedGauge64()).setUnits('pps').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcForwardingLoadPktPeakRate.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakRate.setDescription('This object indicates the peak forwarding rate of Layer 3 packets.') cshcForwardingLoadPktPeakTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 3), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcForwardingLoadPktPeakTime.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakTime.setDescription('This object describes the time when the peak forwarding rate of Layer 3 packets denoted by cshcForwardingLoadPktPeakRate occurs. This object will contain 0-1-1,00:00:00.0 if the peak time information is not available.') cshcAdjacencyResourceUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5), ) if mibBuilder.loadTexts: cshcAdjacencyResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageTable.setDescription('This table contains adjacency capacity per resource type and its usage for each entity capable of providing this information.') cshcAdjacencyResourceUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceIndex")) if mibBuilder.loadTexts: cshcAdjacencyResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageEntry.setDescription('Each row contains the management information for a particular adjacency resource and switch engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshcAdjacencyResourceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 1), Unsigned32()) if mibBuilder.loadTexts: cshcAdjacencyResourceIndex.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceIndex.setDescription('This object indicates a unique value that identifies an adjacency resource.') cshcAdjacencyResourceDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcAdjacencyResourceDescr.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceDescr.setDescription('This object indicates a description of the adjacency resource.') cshcAdjacencyResourceUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcAdjacencyResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsed.setDescription('This object indicates the number of adjacency entries that are currently in use.') cshcAdjacencyResourceTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcAdjacencyResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceTotal.setDescription('This object indicates the total number of adjacency entries available.') cshcMetResourceUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6), ) if mibBuilder.loadTexts: cshcMetResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageTable.setDescription('This table contains information regarding Multicast Expansion Table (MET) resource usage and utilization for a switching engine capable of providing this information.') cshcMetResourceUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceIndex")) if mibBuilder.loadTexts: cshcMetResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageEntry.setDescription('Each row contains information of the usage and utilization for a particular MET resource and switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshcMetResourceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 1), Unsigned32()) if mibBuilder.loadTexts: cshcMetResourceIndex.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceIndex.setDescription('An arbitrary positive integer value that uniquely identifies a Met resource.') cshcMetResourceDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMetResourceDescr.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceDescr.setDescription('This object indicates a description of the MET resource.') cshcMetResourceUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMetResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsed.setDescription('This object indicates the number of MET entries used by this MET resource.') cshcMetResourceTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMetResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceTotal.setDescription('This object indicates the total number of MET entries available for this MET resource.') cshcMetResourceMcastGrp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcMetResourceMcastGrp.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceMcastGrp.setDescription('This object indicates the number of the multicast group for this MET resource. A value of -1 indicates that this object is not applicable on this MET feature.') cshcModuleInterfaceDropsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1), ) if mibBuilder.loadTexts: cshcModuleInterfaceDropsTable.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsTable.setDescription('This table contains interface drops information on each module capable of providing this information.') cshcModuleInterfaceDropsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcModuleInterfaceDropsEntry.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsEntry.setDescription('Each row contains management information for dropped traffic on a specific module, identified by the entPhysicalIndex in ENTITY-MIB, and capable of providing this information.') cshcModTxTotalDroppedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModTxTotalDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcModTxTotalDroppedPackets.setDescription('This object indicates the total dropped outbound packets on all physical interfaces of this module.') cshcModRxTotalDroppedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModRxTotalDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcModRxTotalDroppedPackets.setDescription('This object indicates the total dropped inbound packets on all physical interfaces of this module.') cshcModTxTopDropPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModTxTopDropPort.setStatus('current') if mibBuilder.loadTexts: cshcModTxTopDropPort.setDescription('This object indicates the ifIndex value of the interface that has the largest number of total dropped outbound packets among all the physical interfaces on this module. If there were no dropped outbound packets on any physical interfaces of this module, this object has the value 0. If there are multiple physical interfaces of this module having the same largest number of total dropped outbound packets, the ifIndex of the first such interfaces will be assigned to this object.') cshcModRxTopDropPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModRxTopDropPort.setStatus('current') if mibBuilder.loadTexts: cshcModRxTopDropPort.setDescription('This object indicates the ifIndex value of the interface that has the largest number of total dropped inbound packets among all the physical interfaces of this module. If there were no dropped inbound packets on any physical interfaces of this module, this object has the value 0. If there are multiple physical interfaces of this module having the same largest number of total dropped inbound packets, the ifIndex of the first such interfaces will be assigned to this object.') cshcModTxTopDropIfIndexList = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 5), CiscoInterfaceIndexList()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModTxTopDropIfIndexList.setStatus('current') if mibBuilder.loadTexts: cshcModTxTopDropIfIndexList.setDescription('This object indicates the ifIndex values of the list of interfaces that have the largest number of total dropped outbound packets among all the physical interfaces of this module.') cshcModRxTopDropIfIndexList = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 6), CiscoInterfaceIndexList()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcModRxTopDropIfIndexList.setStatus('current') if mibBuilder.loadTexts: cshcModRxTopDropIfIndexList.setDescription('This object indicates the ifIndex values of the list of interfaces that have the largest number of total dropped inbound packets among all the physical interfaces of this module.') cshcInterfaceBufferTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2), ) if mibBuilder.loadTexts: cshcInterfaceBufferTable.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferTable.setDescription('This table contains buffer capacity information for each physical interface capable of providing this information.') cshcInterfaceBufferEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cshcInterfaceBufferEntry.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferEntry.setDescription('Each row contains buffer capacity information for a specific physical interface capable of providing this information.') cshcInterfaceTransmitBufferSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1, 1), Unsigned32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcInterfaceTransmitBufferSize.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceTransmitBufferSize.setDescription('The aggregate buffer size of all the transmit queues on this interface.') cshcInterfaceReceiveBufferSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1, 2), Unsigned32()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcInterfaceReceiveBufferSize.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceReceiveBufferSize.setDescription('The aggregate buffer size of all the receive queues on this interface.') cshcInternalChannelTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3), ) if mibBuilder.loadTexts: cshcInternalChannelTable.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelTable.setDescription('This table contains information for each internal channel interface on each physical entity, such as a module, capable of providing this information.') cshcInternalChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlType")) if mibBuilder.loadTexts: cshcInternalChannelEntry.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelEntry.setDescription('Each row contains management information for an internal channel interface of a specific type on a specific physical entity, such as a module, identified by the entPhysicalIndex in ENTITY-MIB, and capable of providing this information.') cshcIntlChnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 1), CshcInternalChannelType()) if mibBuilder.loadTexts: cshcIntlChnlType.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlType.setDescription('The type of this internal channel.') cshcIntlChnlRxPacketRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 2), CounterBasedGauge64()).setUnits('packets per second').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlRxPacketRate.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxPacketRate.setDescription('Five minute exponentially-decayed moving average of inbound packet rate for this channel.') cshcIntlChnlRxTotalPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlRxTotalPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxTotalPackets.setDescription('The total number of the inbound packets accounted for this channel.') cshcIntlChnlRxDroppedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlRxDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxDroppedPackets.setDescription('The number of dropped inbound packets for this channel.') cshcIntlChnlTxPacketRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 5), CounterBasedGauge64()).setUnits('packets per second').setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlTxPacketRate.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxPacketRate.setDescription('Five minute exponentially-decayed moving average of outbound packet rate for this channel.') cshcIntlChnlTxTotalPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlTxTotalPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxTotalPackets.setDescription('The total number of the outbound packets accounted for this channel.') cshcIntlChnlTxDroppedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIntlChnlTxDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxDroppedPackets.setDescription('The number of dropped outbound packets for this channel.') cshcCPURateLimiterResourcesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1), ) if mibBuilder.loadTexts: cshcCPURateLimiterResourcesTable.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesTable.setDescription('This table contains information regarding CPU rate limiters resources.') cshcCPURateLimiterResourcesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterNetworkLayer")) if mibBuilder.loadTexts: cshcCPURateLimiterResourcesEntry.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesEntry.setDescription('Each row contains management information of CPU rate limiter resources for a managed network layer.') cshcCPURateLimiterNetworkLayer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("layer2", 1), ("layer3", 2), ("layer2Input", 3), ("layer2Output", 4)))) if mibBuilder.loadTexts: cshcCPURateLimiterNetworkLayer.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterNetworkLayer.setDescription("This object indicates the network layer for which the CPU rate limiters are applied. 'layer2' - Layer 2. 'layer3' - Layer 3. 'layer2Input' - Ingress Layer 2. Applicable for devices which support CPU rate limiters on the Ingress Layer 2 traffic. 'layer2Output' - Egress Layer 2. Applicable for devices which support CPU rate limiters on the Egress Layer 2 traffic.") cshcCPURateLimiterTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcCPURateLimiterTotal.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterTotal.setDescription('This object indicates the total number of CPU rate limiters avaiable.') cshcCPURateLimiterUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcCPURateLimiterUsed.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterUsed.setDescription('This object indicates the number of CPU rate limiters that is currently in use.') cshcCPURateLimiterReserved = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcCPURateLimiterReserved.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterReserved.setDescription('This object indicates the number of CPU rate limiters which is reserved by the switching device.') cshcIcamUtilizationTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1), ) if mibBuilder.loadTexts: cshcIcamUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilizationTable.setDescription('This table contains information regarding ICAM (Internal Content Addressable Memory) Resource usage and utilization for a switching engine capable of providing this information.') cshcIcamUtilizationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: cshcIcamUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilizationEntry.setDescription('Each row contains management information of ICAM usage and utilization for a switching engine, as specified as specified by entPhysicalIndex in ENTITY-MIB.') cshcIcamCreated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIcamCreated.setStatus('current') if mibBuilder.loadTexts: cshcIcamCreated.setDescription('This object indicates the total number of ICAM entries created.') cshcIcamFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIcamFailed.setStatus('current') if mibBuilder.loadTexts: cshcIcamFailed.setDescription('This object indicates the number of ICAM entries which failed to be created.') cshcIcamUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 3), Percent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcIcamUtilization.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilization.setDescription('This object indicates the ICAM utlization in percentage in this switching engine.') cshcNetflowFlowMaskTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1), ) if mibBuilder.loadTexts: cshcNetflowFlowMaskTable.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskTable.setDescription('This table contains information regarding Netflow flow mask features supported.') cshcNetflowFlowMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskAddrType"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskIndex")) if mibBuilder.loadTexts: cshcNetflowFlowMaskEntry.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskEntry.setDescription('Each row contains supported feature information of a Netflow flow mask supported by the device.') cshcNetflowFlowMaskAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 1), InetAddressType()) if mibBuilder.loadTexts: cshcNetflowFlowMaskAddrType.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskAddrType.setDescription('This object indicates Internet address type for this flow mask.') cshcNetflowFlowMaskIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 2), Unsigned32()) if mibBuilder.loadTexts: cshcNetflowFlowMaskIndex.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskIndex.setDescription('This object indicates the unique flow mask number for a specific Internet address type.') cshcNetflowFlowMaskType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37))).clone(namedValues=NamedValues(("null", 1), ("srcOnly", 2), ("destOnly", 3), ("srcDest", 4), ("interfaceSrcDest", 5), ("fullFlow", 6), ("interfaceFullFlow", 7), ("interfaceFullFlowOrFullFlow", 8), ("atleastInterfaceSrcDest", 9), ("atleastFullFlow", 10), ("atleastInterfaceFullFlow", 11), ("atleastSrc", 12), ("atleastDst", 13), ("atleastSrcDst", 14), ("shortest", 15), ("lessThanFullFlow", 16), ("exceptFullFlow", 17), ("exceptInterfaceFullFlow", 18), ("interfaceDest", 19), ("atleastInterfaceDest", 20), ("interfaceSrc", 21), ("atleastInterfaceSrc", 22), ("srcOnlyCR", 23), ("dstOnlyCR", 24), ("fullFlowCR", 25), ("interfaceFullFlowCR", 26), ("max", 27), ("conflict", 28), ("err", 29), ("unused", 30), ("fullFlow1", 31), ("fullFlow2", 32), ("fullFlow3", 33), ("vlanFullFlow1", 34), ("vlanFullFlow2", 35), ("vlanFullFlow3", 36), ("reserved", 37)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowFlowMaskType.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskType.setDescription('This object indicates the type of flow mask.') cshcNetflowFlowMaskFeature = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 4), Bits().clone(namedValues=NamedValues(("null", 0), ("ipAcgIngress", 1), ("ipAcgEgress", 2), ("natIngress", 3), ("natEngress", 4), ("natInside", 5), ("pbr", 6), ("cryptoIngress", 7), ("cryptoEgress", 8), ("qos", 9), ("idsIngress", 10), ("tcpIntrcptEgress", 11), ("guardian", 12), ("ipv6AcgIngress", 13), ("ipv6AcgEgress", 14), ("mcastAcgIngress", 15), ("mcastAcgEgress", 16), ("mcastStub", 17), ("mcastUrd", 18), ("ipDsIngress", 19), ("ipDsEgress", 20), ("ipVaclIngress", 21), ("ipVaclEgress", 22), ("macVaclIngress", 23), ("macVaclEgress", 24), ("inspIngress", 25), ("inspEgress", 26), ("authProxy", 27), ("rpf", 28), ("wccpIngress", 29), ("wccpEgress", 30), ("inspDummyIngress", 31), ("inspDummyEgress", 32), ("nbarIngress", 33), ("nbarEgress", 34), ("ipv6Rpf", 35), ("ipv6GlobalDefault", 36), ("dai", 37), ("ipPaclIngress", 38), ("macPaclIngress", 39), ("mplsIcmpBridge", 40), ("ipSlb", 41), ("ipv4Default", 42), ("ipv6Default", 43), ("mplsDefault", 44), ("erSpanTermination", 45), ("ipv6Mcast", 46), ("ipDsL3Ingress", 47), ("ipDsL3Egress", 48), ("cryptoRedirectIngress", 49), ("otherDefault", 50), ("ipRecir", 51), ("iPAdmissionL3Eou", 52), ("iPAdmissionL2Eou", 53), ("iPAdmissionL2EouArp", 54), ("ipAdmissionL2Http", 55), ("ipAdmissionL2HttpArp", 56), ("ipv4L3IntfNde", 57), ("ipv4L2IntfNde", 58), ("ipSguardIngress", 59), ("pvtHostsIngress", 60), ("vrfNatIngress", 61), ("tcpAdjustMssIngress", 62), ("tcpAdjustMssEgress", 63), ("eomIw", 64), ("eomIw2", 65), ("ipv4VrfNdeEgress", 66), ("l1Egress", 67), ("l1Ingress", 68), ("l1GlobalEgress", 69), ("l1GlobalIngress", 70), ("ipDot1xAcl", 71), ("ipDot1xAclArp", 72), ("dot1ad", 73), ("ipSpanPcap", 74), ("ipv6CryptoRedirectIngress", 75), ("svcAcclrtIngress", 76), ("ipv6SvcAcclrtIngress", 77), ("nfAggregation", 78), ("nfSampling", 79), ("ipv6Guardian", 80), ("ipv6Qos", 81), ("none", 82)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowFlowMaskFeature.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskFeature.setDescription('This object indicates the features supported by this flow mask.') cshcNetflowResourceUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1), ) if mibBuilder.loadTexts: cshcNetflowResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageTable.setDescription('This table contains information regarding Netflow resource usage and utilization for a switching engine capable of providing this information.') cshcNetflowResourceUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageIndex")) if mibBuilder.loadTexts: cshcNetflowResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageEntry.setDescription('Each row contains information of the usage and utilization for a particular Netflow resource and switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshcNetflowResourceUsageIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: cshcNetflowResourceUsageIndex.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageIndex.setDescription('An arbitrary positive integer value that uniquely identifies a Netflow resource.') cshcNetflowResourceUsageDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowResourceUsageDescr.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageDescr.setDescription('This object indicates a description of the Netflow resource.') cshcNetflowResourceUsageUtil = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 3), Percent()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowResourceUsageUtil.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageUtil.setDescription('This object indicates the Netflow resource usage in percentage value.') cshcNetflowResourceUsageUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowResourceUsageUsed.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageUsed.setDescription('This object indicates the number of Netflow entries used by this Netflow resource.') cshcNetflowResourceUsageFree = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowResourceUsageFree.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageFree.setDescription('This object indicates the number of Netflow entries available for this Netflow resource.') cshcNetflowResourceUsageFail = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 2147483647), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcNetflowResourceUsageFail.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageFail.setDescription('This object indicates the number of Netflow entries which were failed to be created for this Netflow resource. A value of -1 indicates that this resource does not maintain this counter.') cshcQosResourceUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1), ) if mibBuilder.loadTexts: cshcQosResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageTable.setDescription('This table contains QoS capacity per resource type and its usage for each entity capable of providing this information.') cshcQosResourceUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcQosResourceType")) if mibBuilder.loadTexts: cshcQosResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageEntry.setDescription('Each row contains management information for QoS capacity and its usage on an entity, as specified by entPhysicalIndex in ENTITY-MIB.') cshcQosResourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("aggregatePolicers", 1), ("distributedPolicers", 2), ("policerProfiles", 3)))) if mibBuilder.loadTexts: cshcQosResourceType.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceType.setDescription('This object indicates the QoS resource type.') cshcQosResourceUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcQosResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsed.setDescription('This object indicates the number of QoS entries that are currently in use.') cshcQosResourceTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cshcQosResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceTotal.setDescription('This object indicates the total number of QoS entries available.') ciscoSwitchHardwareCapacityMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1)) ciscoSwitchHardwareCapacityMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2)) ciscoSwitchHardwareCapacityMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 1)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModuleInterfaceDropsGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceBufferGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInternalChannelGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskResourceGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSwitchHardwareCapacityMIBCompliance = ciscoSwitchHardwareCapacityMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB. This statement is deprecated and superseded by ciscoSwitchHardwareCapacityMIBCompliance1.') ciscoSwitchHardwareCapacityMIBCompliance1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 2)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModuleInterfaceDropsGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceBufferGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInternalChannelGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskResourceGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageExtGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSwitchHardwareCapacityMIBCompliance1 = ciscoSwitchHardwareCapacityMIBCompliance1.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance1.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB. This statement is deprecated and superseded by ciscoSwitchHardwareCapacityMIBCompliance2.') ciscoSwitchHardwareCapacityMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 3)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModuleInterfaceDropsGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceBufferGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInternalChannelGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskResourceGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcQosResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModTopDropIfIndexListGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceUsageGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSwitchHardwareCapacityMIBCompliance2 = ciscoSwitchHardwareCapacityMIBCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance2.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB') ciscoSwitchHardwareCapacityMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 4)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModuleInterfaceDropsGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceBufferGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInternalChannelGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamResourcesGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskResourceGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcFibTcamUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsageExtGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcQosResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModTopDropIfIndexListGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceUsageGroup"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamWidthTypeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoSwitchHardwareCapacityMIBCompliance3 = ciscoSwitchHardwareCapacityMIBCompliance3.setStatus('current') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance3.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB') cshcMacUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 1)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacCollisions"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcMacUsageGroup = cshcMacUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageGroup.setDescription('A collection of objects which provides Layer 2 forwarding hardware capacity information in the device.') cshcVpnCamUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 2)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcVpnCamTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcVpnCamUsageGroup = cshcVpnCamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageGroup.setDescription('A collection of objects which provides VPN CAM hardware capacity information in the device.') cshcFibTcamUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 3)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc72bitsFibTcamUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc72bitsFibTcamTotal"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc144bitsFibTcamUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc144bitsFibTcamTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcFibTcamUsageGroup = cshcFibTcamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageGroup.setDescription('A collection of objects which provides FIB TCAM hardware capacity information in the device.') cshcProtocolFibTcamUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 4)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcProtocolFibTcamUsageGroup = cshcProtocolFibTcamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageGroup.setDescription('A collection of objects which provides FIB TCAM hardware capacity information in conjunction with Layer 3 protocol in the device.') cshcAdjacencyUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 5)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcAdjacencyUsageGroup = cshcAdjacencyUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageGroup.setDescription('A collection of objects which provides adjacency hardware capacity information in the device.') cshcForwardingLoadGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 6)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadPktRate"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadPktPeakRate"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcForwardingLoadPktPeakTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcForwardingLoadGroup = cshcForwardingLoadGroup.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadGroup.setDescription('A collection of objects which provides forwarding load information in the device.') cshcModuleInterfaceDropsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 7)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModTxTotalDroppedPackets"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModRxTotalDroppedPackets"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModTxTopDropPort"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModRxTopDropPort")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcModuleInterfaceDropsGroup = cshcModuleInterfaceDropsGroup.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsGroup.setDescription('A collection of objects which provides linecard drop traffic information on the device.') cshcInterfaceBufferGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 8)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceTransmitBufferSize"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcInterfaceReceiveBufferSize")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcInterfaceBufferGroup = cshcInterfaceBufferGroup.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferGroup.setDescription('A collection of objects which provides interface buffer information on the device.') cshcInternalChannelGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 9)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlRxPacketRate"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlRxTotalPackets"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlRxDroppedPackets"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlTxPacketRate"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlTxTotalPackets"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIntlChnlTxDroppedPackets")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcInternalChannelGroup = cshcInternalChannelGroup.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelGroup.setDescription('A collection of objects which provides internal channel information on the device.') cshcCPURateLimiterResourcesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 10)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterTotal"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcCPURateLimiterReserved")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcCPURateLimiterResourcesGroup = cshcCPURateLimiterResourcesGroup.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesGroup.setDescription('A collection of objects which provides CPU rate limiter resource in the device.') cshcIcamResourcesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 11)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamCreated"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamFailed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcIcamUtilization")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcIcamResourcesGroup = cshcIcamResourcesGroup.setStatus('current') if mibBuilder.loadTexts: cshcIcamResourcesGroup.setDescription('A collection of objects which provides ICAM resources information in the device.') cshcNetflowFlowMaskResourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 12)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskType"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowFlowMaskFeature")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcNetflowFlowMaskResourceGroup = cshcNetflowFlowMaskResourceGroup.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskResourceGroup.setDescription('A collection of objects which provides Netflow FlowMask information in the device.') cshcFibTcamUsageExtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 13)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc288bitsFibTcamUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshc288bitsFibTcamTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcFibTcamUsageExtGroup = cshcFibTcamUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageExtGroup.setDescription('A collection of objects which provides additional FIB TCAM hardware capacity information in the device.') cshcNetflowFlowResourceUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 14)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageDescr"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageUtil"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageFree"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcNetflowResourceUsageFail")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcNetflowFlowResourceUsageGroup = cshcNetflowFlowResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowResourceUsageGroup.setDescription('A collection of objects which provides Netflow resource usage information in the device.') cshcMacUsageExtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 15)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacMcast"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacUcast"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacLines"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMacLinesFull")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcMacUsageExtGroup = cshcMacUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageExtGroup.setDescription('A collection of objects which provides additional Layer 2 forwarding hardware capacity information in the device.') cshcProtocolFibTcamUsageExtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 16)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamLogicalUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamLogicalTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcProtocolFibTcamUsageExtGroup = cshcProtocolFibTcamUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageExtGroup.setDescription('A collection of objects which provides additional FIB TCAM hardware capacity information in conjunction with Layer 3 protocol in the device.') cshcAdjacencyResourceUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 17)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceDescr"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcAdjacencyResourceTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcAdjacencyResourceUsageGroup = cshcAdjacencyResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageGroup.setDescription('A collection of objects which provides adjacency hardware capacity information per resource in the device.') cshcQosResourceUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 18)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcQosResourceUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcQosResourceTotal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcQosResourceUsageGroup = cshcQosResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageGroup.setDescription('A collection of objects which provides QoS hardware capacity information per resource in the device.') cshcModTopDropIfIndexListGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 19)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModTxTopDropIfIndexList"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcModRxTopDropIfIndexList")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcModTopDropIfIndexListGroup = cshcModTopDropIfIndexListGroup.setStatus('current') if mibBuilder.loadTexts: cshcModTopDropIfIndexListGroup.setDescription('A collection of objects which provides information on multiple interfaces with largest number of drop traffic on a module.') cshcMetResourceUsageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 20)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceDescr"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceUsed"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceTotal"), ("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcMetResourceMcastGrp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcMetResourceUsageGroup = cshcMetResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageGroup.setDescription('A collection of objects which provides MET hardware capacity information per resource in the device.') cshcProtocolFibTcamWidthTypeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 21)).setObjects(("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", "cshcProtocolFibTcamWidthType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshcProtocolFibTcamWidthTypeGroup = cshcProtocolFibTcamWidthTypeGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamWidthTypeGroup.setDescription('A collection of objects which provides FIB TCAM entry width information in conjunction with Layer 3 protocol in the device.') mibBuilder.exportSymbols("CISCO-SWITCH-HARDWARE-CAPACITY-MIB", cshcAdjacencyTotal=cshcAdjacencyTotal, cshcNetflowResourceUsageFail=cshcNetflowResourceUsageFail, cshcForwardingLoadEntry=cshcForwardingLoadEntry, cshcProtocolFibTcamWidthType=cshcProtocolFibTcamWidthType, cshcInterfaceTransmitBufferSize=cshcInterfaceTransmitBufferSize, cshcIcamCreated=cshcIcamCreated, cshcForwarding=cshcForwarding, cshcNetflowFlowMaskEntry=cshcNetflowFlowMaskEntry, cshcNetflowResourceUsageEntry=cshcNetflowResourceUsageEntry, cshcAdjacencyUsageGroup=cshcAdjacencyUsageGroup, cshcAdjacencyResourceIndex=cshcAdjacencyResourceIndex, cshcInterfaceBufferEntry=cshcInterfaceBufferEntry, cshcCPURateLimiterResourcesGroup=cshcCPURateLimiterResourcesGroup, cshcIcamUtilization=cshcIcamUtilization, cshcForwardingLoadPktRate=cshcForwardingLoadPktRate, cshcNetflowFlowMaskResourceGroup=cshcNetflowFlowMaskResourceGroup, cshcIntlChnlTxTotalPackets=cshcIntlChnlTxTotalPackets, ciscoSwitchHardwareCapacityMIBCompliance3=ciscoSwitchHardwareCapacityMIBCompliance3, cshcCPURateLimiterTotal=cshcCPURateLimiterTotal, cshcNetflowFlowMaskResources=cshcNetflowFlowMaskResources, cshcVpnCamUsed=cshcVpnCamUsed, ciscoSwitchHardwareCapacityMIBObjects=ciscoSwitchHardwareCapacityMIBObjects, cshcMetResourceDescr=cshcMetResourceDescr, cshcQosResourceUsed=cshcQosResourceUsed, ciscoSwitchHardwareCapacityMIBCompliance2=ciscoSwitchHardwareCapacityMIBCompliance2, cshcInterfaceBufferGroup=cshcInterfaceBufferGroup, PYSNMP_MODULE_ID=ciscoSwitchHardwareCapacityMIB, cshcMetResourceMcastGrp=cshcMetResourceMcastGrp, cshc288bitsFibTcamTotal=cshc288bitsFibTcamTotal, cshcModuleInterfaceDropsEntry=cshcModuleInterfaceDropsEntry, cshcInterface=cshcInterface, cshcAdjacencyUsageEntry=cshcAdjacencyUsageEntry, cshcInterfaceBufferTable=cshcInterfaceBufferTable, cshcL3Forwarding=cshcL3Forwarding, cshcNetflowFlowResourceUsageGroup=cshcNetflowFlowResourceUsageGroup, cshcProtocolFibTcamTotal=cshcProtocolFibTcamTotal, cshcProtocolFibTcamUsageTable=cshcProtocolFibTcamUsageTable, cshcModTxTotalDroppedPackets=cshcModTxTotalDroppedPackets, cshcMetResourceIndex=cshcMetResourceIndex, cshcFibTcamUsageGroup=cshcFibTcamUsageGroup, cshcAdjacencyResourceUsageTable=cshcAdjacencyResourceUsageTable, ciscoSwitchHardwareCapacityMIBGroups=ciscoSwitchHardwareCapacityMIBGroups, cshcNetflowFlowMaskAddrType=cshcNetflowFlowMaskAddrType, cshcMacUsageTable=cshcMacUsageTable, cshcInternalChannelEntry=cshcInternalChannelEntry, cshc144bitsFibTcamTotal=cshc144bitsFibTcamTotal, cshc72bitsFibTcamTotal=cshc72bitsFibTcamTotal, cshcModTxTopDropIfIndexList=cshcModTxTopDropIfIndexList, cshcMetResourceUsed=cshcMetResourceUsed, ciscoSwitchHardwareCapacityMIBNotifs=ciscoSwitchHardwareCapacityMIBNotifs, cshcAdjacencyUsageTable=cshcAdjacencyUsageTable, cshcIntlChnlRxPacketRate=cshcIntlChnlRxPacketRate, cshcAdjacencyUsed=cshcAdjacencyUsed, cshcAdjacencyResourceUsageEntry=cshcAdjacencyResourceUsageEntry, cshcVpnCamUsageEntry=cshcVpnCamUsageEntry, cshcForwardingLoadTable=cshcForwardingLoadTable, cshcQosResourceUsage=cshcQosResourceUsage, cshcProtocolFibTcamUsageEntry=cshcProtocolFibTcamUsageEntry, cshcForwardingLoadPktPeakRate=cshcForwardingLoadPktPeakRate, cshcCPURateLimiterResourcesTable=cshcCPURateLimiterResourcesTable, cshcCPURateLimiterNetworkLayer=cshcCPURateLimiterNetworkLayer, cshcModTopDropIfIndexListGroup=cshcModTopDropIfIndexListGroup, cshcVpnCamTotal=cshcVpnCamTotal, cshcMetResourceUsageEntry=cshcMetResourceUsageEntry, cshcAdjacencyResourceUsageGroup=cshcAdjacencyResourceUsageGroup, cshcCPURateLimiterResourcesEntry=cshcCPURateLimiterResourcesEntry, CshcInternalChannelType=CshcInternalChannelType, cshcAdjacencyResourceUsed=cshcAdjacencyResourceUsed, cshcForwardingLoadGroup=cshcForwardingLoadGroup, cshcIntlChnlTxPacketRate=cshcIntlChnlTxPacketRate, cshc72bitsFibTcamUsed=cshc72bitsFibTcamUsed, cshcModTxTopDropPort=cshcModTxTopDropPort, cshcModRxTopDropPort=cshcModRxTopDropPort, cshcForwardingLoadPktPeakTime=cshcForwardingLoadPktPeakTime, cshcMacUsageEntry=cshcMacUsageEntry, ciscoSwitchHardwareCapacityMIBConformance=ciscoSwitchHardwareCapacityMIBConformance, cshcQosResourceTotal=cshcQosResourceTotal, cshcNetflowResourceUsageUtil=cshcNetflowResourceUsageUtil, cshcFibTcamUsageExtGroup=cshcFibTcamUsageExtGroup, cshcIcamUtilizationEntry=cshcIcamUtilizationEntry, cshcVpnCamUsageTable=cshcVpnCamUsageTable, cshcMacUcast=cshcMacUcast, cshcMacUsageGroup=cshcMacUsageGroup, cshcIntlChnlType=cshcIntlChnlType, cshcIcamResources=cshcIcamResources, cshcMacLines=cshcMacLines, cshcMacCollisions=cshcMacCollisions, cshc288bitsFibTcamUsed=cshc288bitsFibTcamUsed, cshcIntlChnlRxDroppedPackets=cshcIntlChnlRxDroppedPackets, cshcProtocolFibTcamUsageGroup=cshcProtocolFibTcamUsageGroup, cshcAdjacencyResourceDescr=cshcAdjacencyResourceDescr, cshcModRxTopDropIfIndexList=cshcModRxTopDropIfIndexList, cshcNetflowFlowMaskTable=cshcNetflowFlowMaskTable, cshcNetflowResourceUsageUsed=cshcNetflowResourceUsageUsed, cshcNetflowFlowMaskIndex=cshcNetflowFlowMaskIndex, cshcProtocolFibTcamUsed=cshcProtocolFibTcamUsed, cshcProtocolFibTcamWidthTypeGroup=cshcProtocolFibTcamWidthTypeGroup, cshcMacUsageExtGroup=cshcMacUsageExtGroup, cshcInterfaceReceiveBufferSize=cshcInterfaceReceiveBufferSize, cshcNetflowResourceUsageIndex=cshcNetflowResourceUsageIndex, cshcQosResourceUsageTable=cshcQosResourceUsageTable, cshcQosResourceUsageEntry=cshcQosResourceUsageEntry, cshcIntlChnlRxTotalPackets=cshcIntlChnlRxTotalPackets, ciscoSwitchHardwareCapacityMIBCompliance1=ciscoSwitchHardwareCapacityMIBCompliance1, ciscoSwitchHardwareCapacityMIBCompliance=ciscoSwitchHardwareCapacityMIBCompliance, cshcInternalChannelGroup=cshcInternalChannelGroup, cshcModuleInterfaceDropsTable=cshcModuleInterfaceDropsTable, cshcVpnCamUsageGroup=cshcVpnCamUsageGroup, cshcFibTcamUsageTable=cshcFibTcamUsageTable, cshcL2Forwarding=cshcL2Forwarding, cshcFibTcamUsageEntry=cshcFibTcamUsageEntry, cshcMacMcast=cshcMacMcast, cshcIcamResourcesGroup=cshcIcamResourcesGroup, cshcModuleInterfaceDropsGroup=cshcModuleInterfaceDropsGroup, cshcCPURateLimiterUsed=cshcCPURateLimiterUsed, cshcProtocolFibTcamProtocol=cshcProtocolFibTcamProtocol, cshcMetResourceUsageGroup=cshcMetResourceUsageGroup, cshcIcamFailed=cshcIcamFailed, ciscoSwitchHardwareCapacityMIB=ciscoSwitchHardwareCapacityMIB, cshcNetflowResourceUsage=cshcNetflowResourceUsage, cshcMacTotal=cshcMacTotal, cshcCPURateLimiterReserved=cshcCPURateLimiterReserved, cshcQosResourceUsageGroup=cshcQosResourceUsageGroup, cshcMetResourceTotal=cshcMetResourceTotal, cshcMacUsed=cshcMacUsed, cshcInternalChannelTable=cshcInternalChannelTable, cshcNetflowResourceUsageTable=cshcNetflowResourceUsageTable, cshcQosResourceType=cshcQosResourceType, ciscoSwitchHardwareCapacityMIBCompliances=ciscoSwitchHardwareCapacityMIBCompliances, cshcNetflowResourceUsageFree=cshcNetflowResourceUsageFree, cshc144bitsFibTcamUsed=cshc144bitsFibTcamUsed, cshcNetflowResourceUsageDescr=cshcNetflowResourceUsageDescr, cshcModRxTotalDroppedPackets=cshcModRxTotalDroppedPackets, cshcAdjacencyResourceTotal=cshcAdjacencyResourceTotal, cshcProtocolFibTcamLogicalUsed=cshcProtocolFibTcamLogicalUsed, cshcIntlChnlTxDroppedPackets=cshcIntlChnlTxDroppedPackets, cshcIcamUtilizationTable=cshcIcamUtilizationTable, cshcCPURateLimiterResources=cshcCPURateLimiterResources, cshcNetflowFlowMaskFeature=cshcNetflowFlowMaskFeature, cshcProtocolFibTcamUsageExtGroup=cshcProtocolFibTcamUsageExtGroup, cshcMacLinesFull=cshcMacLinesFull, cshcProtocolFibTcamLogicalTotal=cshcProtocolFibTcamLogicalTotal, cshcMetResourceUsageTable=cshcMetResourceUsageTable, cshcNetflowFlowMaskType=cshcNetflowFlowMaskType)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (percent,) = mibBuilder.importSymbols('CISCO-QOS-PIB-MIB', 'Percent') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (cisco_interface_index_list,) = mibBuilder.importSymbols('CISCO-TC', 'CiscoInterfaceIndexList') (ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex') (counter_based_gauge64,) = mibBuilder.importSymbols('HCNUM-TC', 'CounterBasedGauge64') (interface_index_or_zero, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'ifIndex') (inet_address_type,) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (notification_type, time_ticks, ip_address, object_identity, mib_identifier, module_identity, counter32, integer32, gauge32, unsigned32, counter64, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'TimeTicks', 'IpAddress', 'ObjectIdentity', 'MibIdentifier', 'ModuleIdentity', 'Counter32', 'Integer32', 'Gauge32', 'Unsigned32', 'Counter64', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits') (display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime') cisco_switch_hardware_capacity_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 663)) ciscoSwitchHardwareCapacityMIB.setRevisions(('2014-09-16 00:00', '2014-01-24 00:00', '2013-05-08 00:00', '2010-11-22 00:00', '2008-07-02 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setRevisionsDescriptions(('Added the following enumerations for object cshcProtocolFibTcamProtocol - allProtocols(14) Updated the description of cshcProtocolFibTcamTotal and cshcProtocolFibTcamLogicalTotal.', 'Added following OBJECT-GROUP - cshcProtocolFibTcamWidthTypeGroup Added the following enumerations for object cshcProtocolFibTcamProtocol - mplsVpn(11) - fcMpls(12) - ipv6LocalLink(13) Added new compliance - ciscoSwitchHardwareCapacityMIBCompliance3', 'Added following OBJECT-GROUP - cshcNetflowFlowResourceUsageGroup - cshcMacUsageExtGroup - cshcProtocolFibTcamUsageExtGroup - cshcAdjacencyResourceUsageGroup - cshcQosResourceUsageGroup - cshcModTopDropIfIndexListGroup - cshcMetResourceUsageGroup Added the following enumerations for object cshcProtocolFibTcamProtocol - l2VpnPeer(7) - l2VpnIpv4Multicast(8) - l2VpnIpv6Multicast(9) Added new compliance - ciscoSwitchHardwareCapacityMIBCompliance2', 'Add the following new enumerations to cshcCPURateLimiterNetworkLayer: layer2Input(3) and layer2Output(4). Add cshcFibTcamUsageExtGroup.', 'Initial revision of this MIB module.')) if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setLastUpdated('201409160000Z') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-lan-switch-snmp@cisco.com') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIB.setDescription('This MIB module defines the managed objects for hardware capacity of Cisco switching devices. The hardware capacity information covers the following but not limited to features: forwarding, rate-limiter ... The following terms are used throughout the MIB: CAM: Content Addressable Memory. TCAM: Ternary Content Addressable Memory. FIB: Forwarding Information Base. VPN: Virtual Private Network. QoS: Quality of Service. CPU rate-limiter: Mechanism to rate-limit or restrict undesired traffic to the CPU. MPLS: Multiprotocol Label Switching.') cisco_switch_hardware_capacity_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 0)) cisco_switch_hardware_capacity_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1)) cisco_switch_hardware_capacity_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2)) cshc_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1)) cshc_interface = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2)) cshc_cpu_rate_limiter_resources = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3)) cshc_icam_resources = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4)) cshc_netflow_flow_mask_resources = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5)) cshc_netflow_resource_usage = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6)) cshc_qos_resource_usage = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7)) class Cshcinternalchanneltype(TextualConvention, Integer32): description = 'An enumerated value indicating the type of an internal channel. eobc - ethernet out-of-band channel. ibc - in-band channel.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('eobc', 1), ('ibc', 2)) cshc_l2_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1)) cshc_mac_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1)) if mibBuilder.loadTexts: cshcMacUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageTable.setDescription('This table contains MAC table capacity for each switching engine, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshc_mac_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcMacUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageEntry.setDescription('Each row contains management information for MAC table hardware capacity on a switching engine.') cshc_mac_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacCollisions.setStatus('current') if mibBuilder.loadTexts: cshcMacCollisions.setDescription('This object indicates the number of Ethernet frames whose source MAC address the switching engine failed to learn while constructing its MAC table.') cshc_mac_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacUsed.setStatus('current') if mibBuilder.loadTexts: cshcMacUsed.setDescription('This object indicates the number of MAC table entries that are currently in use for this switching engine.') cshc_mac_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacTotal.setStatus('current') if mibBuilder.loadTexts: cshcMacTotal.setDescription('This object indicates the total number of MAC table entries available for this switching engine.') cshc_mac_mcast = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacMcast.setStatus('current') if mibBuilder.loadTexts: cshcMacMcast.setDescription('This object indicates the total number of multicast MAC table entries on this switching engine.') cshc_mac_ucast = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacUcast.setStatus('current') if mibBuilder.loadTexts: cshcMacUcast.setDescription('This object indicates the total number of unicast MAC table entries on this switching engine.') cshc_mac_lines = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacLines.setStatus('current') if mibBuilder.loadTexts: cshcMacLines.setDescription('This object indicates the total number of MAC table lines on this switching engine. The MAC table is organized as multiple MAC entries per line.') cshc_mac_lines_full = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 1, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMacLinesFull.setStatus('current') if mibBuilder.loadTexts: cshcMacLinesFull.setDescription('This object indicates the total number of MAC table lines full on this switching engine. A line full means all the MAC entries on the line are occupied.') cshc_vpn_cam_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2)) if mibBuilder.loadTexts: cshcVpnCamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageTable.setDescription('This table contains VPN CAM capacity for each entity, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshc_vpn_cam_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcVpnCamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageEntry.setDescription('Each row contains management information for VPN CAM hardware capacity on an entity.') cshc_vpn_cam_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcVpnCamUsed.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsed.setDescription('This object indicates the number of VPN CAM entries that are currently in use.') cshc_vpn_cam_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 1, 2, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcVpnCamTotal.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamTotal.setDescription('This object indicates the total number of VPN CAM entries.') cshc_l3_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2)) cshc_fib_tcam_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1)) if mibBuilder.loadTexts: cshcFibTcamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageTable.setDescription('This table contains FIB TCAM capacity for each entity, as specified by entPhysicalIndex in ENTITY-MIB, capable of providing this information.') cshc_fib_tcam_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcFibTcamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageEntry.setDescription('Each row contains management information for FIB TCAM hardware capacity on an entity.') cshc72bits_fib_tcam_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc72bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc72bitsFibTcamUsed.setDescription('This object indicates the number of 72 bits FIB TCAM entries that are currently in use.') cshc72bits_fib_tcam_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc72bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc72bitsFibTcamTotal.setDescription('This object indicates the total number of 72 bits FIB TCAM entries available.') cshc144bits_fib_tcam_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc144bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc144bitsFibTcamUsed.setDescription('This object indicates the number of 144 bits FIB TCAM entries that are currently in use.') cshc144bits_fib_tcam_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc144bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc144bitsFibTcamTotal.setDescription('This object indicates the total number of 144 bits FIB TCAM entries available.') cshc288bits_fib_tcam_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc288bitsFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshc288bitsFibTcamUsed.setDescription('This object indicates the number of 288 bits FIB TCAM entries that are currently in use.') cshc288bits_fib_tcam_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 1, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshc288bitsFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshc288bitsFibTcamTotal.setDescription('This object indicates the total number of 288 bits FIB TCAM entries available.') cshc_protocol_fib_tcam_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2)) if mibBuilder.loadTexts: cshcProtocolFibTcamUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageTable.setDescription('This table contains FIB TCAM usage per specified Layer 3 protocol on an entity capable of providing this information.') cshc_protocol_fib_tcam_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamProtocol')) if mibBuilder.loadTexts: cshcProtocolFibTcamUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageEntry.setDescription('Each row contains management information for FIB TCAM usage for the specific Layer 3 protocol on an entity as specified by the entPhysicalIndex in ENTITY-MIB.') cshc_protocol_fib_tcam_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('ipv4', 1), ('mpls', 2), ('eom', 3), ('ipv6', 4), ('ipv4Multicast', 5), ('ipv6Multicast', 6), ('l2VpnPeer', 7), ('l2VpnIpv4Multicast', 8), ('l2VpnIpv6Multicast', 9), ('fcoe', 10), ('mplsVpn', 11), ('fcMpls', 12), ('ipv6LocalLink', 13), ('allProtocols', 14)))) if mibBuilder.loadTexts: cshcProtocolFibTcamProtocol.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamProtocol.setDescription("This object indicates the Layer 3 protocol utilizing FIB TCAM resource. 'ipv4' - indicates Internet Protocol version 4. 'mpls' - indicates Multiprotocol Label Switching. 'eom' - indicates Ethernet over MPLS. 'ipv6' - indicates Internet Protocol version 6. 'ipv4Multicast' - indicates Internet Protocol version 4 for multicast traffic. 'ipv6Multicast' - indicates Internet Protocol version 6 for multicast traffic. 'l2VpnPeer' - indicates Layer 2 VPN Peer traffic. 'l2VpnIpv4Multicast' - indicates Internet Protocol version 4 for multicast traffic on Layer 2 VPN. 'l2VpnIpv6Multicast' - indicates Internet Protocol version 6 for multicast traffic on Layer 2 VPN. 'fcoe' - indicates Fibre Channel over Ethernet. 'mplsVpn' - indicates MPLS Layer 3 VPN aggregate labels. 'fcMpls' - indicates Fibre Channel over MPLS tunnels. 'ipv6LocalLink' - indicates Internet Protocol version 6 Local Link. 'allProtocols' - indicates all protocols within the entPhysicalIndex.") cshc_protocol_fib_tcam_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcProtocolFibTcamUsed.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsed.setDescription('This object indicates the number of FIB TCAM entries that are currently in use for the protocol denoted by cshcProtocolFibTcamProtocol.') cshc_protocol_fib_tcam_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcProtocolFibTcamTotal.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamTotal.setDescription('This object indicates the total number of FIB TCAM entries are currently allocated for the protocol denoted by cshcProtocolFibTcamProtocol. A value of zero indicates that the total number of FIB TCAM for the protocol denoted by cshcProtocolFibTcamProtocol is not available.') cshc_protocol_fib_tcam_logical_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalUsed.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalUsed.setDescription('This object indicates the number of logical FIB TCAM entries that are currently in use for the protocol denoted by cshcProtocolFibTcamProtocol.') cshc_protocol_fib_tcam_logical_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalTotal.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamLogicalTotal.setDescription('This object indicates the total number of logical FIB TCAM entries that are currently allocated for the protocol denoted by cshcProtocolFibTcamProtocol. A value of zero indicates that the total number of logical FIB TCAM for the protocol denoted by cshcProtocolFibTcamProtocol is not available.') cshc_protocol_fib_tcam_width_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('singleWidth', 1), ('doubleWidth', 2), ('quadWidth', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcProtocolFibTcamWidthType.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamWidthType.setDescription("This object indicates the entry width type for the protocol denoted by cshcProtocolFibTcamProtocol. 'singleWidth' - indicates each logical entry is using one physical entry. 'doubleWidth' - indicates each logical entry is using two physical entries. 'quadWidth' - indicates each logical entry is using four physical entries.") cshc_adjacency_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3)) if mibBuilder.loadTexts: cshcAdjacencyUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageTable.setDescription('This table contains adjacency capacity for each entity capable of providing this information.') cshc_adjacency_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcAdjacencyUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageEntry.setDescription('Each row contains management information for adjacency hardware capacity on an entity, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_adjacency_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcAdjacencyUsed.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsed.setDescription('This object indicates the number of adjacency entries that are currently in use.') cshc_adjacency_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 3, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcAdjacencyTotal.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyTotal.setDescription('This object indicates the total number of adjacency entries available.') cshc_forwarding_load_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4)) if mibBuilder.loadTexts: cshcForwardingLoadTable.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadTable.setDescription('This table contains Layer 3 forwarding load information for each switching engine capable of providing this information.') cshc_forwarding_load_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcForwardingLoadEntry.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadEntry.setDescription('Each row contains management information of Layer 3 forwarding load on a switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_forwarding_load_pkt_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 1), counter_based_gauge64()).setUnits('pps').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcForwardingLoadPktRate.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktRate.setDescription('This object indicates the forwarding rate of Layer 3 packets.') cshc_forwarding_load_pkt_peak_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 2), counter_based_gauge64()).setUnits('pps').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakRate.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakRate.setDescription('This object indicates the peak forwarding rate of Layer 3 packets.') cshc_forwarding_load_pkt_peak_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 4, 1, 3), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakTime.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadPktPeakTime.setDescription('This object describes the time when the peak forwarding rate of Layer 3 packets denoted by cshcForwardingLoadPktPeakRate occurs. This object will contain 0-1-1,00:00:00.0 if the peak time information is not available.') cshc_adjacency_resource_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5)) if mibBuilder.loadTexts: cshcAdjacencyResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageTable.setDescription('This table contains adjacency capacity per resource type and its usage for each entity capable of providing this information.') cshc_adjacency_resource_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceIndex')) if mibBuilder.loadTexts: cshcAdjacencyResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageEntry.setDescription('Each row contains the management information for a particular adjacency resource and switch engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_adjacency_resource_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 1), unsigned32()) if mibBuilder.loadTexts: cshcAdjacencyResourceIndex.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceIndex.setDescription('This object indicates a unique value that identifies an adjacency resource.') cshc_adjacency_resource_descr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 2), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcAdjacencyResourceDescr.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceDescr.setDescription('This object indicates a description of the adjacency resource.') cshc_adjacency_resource_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcAdjacencyResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsed.setDescription('This object indicates the number of adjacency entries that are currently in use.') cshc_adjacency_resource_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 5, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcAdjacencyResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceTotal.setDescription('This object indicates the total number of adjacency entries available.') cshc_met_resource_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6)) if mibBuilder.loadTexts: cshcMetResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageTable.setDescription('This table contains information regarding Multicast Expansion Table (MET) resource usage and utilization for a switching engine capable of providing this information.') cshc_met_resource_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceIndex')) if mibBuilder.loadTexts: cshcMetResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageEntry.setDescription('Each row contains information of the usage and utilization for a particular MET resource and switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_met_resource_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 1), unsigned32()) if mibBuilder.loadTexts: cshcMetResourceIndex.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceIndex.setDescription('An arbitrary positive integer value that uniquely identifies a Met resource.') cshc_met_resource_descr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 2), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMetResourceDescr.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceDescr.setDescription('This object indicates a description of the MET resource.') cshc_met_resource_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMetResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsed.setDescription('This object indicates the number of MET entries used by this MET resource.') cshc_met_resource_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMetResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceTotal.setDescription('This object indicates the total number of MET entries available for this MET resource.') cshc_met_resource_mcast_grp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 1, 2, 6, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcMetResourceMcastGrp.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceMcastGrp.setDescription('This object indicates the number of the multicast group for this MET resource. A value of -1 indicates that this object is not applicable on this MET feature.') cshc_module_interface_drops_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1)) if mibBuilder.loadTexts: cshcModuleInterfaceDropsTable.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsTable.setDescription('This table contains interface drops information on each module capable of providing this information.') cshc_module_interface_drops_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcModuleInterfaceDropsEntry.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsEntry.setDescription('Each row contains management information for dropped traffic on a specific module, identified by the entPhysicalIndex in ENTITY-MIB, and capable of providing this information.') cshc_mod_tx_total_dropped_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModTxTotalDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcModTxTotalDroppedPackets.setDescription('This object indicates the total dropped outbound packets on all physical interfaces of this module.') cshc_mod_rx_total_dropped_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModRxTotalDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcModRxTotalDroppedPackets.setDescription('This object indicates the total dropped inbound packets on all physical interfaces of this module.') cshc_mod_tx_top_drop_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModTxTopDropPort.setStatus('current') if mibBuilder.loadTexts: cshcModTxTopDropPort.setDescription('This object indicates the ifIndex value of the interface that has the largest number of total dropped outbound packets among all the physical interfaces on this module. If there were no dropped outbound packets on any physical interfaces of this module, this object has the value 0. If there are multiple physical interfaces of this module having the same largest number of total dropped outbound packets, the ifIndex of the first such interfaces will be assigned to this object.') cshc_mod_rx_top_drop_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 4), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModRxTopDropPort.setStatus('current') if mibBuilder.loadTexts: cshcModRxTopDropPort.setDescription('This object indicates the ifIndex value of the interface that has the largest number of total dropped inbound packets among all the physical interfaces of this module. If there were no dropped inbound packets on any physical interfaces of this module, this object has the value 0. If there are multiple physical interfaces of this module having the same largest number of total dropped inbound packets, the ifIndex of the first such interfaces will be assigned to this object.') cshc_mod_tx_top_drop_if_index_list = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 5), cisco_interface_index_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModTxTopDropIfIndexList.setStatus('current') if mibBuilder.loadTexts: cshcModTxTopDropIfIndexList.setDescription('This object indicates the ifIndex values of the list of interfaces that have the largest number of total dropped outbound packets among all the physical interfaces of this module.') cshc_mod_rx_top_drop_if_index_list = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 1, 1, 6), cisco_interface_index_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcModRxTopDropIfIndexList.setStatus('current') if mibBuilder.loadTexts: cshcModRxTopDropIfIndexList.setDescription('This object indicates the ifIndex values of the list of interfaces that have the largest number of total dropped inbound packets among all the physical interfaces of this module.') cshc_interface_buffer_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2)) if mibBuilder.loadTexts: cshcInterfaceBufferTable.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferTable.setDescription('This table contains buffer capacity information for each physical interface capable of providing this information.') cshc_interface_buffer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cshcInterfaceBufferEntry.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferEntry.setDescription('Each row contains buffer capacity information for a specific physical interface capable of providing this information.') cshc_interface_transmit_buffer_size = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1, 1), unsigned32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcInterfaceTransmitBufferSize.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceTransmitBufferSize.setDescription('The aggregate buffer size of all the transmit queues on this interface.') cshc_interface_receive_buffer_size = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 2, 1, 2), unsigned32()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcInterfaceReceiveBufferSize.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceReceiveBufferSize.setDescription('The aggregate buffer size of all the receive queues on this interface.') cshc_internal_channel_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3)) if mibBuilder.loadTexts: cshcInternalChannelTable.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelTable.setDescription('This table contains information for each internal channel interface on each physical entity, such as a module, capable of providing this information.') cshc_internal_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlType')) if mibBuilder.loadTexts: cshcInternalChannelEntry.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelEntry.setDescription('Each row contains management information for an internal channel interface of a specific type on a specific physical entity, such as a module, identified by the entPhysicalIndex in ENTITY-MIB, and capable of providing this information.') cshc_intl_chnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 1), cshc_internal_channel_type()) if mibBuilder.loadTexts: cshcIntlChnlType.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlType.setDescription('The type of this internal channel.') cshc_intl_chnl_rx_packet_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 2), counter_based_gauge64()).setUnits('packets per second').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlRxPacketRate.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxPacketRate.setDescription('Five minute exponentially-decayed moving average of inbound packet rate for this channel.') cshc_intl_chnl_rx_total_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlRxTotalPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxTotalPackets.setDescription('The total number of the inbound packets accounted for this channel.') cshc_intl_chnl_rx_dropped_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlRxDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlRxDroppedPackets.setDescription('The number of dropped inbound packets for this channel.') cshc_intl_chnl_tx_packet_rate = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 5), counter_based_gauge64()).setUnits('packets per second').setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlTxPacketRate.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxPacketRate.setDescription('Five minute exponentially-decayed moving average of outbound packet rate for this channel.') cshc_intl_chnl_tx_total_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlTxTotalPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxTotalPackets.setDescription('The total number of the outbound packets accounted for this channel.') cshc_intl_chnl_tx_dropped_packets = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 2, 3, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIntlChnlTxDroppedPackets.setStatus('current') if mibBuilder.loadTexts: cshcIntlChnlTxDroppedPackets.setDescription('The number of dropped outbound packets for this channel.') cshc_cpu_rate_limiter_resources_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1)) if mibBuilder.loadTexts: cshcCPURateLimiterResourcesTable.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesTable.setDescription('This table contains information regarding CPU rate limiters resources.') cshc_cpu_rate_limiter_resources_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterNetworkLayer')) if mibBuilder.loadTexts: cshcCPURateLimiterResourcesEntry.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesEntry.setDescription('Each row contains management information of CPU rate limiter resources for a managed network layer.') cshc_cpu_rate_limiter_network_layer = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('layer2', 1), ('layer3', 2), ('layer2Input', 3), ('layer2Output', 4)))) if mibBuilder.loadTexts: cshcCPURateLimiterNetworkLayer.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterNetworkLayer.setDescription("This object indicates the network layer for which the CPU rate limiters are applied. 'layer2' - Layer 2. 'layer3' - Layer 3. 'layer2Input' - Ingress Layer 2. Applicable for devices which support CPU rate limiters on the Ingress Layer 2 traffic. 'layer2Output' - Egress Layer 2. Applicable for devices which support CPU rate limiters on the Egress Layer 2 traffic.") cshc_cpu_rate_limiter_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcCPURateLimiterTotal.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterTotal.setDescription('This object indicates the total number of CPU rate limiters avaiable.') cshc_cpu_rate_limiter_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcCPURateLimiterUsed.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterUsed.setDescription('This object indicates the number of CPU rate limiters that is currently in use.') cshc_cpu_rate_limiter_reserved = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 3, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcCPURateLimiterReserved.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterReserved.setDescription('This object indicates the number of CPU rate limiters which is reserved by the switching device.') cshc_icam_utilization_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1)) if mibBuilder.loadTexts: cshcIcamUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilizationTable.setDescription('This table contains information regarding ICAM (Internal Content Addressable Memory) Resource usage and utilization for a switching engine capable of providing this information.') cshc_icam_utilization_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: cshcIcamUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilizationEntry.setDescription('Each row contains management information of ICAM usage and utilization for a switching engine, as specified as specified by entPhysicalIndex in ENTITY-MIB.') cshc_icam_created = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIcamCreated.setStatus('current') if mibBuilder.loadTexts: cshcIcamCreated.setDescription('This object indicates the total number of ICAM entries created.') cshc_icam_failed = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIcamFailed.setStatus('current') if mibBuilder.loadTexts: cshcIcamFailed.setDescription('This object indicates the number of ICAM entries which failed to be created.') cshc_icam_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 4, 1, 1, 3), percent()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcIcamUtilization.setStatus('current') if mibBuilder.loadTexts: cshcIcamUtilization.setDescription('This object indicates the ICAM utlization in percentage in this switching engine.') cshc_netflow_flow_mask_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1)) if mibBuilder.loadTexts: cshcNetflowFlowMaskTable.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskTable.setDescription('This table contains information regarding Netflow flow mask features supported.') cshc_netflow_flow_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1)).setIndexNames((0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskAddrType'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskIndex')) if mibBuilder.loadTexts: cshcNetflowFlowMaskEntry.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskEntry.setDescription('Each row contains supported feature information of a Netflow flow mask supported by the device.') cshc_netflow_flow_mask_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 1), inet_address_type()) if mibBuilder.loadTexts: cshcNetflowFlowMaskAddrType.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskAddrType.setDescription('This object indicates Internet address type for this flow mask.') cshc_netflow_flow_mask_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 2), unsigned32()) if mibBuilder.loadTexts: cshcNetflowFlowMaskIndex.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskIndex.setDescription('This object indicates the unique flow mask number for a specific Internet address type.') cshc_netflow_flow_mask_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37))).clone(namedValues=named_values(('null', 1), ('srcOnly', 2), ('destOnly', 3), ('srcDest', 4), ('interfaceSrcDest', 5), ('fullFlow', 6), ('interfaceFullFlow', 7), ('interfaceFullFlowOrFullFlow', 8), ('atleastInterfaceSrcDest', 9), ('atleastFullFlow', 10), ('atleastInterfaceFullFlow', 11), ('atleastSrc', 12), ('atleastDst', 13), ('atleastSrcDst', 14), ('shortest', 15), ('lessThanFullFlow', 16), ('exceptFullFlow', 17), ('exceptInterfaceFullFlow', 18), ('interfaceDest', 19), ('atleastInterfaceDest', 20), ('interfaceSrc', 21), ('atleastInterfaceSrc', 22), ('srcOnlyCR', 23), ('dstOnlyCR', 24), ('fullFlowCR', 25), ('interfaceFullFlowCR', 26), ('max', 27), ('conflict', 28), ('err', 29), ('unused', 30), ('fullFlow1', 31), ('fullFlow2', 32), ('fullFlow3', 33), ('vlanFullFlow1', 34), ('vlanFullFlow2', 35), ('vlanFullFlow3', 36), ('reserved', 37)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowFlowMaskType.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskType.setDescription('This object indicates the type of flow mask.') cshc_netflow_flow_mask_feature = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 5, 1, 1, 4), bits().clone(namedValues=named_values(('null', 0), ('ipAcgIngress', 1), ('ipAcgEgress', 2), ('natIngress', 3), ('natEngress', 4), ('natInside', 5), ('pbr', 6), ('cryptoIngress', 7), ('cryptoEgress', 8), ('qos', 9), ('idsIngress', 10), ('tcpIntrcptEgress', 11), ('guardian', 12), ('ipv6AcgIngress', 13), ('ipv6AcgEgress', 14), ('mcastAcgIngress', 15), ('mcastAcgEgress', 16), ('mcastStub', 17), ('mcastUrd', 18), ('ipDsIngress', 19), ('ipDsEgress', 20), ('ipVaclIngress', 21), ('ipVaclEgress', 22), ('macVaclIngress', 23), ('macVaclEgress', 24), ('inspIngress', 25), ('inspEgress', 26), ('authProxy', 27), ('rpf', 28), ('wccpIngress', 29), ('wccpEgress', 30), ('inspDummyIngress', 31), ('inspDummyEgress', 32), ('nbarIngress', 33), ('nbarEgress', 34), ('ipv6Rpf', 35), ('ipv6GlobalDefault', 36), ('dai', 37), ('ipPaclIngress', 38), ('macPaclIngress', 39), ('mplsIcmpBridge', 40), ('ipSlb', 41), ('ipv4Default', 42), ('ipv6Default', 43), ('mplsDefault', 44), ('erSpanTermination', 45), ('ipv6Mcast', 46), ('ipDsL3Ingress', 47), ('ipDsL3Egress', 48), ('cryptoRedirectIngress', 49), ('otherDefault', 50), ('ipRecir', 51), ('iPAdmissionL3Eou', 52), ('iPAdmissionL2Eou', 53), ('iPAdmissionL2EouArp', 54), ('ipAdmissionL2Http', 55), ('ipAdmissionL2HttpArp', 56), ('ipv4L3IntfNde', 57), ('ipv4L2IntfNde', 58), ('ipSguardIngress', 59), ('pvtHostsIngress', 60), ('vrfNatIngress', 61), ('tcpAdjustMssIngress', 62), ('tcpAdjustMssEgress', 63), ('eomIw', 64), ('eomIw2', 65), ('ipv4VrfNdeEgress', 66), ('l1Egress', 67), ('l1Ingress', 68), ('l1GlobalEgress', 69), ('l1GlobalIngress', 70), ('ipDot1xAcl', 71), ('ipDot1xAclArp', 72), ('dot1ad', 73), ('ipSpanPcap', 74), ('ipv6CryptoRedirectIngress', 75), ('svcAcclrtIngress', 76), ('ipv6SvcAcclrtIngress', 77), ('nfAggregation', 78), ('nfSampling', 79), ('ipv6Guardian', 80), ('ipv6Qos', 81), ('none', 82)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowFlowMaskFeature.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskFeature.setDescription('This object indicates the features supported by this flow mask.') cshc_netflow_resource_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1)) if mibBuilder.loadTexts: cshcNetflowResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageTable.setDescription('This table contains information regarding Netflow resource usage and utilization for a switching engine capable of providing this information.') cshc_netflow_resource_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageIndex')) if mibBuilder.loadTexts: cshcNetflowResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageEntry.setDescription('Each row contains information of the usage and utilization for a particular Netflow resource and switching engine, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_netflow_resource_usage_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: cshcNetflowResourceUsageIndex.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageIndex.setDescription('An arbitrary positive integer value that uniquely identifies a Netflow resource.') cshc_netflow_resource_usage_descr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 2), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowResourceUsageDescr.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageDescr.setDescription('This object indicates a description of the Netflow resource.') cshc_netflow_resource_usage_util = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 3), percent()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowResourceUsageUtil.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageUtil.setDescription('This object indicates the Netflow resource usage in percentage value.') cshc_netflow_resource_usage_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowResourceUsageUsed.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageUsed.setDescription('This object indicates the number of Netflow entries used by this Netflow resource.') cshc_netflow_resource_usage_free = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowResourceUsageFree.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageFree.setDescription('This object indicates the number of Netflow entries available for this Netflow resource.') cshc_netflow_resource_usage_fail = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 2147483647)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcNetflowResourceUsageFail.setStatus('current') if mibBuilder.loadTexts: cshcNetflowResourceUsageFail.setDescription('This object indicates the number of Netflow entries which were failed to be created for this Netflow resource. A value of -1 indicates that this resource does not maintain this counter.') cshc_qos_resource_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1)) if mibBuilder.loadTexts: cshcQosResourceUsageTable.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageTable.setDescription('This table contains QoS capacity per resource type and its usage for each entity capable of providing this information.') cshc_qos_resource_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex'), (0, 'CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcQosResourceType')) if mibBuilder.loadTexts: cshcQosResourceUsageEntry.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageEntry.setDescription('Each row contains management information for QoS capacity and its usage on an entity, as specified by entPhysicalIndex in ENTITY-MIB.') cshc_qos_resource_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('aggregatePolicers', 1), ('distributedPolicers', 2), ('policerProfiles', 3)))) if mibBuilder.loadTexts: cshcQosResourceType.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceType.setDescription('This object indicates the QoS resource type.') cshc_qos_resource_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcQosResourceUsed.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsed.setDescription('This object indicates the number of QoS entries that are currently in use.') cshc_qos_resource_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 663, 1, 7, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cshcQosResourceTotal.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceTotal.setDescription('This object indicates the total number of QoS entries available.') cisco_switch_hardware_capacity_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1)) cisco_switch_hardware_capacity_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2)) cisco_switch_hardware_capacity_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 1)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModuleInterfaceDropsGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceBufferGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInternalChannelGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskResourceGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_switch_hardware_capacity_mib_compliance = ciscoSwitchHardwareCapacityMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB. This statement is deprecated and superseded by ciscoSwitchHardwareCapacityMIBCompliance1.') cisco_switch_hardware_capacity_mib_compliance1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 2)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModuleInterfaceDropsGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceBufferGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInternalChannelGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskResourceGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageExtGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_switch_hardware_capacity_mib_compliance1 = ciscoSwitchHardwareCapacityMIBCompliance1.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance1.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB. This statement is deprecated and superseded by ciscoSwitchHardwareCapacityMIBCompliance2.') cisco_switch_hardware_capacity_mib_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 3)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModuleInterfaceDropsGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceBufferGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInternalChannelGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskResourceGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcQosResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModTopDropIfIndexListGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceUsageGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_switch_hardware_capacity_mib_compliance2 = ciscoSwitchHardwareCapacityMIBCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance2.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB') cisco_switch_hardware_capacity_mib_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 1, 4)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModuleInterfaceDropsGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceBufferGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInternalChannelGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamResourcesGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskResourceGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcFibTcamUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsageExtGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcQosResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModTopDropIfIndexListGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceUsageGroup'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamWidthTypeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_switch_hardware_capacity_mib_compliance3 = ciscoSwitchHardwareCapacityMIBCompliance3.setStatus('current') if mibBuilder.loadTexts: ciscoSwitchHardwareCapacityMIBCompliance3.setDescription('The compliance statement for CISCO-SWITCH-HARDWARE-CAPACITY-MIB') cshc_mac_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 1)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacCollisions'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_mac_usage_group = cshcMacUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageGroup.setDescription('A collection of objects which provides Layer 2 forwarding hardware capacity information in the device.') cshc_vpn_cam_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 2)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcVpnCamTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_vpn_cam_usage_group = cshcVpnCamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcVpnCamUsageGroup.setDescription('A collection of objects which provides VPN CAM hardware capacity information in the device.') cshc_fib_tcam_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 3)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc72bitsFibTcamUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc72bitsFibTcamTotal'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc144bitsFibTcamUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc144bitsFibTcamTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_fib_tcam_usage_group = cshcFibTcamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageGroup.setDescription('A collection of objects which provides FIB TCAM hardware capacity information in the device.') cshc_protocol_fib_tcam_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 4)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_protocol_fib_tcam_usage_group = cshcProtocolFibTcamUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageGroup.setDescription('A collection of objects which provides FIB TCAM hardware capacity information in conjunction with Layer 3 protocol in the device.') cshc_adjacency_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 5)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_adjacency_usage_group = cshcAdjacencyUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyUsageGroup.setDescription('A collection of objects which provides adjacency hardware capacity information in the device.') cshc_forwarding_load_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 6)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadPktRate'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadPktPeakRate'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcForwardingLoadPktPeakTime')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_forwarding_load_group = cshcForwardingLoadGroup.setStatus('current') if mibBuilder.loadTexts: cshcForwardingLoadGroup.setDescription('A collection of objects which provides forwarding load information in the device.') cshc_module_interface_drops_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 7)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModTxTotalDroppedPackets'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModRxTotalDroppedPackets'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModTxTopDropPort'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModRxTopDropPort')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_module_interface_drops_group = cshcModuleInterfaceDropsGroup.setStatus('current') if mibBuilder.loadTexts: cshcModuleInterfaceDropsGroup.setDescription('A collection of objects which provides linecard drop traffic information on the device.') cshc_interface_buffer_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 8)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceTransmitBufferSize'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcInterfaceReceiveBufferSize')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_interface_buffer_group = cshcInterfaceBufferGroup.setStatus('current') if mibBuilder.loadTexts: cshcInterfaceBufferGroup.setDescription('A collection of objects which provides interface buffer information on the device.') cshc_internal_channel_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 9)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlRxPacketRate'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlRxTotalPackets'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlRxDroppedPackets'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlTxPacketRate'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlTxTotalPackets'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIntlChnlTxDroppedPackets')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_internal_channel_group = cshcInternalChannelGroup.setStatus('current') if mibBuilder.loadTexts: cshcInternalChannelGroup.setDescription('A collection of objects which provides internal channel information on the device.') cshc_cpu_rate_limiter_resources_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 10)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterTotal'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcCPURateLimiterReserved')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_cpu_rate_limiter_resources_group = cshcCPURateLimiterResourcesGroup.setStatus('current') if mibBuilder.loadTexts: cshcCPURateLimiterResourcesGroup.setDescription('A collection of objects which provides CPU rate limiter resource in the device.') cshc_icam_resources_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 11)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamCreated'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamFailed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcIcamUtilization')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_icam_resources_group = cshcIcamResourcesGroup.setStatus('current') if mibBuilder.loadTexts: cshcIcamResourcesGroup.setDescription('A collection of objects which provides ICAM resources information in the device.') cshc_netflow_flow_mask_resource_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 12)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskType'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowFlowMaskFeature')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_netflow_flow_mask_resource_group = cshcNetflowFlowMaskResourceGroup.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowMaskResourceGroup.setDescription('A collection of objects which provides Netflow FlowMask information in the device.') cshc_fib_tcam_usage_ext_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 13)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc288bitsFibTcamUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshc288bitsFibTcamTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_fib_tcam_usage_ext_group = cshcFibTcamUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcFibTcamUsageExtGroup.setDescription('A collection of objects which provides additional FIB TCAM hardware capacity information in the device.') cshc_netflow_flow_resource_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 14)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageDescr'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageUtil'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageFree'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcNetflowResourceUsageFail')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_netflow_flow_resource_usage_group = cshcNetflowFlowResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcNetflowFlowResourceUsageGroup.setDescription('A collection of objects which provides Netflow resource usage information in the device.') cshc_mac_usage_ext_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 15)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacMcast'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacUcast'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacLines'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMacLinesFull')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_mac_usage_ext_group = cshcMacUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcMacUsageExtGroup.setDescription('A collection of objects which provides additional Layer 2 forwarding hardware capacity information in the device.') cshc_protocol_fib_tcam_usage_ext_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 16)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamLogicalUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamLogicalTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_protocol_fib_tcam_usage_ext_group = cshcProtocolFibTcamUsageExtGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamUsageExtGroup.setDescription('A collection of objects which provides additional FIB TCAM hardware capacity information in conjunction with Layer 3 protocol in the device.') cshc_adjacency_resource_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 17)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceDescr'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcAdjacencyResourceTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_adjacency_resource_usage_group = cshcAdjacencyResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcAdjacencyResourceUsageGroup.setDescription('A collection of objects which provides adjacency hardware capacity information per resource in the device.') cshc_qos_resource_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 18)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcQosResourceUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcQosResourceTotal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_qos_resource_usage_group = cshcQosResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcQosResourceUsageGroup.setDescription('A collection of objects which provides QoS hardware capacity information per resource in the device.') cshc_mod_top_drop_if_index_list_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 19)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModTxTopDropIfIndexList'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcModRxTopDropIfIndexList')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_mod_top_drop_if_index_list_group = cshcModTopDropIfIndexListGroup.setStatus('current') if mibBuilder.loadTexts: cshcModTopDropIfIndexListGroup.setDescription('A collection of objects which provides information on multiple interfaces with largest number of drop traffic on a module.') cshc_met_resource_usage_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 20)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceDescr'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceUsed'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceTotal'), ('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcMetResourceMcastGrp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_met_resource_usage_group = cshcMetResourceUsageGroup.setStatus('current') if mibBuilder.loadTexts: cshcMetResourceUsageGroup.setDescription('A collection of objects which provides MET hardware capacity information per resource in the device.') cshc_protocol_fib_tcam_width_type_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 663, 2, 2, 21)).setObjects(('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', 'cshcProtocolFibTcamWidthType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cshc_protocol_fib_tcam_width_type_group = cshcProtocolFibTcamWidthTypeGroup.setStatus('current') if mibBuilder.loadTexts: cshcProtocolFibTcamWidthTypeGroup.setDescription('A collection of objects which provides FIB TCAM entry width information in conjunction with Layer 3 protocol in the device.') mibBuilder.exportSymbols('CISCO-SWITCH-HARDWARE-CAPACITY-MIB', cshcAdjacencyTotal=cshcAdjacencyTotal, cshcNetflowResourceUsageFail=cshcNetflowResourceUsageFail, cshcForwardingLoadEntry=cshcForwardingLoadEntry, cshcProtocolFibTcamWidthType=cshcProtocolFibTcamWidthType, cshcInterfaceTransmitBufferSize=cshcInterfaceTransmitBufferSize, cshcIcamCreated=cshcIcamCreated, cshcForwarding=cshcForwarding, cshcNetflowFlowMaskEntry=cshcNetflowFlowMaskEntry, cshcNetflowResourceUsageEntry=cshcNetflowResourceUsageEntry, cshcAdjacencyUsageGroup=cshcAdjacencyUsageGroup, cshcAdjacencyResourceIndex=cshcAdjacencyResourceIndex, cshcInterfaceBufferEntry=cshcInterfaceBufferEntry, cshcCPURateLimiterResourcesGroup=cshcCPURateLimiterResourcesGroup, cshcIcamUtilization=cshcIcamUtilization, cshcForwardingLoadPktRate=cshcForwardingLoadPktRate, cshcNetflowFlowMaskResourceGroup=cshcNetflowFlowMaskResourceGroup, cshcIntlChnlTxTotalPackets=cshcIntlChnlTxTotalPackets, ciscoSwitchHardwareCapacityMIBCompliance3=ciscoSwitchHardwareCapacityMIBCompliance3, cshcCPURateLimiterTotal=cshcCPURateLimiterTotal, cshcNetflowFlowMaskResources=cshcNetflowFlowMaskResources, cshcVpnCamUsed=cshcVpnCamUsed, ciscoSwitchHardwareCapacityMIBObjects=ciscoSwitchHardwareCapacityMIBObjects, cshcMetResourceDescr=cshcMetResourceDescr, cshcQosResourceUsed=cshcQosResourceUsed, ciscoSwitchHardwareCapacityMIBCompliance2=ciscoSwitchHardwareCapacityMIBCompliance2, cshcInterfaceBufferGroup=cshcInterfaceBufferGroup, PYSNMP_MODULE_ID=ciscoSwitchHardwareCapacityMIB, cshcMetResourceMcastGrp=cshcMetResourceMcastGrp, cshc288bitsFibTcamTotal=cshc288bitsFibTcamTotal, cshcModuleInterfaceDropsEntry=cshcModuleInterfaceDropsEntry, cshcInterface=cshcInterface, cshcAdjacencyUsageEntry=cshcAdjacencyUsageEntry, cshcInterfaceBufferTable=cshcInterfaceBufferTable, cshcL3Forwarding=cshcL3Forwarding, cshcNetflowFlowResourceUsageGroup=cshcNetflowFlowResourceUsageGroup, cshcProtocolFibTcamTotal=cshcProtocolFibTcamTotal, cshcProtocolFibTcamUsageTable=cshcProtocolFibTcamUsageTable, cshcModTxTotalDroppedPackets=cshcModTxTotalDroppedPackets, cshcMetResourceIndex=cshcMetResourceIndex, cshcFibTcamUsageGroup=cshcFibTcamUsageGroup, cshcAdjacencyResourceUsageTable=cshcAdjacencyResourceUsageTable, ciscoSwitchHardwareCapacityMIBGroups=ciscoSwitchHardwareCapacityMIBGroups, cshcNetflowFlowMaskAddrType=cshcNetflowFlowMaskAddrType, cshcMacUsageTable=cshcMacUsageTable, cshcInternalChannelEntry=cshcInternalChannelEntry, cshc144bitsFibTcamTotal=cshc144bitsFibTcamTotal, cshc72bitsFibTcamTotal=cshc72bitsFibTcamTotal, cshcModTxTopDropIfIndexList=cshcModTxTopDropIfIndexList, cshcMetResourceUsed=cshcMetResourceUsed, ciscoSwitchHardwareCapacityMIBNotifs=ciscoSwitchHardwareCapacityMIBNotifs, cshcAdjacencyUsageTable=cshcAdjacencyUsageTable, cshcIntlChnlRxPacketRate=cshcIntlChnlRxPacketRate, cshcAdjacencyUsed=cshcAdjacencyUsed, cshcAdjacencyResourceUsageEntry=cshcAdjacencyResourceUsageEntry, cshcVpnCamUsageEntry=cshcVpnCamUsageEntry, cshcForwardingLoadTable=cshcForwardingLoadTable, cshcQosResourceUsage=cshcQosResourceUsage, cshcProtocolFibTcamUsageEntry=cshcProtocolFibTcamUsageEntry, cshcForwardingLoadPktPeakRate=cshcForwardingLoadPktPeakRate, cshcCPURateLimiterResourcesTable=cshcCPURateLimiterResourcesTable, cshcCPURateLimiterNetworkLayer=cshcCPURateLimiterNetworkLayer, cshcModTopDropIfIndexListGroup=cshcModTopDropIfIndexListGroup, cshcVpnCamTotal=cshcVpnCamTotal, cshcMetResourceUsageEntry=cshcMetResourceUsageEntry, cshcAdjacencyResourceUsageGroup=cshcAdjacencyResourceUsageGroup, cshcCPURateLimiterResourcesEntry=cshcCPURateLimiterResourcesEntry, CshcInternalChannelType=CshcInternalChannelType, cshcAdjacencyResourceUsed=cshcAdjacencyResourceUsed, cshcForwardingLoadGroup=cshcForwardingLoadGroup, cshcIntlChnlTxPacketRate=cshcIntlChnlTxPacketRate, cshc72bitsFibTcamUsed=cshc72bitsFibTcamUsed, cshcModTxTopDropPort=cshcModTxTopDropPort, cshcModRxTopDropPort=cshcModRxTopDropPort, cshcForwardingLoadPktPeakTime=cshcForwardingLoadPktPeakTime, cshcMacUsageEntry=cshcMacUsageEntry, ciscoSwitchHardwareCapacityMIBConformance=ciscoSwitchHardwareCapacityMIBConformance, cshcQosResourceTotal=cshcQosResourceTotal, cshcNetflowResourceUsageUtil=cshcNetflowResourceUsageUtil, cshcFibTcamUsageExtGroup=cshcFibTcamUsageExtGroup, cshcIcamUtilizationEntry=cshcIcamUtilizationEntry, cshcVpnCamUsageTable=cshcVpnCamUsageTable, cshcMacUcast=cshcMacUcast, cshcMacUsageGroup=cshcMacUsageGroup, cshcIntlChnlType=cshcIntlChnlType, cshcIcamResources=cshcIcamResources, cshcMacLines=cshcMacLines, cshcMacCollisions=cshcMacCollisions, cshc288bitsFibTcamUsed=cshc288bitsFibTcamUsed, cshcIntlChnlRxDroppedPackets=cshcIntlChnlRxDroppedPackets, cshcProtocolFibTcamUsageGroup=cshcProtocolFibTcamUsageGroup, cshcAdjacencyResourceDescr=cshcAdjacencyResourceDescr, cshcModRxTopDropIfIndexList=cshcModRxTopDropIfIndexList, cshcNetflowFlowMaskTable=cshcNetflowFlowMaskTable, cshcNetflowResourceUsageUsed=cshcNetflowResourceUsageUsed, cshcNetflowFlowMaskIndex=cshcNetflowFlowMaskIndex, cshcProtocolFibTcamUsed=cshcProtocolFibTcamUsed, cshcProtocolFibTcamWidthTypeGroup=cshcProtocolFibTcamWidthTypeGroup, cshcMacUsageExtGroup=cshcMacUsageExtGroup, cshcInterfaceReceiveBufferSize=cshcInterfaceReceiveBufferSize, cshcNetflowResourceUsageIndex=cshcNetflowResourceUsageIndex, cshcQosResourceUsageTable=cshcQosResourceUsageTable, cshcQosResourceUsageEntry=cshcQosResourceUsageEntry, cshcIntlChnlRxTotalPackets=cshcIntlChnlRxTotalPackets, ciscoSwitchHardwareCapacityMIBCompliance1=ciscoSwitchHardwareCapacityMIBCompliance1, ciscoSwitchHardwareCapacityMIBCompliance=ciscoSwitchHardwareCapacityMIBCompliance, cshcInternalChannelGroup=cshcInternalChannelGroup, cshcModuleInterfaceDropsTable=cshcModuleInterfaceDropsTable, cshcVpnCamUsageGroup=cshcVpnCamUsageGroup, cshcFibTcamUsageTable=cshcFibTcamUsageTable, cshcL2Forwarding=cshcL2Forwarding, cshcFibTcamUsageEntry=cshcFibTcamUsageEntry, cshcMacMcast=cshcMacMcast, cshcIcamResourcesGroup=cshcIcamResourcesGroup, cshcModuleInterfaceDropsGroup=cshcModuleInterfaceDropsGroup, cshcCPURateLimiterUsed=cshcCPURateLimiterUsed, cshcProtocolFibTcamProtocol=cshcProtocolFibTcamProtocol, cshcMetResourceUsageGroup=cshcMetResourceUsageGroup, cshcIcamFailed=cshcIcamFailed, ciscoSwitchHardwareCapacityMIB=ciscoSwitchHardwareCapacityMIB, cshcNetflowResourceUsage=cshcNetflowResourceUsage, cshcMacTotal=cshcMacTotal, cshcCPURateLimiterReserved=cshcCPURateLimiterReserved, cshcQosResourceUsageGroup=cshcQosResourceUsageGroup, cshcMetResourceTotal=cshcMetResourceTotal, cshcMacUsed=cshcMacUsed, cshcInternalChannelTable=cshcInternalChannelTable, cshcNetflowResourceUsageTable=cshcNetflowResourceUsageTable, cshcQosResourceType=cshcQosResourceType, ciscoSwitchHardwareCapacityMIBCompliances=ciscoSwitchHardwareCapacityMIBCompliances, cshcNetflowResourceUsageFree=cshcNetflowResourceUsageFree, cshc144bitsFibTcamUsed=cshc144bitsFibTcamUsed, cshcNetflowResourceUsageDescr=cshcNetflowResourceUsageDescr, cshcModRxTotalDroppedPackets=cshcModRxTotalDroppedPackets, cshcAdjacencyResourceTotal=cshcAdjacencyResourceTotal, cshcProtocolFibTcamLogicalUsed=cshcProtocolFibTcamLogicalUsed, cshcIntlChnlTxDroppedPackets=cshcIntlChnlTxDroppedPackets, cshcIcamUtilizationTable=cshcIcamUtilizationTable, cshcCPURateLimiterResources=cshcCPURateLimiterResources, cshcNetflowFlowMaskFeature=cshcNetflowFlowMaskFeature, cshcProtocolFibTcamUsageExtGroup=cshcProtocolFibTcamUsageExtGroup, cshcMacLinesFull=cshcMacLinesFull, cshcProtocolFibTcamLogicalTotal=cshcProtocolFibTcamLogicalTotal, cshcMetResourceUsageTable=cshcMetResourceUsageTable, cshcNetflowFlowMaskType=cshcNetflowFlowMaskType)
class Solution(object): def constructRectangle(self, area): """ :type area: int :rtype: List[int] """ L = int(math.sqrt(area)) while True: W = area // L if W * L == area: return [W, L] L -= 1
class Solution(object): def construct_rectangle(self, area): """ :type area: int :rtype: List[int] """ l = int(math.sqrt(area)) while True: w = area // L if W * L == area: return [W, L] l -= 1
#/usr/bin/env python3 GET_PHOTOS_PATTERN = "https://www.flickr.com/services/rest?method=flickr.people.getPhotos&api_key={}&user_id={}&format=json&page={}&per_page={}" FIND_USER_BY_NAME_METHOD = "https://www.flickr.com/services/rest?method=flickr.people.findbyusername&api_key={}&username={}&format={}" GET_PHOTO_COMMENTS = "https://www.flickr.com/services/rest?method=flickr.photos.comments.getList&api_key={}&photo_id={}&format=json" GET_PHOTO_SIZE_PATTERN = "https://www.flickr.com/services/rest?method=flickr.photos.getSizes&api_key={}&photo_id={}&format=json" GET_PHOTO_DESCRIPTION = "https://www.flickr.com/services/rest?method=flickr.photos.getInfo&api_key={}&photo_id={}&format=json" PHOTO_DATA_KEYS = ['id', 'owner', 'secret', 'server', 'farm', 'title', 'ispublic', 'isfriend', 'isfamily'] USER_DATA_PATTERN = r'{"user":{"id":".*","nsid":".*","username":{"_content":".*"}},"stat":"ok"}' PHOTO_SIZE_URL_PATTERN = r"https://live.staticflickr.com/\d*/.*.jpg" ALPHANUMERIC = "0123456789abcdefghijklmnopqrstuvwxyz" CAPITAL_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ALPHABET = "abcdefghijklmnopqrstuvwxyz" USER_KEYS = ['id', 'nsid', 'username'] LOCALE_FORMAT = r"^[a-z]*-[A-Z]{2}" USER_NOT_FOUND = "User not found" ISO3166_1_FORMAT = r"[A-Z]{2}" ALPHABET_REGEX = r"[a-zA-Z]*" ISO639_FORMAT = r"^[a-z]*" DESCRITION = "description" USERNAME_KEY = "_content" USERNAME = "username" COMMENTS = "comments" CONTENT = "_content" COMMENT = "comment" MESSAGE = 'message' PHOTOS = "photos" HEIGHT = "height" SOURCE = "source" TITLE = "title" PAGES = "pages" PHOTO = "photo" LABEL = "label" TOTAL = "total" WIDTH = "width" SIZES = "sizes" JSON = "json" NSID = "nsid" SIZE = "size" USER = "user" STAT = "stat" FAIL = "fail" GET = "GET" ID = "id" CONSUMER_KEY = "consumer_key" CONSUMER_SECRET = "consumer_secret" FLICKR_KEYS = "flickr_keys" LOCALE = "locale"
get_photos_pattern = 'https://www.flickr.com/services/rest?method=flickr.people.getPhotos&api_key={}&user_id={}&format=json&page={}&per_page={}' find_user_by_name_method = 'https://www.flickr.com/services/rest?method=flickr.people.findbyusername&api_key={}&username={}&format={}' get_photo_comments = 'https://www.flickr.com/services/rest?method=flickr.photos.comments.getList&api_key={}&photo_id={}&format=json' get_photo_size_pattern = 'https://www.flickr.com/services/rest?method=flickr.photos.getSizes&api_key={}&photo_id={}&format=json' get_photo_description = 'https://www.flickr.com/services/rest?method=flickr.photos.getInfo&api_key={}&photo_id={}&format=json' photo_data_keys = ['id', 'owner', 'secret', 'server', 'farm', 'title', 'ispublic', 'isfriend', 'isfamily'] user_data_pattern = '{"user":{"id":".*","nsid":".*","username":{"_content":".*"}},"stat":"ok"}' photo_size_url_pattern = 'https://live.staticflickr.com/\\d*/.*.jpg' alphanumeric = '0123456789abcdefghijklmnopqrstuvwxyz' capital_alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' alphabet = 'abcdefghijklmnopqrstuvwxyz' user_keys = ['id', 'nsid', 'username'] locale_format = '^[a-z]*-[A-Z]{2}' user_not_found = 'User not found' iso3166_1_format = '[A-Z]{2}' alphabet_regex = '[a-zA-Z]*' iso639_format = '^[a-z]*' descrition = 'description' username_key = '_content' username = 'username' comments = 'comments' content = '_content' comment = 'comment' message = 'message' photos = 'photos' height = 'height' source = 'source' title = 'title' pages = 'pages' photo = 'photo' label = 'label' total = 'total' width = 'width' sizes = 'sizes' json = 'json' nsid = 'nsid' size = 'size' user = 'user' stat = 'stat' fail = 'fail' get = 'GET' id = 'id' consumer_key = 'consumer_key' consumer_secret = 'consumer_secret' flickr_keys = 'flickr_keys' locale = 'locale'
class Font(object): # no doc @staticmethod def AvailableFontFaceNames(): """ AvailableFontFaceNames() -> Array[str] """ pass Bold = property(lambda self: object(), lambda self, v: None, lambda self: None) """Get: Bold(self: Font) -> bool """ FaceName = property(lambda self: object(), lambda self, v: None, lambda self: None) """Get: FaceName(self: Font) -> str """ Italic = property(lambda self: object(), lambda self, v: None, lambda self: None) """Get: Italic(self: Font) -> bool """
class Font(object): @staticmethod def available_font_face_names(): """ AvailableFontFaceNames() -> Array[str] """ pass bold = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: Bold(self: Font) -> bool\n\n\n\n' face_name = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: FaceName(self: Font) -> str\n\n\n\n' italic = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: Italic(self: Font) -> bool\n\n\n\n'
def sayhi(): print("hello") def chat(): print("This is a calculator") def exit(): print("Thank you") def mul(n1,n2): return n1*n2 def add(n1,n2): return n1+n2 def sub(n1,n2): return n1-n2 def div(n1,n2): return n1/n2 sayhi() chat() i = int(input("Enter a number:- ")) j = int(input("Enter another number:- ")) print("Addition :-") print(add(i,j)) print("Substraction :-") print(sub(i,j)) print("Multiplication :-") print(mul(i,j)) print("Division :-") print(div(i,j)) exit()
def sayhi(): print('hello') def chat(): print('This is a calculator') def exit(): print('Thank you') def mul(n1, n2): return n1 * n2 def add(n1, n2): return n1 + n2 def sub(n1, n2): return n1 - n2 def div(n1, n2): return n1 / n2 sayhi() chat() i = int(input('Enter a number:- ')) j = int(input('Enter another number:- ')) print('Addition :-') print(add(i, j)) print('Substraction :-') print(sub(i, j)) print('Multiplication :-') print(mul(i, j)) print('Division :-') print(div(i, j)) exit()