content
stringlengths
7
1.05M
test = { 'name': 'q3_2_2', 'points': 1, 'suites': [ { 'cases': [ { 'code': '>>> from collections import Counter;\n' ">>> g = train_movies.column('Genre');\n" ">>> r = np.where(test_movies['Title'] == 'tron')[0][0];\n" '>>> t = test_my_features.row(r);\n' '>>> tron_expected_genre = Counter(np.take(g, np.argsort(fast_distances(t, train_my_features))[:13])).most_common(1)[0][0];\n' '>>> tron_genre == tron_expected_genre\n' 'True', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
# -*- coding: utf-8 -*- """ FlowrouteMessagingLib.APIException Copyright Flowroute, Inc. 2016 """ class APIException(Exception): """ Class that handles HTTP Exceptions when fetching API Endpoints. Attributes: reason (string): The reason (or error message) for the Exception to be raised. response_code (int): The HTTP Response Code from the API Request that caused this exception to be raised. response_body (string): The body that was retrieved during the API request. """ def __init__(self, reason, response_code, response_body): Exception.__init__(self, reason) self.response_code = response_code self.response_body = response_body
#Given 2 ints, a and b, return True if one if them is 10 or if their sum is 10. #makes10(9, 10) → True #makes10(9, 9) → False #makes10(1, 9) → True def makes10(a,b): if a+b ==10 or a == 10 or b == 10: return True else: return False
menu='MENU DE INTERAÇÃO' print('=-'*30) print(menu.center(55)) print('=-'*30) print('[1] Cadastro de Produtos') print('[2] Cadastro de Usuário') print('[3] Cadastro de Mercados') print('[4] Comparar preços de produtos') print('[5] Comparar preços por cesta básica') print('=-'*30) RespostaUsuario=int(input('Resposta: ')) print('=-'*30) if RespostaUsuario == 1: print("Opção 1 escolhida. Cadastre os produtos") produtos=[] preços=[] while True: produtos.append(input("Nome do produto: ")) preços.append(float(input("Preço do produto: "))) resposta=input("Deseja continuar? [S/N]: ").upper() print('=-' * 30) if resposta == 'N': break print('Produtos Cadastrados') for c in range(len(produtos)): print(f'{produtos[c].upper()} : R${preços[c]}') elif RespostaUsuario == 2: print('Opção 2 escolhida. Cadastre o Usuário') usuarios=[] while True: usuarios.append(input('Nome do usuário: ')) resposta = input("Deseja continuar? [S/N]: ").upper() print('=-' * 30) if resposta == 'N': break print("Usuários Cadastrados") for c in usuarios: print(c) elif RespostaUsuario == 3: print("Opção 3 escolhida. Cadastre o Mercado") mercado=[] while True: mercado.append(input("Nome do Mercado: ")) resposta = input("Deseja continuar? [S/N]: ").upper() print('=-' * 30) if resposta == 'N': break print("Mercados Cadastrados") for c in mercado: print(c) elif RespostaUsuario == 4: print('Opção 4 escolhida. Compare os preços') m1=input("Nome do mercado: ") p1=float(input(f"Preço do produto no {m1}: ")) print('=-' * 30) m2=input("Nome do 2 mercado: ") p2=float(input(f"Preço do produto no {m2}: ")) print('=-' * 30) if p1 < p2: print(f"O produto é mais barato no {m1}") else: print(f"O produto é mais barato no {m2}") elif RespostaUsuario == 5: print('Opção 5 escolhida. Compare os preços') m1=input("Nome do mercado: ") p1=float(input(f"Preço da cesta básica no {m1}: ")) print('=-' * 30) m2=input("Nome do 2 mercado: ") p2=float(input(f"Preço da cesta básica no {m2}: ")) print('=-' * 30) if p1 < p2: print(f"A cesta mais barata é no {m1}") else: print(f"A cesta mais barata é no {m2}") else: print("Opção Inválida")
x=10 y=50 z=30 a=3.9 b="roman regions" c="brock leasner suplex city"
"""NICOS GUI default configuration.""" main_window = tabbed( ('Instrument', docked( vsplit( panel('nicos.clients.gui.panels.status.ScriptStatusPanel'), # panel('nicos.clients.gui.panels.watch.WatchPanel'), panel('nicos.clients.gui.panels.console.ConsolePanel', watermark='nicos_mlz/reseda/gui/watermark.png'), ), ('NICOS devices', panel('nicos.clients.gui.panels.devices.DevicesPanel', icons=True, dockpos='right',) ), ('Experiment Information and Setup', panel('nicos.clients.gui.panels.expinfo.ExpInfoPanel',) ), ) ), ('Tunewave table', panel('nicos_mlz.gui.tunewavetable.TunewaveTablePanel', tabledev='echotime') ), ('Mieze display', panel('nicos_mlz.reseda.gui.mieze_display.MiezePanel', setups='det_cascade', columns=3, rows=2, foils=[7, 6, 5, 0, 1, 2]) ), ('Mieze display (Reseda II)', panel('nicos_mlz.reseda.gui.mieze_display.MiezePanel', setups='det_cascade2', columns=4, rows=2, foils=[6, 5, 4, 3, 2, 1, 0]) ), ) windows = [ window('Editor', 'editor', panel('nicos.clients.gui.panels.editor.EditorPanel')), window('Scans', 'plotter', panel('nicos.clients.gui.panels.scans.ScansPanel', fit_functions={ 'Resonance': (['Vmax = 0.1', 'R = 0.6'], 'Vmax / sqrt(R**2 + (f*L-1/(f*C))**2)'), 'Echo': ([], 'y_0 * (1 - pol * cos((pi * (t - x_0)) / (2 * echo2pistep)) *' 'sinc((st * (t - x_1))/(2 * echo2pistep))**2)'), }, ) ), window('History', 'find', panel('nicos.clients.gui.panels.history.HistoryPanel')), window('Logbook', 'table', panel('nicos.clients.gui.panels.elog.ELogPanel')), window('Log files', 'table', panel('nicos.clients.gui.panels.logviewer.LogViewerPanel')), window('Errors', 'errors', panel('nicos.clients.gui.panels.errors.ErrorPanel')), window('Live data', 'live', panel('nicos_mlz.reseda.gui.live.CascadeLiveDataPanel', filetypes=['pad', 'tof'], defaults={'logscale': True},)), ] tools = [ tool('Downtime report', 'nicos.clients.gui.tools.downtime.DownTimeTool', sender='reseda@frm2.tum.de', ), tool('Calculator', 'nicos.clients.gui.tools.calculator.CalculatorTool'), tool('Neutron cross-sections', 'nicos.clients.gui.tools.website.WebsiteTool', url='http://www.ncnr.nist.gov/resources/n-lengths/'), tool('Neutron activation', 'nicos.clients.gui.tools.website.WebsiteTool', url='https://webapps.frm2.tum.de/intranet/activation/'), tool('Neutron calculations', 'nicos.clients.gui.tools.website.WebsiteTool', url='https://webapps.frm2.tum.de/intranet/neutroncalc/'), tool('Report NICOS bug or request enhancement', 'nicos.clients.gui.tools.bugreport.BugreportTool'), tool('Emergency stop button', 'nicos.clients.gui.tools.estop.EmergencyStopTool', runatstartup=False), ] options = { 'reader_classes': ['nicos_mlz.reseda.devices.cascade.CascadeImageReader'], }
# 914000500 ATHENA = 1209007 sm.setSpeakerID(ATHENA) if sm.sendAskYesNo("You made it back safely! What about the child?! Did you bring the child with you?!"): sm.completeQuest(parentID) sm.consumeItem(4001271) sm.flipSpeaker() sm.sendNext("Oh, what a relief. I'm so glad...") sm.setPlayerAsSpeaker() sm.sendSay("Hurry and board the ship! We don't have much time!") sm.setSpeakerID(ATHENA) sm.flipSpeaker() sm.sendSay("We don't have any time to waste. The Black Mage's forces are getting closer and closer! We're doomed if we don't leave right this moment!") sm.setPlayerAsSpeaker() sm.sendSay("Leave, now!") sm.setSpeakerID(ATHENA) sm.flipSpeaker() sm.sendSay("Aran, please! I know you want to stay and fight the Black Mage, but it's too late! Leave it to the others and come to Victoria Island with us! ") sm.setPlayerAsSpeaker() sm.sendSay("No, I can't!") sm.sendSay("Athena Pierce, why don't you leave for Victoria Island first? I promise I'll come for you later. I'll be alright. I must fight the Black Mage with the other heroes!") sm.lockInGameUI(True, False) sm.warp(914090010, 0) else: sm.sendNext("What about the child? Please give me the child.") sm.dispose()
# 계산기 내부 프로그램 class Calc_program(): def __init__(self, input_data_R): # 인스턴스 메소드 self.input_data = input_data_R # 외부에서 들어온 수식 self.int_data = [] # 숫자 리스트 self.int_refined_data = [] # 정제된 숫자 리스트 self.str_data = [] # 문자 리스트 self.int1 =0 # 더해진 값 self.str_add = '' # 문자의 위치 값 self.lead = 0 def power(self): for filter in self.input_data: if filter == str(0) or filter == str(1) or filter == str(2) or filter == str(3) or filter == str(4) or filter == str(5) or filter == str(6) or filter == str(7) or filter == str(8) or filter == str(9): self.int_data.insert(0,int(filter)) # 값 정수형으로 추가 self.lead = 0 elif filter == '+' or filter == '-' or filter == '^' or filter == '*' or filter == '/': self.str_data.append(filter) # 값 문자형으로 추가 self.lead = self.lead + 1 print(self.str_data) for index, value in enumerate(self.int_data): # 번호표를 붙여줌 self.int1 += value * 10 ** index # 자릿수에 맞게 곱연산을 함 else: self.int_refined_data.append(self.int1) self.int_data.clear() # 기존에 받은 값을 초기화시킴 self.int1 = 0 if self.lead >= 2 or self.input_data[0] == '+' or self.input_data[0] == '-' or self.input_data[0] == '*' or self.input_data[0] == '^' or self.input_data[0] == '/': self.int_refined_data.pop() self.str_data.pop() for index, value in enumerate(self.int_data): # 번호표를 붙여줌 self.int1 += value * 10 ** index # 자릿수에 맞게 곱연산을 함 else: self.int_refined_data.append(self.int1) self.int_data.clear() # 기존에 받은 값을 초기화시킴 self.int1 = 0 print('정제된 숫자에 값을 추가함',self.int_refined_data) print('문자형 리스트 ',self.str_data) while bool(len(self.int_refined_data)) == True: # 값이 남아있으면 if '^' in self.str_data : self.str_add = self.str_data.index('^') self.int_refined_data[self.str_add] = self.int_refined_data[self.str_add] ** self.int_refined_data[self.str_add + 1] self.int_refined_data.pop(self.str_add +1) self.str_data.pop(self.str_add) elif '*' in self.str_data : self.str_add = self.str_data.index('*') self.int_refined_data[self.str_add] = self.int_refined_data[self.str_add] * self.int_refined_data[self.str_add + 1] self.int_refined_data.pop(self.str_add +1) self.str_data.pop(self.str_add) elif '/' in self.str_data : self.str_add = self.str_data.index('/') self.int_refined_data[self.str_add] = self.int_refined_data[self.str_add] / self.int_refined_data[self.str_add + 1] self.int_refined_data.pop(self.str_add +1) self.str_data.pop(self.str_add) elif '+' in self.str_data : self.str_add = self.str_data.index('+') self.int_refined_data[self.str_add] = self.int_refined_data[self.str_add] + self.int_refined_data[self.str_add + 1] self.int_refined_data.pop(self.str_add +1) self.str_data.pop(self.str_add) elif '-' in self.str_data : self.str_add = self.str_data.index('-') self.int_refined_data[self.str_add] = self.int_refined_data[self.str_add] - self.int_refined_data[self.str_add + 1] self.int_refined_data.pop(self.str_add +1) self.str_data.pop(self.str_add) elif len(self.int_refined_data) == 1: print("계산된 값 - ", self.int_refined_data[0]) break return self.int_refined_data[0] if __name__ == '__main__': a = Calc_program(input('값을 입력해주세요 : ')) a.power()
""" P/L -- profit/loss Calls (break_even and P/L) Puts (break_even and P/L) Options are made up of: - Intrinsic Value - Extrinsic Value Add the shebang (first line): !/usr/bin/env python3 Make it executable: chmod +x options.py Run it with: ./options.py Variables: S - current price K - strike price cprice - call contract price pprice - put contract price call_be - break even call put_be - break even put """ class Options: def __init__(self, S, K): self.S = S self.K = K def call_be(self, cprice): self.call_be = self.K + cprice return self.call_be def put_be(self, pprice): self.put_be = self.K - pprice return self.put_be def call(self, end): profitability = [] prices = [] for i in range(self.S, end+5, 5): prices.append(i) profitability.append(round(max(0, i - self.call_be), 2)) ans = zip(prices, profitability) print("P/L Call Options") for i,j in ans: print(i, j) #return print(f"P/L Call Option: ", *zip(prices, profitability)) def put(self, end): profitability = [] prices = [] for i in range(self.S, end+5, 5): prices.append(i) profitability.append(round(max(0, self.put_be - i))) ans = zip(prices, profitability) print("P/L Put Options") for i,j in ans: print(i, j) #return print(f"P/L Put Option: ", *zip(prices, profitability)) # Tests current_price = 110 strike_price = 90 #creating an object -- test test = Options(current_price, strike_price) #cprice -- contract price per contract (each contract 100 shares) cprice = 1.20 #end value for the loop end_value = 150 #answers print("Break Even: ", test.call_be(cprice)) test.call(end_value)
##Clock in pt2thon## t1 = input("Init schedule : ") # first schedule HH1 = int(t1[0]+t1[1]) MM1 = int(t1[3]+t1[4]) SS1 = int(t1[6]+t1[7]) t2 = input("Final schedule : ") # second schedule HH2 = int(t2[0]+t2[1]) MM2 = int(t2[3]+t2[4]) SS2 = int(t2[6]+t2[7]) tt1 = (HH1*3600)+(MM1*60)+SS1 # total schedule 1 tt2 = (HH2*3600)+(MM2*60)+SS2 # total schedule 2 tt3 = tt2-tt1 # difference between tt2 e tt1 # Part Math if (tt3 < 0): # If the difference between tt2 e tt1 for negative : a = 86400 - tt1 # 86400 is seconds in 1 day; a2 = a + tt2 # a2 is the difference between 1 day e the <hours var>; Ht = a2//3600 # Ht is hours calculated; a = a2 % 3600 # Convert 'a' in seconds; Mt = a//60 # Mt is minutes calculated; St = a % 60 # St is seconds calculated; else: # If the difference between tt2 e tt1 for positive : Ht = tt3//3600 # Ht is hours calculated; z = tt3 % 3600 # 'z' is tt3 converting in hours by seconds Mt = z//60 # Mt is minutes calculated; St = tt3 % 60 # St is seconds calculated; # special condition below : if (Ht < 10): h = '0'+ str(Ht) Ht = h if (Mt < 10): m = '0'+ str(Mt) Mt = m if (St < 10): s = '0'+ str(St) St = s # add '0' to the empty spaces (caused by previous operations) in the final result! print("final result is :", str(Ht)+":"+str(Mt)+":"+str(St)) # final result (formatted in clock)
class PostmarkerException(Exception): """Base class for all exceptions in Postmarker.""" class ClientError(PostmarkerException): """Indicates client's error.""" def __init__(self, *args, **kwargs): self.error_code = kwargs.pop("error_code") super().__init__(*args, **kwargs) class SpamAssassinError(PostmarkerException): pass
input = """ x | y. :- x. a :- x. a :- not y. a :- b. b :- a. t :- not a, not b, not x. """ output = """ x | y. :- x. a :- x. a :- not y. a :- b. b :- a. t :- not a, not b, not x. """
#!/bin/python3 # https://www.urionlinejudge.com.br/judge/en/problems/view/1005 def main(): A, B = float(input()), float(input()) wA = 3.5 wB = 7.5 MEDIA = ((A * wA) + (B * wB)) / (wA + wB) print("MEDIA =", format(MEDIA, '.5f')) # Start the execution if it's the main script if __name__ == "__main__": main()
# Aula 04 - Desafio 2 # dia = input('Qual o dia do seu nascimento? ') mes = input('Qual o mês do seu nascimento? ') ano = input('Qual o ano do seu nascimento? ') print('\n', 'Você nasceu no dia', dia, 'do mês', mes, 'do ano de', ano + '.', 'Correto?')
def test_geo_zones(app): app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click() counties = app.wd.find_elements_by_xpath("//tr[@class='row']//a[not(@title)]") for i in range(len(counties)): app.wd.find_element_by_xpath("(//tr[@class='row']//a[not(@title)])[%s+1]" % i).click() zone_elements = app.wd.find_elements_by_xpath\ ("//select[contains(@name, 'zone_code')]//option[@selected='selected']") zones = [] for zone in zone_elements: zones.append(zone.text) assert zones == sorted(zones) app.wd.find_element_by_xpath("//a//span[text()='Geo Zones']").click()
def maior_elemento(lista): comparador = -9999 for item in lista: if item > comparador: comparador = item return comparador
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. # Target word length. Currently set to match the word length of Arduino (2 bytes) wordLength = 16 # Range of max scale factor used for exploration maxScaleRange = 0, -wordLength # tanh approximation limit tanhLimit = 1.0 # MSBuild location # Edit the path if not present at the following location msbuildPathOptions = [r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" ] class Algo: bonsai = "bonsai" lenet = "lenet" protonn = "protonn" rnn = "rnn" default = [bonsai, protonn] all = [bonsai, lenet, protonn, rnn] class Version: fixed = "fixed" floatt = "float" default = [fixed, floatt] all = default class DatasetType: training = "training" testing = "testing" default = testing all = [training, testing] class Target: arduino = "arduino" x86 = "x86" default = x86 all = [arduino, x86]
class Solution: def findMin(self, nums: 'List[int]') -> 'int': left, right = 0, len(nums) if right == 0: return -1 result = nums[0] while left + 1 < right: mid = (left + right) >> 1 result = min(result, nums[mid]) if nums[mid] < nums[left]: right = mid else: left = mid return min(result, nums[left]) if __name__ == "__main__": print(Solution().findMin([3, 4, 5, 1, 2])) print(Solution().findMin([4, 5, 6, 7, 0, 1, 2]))
def dependencies(name, dependencies, prefix = "deb", parent_bzl_file = ""): extra_deps_tools = [] parent_bzl_file_location = "" if parent_bzl_file: extra_deps_tools = [parent_bzl_file] parent_bzl_file_location = "$(location " + parent_bzl_file + ")" substitute_dependencies_target = target_path("substitute_dependencies") [ native.genrule( name = substituted_dependency_target_name(name, dependency), srcs = [dependency], outs = ["dependency_%s" % dependency_name(dependency)], cmd = location(substitute_dependencies_target) + " " + location(dependency) + " > $@", tools = [substitute_dependencies_target], ) for dependency in dependencies ] find_dependencies_target = target_path("find_dependencies") [ native.genrule( name = "debian_dependencies_%s_%s" % (name, dependency_name(dependency)), srcs = [ ":" + substituted_dependency_target_name(name, dependency), "@containers_by_bazel//scripts/docker:_built/%s/%s" % (name, dependencies[dependency]), ], outs = ["debian_deps_%s" % dependency_name(dependency)], cmd = location(find_dependencies_target) + " '" + container_image(name, dependencies[dependency]) + "' " + location(":" + substituted_dependency_target_name(name, dependency)) + " > $@", tools = [find_dependencies_target], local = 1, # ignore sandboxing as script connects to docker ) for dependency in dependencies ] extract_dependencies_target = target_path("extract_dependencies") native.genrule( name = "bazel_current_dependencies_file_%s" % name, srcs = ["@containers_by_bazel//deps/%s:%s.bzl" % (name, name)], outs = ["current_dependencies_%s" % name], cmd = location(extract_dependencies_target) + " '" + location("@containers_by_bazel//deps/%s:%s.bzl" % (name, name)) + "' > $@", tools = [extract_dependencies_target], ) combine_dependencies_target = target_path("combine_dependencies") native.genrule( name = "bazel_dependencies_file_%s" % name, srcs = [":debian_dependencies_%s_%s" % (name, dependency_name(dependency)) for dependency in dependencies], outs = [name + ".bzl"], cmd = location(combine_dependencies_target) + " '" + prefix + "_" + name + "' '" + location("bazel_current_dependencies_file_%s" % name) + "' '" + parent_bzl_file_location + "' $(SRCS) > $@", tools = [combine_dependencies_target, ":bazel_current_dependencies_file_%s" % name] + extra_deps_tools, ) bazel_filegroup_target = target_path("bazel_filegroup") [ native.genrule( name = "debian_dependencies_filegroup_%s_%s" % (name, dependency_name(dependency)), srcs = [":debian_dependencies_%s_%s" % (name, dependency_name(dependency))], outs = ["filegroup_%s" % dependency_name(dependency)], cmd = location(bazel_filegroup_target) + " '" + prefix + "_" + name + "' $< > $@", tools = [bazel_filegroup_target], ) for dependency in dependencies ] combine_filegroups_target = target_path("combine_filegroups") native.genrule( name = "debian_dependencies_group_" + name, srcs = [":debian_dependencies_filegroup_%s_%s" % (name, dependency_name(dependency)) for dependency in dependencies], outs = [name + ".filegroup"], cmd = location(combine_filegroups_target) + " '" + name + "' $(SRCS) > $@", tools = [combine_filegroups_target], ) def location(target): return "$(location " + target + ")" def target_path( script): return "@containers_by_bazel//scripts/debian:" + script def dependency_name(dependency): return dependency.strip(':') def container_image(name, tag): return "bazel/dependencies:%s-%s" % (name, tag) def substituted_dependency_target_name(name, dependency): return "substituted_dependency_versions_%s_%s" % (name, dependency_name(dependency)) def substituted_dependency_target(name, dependency): return target_path(substituted_dependency_target_name(name, dependency))
# Exercise 5: Bottle Deposits # (Solved—15 Lines) # In many jurisdictions a small deposit is added to drink containers to encourage people # to recycle them. In one particular jurisdiction, drink containers holding one liter or # less have a $0.10 deposit, and drink containers holding more than one liter have a # $0.25 deposit. # Write a program that reads the number of containers of each size from the user. # Your program should continue by computing and displaying the refund that will be # received for returning those containers. Format the output so that it includes a dollar # sign and always displays exactly two decimal places. lessThan = int(input("Enter the number of drink containers holding one liter or less : ")) moreThan = int(input("Enter the number of drink containers holding more than one liter : ")) totalFromLess = lessThan*0.10 totalFromMore = moreThan*0.25 totalDeposite = totalFromLess + totalFromMore print(f"The deposit from drink containers holding one liter or less is {totalFromLess} and deposit from drink containers holding more than one liter is {totalFromMore} ") print("The total deposit is $ %.2f."%totalDeposite)
def bipartido(matriz): result = "" Bipartido = True u =[] v =[] def adjacentes(y): if len(v) > 1: for i in range(len(v)): for j in range(len(v)): z = v[i] k = v[j] if matriz[z][k] != 0: return True return False for i in range(len(matriz)): if i not in v: u.append(i) for j in range(len(matriz)): if j > i: if matriz[i][j] > 0: if j not in v: v.append(j) if adjacentes(v): Bipartido = False if Bipartido: result+=("O grafo é bipartido, e possui bipartições em u = {") for i in range(len(u)): if i < len(u)-1: result+=("V{}".format(u[i]+1) + ", ") else: result+=("V{}".format(u[i]+1)+ "} e V = {") for j in range(len(v)): if j < len(v)-1: result+=("V{}".format(v[j] + 1) +", ") else: result+=("V{}".format(v[j] + 1) + "}") result+=("\n") def bipartidoCompleto(u, v, matriz): resultado = "" BipCompleto = True for i in range(len(u)): cont = 0 for j in range(len(v)): k = u[i] z = v[j] if matriz[k][z] > 0: cont+=1 if cont < len(v): BipCompleto = False break if BipCompleto: resultado+=("O grafo é bipartido completo, pois cada vértice com bipartição em u se conecta a todos os vértices com bipartição em v\n") else: resultado+=("O grafo não é bipartido completo, pois não são todos os vértices com bipartição em u que se conectam a todos os vértices com bipartição em v\n") return resultado result+= bipartidoCompleto(u, v, matriz) return result else: return("O grafo não é bipartido, pois possui vértices que se conectam a vértices adjacentes\n")
class SyncScheduler(object): def call(self, fn): try: fn() except: pass
""" :Authors: - Wilker Aziz """
格式字符串 = "待办清单: {}" 待办清单 = ''' \t* 吃饭 \t* 睡觉 \t* 打豆豆 ''' print(格式字符串.format(待办清单))
innereye_ssl_checkpoint = "hsharma_panda_explore:hsharma_panda_explore_1638437076_357167ae" innereye_ssl_checkpoint_binary = "hsharma_panda_tiles_ssl:hsharma_panda_tiles_ssl_1639766433_161e03b9" innereye_ssl_checkpoint_crck_4ws = "ModifyOldSSLCheckpoint:a9259fdb-3964-4c5b-8962-4660e0b79d44" innereye_ssl_checkpoint_crck_radiomics = "ModifyOldSSLCheckpoint:704b1af8-7c75-46ed-8460-d80a0e603194" # outdated checkpoints # innereye_ssl_checkpoint_crck_radiomics = updated_transforms:updated_transforms_1636471522_5473e3ff
''' Created on 21.05.2019 @author: LH ''' class TMCM_6212(): def __init__(self, connection): self.__connection = connection self.GPs = _GPs self.APs = _APs self.MOTORS = 6 def showChipInfo(self): ("TMCM-6212 is a six axes controller/driver module for 2-phase bipolar stepper motors with seperate encoder (differential) and HOME / STOP switch inputes for each axis. Voltage supply: 12 - 35"); # Axis parameter access def getAxisParameter(self, apType, axis): if not(0 <= axis < self.MOTORS): raise ValueError("Axis index out of range") return self.__connection.axisParameter(apType, axis) def setAxisParameter(self, apType, axis, value): if not(0 <= axis < self.MOTORS): raise ValueError("Axis index out of range") self.__connection.setAxisParameter(apType, axis, value) # Global parameter access def getGlobalParameter(self, gpType, bank): if not(0 <= bank < self.MOTORS): raise ValueError("Bank index out of range") return self.__connection.globalParameter(gpType, bank) def setGlobalParameter(self, gpType, bank, value): if not(0 <= bank < self.MOTORS): raise ValueError("Bank index out of range") self.__connection.setGlobalParameter(gpType, bank, value) # Motion Control functions def rotate(self, motor, velocity): if not(0 <= motor < self.MOTORS): raise ValueError("Motor index out of range") self.__connection.rotate(motor, velocity) def stop(self, motor): if not(0 <= motor < self.MOTORS): raise ValueError("Motor index out of range") self.__connection.stop(motor) def moveTo(self, motor, position, velocity=None): if not(0 <= motor < self.MOTORS): raise ValueError("Motor index out of range") if velocity: self.setMaxVelocity(motor, velocity) self.__connection.move(0, motor, position) def moveBy(self, motor, position, velocity=None): # The TMCL command MVP REL does not correctly work if the previous # motion was in velocity mode. The position used as offset for the # relative motion is the last target position, not the actual position. # Due to that we manually calculate the relative position and use the # moveTo function. position += self.getActualPosition(motor) self.moveTo(motor, position, velocity) return position # Current Control functions def setMotorRunCurrent(self, axis, current): self.setMaxCurrent(axis, current) def setMotorStandbyCurrent(self, axis, current): self.setAxisParameter(self.APs.StandbyCurrent, axis, current) def getMaxCurrent(self, axis): return self.getAxisParameter(self.APs.MaxCurrent, axis) def setMaxCurrent(self, axis, current): self.setAxisParameter(self.APs.MaxCurrent, axis, current) # StallGuard2 Functions def setStallguard2Filter(self, axis, enableFilter): self.setAxisParameter(self.APs.SG2FilterEnable, axis, enableFilter) def setStallguard2Threshold(self, axis, threshold): self.setAxisParameter(self.APs.SG2Threshold, axis, threshold) def setStopOnStallVelocity(self, axis, velocity): self.setAxisParameter(self.APs.SmartEnergyStallVelocity, axis, velocity) # Motion parameter functions def getTargetPosition(self, axis): return self.getAxisParameter(self.APs.TargetPosition, axis) def setTargetPosition(self, axis, position): self.setAxisParameter(self.APs.TargetPosition, axis, position) def getActualPosition(self, axis): return self.getAxisParameter(self.APs.ActualPosition, axis) def setActualPosition(self, axis, position): return self.setAxisParameter(self.APs.ActualPosition, axis, position) def getTargetVelocity(self, axis): return self.getAxisParameter(self.APs.TargetVelocity, axis) def setTargetVelocity(self, axis, velocity): self.setAxisParameter(self.APs.TargetVelocity, axis, velocity) def getActualVelocity(self, axis): return self.getAxisParameter(self.APs.ActualVelocity, axis) def getMaxVelocity(self, axis): return self.getAxisParameter(self.APs.MaxVelocity, axis) def setMaxVelocity(self, axis, velocity): self.setAxisParameter(self.APs.MaxVelocity, axis, velocity) def getMaxAcceleration(self, axis): return self.getAxisParameter(self.APs.MaxAcceleration, axis) def setMaxAcceleration(self, axis, acceleration): self.setAxisParameter(self.APs.MaxAcceleration, axis, acceleration) # Status functions def getStatusFlags(self, axis): return self.getAxisParameter(self.APs.DriverErrorFlags, axis) def getErrorFlags(self, axis): return self.getAxisParameter(self.APs.ExtendedErrorFlags, axis) def positionReached(self, axis): return self.getAxisParameter(self.APs.PositionReachedFlag, axis) # IO pin functions def analogInput(self, x): return self.__connection.analogInput(x) def digitalInput(self, x): return self.__connection.digitalInput(x) class _APs(): TargetPosition = 0 ActualPosition = 1 TargetVelocity = 2 ActualVelocity = 3 MaxVelocity = 4 MaxAcceleration = 5 MaxCurrent = 6 StandbyCurrent = 7 PositionReachedFlag = 8 referenceSwitchStatus = 9 RightEndstop = 10 LeftEndstop = 11 rightLimitSwitchDisable = 12 leftLimitSwitchDisable = 13 swapLimitSwitches = 14 A1 = 15 V1 = 16 MaxDeceleration = 17 D1 = 18 StartVelocity = 19 StopVelocity = 20 RampWaitTime = 21 THIGH = 22 min_DcStepSpeed = 23 rightLimitSwitchPolarity = 24 leftLimitSwitchPolarity = 25 softstop = 26 HighSpeedChopperMode = 27 HighSpeedFullstepMode = 28 MeasuredSpeed = 29 PowerDownRamp = 31 dcStepTime = 32 dcStepStallGuard = 33 relativePositioningOption = 127 MicrostepResolution = 140 ChopperBlankTime = 162 ConstantTOffMode = 163 DisableFastDecayComparator = 164 ChopperHysteresisEnd = 165 ChopperHysteresisStart = 166 TOff = 167 SEIMIN = 168 SECDS = 169 smartEnergyHysteresis = 170 SECUS = 171 smartEnergyHysteresisStart = 172 SG2FilterEnable = 173 SG2Threshold = 174 disableShortCircuitProtection = 177 VSense = 179 smartEnergyActualCurrent = 180 smartEnergyStallVelocity = 181 smartEnergyThresholdSpeed = 182 RandomTOffMode = 184 ChopperSynchronization = 185 PWMThresholdSpeed = 186 PWMGrad = 187 PWMAmplitude = 188 PWMScale = 189 PWMMode = 190 PWMFrequency = 191 PWMAutoscale = 192 ReferenceSearchMode = 193 ReferenceSearchSpeed = 194 referenceSwitchSpeed = 195 referenceSwitchDistance = 196 lastReferenceSwitchPosition = 197 latchedActualPosition = 198 latchedEncoderPosition = 199 encoderMode = 201 motorFullStepResolution = 202 FreewheelingMode = 204 LoadValue = 206 extendedErrorFlags = 207 driverErrorFlags = 208 encoderPosition = 209 encoderResolution = 210 max_EncoderDeviation = 212 groupIndex = 213 PowerDownDelay = 214 reverseShaft = 251 CurrentStepping = 0 class _GPs(): timer_0 = 0 timer_1 = 1 timer_2 = 2 stopLeft_0 = 27 stopRight_0 = 28 stopLeft_1 = 29 stopRight_1 = 30 stopLeft_2 = 31 stopRight_2 = 32 stopLeft_3 = 33 stopRight_3 = 34 stopLeft_4 = 35 stopRight_4 = 36 stopLeft_5 = 37 stopRight_5 = 38 input_0 = 39 input_1 = 40 input_2 = 41 input_3 = 42 serialBaudRate = 65 serialAddress = 66 serialHeartbeat = 68 CANBitrate = 69 CANSendId = 70 CANReceiveId = 71 telegrmPauseTime = 75 serialHostAddress = 76 autoStartMode = 77 protectionMode = 81 CANHeartbeat = 82 CANSecondaryAddress = 83 StoreCoordinatesIn_EEPROM = 84 doNotRestoreUserVariables = 85 serialSecondaryAddress = 87 applicationStatus = 128 downloadMode = 129 programCounter = 130 lastTmclError = 131 tickTimer = 132 randomNumber = 133
#!/usr/bin/env python ############################################################################## # Written by: Brian G. Merrell <bgmerrell@novell.com> # Date: May 23 2008 # Description: A description of the remote test machines # # ############################################################################## # A common test directory on all machines (where test files are copied and # executed TEST_DIR = "/home/a11y/tests" LOG_DIR = "/home/a11y/logs" USERNAME = "a11y" # Dictionary of available machines ''' ENABLE ALL THESE MACHINES ONCE TEST ENVIRONMENTS HAVE BEEN SET UP IN THE LAB machines_dict = { "ubuntu32v0" : ("151.155.248.167", "ubuntu32v0.sled.lab.novell.com"), "ubuntu64v0" : ("151.155.248.168", "ubuntu64v0.sled.lab.novell.com"), "fedora32v0" : ("151.155.248.169", "fedora32v0.sled.lab.novell.com"), "fedora64v0" : ("151.155.248.170", "fedora64v0.sled.lab.novell.com"), "suse32v0" : ("151.155.248.171", "suse32v0.sled.lab.novell.com"), "suse64v0" : ("151.155.248.172", "suse64v0.sled.lab.novell.com"), "fakemachine" : ("151.155.224.100", "fakemachine.sled.lab.novell.com" } ''' machines_dict = { #'oS111-32' : ('147.2.207.217', ''), #'oS111-64' : ('147.2.207.218', ''), #'oS112-32' : ('147.2.207.219', ''), #'oS112-64' : ('147.2.207.220', ''), #'ubuntu910-32' : ('147.2.207.221', ''), 'ubuntu910-64' : ('147.2.207.222', ''), #'fedora12-32' : ('147.2.207.223', ''), #'fedora12-64' : ('147.2.207.224', '') }
BLACK = u'\33[40m' # Default dark background colors RED = u'\33[41m' GREEN = u'\33[42m' YELLOW = u'\33[43m' BLUE = u'\33[44m' MAGENTA = u'\33[45m' CYAN = u'\33[46m' WHITE = u'\33[47m' GREY = u'\33[100m' # Light background colors LRED = u'\33[101m' LGREEN = u'\33[102m' LYELLOW = u'\33[103m' LBLUE = u'\33[104m' LMAGENTA = u'\33[105m' LCYAN = u'\33[106m' LWHITE = u'\33[107m'
''' Given n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one process has PPID that is 0, which means this process has no parent process. All the PIDs will be distinct positive integers. We use two list of integers to represent a list of processes, where the first list contains PID for each process and the second list contains the corresponding PPID. Now given the two lists, and a PID representing a process you want to kill, return a list of PIDs of processes that will be killed in the end. You should assume that when a process is killed, all its children processes will be killed. No order is required for the final answer. Example 1: Input: pid = [1, 3, 10, 5] ppid = [3, 0, 5, 3] kill = 5 Output: [5,10] Explanation: 3 / \ 1 5 / 10 Kill 5 will also kill 10. Note: The given kill id is guaranteed to be one of the given PIDs. n >= 1. ''' class Solution(object): def killProcess(self, pid, ppid, kill): """ :type pid: List[int] :type ppid: List[int] :type kill: int :rtype: List[int] """ children = {} for i in xrange(len(pid)): if ppid[i] not in children: children[ppid[i]] = [pid[i]] else: children[ppid[i]].append(pid[i]) res = [] vec = [kill] while len(vec) > 0: next_vec = [] for x in vec: res.append(x) if x in children: next_vec.extend(children[x]) vec = next_vec return res
class Profile: def __init__(self): self.id = 0 self.name = '' self.ranked_pp = 0 self.unranked_pp = 0 self.total_pp = 0 self.rank = 0 class Beatmap: def __init__(self): self.id = 0 self.creator = '' self.approach_rate = 0 self.is_ranked = False self.circle_size = 0 self.drain = 0 self.beatmap_id = 0 self.artist = '' self.overall_difficulty = 0 self.total_length = 0 self.title = '' self.bpm = 0 self.stars = 0 self.max_combo = 0 self.hit_length = 0 self.difficulty_name = '' class Score: def __init__(self): self.id = 0 self.beatmap_hash = '' self.player_name = '' self.number_300s = 0 self.number_100s = 0 self.number_50s = 0 self.gekis = 0 self.katus = 0 self.misses = 0 self.score = 0 self.max_combo = 0 self.is_perfect_combo = False self.no_fail = False self.easy = False self.hidden = False self.hard_rock = False self.sudden_death = False self.double_time = False self.relax = False self.half_time = False self.flashlight = False self.spun_out = False self.auto_pilot = False self.perfect = False self.pp = 0 self.beatmap_id = 0 self.profile_id = 0 self.accuracy = 0 def get_mods_string(self): mods = [] if self.no_fail: mods.append("NF") if self.easy: mods.append("EZ") if self.hidden: mods.append("HD") if self.hard_rock: mods.append("HR") if self.sudden_death: mods.append("SD") if self.double_time: mods.append("DT") if self.relax: mods.append("RX") if self.half_time: mods.append("HT") if self.flashlight: mods.append("FL") if self.spun_out: mods.append("SO") if self.auto_pilot: mods.append("AP") if self.perfect: mods.append("PF") mods_string = ''.join(mods) return mods_string
#!/usr/bin/env python # -*- coding: utf-8 -*- pipes = "0 <-> 122, 874, 1940\n1 <-> 1099\n2 <-> 743\n3 <-> 594, 1258\n4 <-> 4, 1473\n5 <-> 109, 628, 1133, 1605\n6 <-> 470, 561, 600, 1272, 1634\n7 <-> 7, 1058, 1074, 1136\n8 <-> 879\n9 <-> 9\n10 <-> 10, 1736\n11 <-> 148, 1826\n12 <-> 774, 1394, 1495\n13 <-> 178, 410\n14 <-> 666, 763, 1696\n15 <-> 793, 1446, 1754, 1993\n16 <-> 1477\n17 <-> 1891, 1970\n18 <-> 476, 1095\n19 <-> 19\n20 <-> 581, 1380, 1817, 1877\n21 <-> 746, 1253\n22 <-> 830, 1021\n23 <-> 1115\n24 <-> 89, 1436\n25 <-> 759, 821\n26 <-> 40, 1254\n27 <-> 553, 1137, 1960\n28 <-> 100, 808\n29 <-> 279, 1223, 1591, 1726\n30 <-> 236, 325, 769, 1132\n31 <-> 425, 1377\n32 <-> 611, 1047\n33 <-> 751, 1797, 1828, 1921\n34 <-> 1563, 1681\n35 <-> 428\n36 <-> 265, 1837\n37 <-> 265, 365, 1455\n38 <-> 1600, 1690\n39 <-> 331\n40 <-> 26, 560, 1512\n41 <-> 911, 1991\n42 <-> 835\n43 <-> 680\n44 <-> 1522\n45 <-> 486, 1794\n46 <-> 170, 334, 944, 1169\n47 <-> 1086\n48 <-> 274, 924\n49 <-> 1664\n50 <-> 721\n51 <-> 1885\n52 <-> 1143, 1205\n53 <-> 148, 696\n54 <-> 1637\n55 <-> 936, 1781\n56 <-> 342, 1212\n57 <-> 911\n58 <-> 692, 1456\n59 <-> 59\n60 <-> 463, 570, 1038, 1711\n61 <-> 824, 1008, 1942\n62 <-> 165, 1926\n63 <-> 1689\n64 <-> 64, 321\n65 <-> 98, 116, 1082\n66 <-> 1426, 1497\n67 <-> 502, 951, 1514\n68 <-> 215, 610, 803\n69 <-> 264, 1660\n70 <-> 417, 648, 1142\n71 <-> 1937\n72 <-> 744, 1158\n73 <-> 466\n74 <-> 74, 673\n75 <-> 640, 1874\n76 <-> 575, 708, 1347, 1488\n77 <-> 435, 1648\n78 <-> 412\n79 <-> 347\n80 <-> 807\n81 <-> 176, 394\n82 <-> 366, 928\n83 <-> 737\n84 <-> 84, 1537\n85 <-> 1325\n86 <-> 546\n87 <-> 678, 941, 1229\n88 <-> 1325\n89 <-> 24, 89\n90 <-> 431, 988, 1453\n91 <-> 825, 957, 1249\n92 <-> 937, 1516\n93 <-> 1840\n94 <-> 916, 1445\n95 <-> 1628, 1998\n96 <-> 123\n97 <-> 355\n98 <-> 65\n99 <-> 425, 771, 1050\n100 <-> 28, 100\n101 <-> 337, 1257\n102 <-> 270, 1754\n103 <-> 103, 229\n104 <-> 157, 916\n105 <-> 1705\n106 <-> 1165\n107 <-> 1646\n108 <-> 1082\n109 <-> 5\n110 <-> 485, 1185\n111 <-> 944, 1249\n112 <-> 112, 1056\n113 <-> 1219\n114 <-> 129, 617\n115 <-> 422\n116 <-> 65\n117 <-> 200, 1802\n118 <-> 243, 1507\n119 <-> 732, 1103\n120 <-> 160\n121 <-> 320, 336\n122 <-> 0, 582, 1931\n123 <-> 96, 885, 1126, 1914\n124 <-> 124, 413\n125 <-> 125\n126 <-> 367, 655\n127 <-> 1290\n128 <-> 1085\n129 <-> 114, 1343, 1805\n130 <-> 130, 1415\n131 <-> 1626, 1734\n132 <-> 296, 573, 1575\n133 <-> 1713\n134 <-> 1243, 1530\n135 <-> 1048\n136 <-> 153, 1209\n137 <-> 137, 331\n138 <-> 555, 1350\n139 <-> 1035, 1345\n140 <-> 393, 688\n141 <-> 1037, 1998\n142 <-> 736\n143 <-> 716, 1362\n144 <-> 1319\n145 <-> 318, 445, 1471, 1608\n146 <-> 146, 294\n147 <-> 714\n148 <-> 11, 53\n149 <-> 364, 854, 1254\n150 <-> 675, 1090\n151 <-> 189, 1411, 1688\n152 <-> 683, 1614\n153 <-> 136, 1328, 1648\n154 <-> 584, 1656\n155 <-> 1972\n156 <-> 1351\n157 <-> 104, 1638\n158 <-> 165\n159 <-> 444, 1812\n160 <-> 120, 859\n161 <-> 984, 1769, 1943\n162 <-> 1098\n163 <-> 618\n164 <-> 697, 922, 1688\n165 <-> 62, 158, 1452, 1977\n166 <-> 166, 1914\n167 <-> 1996\n168 <-> 260, 843, 1057, 1433\n169 <-> 406, 736, 924\n170 <-> 46\n171 <-> 173, 833, 1104, 1149\n172 <-> 1429\n173 <-> 171, 1423\n174 <-> 174, 332\n175 <-> 655, 839\n176 <-> 81, 176, 1264\n177 <-> 177\n178 <-> 13, 1162, 1182, 1951\n179 <-> 842, 1620\n180 <-> 1294, 1442, 1809\n181 <-> 1633, 1783\n182 <-> 182, 456\n183 <-> 685\n184 <-> 760, 1974\n185 <-> 287, 775\n186 <-> 917, 1541\n187 <-> 412, 1119\n188 <-> 395\n189 <-> 151, 1370, 1792\n190 <-> 1255, 1674\n191 <-> 764, 1010\n192 <-> 192, 607, 1717\n193 <-> 1001, 1944\n194 <-> 625\n195 <-> 623\n196 <-> 1882\n197 <-> 1275\n198 <-> 1069\n199 <-> 1138, 1880\n200 <-> 117\n201 <-> 1605\n202 <-> 1041, 1044\n203 <-> 207, 301, 815, 1311\n204 <-> 204, 1711\n205 <-> 1298, 1562, 1602\n206 <-> 228\n207 <-> 203, 1480, 1713\n208 <-> 786, 1844\n209 <-> 1291, 1351, 1747\n210 <-> 1320\n211 <-> 587, 1340\n212 <-> 587, 676\n213 <-> 886\n214 <-> 1549\n215 <-> 68, 1115, 1371, 1701\n216 <-> 1127\n217 <-> 312\n218 <-> 466, 1072, 1709\n219 <-> 527\n220 <-> 793\n221 <-> 1314, 1800\n222 <-> 1941\n223 <-> 1911\n224 <-> 224, 528\n225 <-> 1030, 1084\n226 <-> 569, 1599\n227 <-> 658\n228 <-> 206, 579, 800, 1381\n229 <-> 103, 1975\n230 <-> 1068\n231 <-> 937\n232 <-> 428\n233 <-> 969, 1258\n234 <-> 1824\n235 <-> 1218\n236 <-> 30, 1410, 1470, 1651\n237 <-> 815\n238 <-> 477, 1518, 1869\n239 <-> 985, 1911\n240 <-> 809, 1047\n241 <-> 1379, 1577, 1692, 1757\n242 <-> 1127\n243 <-> 118\n244 <-> 440, 747, 771, 1051\n245 <-> 644, 725, 1332, 1862\n246 <-> 395, 1168\n247 <-> 1118\n248 <-> 1462\n249 <-> 737\n250 <-> 1254\n251 <-> 491, 1129\n252 <-> 623\n253 <-> 1046, 1872\n254 <-> 1473\n255 <-> 1220, 1672\n256 <-> 1290, 1838\n257 <-> 474, 1708, 1945\n258 <-> 728, 1297\n259 <-> 374, 464, 1637\n260 <-> 168, 1699\n261 <-> 677, 1164\n262 <-> 1507\n263 <-> 564\n264 <-> 69, 264, 912\n265 <-> 36, 37\n266 <-> 1362\n267 <-> 267\n268 <-> 275, 1873\n269 <-> 449, 766\n270 <-> 102\n271 <-> 1139, 1156\n272 <-> 369, 584\n273 <-> 311, 969\n274 <-> 48, 667\n275 <-> 268, 672, 1687\n276 <-> 1609\n277 <-> 490, 1252\n278 <-> 1236, 1984\n279 <-> 29\n280 <-> 932, 1860\n281 <-> 372, 638, 1311\n282 <-> 1199, 1308\n283 <-> 1938\n284 <-> 315, 1375, 1799\n285 <-> 1377, 1613\n286 <-> 1661\n287 <-> 185, 1248\n288 <-> 409, 1457\n289 <-> 1025\n290 <-> 606, 1486, 1925\n291 <-> 734, 1407\n292 <-> 330\n293 <-> 360, 1231\n294 <-> 146, 1887\n295 <-> 1237, 1733\n296 <-> 132, 296, 621\n297 <-> 1493, 1730\n298 <-> 1958\n299 <-> 696\n300 <-> 1300\n301 <-> 203\n302 <-> 1188, 1349\n303 <-> 750, 1701\n304 <-> 304, 503\n305 <-> 402, 630, 636, 1479\n306 <-> 1007, 1350, 1502\n307 <-> 1787\n308 <-> 1485\n309 <-> 479, 521\n310 <-> 1415\n311 <-> 273, 1942\n312 <-> 217, 387, 1357\n313 <-> 905, 1606\n314 <-> 1337, 1627\n315 <-> 284, 1509\n316 <-> 1809\n317 <-> 490, 1053, 1904\n318 <-> 145, 1789\n319 <-> 926, 1180\n320 <-> 121, 1454, 1764\n321 <-> 64, 725\n322 <-> 762, 1178\n323 <-> 918, 1064, 1957\n324 <-> 1901\n325 <-> 30\n326 <-> 483, 1827\n327 <-> 1360\n328 <-> 546, 1576\n329 <-> 526, 1667\n330 <-> 292, 823\n331 <-> 39, 137, 979\n332 <-> 174, 703, 914\n333 <-> 333, 1364\n334 <-> 46\n335 <-> 650\n336 <-> 121, 1814\n337 <-> 101\n338 <-> 740, 1239\n339 <-> 1595\n340 <-> 1076, 1544\n341 <-> 341, 623, 1540\n342 <-> 56\n343 <-> 367\n344 <-> 1547, 1878\n345 <-> 528\n346 <-> 346, 626, 1036\n347 <-> 79, 1052\n348 <-> 368, 1950\n349 <-> 631, 1765\n350 <-> 602\n351 <-> 1503, 1541, 1615, 1684\n352 <-> 1341\n353 <-> 824\n354 <-> 703, 1868\n355 <-> 97, 480, 566, 1804\n356 <-> 648, 814\n357 <-> 1656\n358 <-> 504\n359 <-> 763\n360 <-> 293, 1296\n361 <-> 361\n362 <-> 1892\n363 <-> 524\n364 <-> 149, 1268\n365 <-> 37, 1392, 1667\n366 <-> 82, 606\n367 <-> 126, 343, 677\n368 <-> 348, 500, 1101, 1300\n369 <-> 272, 527, 1785, 1833\n370 <-> 370\n371 <-> 1352, 1664\n372 <-> 281\n373 <-> 860, 1026, 1504\n374 <-> 259, 919, 1635\n375 <-> 990, 1489, 1835\n376 <-> 1389\n377 <-> 1063, 1750\n378 <-> 423\n379 <-> 1510\n380 <-> 1983\n381 <-> 517\n382 <-> 1792\n383 <-> 814\n384 <-> 1826\n385 <-> 1769\n386 <-> 1632, 1931\n387 <-> 312, 1206, 1961\n388 <-> 868, 1713\n389 <-> 721, 1781\n390 <-> 604\n391 <-> 493, 1691\n392 <-> 1331\n393 <-> 140\n394 <-> 81, 1836\n395 <-> 188, 246, 1171, 1388\n396 <-> 981, 1475, 1617\n397 <-> 397\n398 <-> 931\n399 <-> 1815\n400 <-> 1245\n401 <-> 1011\n402 <-> 305, 1911\n403 <-> 709\n404 <-> 606, 709, 1067, 1988\n405 <-> 1334, 1854\n406 <-> 169, 1552\n407 <-> 563\n408 <-> 813\n409 <-> 288, 409, 445\n410 <-> 13, 577\n411 <-> 1691\n412 <-> 78, 187, 1089\n413 <-> 124\n414 <-> 803, 1858\n415 <-> 415, 1289\n416 <-> 549, 1519\n417 <-> 70\n418 <-> 1866\n419 <-> 419, 680\n420 <-> 1727\n421 <-> 676, 1365\n422 <-> 115, 467\n423 <-> 378, 1470\n424 <-> 436, 929, 1311\n425 <-> 31, 99\n426 <-> 934\n427 <-> 596, 675, 936, 1580\n428 <-> 35, 232, 1027\n429 <-> 682, 1498\n430 <-> 430\n431 <-> 90\n432 <-> 432, 1607\n433 <-> 1312\n434 <-> 1023, 1118\n435 <-> 77, 435, 1280\n436 <-> 424, 894\n437 <-> 586, 1543\n438 <-> 1118\n439 <-> 439\n440 <-> 244\n441 <-> 441, 605\n442 <-> 1274\n443 <-> 443, 556\n444 <-> 159\n445 <-> 145, 409\n446 <-> 1258\n447 <-> 644, 940\n448 <-> 1271, 1480\n449 <-> 269, 1398\n450 <-> 871, 1094\n451 <-> 589, 1075\n452 <-> 755\n453 <-> 1518\n454 <-> 613, 796\n455 <-> 593\n456 <-> 182, 1321, 1938\n457 <-> 662, 1432\n458 <-> 916, 1812\n459 <-> 459\n460 <-> 1920, 1926\n461 <-> 1243, 1808, 1866\n462 <-> 617, 693\n463 <-> 60, 908\n464 <-> 259, 1178\n465 <-> 600\n466 <-> 73, 218\n467 <-> 422, 531, 750, 1476\n468 <-> 468\n469 <-> 901, 1204\n470 <-> 6\n471 <-> 755, 1257\n472 <-> 514\n473 <-> 873, 928\n474 <-> 257, 784\n475 <-> 1776\n476 <-> 18, 1314\n477 <-> 238\n478 <-> 1825\n479 <-> 309, 1605\n480 <-> 355\n481 <-> 1308\n482 <-> 807\n483 <-> 326, 619, 1098, 1776\n484 <-> 1837\n485 <-> 110, 525, 1601, 1893\n486 <-> 45, 1581\n487 <-> 1791\n488 <-> 758\n489 <-> 978\n490 <-> 277, 317, 792\n491 <-> 251, 1582\n492 <-> 945, 1028\n493 <-> 391, 1786\n494 <-> 1661\n495 <-> 534, 1255\n496 <-> 690, 1480\n497 <-> 631, 1195\n498 <-> 892, 903\n499 <-> 1522, 1941\n500 <-> 368, 1449, 1624\n501 <-> 706, 915, 1115\n502 <-> 67\n503 <-> 304\n504 <-> 358, 1431, 1609, 1685\n505 <-> 515\n506 <-> 1347\n507 <-> 624, 831\n508 <-> 907\n509 <-> 1127, 1970\n510 <-> 821, 1599\n511 <-> 763, 846\n512 <-> 1779\n513 <-> 537, 1033\n514 <-> 472, 1068, 1888\n515 <-> 505, 515\n516 <-> 1363, 1644\n517 <-> 381, 680\n518 <-> 853\n519 <-> 1703\n520 <-> 1851\n521 <-> 309\n522 <-> 1831\n523 <-> 1561\n524 <-> 363, 1282, 1852\n525 <-> 485, 1383\n526 <-> 329, 876, 1399\n527 <-> 219, 369, 1086\n528 <-> 224, 345, 1243\n529 <-> 719, 845, 980, 1778\n530 <-> 530, 535\n531 <-> 467\n532 <-> 603, 1522\n533 <-> 533\n534 <-> 495, 1020\n535 <-> 530, 639\n536 <-> 789\n537 <-> 513, 932, 1102\n538 <-> 653, 784, 807\n539 <-> 1186\n540 <-> 1224\n541 <-> 1068, 1320\n542 <-> 1332\n543 <-> 543, 1177\n544 <-> 1404, 1567\n545 <-> 842\n546 <-> 86, 328, 1785\n547 <-> 892, 1973\n548 <-> 1686\n549 <-> 416, 595, 1735\n550 <-> 1928\n551 <-> 850\n552 <-> 552\n553 <-> 27\n554 <-> 554\n555 <-> 138\n556 <-> 443, 1389\n557 <-> 748, 1656\n558 <-> 758\n559 <-> 596, 1812\n560 <-> 40\n561 <-> 6\n562 <-> 562, 627, 1715\n563 <-> 407, 776, 999\n564 <-> 263, 633, 962, 1130, 1653\n565 <-> 998\n566 <-> 355\n567 <-> 676, 1358\n568 <-> 871, 1313, 1853\n569 <-> 226\n570 <-> 60, 1423\n571 <-> 571, 880\n572 <-> 778, 896, 1251\n573 <-> 132, 685\n574 <-> 1212\n575 <-> 76, 1320, 1593\n576 <-> 1237, 1760\n577 <-> 410\n578 <-> 1150, 1511, 1668\n579 <-> 228, 1219, 1244\n580 <-> 701\n581 <-> 20\n582 <-> 122, 1525\n583 <-> 628, 1802\n584 <-> 154, 272\n585 <-> 698, 743, 1466, 1521\n586 <-> 437, 1394\n587 <-> 211, 212, 1856\n588 <-> 1989\n589 <-> 451\n590 <-> 644, 1192\n591 <-> 591\n592 <-> 984, 1880\n593 <-> 455, 789\n594 <-> 3, 1526, 1844, 1902\n595 <-> 549, 715, 1981\n596 <-> 427, 559, 1316\n597 <-> 1043, 1225\n598 <-> 932\n599 <-> 1064, 1065\n600 <-> 6, 465\n601 <-> 756, 946, 1050, 1570\n602 <-> 350, 1809\n603 <-> 532, 1010, 1060\n604 <-> 390, 729\n605 <-> 441\n606 <-> 290, 366, 404\n607 <-> 192\n608 <-> 1826\n609 <-> 953\n610 <-> 68\n611 <-> 32, 868\n612 <-> 1213\n613 <-> 454, 720\n614 <-> 1872\n615 <-> 615, 829, 1762\n616 <-> 990, 1784\n617 <-> 114, 462\n618 <-> 163, 1508\n619 <-> 483\n620 <-> 686, 1446\n621 <-> 296\n622 <-> 622\n623 <-> 195, 252, 341, 780, 1078\n624 <-> 507\n625 <-> 194, 1329\n626 <-> 346\n627 <-> 562\n628 <-> 5, 583, 1876\n629 <-> 1027, 1342, 1827\n630 <-> 305, 1829\n631 <-> 349, 497, 1248, 1728\n632 <-> 1552\n633 <-> 564\n634 <-> 875, 1513\n635 <-> 1150, 1410\n636 <-> 305\n637 <-> 637\n638 <-> 281, 1877\n639 <-> 535\n640 <-> 75, 649, 804\n641 <-> 967, 1739\n642 <-> 1114, 1739\n643 <-> 897, 981\n644 <-> 245, 447, 590, 960\n645 <-> 788, 1064, 1342\n646 <-> 1217\n647 <-> 675, 910, 1021\n648 <-> 70, 356, 1893\n649 <-> 640\n650 <-> 335, 1903\n651 <-> 651\n652 <-> 758, 1836\n653 <-> 538, 1515\n654 <-> 902, 1322\n655 <-> 126, 175\n656 <-> 945, 1247\n657 <-> 1957\n658 <-> 227, 1231\n659 <-> 737\n660 <-> 915\n661 <-> 692, 1299\n662 <-> 457, 962, 1081\n663 <-> 1410, 1852\n664 <-> 664, 1969\n665 <-> 872\n666 <-> 14\n667 <-> 274, 1871\n668 <-> 994\n669 <-> 1419, 1657\n670 <-> 1275\n671 <-> 671, 826\n672 <-> 275, 928, 1330, 1619\n673 <-> 74, 737, 1208\n674 <-> 1863\n675 <-> 150, 427, 647\n676 <-> 212, 421, 567\n677 <-> 261, 367, 677, 1023, 1306, 1405, 1725\n678 <-> 87\n679 <-> 1905\n680 <-> 43, 419, 517, 1232, 1382, 1395, 1875\n681 <-> 1845\n682 <-> 429, 1368, 1625, 1990\n683 <-> 152, 924, 1234\n684 <-> 1247, 1628\n685 <-> 183, 573\n686 <-> 620, 1184, 1867\n687 <-> 1080, 1636\n688 <-> 140, 1205, 1363\n689 <-> 1418, 1494\n690 <-> 496\n691 <-> 1013, 1178\n692 <-> 58, 661, 1324, 1366\n693 <-> 462, 693, 852\n694 <-> 694\n695 <-> 717\n696 <-> 53, 299, 1979\n697 <-> 164\n698 <-> 585\n699 <-> 1532\n700 <-> 855\n701 <-> 580, 744\n702 <-> 1198, 1240\n703 <-> 332, 354\n704 <-> 1361\n705 <-> 1101\n706 <-> 501\n707 <-> 707\n708 <-> 76, 795, 1235, 1302\n709 <-> 403, 404\n710 <-> 806, 1358\n711 <-> 711\n712 <-> 924, 1569, 1990\n713 <-> 1870\n714 <-> 147, 1507\n715 <-> 595\n716 <-> 143, 1039\n717 <-> 695, 1979\n718 <-> 1476\n719 <-> 529, 1061\n720 <-> 613\n721 <-> 50, 389, 1765\n722 <-> 1058\n723 <-> 723, 773, 1214\n724 <-> 724\n725 <-> 245, 321\n726 <-> 938, 1010, 1366, 1670\n727 <-> 1706\n728 <-> 258, 1264\n729 <-> 604, 729, 1396\n730 <-> 1184\n731 <-> 1524\n732 <-> 119, 1962\n733 <-> 1665, 1761\n734 <-> 291\n735 <-> 1022\n736 <-> 142, 169, 1855\n737 <-> 83, 249, 659, 673\n738 <-> 933\n739 <-> 1461, 1637\n740 <-> 338, 1065\n741 <-> 857, 943, 1100\n742 <-> 742, 1400\n743 <-> 2, 585, 743\n744 <-> 72, 701, 1417, 1588\n745 <-> 745\n746 <-> 21, 1433, 1714\n747 <-> 244\n748 <-> 557\n749 <-> 1225\n750 <-> 303, 467\n751 <-> 33\n752 <-> 851\n753 <-> 1398\n754 <-> 1293\n755 <-> 452, 471, 1868\n756 <-> 601\n757 <-> 1350, 1414\n758 <-> 488, 558, 652\n759 <-> 25, 1615\n760 <-> 184, 1274\n761 <-> 761\n762 <-> 322, 819\n763 <-> 14, 359, 511, 1542\n764 <-> 191\n765 <-> 1168\n766 <-> 269, 1167\n767 <-> 1109\n768 <-> 1784\n769 <-> 30, 769\n770 <-> 1328\n771 <-> 99, 244, 1310\n772 <-> 1378\n773 <-> 723, 882\n774 <-> 12\n775 <-> 185\n776 <-> 563\n777 <-> 817, 1559\n778 <-> 572, 1198\n779 <-> 1134\n780 <-> 623, 1645\n781 <-> 781\n782 <-> 990, 1387, 1755\n783 <-> 1015, 1391\n784 <-> 474, 538, 1531, 1804\n785 <-> 1802\n786 <-> 208, 1357\n787 <-> 787, 1233\n788 <-> 645\n789 <-> 536, 593, 1691\n790 <-> 870, 1901\n791 <-> 1888\n792 <-> 490, 1469, 1999\n793 <-> 15, 220, 1284, 1684, 1814\n794 <-> 1648\n795 <-> 708\n796 <-> 454, 1286\n797 <-> 797, 1014, 1028\n798 <-> 1079, 1531\n799 <-> 1159, 1351, 1526\n800 <-> 228, 1176, 1819\n801 <-> 1018\n802 <-> 1735\n803 <-> 68, 414, 1374, 1623\n804 <-> 640, 867, 1955\n805 <-> 805, 1843\n806 <-> 710\n807 <-> 80, 482, 538\n808 <-> 28\n809 <-> 240, 1246, 1582\n810 <-> 810, 1005\n811 <-> 811\n812 <-> 812, 1359\n813 <-> 408, 813\n814 <-> 356, 383\n815 <-> 203, 237, 848, 1720\n816 <-> 816\n817 <-> 777\n818 <-> 1169, 1828\n819 <-> 762\n820 <-> 820, 1557\n821 <-> 25, 510, 1288\n822 <-> 1073, 1883\n823 <-> 330, 925, 1323, 1883\n824 <-> 61, 353, 1820\n825 <-> 91, 1652\n826 <-> 671\n827 <-> 1183\n828 <-> 843\n829 <-> 615, 1661\n830 <-> 22\n831 <-> 507, 1054, 1439\n832 <-> 855\n833 <-> 171, 994, 1020\n834 <-> 1706\n835 <-> 42, 1951\n836 <-> 836\n837 <-> 1590\n838 <-> 1001\n839 <-> 175, 1329\n840 <-> 1274\n841 <-> 1933\n842 <-> 179, 545, 1771\n843 <-> 168, 828, 1032\n844 <-> 847, 1790\n845 <-> 529\n846 <-> 511\n847 <-> 844, 1077, 1172\n848 <-> 815, 1338, 1397, 1452\n849 <-> 1485, 1642\n850 <-> 551, 1630\n851 <-> 752, 1691, 1850\n852 <-> 693\n853 <-> 518, 1208, 1638, 1678\n854 <-> 149\n855 <-> 700, 832, 1450\n856 <-> 856\n857 <-> 741\n858 <-> 1891\n859 <-> 160, 1295, 1483\n860 <-> 373, 1214\n861 <-> 1134, 1564, 1961\n862 <-> 862, 1794\n863 <-> 942, 1671\n864 <-> 864\n865 <-> 1463, 1685\n866 <-> 1411\n867 <-> 804, 1492\n868 <-> 388, 611\n869 <-> 1417\n870 <-> 790, 872, 1910\n871 <-> 450, 568\n872 <-> 665, 870\n873 <-> 473\n874 <-> 0, 1000, 1147, 1534\n875 <-> 634, 1373, 1563\n876 <-> 526, 1517\n877 <-> 1911\n878 <-> 878\n879 <-> 8, 1887\n880 <-> 571, 927\n881 <-> 1945\n882 <-> 773\n883 <-> 909, 1141\n884 <-> 1865\n885 <-> 123, 1506\n886 <-> 213, 1511\n887 <-> 1413\n888 <-> 1640\n889 <-> 1629\n890 <-> 890, 964, 1894\n891 <-> 1242\n892 <-> 498, 547, 1082\n893 <-> 1035, 1555\n894 <-> 436, 1108\n895 <-> 1506, 1991\n896 <-> 572, 1339\n897 <-> 643, 1758\n898 <-> 967, 1481\n899 <-> 1094, 1791, 1976\n900 <-> 900, 1003\n901 <-> 469, 1420, 1751\n902 <-> 654, 1503\n903 <-> 498, 903, 1230\n904 <-> 1226\n905 <-> 313, 1208, 1749\n906 <-> 1276, 1541\n907 <-> 508, 1479\n908 <-> 463\n909 <-> 883, 909\n910 <-> 647\n911 <-> 41, 57, 1578\n912 <-> 264\n913 <-> 913, 1236\n914 <-> 332, 1800\n915 <-> 501, 660, 1386, 1429\n916 <-> 94, 104, 458, 1075, 1899\n917 <-> 186\n918 <-> 323\n919 <-> 374\n920 <-> 920\n921 <-> 1460\n922 <-> 164, 922\n923 <-> 1041\n924 <-> 48, 169, 683, 712, 1107, 1700\n925 <-> 823\n926 <-> 319, 1381\n927 <-> 880\n928 <-> 82, 473, 672, 1201\n929 <-> 424\n930 <-> 930, 1569\n931 <-> 398, 992\n932 <-> 280, 537, 598, 1292\n933 <-> 738, 1368\n934 <-> 426, 1161\n935 <-> 1086\n936 <-> 55, 427\n937 <-> 92, 231\n938 <-> 726, 1304\n939 <-> 958\n940 <-> 447, 1222\n941 <-> 87\n942 <-> 863\n943 <-> 741, 1421, 1832\n944 <-> 46, 111\n945 <-> 492, 656, 1353\n946 <-> 601\n947 <-> 1631\n948 <-> 948\n949 <-> 1434\n950 <-> 1594\n951 <-> 67, 1016, 1478\n952 <-> 1641\n953 <-> 609, 1176, 1513, 1714, 1958\n954 <-> 954\n955 <-> 955\n956 <-> 982, 1217\n957 <-> 91, 1106\n958 <-> 939, 1199, 1303, 1944\n959 <-> 1875\n960 <-> 644\n961 <-> 1619\n962 <-> 564, 662, 1884\n963 <-> 1015, 1851\n964 <-> 890\n965 <-> 1002\n966 <-> 1793\n967 <-> 641, 898\n968 <-> 968\n969 <-> 233, 273, 1212, 1978\n970 <-> 1499, 1513\n971 <-> 1106\n972 <-> 1738\n973 <-> 973\n974 <-> 1646, 1967\n975 <-> 1066\n976 <-> 1287, 1640\n977 <-> 1954\n978 <-> 489, 1697\n979 <-> 331\n980 <-> 529\n981 <-> 396, 643, 1376, 1925\n982 <-> 956\n983 <-> 1325, 1831\n984 <-> 161, 592, 1579\n985 <-> 239\n986 <-> 1104, 1830\n987 <-> 1419\n988 <-> 90, 1718, 1737\n989 <-> 1278, 1635\n990 <-> 375, 616, 782, 1973\n991 <-> 1852\n992 <-> 931, 1722, 1724\n993 <-> 1099\n994 <-> 668, 833\n995 <-> 1140, 1803\n996 <-> 996, 1673\n997 <-> 997\n998 <-> 565, 998\n999 <-> 563, 999\n1000 <-> 874, 1160\n1001 <-> 193, 838, 1011, 1710\n1002 <-> 965, 1571\n1003 <-> 900\n1004 <-> 1004\n1005 <-> 810, 1775\n1006 <-> 1006\n1007 <-> 306, 1447\n1008 <-> 61\n1009 <-> 1022, 1320\n1010 <-> 191, 603, 726, 1344\n1011 <-> 401, 1001\n1012 <-> 1112, 1194\n1013 <-> 691, 1031\n1014 <-> 797\n1015 <-> 783, 963\n1016 <-> 951, 1989\n1017 <-> 1213, 1818, 1824\n1018 <-> 801, 1062\n1019 <-> 1327\n1020 <-> 534, 833\n1021 <-> 22, 647, 1210\n1022 <-> 735, 1009, 1413\n1023 <-> 434, 677\n1024 <-> 1071\n1025 <-> 289, 1416, 1704\n1026 <-> 373\n1027 <-> 428, 629\n1028 <-> 492, 797, 1113\n1029 <-> 1038, 1268\n1030 <-> 225, 1430\n1031 <-> 1013\n1032 <-> 843\n1033 <-> 513\n1034 <-> 1179\n1035 <-> 139, 893, 1151\n1036 <-> 346, 1598\n1037 <-> 141, 1649\n1038 <-> 60, 1029\n1039 <-> 716, 1039\n1040 <-> 1040, 1042\n1041 <-> 202, 923, 1041\n1042 <-> 1040, 1918\n1043 <-> 597\n1044 <-> 202\n1045 <-> 1045\n1046 <-> 253, 1394, 1770\n1047 <-> 32, 240, 1748\n1048 <-> 135, 1348\n1049 <-> 1071\n1050 <-> 99, 601, 1953\n1051 <-> 244, 1345\n1052 <-> 347, 1686\n1053 <-> 317\n1054 <-> 831, 1872\n1055 <-> 1062, 1123, 1574, 1680\n1056 <-> 112\n1057 <-> 168\n1058 <-> 7, 722\n1059 <-> 1059\n1060 <-> 603, 1277, 1669\n1061 <-> 719\n1062 <-> 1018, 1055\n1063 <-> 377\n1064 <-> 323, 599, 645, 1229, 1796\n1065 <-> 599, 740, 1394\n1066 <-> 975, 1867\n1067 <-> 404, 1252, 1922\n1068 <-> 230, 514, 541\n1069 <-> 198, 1102\n1070 <-> 1147\n1071 <-> 1024, 1049, 1088, 1188\n1072 <-> 218, 1434, 1447\n1073 <-> 822, 1546\n1074 <-> 7\n1075 <-> 451, 916, 1610\n1076 <-> 340\n1077 <-> 847\n1078 <-> 623, 1960\n1079 <-> 798\n1080 <-> 687\n1081 <-> 662, 1238\n1082 <-> 65, 108, 892\n1083 <-> 1396\n1084 <-> 225\n1085 <-> 128, 1513, 1528\n1086 <-> 47, 527, 935\n1087 <-> 1616, 1823, 1826\n1088 <-> 1071\n1089 <-> 412\n1090 <-> 150, 1652, 1865\n1091 <-> 1091\n1092 <-> 1742\n1093 <-> 1408\n1094 <-> 450, 899, 1719, 1783\n1095 <-> 18\n1096 <-> 1145\n1097 <-> 1571, 1971\n1098 <-> 162, 483, 1268\n1099 <-> 1, 993, 1099, 1584\n1100 <-> 741, 1100\n1101 <-> 368, 705\n1102 <-> 537, 1069\n1103 <-> 119, 1586, 1939\n1104 <-> 171, 986\n1105 <-> 1211, 1443, 1913\n1106 <-> 957, 971, 1568\n1107 <-> 924, 1336, 1487, 1831\n1108 <-> 894\n1109 <-> 767, 1159, 1525\n1110 <-> 1612, 1976\n1111 <-> 1980\n1112 <-> 1012, 1588\n1113 <-> 1028\n1114 <-> 642, 1197\n1115 <-> 23, 215, 501\n1116 <-> 1992\n1117 <-> 1117\n1118 <-> 247, 434, 438\n1119 <-> 187, 1215, 1843\n1120 <-> 1267, 1270\n1121 <-> 1591, 1820\n1122 <-> 1531, 1747\n1123 <-> 1055\n1124 <-> 1654\n1125 <-> 1497\n1126 <-> 123, 1425, 1729\n1127 <-> 216, 242, 509\n1128 <-> 1580\n1129 <-> 251, 1302\n1130 <-> 564\n1131 <-> 1335, 1595\n1132 <-> 30\n1133 <-> 5, 1655\n1134 <-> 779, 861\n1135 <-> 1135\n1136 <-> 7\n1137 <-> 27\n1138 <-> 199\n1139 <-> 271, 1474\n1140 <-> 995, 1430, 1474\n1141 <-> 883\n1142 <-> 70, 1886\n1143 <-> 52, 1143\n1144 <-> 1554\n1145 <-> 1096, 1145\n1146 <-> 1776, 1917\n1147 <-> 874, 1070, 1240\n1148 <-> 1444, 1451, 1961\n1149 <-> 171\n1150 <-> 578, 635, 1583\n1151 <-> 1035, 1348\n1152 <-> 1661\n1153 <-> 1552\n1154 <-> 1154, 1947\n1155 <-> 1155, 1618\n1156 <-> 271, 1677\n1157 <-> 1491, 1592, 1884\n1158 <-> 72, 1220\n1159 <-> 799, 1109\n1160 <-> 1000\n1161 <-> 934, 1951\n1162 <-> 178, 1242, 1905\n1163 <-> 1474\n1164 <-> 261\n1165 <-> 106, 1165, 1676\n1166 <-> 1166\n1167 <-> 766, 1450, 1912, 1927\n1168 <-> 246, 765\n1169 <-> 46, 818\n1170 <-> 1689\n1171 <-> 395\n1172 <-> 847, 1250, 1689\n1173 <-> 1173\n1174 <-> 1893\n1175 <-> 1294\n1176 <-> 800, 953\n1177 <-> 543, 1315\n1178 <-> 322, 464, 691\n1179 <-> 1034, 1238\n1180 <-> 319\n1181 <-> 1996\n1182 <-> 178, 1881\n1183 <-> 827, 1552\n1184 <-> 686, 730\n1185 <-> 110, 1281\n1186 <-> 539, 1217, 1809\n1187 <-> 1242, 1257\n1188 <-> 302, 1071, 1949, 1980\n1189 <-> 1319\n1190 <-> 1947\n1191 <-> 1191\n1192 <-> 590\n1193 <-> 1204, 1260\n1194 <-> 1012\n1195 <-> 497\n1196 <-> 1196, 1516\n1197 <-> 1114\n1198 <-> 702, 778\n1199 <-> 282, 958\n1200 <-> 1664\n1201 <-> 928\n1202 <-> 1202, 1355\n1203 <-> 1203, 1966\n1204 <-> 469, 1193\n1205 <-> 52, 688\n1206 <-> 387\n1207 <-> 1993\n1208 <-> 673, 853, 905\n1209 <-> 136, 1462\n1210 <-> 1021\n1211 <-> 1105, 1211\n1212 <-> 56, 574, 969, 1705\n1213 <-> 612, 1017, 1663\n1214 <-> 723, 860\n1215 <-> 1119, 1615\n1216 <-> 1524, 1798\n1217 <-> 646, 956, 1186\n1218 <-> 235, 1580\n1219 <-> 113, 579, 1841\n1220 <-> 255, 1158, 1681\n1221 <-> 1331, 1360\n1222 <-> 940\n1223 <-> 29, 1237\n1224 <-> 540, 1523\n1225 <-> 597, 749, 1225\n1226 <-> 904, 1226\n1227 <-> 1934\n1228 <-> 1228\n1229 <-> 87, 1064\n1230 <-> 903\n1231 <-> 293, 658, 1402\n1232 <-> 680, 1417\n1233 <-> 787\n1234 <-> 683\n1235 <-> 708\n1236 <-> 278, 913\n1237 <-> 295, 576, 1223\n1238 <-> 1081, 1179, 1326, 1806\n1239 <-> 338\n1240 <-> 702, 1147\n1241 <-> 1921\n1242 <-> 891, 1162, 1187, 1965\n1243 <-> 134, 461, 528\n1244 <-> 579\n1245 <-> 400, 1245, 1864\n1246 <-> 809, 1772\n1247 <-> 656, 684\n1248 <-> 287, 631\n1249 <-> 91, 111, 1782\n1250 <-> 1172\n1251 <-> 572, 1508\n1252 <-> 277, 1067, 1505\n1253 <-> 21, 1639\n1254 <-> 26, 149, 250\n1255 <-> 190, 495\n1256 <-> 1256, 1286\n1257 <-> 101, 471, 1187\n1258 <-> 3, 233, 446, 1309\n1259 <-> 1398\n1260 <-> 1193, 1517\n1261 <-> 1300, 1807\n1262 <-> 1508\n1263 <-> 1973\n1264 <-> 176, 728, 1307\n1265 <-> 1265\n1266 <-> 1507, 1720\n1267 <-> 1120\n1268 <-> 364, 1029, 1098\n1269 <-> 1875\n1270 <-> 1120, 1915\n1271 <-> 448\n1272 <-> 6\n1273 <-> 1273\n1274 <-> 442, 760, 840\n1275 <-> 197, 670, 1450\n1276 <-> 906\n1277 <-> 1060\n1278 <-> 989, 1878, 1986\n1279 <-> 1279, 1848\n1280 <-> 435, 1915\n1281 <-> 1185\n1282 <-> 524\n1283 <-> 1678\n1284 <-> 793, 1706\n1285 <-> 1642\n1286 <-> 796, 1256, 1630\n1287 <-> 976, 1287\n1288 <-> 821\n1289 <-> 415\n1290 <-> 127, 256\n1291 <-> 209\n1292 <-> 932\n1293 <-> 754, 1293\n1294 <-> 180, 1175, 1882\n1295 <-> 859\n1296 <-> 360, 1910\n1297 <-> 258, 1426\n1298 <-> 205\n1299 <-> 661, 1954\n1300 <-> 300, 368, 1261\n1301 <-> 1834, 1847\n1302 <-> 708, 1129\n1303 <-> 958\n1304 <-> 938\n1305 <-> 1305\n1306 <-> 677\n1307 <-> 1264\n1308 <-> 282, 481\n1309 <-> 1258\n1310 <-> 771, 1392\n1311 <-> 203, 281, 424\n1312 <-> 433, 1312, 1671\n1313 <-> 568, 1409, 1861\n1314 <-> 221, 476, 1549\n1315 <-> 1177\n1316 <-> 596\n1317 <-> 1832\n1318 <-> 1468\n1319 <-> 144, 1189, 1319, 1542, 1923\n1320 <-> 210, 541, 575, 1009\n1321 <-> 456\n1322 <-> 654\n1323 <-> 823, 1385\n1324 <-> 692\n1325 <-> 85, 88, 983\n1326 <-> 1238\n1327 <-> 1019, 1387\n1328 <-> 153, 770\n1329 <-> 625, 839\n1330 <-> 672\n1331 <-> 392, 1221\n1332 <-> 245, 542\n1333 <-> 1333\n1334 <-> 405, 1987\n1335 <-> 1131, 1744\n1336 <-> 1107\n1337 <-> 314, 1379\n1338 <-> 848\n1339 <-> 896, 1523\n1340 <-> 211, 1460\n1341 <-> 352, 1459, 1849, 1878\n1342 <-> 629, 645, 1752\n1343 <-> 129\n1344 <-> 1010\n1345 <-> 139, 1051\n1346 <-> 1845\n1347 <-> 76, 506\n1348 <-> 1048, 1151\n1349 <-> 302\n1350 <-> 138, 306, 757\n1351 <-> 156, 209, 799, 1916\n1352 <-> 371, 1352\n1353 <-> 945, 1811\n1354 <-> 1871\n1355 <-> 1202, 1533\n1356 <-> 1548, 1566, 1840\n1357 <-> 312, 786\n1358 <-> 567, 710\n1359 <-> 812\n1360 <-> 327, 1221, 1659\n1361 <-> 704, 1901\n1362 <-> 143, 266, 1551\n1363 <-> 516, 688\n1364 <-> 333\n1365 <-> 421\n1366 <-> 692, 726, 1972\n1367 <-> 1367, 1946\n1368 <-> 682, 933, 1465, 1478\n1369 <-> 1369\n1370 <-> 189\n1371 <-> 215, 1572, 1870\n1372 <-> 1372\n1373 <-> 875\n1374 <-> 803\n1375 <-> 284\n1376 <-> 981, 1545\n1377 <-> 31, 285\n1378 <-> 772, 1378\n1379 <-> 241, 1337, 1587\n1380 <-> 20, 1856\n1381 <-> 228, 926\n1382 <-> 680\n1383 <-> 525\n1384 <-> 1792\n1385 <-> 1323, 1521\n1386 <-> 915\n1387 <-> 782, 1327\n1388 <-> 395, 1416, 1525\n1389 <-> 376, 556\n1390 <-> 1390, 1406\n1391 <-> 783, 1550, 1595\n1392 <-> 365, 1310, 1793\n1393 <-> 1505, 1667\n1394 <-> 12, 586, 1046, 1065\n1395 <-> 680\n1396 <-> 729, 1083\n1397 <-> 848, 1944\n1398 <-> 449, 753, 1259\n1399 <-> 526\n1400 <-> 742\n1401 <-> 1401\n1402 <-> 1231\n1403 <-> 1967\n1404 <-> 544\n1405 <-> 677\n1406 <-> 1390\n1407 <-> 291, 1407\n1408 <-> 1093, 1947\n1409 <-> 1313\n1410 <-> 236, 635, 663\n1411 <-> 151, 866\n1412 <-> 1663\n1413 <-> 887, 1022\n1414 <-> 757, 1666\n1415 <-> 130, 310\n1416 <-> 1025, 1388\n1417 <-> 744, 869, 1232, 1641\n1418 <-> 689\n1419 <-> 669, 987, 1419, 1431\n1420 <-> 901\n1421 <-> 943\n1422 <-> 1422\n1423 <-> 173, 570\n1424 <-> 1424\n1425 <-> 1126\n1426 <-> 66, 1297\n1427 <-> 1466\n1428 <-> 1523, 1626\n1429 <-> 172, 915\n1430 <-> 1030, 1140\n1431 <-> 504, 1419\n1432 <-> 457\n1433 <-> 168, 746\n1434 <-> 949, 1072, 1474\n1435 <-> 1688\n1436 <-> 24, 1624\n1437 <-> 1903\n1438 <-> 1438, 1447\n1439 <-> 831\n1440 <-> 1788\n1441 <-> 1441\n1442 <-> 180\n1443 <-> 1105\n1444 <-> 1148\n1445 <-> 94, 1693\n1446 <-> 15, 620\n1447 <-> 1007, 1072, 1438\n1448 <-> 1617\n1449 <-> 500\n1450 <-> 855, 1167, 1275\n1451 <-> 1148, 1556\n1452 <-> 165, 848\n1453 <-> 90, 1726\n1454 <-> 320, 1869\n1455 <-> 37\n1456 <-> 58\n1457 <-> 288\n1458 <-> 1637\n1459 <-> 1341\n1460 <-> 921, 1340\n1461 <-> 739, 1621\n1462 <-> 248, 1209\n1463 <-> 865\n1464 <-> 1747\n1465 <-> 1368\n1466 <-> 585, 1427, 1655\n1467 <-> 1467\n1468 <-> 1318, 1468\n1469 <-> 792\n1470 <-> 236, 423\n1471 <-> 145\n1472 <-> 1485, 1857\n1473 <-> 4, 254\n1474 <-> 1139, 1140, 1163, 1434\n1475 <-> 396, 1923\n1476 <-> 467, 718\n1477 <-> 16, 1478\n1478 <-> 951, 1368, 1477\n1479 <-> 305, 907, 1675\n1480 <-> 207, 448, 496\n1481 <-> 898, 1890\n1482 <-> 1595\n1483 <-> 859, 1502\n1484 <-> 1545\n1485 <-> 308, 849, 1472\n1486 <-> 290\n1487 <-> 1107\n1488 <-> 76\n1489 <-> 375\n1490 <-> 1490\n1491 <-> 1157, 1510\n1492 <-> 867, 1492\n1493 <-> 297, 1724\n1494 <-> 689, 1494\n1495 <-> 12\n1496 <-> 1636\n1497 <-> 66, 1125\n1498 <-> 429\n1499 <-> 970\n1500 <-> 1664\n1501 <-> 1954\n1502 <-> 306, 1483\n1503 <-> 351, 902\n1504 <-> 373, 1980\n1505 <-> 1252, 1393\n1506 <-> 885, 895\n1507 <-> 118, 262, 714, 1266\n1508 <-> 618, 1251, 1262, 1611\n1509 <-> 315\n1510 <-> 379, 1491\n1511 <-> 578, 886\n1512 <-> 40\n1513 <-> 634, 953, 970, 1085\n1514 <-> 67\n1515 <-> 653\n1516 <-> 92, 1196, 1647\n1517 <-> 876, 1260\n1518 <-> 238, 453\n1519 <-> 416, 1936\n1520 <-> 1609\n1521 <-> 585, 1385\n1522 <-> 44, 499, 532\n1523 <-> 1224, 1339, 1428, 1589\n1524 <-> 731, 1216, 1524\n1525 <-> 582, 1109, 1388\n1526 <-> 594, 799\n1527 <-> 1900, 1906\n1528 <-> 1085\n1529 <-> 1529, 1622\n1530 <-> 134, 1994\n1531 <-> 784, 798, 1122\n1532 <-> 699, 1532\n1533 <-> 1355, 1997\n1534 <-> 874, 1992\n1535 <-> 1777\n1536 <-> 1798\n1537 <-> 84\n1538 <-> 1740\n1539 <-> 1539\n1540 <-> 341\n1541 <-> 186, 351, 906\n1542 <-> 763, 1319\n1543 <-> 437, 1675\n1544 <-> 340, 1544\n1545 <-> 1376, 1484\n1546 <-> 1073, 1987\n1547 <-> 344, 1769\n1548 <-> 1356, 1990\n1549 <-> 214, 1314\n1550 <-> 1391\n1551 <-> 1362, 1929\n1552 <-> 406, 632, 1153, 1183\n1553 <-> 1916\n1554 <-> 1144, 1721, 1984\n1555 <-> 893\n1556 <-> 1451, 1963\n1557 <-> 820\n1558 <-> 1558, 1623\n1559 <-> 777, 1674\n1560 <-> 1560\n1561 <-> 523, 1564\n1562 <-> 205, 1773, 1948, 1985\n1563 <-> 34, 875\n1564 <-> 861, 1561\n1565 <-> 1941\n1566 <-> 1356, 1779\n1567 <-> 544, 1567\n1568 <-> 1106\n1569 <-> 712, 930\n1570 <-> 601\n1571 <-> 1002, 1097\n1572 <-> 1371\n1573 <-> 1573\n1574 <-> 1055, 1942\n1575 <-> 132\n1576 <-> 328\n1577 <-> 241\n1578 <-> 911\n1579 <-> 984\n1580 <-> 427, 1128, 1218\n1581 <-> 486\n1582 <-> 491, 809, 1751, 1842\n1583 <-> 1150\n1584 <-> 1099, 1839\n1585 <-> 1817\n1586 <-> 1103\n1587 <-> 1379\n1588 <-> 744, 1112\n1589 <-> 1523\n1590 <-> 837, 1590\n1591 <-> 29, 1121, 1603\n1592 <-> 1157, 1592\n1593 <-> 575\n1594 <-> 950, 1767\n1595 <-> 339, 1131, 1391, 1482\n1596 <-> 1596\n1597 <-> 1745\n1598 <-> 1036\n1599 <-> 226, 510\n1600 <-> 38\n1601 <-> 485, 1695, 1801\n1602 <-> 205\n1603 <-> 1591\n1604 <-> 1604\n1605 <-> 5, 201, 479\n1606 <-> 313\n1607 <-> 432\n1608 <-> 145, 1906\n1609 <-> 276, 504, 1520\n1610 <-> 1075\n1611 <-> 1508, 1641\n1612 <-> 1110\n1613 <-> 285\n1614 <-> 152\n1615 <-> 351, 759, 1215\n1616 <-> 1087\n1617 <-> 396, 1448\n1618 <-> 1155, 1971\n1619 <-> 672, 961\n1620 <-> 179, 1739\n1621 <-> 1461\n1622 <-> 1529, 1893\n1623 <-> 803, 1558\n1624 <-> 500, 1436\n1625 <-> 682\n1626 <-> 131, 1428\n1627 <-> 314\n1628 <-> 95, 684\n1629 <-> 889, 1629\n1630 <-> 850, 1286\n1631 <-> 947, 1631, 1952\n1632 <-> 386, 1646\n1633 <-> 181\n1634 <-> 6, 1634\n1635 <-> 374, 989\n1636 <-> 687, 1496, 1839\n1637 <-> 54, 259, 739, 1458\n1638 <-> 157, 853\n1639 <-> 1253\n1640 <-> 888, 976, 1679\n1641 <-> 952, 1417, 1611, 1810\n1642 <-> 849, 1285, 1995\n1643 <-> 1774, 1993, 1996\n1644 <-> 516\n1645 <-> 780\n1646 <-> 107, 974, 1632\n1647 <-> 1516\n1648 <-> 77, 153, 794\n1649 <-> 1037\n1650 <-> 1843\n1651 <-> 236\n1652 <-> 825, 1090\n1653 <-> 564\n1654 <-> 1124, 1977\n1655 <-> 1133, 1466\n1656 <-> 154, 357, 557\n1657 <-> 669\n1658 <-> 1670\n1659 <-> 1360, 1840\n1660 <-> 69\n1661 <-> 286, 494, 829, 1152\n1662 <-> 1662, 1663\n1663 <-> 1213, 1412, 1662\n1664 <-> 49, 371, 1200, 1500, 1937\n1665 <-> 733\n1666 <-> 1414\n1667 <-> 329, 365, 1393\n1668 <-> 578, 1934\n1669 <-> 1060, 1935\n1670 <-> 726, 1658\n1671 <-> 863, 1312, 1919\n1672 <-> 255\n1673 <-> 996\n1674 <-> 190, 1559, 1815\n1675 <-> 1479, 1543\n1676 <-> 1165\n1677 <-> 1156\n1678 <-> 853, 1283, 1889\n1679 <-> 1640\n1680 <-> 1055\n1681 <-> 34, 1220\n1682 <-> 1690, 1757\n1683 <-> 1879\n1684 <-> 351, 793\n1685 <-> 504, 865\n1686 <-> 548, 1052, 1686\n1687 <-> 275\n1688 <-> 151, 164, 1435\n1689 <-> 63, 1170, 1172\n1690 <-> 38, 1682\n1691 <-> 391, 411, 789, 851\n1692 <-> 241\n1693 <-> 1445\n1694 <-> 1717\n1695 <-> 1601\n1696 <-> 14\n1697 <-> 978, 1992\n1698 <-> 1997\n1699 <-> 260\n1700 <-> 924\n1701 <-> 215, 303\n1702 <-> 1742\n1703 <-> 519, 1905\n1704 <-> 1025\n1705 <-> 105, 1212\n1706 <-> 727, 834, 1284\n1707 <-> 1707\n1708 <-> 257\n1709 <-> 218\n1710 <-> 1001\n1711 <-> 60, 204\n1712 <-> 1712\n1713 <-> 133, 207, 388\n1714 <-> 746, 953\n1715 <-> 562\n1716 <-> 1716\n1717 <-> 192, 1694\n1718 <-> 988\n1719 <-> 1094\n1720 <-> 815, 1266\n1721 <-> 1554\n1722 <-> 992\n1723 <-> 1723\n1724 <-> 992, 1493, 1745\n1725 <-> 677, 1731\n1726 <-> 29, 1453\n1727 <-> 420, 1858\n1728 <-> 631\n1729 <-> 1126\n1730 <-> 297, 1825\n1731 <-> 1725\n1732 <-> 1732, 1799\n1733 <-> 295\n1734 <-> 131\n1735 <-> 549, 802\n1736 <-> 10, 1757\n1737 <-> 988, 1768\n1738 <-> 972, 1844\n1739 <-> 641, 642, 1620, 1739\n1740 <-> 1538, 1961\n1741 <-> 1935\n1742 <-> 1092, 1702, 1903\n1743 <-> 1845, 1945\n1744 <-> 1335, 1744\n1745 <-> 1597, 1724, 1745\n1746 <-> 1975\n1747 <-> 209, 1122, 1464\n1748 <-> 1047\n1749 <-> 905\n1750 <-> 377, 1996\n1751 <-> 901, 1582\n1752 <-> 1342\n1753 <-> 1974, 1998\n1754 <-> 15, 102\n1755 <-> 782, 1821\n1756 <-> 1756\n1757 <-> 241, 1682, 1736, 1959\n1758 <-> 897\n1759 <-> 1871\n1760 <-> 576\n1761 <-> 733, 1761\n1762 <-> 615, 1882\n1763 <-> 1825\n1764 <-> 320\n1765 <-> 349, 721\n1766 <-> 1781\n1767 <-> 1594, 1767\n1768 <-> 1737\n1769 <-> 161, 385, 1547\n1770 <-> 1046\n1771 <-> 842, 1930\n1772 <-> 1246\n1773 <-> 1562\n1774 <-> 1643\n1775 <-> 1005\n1776 <-> 475, 483, 1146, 1822, 1928\n1777 <-> 1535, 1777\n1778 <-> 529, 1857\n1779 <-> 512, 1566\n1780 <-> 1780\n1781 <-> 55, 389, 1766\n1782 <-> 1249\n1783 <-> 181, 1094, 1933\n1784 <-> 616, 768\n1785 <-> 369, 546\n1786 <-> 493\n1787 <-> 307, 1787\n1788 <-> 1440, 1972\n1789 <-> 318\n1790 <-> 844, 1790\n1791 <-> 487, 899\n1792 <-> 189, 382, 1384\n1793 <-> 966, 1392\n1794 <-> 45, 862\n1795 <-> 1944\n1796 <-> 1064\n1797 <-> 33\n1798 <-> 1216, 1536\n1799 <-> 284, 1732, 1924\n1800 <-> 221, 914\n1801 <-> 1601\n1802 <-> 117, 583, 785\n1803 <-> 995\n1804 <-> 355, 784\n1805 <-> 129\n1806 <-> 1238, 1853\n1807 <-> 1261\n1808 <-> 461\n1809 <-> 180, 316, 602, 1186\n1810 <-> 1641\n1811 <-> 1353\n1812 <-> 159, 458, 559, 1833\n1813 <-> 1880\n1814 <-> 336, 793\n1815 <-> 399, 1674\n1816 <-> 1816\n1817 <-> 20, 1585\n1818 <-> 1017\n1819 <-> 800\n1820 <-> 824, 1121, 1898\n1821 <-> 1755\n1822 <-> 1776\n1823 <-> 1087\n1824 <-> 234, 1017\n1825 <-> 478, 1730, 1763\n1826 <-> 11, 384, 608, 1087, 1884\n1827 <-> 326, 629\n1828 <-> 33, 818\n1829 <-> 630\n1830 <-> 986\n1831 <-> 522, 983, 1107\n1832 <-> 943, 1317, 1860\n1833 <-> 369, 1812\n1834 <-> 1301\n1835 <-> 375\n1836 <-> 394, 652\n1837 <-> 36, 484\n1838 <-> 256, 1912\n1839 <-> 1584, 1636\n1840 <-> 93, 1356, 1659\n1841 <-> 1219\n1842 <-> 1582, 1892\n1843 <-> 805, 1119, 1650\n1844 <-> 208, 594, 1738\n1845 <-> 681, 1346, 1743\n1846 <-> 1846\n1847 <-> 1301, 1847\n1848 <-> 1279\n1849 <-> 1341\n1850 <-> 851, 1850\n1851 <-> 520, 963\n1852 <-> 524, 663, 991, 1936\n1853 <-> 568, 1806\n1854 <-> 405\n1855 <-> 736\n1856 <-> 587, 1380\n1857 <-> 1472, 1778, 1893\n1858 <-> 414, 1727, 1896, 1983\n1859 <-> 1859\n1860 <-> 280, 1832, 1895\n1861 <-> 1313\n1862 <-> 245\n1863 <-> 674, 1863\n1864 <-> 1245\n1865 <-> 884, 1090\n1866 <-> 418, 461\n1867 <-> 686, 1066\n1868 <-> 354, 755, 1909\n1869 <-> 238, 1454\n1870 <-> 713, 1371\n1871 <-> 667, 1354, 1759\n1872 <-> 253, 614, 1054\n1873 <-> 268\n1874 <-> 75, 1927\n1875 <-> 680, 959, 1269\n1876 <-> 628\n1877 <-> 20, 638\n1878 <-> 344, 1278, 1341, 1890\n1879 <-> 1683, 1879\n1880 <-> 199, 592, 1813\n1881 <-> 1182\n1882 <-> 196, 1294, 1762\n1883 <-> 822, 823\n1884 <-> 962, 1157, 1826\n1885 <-> 51, 1923\n1886 <-> 1142\n1887 <-> 294, 879\n1888 <-> 514, 791\n1889 <-> 1678\n1890 <-> 1481, 1878\n1891 <-> 17, 858\n1892 <-> 362, 1842\n1893 <-> 485, 648, 1174, 1622, 1857\n1894 <-> 890\n1895 <-> 1860\n1896 <-> 1858\n1897 <-> 1897\n1898 <-> 1820\n1899 <-> 916\n1900 <-> 1527\n1901 <-> 324, 790, 1361, 1901\n1902 <-> 594\n1903 <-> 650, 1437, 1742, 1903, 1968\n1904 <-> 317\n1905 <-> 679, 1162, 1703\n1906 <-> 1527, 1608, 1932\n1907 <-> 1907\n1908 <-> 1908\n1909 <-> 1868\n1910 <-> 870, 1296\n1911 <-> 223, 239, 402, 877\n1912 <-> 1167, 1838\n1913 <-> 1105\n1914 <-> 123, 166\n1915 <-> 1270, 1280\n1916 <-> 1351, 1553\n1917 <-> 1146\n1918 <-> 1042\n1919 <-> 1671\n1920 <-> 460\n1921 <-> 33, 1241\n1922 <-> 1067\n1923 <-> 1319, 1475, 1885\n1924 <-> 1799\n1925 <-> 290, 981\n1926 <-> 62, 460\n1927 <-> 1167, 1874\n1928 <-> 550, 1776\n1929 <-> 1551\n1930 <-> 1771\n1931 <-> 122, 386\n1932 <-> 1906\n1933 <-> 841, 1783\n1934 <-> 1227, 1668\n1935 <-> 1669, 1741\n1936 <-> 1519, 1852\n1937 <-> 71, 1664\n1938 <-> 283, 456\n1939 <-> 1103\n1940 <-> 0\n1941 <-> 222, 499, 1565, 1941\n1942 <-> 61, 311, 1574\n1943 <-> 161\n1944 <-> 193, 958, 1397, 1795\n1945 <-> 257, 881, 1743\n1946 <-> 1367\n1947 <-> 1154, 1190, 1408\n1948 <-> 1562, 1948\n1949 <-> 1188\n1950 <-> 348\n1951 <-> 178, 835, 1161\n1952 <-> 1631\n1953 <-> 1050\n1954 <-> 977, 1299, 1501\n1955 <-> 804\n1956 <-> 1956\n1957 <-> 323, 657\n1958 <-> 298, 953\n1959 <-> 1757\n1960 <-> 27, 1078\n1961 <-> 387, 861, 1148, 1740\n1962 <-> 732, 1962\n1963 <-> 1556\n1964 <-> 1964\n1965 <-> 1242\n1966 <-> 1203\n1967 <-> 974, 1403\n1968 <-> 1903\n1969 <-> 664\n1970 <-> 17, 509, 1970\n1971 <-> 1097, 1618\n1972 <-> 155, 1366, 1788\n1973 <-> 547, 990, 1263\n1974 <-> 184, 1753\n1975 <-> 229, 1746\n1976 <-> 899, 1110\n1977 <-> 165, 1654\n1978 <-> 969\n1979 <-> 696, 717\n1980 <-> 1111, 1188, 1504\n1981 <-> 595\n1982 <-> 1982\n1983 <-> 380, 1858\n1984 <-> 278, 1554\n1985 <-> 1562\n1986 <-> 1278\n1987 <-> 1334, 1546\n1988 <-> 404\n1989 <-> 588, 1016\n1990 <-> 682, 712, 1548\n1991 <-> 41, 895\n1992 <-> 1116, 1534, 1697\n1993 <-> 15, 1207, 1643\n1994 <-> 1530\n1995 <-> 1642\n1996 <-> 167, 1181, 1643, 1750\n1997 <-> 1533, 1698\n1998 <-> 95, 141, 1753\n1999 <-> 792" def puzzle1(): programs = [] already_visited = [] IOI = [0] #index of interest num_programs = 0 for program in pipes.split("\n"): programs.append([int(a) for a in program.split(">")[1].split(",")]) while len(IOI) != 0: for pipe in programs[IOI[0]]: if not pipe in IOI and not pipe in already_visited: IOI.append(pipe) already_visited.append(IOI[0]) IOI = IOI[1:] num_programs += 1 return num_programs def puzzle2(): programs = [] group_num = 0 for program in pipes.split("\n"): programs.append([int(a) for a in program.split(">")[1].split(",")]) groups = [-1] * len(programs) for i in range(len(programs)): if groups[i] == -1: groups[i] = group_num IOI = [i] already_visited = [] while len(IOI) != 0: for pipe in programs[IOI[0]]: if not pipe in IOI and not pipe in already_visited: IOI.append(pipe) already_visited.append(IOI[0]) groups[IOI[0]] = group_num IOI = IOI[1:] group_num += 1 return group_num if __name__ == "__main__": print("1: {}".format(puzzle1())) print("2: {}".format(puzzle2()))
"""EntryPointCalculator Entry/Buy: price > btm + atr/2 Exit/Sell: price < top - atr/2 """ BUY = 1 SELL = 2 class EntryPointCalculator(object): def __init__(self, trade_type=BUY, atr_factor=1.0): self.trade_type = trade_type self.atr_factor = atr_factor self.pivot = None self.wait_for_trade = False def __call__(self, tick): trade = False atr = tick["ATR"] * self.atr_factor if self.trade_type == BUY: if tick["Btm"]: self.pivot = tick["Close"] self.wait_for_trade = True if self.pivot and self.wait_for_trade and tick["Close"] >= self.pivot + atr / 2.0: self.wait_for_trade = False trade = True elif self.trade_type == SELL: if tick["Top"]: self.pivot = tick["Close"] self.wait_for_trade = True if self.pivot and self.wait_for_trade and tick["Close"] <= self.pivot - atr / 2.0: self.wait_for_trade = False trade = True return trade
class Edge: """Lightweight edge structure for a graph.""" __slots__ = "_origin","_destination","_element" def __init__(self, u, v, x): """Do not call constructor directly. Use Graph's insert_edge(u,v,x).""" self._origin = u self._destination = v self._element = x def endpoints(self): """Return (u,v) tuple for vertics u and v.""" return (self._origin,self._destination) def opposite(self,v): """Return a vertex that is opposite of v on this edge.""" return self._destination if v is self._origin else self._origin def element(self): """Return element associated with this edge.""" return self._element def __hash_(self): # will allow edgge to be a map/set key return hash((self._origin,self._destination))
class InvalidHeader(Exception): """ - **API Code** : 1000 - **API Message** : Invalid header """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidRequest(Exception): """ - **API Code** : 1001 - **API Message** : Bad request. Error code-1001 """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class BAD_SIGNATURE(Exception): """ - **API Code** : 1006 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class BLOG_NOT_FOUND(Exception): """ - **API Code** : 1202 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class SessionTimeout(Exception): """ - **API Code** : 2002 - **API Message** : Session timeout """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidSession(Exception): """ - **API Code** : 2004 - **API Message** : Bad request. Error code-2004 """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidSecurityCode(Exception): """ - **API Code** : 2005 - **API Message** : The security code is incorrect. Please try again. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class PasswordTooShort(Exception): """ - **API Code** : 2006 - **API Message** : Password must contain 6 characters or more with no spaces. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidDeviceId(Exception): """ - **API Code** : 2007 - **API Message** : The deviceId is not correct """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class EmailNotRegistered(Exception): """ - **API Code** : 2009 - **API Message** : The email has not been registered """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidPassword(Exception): """ - **API Code** : 2010 - **API Message** : Password is incorrect. Forgot your password? Trying resetting it. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class CannotFollowDisabled(Exception): """ - **API Code** : 2011 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class PHONE_NUMBER_ALREADY_REGISTERED(Exception): """ - **API Code** : 2014 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class PHONE_NUMBER_NOT_EXIST(Exception): """ - **API Code** : 2016 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidEmail(Exception): """ - **API Code** : 2022 - **API Message** : The email format is invalid. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class INVALID_PTOKEN(Exception): """ - **API Code** : 2023 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class ZIDAlreadyChanged(Exception): """ - **API Code** : 2028 - **API Message** : Z-ID cannot be modified. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class USER_NOT_FOUND(Exception): """ - **API Code** : 2034 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class EMAIL_ALREADY_REGISTERED(Exception): """ - **API Code** : 2038 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class TooManyRequests(Exception): """ - **API Code** : 2043 - **API Message** : Too many requests. Please wait. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class AccountCreationLimit(Exception): """ - **API Code** : 3001 - **API Message** : A maximum of 3 accounts can be created from this device. If you forget your password, please reset it. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidNickname(Exception): """ - **API Code** : 3005 - **API Message** : This nickname is invalid, please try another one. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class CannotFollowSelf(Exception): """ - **API Code** : 3103 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidInvitationCode(Exception): """ - **API Code** : 3301 - **API Message** : The invitation code does not exist. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvitationCodeAlreadyUsed(Exception): """ - **API Code** : 3302 - **API Message** : The invitation code has been used by another user. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class CIRCLE_NOT_FOUND(Exception): """ - **API Code** : 4008 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidTag(Exception): """ - **API Code** : 5001 - **API Message** : The tag is invalid, please try another one. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class TagLimitReached(Exception): """ - **API Code** : 5002 - **API Message** : The tag count is exceed the max limitation. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class ChatDoesntExistOrNotFound(Exception): """ - **API Code** : 6001 - **API Message** : The chat does not exist. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class ROLE_NOT_FOUND(Exception): """ - **API Code** : 6003 - **API Message** : ``Unknown`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class FileTooLarge(Exception): """ - **API Code** : 7006 - **API Message** : This audio (``X`` MB) has exceeded the upload limit (2 MB). """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class BadRequest(Exception): """ - **API Code** : 9001 - **API Message** : Bad request. Error code-9001 """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class SpecifyType(Exception): """ Raised when you need to specify the output of the command. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class WrongType(Exception): """ Raised when you attribute the function the wrong type. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class NotLoggedIn(Exception): """ Raised when you try to make a command but you aren't logged in. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidFileExtension(Exception): """ Raised when you try to upload a picture but the file type is unknown. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidUrl(Exception): """ Raised when you don't put a valid Project Z Url. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidRegion(Exception): """ Raised when you choose a region that doesn't exist. Use ``client.get_content_regions()`` to get the list of them. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class InvalidFile(Exception): """ Raised when you use a file that the type isn't ``BinaryIO``. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) class LibraryUpdateAvailable(Exception): """ Raised when a new library update is available. """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) def CheckException(data): api_code = data["apiCode"] if api_code == 1000: raise InvalidHeader(data) elif api_code == 1001: raise InvalidRequest(data) elif api_code == 1006: raise BAD_SIGNATURE(data) elif api_code == 1202: raise BLOG_NOT_FOUND(data) elif api_code == 2002: raise SessionTimeout(data) elif api_code == 2004: raise InvalidSession(data) elif api_code == 2005: raise InvalidSecurityCode(data) elif api_code == 2006: raise PasswordTooShort(data) elif api_code == 2007: raise InvalidDeviceId(data) elif api_code == 2009: raise EmailNotRegistered(data) elif api_code == 2010: raise InvalidPassword(data) elif api_code == 2011: raise CannotFollowDisabled(data) elif api_code == 2014: raise PHONE_NUMBER_ALREADY_REGISTERED(data) elif api_code == 2016: raise PHONE_NUMBER_NOT_EXIST(data) elif api_code == 2022: raise InvalidEmail(data) elif api_code == 2023: raise INVALID_PTOKEN(data) elif api_code == 2028: raise ZIDAlreadyChanged(data) elif api_code == 2034: raise USER_NOT_FOUND(data) elif api_code == 2038: raise EMAIL_ALREADY_REGISTERED(data) elif api_code == 2043: raise TooManyRequests(data) elif api_code == 3001: raise AccountCreationLimit(data) elif api_code == 3005: raise InvalidNickname(data) elif api_code == 3103: raise CannotFollowSelf(data) elif api_code == 3301: raise InvalidInvitationCode(data) elif api_code == 3302: raise InvitationCodeAlreadyUsed(data) elif api_code == 4008: raise CIRCLE_NOT_FOUND(data) elif api_code == 5001: raise InvalidTag(data) elif api_code == 5002: raise TagLimitReached(data) elif api_code == 6001: raise ChatDoesntExistOrNotFound(data) elif api_code == 6003: raise ROLE_NOT_FOUND(data) elif api_code == 7006: raise FileTooLarge(data) elif api_code == 9001: raise BadRequest(data) else: raise Exception(data)
def generate_group_key(name: str): return { 'PK': f'GROUP#{name.upper()}', 'SK': f'GROUP#{name.upper()}' }
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.110078, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.289148, '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.557261, '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.522999, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.905645, '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.519413, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.94806, '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.431528, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.75523, '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.105279, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0189591, '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.179822, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.140214, '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.285101, 'Execution Unit/Register Files/Runtime Dynamic': 0.159174, '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.464681, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.0814, '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': 3.88316, '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.00331399, '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.00331399, '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.00290087, '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.00113084, '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.00201419, '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.011543, '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.0312603, '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.134792, '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.440489, '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.457813, '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.0759, '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.0807418, 'L2/Runtime Dynamic': 0.0153871, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.99783, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.82083, '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.121668, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.121668, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.57471, 'Load Store Unit/Runtime Dynamic': 2.54253, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.300012, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.600024, '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.106475, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.107492, '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.0727906, '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.742569, 'Memory Management Unit/Runtime Dynamic': 0.180283, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 26.6837, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.367293, '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.031163, '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.265767, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.664223, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 8.36148, '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.0364225, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.231296, '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.167096, '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.247957, '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.399945, '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.201879, '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.84978, '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.257973, '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.63915, '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.0315681, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104004, '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.0900475, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0769175, '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.121616, 'Execution Unit/Register Files/Runtime Dynamic': 0.0873179, '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.198813, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.518096, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.09187, '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.00181785, '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.00181785, '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.00162371, '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.000650641, '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.00110493, '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.00636433, '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.0159872, '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.0739427, '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.70339, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.218692, '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.251143, '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.15017, 'Instruction Fetch Unit/Runtime Dynamic': 0.566128, '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.0400528, 'L2/Runtime Dynamic': 0.0106666, '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.64147, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.16807, '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.0777864, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0777863, '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.00879, 'Load Store Unit/Runtime Dynamic': 1.62947, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191808, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383615, '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.0680733, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0685959, '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.29244, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0360843, '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.565486, 'Memory Management Unit/Runtime Dynamic': 0.10468, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.9931, '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.0830406, '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.0121977, '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.126534, '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.221772, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.62458, '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.0603411, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.250083, '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.259349, '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.249152, '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.401873, '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.202852, '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.853877, '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.245195, '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.79785, '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.0489966, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104506, '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.100866, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0772882, '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.149862, 'Execution Unit/Register Files/Runtime Dynamic': 0.0877388, '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.227584, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.538882, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.13596, '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.00172874, '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.00172874, '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.00155042, '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.000624638, '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.00111025, '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.00611814, '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.0149781, '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.0742991, '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.72606, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.226296, '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.252353, '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.17394, 'Instruction Fetch Unit/Runtime Dynamic': 0.574045, '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.0211766, 'L2/Runtime Dynamic': 0.00488633, '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.43835, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.06337, '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.0712149, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.071215, '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.77464, 'Load Store Unit/Runtime Dynamic': 1.48579, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.175604, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.351208, '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.0623224, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0625822, '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.293849, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0372702, '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.557017, 'Memory Management Unit/Runtime Dynamic': 0.0998523, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.9141, '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.128888, '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.0128096, '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.125747, '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.267444, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.56798, '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.190515, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.352327, '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.01422, '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.299881, '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.483697, '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.244154, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.02773, '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.187482, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.98524, '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.191607, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0125783, '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.162877, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0930246, '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.354484, 'Execution Unit/Register Files/Runtime Dynamic': 0.105603, '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.390775, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.788674, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.67971, '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.000870459, '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.000870459, '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.000764647, '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.00029955, '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.00133631, '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.00384187, '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.00811442, '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.0894269, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.68832, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.231807, '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.303734, '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.1829, 'Instruction Fetch Unit/Runtime Dynamic': 0.636924, '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.0525827, 'L2/Runtime Dynamic': 0.0034163, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.96824, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.833238, '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.0560059, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0560059, '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.23271, 'Load Store Unit/Runtime Dynamic': 1.16545, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.138101, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.276202, '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.0490125, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0497942, '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.353679, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0380247, '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.593983, 'Memory Management Unit/Runtime Dynamic': 0.0878189, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 21.6369, '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.50403, '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.0196637, '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.141035, '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.66473, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.23805, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.6975723338144482, 'Runtime Dynamic': 0.6975723338144482, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.228277, 'Runtime Dynamic': 0.133249, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 88.4561, 'Peak Power': 121.568, 'Runtime Dynamic': 22.9253, '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': 88.2278, 'Total Cores/Runtime Dynamic': 22.7921, '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.228277, 'Total L3s/Runtime Dynamic': 0.133249, '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}}
N = int(input()) ans = 0 def sum(n): return n * (n + 1) // 2 for i in range(N): A, B = map(int, input().split()) ans += sum(B) - sum(A-1) print(ans)
""" Helper functions that parse desired information from Trello cards (aka books). """ def get_created_action(card): """ Return the date when a card was created. """ if not card.actions: return for action in card.actions: if action['type'] == 'createCard': return action def get_date_created_in_list(card, list_name): """ Return the date a card was created in the specified list. """ created_action = get_created_action(card) if not created_action: return if created_action['data']['list']['name'] == list_name: return created_action['date'] def get_list_change_date(card, list_before_name, list_after_name): """ Return the date of when a list changed from the specified before & after lists. """ if not card.actions: return for action in card.actions: if all(key in action['data'] for key in ['listBefore', 'listAfter']): if action['data']['listBefore']['name'] == list_before_name and action['data']['listAfter']['name'] == list_after_name: return action['date'] def get_date_started(card): """ Return the date when a book (card) was started, i.e. moved to or created in the 'Reading' list. """ return get_date_created_in_list(card, 'Reading') or \ get_list_change_date(card, 'To Read', 'Reading') or \ get_list_change_date(card, 'Backlog', 'Reading') def get_date_finished(card): """ Return the date when a book (card) was finished, i.e. moved from the 'Reading' to the 'Finished' list. """ return get_list_change_date(card, 'Reading', 'Finished') def remove_cover_attachment_previews(cover_attachment): """ Remove the previews element from cover_attachment. It contains a lot of data. Then, return. """ del cover_attachment["previews"] return cover_attachment
class Colors: def __init__(self, mode): if(not mode): self.block_E = (205,193,181) self.scoreboard = (187,173,160) self.block_2 = (238, 228, 218) self.block_4 = (237, 224, 200) self.block_8 = (242, 177, 121) self.block_16 = (245, 149, 99) self.block_32 = (246, 124, 95) self.block_64 = (246, 94, 59) self.block_128 = (237, 207, 114) self.block_256 = (237, 204, 97) self.block_512 = (237, 200, 80) self.block_1024 = (237, 197, 63) self.block_2048 = (237, 194, 46) self.background = (235, 230, 228) self.letter = (0,0,0) else: self.block_E = (16,16,16) self.scoreboard = (29,36,42) self.block_2 = (69,74,79) self.block_4 = (42,54,62) self.block_8 = (48,46,48) self.block_16 = (75,46,41) self.block_32 = (75,58,33) self.block_64 = (25,78,85) self.block_128 = (237, 207, 114) self.block_256 = (237, 204, 97) self.block_512 = (237, 200, 80) self.block_1024 = (237, 197, 63) self.block_2048 = (237, 194, 46) self.background = (0, 0, 0) self.letter = (255,255,255)
class Solution: def wallsAndGates(self, rooms: List[List[int]]) -> None: """ Do not return anything, modify rooms in-place instead. """ INF = 2147483647 queue = [(i, j) for i, row in enumerate(rooms) for j, val in enumerate(row) if not val] for i, j in queue: for newi, newj in (i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1): if 0 <= newi < len(rooms) and 0 <= newj < len(rooms[0]) and rooms[newi][newj] == INF: rooms[newi][newj] = rooms[i][j] + 1 queue.append((newi, newj))
"""CHAPPS Tests In designing an application like CHAPPS and learning how to test in Python at the same time, it has been hard to follow a strictly test-driven strategy. Nevertheless, I have striven to ensure that all features are covered with tests. Right now the main deficiency in testing is testing of the install procedure. That said, there are probably small things here or there which are inadequately covered. The tests are only haphazardly documented, and contain some pretty glaring examples of malignant style inconsistency. There are some comments, and there is some amount of documentation. .. todo:: clean up style weirdnesses within testing fixtures; provide better documentation of tests """
class Solution: def freqAlphabets(self, s: str) -> str: map_table = {} for c in 'abcdefghi': map_table[str(ord(c) - ord('a') + 1)] = c for c in 'jklmnopqrstuvwxyz': map_table[str(ord(c) - ord('j') + 10) + '#'] = c res = [] p = 0 while p < len(s): if p + 2 < len(s) and s[p+2] == '#': res.append(map_table[s[p:p+3]]) p += 3 else: res.append(map_table[s[p]]) p += 1 return ''.join(res)
""" 20. As Organizações Tabajara resolveram dar um abono aos seus colaboradores em reconhecimento ao bom resultado alcançado durante o ano que passou. Para isto contratou você para desenvolver a aplicação que servirá como uma projeção de quanto será gasto com o pagamento deste abono. Após reuniões envolvendo a diretoria executiva, a diretoria financeira e os representantes do sindicato laboral, chegou-se a seguinte forma de cálculo: a.Cada funcionário receberá o equivalente a 20% do seu salário bruto de dezembro; a.O piso do abono será de 100 reais, isto é, aqueles funcionários cujo salário for muito baixo, recebem este valor mínimo; Neste momento, não se deve ter nenhuma preocupação com colaboradores com tempo menor de casa, descontos, impostos ou outras particularidades. Seu programa deverá permitir a digitação do salário de um número indefinido (desconhecido) de salários. Um valor de salário igual a 0 (zero) encerra a digitação. Após a entrada de todos os dados o programa deverá calcular o valor do abono concedido a cada colaborador, de acordo com a regra definida acima. Ao final, o programa deverá apresentar: O salário de cada funcionário, juntamente com o valor do abono; O número total de funcionário processados; O valor total a ser gasto com o pagamento do abono; O número de funcionário que receberá o valor mínimo de 100 reais; O maior valor pago como abono; A tela abaixo é um exemplo de execução do programa, apenas para fins ilustrativos. Os valores podem mudar a cada execução do programa. Projeção de Gastos com Abono ============================ Salário: 1000 Salário: 300 Salário: 500 Salário: 100 Salário: 4500 Salário: 0 Salário - Abono R$ 1000.00 - R$ 200.00 R$ 300.00 - R$ 100.00 R$ 500.00 - R$ 100.00 R$ 100.00 - R$ 100.00 R$ 4500.00 - R$ 900.00 Foram processados 5 colaboradores Total gasto com abonos: R$ 1400.00 Valor mínimo pago a 3 colaboradores Maior valor de abono pago: R$ 900.00 """
def sort012( a, arr_size): lo = 0 hi = arr_size - 1 mid = 0 while mid <= hi: if a[mid] == 0: a[lo], a[mid] = a[mid], a[lo] lo = lo + 1 mid = mid + 1 elif a[mid] == 1: mid = mid + 1 else: a[mid], a[hi] = a[hi], a[mid] hi = hi - 1 return a # Function to print array def printArray( a): for k in a: print (k) # Driver Program arr = [0,2,0,1,1] arr_size = len(arr) arr = sort012( arr, arr_size) print ("Array after segregation :\n") printArray(arr)
''' Jean-Luc Jackson & Connor Lester CEE cinco zero cinco HW #4 11/07/16 ''' class Path(object): ''' Class Hosts a Path Object. Contained Attributes - Path ID, Length, and Node/Line Histories. ''' def __init__(self, nodeHistory=[], lineHistory=[], length=0.0): ''' CHANGE SO THAT passes node objects and line objects and can calculate length by looping through lineHistory and summing up line.getLength() values. affects Path() implementation in Graph class ''' # Initialize List of Nodes Visited - Contains Node Objects self.nodeHistory = nodeHistory # Initialize List of Lines Traveled - Contains Line Objects self.lineHistory = lineHistory # Initialize Length to Zero self.length = float(length) # Create pathID s = '' for i in range(0,len(nodeHistory)): s += str(nodeHistory[i].getID()) + ' -> ' self.ID = '( ' + s[:len(s) - 4] + ' )' '''STANDARD CALLS''' def __str__(self): # Print Statement s = "Path {} has a length {} and has seen {} nodes and {} lines."\ .format(self.ID,self.length, len(self.nodeHistory), len(self.lineHistory)) return s def __add__(self,otherPath): # Add Error If Trying To Add Integer/Float # Step Through Line - Add Line to lineHistory newLineHistory = self.lineHistory + otherPath.getLineHistory() # Step On Node - Add Node to nodeHistory newNodeHistory = self.nodeHistory + otherPath.getNodeHistory() # Increase Path's Length newLength = self.length + otherPath.getLength() return Path(newNodeHistory, newLineHistory, newLength) def __sub__(self,otherPath): # Add Error If Trying To Subtract Integer/Float # Step Back Through Line - Remove Line From lineHistory newLineHistory = self.lineHistory newNodeHistory = self.nodeHistory for line in otherPath.getLineHistory(): newLineHistory = self.lineHistory self.lineHistory.remove(line) # Step On Node - Removed Node From nodeHistory for node in otherPath.getNodeHistory(): newNodeHistory = self.nodeHistory self.nodeHistory.remove(node) # Decrease Path's Length newLength = self.length - otherPath.getLength() return Path(newNodeHistory, newLineHistory, newLength) '''INFORMATION CALLS''' def getID(self): return self.ID def getLength(self): # Return the Current Length return self.length def getNodeHistory(self): # Return Current nodeHistory return self.nodeHistory def getLineHistory(self): # Return Current lineHistory return self.lineHistory
[ [float("NaN"), float("NaN"), 99.67229382, 40.73319756], [float("NaN"), float("NaN"), 84.22728964, 73.36769715], [float("NaN"), float("NaN"), 99.73572432, 78.98000129], [float("NaN"), float("NaN"), 99.04333678, 67.27961222], [float("NaN"), float("NaN"), 97.11394797, 73.68663514], [float("NaN"), float("NaN"), 96.999092, 93.46713072], [float("NaN"), float("NaN"), 90.43694792, 103.68320983], [float("NaN"), float("NaN"), 102.8519688, 101.11961417], [float("NaN"), float("NaN"), 99.90993163, 85.42558373], [float("NaN"), float("NaN"), 107.79366763, 88.03810986], [float("NaN"), float("NaN"), 99.05794738, 119.65446618], [float("NaN"), float("NaN"), 99.22083223, 116.59635974], [float("NaN"), float("NaN"), 100.57947524, 130.20558594], [float("NaN"), float("NaN"), 112.51261199, 118.96909335], [float("NaN"), float("NaN"), 109.67004987, 73.94938547], ]
# # PySNMP MIB module IPFILTER (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPFILTER # Produced by pysmi-0.3.4 at Wed May 1 13:55:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, Gauge32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, Unsigned32, ModuleIdentity, TimeTicks, Counter64, NotificationType, ObjectIdentity, MibIdentifier, Bits, Counter32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Gauge32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "Unsigned32", "ModuleIdentity", "TimeTicks", "Counter64", "NotificationType", "ObjectIdentity", "MibIdentifier", "Bits", "Counter32", "iso") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ucdExperimental, = mibBuilder.importSymbols("UCD-SNMP-MIB", "ucdExperimental") ipFilter = MibIdentifier((1, 3, 6, 1, 4, 1, 2021, 13, 2)) ipfInTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1), ) if mibBuilder.loadTexts: ipfInTable.setStatus('mandatory') if mibBuilder.loadTexts: ipfInTable.setDescription('A table with IP Filter incoming rules and statistic') ipfInEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1), ).setIndexNames((0, "IPFILTER", "ipfInIndex")) if mibBuilder.loadTexts: ipfInEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipfInEntry.setDescription('IP Filter incoming rules table entry') ipfInIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfInIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipfInIndex.setDescription('Reference index for each incoming IP Filter rule') ipfInRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfInRule.setStatus('mandatory') if mibBuilder.loadTexts: ipfInRule.setDescription('Textual representation of the incoming IP Filter rule') ipfInHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfInHits.setStatus('mandatory') if mibBuilder.loadTexts: ipfInHits.setDescription('Hits of the incoming IP Filter rule') ipfOutTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2), ) if mibBuilder.loadTexts: ipfOutTable.setStatus('mandatory') if mibBuilder.loadTexts: ipfOutTable.setDescription('A table with IP Filter outgoing rules and statistic') ipfOutEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1), ).setIndexNames((0, "IPFILTER", "ipfOutIndex")) if mibBuilder.loadTexts: ipfOutEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipfOutEntry.setDescription('IP Filter outgoing rules table entry') ipfOutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfOutIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipfOutIndex.setDescription('Reference index for each outgoing IP Filter rule') ipfOutRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfOutRule.setStatus('mandatory') if mibBuilder.loadTexts: ipfOutRule.setDescription('Textual representation of the outgoing IP Filter rule') ipfOutHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfOutHits.setStatus('mandatory') if mibBuilder.loadTexts: ipfOutHits.setDescription('Hits of the outgoing IP Filter rule') ipfAccInTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3), ) if mibBuilder.loadTexts: ipfAccInTable.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInTable.setDescription('A table with IP Filter incoming accounting rules and statistic') ipfAccInEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1), ).setIndexNames((0, "IPFILTER", "ipfAccInIndex")) if mibBuilder.loadTexts: ipfAccInEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInEntry.setDescription('IP FIlter incoming accounting rules table entry') ipfAccInIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccInIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInIndex.setDescription('Reference index for each incoming accounting IP Filter rule') ipfAccInRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccInRule.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInRule.setDescription('Textual representation of the incoming accounting IP Filter rule') ipfAccInHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccInHits.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInHits.setDescription('Hits of the incoming accounting IP Filter rule') ipfAccInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccInBytes.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccInBytes.setDescription('Bytes passed thru the incoming accounting IP Filter rule') ipfAccOutTable = MibTable((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4), ) if mibBuilder.loadTexts: ipfAccOutTable.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutTable.setDescription('A table with IP Filter outgoing accounting rules and statistic') ipfAccOutEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1), ).setIndexNames((0, "IPFILTER", "ipfAccOutIndex")) if mibBuilder.loadTexts: ipfAccOutEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutEntry.setDescription('IP Filter outgoing accounting rules table entry') ipfAccOutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccOutIndex.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutIndex.setDescription('Reference index for each outgoing accounting IP Filter rule') ipfAccOutRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccOutRule.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutRule.setDescription('Textual representation of the outgoing accounting IP Filter rule') ipfAccOutHits = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccOutHits.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutHits.setDescription('Hits of the outgoing accounting IP Filter rule') ipfAccOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2021, 13, 2, 4, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipfAccOutBytes.setStatus('mandatory') if mibBuilder.loadTexts: ipfAccOutBytes.setDescription('Bytes passed thru the outgoing accounting IP Filter rule') mibBuilder.exportSymbols("IPFILTER", ipfAccInEntry=ipfAccInEntry, ipfOutRule=ipfOutRule, ipFilter=ipFilter, ipfInRule=ipfInRule, ipfAccOutEntry=ipfAccOutEntry, ipfAccOutIndex=ipfAccOutIndex, ipfAccOutHits=ipfAccOutHits, ipfInIndex=ipfInIndex, ipfAccInTable=ipfAccInTable, ipfAccOutRule=ipfAccOutRule, ipfAccOutBytes=ipfAccOutBytes, ipfAccInIndex=ipfAccInIndex, ipfInTable=ipfInTable, ipfInEntry=ipfInEntry, ipfAccInRule=ipfAccInRule, ipfInHits=ipfInHits, ipfOutTable=ipfOutTable, ipfAccOutTable=ipfAccOutTable, ipfOutIndex=ipfOutIndex, ipfAccInBytes=ipfAccInBytes, ipfOutHits=ipfOutHits, ipfAccInHits=ipfAccInHits, ipfOutEntry=ipfOutEntry)
bunker = {category: [] for category in input().split(", ")} n = int(input()) bunker['all_items_count'] = 0 bunker['all_quality'] = 0 for _ in range(n): category, item_name, item_params = input().split(" - ") item_quantity = int(item_params.split(";")[0].split(":")[1]) item_quality = int(item_params.split(";")[1].split(":")[1]) item_data = {item_name: {'quantity': item_quantity, 'quality': item_quality}} bunker[category].append(item_data) bunker['all_items_count'] += item_quantity bunker['all_quality'] += item_quality print(f"Count of items: {bunker['all_items_count']}") print(f"Average quality: {(bunker['all_quality'] / (len(bunker) - 2)):.2f}") print(*[f"{category} -> {', '.join([list(d.keys())[0] for d in value])}" for category, value in bunker.items() if isinstance(bunker[category], list)], sep='\n')
""" Problem 8 ----------- The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. [moved to data/008.txt] Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product? """ with open('data/008.txt', 'rt') as f: numbers = [int(i) for i in ''.join([s.strip() for s in f])] f.closed seq = 13 max_prod = 0 for i in range(len(numbers) - seq): cut = numbers[i:i+seq] if 0 in cut: continue prod = 1 for n in cut: prod *= n if prod > max_prod: max_prod = prod print (max_prod)
# # PySNMP MIB module CPQCMC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CPQCMC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:11:28 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, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint") compaq, = mibBuilder.importSymbols("CPQHOST-MIB", "compaq") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") sysLocation, sysName, sysDescr, sysContact = mibBuilder.importSymbols("SNMPv2-MIB", "sysLocation", "sysName", "sysDescr", "sysContact") Bits, Counter64, Integer32, MibIdentifier, iso, NotificationType, Unsigned32, Counter32, NotificationType, ModuleIdentity, TimeTicks, Gauge32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter64", "Integer32", "MibIdentifier", "iso", "NotificationType", "Unsigned32", "Counter32", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") cpqCmc = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153)) cpqCmcMibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 1)) cpqCmcComponent = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2)) cpqCmcInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1)) cpqCmcOsCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1)) cpqCmcDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2)) cpqCmcSetup = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2)) cpqCmcSetupConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1)) cpqCmcSetupGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1)) cpqCmcSetupEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2)) cpqCmcSetupTemp1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1)) cpqCmcSetupTemp2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2)) cpqCmcSetupFan1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3)) cpqCmcSetupFan2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4)) cpqCmcSetupVoltage = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5)) cpqCmcSetupHumidity = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6)) cpqCmcSetupInput1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7)) cpqCmcSetupInput2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8)) cpqCmcSetupInput3 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9)) cpqCmcSetupInput4 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10)) cpqCmcSetupLock1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11)) cpqCmcSetupLock2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12)) cpqCmcSetupSmoke = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13)) cpqCmcSetupShock = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14)) cpqCmcSetupAux1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15)) cpqCmcSetupAux2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16)) cpqCmcSetupAlarm1 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17)) cpqCmcSetupAlarm2 = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18)) cpqCmcSetupClock = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3)) cpqCmcSetupThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2)) cpqCmcTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3)) cpqCmcValues = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3)) cpqCmcStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4)) cpqCmcControl = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5)) cpqCmcLog = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6)) cpqCmcMibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcMibRevMajor.setStatus('mandatory') cpqCmcMibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcMibRevMinor.setStatus('mandatory') cpqCmcMibCondition = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcMibCondition.setStatus('mandatory') cpqCmcOsCommonPollFreq = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcOsCommonPollFreq.setStatus('mandatory') cpqCmcDeviceCondition = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("overloadDC", 3), ("fuseDC", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcDeviceCondition.setStatus('mandatory') cpqCmcsetLanguage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("english", 2), ("french", 3), ("italian", 4), ("german", 5), ("spanish", 6), ("dutch", 7), ("japanese", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcsetLanguage.setStatus('mandatory') cpqCmcsetTempUnit = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("celsius", 2), ("fahrenheit", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcsetTempUnit.setStatus('mandatory') cpqCmcsetAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("enableSilence", 2), ("disableSilence", 3), ("off", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcsetAudibleAlarm.setStatus('mandatory') cpqCmcPassword = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcPassword.setStatus('mandatory') cpqCmcPasswordOption = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcPasswordOption.setStatus('mandatory') cpqCmcquitRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcquitRelay1.setStatus('mandatory') cpqCmcquitRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcquitRelay2.setStatus('mandatory') cpqCmclogicRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closeAtAlarm", 2), ("openAtAlarm", 3), ("closeAtEPO", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmclogicRelay1.setStatus('mandatory') cpqCmclogicRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closeAtAlarm", 2), ("openAtAlarm", 3), ("closeAtEPO", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmclogicRelay2.setStatus('mandatory') cpqCmcSetupTemp1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1Avail.setStatus('mandatory') cpqCmcSetupTemp1RelaysWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysWarn.setStatus('mandatory') cpqCmcSetupTemp1RelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysMax.setStatus('mandatory') cpqCmcSetupTemp1RelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1RelaysMin.setStatus('mandatory') cpqCmcSetupTemp1AudibleAlarmWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmWarn.setStatus('mandatory') cpqCmcSetupTemp1AudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmMax.setStatus('mandatory') cpqCmcSetupTemp1AudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp1AudibleAlarmMin.setStatus('mandatory') cpqCmcSetupTemp2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2Avail.setStatus('mandatory') cpqCmcSetupTemp2RelaysWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysWarn.setStatus('mandatory') cpqCmcSetupTemp2RelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysMax.setStatus('mandatory') cpqCmcSetupTemp2RelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2RelaysMin.setStatus('mandatory') cpqCmcSetupTemp2AudibleAlarmWarn = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmWarn.setStatus('mandatory') cpqCmcSetupTemp2AudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmMax.setStatus('mandatory') cpqCmcSetupTemp2AudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTemp2AudibleAlarmMin.setStatus('mandatory') cpqCmcSetupFan1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan1Avail.setStatus('mandatory') cpqCmcSetupFan1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan1Relays.setStatus('mandatory') cpqCmcSetupFan1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan1AudibleAlarm.setStatus('mandatory') cpqCmcSetupFan2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan2Avail.setStatus('mandatory') cpqCmcSetupFan2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan2Relays.setStatus('mandatory') cpqCmcSetupFan2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupFan2AudibleAlarm.setStatus('mandatory') cpqCmcSetupVoltageAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupVoltageAvail.setStatus('mandatory') cpqCmcSetupVoltageRelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupVoltageRelaysMax.setStatus('mandatory') cpqCmcSetupVoltageRelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupVoltageRelaysMin.setStatus('mandatory') cpqCmcSetupVoltageAudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupVoltageAudibleAlarmMax.setStatus('mandatory') cpqCmcSetupVoltageAudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 5, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupVoltageAudibleAlarmMin.setStatus('mandatory') cpqCmcSetupHumidityAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupHumidityAvail.setStatus('mandatory') cpqCmcSetupHumidityRelaysMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupHumidityRelaysMax.setStatus('mandatory') cpqCmcSetupHumidityRelaysMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupHumidityRelaysMin.setStatus('mandatory') cpqCmcSetupHumidityAudibleAlarmMax = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupHumidityAudibleAlarmMax.setStatus('mandatory') cpqCmcSetupHumidityAudibleAlarmMin = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 6, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupHumidityAudibleAlarmMin.setStatus('mandatory') cpqCmcSetupInput1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1Avail.setStatus('mandatory') cpqCmcSetupInput1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1Relays.setStatus('mandatory') cpqCmcSetupInput1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1AudibleAlarm.setStatus('mandatory') cpqCmcSetupInput1FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1FansOff.setStatus('mandatory') cpqCmcSetupInput1ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1ShockSensor.setStatus('mandatory') cpqCmcSetupInput1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1Description.setStatus('mandatory') cpqCmcSetupInput1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 7, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput1Lock.setStatus('mandatory') cpqCmcSetupInput2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2Avail.setStatus('mandatory') cpqCmcSetupInput2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2Relays.setStatus('mandatory') cpqCmcSetupInput2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2AudibleAlarm.setStatus('mandatory') cpqCmcSetupInput2FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2FansOff.setStatus('mandatory') cpqCmcSetupInput2ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2ShockSensor.setStatus('mandatory') cpqCmcSetupInput2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2Description.setStatus('mandatory') cpqCmcSetupInput2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 8, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput2Lock.setStatus('mandatory') cpqCmcSetupInput3Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3Avail.setStatus('mandatory') cpqCmcSetupInput3Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3Relays.setStatus('mandatory') cpqCmcSetupInput3AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3AudibleAlarm.setStatus('mandatory') cpqCmcSetupInput3FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3FansOff.setStatus('mandatory') cpqCmcSetupInput3ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3ShockSensor.setStatus('mandatory') cpqCmcSetupInput3Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3Description.setStatus('mandatory') cpqCmcSetupInput3Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 9, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput3Lock.setStatus('mandatory') cpqCmcSetupInput4Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4Avail.setStatus('mandatory') cpqCmcSetupInput4Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4Relays.setStatus('mandatory') cpqCmcSetupInput4AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4AudibleAlarm.setStatus('mandatory') cpqCmcSetupInput4FansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4FansOff.setStatus('mandatory') cpqCmcSetupInput4ShockSensor = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4ShockSensor.setStatus('mandatory') cpqCmcSetupInput4Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4Description.setStatus('mandatory') cpqCmcSetupInput4Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 10, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("none", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupInput4Lock.setStatus('mandatory') cpqCmcSetupLock1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1Avail.setStatus('mandatory') cpqCmcSetupLock1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1Relays.setStatus('mandatory') cpqCmcSetupLock1RelaysDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1RelaysDevice.setStatus('mandatory') cpqCmcSetupLock1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1AudibleAlarm.setStatus('mandatory') cpqCmcSetupLock1AudibleAlarmDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1AudibleAlarmDevice.setStatus('mandatory') cpqCmcSetupLock1Time = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1Time.setStatus('mandatory') cpqCmcSetupLock1PwrFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1PwrFailUnlock.setStatus('mandatory') cpqCmcSetupLock1BattLowUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1BattLowUnlock.setStatus('mandatory') cpqCmcSetupLock1NetFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1NetFailUnlock.setStatus('mandatory') cpqCmcSetupLock1LifeFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 11, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock1LifeFailUnlock.setStatus('mandatory') cpqCmcSetupLock2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2Avail.setStatus('mandatory') cpqCmcSetupLock2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2Relays.setStatus('mandatory') cpqCmcSetupLock2RelaysDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2RelaysDevice.setStatus('mandatory') cpqCmcSetupLock2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2AudibleAlarm.setStatus('mandatory') cpqCmcSetupLock2AudibleAlarmDevice = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2AudibleAlarmDevice.setStatus('mandatory') cpqCmcSetupLock2Time = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2Time.setStatus('mandatory') cpqCmcSetupLock2PwrFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2PwrFailUnlock.setStatus('mandatory') cpqCmcSetupLock2BattLowUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2BattLowUnlock.setStatus('mandatory') cpqCmcSetupLock2NetFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2NetFailUnlock.setStatus('mandatory') cpqCmcSetupLock2LifeFailUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 12, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("auto", 3), ("manual", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupLock2LifeFailUnlock.setStatus('mandatory') cpqCmcSetupSmokeAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupSmokeAvail.setStatus('mandatory') cpqCmcSetupSmokeRelays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupSmokeRelays.setStatus('mandatory') cpqCmcSetupSmokeAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupSmokeAudibleAlarm.setStatus('mandatory') cpqCmcSetupSmokeFansOff = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("fan1", 3), ("fan2", 4), ("noFan", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupSmokeFansOff.setStatus('mandatory') cpqCmcSetupSmokeUnlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 13, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("both", 2), ("lock1", 3), ("lock2", 4), ("noLock", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupSmokeUnlock.setStatus('mandatory') cpqCmcSetupShockAvail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupShockAvail.setStatus('mandatory') cpqCmcSetupShockRelays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupShockRelays.setStatus('mandatory') cpqCmcSetupShockAudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupShockAudibleAlarm.setStatus('mandatory') cpqCmcSetupShockSensitivity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 14, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupShockSensitivity.setStatus('mandatory') cpqCmcSetupAux1Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1Avail.setStatus('mandatory') cpqCmcSetupAux1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1Relays.setStatus('mandatory') cpqCmcSetupAux1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1AudibleAlarm.setStatus('mandatory') cpqCmcSetupAux1InputType = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("normOpen", 2), ("normClosed", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1InputType.setStatus('mandatory') cpqCmcSetupAux1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1Description.setStatus('mandatory') cpqCmcSetupAux1Unlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 15, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("noLock", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux1Unlock.setStatus('mandatory') cpqCmcSetupAux2Avail = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("available", 2), ("notAvailable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2Avail.setStatus('mandatory') cpqCmcSetupAux2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2Relays.setStatus('mandatory') cpqCmcSetupAux2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2AudibleAlarm.setStatus('mandatory') cpqCmcSetupAux2InputType = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("normOpen", 2), ("normClosed", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2InputType.setStatus('mandatory') cpqCmcSetupAux2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2Description.setStatus('mandatory') cpqCmcSetupAux2Unlock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 16, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("noLock", 2), ("lock1", 3), ("lock2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAux2Unlock.setStatus('mandatory') cpqCmcSetupAlarm1Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm1Relays.setStatus('mandatory') cpqCmcSetupAlarm1AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm1AudibleAlarm.setStatus('mandatory') cpqCmcSetupAlarm1Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 17, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm1Description.setStatus('mandatory') cpqCmcSetupAlarm2Relays = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("relay1", 3), ("relay2", 4), ("both", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm2Relays.setStatus('mandatory') cpqCmcSetupAlarm2AudibleAlarm = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm2AudibleAlarm.setStatus('mandatory') cpqCmcSetupAlarm2Description = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 2, 18, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 18))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupAlarm2Description.setStatus('mandatory') cpqCmcSetupDate = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupDate.setStatus('mandatory') cpqCmcSetupTime = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 1, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetupTime.setStatus('mandatory') cpqCmcThresholdMaxTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMaxTemp1.setStatus('mandatory') cpqCmcThresholdWarningTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdWarningTemp1.setStatus('mandatory') cpqCmcThresholdMinTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMinTemp1.setStatus('mandatory') cpqCmcThresholdMaxTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMaxTemp2.setStatus('mandatory') cpqCmcThresholdWarningTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdWarningTemp2.setStatus('mandatory') cpqCmcThresholdMinTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMinTemp2.setStatus('mandatory') cpqCmcThresholdFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdFan1.setStatus('mandatory') cpqCmcThresholdFan1Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdFan1Hysteresis.setStatus('mandatory') cpqCmcThresholdFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdFan2.setStatus('mandatory') cpqCmcThresholdFan2Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdFan2Hysteresis.setStatus('mandatory') cpqCmcThresholdMaxVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMaxVoltage.setStatus('mandatory') cpqCmcThresholdMinVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMinVoltage.setStatus('mandatory') cpqCmcThresholdMaxHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMaxHumidity.setStatus('mandatory') cpqCmcThresholdMinHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 2, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcThresholdMinHumidity.setStatus('mandatory') cpqCmcTrapTableNumber = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcTrapTableNumber.setStatus('mandatory') cpqCmcTrapTable = MibTable((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2), ) if mibBuilder.loadTexts: cpqCmcTrapTable.setStatus('mandatory') cpqCmcTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1), ).setIndexNames((0, "CPQCMC-MIB", "cpqCmcTrapIndex")) if mibBuilder.loadTexts: cpqCmcTrapEntry.setStatus('mandatory') cpqCmcTrapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcTrapIndex.setStatus('mandatory') cpqCmcTrapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcTrapStatus.setStatus('mandatory') cpqCmcTrapIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 2, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcTrapIPaddress.setStatus('mandatory') cpqCmcValueTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcValueTemp1.setStatus('mandatory') cpqCmcValueTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcValueTemp2.setStatus('mandatory') cpqCmcValueVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcValueVoltage.setStatus('mandatory') cpqCmcValueHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcValueHumidity.setStatus('mandatory') cpqCmcValueOperatingTime = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcValueOperatingTime.setStatus('mandatory') cpqCmcStatusTemp1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("warning", 3), ("overMax", 4), ("underMin", 5), ("noSensor", 6), ("error", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusTemp1.setStatus('mandatory') cpqCmcStatusTemp2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("warning", 3), ("overMax", 4), ("underMin", 5), ("noSensor", 6), ("error", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusTemp2.setStatus('mandatory') cpqCmcStatusFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("autoOff", 2), ("autoOn", 3), ("manualOff", 4), ("manualOn", 5), ("smokeOff", 6), ("doorOff", 7), ("noFan", 8), ("error", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusFan1.setStatus('mandatory') cpqCmcStatusFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("autoOff", 2), ("autoOn", 3), ("manualOff", 4), ("manualOn", 5), ("smokeOff", 6), ("doorOff", 7), ("noFan", 8), ("error", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusFan2.setStatus('mandatory') cpqCmcStatusVoltage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("overMax", 3), ("underMin", 4), ("noVoltage", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusVoltage.setStatus('mandatory') cpqCmcStatusHumidity = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("normal", 2), ("overMax", 3), ("underMin", 4), ("noSensor", 5), ("error", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusHumidity.setStatus('mandatory') cpqCmcStatusInput1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusInput1.setStatus('mandatory') cpqCmcStatusInput2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusInput2.setStatus('mandatory') cpqCmcStatusInput3 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusInput3.setStatus('mandatory') cpqCmcStatusInput4 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("closed", 2), ("open", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusInput4.setStatus('mandatory') cpqCmcStatusLock1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("locked", 2), ("unlockedAuto", 3), ("unlockedTime", 4), ("unlockedSmoke", 5), ("unlockedKey", 6), ("unlockedPwrFail", 7), ("unlockedBattLow", 8), ("unlockedNetFail", 9), ("unlockedConnFail", 10), ("readyToLock", 11), ("alarm", 12), ("configError", 13), ("notAvail", 14)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusLock1Lock.setStatus('mandatory') cpqCmcStatusLock2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("locked", 2), ("unlockedAuto", 3), ("unlockedTime", 4), ("unlockedSmoke", 5), ("unlockedKey", 6), ("unlockedPwrFail", 7), ("unlockedBattLow", 8), ("unlockedNetFail", 9), ("unlockedConnFail", 10), ("readyToLock", 11), ("alarm", 12), ("configError", 13), ("notAvail", 14)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusLock2Lock.setStatus('mandatory') cpqCmcStatusSmoke = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("cleared", 2), ("present", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusSmoke.setStatus('mandatory') cpqCmcStatusShock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("cleared", 2), ("present", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusShock.setStatus('mandatory') cpqCmcStatusAux1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusAux1.setStatus('mandatory') cpqCmcStatusAux2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3), ("noSensor", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusAux2.setStatus('mandatory') cpqCmcStatusAlarm1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusAlarm1.setStatus('mandatory') cpqCmcStatusAlarm2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("alarm", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusAlarm2.setStatus('mandatory') cpqCmcStatusLock1Dev = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("powerFail", 3), ("lowBattery", 4), ("replaceBatt", 5), ("missingBatt", 6), ("noConnect", 7), ("notAvail", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusLock1Dev.setStatus('mandatory') cpqCmcStatusLock2Dev = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 4, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("powerFail", 3), ("lowBattery", 4), ("replaceBatt", 5), ("missingBatt", 6), ("noConnect", 7), ("notAvail", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcStatusLock2Dev.setStatus('mandatory') cpqCmcStatusAccess = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcStatusAccess.setStatus('mandatory') cpqCmcSetLock1Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("lockDoor", 2), ("openDoorTime", 3), ("openDoor", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetLock1Lock.setStatus('mandatory') cpqCmcSetLock1Key = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enableBoth", 3), ("enableKeypad", 4), ("enableRemoteInput", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetLock1Key.setStatus('mandatory') cpqCmcSetLock2Lock = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("lockDoor", 2), ("openDoorTime", 3), ("openDoor", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetLock2Lock.setStatus('mandatory') cpqCmcSetLock2Key = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enableBoth", 3), ("enableKeypad", 4), ("enableRemoteInput", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetLock2Key.setStatus('mandatory') cpqCmcSetMessage = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetMessage.setStatus('mandatory') cpqCmcSetAlarm1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("clearAlarm", 2), ("setAlarm", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetAlarm1.setStatus('mandatory') cpqCmcSetAlarm2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("clearAlarm", 2), ("setAlarm", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetAlarm2.setStatus('mandatory') cpqCmcSetFan1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("on", 3), ("off", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetFan1.setStatus('mandatory') cpqCmcSetFan2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("on", 3), ("off", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetFan2.setStatus('mandatory') cpqCmcSetQuitRelay1 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("switched", 2), ("notSwitched", 3), ("quit", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetQuitRelay1.setStatus('mandatory') cpqCmcSetQuitRelay2 = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 5, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("switched", 2), ("notSwitched", 3), ("quit", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cpqCmcSetQuitRelay2.setStatus('mandatory') cpqCmcLogsNumber = MibScalar((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogsNumber.setStatus('mandatory') cpqCmcLogTable = MibTable((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2), ) if mibBuilder.loadTexts: cpqCmcLogTable.setStatus('mandatory') cpqCmcLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1), ).setIndexNames((0, "CPQCMC-MIB", "cpqCmcLogIndex")) if mibBuilder.loadTexts: cpqCmcLogEntry.setStatus('mandatory') cpqCmcLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogIndex.setStatus('mandatory') cpqCmcLogDate = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogDate.setStatus('mandatory') cpqCmcLogTime = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogTime.setStatus('mandatory') cpqCmcLogText = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogText.setStatus('mandatory') cpqCmcLogClass = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 153, 2, 2, 6, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqCmcLogClass.setStatus('mandatory') cpqCmcalarmTemp1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153001)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusTemp1")) cpqCmcalarmTemp2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153002)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusTemp2")) cpqCmcalarmFan1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153003)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusFan1")) cpqCmcalarmFan2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153004)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusFan2")) cpqCmcalarmVoltage = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153005)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusVoltage")) cpqCmcalarmHumidity = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153006)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusHumidity")) cpqCmcalarmInput1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153007)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput1")) cpqCmcalarmInput2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153008)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput2")) cpqCmcalarmInput3 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153009)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput3")) cpqCmcalarmInput4 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153010)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusInput4")) cpqCmcalarmLock1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153011)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock1Lock")) cpqCmcalarmLock2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153012)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock2Lock")) cpqCmcalarmSmoke = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153013)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusSmoke")) cpqCmcalarmShock = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153014)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusShock")) cpqCmcalarmAux1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153015)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAux1")) cpqCmcalarmAux2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153016)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAux2")) cpqCmcalarm1 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153017)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAlarm1")) cpqCmcalarm2 = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153018)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusAlarm2")) cpqCmcalarmLock1Dev = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153019)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock1Dev")) cpqCmcalarmLock2Dev = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153020)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("CPQCMC-MIB", "cpqCmcStatusLock2Dev")) cpqCmcSetupChanged = NotificationType((1, 3, 6, 1, 4, 1, 232, 153) + (0,153100)).setObjects(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation")) mibBuilder.exportSymbols("CPQCMC-MIB", cpqCmcSetupLock1PwrFailUnlock=cpqCmcSetupLock1PwrFailUnlock, cpqCmcSetupTemp2AudibleAlarmMax=cpqCmcSetupTemp2AudibleAlarmMax, cpqCmcMibRev=cpqCmcMibRev, cpqCmcTrapStatus=cpqCmcTrapStatus, cpqCmcSetupTemp1RelaysMin=cpqCmcSetupTemp1RelaysMin, cpqCmcSetupInput4FansOff=cpqCmcSetupInput4FansOff, cpqCmcStatusAux1=cpqCmcStatusAux1, cpqCmcSetupInput3Relays=cpqCmcSetupInput3Relays, cpqCmcSetupAlarm2AudibleAlarm=cpqCmcSetupAlarm2AudibleAlarm, cpqCmcValueTemp2=cpqCmcValueTemp2, cpqCmcSetupVoltageAudibleAlarmMin=cpqCmcSetupVoltageAudibleAlarmMin, cpqCmcSetupLock2PwrFailUnlock=cpqCmcSetupLock2PwrFailUnlock, cpqCmcSetupInput1Description=cpqCmcSetupInput1Description, cpqCmcStatusTemp2=cpqCmcStatusTemp2, cpqCmcSetupLock2AudibleAlarmDevice=cpqCmcSetupLock2AudibleAlarmDevice, cpqCmcValues=cpqCmcValues, cpqCmcSetupInput2AudibleAlarm=cpqCmcSetupInput2AudibleAlarm, cpqCmcSetupSmokeRelays=cpqCmcSetupSmokeRelays, cpqCmcalarm2=cpqCmcalarm2, cpqCmcSetupLock1AudibleAlarm=cpqCmcSetupLock1AudibleAlarm, cpqCmcSetupAux1AudibleAlarm=cpqCmcSetupAux1AudibleAlarm, cpqCmcSetupAlarm2=cpqCmcSetupAlarm2, cpqCmcMibCondition=cpqCmcMibCondition, cpqCmcStatusInput4=cpqCmcStatusInput4, cpqCmcSetupInput4=cpqCmcSetupInput4, cpqCmcSetupTemp1RelaysMax=cpqCmcSetupTemp1RelaysMax, cpqCmcSetupInput3FansOff=cpqCmcSetupInput3FansOff, cpqCmcsetTempUnit=cpqCmcsetTempUnit, cpqCmcSetupTemp1AudibleAlarmWarn=cpqCmcSetupTemp1AudibleAlarmWarn, cpqCmcSetupInput4Relays=cpqCmcSetupInput4Relays, cpqCmcSetupTemp1AudibleAlarmMax=cpqCmcSetupTemp1AudibleAlarmMax, cpqCmcSetupInput4AudibleAlarm=cpqCmcSetupInput4AudibleAlarm, cpqCmcSetupShockRelays=cpqCmcSetupShockRelays, cpqCmcTrapIPaddress=cpqCmcTrapIPaddress, cpqCmcalarmAux1=cpqCmcalarmAux1, cpqCmcalarmLock1Dev=cpqCmcalarmLock1Dev, cpqCmcSetupInput1AudibleAlarm=cpqCmcSetupInput1AudibleAlarm, cpqCmcSetupAux2AudibleAlarm=cpqCmcSetupAux2AudibleAlarm, cpqCmcThresholdMaxTemp1=cpqCmcThresholdMaxTemp1, cpqCmcMibRevMajor=cpqCmcMibRevMajor, cpqCmcSetupClock=cpqCmcSetupClock, cpqCmcSetupShock=cpqCmcSetupShock, cpqCmcSetup=cpqCmcSetup, cpqCmcSetupInput3AudibleAlarm=cpqCmcSetupInput3AudibleAlarm, cpqCmcSetupAlarm1Relays=cpqCmcSetupAlarm1Relays, cpqCmcSetFan2=cpqCmcSetFan2, cpqCmcSetupHumidity=cpqCmcSetupHumidity, cpqCmcSetupLock2LifeFailUnlock=cpqCmcSetupLock2LifeFailUnlock, cpqCmclogicRelay2=cpqCmclogicRelay2, cpqCmcSetupSmoke=cpqCmcSetupSmoke, cpqCmcSetupTemp1RelaysWarn=cpqCmcSetupTemp1RelaysWarn, cpqCmcSetupTemp2Avail=cpqCmcSetupTemp2Avail, cpqCmcSetupAlarm1AudibleAlarm=cpqCmcSetupAlarm1AudibleAlarm, cpqCmcSetupFan2Relays=cpqCmcSetupFan2Relays, cpqCmcSetupTemp2AudibleAlarmWarn=cpqCmcSetupTemp2AudibleAlarmWarn, cpqCmcStatusShock=cpqCmcStatusShock, cpqCmcSetupFan1Relays=cpqCmcSetupFan1Relays, cpqCmcalarmInput3=cpqCmcalarmInput3, cpqCmcSetupLock1Avail=cpqCmcSetupLock1Avail, cpqCmcComponent=cpqCmcComponent, cpqCmcalarmShock=cpqCmcalarmShock, cpqCmcSetupAux1Description=cpqCmcSetupAux1Description, cpqCmcSetupGeneral=cpqCmcSetupGeneral, cpqCmcSetupLock1Time=cpqCmcSetupLock1Time, cpqCmcLog=cpqCmcLog, cpqCmcLogTable=cpqCmcLogTable, cpqCmcSetupHumidityRelaysMax=cpqCmcSetupHumidityRelaysMax, cpqCmcSetupVoltageRelaysMin=cpqCmcSetupVoltageRelaysMin, cpqCmcSetupSmokeUnlock=cpqCmcSetupSmokeUnlock, cpqCmcSetupAux1=cpqCmcSetupAux1, cpqCmcThresholdWarningTemp1=cpqCmcThresholdWarningTemp1, cpqCmcTraps=cpqCmcTraps, cpqCmcDevice=cpqCmcDevice, cpqCmcStatusLock1Dev=cpqCmcStatusLock1Dev, cpqCmcStatusAccess=cpqCmcStatusAccess, cpqCmcSetQuitRelay1=cpqCmcSetQuitRelay1, cpqCmcLogText=cpqCmcLogText, cpqCmcThresholdFan2Hysteresis=cpqCmcThresholdFan2Hysteresis, cpqCmcalarmSmoke=cpqCmcalarmSmoke, cpqCmcThresholdMaxHumidity=cpqCmcThresholdMaxHumidity, cpqCmcSetupAlarm1Description=cpqCmcSetupAlarm1Description, cpqCmcSetupLock2RelaysDevice=cpqCmcSetupLock2RelaysDevice, cpqCmcSetupLock1LifeFailUnlock=cpqCmcSetupLock1LifeFailUnlock, cpqCmcSetupTime=cpqCmcSetupTime, cpqCmcSetupConfig=cpqCmcSetupConfig, cpqCmcSetupInput3Lock=cpqCmcSetupInput3Lock, cpqCmcSetLock2Key=cpqCmcSetLock2Key, cpqCmcSetupLock1NetFailUnlock=cpqCmcSetupLock1NetFailUnlock, cpqCmcSetupLock1RelaysDevice=cpqCmcSetupLock1RelaysDevice, cpqCmcStatusFan1=cpqCmcStatusFan1, cpqCmcSetupInput2Relays=cpqCmcSetupInput2Relays, cpqCmcStatusVoltage=cpqCmcStatusVoltage, cpqCmcStatusHumidity=cpqCmcStatusHumidity, cpqCmcSetAlarm1=cpqCmcSetAlarm1, cpqCmcSetupHumidityAvail=cpqCmcSetupHumidityAvail, cpqCmcControl=cpqCmcControl, cpqCmcSetupInput4Lock=cpqCmcSetupInput4Lock, cpqCmcSetupInput2ShockSensor=cpqCmcSetupInput2ShockSensor, cpqCmcSetupInput3ShockSensor=cpqCmcSetupInput3ShockSensor, cpqCmcSetupLock1AudibleAlarmDevice=cpqCmcSetupLock1AudibleAlarmDevice, cpqCmcStatusInput1=cpqCmcStatusInput1, cpqCmcalarmHumidity=cpqCmcalarmHumidity, cpqCmcalarmTemp2=cpqCmcalarmTemp2, cpqCmcquitRelay2=cpqCmcquitRelay2, cpqCmcTrapEntry=cpqCmcTrapEntry, cpqCmcalarmAux2=cpqCmcalarmAux2, cpqCmcLogDate=cpqCmcLogDate, cpqCmcPasswordOption=cpqCmcPasswordOption, cpqCmcSetupSmokeAvail=cpqCmcSetupSmokeAvail, cpqCmcOsCommon=cpqCmcOsCommon, cpqCmcSetupSmokeAudibleAlarm=cpqCmcSetupSmokeAudibleAlarm, cpqCmcSetupTemp2=cpqCmcSetupTemp2, cpqCmcStatusLock1Lock=cpqCmcStatusLock1Lock, cpqCmcSetAlarm2=cpqCmcSetAlarm2, cpqCmcSetupLock1Relays=cpqCmcSetupLock1Relays, cpqCmcStatusLock2Lock=cpqCmcStatusLock2Lock, cpqCmcSetupVoltageRelaysMax=cpqCmcSetupVoltageRelaysMax, cpqCmcalarm1=cpqCmcalarm1, cpqCmcSetupLock2=cpqCmcSetupLock2, cpqCmcSetupInput2Lock=cpqCmcSetupInput2Lock, cpqCmcSetLock1Key=cpqCmcSetLock1Key, cpqCmcLogEntry=cpqCmcLogEntry, cpqCmcInterface=cpqCmcInterface, cpqCmcSetupInput1Avail=cpqCmcSetupInput1Avail, cpqCmcSetupInput2Description=cpqCmcSetupInput2Description, cpqCmcSetupAux1InputType=cpqCmcSetupAux1InputType, cpqCmcTrapTable=cpqCmcTrapTable, cpqCmcDeviceCondition=cpqCmcDeviceCondition, cpqCmcSetupInput2Avail=cpqCmcSetupInput2Avail, cpqCmcTrapIndex=cpqCmcTrapIndex, cpqCmcalarmLock1=cpqCmcalarmLock1, cpqCmcalarmTemp1=cpqCmcalarmTemp1, cpqCmcSetupAux2=cpqCmcSetupAux2, cpqCmcThresholdMaxVoltage=cpqCmcThresholdMaxVoltage, cpqCmcSetupTemp2RelaysMin=cpqCmcSetupTemp2RelaysMin, cpqCmcalarmInput2=cpqCmcalarmInput2, cpqCmcSetupAlarm1=cpqCmcSetupAlarm1, cpqCmcalarmInput4=cpqCmcalarmInput4, cpqCmcSetupHumidityAudibleAlarmMax=cpqCmcSetupHumidityAudibleAlarmMax, cpqCmcOsCommonPollFreq=cpqCmcOsCommonPollFreq, cpqCmcSetupTemp1Avail=cpqCmcSetupTemp1Avail, cpqCmcStatusInput3=cpqCmcStatusInput3, cpqCmcSetFan1=cpqCmcSetFan1, cpqCmcalarmFan1=cpqCmcalarmFan1, cpqCmcThresholdMinVoltage=cpqCmcThresholdMinVoltage, cpqCmcValueHumidity=cpqCmcValueHumidity, cpqCmcSetupInput2=cpqCmcSetupInput2, cpqCmcStatusAlarm1=cpqCmcStatusAlarm1, cpqCmcSetupVoltageAvail=cpqCmcSetupVoltageAvail, cpqCmcSetupLock2AudibleAlarm=cpqCmcSetupLock2AudibleAlarm, cpqCmcStatusLock2Dev=cpqCmcStatusLock2Dev, cpqCmcSetupInput3Avail=cpqCmcSetupInput3Avail, cpqCmcSetupInput1Lock=cpqCmcSetupInput1Lock, cpqCmcSetupLock2Relays=cpqCmcSetupLock2Relays, cpqCmcalarmLock2Dev=cpqCmcalarmLock2Dev, cpqCmcalarmLock2=cpqCmcalarmLock2, cpqCmcSetupLock2Avail=cpqCmcSetupLock2Avail, cpqCmcThresholdMinHumidity=cpqCmcThresholdMinHumidity, cpqCmcSetupLock1=cpqCmcSetupLock1, cpqCmcValueVoltage=cpqCmcValueVoltage, cpqCmcStatusInput2=cpqCmcStatusInput2, cpqCmcSetupTemp2RelaysWarn=cpqCmcSetupTemp2RelaysWarn, cpqCmcSetupAux1Unlock=cpqCmcSetupAux1Unlock, cpqCmcSetupInput3=cpqCmcSetupInput3, cpqCmcSetupAux2Description=cpqCmcSetupAux2Description, cpqCmcStatus=cpqCmcStatus, cpqCmcsetLanguage=cpqCmcsetLanguage, cpqCmcSetupLock2NetFailUnlock=cpqCmcSetupLock2NetFailUnlock, cpqCmcStatusSmoke=cpqCmcStatusSmoke, cpqCmcLogsNumber=cpqCmcLogsNumber, cpqCmcSetupDate=cpqCmcSetupDate, cpqCmcStatusTemp1=cpqCmcStatusTemp1, cpqCmcSetupVoltageAudibleAlarmMax=cpqCmcSetupVoltageAudibleAlarmMax, cpqCmclogicRelay1=cpqCmclogicRelay1, cpqCmcSetupShockSensitivity=cpqCmcSetupShockSensitivity, cpqCmcSetupAux1Avail=cpqCmcSetupAux1Avail, cpqCmcSetupLock2BattLowUnlock=cpqCmcSetupLock2BattLowUnlock, cpqCmcSetupEvents=cpqCmcSetupEvents, cpqCmcThresholdWarningTemp2=cpqCmcThresholdWarningTemp2, cpqCmcSetupFan2Avail=cpqCmcSetupFan2Avail, cpqCmcSetupFan1=cpqCmcSetupFan1, cpqCmcStatusFan2=cpqCmcStatusFan2, cpqCmcalarmInput1=cpqCmcalarmInput1, cpqCmcSetupFan2=cpqCmcSetupFan2, cpqCmcSetupAux1Relays=cpqCmcSetupAux1Relays, cpqCmcSetupInput4ShockSensor=cpqCmcSetupInput4ShockSensor, cpqCmcSetupLock1BattLowUnlock=cpqCmcSetupLock1BattLowUnlock, cpqCmcSetupAux2Relays=cpqCmcSetupAux2Relays, cpqCmcThresholdFan1=cpqCmcThresholdFan1, cpqCmcThresholdMaxTemp2=cpqCmcThresholdMaxTemp2, cpqCmcSetupInput1=cpqCmcSetupInput1, cpqCmcSetupInput4Description=cpqCmcSetupInput4Description, cpqCmcLogIndex=cpqCmcLogIndex, cpqCmcalarmVoltage=cpqCmcalarmVoltage, cpqCmcSetupVoltage=cpqCmcSetupVoltage, cpqCmcSetLock1Lock=cpqCmcSetLock1Lock, cpqCmcSetQuitRelay2=cpqCmcSetQuitRelay2, cpqCmcSetupChanged=cpqCmcSetupChanged, cpqCmcSetupInput2FansOff=cpqCmcSetupInput2FansOff, cpqCmcSetupInput3Description=cpqCmcSetupInput3Description, cpqCmcSetupAlarm2Relays=cpqCmcSetupAlarm2Relays, cpqCmcSetupFan1Avail=cpqCmcSetupFan1Avail, cpqCmcSetupHumidityAudibleAlarmMin=cpqCmcSetupHumidityAudibleAlarmMin, cpqCmcSetupShockAudibleAlarm=cpqCmcSetupShockAudibleAlarm, cpqCmcSetupFan1AudibleAlarm=cpqCmcSetupFan1AudibleAlarm, cpqCmcalarmFan2=cpqCmcalarmFan2, cpqCmcThresholdFan2=cpqCmcThresholdFan2, cpqCmcThresholdMinTemp1=cpqCmcThresholdMinTemp1, cpqCmcquitRelay1=cpqCmcquitRelay1, cpqCmcSetLock2Lock=cpqCmcSetLock2Lock, cpqCmcSetupLock2Time=cpqCmcSetupLock2Time, cpqCmcValueOperatingTime=cpqCmcValueOperatingTime, cpqCmcSetupTemp2RelaysMax=cpqCmcSetupTemp2RelaysMax, cpqCmcThresholdMinTemp2=cpqCmcThresholdMinTemp2, cpqCmcSetupThreshold=cpqCmcSetupThreshold, cpqCmcSetupInput1ShockSensor=cpqCmcSetupInput1ShockSensor, cpqCmcStatusAux2=cpqCmcStatusAux2, cpqCmcSetupAux2Unlock=cpqCmcSetupAux2Unlock, cpqCmcSetupTemp2AudibleAlarmMin=cpqCmcSetupTemp2AudibleAlarmMin, cpqCmcSetupFan2AudibleAlarm=cpqCmcSetupFan2AudibleAlarm, cpqCmcLogTime=cpqCmcLogTime, cpqCmcValueTemp1=cpqCmcValueTemp1, cpqCmcSetupAlarm2Description=cpqCmcSetupAlarm2Description, cpqCmcSetMessage=cpqCmcSetMessage, cpqCmcMibRevMinor=cpqCmcMibRevMinor, cpqCmcSetupTemp1=cpqCmcSetupTemp1, cpqCmcsetAudibleAlarm=cpqCmcsetAudibleAlarm, cpqCmcSetupInput1FansOff=cpqCmcSetupInput1FansOff, cpqCmcSetupTemp1AudibleAlarmMin=cpqCmcSetupTemp1AudibleAlarmMin, cpqCmcStatusAlarm2=cpqCmcStatusAlarm2, cpqCmcSetupAux2InputType=cpqCmcSetupAux2InputType, cpqCmcPassword=cpqCmcPassword, cpqCmcLogClass=cpqCmcLogClass, cpqCmcThresholdFan1Hysteresis=cpqCmcThresholdFan1Hysteresis, cpqCmcSetupHumidityRelaysMin=cpqCmcSetupHumidityRelaysMin, cpqCmcSetupInput1Relays=cpqCmcSetupInput1Relays, cpqCmcSetupInput4Avail=cpqCmcSetupInput4Avail, cpqCmcSetupAux2Avail=cpqCmcSetupAux2Avail, cpqCmcTrapTableNumber=cpqCmcTrapTableNumber, cpqCmcSetupShockAvail=cpqCmcSetupShockAvail, cpqCmc=cpqCmc, cpqCmcSetupSmokeFansOff=cpqCmcSetupSmokeFansOff)
nome = str(input('Digite seu nome: ')).strip().capitalize() if nome.upper() == 'GUSTAVO': print(f'Bom dia {nome}, que nome horrivel você tem!') else: print(f'Bom dia {nome}, que nome lindo você tem!')
'''Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com a sua idade, se ele ainda vai se alistar ao serviço militar, se é a hora exata de se alistar ou se já passou do tempo do alistamento. Seu programa também deverá mostrar o tempo que falta ou que passou do prazo.''' idade=int(input('Em que ano você nasceu?')) tempo=abs(idade-2003) print('De acordo com seu ano de nascimento:') if idade>2003: print('Você precisa se alistar em {} anos ,que é o tempo dos seus 18 anos'.format(tempo)) elif idade==2003: print('Você está na idade certa para se alistar') else: print('Já passou {} anos para você se alistar'.format(tempo))
terminal_colors = { "green": "\033[32m", "red": "\033[91m", "reset": "\033[0m", "yellow": "\033[93m" } class SignalsError(Exception): def __init__(self, msg): self.msg = msg def __str__(self): return colorize_string("red", "ERROR: {}".format(self.msg)) def colorize_string(color, msg): return "{}{}{}".format(terminal_colors[color], msg, terminal_colors["reset"]) def warn(msg): print(colorize_string("yellow", msg)) def progress(msg): print(colorize_string("green", msg))
def ts_test(test_file=None, more_data=[]): native.sh_test( name = test_file + "_test", size = "small", srcs = ["//util:run_tests.sh"], # deps = [""], data = [ test_file, "@nodejs//:bin/node", "//:node_modules/mocha/bin/mocha", "//:node_modules/@types/node", "//src:protoc-gen-ts_interfaces.ts", ] + more_data, )
class Solution: def dominantIndex(self, nums): """ :type nums: List[int] :rtype: int """ maxnum = -1 secondmaxnum = -1 maxindex = 0 for i, num in enumerate(nums): if num > maxnum: secondmaxnum = maxnum maxnum = num maxindex = i elif num > secondmaxnum: secondmaxnum = num return maxindex if maxnum >= 2 * secondmaxnum else -1 if __name__ == '__main__': solution = Solution() print(solution.dominantIndex([3, 6, 1, 0])) print(solution.dominantIndex([1, 2, 3, 4])) else: pass
cfg_sdd = { 'img_size': 608, 'conf_thres': 0.5, 'nms_thres': 0.3, }
""" keyed_urls 포맷은 검색엔진에서 키워드를 주고 얻은 이미지 링크 리스트를 저장 한다. 파이썬 구조는 { key: [], ... } 이다. 텍스트 파일 구조는 아래와 같다. ---검색키워드 url url . . . ---검색키워드 url url url . . . """ def write_image_urls_as_file(keyed_urls, filename): """지정한 filename에 keyed_urls을 저장한다. """ with open(filename, 'w') as f: for key, value in keyed_urls.items(): f.write('---' + key + '\n') for url in value: f.write(url + '\n') def read_image_urls_from_file(filename): """지정한 파일이름으로 텍스트 파일을 읽어 keyed_urls에 저장 한다. """ keyed_urls = {} with open(filename, 'r') as f: key = None urls = [] for line in f: line = line.strip() if line.startswith('---'): if key is not None: keyed_urls[key] = urls key = None urls = [] key = line[3:] key = key.strip() else: urls.append(line) if key is not None: keyed_urls[key] = urls return keyed_urls
def fibonacci_seq(num): i = 0 j = 0 k = 0 for i in range(num): if i==0: print(j) elif i==1: j = 1 print(j) else: temp = j j = j+k k = temp print(j) fibonacci_seq(10)
def set_parameters(): parameters = { "model":{ "weight":{ "color":"weights/metric_color_weight.pth", "type":"weights/metric_id_weight.pth" } }, "sys":{ "use_feature":["type"],#使用する特徴量"color" or "type" "search_num":10,#検索数 "custom":False,#組み合わせによる検索 # "custom_pair":[(49,15),(32,47),(5,0),(53,5),(2,5),(10,28),(29,53),(5,30),(47,49),(53,47)], "custom_pair":[(49,15),(32,47),(5,0),(53,5),(29,53),(5,30),(47,49),(53,47), (49,43),(5,1),(7,41),(2,14),(29,30),(5,42),(47,41),(53,7), (41,30),(3,5),(30,28),(8,53),(5,30),(57,49),(53,47), (41,15),(3,0),(22,25),(8,30),(59,42),(57,41),(51,7) ], "search_method":"concat",#検索手法"concat" or "step" "step_search_num":{"0":50, "1":10},#段階検索に使用する検索数 "map_type":2,#MAPの計算に使用する情報 0:color, 1:type, 2:color&type "calc":False, "calc_DB":False,#GUI使用時のみ使う "calc_query":True,#GUI使用時のみ使う "dimension_reduction":False#次元削限による結合を使用するか }, "dataset":{ "use_DB":"DB2", "root":"/Users/buyuu/Desktop/pystd/git_codes/metric-learning-divide-and-conquer/data/img/", "DB1":{#600枚DB "DB_file_path":"evaluation_dataset/evaluation_DB2.txt", "query_file_path":"evaluation_dataset/evaluation_query2.txt", "label_file_path":"evaluation_dataset/image_data2.json" }, "DB2":{#自分の写真を使用 "DB_file_path":"evaluation_dataset/evaluation_DB_mydata.txt", "query_file_path":"evaluation_dataset/evaluation_query_mydata.txt", "label_file_path":"evaluation_dataset/image_data_mydata.json" } }, "image_out":{ "first_plot":False, "show":False }, "gui":{#画像に対してyoloを使用するか "use_yolo":False } } return parameters
class Base: # Base Class command = '' def __init__(self,command): self.command = command
def series1(): num=int(input('enter number: ')) stop=int(input('n0. of elements in series: ')) sum1=0 for i in range (stop): sum1+=num**i print('SUM IS',sum1) series1()
addresses = [3, 225, 1, 225, 6, 6, 1100, 1, 238, 225, 104, 0, 1101, 32, 43, 225, 101, 68, 192, 224, 1001, 224, -160, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 2, 224, 1, 223, 224, 223, 1001, 118, 77, 224, 1001, 224, -87, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 6, 224, 1, 223, 224, 223, 1102, 5, 19, 225, 1102, 74, 50, 224, 101, -3700, 224, 224, 4, 224, 1002, 223, 8, 223, 1001, 224, 1, 224, 1, 223, 224, 223, 1102, 89, 18, 225, 1002, 14, 72, 224, 1001, 224, -3096, 224, 4, 224, 102, 8, 223, 223, 101, 5, 224, 224, 1, 223, 224, 223, 1101, 34, 53, 225, 1102, 54, 10, 225, 1, 113, 61, 224, 101, -39, 224, 224, 4, 224, 102, 8, 223, 223, 101, 2, 224, 224, 1, 223, 224, 223, 1101, 31, 61, 224, 101, -92, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 4, 224, 1, 223, 224, 223, 1102, 75, 18, 225, 102, 48, 87, 224, 101, -4272, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 7, 224, 1, 224, 223, 223, 1101, 23, 92, 225, 2, 165, 218, 224, 101, -3675, 224, 224, 4, 224, 1002, 223, 8, 223, 101, 1, 224, 224, 1, 223, 224, 223, 1102, 8, 49, 225, 4, 223, 99, 0, 0, 0, 677, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1105, 0, 99999, 1105, 227, 247, 1105, 1, 99999, 1005, 227, 99999, 1005, 0, 256, 1105, 1, 99999, 1106, 227, 99999, 1106, 0, 265, 1105, 1, 99999, 1006, 0, 99999, 1006, 227, 274, 1105, 1, 99999, 1105, 1, 280, 1105, 1, 99999, 1, 225, 225, 225, 1101, 294, 0, 0, 105, 1, 0, 1105, 1, 99999, 1106, 0, 300, 1105, 1, 99999, 1, 225, 225, 225, 1101, 314, 0, 0, 106, 0, 0, 1105, 1, 99999, 1107, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 329, 1001, 223, 1, 223, 1007, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 344, 1001, 223, 1, 223, 108, 677, 226, 224, 102, 2, 223, 223, 1006, 224, 359, 1001, 223, 1, 223, 7, 226, 226, 224, 1002, 223, 2, 223, 1005, 224, 374, 101, 1, 223, 223, 107, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 389, 1001, 223, 1, 223, 1007, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 404, 1001, 223, 1, 223, 1107, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 419, 1001, 223, 1, 223, 108, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 434, 1001, 223, 1, 223, 1108, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 449, 1001, 223, 1, 223, 1108, 677, 226, 224, 102, 2, 223, 223, 1005, 224, 464, 1001, 223, 1, 223, 107, 226, 226, 224, 102, 2, 223, 223, 1006, 224, 479, 1001, 223, 1, 223, 1008, 226, 226, 224, 102, 2, 223, 223, 1005, 224, 494, 101, 1, 223, 223, 7, 677, 226, 224, 1002, 223, 2, 223, 1005, 224, 509, 101, 1, 223, 223, 8, 226, 677, 224, 1002, 223, 2, 223, 1006, 224, 524, 1001, 223, 1, 223, 1007, 226, 226, 224, 1002, 223, 2, 223, 1006, 224, 539, 101, 1, 223, 223, 1008, 677, 677, 224, 1002, 223, 2, 223, 1006, 224, 554, 101, 1, 223, 223, 1108, 677, 677, 224, 102, 2, 223, 223, 1006, 224, 569, 101, 1, 223, 223, 1107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 584, 1001, 223, 1, 223, 8, 677, 226, 224, 1002, 223, 2, 223, 1006, 224, 599, 101, 1, 223, 223, 1008, 677, 226, 224, 102, 2, 223, 223, 1006, 224, 614, 1001, 223, 1, 223, 7, 226, 677, 224, 1002, 223, 2, 223, 1005, 224, 629, 101, 1, 223, 223, 107, 226, 677, 224, 102, 2, 223, 223, 1005, 224, 644, 101, 1, 223, 223, 8, 677, 677, 224, 102, 2, 223, 223, 1005, 224, 659, 1001, 223, 1, 223, 108, 677, 677, 224, 1002, 223, 2, 223, 1005, 224, 674, 101, 1, 223, 223, 4, 223, 99, 226] def getParamByMode(mode, step, index, inputs): if mode == 0: return inputs[inputs[index + step]] return inputs[index + step] def getParamsByMode(mode1, mode2, index, inputs): return getParamByMode(mode1, 1, index, inputs), getParamByMode(mode2, 2, index, inputs) def getParamModes(modes): return [int(mode) for mode in [modes[2], modes[1], modes[2], modes[3:]]] def addition(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) inputs[inputs[index + 3]] = param1 + param2 def multiply(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) inputs[inputs[index + 3]] = param1 * param2 def less(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) inputs[inputs[index + 3]] = 1 if param1 < param2 else 0 def equal(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) inputs[inputs[index + 3]] = 1 if param1 == param2 else 0 def jumpIfTrue(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) return param2 if param1 != 0 else index + 3 def jumpIfFalse(mode1, mode2, index, inputs): param1, param2 = getParamsByMode(mode1, mode2, index, inputs) return param2 if param1 == 0 else index + 3 def computify(inputs, userInput): index = 0 diagnostic = None while inputs[index] != 99: mode1, mode2, mode3, opcode = getParamModes(f"{inputs[index]:05}") if opcode == 1: addition(mode1, mode2, index, inputs) index += 4 elif opcode == 2: multiply(mode1, mode2, index, inputs) index += 4 elif opcode == 3: inputs[inputs[index + 1]] = userInput index += 2 elif opcode == 4: diagnostic = inputs[inputs[index + 1]] index += 2 elif opcode == 5: index = jumpIfTrue(mode1, mode2, index, inputs) elif opcode == 6: index = jumpIfFalse(mode1, mode2, index, inputs) elif opcode == 7: less(mode1, mode2, index, inputs) index += 4 elif opcode == 8: equal(mode1, mode2, index, inputs) index += 4 return diagnostic print(computify(addresses[:], 1)) print(computify(addresses[:], 5))
DATASET = 'forest-2' CLASSES = 2 FEATURES = 54 NN_SIZE = 256 DIFFICULTY = 10000 class Override(): def __init__(self): self.HPC_FILE = '../data/' + DATASET + '-hpc-fake' override = Override()
def includeme(config): config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('persons', '/services/persons') config.add_route('person', '/services/person/{code}') config.add_route('photo', '/services/person/{code}/photo')
class Solution: def solve(self, nums): k = Counter(nums).most_common(1)[0][1] locs = defaultdict(list) for i in range(len(nums)): locs[nums[i]].append(i) return min(locs[num][i+k-1]-locs[num][i]+1 for num in locs for i in range(len(locs[num])-k+1))
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ################################################################################ # load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ABSEIL_COMMIT = "99477fa9f1e89a7d8253c8aeee331864710d080c" ABSEIL_SHA256 = "495e8e1c481018126b2a84bfe36e273907ce282b135e7d161e138e463d295f3d" def absl_repositories(bind = True): http_archive( name = "com_google_absl", strip_prefix = "abseil-cpp-" + ABSEIL_COMMIT, url = "https://github.com/abseil/abseil-cpp/archive/" + ABSEIL_COMMIT + ".tar.gz", sha256 = ABSEIL_SHA256, ) def zlib_repositories(bind = True): BUILD = """ # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ################################################################################ # licenses(["notice"]) exports_files(["README"]) cc_library( name = "zlib", srcs = [ "adler32.c", "crc32.c", "crc32.h", "deflate.c", "deflate.h", "infback.c", "inffast.c", "inffast.h", "inffixed.h", "inflate.c", "inflate.h", "inftrees.c", "inftrees.h", "trees.c", "trees.h", "zconf.h", "zutil.c", "zutil.h", ], hdrs = [ "zlib.h", ], copts = [ "-Wno-shift-negative-value", "-Wno-unknown-warning-option", ], defines = [ "Z_SOLO", ], visibility = [ "//visibility:public", ], ) """ http_archive( name = "zlib", strip_prefix = "zlib-1.2.11", urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"], sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff", build_file_content = BUILD, ) PROTOBUF_COMMIT = "3.16.0" # Mar 04, 2021 PROTOBUF_SHA256 = "7892a35d979304a404400a101c46ce90e85ec9e2a766a86041bb361f626247f5" RULES_PROTO_SHA = "97d8af4dc474595af3900dd85cb3a29ad28cc313" # Oct 31, 2019 RULES_PROTO_SHA256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208" def protobuf_repositories(bind = True): http_archive( name = "com_google_protobuf", strip_prefix = "protobuf-" + PROTOBUF_COMMIT, url = "https://github.com/google/protobuf/archive/v" + PROTOBUF_COMMIT + ".tar.gz", sha256 = PROTOBUF_SHA256, ) http_archive( name = "rules_proto", sha256 = RULES_PROTO_SHA256, strip_prefix = "rules_proto-" + RULES_PROTO_SHA, urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/" + RULES_PROTO_SHA + ".tar.gz", "https://github.com/bazelbuild/rules_proto/archive/" + RULES_PROTO_SHA + ".tar.gz", ], ) GOOGLETEST_COMMIT = "703bd9caab50b139428cea1aaff9974ebee5742e" # v1.10.0: Oct 2, 2019 GOOGLETEST_SHA256 = "d17b1b83a57b3933565a6d0616fe261107326d47de20288d0949ed038e1c342d" def googletest_repositories(bind = True): http_archive( name = "com_google_googletest", strip_prefix = "googletest-" + GOOGLETEST_COMMIT, url = "https://github.com/google/googletest/archive/" + GOOGLETEST_COMMIT + ".tar.gz", sha256 = GOOGLETEST_SHA256, ) GOOGLEAPIS_COMMIT = "1d5522ad1056f16a6d593b8f3038d831e64daeea" # Sept 03, 2020 GOOGLEAPIS_SHA256 = "cd13e547cffaad217c942084fd5ae0985a293d0cce3e788c20796e5e2ea54758" def googleapis_repositories(bind = True): http_archive( name = "com_google_googleapis", strip_prefix = "googleapis-" + GOOGLEAPIS_COMMIT, url = "https://github.com/googleapis/googleapis/archive/" + GOOGLEAPIS_COMMIT + ".tar.gz", sha256 = GOOGLEAPIS_SHA256, )
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, "includes/js/tree.js", "PHPDISK")
cur.execute('select * from examplefunc(?,?,?)',{'in1':1,'in2':1.1,'in3':'hello'}) out1=cur.fetchone()[0] out2=cur.fetchone()[1] out3=cur.fetchone()[2]
'''Refaça o desafio 51, lendo o primeiro termo e a razão da PA, mostrando os 10 primeiros termos da progressão usando while.''' print('10 TERMOS DE UMA PA') num = int(input('Digite o primeiro termo: ')) razão = int(input('Digite a razão da PA: ')) décimo = num + (10 - 1) * razão cont = 0 while cont < 10: cont += 1 num += razão print('{} '.format(num), end='- ') print('END')
# Copyright (c) Microsoft Corporation # Licensed under the MIT License. name = 'raiutils' _major = '0' _minor = '0' _patch = '1' version = '{}.{}.{}'.format(_major, _minor, _patch)
class submarine: def __init__(self): self.hpos = 0 # Horizontal Position self.depth = 0 # Depth def _forward(self, dist): self.hpos = self.hpos + dist def _down(self, dist): # print(f"moving depth from {self.depth} by {dist}") self.depth = self.depth + dist # print(f"depth is now: {self.depth}") def _up(self, dist): self.depth = self.depth - dist def move(self, movestr): (direction, distance) = movestr.split(' ') distance = int(distance) if direction == 'forward': self._forward(distance) elif direction == 'down': self._down(distance) elif direction == 'up': self._up(distance)
""" 练习1: 将两个列表,合并为一个字典 姓名列表["张无忌","赵敏","周芷若"] 房间列表[101,102,103] {101: '张无忌', 102: '赵敏', 103: '周芷若'} 练习2: 颠倒练习1字典键值 {'张无忌': 101, '赵敏': 102, '周芷若': 103} """ list_name = ["张无忌", "赵敏", "周芷若"] list_room = [101, 102, 103] # result = {} # for i in range(len(list_name)): # key = list_room[i] # value = list_name[i] # result[key] = value result = {list_name[i]: list_room[i] for i in range(len(list_name))} print(result) # new_result = {} # for key, value in result.items(): # new_result[value] = key new_result = {value: key for key, value in result.items()} print(new_result)
class no_setters(object): def __init__(self): pass def __getattribute__(self, name): varname = f"_{name}" if not name.startswith('_') else name try: attr_tag = super(no_setters, self).__getattribute__("__attr_descriptor__") except AttributeError: attr_tag = "Attribute" err = f"{name} is an invalid {attr_tag}." try: return super(no_setters, self).__getattribute__(varname) except AttributeError: pass raise AttributeError(err) def __setattr__(self, name, value): return False
# # PySNMP MIB module CISCO-LIVEDATA-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LIVEDATA-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:04:40 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, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter64, Bits, TimeTicks, Gauge32, IpAddress, Integer32, MibIdentifier, ModuleIdentity, ObjectIdentity, NotificationType, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter64", "Bits", "TimeTicks", "Gauge32", "IpAddress", "Integer32", "MibIdentifier", "ModuleIdentity", "ObjectIdentity", "NotificationType", "Unsigned32") DateAndTime, TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TruthValue", "TextualConvention", "DisplayString") ciscoLivedataMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 814)) ciscoLivedataMIB.setRevisions(('2013-05-23 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoLivedataMIB.setRevisionsDescriptions(('Initial version of this MIB.',)) if mibBuilder.loadTexts: ciscoLivedataMIB.setLastUpdated('201308290000Z') if mibBuilder.loadTexts: ciscoLivedataMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoLivedataMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com') if mibBuilder.loadTexts: ciscoLivedataMIB.setDescription("Cisco LiveData is the next generation reporting product for Cisco Unified Contact Center Enterprise (CCE). Cisco LiveData provides a horizontally scalable, highly available architecture to support systems with large numbers of reporting users. LiveData enables fast refresh rates on real-time data (3 seconds or less). A LiveData node consumes real-time data streams from one or more sources, processes the data and publishes the resulting data to solution consumers. Consumers may be database management systems, applications or reporting engines. Cisco LiveData aggregates and publishes real-time data and metrics pushed to it (e.g. from the CCE router and/or peripheral gateway components) to a message bus; Cisco Unified Intelligence Center (CUIC) and the CCE Administrator Workstation (AW) subscribe to this message bus to receive real-time data updates. CUIC users then build reports using this real-time data; other CCE clients may also query this real-time data from the CCE AW database. A LiveData cluster consists of one or more nodes; one is designated as the master with additional worker nodes as needed. A LiveData cluster may have a remote peer cluster that works cooperatively in a fault-tolerant model. LiveData cluster peers communicate with one another to negotiate who is the 'active' cluster and who is on 'standby' (only one cluster will be active at a time). If the active cluster fails, the standby cluster will transition to active and begin consuming the data streams previously consumed by the peer cluster. In small deployments, a LiveData cluster will be collocated with CUIC in the same server virtual machine; in larger deployments, a LiveData cluster may include several nodes that may or may not be collocated with CUIC. A single node in a LiveData cluster will have multiple services running in the guest virtual machine that are critical to the successful function of that node. Services may be distributed across the nodes of a cluster to balance the workload. Each node will establish and maintain connections to data sources in the solution. CISCO-LIVEDATA-MIB defines instrumentation unique to the LiveData servers (virtual machines). The instrumentation includes objects of: 1) a general nature - attributes of the device and application, 2) cluster status* and identity, 3) service status and identity and 4) connection status and attributes (including metrics). 5) events * It is important to note that cluster status is shared across all nodes of a cluster; cluster status is not device-specific unless there is only one node in the cluster. The MIB also defines a single notification type; all nodes in all clusters may emit notifications. Service and connection instrumentation is exposed as tables. The number of entries within each table may change over time, adapting to changes within the cluster. Glossary: --------- AW Administrator Workstation component of a Cisco Unified Contact Center Enterprise deployment. The AW collects and serves real-time and configuration data to the CCE solution. CCE (Cisco Unified) Contact Center Enterprise; CCE delivers intelligent contact routing, call treatment, network-to-desktop computer telephony integration, and multichannel contact management over an IP infrastructure. CUIC Cisco Unified Intelligence Center; CUIC is a web- based reporting application that provides real- time and historical reporting in an easy-to-use, wizard-based application for Cisco Contact Center products. UCCE Unified Contact Center Enterprise; see 'CCE'.") class CldIndex(TextualConvention, Unsigned32): description = 'This textual convention represents the index value of an entry in a table. In this MIB, table entries are sorted within a table in an ascending order based on its index value. Indexes for table entries are assigned by the SNMP agent.' status = 'current' displayHint = 'd' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295) class CldSeverity(TextualConvention, Integer32): description = "This textual convention indicates the severity level of a notification or a logged event (or trace) message. The severity levels are: 'emergency': Events of this severity indicate that a devastating failure has occurred; the system or service is unusable. Immediate operator intervention is required. 'alert': Events of this severity indicate that a devastating failure is imminent that will render the system unusable. Immediate operator attention is necessary. 'critical': Events of this severity indicate that a service-impacting failure is likely to occur soon which is the result of an error that was not appropriately handled by the system. Operator attention is needed as soon as possible. 'error': Events of this severity contain important operational state information and may indicate that the system has experienced a temporary impairment or an error that was appropriately handled by the system. An operator should review the notification soon as possible to determine if additional action is needed. 'warning': Events of this severity contain important operational state information that may be a precursor to an error occurrence. An operator should review the event soon to determine if additional action is needed. 'notice': Events of this severity contain health or operational state information that may be pertinent to the health of the system but do not require the immediate attention of the administrator. 'informational': Events of this severity contain interesting system-level information that is valuable to an administrator in time, however, the event itself does not indicate a fault or an impairment condition. 'debug': Events of this severity provide supplemental information that may be beneficial toward diagnosing or resolving a problem but do not necessarily provide operational health status." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8)) namedValues = NamedValues(("emergency", 1), ("alert", 2), ("critical", 3), ("error", 4), ("warning", 5), ("notice", 6), ("informational", 7), ("debug", 8)) ciscoLivedataMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 0)) ciscoLivedataMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1)) cldGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1)) cldCluster = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2)) cldServices = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3)) cldReportingConnections = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4)) cldEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5)) ciscoLivedataMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2)) ciscoLivedataMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1)) ciscoLivedataMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2)) cldServerName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 1), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldServerName.setStatus('current') if mibBuilder.loadTexts: cldServerName.setDescription('This object indicates the fully-qualified domain name of the Cisco LiveData server.') cldDescription = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldDescription.setStatus('current') if mibBuilder.loadTexts: cldDescription.setDescription('This object indicates a textual description of the Cisco LiveData software installed on this server. This is typically the full name of the application.') cldVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldVersion.setStatus('current') if mibBuilder.loadTexts: cldVersion.setDescription('This object indicates the version number of the Cisco LiveData software that is installed on this server.') cldStartTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldStartTime.setStatus('current') if mibBuilder.loadTexts: cldStartTime.setDescription('This object indicates the date and time that the Cisco LiveData software (the primary application service) was started on this server.') cldTimeZoneName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 5), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldTimeZoneName.setStatus('current') if mibBuilder.loadTexts: cldTimeZoneName.setDescription('This object indicates the textual name of the time zone where the Cisco LiveData server (host) is physically located.') cldTimeZoneOffset = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 6), Integer32()).setUnits('minutes').setMaxAccess("readonly") if mibBuilder.loadTexts: cldTimeZoneOffset.setStatus('current') if mibBuilder.loadTexts: cldTimeZoneOffset.setDescription('This object indicates the number of minutes that the local time, in the time zone where the Cisco LiveData server (host) is physically located, differs from Greenwich Mean Time (GMT).') cldEventNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cldEventNotifEnable.setStatus('current') if mibBuilder.loadTexts: cldEventNotifEnable.setDescription("This object specifies whether event generation is enabled in the SNMP entity. This object allows a management station to disable, during run time, all outgoing Cisco LiveData notifications. This is typically done during a maintenance window when many application components are frequently stopped, reconfigured and restarted, which can generate periodic floods of notifications that are not desirable during a maintenance period. Please note that this setting is persistent even after a restart of the agent; the management station must explicitly reset this object value back to 'true' to re-enable outgoing application notifications from this device. When the value of this object is 'true', notifications will be sent to configured management stations. When the value is set to 'false' by a management station, notifications will not be sent to configured management stations. The default value of this object is 'true'. The value of this object does not alter the normal table management behavior of the event table, i.e., generated events will be stored in the event table regardless of the value of this object.") cldClusterID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 1), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldClusterID.setStatus('current') if mibBuilder.loadTexts: cldClusterID.setDescription("This object indicates a cluster- unique textual identifier for this cluster (e.g. 'sideA').") cldClusterStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("pairedActive", 1), ("pairedStandby", 2), ("isolatedActive", 3), ("isolatedStandby", 4), ("testing", 5), ("outOfService", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cldClusterStatus.setStatus('current') if mibBuilder.loadTexts: cldClusterStatus.setDescription("This object indicates the current status of this cluster of Cisco LiveData servers. A cluster is a group of one or more Cisco LiveData servers that work cooperatively to consume and process inbound real-time data from one or more data sources. Work is distributed between worker nodes within the cluster by the master node. A cluster may have a peer cluster in a fault-tolerant deployment model that will assume data processing duties in the event where its active peer cluster fails. 'pairedActive': The cluster is actively processing data and is communicating with its remote peer cluster. 'pairedStandby': The cluster is standing by (waiting to process data if necessary) and is communicating with its remote peer cluster. 'isolatedActive': The cluster is is actively processing data but has lost peer-to-peer communication with it's remote peer cluster. 'isolatedStandby': The cluster is standing by (waiting to process data if necessary) but has lost peer-to-peer communication with its remote peer cluster. 'testing': The cluster is unable to communicate with the remote peer cluster via the peer-to-peer connection and it is invoking the 'test-other-side' procedure to decide whether to become active or to go into a standby state. 'outOfService': The cluster is out of service.") cldClusterAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 2, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldClusterAddress.setStatus('current') if mibBuilder.loadTexts: cldClusterAddress.setDescription('This object indicates the hostname or the IP address of the remote peer cluster for peer-to-peer communication with the remote cluster.') cldServiceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1), ) if mibBuilder.loadTexts: cldServiceTable.setStatus('current') if mibBuilder.loadTexts: cldServiceTable.setDescription('The service table is a list of Cisco LiveData services. A service in this context is one or more executable processes that have been configured to run on this server. Service table objects include both the service name and the current run state of that service. A single LiveData server will have multiple running services, each of a different type, that encompass the LiveData solution on a particular server. Some of these services work cooperatively with similar or dependent services on other server nodes in the cluster. The SNMP agent constructs the service table at startup; the agent refreshes this table periodically during runtime to offer a near real-time status of configured services. Service table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.') cldServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldServiceIndex")) if mibBuilder.loadTexts: cldServiceEntry.setStatus('current') if mibBuilder.loadTexts: cldServiceEntry.setDescription('Each service entry represents a Cisco LiveData service. The LiveData application software includes a collection of related services, each of which perform a specific, necessary function of the application.') cldServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 1), CldIndex()) if mibBuilder.loadTexts: cldServiceIndex.setStatus('current') if mibBuilder.loadTexts: cldServiceIndex.setDescription('The service index is a value that uniquely identifies an entry in the services table. This value is arbitrarily assigned by the SNMP agent.') cldServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldServiceName.setStatus('current') if mibBuilder.loadTexts: cldServiceName.setDescription('This object indicates a user-intuitive textual name for the Cisco LiveData service.') cldServiceState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("disabled", 2), ("starting", 3), ("started", 4), ("active", 5), ("stopping", 6), ("stopped", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cldServiceState.setStatus('current') if mibBuilder.loadTexts: cldServiceState.setDescription("This object indicates the last known state of the Cisco LiveData service. The object value identifies the run status of a configured service installed on the Cisco LiveData server. The possible service states are: 'unknown': The status of the service cannot be determined. 'disabled': The service has been explicitly disabled by an administrator. 'starting': The service is currently starting up but has not yet completed its startup procedure. 'started': The service has completed its startup procedure and is currently running. 'active': The service has been started, is currently running and is actively processing data. 'stopping': The service is stopping and is in the midst of its shutdown procedure. 'stopped': The service is stopped. The service may be dysfunctional or impaired, or it has been explicitly stopped by an administrator.") cldServiceUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 3, 1, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldServiceUpTime.setStatus('current') if mibBuilder.loadTexts: cldServiceUpTime.setDescription('This object indicates the date and time that this service started.') cldReportingConnectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1), ) if mibBuilder.loadTexts: cldReportingConnectionTable.setStatus('current') if mibBuilder.loadTexts: cldReportingConnectionTable.setDescription('The reporting connection table is a list of Cisco LiveData server reporting connections. A LiveData server maintains a number of active connections to data sources; most often, these are contact center solution nodes that generate real- time data that is ultimately used for creating reports. Reporting connection table objects include objects that identify the reporting connection, the current state of that connection and a set of metrics and attributes that offer an indication of the connection health and performance. A single LiveData server may have multiple reporting connections, each to a different peer node and/or to multiple data sources from a single node. The SNMP agent constructs the reporting connection table at startup; the agent refreshes this table periodically during runtime when each LiveData service reports connection states. Reporting connection table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.') cldReportingConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldRptConnIndex")) if mibBuilder.loadTexts: cldReportingConnectionEntry.setStatus('current') if mibBuilder.loadTexts: cldReportingConnectionEntry.setDescription('Each reporting connection entry represents a Cisco LiveData reporting connection. The LiveData application connects to a number of data sources, each of which sends real-time data as a stream to the LiveData server.') cldRptConnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 1), CldIndex()) if mibBuilder.loadTexts: cldRptConnIndex.setStatus('current') if mibBuilder.loadTexts: cldRptConnIndex.setDescription('The reporting connection index is a value that uniquely identifies an entry in the reporting connection table. This value is arbitrarily assigned by the SNMP agent.') cldRptConnServerID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnServerID.setStatus('current') if mibBuilder.loadTexts: cldRptConnServerID.setDescription('This object indicates a user-intuitive textual identification for the Cisco LiveData connection; this is indicative of the source of the real-time data streamed via this reporting connection.') cldRptConnServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnServerAddress.setStatus('current') if mibBuilder.loadTexts: cldRptConnServerAddress.setDescription('This object indicates the hostname or IP address of the peer node in this reporting connection.') cldRptConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnState.setStatus('current') if mibBuilder.loadTexts: cldRptConnState.setDescription('This object indicates the current state of this reporting connection; it is either active or inactive.') cldRptConnStateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 5), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnStateTime.setStatus('current') if mibBuilder.loadTexts: cldRptConnStateTime.setDescription('This object indicates the date and time that this reporting connection transitioned into its current state.') cldRptConnEventRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 6), Gauge32()).setUnits('events').setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnEventRate.setStatus('current') if mibBuilder.loadTexts: cldRptConnEventRate.setDescription('This object indicates the number of events that are arriving via this connection per second.') cldRptConnHeartbeatRTT = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 7), Gauge32()).setUnits('milliseconds').setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnHeartbeatRTT.setStatus('current') if mibBuilder.loadTexts: cldRptConnHeartbeatRTT.setDescription('This object indicates the time, in milliseconds, for heartbeat requests to be returned from the peer node in this reporting connection.') cldRptConnSocketConnects = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnSocketConnects.setStatus('current') if mibBuilder.loadTexts: cldRptConnSocketConnects.setDescription('This object indicates the number of successful socket connections made to the peer node in this reporting connection.') cldRptConnSocketDisconnects = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnSocketDisconnects.setStatus('current') if mibBuilder.loadTexts: cldRptConnSocketDisconnects.setDescription('This object indicates the number of socket disconnects with the peer node in this reporting connection. This is used in conjunction with cldConnSocketConnects to identify unstable connections to a particular endpoint.') cldRptConnMessagesDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 10), Counter32()).setUnits('messages').setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnMessagesDiscarded.setStatus('current') if mibBuilder.loadTexts: cldRptConnMessagesDiscarded.setDescription('This object indicates the number of messages sent by the peer node in this reporting connection that have been discarded.') cldRptConnDSCP = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 4, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldRptConnDSCP.setStatus('current') if mibBuilder.loadTexts: cldRptConnDSCP.setDescription('This object indicates the Differentiated Services (DS) value currently used by this reporting connection for Quality of Service (QoS) marking.') cldEventTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1), ) if mibBuilder.loadTexts: cldEventTable.setStatus('current') if mibBuilder.loadTexts: cldEventTable.setDescription('The event table is a list of active Cisco LiveData events. The SNMP agent constructs the event table at startup and it fills the table as events are generated. Events with the same cldEventID value will overwrite existing events in the table with the same EventID (i.e. only the most recent will persist). Event table entries cannot be added to or deleted from the table by the management station. All objects in this table are read-only.') cldEventEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-LIVEDATA-MIB", "cldEventIndex")) if mibBuilder.loadTexts: cldEventEntry.setStatus('current') if mibBuilder.loadTexts: cldEventEntry.setDescription('Each event entry represents a Cisco LiveData event. The LiveData application software generates events when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server.') cldEventIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 1), CldIndex()) if mibBuilder.loadTexts: cldEventIndex.setStatus('current') if mibBuilder.loadTexts: cldEventIndex.setDescription('The event index is a value that uniquely identifies an entry in the event table. This value is arbitrarily assigned by the SNMP agent.') cldEventID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventID.setStatus('current') if mibBuilder.loadTexts: cldEventID.setDescription("This object indicates the unique numeric event message identifier that is assigned by the LiveData server to this event. This identifier is unique for each different event. The event ID can be used to correlate 'clear' state events to 'raise' state events.") cldEventAppName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventAppName.setStatus('current') if mibBuilder.loadTexts: cldEventAppName.setDescription('This object indicates the service- specific name of the Cisco LiveData functional service that generated this event.') cldEventName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 4), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventName.setStatus('current') if mibBuilder.loadTexts: cldEventName.setDescription('This object indicates the service-specific name of the Cisco LiveData event message. The object value is used to group similar events.') cldEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("raise", 1), ("clear", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventState.setStatus('current') if mibBuilder.loadTexts: cldEventState.setDescription("This object indicates the state (not to be confused with severity) of the event and potentially the current status of the functional component that generated the event. The possible states are: 'raise': A raise state identifies an event received as a result of a health-impacting condition, such as a process failure. A subsequent clear state event will follow when the error condition is resolved. A node which generates a 'raise' state event may be impaired and likely requires the attention of an administrator. 'clear': The clear state indicates that the condition which generated a previous raise notification has been resolved. This may occur automatically with fault-tolerant deployments or may be the result of administrator intervention.") cldEventSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 6), CldSeverity()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventSeverity.setStatus('current') if mibBuilder.loadTexts: cldEventSeverity.setDescription('This object indicates the severity level of this event.') cldEventTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 7), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventTimestamp.setStatus('current') if mibBuilder.loadTexts: cldEventTimestamp.setDescription('This object indicates the date and time that the event was generated on the originating device.') cldEventText = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 814, 1, 5, 1, 1, 8), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cldEventText.setStatus('current') if mibBuilder.loadTexts: cldEventText.setDescription('This object indicates the full text of the event which includes a description of the event that was generated, component state information and potentially a brief description of administrative action that may be necessary to correct the condition that caused the event to occur.') cldEventNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 814, 0, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventID"), ("CISCO-LIVEDATA-MIB", "cldServerName"), ("CISCO-LIVEDATA-MIB", "cldEventAppName"), ("CISCO-LIVEDATA-MIB", "cldEventName"), ("CISCO-LIVEDATA-MIB", "cldEventState"), ("CISCO-LIVEDATA-MIB", "cldEventSeverity"), ("CISCO-LIVEDATA-MIB", "cldEventTimestamp"), ("CISCO-LIVEDATA-MIB", "cldEventText")) if mibBuilder.loadTexts: cldEventNotif.setStatus('current') if mibBuilder.loadTexts: cldEventNotif.setDescription("The SNMP entity generates cldEventNotif when an unusual condition has occurred that can potentially affect the functioning of the Cisco LiveData server. This notification type describes operational state information of the service generating the notification when such service-impacting conditions occur. A notification is sent by a functional service of the Cisco LiveData server. The notification type includes the following objects: 'cldEventID': The unique numeric event message identifier for this event. 'cldServerName': The fully-qualified domain name of the Cisco LiveData server that generated the notification. 'cldEventAppName': The name of the Cisco LiveData functional service that generated this event. 'cldEventName': The service-specific name of the Cisco LiveData event message. 'cldEventState': The state of the event, either 'raise' or 'clear'. A 'raise' state event is generated when an unusual or service- impacting condition occurs while a 'clear' state event is generated when a prior condition has been resolved. 'cldEventSeverity': The severity level of this event; an integer value from 1 (emergency) to 8 (debug). 'cldEventTimestamp': The date and time that the event was generated. 'cldEventText': The full text of the event.") ciscoLivedataMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 1, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldGeneralGroup"), ("CISCO-LIVEDATA-MIB", "cldClusterGroup"), ("CISCO-LIVEDATA-MIB", "cldServicesGroup"), ("CISCO-LIVEDATA-MIB", "cldRptConnectionsGroup"), ("CISCO-LIVEDATA-MIB", "cldEventsGroup"), ("CISCO-LIVEDATA-MIB", "cldMIBEventGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoLivedataMIBCompliance = ciscoLivedataMIBCompliance.setStatus('current') if mibBuilder.loadTexts: ciscoLivedataMIBCompliance.setDescription('This object is the compliance statement for entities which implement the Cisco LiveData MIB.') cldGeneralGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 1)).setObjects(("CISCO-LIVEDATA-MIB", "cldServerName"), ("CISCO-LIVEDATA-MIB", "cldDescription"), ("CISCO-LIVEDATA-MIB", "cldVersion"), ("CISCO-LIVEDATA-MIB", "cldStartTime"), ("CISCO-LIVEDATA-MIB", "cldTimeZoneName"), ("CISCO-LIVEDATA-MIB", "cldTimeZoneOffset"), ("CISCO-LIVEDATA-MIB", "cldEventNotifEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldGeneralGroup = cldGeneralGroup.setStatus('current') if mibBuilder.loadTexts: cldGeneralGroup.setDescription('The general group defines the general Cisco LiveData objects. All servers will populate these objects.') cldClusterGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 2)).setObjects(("CISCO-LIVEDATA-MIB", "cldClusterID"), ("CISCO-LIVEDATA-MIB", "cldClusterStatus"), ("CISCO-LIVEDATA-MIB", "cldClusterAddress")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldClusterGroup = cldClusterGroup.setStatus('current') if mibBuilder.loadTexts: cldClusterGroup.setDescription('The cluster group defines the Cisco LiveData objects related to the cluster of LiveData servers. All servers will populate these objects.') cldServicesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 3)).setObjects(("CISCO-LIVEDATA-MIB", "cldServiceName"), ("CISCO-LIVEDATA-MIB", "cldServiceState"), ("CISCO-LIVEDATA-MIB", "cldServiceUpTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldServicesGroup = cldServicesGroup.setStatus('current') if mibBuilder.loadTexts: cldServicesGroup.setDescription('The services group defines the Cisco LiveData service table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers and the types of services will vary as well.') cldRptConnectionsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 4)).setObjects(("CISCO-LIVEDATA-MIB", "cldRptConnServerID"), ("CISCO-LIVEDATA-MIB", "cldRptConnServerAddress"), ("CISCO-LIVEDATA-MIB", "cldRptConnState"), ("CISCO-LIVEDATA-MIB", "cldRptConnStateTime"), ("CISCO-LIVEDATA-MIB", "cldRptConnEventRate"), ("CISCO-LIVEDATA-MIB", "cldRptConnHeartbeatRTT"), ("CISCO-LIVEDATA-MIB", "cldRptConnSocketConnects"), ("CISCO-LIVEDATA-MIB", "cldRptConnSocketDisconnects"), ("CISCO-LIVEDATA-MIB", "cldRptConnMessagesDiscarded"), ("CISCO-LIVEDATA-MIB", "cldRptConnDSCP")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldRptConnectionsGroup = cldRptConnectionsGroup.setStatus('current') if mibBuilder.loadTexts: cldRptConnectionsGroup.setDescription('The reporting connections group defines the Cisco LiveData connection table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.') cldEventsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 5)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventID"), ("CISCO-LIVEDATA-MIB", "cldEventAppName"), ("CISCO-LIVEDATA-MIB", "cldEventName"), ("CISCO-LIVEDATA-MIB", "cldEventState"), ("CISCO-LIVEDATA-MIB", "cldEventSeverity"), ("CISCO-LIVEDATA-MIB", "cldEventTimestamp"), ("CISCO-LIVEDATA-MIB", "cldEventText")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldEventsGroup = cldEventsGroup.setStatus('current') if mibBuilder.loadTexts: cldEventsGroup.setDescription('The events group defines the Cisco LiveData event table objects. All servers will populate these objects, however, the number of entries in the table will vary across servers.') cldMIBEventGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 814, 2, 2, 6)).setObjects(("CISCO-LIVEDATA-MIB", "cldEventNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cldMIBEventGroup = cldMIBEventGroup.setStatus('current') if mibBuilder.loadTexts: cldMIBEventGroup.setDescription('This group defines the notification types defined in this MIB.') mibBuilder.exportSymbols("CISCO-LIVEDATA-MIB", cldEventEntry=cldEventEntry, cldServerName=cldServerName, cldRptConnState=cldRptConnState, cldEventsGroup=cldEventsGroup, cldCluster=cldCluster, ciscoLivedataMIBGroups=ciscoLivedataMIBGroups, ciscoLivedataMIB=ciscoLivedataMIB, cldEvents=cldEvents, cldEventID=cldEventID, cldEventTable=cldEventTable, cldEventText=cldEventText, CldSeverity=CldSeverity, cldRptConnHeartbeatRTT=cldRptConnHeartbeatRTT, cldServiceTable=cldServiceTable, cldRptConnIndex=cldRptConnIndex, cldRptConnectionsGroup=cldRptConnectionsGroup, cldClusterGroup=cldClusterGroup, cldServicesGroup=cldServicesGroup, cldReportingConnectionEntry=cldReportingConnectionEntry, cldRptConnServerAddress=cldRptConnServerAddress, CldIndex=CldIndex, ciscoLivedataMIBConform=ciscoLivedataMIBConform, cldRptConnStateTime=cldRptConnStateTime, cldRptConnSocketDisconnects=cldRptConnSocketDisconnects, cldTimeZoneOffset=cldTimeZoneOffset, cldEventNotif=cldEventNotif, cldVersion=cldVersion, cldStartTime=cldStartTime, cldMIBEventGroup=cldMIBEventGroup, cldGeneralGroup=cldGeneralGroup, cldClusterStatus=cldClusterStatus, ciscoLivedataMIBCompliances=ciscoLivedataMIBCompliances, cldServiceIndex=cldServiceIndex, cldEventSeverity=cldEventSeverity, ciscoLivedataMIBNotifs=ciscoLivedataMIBNotifs, cldEventIndex=cldEventIndex, ciscoLivedataMIBCompliance=ciscoLivedataMIBCompliance, cldEventTimestamp=cldEventTimestamp, cldGeneral=cldGeneral, cldServiceEntry=cldServiceEntry, cldEventName=cldEventName, cldTimeZoneName=cldTimeZoneName, cldEventAppName=cldEventAppName, cldRptConnEventRate=cldRptConnEventRate, cldServiceName=cldServiceName, cldServiceState=cldServiceState, cldClusterAddress=cldClusterAddress, cldServiceUpTime=cldServiceUpTime, cldDescription=cldDescription, cldRptConnServerID=cldRptConnServerID, cldRptConnSocketConnects=cldRptConnSocketConnects, cldRptConnDSCP=cldRptConnDSCP, cldReportingConnections=cldReportingConnections, cldEventState=cldEventState, cldClusterID=cldClusterID, cldReportingConnectionTable=cldReportingConnectionTable, cldServices=cldServices, PYSNMP_MODULE_ID=ciscoLivedataMIB, cldEventNotifEnable=cldEventNotifEnable, cldRptConnMessagesDiscarded=cldRptConnMessagesDiscarded, ciscoLivedataMIBObjects=ciscoLivedataMIBObjects)
__version__ = '0.2.14' __package__ = 'django-politico-slackchat-renderer' default_app_config = 'chatrender.apps.ChatrenderConfig'
# Fantasy Game Inventory # Chapter 5 - Dictionaries and Data Structures def display_inventory(inv, name=None): if name is None: print("Inventory:") else: print("Inventory of " + name + ":") item_total = 0 for key, val in inv.items(): print(val, end=' ') print(key) item_total += inv[key] # inv[key] == val print("Total number of items: " + str(item_total)) def add_to_inventory(inv, added_items): for i in added_items: inv.setdefault(i, 0) # if an item is not in the dict, add it inv[i] += 1 # add 1 to inv for each item in added_items inv_mike = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12} inv_jason = {'torch': 1, 'rope': 2, 'gold coin': 123, 'sword': 1, 'arrow': 45, 'longbow': 1} display_inventory(inv_mike, "Mike") print("\n") dragon_loot = ['gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby', 'diamond', 'sword'] add_to_inventory(inv_mike, dragon_loot) display_inventory(inv_mike, "Mike") add_to_inventory(inv_jason, dragon_loot) display_inventory(inv_jason, "Jason")
def cadastrar(*args): try: telaProduto = args[0] telaErro = args[1] cursor = args[2] banco10 = args[3] QtWidgets = args[4] sabor = telaProduto.produto_cadastro.text() valor = telaProduto.valor_cadastro.text() ingredientes = telaProduto.ingredientes.text() sabor = sabor.upper() ingredientes = ingredientes.upper() tamanho = 'Dez' sql = "insert into dezPedacos(sabor, tamanho, valorProduto, ingredientes) values(%s, %s, %s, %s)" dados = (str(sabor), str(tamanho), valor, str(ingredientes)) cursor.execute(sql, dados) banco10.commit() lista = [] sql = "select * from broto" cursor.execute(sql) dados1 = cursor.fetchall() sql = "select * from seisPedacos" cursor.execute(sql) dados2 = cursor.fetchall() sql = "select * from oitoPedacos" cursor.execute(sql) dados3 = cursor.fetchall() sql = "select * from dezPedacos" cursor.execute(sql) dados4 = cursor.fetchall() for j, k, l, m in zip(dados1, dados2, dados3, dados4): lista.append(j) lista.append(k) lista.append(l) lista.append(m) telaProduto.tableWidget_cadastro.setRowCount(len(lista)) telaProduto.tableWidget_cadastro.setColumnCount(5) for i in range(0, len(lista)): for j in range(5): telaProduto.tableWidget_cadastro.setItem(i, j, QtWidgets.QTableWidgetItem(str(lista[i][j]))) telaProduto.valor_cadastro.clear() telaProduto.produto_cadastro.clear() telaProduto.ingredientes.clear() except: telaErro.show() telaErro.label.setText(" Erro!Campos vazios ou invalidos")
# task websocket message types TASK_LOG = 'task/log' TASK_INIT = 'task/init' TASK_FAIL = 'task/fail' TASK_STATUS = 'task/status' TASK_RETURN = 'task/return' TASK_STATS = 'task/stats'
# The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. # Given an integer n, return all distinct solutions to the n-queens puzzle. # Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both indicate a queen and an empty space respectively. # For example, # There exist two distinct solutions to the 4-queens puzzle: # [ # [".Q..", // Solution 1 # "...Q", # "Q...", # "..Q."], # ["..Q.", // Solution 2 # "Q...", # "...Q", # ".Q.."] # ] class Solution(object): def solveNQueens(self, n): """ :type n: int :rtype: List[List[str]] """ result = [] if n <= 0: return result cols = [] self.search(n, cols, result); return result def search(self, n, cols, result): if len(cols) == n: result.append(self.drawBoard(cols)) return for col in range(n): if not self.isValid(cols, col): continue cols.append(col) #print cols self.search(n, cols , result) cols.pop() def isValid(self, cols, col): currentRowNumber = len(cols) for i in range(currentRowNumber): # same column if cols[i] == col: return False # left-top to right-bottom if i - cols[i] == currentRowNumber - col: return False # right-top to left-bottom if i + cols[i] == currentRowNumber + col: return False return True def drawBoard(self, cols): board = [] for i in range(len(cols)): line = "" for j in range(len(cols)): if j == cols[i]: line += "Q" else: line += "." board.append(line) return board
logo = """ ____ ___ _____ _____ _____ _____ __ __ _ _ _______ ____ / ___/ _ \| ___| ___| ____| ____| | \/ | / \ | |/ / ____| _ \ | | | | | | |_ | |_ | _| | _| | |\/| | / _ \ | ' /| _| | |_) | | |__| |_| | _| | _| | |___| |___ | | | |/ ___ \| . \| |___| _ < \____\___/|_| |_| |_____|_____| |_| |_/_/ \_\_|\_\_____|_| \_\ """
def foo(bar): return bar + 2 class Foo: baz = staticmethod(foo) f = Foo() print(f.baz(10))
def FirstFactorial(num: int): fact = num while num != 1: print(1, fact) num = num - 1 print(2, num) fact = fact * num return fact # keep this function call here print(3, FirstFactorial(int(input())))
def area(l, c): a = l * c print(f'A área de um terreno de {l}x{c} é: {a}m²') print('Controle de terrenos') larg = float(input('Largura (m): ')) comp = float(input('Comprimento (m): ')) area(larg, comp)
""" Convert DNA sequences to RNA """ def rna(seq): seq = seq.upper() return seq.replace('T','U')
def basic_metrics(tally): tp, tn, fp, fn, _ = tally return { "TPR": tp / (tp + fn), "TNR": tn / (tn + fp), "PPV": tp / (tp + fp), "NPV": tn / (tn + fn), "FPR": fp / (fp + tn), "FNR": fn / (fn + tp) }
# list all remote credentials res = client.get_object_store_remote_credentials() print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list first five remote credentials using default sort res = client.get_object_store_remote_credentials(limit=5) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list first five remote credentials and sort by access key res = client.get_object_store_remote_credentials(limit=5, sort='access_key_id') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list all remaining remote credentials res = client.get_object_store_remote_credentials(continuation_token=res.continuation_token) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list with filter to see only remote credentials that are on a specific remote res = client.get_object_store_remote_credentials(filter='name=\'s3target/*\'') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # Other valid fields: ids, names, offset # See section "Common Fields" for examples
PREFIXES = [ "Who is", "What is", "History of" ] TOPIC_QUESTION = "Define a topic " PREFIX_QUESTION = "Define a prefix" def _generate_prefixes_option_string(prefixes): prefixes_string = "" for key, prefix_string in enumerate(prefixes, start=1): prefixes_string = "{} {} {} \n".format(prefixes_string, str(key), prefix_string) return prefixes_string def get_topic_and_prefix_from_input(): topic_input = input("{}\n".format(TOPIC_QUESTION)) prefix_key_input = input("{}\n{}".format(PREFIX_QUESTION, _generate_prefixes_option_string(PREFIXES))) return [str(topic_input), PREFIXES[int(prefix_key_input) - 1]]
class A(): def disp(self): print("A disp()") class B(A): pass obj = B() obj.disp()
"""Add one to a number.""" def add_one(a): return a+1 def add_thousand(a): return a+1000 def best_group(): return 'Sparks group obviously' def do_literally_nothing_to_my_input(a): return a def Ramsey_made_it(x_1): return x_1
# 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 minCameraCover(self, root: TreeNode) -> int: self.result, covered = 0, {None} def dfs(node, parent = None): if node: dfs(node.left, node) dfs(node.right, node) if (parent is None and node not in covered) or node.left not in covered or node.right not in covered: self.result += 1 covered.update({node, parent, node.left, node.right}) dfs(root) return self.result
# For PyInstaller/lib/ define the version here, since there is no # package-resource. __version__ = '0.12.1' # updated from leycec-modulegraph-1e8f74ef92a5'
# @Title: 搜索旋转排序数组 (Search in Rotated Sorted Array) # @Author: 18015528893 # @Date: 2021-02-18 14:03:16 # @Runtime: 44 ms # @Memory: 15.1 MB class Solution: def search(self, nums: List[int], target: int) -> int: l = 0 r = len(nums)-1 while l < r: mid = l + (r - l + 1) // 2 if nums[mid] >= nums[0]: l = mid else: r = mid - 1 if target >= nums[0]: r = l l = 0 else: l += 1 r = len(nums) -1 while l <= r: mid = l + (r - l ) // 2 if nums[mid] == target: return mid elif nums[mid] > target: r = mid - 1 else: l = mid + 1 return -1
''' Exercicios propostos ''' numero = input('informe um numero ') try: numero = int(numero) if numero % 2 == 0: print('O numero digitado e par') else: print('O numero digitado nao e par') except: print('ERRO') ''' if not numero.isdigit(): print(f'{numero} não é um número inteiro') else: numero = int(numero) if not numero % 2 == 0: print(f'{numero} é ímpar') else: print(f'{numero} é par') '''
# Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.  Return a list of all possible strings we could create. # # # Examples: # Input: S = "a1b2" # Output: ["a1b2", "a1B2", "A1b2", "A1B2"] # # Input: S = "3z4" # Output: ["3z4", "3Z4"] # # Input: S = "12345" # Output: ["12345"] # # # Note: # # # S will be a string with length between 1 and 12. # S will consist only of letters or digits. # # class Solution: def dfs(self, S, index, tmp, result): if len(tmp) == len(S): result.append(tmp) return None if S[index].isdigit(): self.dfs(S, index + 1, tmp + S[index], result) else: self.dfs(S, index + 1, tmp + S[index].upper(), result) self.dfs(S, index + 1, tmp + S[index].lower(), result) return None def letterCasePermutation(self, S: str) -> List[str]: if not S: return [] result = [] self.dfs(S, 0, '', result) return result
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # * RUNTIME SHENG TRANSLATOR - SPANISH TRACK * # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # * Welcome to Runtime Sheng translator. v1.0.0 * # * MIT License, Copyright(c) 2018, Antony Muga * # * All Rights Reserved. * # * Author: Antony Muga * # ---------------------------------------------------------- # * Project's Links: * # * Twitter: https://twitter.com/RuntimeLab * # * Runtime Lab on LinkedIn * # * RuntimeLab on Github * # * RuntimeTranslate project on GitHub * # ---------------------------------------------------------- # * Personal social links: * # * GitHub: https://github.com/antonymuga/ * # * Website: https://antonymuga.github.io * # * LinkedIn: https://www.linkedin.com/in/antony-muga/ * # * Email: https://sites.google.com/view/antonymuga/home * # ---------------------------------------------------------- # Only has sheng words that start with letter A, B and C for now shengToSpa = { "A-Level" : "Sexo anal", "Aajabu ": "Asombroso", "Abdala" : "Pene", "Abdalla ": "Pene", "Achumbati" : "Una mujer", "Achwiti" : "Una mujer", "Adida" : "Fútbol", "Adidaro ": "Adidas", "Adisia" : "Añadir más", "Advencha" : "Aventuras", "Afere" : "Tarifa de autobús o Matatu", "Afko" : "Alcohol", "Agiza" : "Pedir algo", "Agote" : "Dile hola a", "Ahando ": "Un centenar", "Air ponje" : "Aeropuerto", "Akadai" : "Él / ella reclamó", "Akajam ": "Él / ella se enojó", "Akajangori" : "Él / ella se enojó", "Akala" : "Sandalias hechas de neumáticos viejos", "Akamero" : "Camión de la basura", "Akorino" : "Policía de transito", "Alaji" : "Por lo general, un hombre con un estómago grande o una persona rica", "Alidai" : "Él / ella reclamó", "Aliningam" : "Él / ella me vio", "Alipewa" : "Él / ella se hizo íntimo con alguien", "Aliturn" : "Volvió", "Alloy" : "Llantas de coche", "Aluru" : "Codornices", "Alutas" : "Miraa/khat", "Ambaa ": "Salir", "Amebeat" : "Él / ella no es atractivo", "Amechapa" : "Él / ella no es atractivo", "Amechoka" : "Él / ella no es atractivo", "Ameparara" : "Él / ella no es atractivo", "Amero ": "Estados Unidos de America", "Amful" : "Cigarrillo", "Anadai" : "Él / ella está reclamando", "Ananedesha ": "Él / ella tiene un estómago corriendo", "Angukia" : "Ocurrir sobre algo con carencia", "Ankara" : "Cannabis Sativa/Bhang", "Ankules" : "Tío", "Antelope" : "Una mujer hermosa", "Antidhes" : "Tía", "Antinyita" : "No entender algo", "Arbesa" : "Cuarenta chelines", "Area" : "Barrio", "Arif" : "Un amigo o conocido", "Arme" : "Un soldado", "ARV" : "Licor falso o de segunda generación", "Asapa" : "Aquí", "Ashara" : "Negocio", "Ashoo" : "Diez chelines", "Ashu" : "Diez chelines", "Atacho" : "Anexo industrial del estudiante", "Ati" : "¿Qué?", "Atmo" : "Atmósfera", "Atoti" : "Una chica atractiva", "Aunty" : "Househelp o mucama", "Avunja" : "Botas", "Azaara" : "Desastre o calamidad", "Azaro" : "Una camisa", "Baafo": "Hace mucho tiempo", "Babayao": "Tuff dude / Top dog", "Babe": "Una niña, en su mayoría la novia", "Babii": "Una persona rica, en su mayoría de la parte alta", "Babito": "Marca de Soda", "Baden": "Más tarde o en otro momento", "Badi": "Una persona gorda o con sobrepeso", "Badu": "Nalgas", "Baesa": "Un bar o pub", "Bafu": "Con o jugar a alguien", "Bagiko": "Una bolsa o mochila", "Baidii": "Nalgas o la parte posterior de una mujer", "Bakee": "El juego de baloncesto", "Bakes": "Dinero", "Bakora": "Pene", "Ball": "Un embarazo", "Bamba mukuchu": "Toma dinero", "Bamba Vi Meja": "Obtener realmente entusiasmado con algo", "Bambika": "Emocionarse", "Bambua": "Bajar de un vehículo o caer en algún lugar", "Bambuka": "Bajar de un vehículo o caer en algún lugar", "Bambwa": "Queda atrapado con las manos en la masa o arrestado por la policía", "Bandal": "Un paquete de dinero", "Bandi": "Un bandido o ladrón", "Bandika": "Derrota a un equipo contrario en un juego deportivo", "Banga": "Dinero", "Bangaisa": "Ajetreo", "Bangaiza": "Estar inactivo sin nada que hacer", "Bangla": "Barrio de Kariobangi en Nairobi", "Bango": "Un chelín", "Bangu": "Un barrio en Nairobi llamado Kariobangi", "Bani": "Una persona malvada o egoísta", "Banja": "Hablar con", "Banjuka": "Baile", "Bankika": "Obtener financiables u obtener una cuenta", "Bankiko": "El Banco", "Bano": "Mármoles con los que juegan los niños, especialmente en el gueto", "Banza": "Esconder", "Barbie": "Una chica de la zona alta que es snob", "Barley": "Alcohol", "Baro": "El camino, especialmente uno con asfalto", "Baruta": " Una chica poco moral ... generalmente una que duerme con prácticamente cualquier hombre que pase.", "Bauwau": "Un perro", "Bazenga": "Padre o papá", "Beast": "Un policía o mujer desagradable", "Beat": "Derrota a alguien sin piedad", "Beatika": "Se rompió", "Bediko": "Una cama", "Beema": "Un automóvil fabricado por BMW", "Belii": "Pantalones de campana", "Bembe ": "Suplica o pide a alguien", "Bembea": "Cuélgate de la puerta de un matatu", "Benz": "Mercedes Benz", "Bereel": "Moneda de diez chelines", "Berwa": "Doscientos chelines", "Beshte": "Un amigo cercano ", "Beste": "Un amigo cercano ", "Beta": "Una batería", "Bez": "Un lugar (por lo general en el barrio) donde los niños pequeños (rara vez encuentras chicas) mientras estás fuera debido a la falta de trabajo", "Bhazenga": "Padre o papá", "Biare": "Oliendo pegamento", "Biech": "Para cagar", "Biela": "Para cagar", "Bielo": "Para cagar", "Bigi": "Algo grande", "Bika": "Galleta", "Biko": "Elaboración ilícita o de segunda generación", "Bikwi": "Galleta", "Bila ene": "Sin nada o se rompió", "Bilaz": "Nada / Vacío", "Bingi": "Dreadlocks", "Binja": "Silbar", "Bitikwa": "Para ser golpeado por una mafia", "Bititi": "El pecho de una mujer", "Biz": "Empresa comercial", "Blackie": "Un tipo de bicicleta popular en África", "Blada": "Condones", "Blaki": "Un tipo de bicicleta popular en África", "Blanda": "Un gran error", "Blangaa": "Una manta", "Blast": "Recibir una charla o consejo de una manera dura", "Blazed": "Sé especialmente alto o ebrio", "Bleki": "Apagón por alcohol o intoxicación", "Blow": "Para ser golpeado", "Blu": "Veinte chelines", "Blue": "Veinte chelines", "Blunje": "Veinte chelines", "Blunt": "Un rollo de cannabis sativa / bhang", "Bob": "Un chelín", "Bodi": "Un tipo duro, generalmente musculoso", "Bodii": "Un tipo duro, generalmente musculoso", "Bof": "Una barra de pan", "Boflo": "Una barra de pan", "Bofulo": "Una barra de pan", "Bofya": "Para comer, generalmente con glutton", "Bogi Benda": "Un alcoholico", "Boiro": "Comida hervida, generalmente carne o huevos de la calle", "Boiz": "Un hombre o un niño", "Boka Nika": "Pantalones cortos", "Boki": "Deporte del boxeo", "Boli": "Una bola", "Bolii": "Una bola", "Bolingo": "Testículos", "Bomoa": "Para comer, especialmente con glutton", "Bonda": "Comer", "Bonga": "Para hablar con alguien", "Bonjii": "Comete un gran error", "Bonoko": "Arma falsa o pistola", "Bonya": "Comer", "Bonzo": "Una persona tonta", "Bop": "Un chelín", "Borre": "Aburrido", "Boss": "Un chico", "Bote": "Una botella", "Botte": "Una botella", "Bouncer": "Un guardia de seguridad que es musculoso", "Box": "Atrapar / Seducir (generalmente una mujer o una persona en un intento de que se dobleguen en su camino / puntos de vista)", "Boy": "Un amigo cercano", "Boza": "cannabis sativa o bhang", "Bracelet" : "Esposas", "Bradhe": "Hermano", "Brandi": "Para estrenar", "Brasa": "Hermano", "Braumba": "Mil chelines", "Braza": "Hermano", "Breadi": "Una barra de pan", "Bredo": "Una barra de pan", "Brekoo": "Desayuno", "Brenyo": "Una barra de pan", "Bro": "Hermano", "Broda": "Nigeriano (aunque a menudo se usa para referirse a un hombre nigeriano)", "Brown": "Nota de mil chelines", "Browse": "Tener sexo con", "Bu": "Transporte público matatu o autobús", "Buda": "Padre o papá", "Buferoo": "Tarifa de bus o matatu", "Bule ": "Bala", "Bulle": "Bala", "Bum ": "Nalgas", "Bumburusha": "Para perseguir algo", "Bundee ": "Un arma o rifle", "Bunduz": "Upcountry", "Buntuyus": "Papá/padre", "Buogo": "Para asustar a alguien", "Buruka": "Para volar", "Burungo": "Mercancía (aunque generalmente se usa para artículos de contrabando pero puede usarse casualmente para significar prácticamente cualquier cosa)", "Busto": "Estación de autobuses", "Butiwa": "Ser abandonado por tu pareja romántica", "Buu": "Matatu o autobús de transporte público", "Buuda": "Un amigo, generalmente hombre", "Buyu": "Semillas de árboles Baobab", "Buzz": "Buzz de tomar alcohol", "Bwagi": "Baggy trousers", "Bwaku": "Baggy true Something big sets", "Bwao": "Pantalones holgados", "Bweks": "Dos", "Bwerere": "Gratis", "Bwex": "Dos", "Cabo": "Repollo", "Cahonas": "Pene", "Cajani": "Casa Hogar", "Cajer": "Una casa", "Calif": "California", "Campo": "Campus", "Canto": "Cantina", "Cd": "Condones", "Cha Mbele": "En el extranjero / en el extranjero", "Chababa": "Jugar casa", "Chacha": "Bombo", "Chako": "Juego de escondite", "Chali": "Un chico, un hombre o un chico", "Cham": "Cerveza ilícita", "Champee": "Campeón", "Chana": "Masticar Khat o miraa", "Changanyikiwa": "Mezclado", "Chanja": "Apuñalar", "Chanuka": "Ilustrado", "Chapa": "Vencer", "Chapaa": "Dinero", "Chapo": "Chapati, tipo de hornear masa de harina de trigo plana", "Chapoo": "Chapati, tipo de hornear masa de harina de trigo plana", "Chara ": "Rompió", "Chare": "Un truco o mentiroso", "Chea": "Jugar (connotación de relación sexual)", "Cheda": "Dinero", "Chedas": "Dinero", "Cheddar": "Dinero", "Cheki": "Mira algo", "Chem": "Química", "Chenchiko": "Cambio de moneda", "Chiba": "Chips o papas fritas", "Chibo": "Chips o papas fritas", "Chica": "Una chica, una mujer, una novia", "Chief" : "Un chico", "Chikita": " Una mujer o novia", "Chilax": "Enfriamiento / Relajación / Pasar el rato", "Chile": "Chica, mujer, amiga", "Chill": "Pasar el rato sin una chica (generalmente en una función / evento)", "Chimama": "Una chica o novia", "Chingiri": "Alcohol", "Chini ya maji": "Runnings frescos", "Chini ya waba": "Runnings frescos", "Chini ya woiye": "Clandestino", "Chini ya woiyes": "Clandestino", "Chinjia": "Para vibrar una chica", "Chinku": "De origen chino (tal vez artículo o persona)", "Chipipi": "Una esposa, (libremente, una novia)", "Chipo": "Chips o papas fritas", "Chips funga": "Una persona (generalmente una mujer) recogió de un club o pub o fiesta", "Chiu": "Desnudo", "Chiwo": "Un Vigilante o Guardia de Seguridad", "Chizi": "Persona loca", "Chobo": "Un juego de fútbol donde el objetivo es intentar pasar el balón entre las piernas de otro jugador", "Choboua": "Es un juego si la pelota pasa entre tus piernas te golpean", "Chocha": "Incitar", "Chock": "Un sorbo, trago", "Chogi": "Vigilante, guardia nocturno", "Choka": "Ser poco atractivo", "Choko": "Erizo de la calle", "Chokoraa": "Erizo de la calle", "Chokosh": "Erizo de la calle", "Choma": "Para infectar con una enfermedad / infección de transmisión sexual", "Chomaa": "Portarse mal", "Chomea Wire": "Snitch sobre alguien o chillar o dejar que el gato salga de la bolsa", "Chomeka": "Infectarse con / por VIH / SIDA", "Chonga": "Esculpir", "Chonjo": "Alerta", "Choo": "Washroom / toilet", "Chop": "Leer o estudiar", "Chopi": "Una persona inteligente o ratón de biblioteca", "Chora": "Plan", "Chorea": "Planificar (generalmente para conquistar sexualmente o para golpear)", "Choroboa": "Gota - de pasajeros en un matatu", "Chox": " Limuru Girls High School", "Choz": "Problema", "Chrome": "Llantas llamativas", "Chuani": "Cincuenta chelines nota", "Chubliu": "Sonido de algo que cae en el agua", "Chudi": "Pene", "Chuja": "Cortar", "Chujaa": "Zapatos", "Chujwa": "Ser eliminado de", "Chuma": "Pistola o rifle", "Chumaz": "Pistola o rifle", "Chump": "Ir", "Chunguch": "Mirar furtivamente", "Chuo": "Colegio", "Chuodho": "Cuchara", "Chuom": "Un callejón", "Chuotho": "Cuchara", "Chupa": "Alcohol", "Chupri": "Rompió", "Chuviu": "Una catapulta hecha de alambre de suspensión de ropa", "Chwa": "Quitarse", "Chwaa": "Dinero", "Chwaki": "Cabeza", "Chwakire": "Cabeza", "Chwani": "Cincuenta chelines", "Chwanire": "Cincuenta", "Chwara": "Un tipo de cerveza ilícita", "Cladi": "Ropa", "Clande": "Hombre o mujer que está involucrado en una relación sexual con una persona que tiene una relación con otra persona", "Club 71": "Gente gay", "Cold Case": "Comida fría", "Collabo": "Colaboración (comúnmente utilizada en círculos musicales)", "Colle": "Universidad", "Color": "Dinero", "Comp": "Computadora", "Concodi": "Transporte público todo", "Condedhe": "Un condón", "Coni": "Un artista de Conman o Con", "Costarika": "Costa, Mombasa", "Credo": "Tiempo de uso del teléfono o crédito", "Creebas": "Papas fritas", "Crib": "Hogar o casa", "Cribas": "Papas fritas", "Cribaz": "Papas fritas", "Crime Scene": "Cocina", "Cross Nayo": "Robar", "Cucu": "Abuela", "Daala": "Casa rural", "Dabo": "Doble", "Dabodabo": "Regla en el juego de los mármoles", "Dabus": "Papá padre", "Dabuz": "Papá padre", "Dach": "Aula", "Dache": "Dinero", "Daddy": "Amigo / amigo / amigo", "Dadi": "Chico", "Daewoo": "Coche de policía", "Daf": "Dinero", "Daga": "Cuchillo, daga", "Dago": "Dagoretti, un lugar en Nairobi", "Dai": "Reclamación", "Daidii": "culo, culo", "Dail": "Llamar (por teléfono, generalmente móvil)", "Dak": "Evitar (de una persona)", "Daka": "Para atrapar (generalmente una pelota)", "Dala": "Casa rural o dinero", "Dame": "Una chica / novia", "Danda": "Una persona que no es muy inteligente", "Dandi": "Un coche", "Dandia": "Saltar sobre", "Dandoch": "Dandora, un lugar en Nairobi", "Dangulo": "Casa", "Dank": "Para cagar", "Danse": "Policía / policía", "Dara": "Caricia / dedo", "Daro": " Un aula", "Daroo": "Clase", "Dashboad": "Pecho / senos / Pechos", "Daso": "Soda", "Data": "Estar confundido (generalmente debido al amor)", "Dau": "Dinero", "Dawa": "Hierba", "Dawi": "Casa", "De-Motsivated": "Descuidado", "Deadie": "Él / ella murió", "Deadisha": "Haz que muera", "Debe": "Música", "Dede": "Saltamontes", "Dedi": "Él / ella murió", "Degaga": "Gafas / gafas oscuras", "Degee": "Mira, mira, mira", "Dem": "Una chica o novia", "Dema": "Comer", "Demu": "Una chica o novia", "Dendai": "Una chica hermosa", "Denki": "Para cagar", "Depa": "Diputado", "Dere": "Conductor", "Desa": "Un patio de juegos donde no hay hierba", "Design": "Tal que / en eso / de una manera", "Deso": "Soda", "Dhafu": "Matemáticas", "Dhande": "Electricidad o pornografía", "Dhefs": "Papá padre", "Dhoka": "Esto está fuera de control", "Dhooti": "Un traje", "Dhuti": "Un traje", "Di": "La parte D de un campo de fútbol o pene", "Diab": "Nalgas / Bulto / Detrás / Culo", "Diambo": "Problema, peligro, problema", "Dibre": "Una barra de pan", "Didre": "Rastas", "Dieres": "Centro o centro", "Digi": "Ver / verificar / ver", "Digii": "Verificar", "Dimanga": "Piedra (singular), plural es ma dimanga o madimanga", "Dimba": "Fútbol", "Dimbua": "Comer", "Dinda": "Rechazar (de una persona o algo)", "Dingoingo": "Escarabajo de escarabajo africano", "Dinga": "Un coche", "Dingo": "Ladrón", "Dinya": "Tener sexo con", "Dise": "diciembre", "Dishi": "Para comer o tener sexo con", "Disk": "Chapati (Pan plano)", "Diurag": "Teléfono móvil", "Doba": "Reggae", "Dogi": "Perro", "Doki": " Doctor", "Dolare": "Dólar", "Don": "Jefe / persona rica", "Don Corleon": "Tough guy / Rich guy / líder de la pandilla", "Dondoa": "Gota - de pasajeros en un matatu", "Dondoka": "Bajar de un vehículo en movimiento ... generalmente autobús o matatu", "Dondosa": "Gira la cintura ... generalmente en el baile", "Donge": "Una etiqueta de pregunta para ¿no?", "Doni": "Donholm, un lugar en Nairobi", "Donjo": "Entrar, tiene una connotación sexual", "Doo": "Dinero", "Doro": "Dormir", "Double Homicide": "Dos cuartos de pollo asado", "Dough": "Dinero", "Dranya": "Una mujer", "Drive": "Diarrea", "Du": "No", "Dub": "Música reggae", "Duba": "Vago / nalgas", "Duf": "Buceo / natación", "Dufo": "Piscina", "Dufo mpararo": "Nadar en agua sucia / Nacimiento loco", "Duks": "Una tienda", "Dula": " Tonto", "Dunas": "No", "Dunda": "Otoño", "Dunga": "Vestir", "Dungia": "Vestido en", "Dungwa": "Perforado", "Dush": "Perforado", "Duu": "No", "Dwanzi": "Tonto" }
""" ASSIGNMENT OPERATORS """ __author__ = 'Sol Amour - amoursol@gmail.com' __twitter__ = '@solamour' __version__ = '1.0.0' # Default values num01 = 10 num02 = 5 plusEquals = num01 + num02 # Simple addition (10 + 5) plusEquals += num01 # The positive assignment operator will take the right operand # (num01) and add this to the left operand (plusEquals) before assingning the result # back to the left operand (plusEquals): e.g original plusEquals (10+5) + num01(10) # = 25 --> plusEquals == 25 subtractEquals = num01 + num02 # Simple addition (10 + 5) subtractEquals -= num02 # The negative assignment operator will take the right operand # (num02) and subtract this from the left operand (subtractEquals) before assingning the # result back to the left operand (subtractEquals): e.g original subtractEquals (10+5) - # num02(5) = 10 --> subtractEquals == 10 multiplyEquals = num01 + num02 # Simple addition (10 + 5) multiplyEquals *= num01 # The multiplication assignment operator will take the right # operand (num01) and multiply this to the left operand (multiplyEquals) before assingning # the result back to the left operand (multiplyEquals): e.g original multiplyEquals (10+5) # * num01(10) = 150 --> multiplyEquals == 150 divideEquals = num01 + num02 # Simple addition (10 + 5) divideEquals /= num02 # The division assignment operator will take the right operand # (num02) and divide this to the left operand (divideEquals) before assingning the result #back to the left operand (divideEquals): e.g original divideEquals (10+5) / num02(5) = 3 # --> multiplyEquals == 3 modulusEquals = num01 + num02 # Simple addition (10 + 5) modulusEquals %= num01 # The modulus assignment operator will take the right operand (num01) # and take the remainder of this to the left operand (modulusEquals) before assingning the # result back to the left operand (modulusEquals): e.g original modulusEquals (10+5) % # num01(10) = 5 --> modulusEquals == 5 exponentEquals = num01 + num02 # Simple addition (10 + 5) exponentEquals **= num02 # The exponent assignment operator will take the right operand # (num02) and take the exponent of this to the left operand (exponentEquals) before assingning # the result back to the left operand (exponentEquals): e.g original exponentEquals (10+5) # ** num02(5) = 759375 --> modulusEquals == 759375 floorDivisionEquals = num01 + num02 # Simple addition (10 + 5) floorDivisionEquals //= num02 # The floor division assignment operator will take the right # operand (num02) and take the floor division of this to the left operand (floorDivisionEquals) # before assingning the result back to the left operand (floorDivisionEquals): e.g original # floorDivisionEquals (10+5) // num02(5) = 3 --> modulusEquals == 3 OUT = plusEquals, subtractEquals, multiplyEquals, divideEquals, modulusEquals, exponentEquals, floorDivisionEquals
print('Analizando nomes!!!') nome = str(input('Nome Completo: ')) print(f'Nome maiuscúlo: {nome.upper()}') print(f'Nome minúsculo: {nome.lower()}') print(f'Numero de letras: {len(nome) - nome.count(" ")}') n = nome.split() print(f'N de letras primeiro nome: {len(n[0])}')
n, a, b = map(int, input().split()) c = a + b cnt = n // c ans = a * cnt + min(n % c, a) print(ans)
""" 参考: https://www.runoob.com/w3cnote/shell-sort.html 希尔排序 - 递减增量排序算法 非稳定排序算法 希尔排序是基于直接插入排序的以下两点性质而提出的改进方法: 1, 插入排序在对几乎已经排好序的数据操作时, 效率高, 即可以达到线性排序的效率; 2, 插入排序一般来说是低效的, 因为插入排序每次只能将数据移动一位. 先将整个待排序的记录序列分割成为若干子序列分别进行直接插入排序, 待整个序列中的记录"基本有序"时, 再对全体记录进行依次直接插入排序. 好的增量序列的共同特征: 1, 最后一个增量必须为1; 2, 应该尽量避免序列中的值(尤其是相邻的值)互为倍数的情况. 最好情况 O(n) 最坏情况 O(n * log n) 平均 O(n * log n) """ def shell_sort(arr): """ 希尔排序 :param arr: :return: """ increment = len(arr) // 2 # 起始增量 while increment >= 1: for i in range(increment, len(arr)): # 切分成 len(arr) // increment 组序列进行插入排序 cur = arr[i] j = i while j > 0 and arr[j - increment] > cur: arr[j] = arr[j - increment] j -= increment arr[j] = cur increment = increment // 2 # 增量逐渐变小 if __name__ == '__main__': tmp = [1, 4, 2, 5, 7, 3, 9, 0, 5] shell_sort(tmp) print(tmp)
l = [1, 4, 6, 8] l.reverse() print(l) s = "строка символов" # последовательность l = [1, 4, 8, 3] l.sort() print(l) l.reverse() print(l)