content
stringlengths
7
1.05M
''' Created on Aug 4, 2012 @author: vinnie ''' class Rotor(object): def __init__(self, symbols, permutation): ''' ''' self.states = [] self.inverse_states = [] self.n_symbols = len(symbols) for i in range(self.n_symbols): self.states.append({symbols[j]: permutation[(j + i) % self.n_symbols] for j in range(self.n_symbols)}) self.inverse_states.append( {permutation[(j + i) % self.n_symbols]: symbols[j] for j in range(self.n_symbols)}) self.odometer = 0 return def state(self): ''' Get the current encryption state ''' return self.states[self.odometer] def inverse_state(self): ''' Get the current decryption state ''' return self.inverse_states[self.odometer] def step(self): ''' Advance the rotor by one step. This is equivalent to shifting the offsets ''' self.odometer = (self.odometer + 1) % self.n_symbols return def setOdometer(self, position): ''' ''' self.odometer = position % self.n_symbols def permute(self, symbol): ''' Encrypt a symbol in the current state ''' return self.states[self.odometer][symbol] def invert(self, symbol): ''' Decrypt a symbol in the current state ''' return self.inverse_states[self.odometer][symbol] def __str__(self, *args, **kwargs): output = "Permute\tInvert\n" for k in self.states[self.odometer].keys(): output += "%s => %s\t%s => %s\n" \ % (str(k), self.states[self.odometer][k], str(k), self.inverse_states[self.odometer][k]) return output class Enigma(object): ''' The Enigma cipher ''' def __init__(self, rotors, reflector): ''' ''' self.stecker = {} self.dec_stecker = {} self.rotors = rotors # rotors go from left to right self.reflector = reflector self.dec_reflector = {reflector[s]: s for s in reflector.keys()} self.odometer_start = [] def configure(self, stecker, odometer_start): ''' ''' assert len(odometer_start) == len(self.rotors) - 1 self.stecker = stecker self.dec_stecker = {stecker[s]: s for s in stecker.keys()} self.odometer_start = odometer_start return def set_rotor_positions(self, rotor_positions): ''' ''' for r, p in zip(self.rotors, rotor_positions): r.setOdometer(p) return def get_rotor_positions(self): ''' ''' return [r.odometer for r in self.rotors] def step_to(self, P): for i in range(P): self.step_rotors() return def step_rotors(self): ''' ''' # step the rightmost rotor self.rotors[0].step() # step the remaining rotors in an odometer-like fashion for i in range(len(self.odometer_start)): if self.rotors[i + 1].odometer == self.odometer_start[i]: self.rotors[i + 1].step() return def translate_rotors(self, c): ''' ''' for r in self.rotors: c = r.permute(c) c = self.reflector[c] for r in reversed(self.rotors): c = r.invert(c) return c def encrypt(self, str): ''' ''' enc = "" for c in str: e = self.stecker[c] e = self.translate_rotors(e) e = self.stecker[e] self.step_rotors() enc += e return enc def decrypt(self, enc): ''' The same function is used to both encrypt and decrypt. ''' return self.encrypt(enc) def __str__(self, *args, **kwargs): output = "" for s in sorted(self.reflector.keys()): output += "%s => %s | " % (str(s), self.stecker[s]) for r in self.rotors: output += "%s => %s " % (str(s), r.permute(s)) output += "%s => %s | " % (str(s), r.invert(s)) output += "%s => %s" % (str(s), self.reflector[s]) output += "\n" return output
class BasePexelError(Exception): pass class EndpointNotExists(BasePexelError): def __init__(self, end_point, _enum) -> None: options = _enum.__members__.keys() self.message = f'Endpoint "{end_point}" not exists. Valid endpoints: {", ".join(options)}' super().__init__(self.message) class ParamNotExists(BasePexelError): def __init__(self, name, _enum, param) -> None: options = _enum.__members__.keys() self.message = f'{param} not exists in {name}. Valid params: {", ".join(options)}' super().__init__(self.message) class IdNotFound(BasePexelError): def __init__(self, end_point) -> None: self.message = f'ID is needed for "{end_point}"' super().__init__(self.message)
"""Containers for DL CONTROL file MC move type descriptions Moves are part of the DL CONTROL file input. Each type of move gets a class here. The classification of the available Move types is as follows: Move MCMove AtomMove MoleculeMove ... [others, some of which are untested in regression tests] VolumeMove (aka NPT move) VolumeVectorMove VolumeOrthoMove VolumeCubicMove The dlmove.from_string(dlstr) function provides a factory method to generate the appropriate Move from DL CONTROL style input. """ def parse_atom(dlstr): """Atoms are expected as 'Name core|shell' only""" try: tokens = dlstr.split() atom = {"id": "{} {}".format(tokens[0], tokens[1])} except IndexError: raise ValueError("Unrecognised Atom: {!s}".format(dlstr)) return atom def print_atom(atom): """Return atom record for DL CONTROL""" return atom["id"] def parse_molecule(dlstr): """Molecules are 'Name" only""" tokens = dlstr.split() molecule = {"id": tokens[0]} return molecule def print_molecule(molecule): """Return molecule record for DL CONTROL""" return molecule["id"] def parse_atom_swap(dlstr): """Swaps are e.g., 'atom1 core atom2 core' """ try: tok = dlstr.split() swap = {"id1": "{} {}".format(tok[0], tok[1]), \ "id2": "{} {}".format(tok[2], tok[3])} except IndexError: raise ValueError("Unrecognised atom swap: {!r}".format(dlstr)) return swap def print_atom_swap(swap): """Return atom swap string for DL CONTROL""" return "{} {}".format(swap["id1"], swap["id2"]) def parse_molecule_swap(dlstr): """Swap records have two tokens""" try: tokens = dlstr.split() swap = {"id1": tokens[0], "id2": tokens[1]} except IndexError: raise ValueError("Unrecognised molecule swap: {!r}".format(dlstr)) return swap def print_molecule_swap(swap): """Return a swap for DL CONTROL output""" return "{} {}".format(swap["id1"], swap["id2"]) def parse_atom_gcmc(dlstr): """GCMC Atoms include a chemical potential/partial pressure""" try: tok = dlstr.split() atom = {"id": "{} {}".format(tok[0], tok[1]), "molpot": float(tok[2])} except (IndexError, TypeError): raise ValueError("Unrecognised GCMC Atom: {!r}".format(dlstr)) return atom def parse_molecule_gcmc(dlstr): """Grand Canonical MC includes chemical potential/partial pressure""" try: tok = dlstr.split() molecule = {"id": tok[0], "molpot": float(tok[1])} except (IndexError, TypeError): raise ValueError("Unrecognised GCMC Molecule: {!r}".format(dlstr)) return molecule def print_gcmc(gcmc): """Return string version of chemical potential records for DL CONTROL""" return "{} {}".format(gcmc["id"], gcmc["molpot"]) class Move(object): """This classifies all moves""" key = None @classmethod def from_string(cls, dlstr): """To be implemented by MCMove or VolumeMove""" NotImplementedError("Should be implemented by subclass") class MCMove(Move): """MC moves involve atoms or molecules""" parse_mover = staticmethod(None) print_mover = staticmethod(None) def __init__(self, pfreq, movers): """pfreq (int): percentage probability of move per step""" self.pfreq = pfreq self.movers = movers def __str__(self): """Return well-formed DL CONTROL block""" strme = [] move = "move {} {} {}".format(self.key, len(self.movers), self.pfreq) strme.append(move) for mover in self.movers: strme.append(self.print_mover(mover)) return "\n".join(strme) def __repr__(self): """Return a readable form""" repme = "pfreq= {!r}, movers= {!r}".format(self.pfreq, self.movers) return "{}({})".format(type(self).__name__, repme) @classmethod def from_string(cls, dlstr): """Generate an instance from a DL CONTROL entry""" lines = dlstr.splitlines() line = lines.pop(0) pfreq = MCMove._parse_move_statement(line)[2] movers = [] for line in lines: mover = cls.parse_mover(line) movers.append(mover) return cls(pfreq, movers) @staticmethod def _parse_move_statement(dlstr): """Parse move line""" try: tokens = dlstr.lower().split() if tokens[0] != "move": raise ValueError("Expected 'move' statement") mtype, nmove, pfreq = tokens[1], int(tokens[2]), int(tokens[3]) except IndexError: raise ValueError("Badly formed 'move' statement?") return mtype, nmove, pfreq class GCMove(Move): """Grand Canonical insertions have an extra minimum insertion distance parameter cf standard MCMove types """ parse_mover = staticmethod(None) print_mover = staticmethod(None) def __init__(self, pfreq, rmin, movers): """Initalise GCMove parameters Arguments: pfreq (integer): percentage rmin (float): grace distance movers (): """ self.pfreq = pfreq self.rmin = rmin self.movers = movers def __str__(self): """Return well-formed DL CONTROL block""" strme = [] move = "move {} {} {} {}".format(self.key, len(self.movers), self.pfreq, self.rmin) strme.append(move) for mover in self.movers: strme.append(self.print_mover(mover)) return "\n".join(strme) def __repr__(self): """Return a GCMove (subsclass) represetation""" repme = "pfreq= {!r}, rmin= {!r}, movers= {!r}"\ .format(self.pfreq, self.rmin, self.movers) return "{}({})".format(type(self).__name__, repme) @classmethod def from_string(cls, dlstr): """Generate instance form well-formed DL CONTROL string""" lines = dlstr.splitlines() line = lines.pop(0) pfreq, rmin = GCMove._parse_move_statement(line)[2:] movers = [] for line in lines: mover = cls.parse_mover(line) movers.append(mover) return cls(pfreq, rmin, movers) @staticmethod def _parse_move_statement(dlstr): """Parse GC move line""" try: tokens = dlstr.lower().split() if tokens[0] != "move": raise ValueError("Expected 'move' statement") mtype, nmove, pfreq, rmin = \ tokens[1], int(tokens[2]), int(tokens[3]), float(tokens[4]) except IndexError: raise ValueError("Badly formed 'move' statement?") return mtype, nmove, pfreq, rmin class VolumeMove(Move): """Container for volume (NPT) moves""" def __init__(self, pfreq, sampling=None): """Initialise continaer Arguemnts: pfreq (integer): percentage sampling (string): description """ self.pfreq = pfreq self.sampling = sampling def __str__(self): """Return well-formed DL CONTROL file string""" if self.sampling is not None: strme = "move volume {} {} {}"\ .format(self.key, self.sampling, self.pfreq) else: strme = "move volume {} {}".format(self.key, self.pfreq) return strme def __repr__(self): """Return a readable string""" repme = "pfreq= {!r}, sampling= {!r}".format(self.pfreq, self.sampling) return "{}({})".format(type(self).__name__, repme) @classmethod def from_string(cls, dlstr): """E.g., 'move volume vector|ortho|cubic [sampling-type] pfreq' """ tokens = dlstr.split() try: sampling = None pfreq = int(tokens[-1]) # sampling-type is an optional one or two (string) tokens if len(tokens) == 5: sampling = tokens[3] if len(tokens) == 6: sampling = "{} {}".format(tokens[3], tokens[4]) except (IndexError, TypeError): raise ValueError("VolumeMove: unrecognised: {!r}".format(dlstr)) return cls(pfreq, sampling) class AtomMove(MCMove): """Concrete class for atom moves""" key = "atom" parse_mover = staticmethod(parse_atom) print_mover = staticmethod(print_atom) class MoleculeMove(MCMove): """Concrete class for molecule moves""" key = "molecule" parse_mover = staticmethod(parse_molecule) print_mover = staticmethod(print_molecule) class RotateMoleculeMove(MCMove): """Concrete class for rotate molecule moves""" key = "rotatemol" parse_mover = staticmethod(parse_molecule) print_mover = staticmethod(print_molecule) class SwapAtomMove(MCMove): """Concrete class for swap atom moves""" key = "swapatoms" parse_mover = staticmethod(parse_atom_swap) print_mover = staticmethod(print_atom_swap) class SwapMoleculeMove(MCMove): """Concrete class for swap molecule moves""" key = "swapmols" parse_mover = staticmethod(parse_molecule_swap) print_mover = staticmethod(print_molecule_swap) class InsertAtomMove(GCMove): """Concrete class for Grand Canonical atom moves""" key = "gcinsertatom" parse_mover = staticmethod(parse_atom_gcmc) print_mover = staticmethod(print_gcmc) class InsertMoleculeMove(GCMove): """Concrete class for Grand Canonical molecule moves""" key = "gcinsertmol" parse_mover = staticmethod(parse_molecule_gcmc) print_mover = staticmethod(print_gcmc) class SemiWidomAtomMove(MCMove): """No exmaples are available""" key = "semiwidomatoms" # Format needs to be confirmed class SemiGrandAtomMove(MCMove): """No examples are available""" key = "semigrandatoms" # Format needs to be confirmed class SemiGrandMoleculeMove(MCMove): """NO examples are available""" key = "semigrandmol" # Format needs to be confirmed class VolumeVectorMove(VolumeMove): """Concrete class for vector volume moves""" key = "vector" class VolumeOrthoMove(VolumeMove): """Concrete class for ortho volume moves""" key = "ortho" class VolumeCubicMove(VolumeMove): """Concrete class for cubic volume moves""" key = "cubic" def from_string(dlstr): """Factory method to return an instance from a well-formed DL CONTROL file move statement (a block of 1 plus n lines) Argument: dlstr (string) move statement plus atom/molecule descriptions """ moves_volume = {"vector": VolumeVectorMove, "ortho": VolumeOrthoMove, "cubic": VolumeCubicMove} moves_mc = {"atom": AtomMove, "molecule": MoleculeMove, "rotatemol": RotateMoleculeMove, "gcinsertatom": InsertAtomMove, "gcinsertmol": InsertMoleculeMove} lines = dlstr.splitlines() tokens = lines[0].lower().split() if tokens[0] != "move" or len(tokens) < 4: raise ValueError("Expected: 'move key ...': got {!r}".format(lines[0])) key = tokens[1] # We need to allow for possible DL key abbreviations if key.startswith("atom"): key = "atom" if key.startswith("molecu"): key = "molecule" if key.startswith("rotatemol"): key = "rotatemol" inst = None if key == "volume": subkey = tokens[2] if subkey in moves_volume: inst = moves_volume[subkey].from_string(dlstr) else: if key in moves_mc: inst = moves_mc[key].from_string(dlstr) if inst is None: raise ValueError("Move unrecognised: {!r}".format(dlstr)) return inst
class Person(object): type = '人类' # 类属性 def __init__(self, name, age): self.name = name self.age = age # 对象 p 是通过 Person 类创建出来的 p = Person('zs', 18) # Person类存在哪个地方 # 只要创建了一个实例对象,这个实例对象就有自己的name和age属性 # 对象属性,每个实例对象都单独保存的属性 # 每个实例对象之间的属性没有关联,互不影响 # 获取类属性:可以通过类对象和实例对象获取 print(Person.type) print(p.type) p.type = 'monkey' # 并不会修改类属性,而是给实例对象添加了一个新的属性 print(p.type) print(Person.type) # 类属性只能通过类对象修改,实例对象无法修改类属性 Person.type = 'human' print(p.type)
#https://www.acmicpc.net/problem/1712 a, b, b2 = map(int, input().split()) if b >= b2: print(-1) else: bx = b2 - b count = a // bx + 1 print(count)
grade_1 = [9.5,8.5,6.45,21] grade_1_sum = sum(grade_1) print(grade_1_sum) grade_1_len = len(grade_1) print(grade_1_len) grade_avg = grade_1_sum/grade_1_len print(grade_avg) # create Function def mean(myList): the_mean = sum(myList) / len(myList) return the_mean print(mean([10,1,1,10])) def mean_1(value): if type(value)== dict: the_mean = sum(value.values())/len(value) return the_mean else: the_mean = sum(value) / len(value) return the_mean dic = {"1":10,"2":20} LIS = [10,20] print(mean_1(dic)) print(mean_1(LIS)) def mean_2(value): if isinstance(value , dict): the_mean = sum(value.values())/len(value) return the_mean else: the_mean = sum(value) / len(value) return the_mean dic_1 = {"1":10,"2":20} LIS_1 = [10,20] print(mean_2(dic)) print(mean_2(LIS_1)) def foo(temperature): if temperature > 7: return "Warm" else: return "Cold"
if 0: pass if 1: pass else: pass if 2: pass elif 3: pass if 4: pass elif 5: pass else: 1
print("Halo") print("This is my program in vscode ") name = input("what your name : ") if name == "Hero": print("Wow your name {} ? , my name is Hero too, nice to meet you ! ".format(name)) else: print("Halo {} , nice to meet you friend".format(name)) age = input("how old are you : ") if age == "21": print("wow it's same my age 21 too") else: print("wow that's great ~")
def foo(numbers, path, index, cur_val, target): if index == len(numbers): return cur_val, path # No point in continuation if cur_val > target: return -1, "" sol_1 = foo(numbers, path+"1", index+1, cur_val+numbers[index], target) # Found the solution. Do not continue. if sol_1[0] == target: return sol_1 sol_2 = foo(numbers, path+"0", index+1, cur_val, target) if sol_2[0] == target: return sol_2 if sol_1[0] == -1 or sol_1[0] > target: if sol_2[0] == -1 or sol_2[0] > target: return -1, "" else: return sol_2 else: if sol_2[0] == -1 or sol_2[0] > target or sol_1[0] > sol_2[0]: return sol_1 else: return sol_2 while True: try: line = list(map(int, input().split())) N = line[1] Target = line[0] numbers = line[2:] if sum(numbers) <= Target: print((" ".join(map(str, numbers))) + " sum:{}".format(sum(numbers))) else: sol, path = foo(numbers, "", 0, 0, Target) print(" ".join([str(p) for p, v in zip(numbers, path) if v=="1"]) + " sum:{}".format(sol)) except(EOFError): break
# general_sync_utils # similar to music_sync_utils but more general class NameEqualityMixin(): def __eq__(self, other): if isinstance(other, str): return self.name == other return self.name == other.name def __ne__(self, other): return not self.__eq__(other) def __hash__(self): return hash(self.name) class Folder(NameEqualityMixin): def __init__(self, name): self.name = name self.contents = [] # similar to contents # but name:object pairs self.contents_map = {} def __str__(self): return "{0}: {1}".format(self.name, [str(c) for c in self.contents]) class File(NameEqualityMixin): def __init__(self, name, size): self.name = name self.size = size def __str__(self): return self.name class SyncAssertions: def assertFolderEquality(self, actual, expected): for a_i in actual.contents: if a_i not in expected.contents: raise AssertionError("Item {0} not in folder {1}".format(a_i, expected)) if isinstance(a_i, Folder): b_i, = [i for i in expected.contents if i.name == a_i.name] print("Checking subfolders: ", a_i, b_i) self.assertFolderEquality(a_i, b_i) for b_i in expected.contents: if b_i not in actual.contents: raise AssertionError("Item {0} not in folder {1}".format(b_i, actual)) if isinstance(b_i, Folder): a_i, = [i for i in actual.contents if i.name == b_i.name] print("Checking subfolders: ", a_i, b_i) self.assertFolderEquality(a_i, b_i) return
LABEL_TRASH = -1 LABEL_NOISE = -2 LABEL_ALIEN = -9 LABEL_UNCLASSIFIED = -10 LABEL_NO_WAVEFORM = -11 to_name = { -1: 'Trash', -2 : 'Noise', -9: 'Alien', -10: 'Unclassified', -11: 'No waveforms', }
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b , c ) : if ( a + b <= c ) or ( a + c <= b ) or ( b + c <= a ) : return False else : return True #TOFILL if __name__ == '__main__': param = [ (29,19,52,), (83,34,49,), (48,14,65,), (59,12,94,), (56,39,22,), (68,85,9,), (63,36,41,), (95,34,37,), (2,90,27,), (11,16,1,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
infile=open("proverbs.txt","r") for line in infile: line=line.rstrip() word_list=line.split() #공백 단어분리 for word in word_list: print(word); infile.close()
# Enter your code here. Read input from STDIN. Print output to STDOUT rd,rm,ry=map(int,input().split()) ed,em,ey=map(int,input().split()) if ry<ey: print("0") elif ry<=ey: if rm<=em: if rd<=ed: print("0") else: print(15*(rd-ed)) else: print(500*(rm-em)) else: print(10000)
# card.py # Implements the Card object. class Card: """ A Card of any type. """ def __init__(self, title, desc, color, holder, is_equip, use): self.title = title self.desc = desc self.color = color self.holder = holder self.is_equipment = is_equip self.use = use def dump(self): return { 'title': self.title, 'desc': self.desc, 'color': self.color.name, 'is_equip': self.is_equipment }
# -*- coding:utf-8 -*- def time_(time_delta): result = "" if time_delta < 60: temp = int(((time_delta / 3600) * 3600) % 60) result = '%s秒前' % temp elif time_delta < 3600: temp = int(((time_delta / 3600) * 3600) / 60) result = '%s分钟前' % temp elif time_delta < 24 * 60 * 60: result = '%s小时%s分钟前' % (int(time_delta // 3600), int((((time_delta % 3600) / 3600) * 3600) / 60)) elif time_delta < 24 * 60 * 60 * 30: result = '%s天前' % (int(time_delta / (24 * 60 * 60)),) elif time_delta < 24 * 60 * 60 * 30 * 12: result = '%s月前' % (int(time_delta / (24 * 60 * 60 * 30)),) else: result = '%s年前' % (int(time_delta / (24 * 60 * 60 * 30 * 12)),) return result
n1 = float(input('Informe a primeira nota do Aluno: ')) n2 = float(input('informe a segunda nota: ')) m = (n1 + n2) / 2 print('Sua media foi de {}'.format(m))
class BaseAnalyzer(object): def __init__(self, base_node): self.base_node = base_node def analyze(self): raise NotImplementedError()
## Exercício 60 do livro Python 3 - Conceitos e Aplicações - Uma Abordagem Didática """ Escreva um programa que leia um número inteiro Q e exiba na tela os Q primeiros termos da sequência de Fibonacci, utilizando uma função recursiva para determinar o elemento da sequência a ser exibido.""" print("Os dez primeiros termos da sequência de Fibonacci são: 0, 1, 1, 2, 3, 5, 8, 13, 21 e 34.") Q = 0 while Q < 2: try: Q = int(input("\nDigite Q(>1): ")) if Q < 2: print("\nDigite Q >= 2") except: print("O dado digitado deve ser um número inteiro.") def Fibonacci(QuantTermos): L = [0, 1] for i in range(Q-2): L.append(L[i] + L[i+1]) return L print(Fibonacci(Q))
class Solution: def minPathSum(self, grid: List[List[int]]) -> int: m, n = len(grid), len(grid[0]) dp = grid[0][:] for i in range(1, n): dp[i] += dp[i-1] for i in range(1, m): for j in range(n): if j > 0: dp[j] = grid[i][j] + min(dp[j], dp[j-1]) else: dp[j] = grid[i][j] + dp[j] return dp[-1]
"""simd float32vec""" def get_data(): return [1.9, 1.8, 1.7, 0.6, 0.99,0.88,0.77,0.66] def main(): ## the translator knows this is a float32vec because there are more than 4 elements x = y = z = w = 22/7 a = numpy.array( [1.1, 1.2, 1.3, 0.4, x,y,z,w], dtype=numpy.float32 ) ## in this case the translator is not sure what the length of `u` is, so it defaults ## to using a float32vec. u = get_data() b = numpy.array( u, dtype=numpy.float32 ) c = a + b print(c) TestError( c[0]==3.0 ) TestError( c[1]==3.0 ) TestError( c[2]==3.0 ) TestError( c[3]==1.0 )
def repetition(a,b): count=0; for i in range(len(a)): if(a[i]==b): count=count+1 return count
n = int(input()) xy = [map(int, input().split()) for _ in range(n)] x, y = [list(i) for i in zip(*xy)] count = 0 buf = 0 for xi, yi in zip(x, y): if xi == yi: buf += 1 else: if buf > count: count = buf buf = 0 if buf > count: count = buf if count >= 3: print('Yes') else: print('No')
""" Definitions of fixtures used in acceptance mixed tests. """ __author__ = "Michal Stanisz" __copyright__ = "Copyright (C) 2017 ACK CYFRONET AGH" __license__ = "This software is released under the MIT license cited in " \ "LICENSE.txt" pytest_plugins = "tests.gui.gui_conf"
""" Represents tests defined in the draft_kings.output.schema module. Most tests center around serializing / deserializing output objects using the marshmallow library """
# # PySNMP MIB module Sentry4-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Sentry4-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:14:39 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) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") Integer32, TimeTicks, Bits, Unsigned32, MibIdentifier, iso, ModuleIdentity, Counter32, Gauge32, IpAddress, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, enterprises, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "Bits", "Unsigned32", "MibIdentifier", "iso", "ModuleIdentity", "Counter32", "Gauge32", "IpAddress", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "enterprises", "ObjectIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") sentry4 = ModuleIdentity((1, 3, 6, 1, 4, 1, 1718, 4)) sentry4.setRevisions(('2016-11-18 23:40', '2016-09-21 23:00', '2016-04-25 21:40', '2015-02-19 10:00', '2014-12-23 11:30',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: sentry4.setRevisionsDescriptions(('Added the st4UnitProductMfrDate object. Adjusted the upper limit of voltage objects to 600 Volts.', 'Fixed the st4InputCordOutOfBalanceEvent notification definition to include the correct objects.', 'Added support for the PRO1 product series. Added the st4SystemProductSeries and st4InputCordNominalPowerFactor objects. Adjusted the upper limit of cord and line current objects to 600 Amps. Adjusted the lower limit of nominal voltage objects to 0 Volts. Corrected the lower limit of several configuration objects from -1 to 0.', 'Corrected the UNITS and value range of temperature sensor threshold objects.', 'Initial release.',)) if mibBuilder.loadTexts: sentry4.setLastUpdated('201611182340Z') if mibBuilder.loadTexts: sentry4.setOrganization('Server Technology, Inc.') if mibBuilder.loadTexts: sentry4.setContactInfo('Server Technology, Inc. 1040 Sandhill Road Reno, NV 89521 Tel: (775) 284-2000 Fax: (775) 284-2065 Email: [email protected]') if mibBuilder.loadTexts: sentry4.setDescription('This is the MIB module for the fourth generation of the Sentry product family. This includes the PRO1 and PRO2 series of Smart and Switched Cabinet Distribution Unit (CDU) and Power Distribution Unit (PDU) products.') serverTech = MibIdentifier((1, 3, 6, 1, 4, 1, 1718)) class DeviceStatus(TextualConvention, Integer32): description = 'Status returned by devices.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)) namedValues = NamedValues(("normal", 0), ("disabled", 1), ("purged", 2), ("reading", 5), ("settle", 6), ("notFound", 7), ("lost", 8), ("readError", 9), ("noComm", 10), ("pwrError", 11), ("breakerTripped", 12), ("fuseBlown", 13), ("lowAlarm", 14), ("lowWarning", 15), ("highWarning", 16), ("highAlarm", 17), ("alarm", 18), ("underLimit", 19), ("overLimit", 20), ("nvmFail", 21), ("profileError", 22), ("conflict", 23)) class DeviceState(TextualConvention, Integer32): description = 'On or off state of devices.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("unknown", 0), ("on", 1), ("off", 2)) class EventNotificationMethods(TextualConvention, Bits): description = 'Bits to enable event notification methods.' status = 'current' namedValues = NamedValues(("snmpTrap", 0), ("email", 1)) st4Objects = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1)) st4System = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1)) st4SystemConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1)) st4SystemProductName = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemProductName.setStatus('current') if mibBuilder.loadTexts: st4SystemProductName.setDescription('The product name.') st4SystemLocation = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4SystemLocation.setStatus('current') if mibBuilder.loadTexts: st4SystemLocation.setDescription('The location of the system.') st4SystemFirmwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemFirmwareVersion.setStatus('current') if mibBuilder.loadTexts: st4SystemFirmwareVersion.setDescription('The firmware version.') st4SystemFirmwareBuildInfo = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemFirmwareBuildInfo.setStatus('current') if mibBuilder.loadTexts: st4SystemFirmwareBuildInfo.setDescription('The firmware build information.') st4SystemNICSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemNICSerialNumber.setStatus('current') if mibBuilder.loadTexts: st4SystemNICSerialNumber.setDescription('The serial number of the network interface card.') st4SystemNICHardwareInfo = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemNICHardwareInfo.setStatus('current') if mibBuilder.loadTexts: st4SystemNICHardwareInfo.setDescription('Hardware information about the network interface card.') st4SystemProductSeries = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("pro1", 0), ("pro2", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemProductSeries.setStatus('current') if mibBuilder.loadTexts: st4SystemProductSeries.setDescription('The product series.') st4SystemFeatures = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 10), Bits().clone(namedValues=NamedValues(("smartLoadShedding", 0), ("reserved", 1), ("outletControlInhibit", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemFeatures.setStatus('current') if mibBuilder.loadTexts: st4SystemFeatures.setDescription('The key-activated features enabled in the system.') st4SystemFeatureKey = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4SystemFeatureKey.setStatus('current') if mibBuilder.loadTexts: st4SystemFeatureKey.setDescription('A valid feature key written to this object will enable a feature in the system. A valid feature key is in the form xxxx-xxxx-xxxx-xxxx. A read of this object returns an empty string.') st4SystemConfigModifiedCount = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemConfigModifiedCount.setStatus('current') if mibBuilder.loadTexts: st4SystemConfigModifiedCount.setDescription('The total number of times the system configuration has changed.') st4SystemUnitCount = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4SystemUnitCount.setStatus('current') if mibBuilder.loadTexts: st4SystemUnitCount.setDescription('The number of units in the system.') st4Units = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2)) st4UnitCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 1)) st4UnitConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2), ) if mibBuilder.loadTexts: st4UnitConfigTable.setStatus('current') if mibBuilder.loadTexts: st4UnitConfigTable.setDescription('Unit configuration table.') st4UnitConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex")) if mibBuilder.loadTexts: st4UnitConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4UnitConfigEntry.setDescription('Configuration objects for a particular unit.') st4UnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))) if mibBuilder.loadTexts: st4UnitIndex.setStatus('current') if mibBuilder.loadTexts: st4UnitIndex.setDescription('Unit index. A=1, B=2, C=3, D=4, E=5, F=6.') st4UnitID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitID.setStatus('current') if mibBuilder.loadTexts: st4UnitID.setDescription('The internal ID of the unit. Format=A.') st4UnitName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4UnitName.setStatus('current') if mibBuilder.loadTexts: st4UnitName.setDescription('The name of the unit.') st4UnitProductSN = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitProductSN.setStatus('current') if mibBuilder.loadTexts: st4UnitProductSN.setDescription('The product serial number of the unit.') st4UnitModel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitModel.setStatus('current') if mibBuilder.loadTexts: st4UnitModel.setDescription('The model of the unit.') st4UnitAssetTag = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4UnitAssetTag.setStatus('current') if mibBuilder.loadTexts: st4UnitAssetTag.setDescription('The asset tag of the unit.') st4UnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("masterPdu", 0), ("linkPdu", 1), ("controller", 2), ("emcu", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitType.setStatus('current') if mibBuilder.loadTexts: st4UnitType.setDescription('The type of the unit.') st4UnitCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 8), Bits().clone(namedValues=NamedValues(("dc", 0), ("phase3", 1), ("wye", 2), ("delta", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitCapabilities.setStatus('current') if mibBuilder.loadTexts: st4UnitCapabilities.setDescription('The capabilities of the unit.') st4UnitProductMfrDate = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitProductMfrDate.setStatus('current') if mibBuilder.loadTexts: st4UnitProductMfrDate.setDescription('The product manufacture date in YYYY-MM-DD (ISO 8601 format).') st4UnitDisplayOrientation = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("normal", 0), ("inverted", 1), ("auto", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4UnitDisplayOrientation.setStatus('current') if mibBuilder.loadTexts: st4UnitDisplayOrientation.setDescription('The orientation of all displays in the unit.') st4UnitOutletSequenceOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("normal", 0), ("reversed", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4UnitOutletSequenceOrder.setStatus('current') if mibBuilder.loadTexts: st4UnitOutletSequenceOrder.setDescription('The sequencing order of all outlets in the unit.') st4UnitInputCordCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitInputCordCount.setStatus('current') if mibBuilder.loadTexts: st4UnitInputCordCount.setDescription('The number of power input cords into the unit.') st4UnitTempSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitTempSensorCount.setStatus('current') if mibBuilder.loadTexts: st4UnitTempSensorCount.setDescription('The number of external temperature sensors supported by the unit.') st4UnitHumidSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitHumidSensorCount.setStatus('current') if mibBuilder.loadTexts: st4UnitHumidSensorCount.setDescription('The number of external humidity sensors supported by the unit.') st4UnitWaterSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitWaterSensorCount.setStatus('current') if mibBuilder.loadTexts: st4UnitWaterSensorCount.setDescription('The number of external water sensors supported by the unit.') st4UnitCcSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitCcSensorCount.setStatus('current') if mibBuilder.loadTexts: st4UnitCcSensorCount.setDescription('The number of external contact closure sensors supported by the unit.') st4UnitAdcSensorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 2, 1, 35), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitAdcSensorCount.setStatus('current') if mibBuilder.loadTexts: st4UnitAdcSensorCount.setDescription('The number of analog-to-digital converter sensors supported by the unit.') st4UnitMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3), ) if mibBuilder.loadTexts: st4UnitMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4UnitMonitorTable.setDescription('Unit monitor table.') st4UnitMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex")) if mibBuilder.loadTexts: st4UnitMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4UnitMonitorEntry.setDescription('Objects to monitor for a particular unit.') st4UnitStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4UnitStatus.setStatus('current') if mibBuilder.loadTexts: st4UnitStatus.setDescription('The status of the unit.') st4UnitEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4), ) if mibBuilder.loadTexts: st4UnitEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4UnitEventConfigTable.setDescription('Unit event configuration table.') st4UnitEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex")) if mibBuilder.loadTexts: st4UnitEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4UnitEventConfigEntry.setDescription('Event configuration objects for a particular unit.') st4UnitNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 2, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4UnitNotifications.setStatus('current') if mibBuilder.loadTexts: st4UnitNotifications.setDescription('The notification methods enabled for unit events.') st4InputCords = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3)) st4InputCordCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1)) st4InputCordActivePowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordActivePowerHysteresis.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerHysteresis.setDescription('The active power hysteresis of the input cord in Watts.') st4InputCordApparentPowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Volt-Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordApparentPowerHysteresis.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerHysteresis.setDescription('The apparent power hysteresis of the input cord in Volt-Amps.') st4InputCordPowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordPowerFactorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactorHysteresis.setDescription('The power factor hysteresis of the input cord in hundredths.') st4InputCordOutOfBalanceHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setUnits('percent').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordOutOfBalanceHysteresis.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalanceHysteresis.setDescription('The 3 phase out-of-balance hysteresis of the input cord in percent.') st4InputCordConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2), ) if mibBuilder.loadTexts: st4InputCordConfigTable.setStatus('current') if mibBuilder.loadTexts: st4InputCordConfigTable.setDescription('Input cord configuration table.') st4InputCordConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex")) if mibBuilder.loadTexts: st4InputCordConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4InputCordConfigEntry.setDescription('Configuration objects for a particular input cord.') st4InputCordIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))) if mibBuilder.loadTexts: st4InputCordIndex.setStatus('current') if mibBuilder.loadTexts: st4InputCordIndex.setDescription('Input cord index. A=1, B=2, C=3, D=4.') st4InputCordID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordID.setStatus('current') if mibBuilder.loadTexts: st4InputCordID.setDescription('The internal ID of the input cord. Format=AA.') st4InputCordName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordName.setStatus('current') if mibBuilder.loadTexts: st4InputCordName.setDescription('The name of the input cord.') st4InputCordInletType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordInletType.setStatus('current') if mibBuilder.loadTexts: st4InputCordInletType.setDescription('The type of plug on the input cord, or socket for the input cord.') st4InputCordNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordNominalVoltage.setStatus('current') if mibBuilder.loadTexts: st4InputCordNominalVoltage.setDescription('The user-configured nominal voltage of the input cord in tenth Volts.') st4InputCordNominalVoltageMin = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Volts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordNominalVoltageMin.setStatus('current') if mibBuilder.loadTexts: st4InputCordNominalVoltageMin.setDescription('The factory-set minimum allowed for the user-configured nominal voltage of the input cord in Volts.') st4InputCordNominalVoltageMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Volts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordNominalVoltageMax.setStatus('current') if mibBuilder.loadTexts: st4InputCordNominalVoltageMax.setDescription('The factory-set maximum allowed for the user-configured nominal voltage of the input cord in Volts.') st4InputCordCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordCurrentCapacity.setStatus('current') if mibBuilder.loadTexts: st4InputCordCurrentCapacity.setDescription('The user-configured current capacity of the input cord in Amps.') st4InputCordCurrentCapacityMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordCurrentCapacityMax.setStatus('current') if mibBuilder.loadTexts: st4InputCordCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the input cord in Amps.') st4InputCordPowerCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordPowerCapacity.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerCapacity.setDescription('The power capacity of the input cord in Volt-Amps. For DC products, this is identical to power capacity in Watts.') st4InputCordNominalPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordNominalPowerFactor.setStatus('current') if mibBuilder.loadTexts: st4InputCordNominalPowerFactor.setDescription('The user-configured estimated nominal power factor of the input cord in hundredths.') st4InputCordLineCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordLineCount.setStatus('current') if mibBuilder.loadTexts: st4InputCordLineCount.setDescription('The number of current-carrying lines in the input cord.') st4InputCordPhaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordPhaseCount.setStatus('current') if mibBuilder.loadTexts: st4InputCordPhaseCount.setDescription('The number of active phases from the lines in the input cord.') st4InputCordOcpCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordOcpCount.setStatus('current') if mibBuilder.loadTexts: st4InputCordOcpCount.setDescription('The number of over-current protectors downstream from the input cord.') st4InputCordBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordBranchCount.setStatus('current') if mibBuilder.loadTexts: st4InputCordBranchCount.setDescription('The number of branches downstream from the input cord.') st4InputCordOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordOutletCount.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutletCount.setDescription('The number of outlets powered from the input cord.') st4InputCordMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3), ) if mibBuilder.loadTexts: st4InputCordMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4InputCordMonitorTable.setDescription('Input cord monitor table.') st4InputCordMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex")) if mibBuilder.loadTexts: st4InputCordMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4InputCordMonitorEntry.setDescription('Objects to monitor for a particular input cord.') st4InputCordState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 1), DeviceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordState.setStatus('current') if mibBuilder.loadTexts: st4InputCordState.setDescription('The on/off state of the input cord.') st4InputCordStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordStatus.setStatus('current') if mibBuilder.loadTexts: st4InputCordStatus.setDescription('The status of the input cord.') st4InputCordActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 50000))).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordActivePower.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePower.setDescription('The measured active power of the input cord in Watts.') st4InputCordActivePowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordActivePowerStatus.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerStatus.setDescription('The status of the measured active power of the input cord.') st4InputCordApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 50000))).setUnits('Volt-Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordApparentPower.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPower.setDescription('The measured apparent power of the input cord in Volt-Amps.') st4InputCordApparentPowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 6), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordApparentPowerStatus.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerStatus.setDescription('The status of the measured apparent power of the input cord.') st4InputCordPowerUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordPowerUtilized.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerUtilized.setDescription('The amount of the input cord power capacity used in tenth percent. For AC products, this is the ratio of the apparent power to the power capacity. For DC products, this is the ratio of the active power to the power capacity.') st4InputCordPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordPowerFactor.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactor.setDescription('The measured power factor of the input cord in hundredths.') st4InputCordPowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 9), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordPowerFactorStatus.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactorStatus.setDescription('The status of the measured power factor of the input cord.') st4InputCordEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordEnergy.setStatus('current') if mibBuilder.loadTexts: st4InputCordEnergy.setDescription('The total energy consumption of loads through the input cord in tenth Kilowatt-Hours.') st4InputCordFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1000))).setUnits('tenth Hertz').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordFrequency.setStatus('current') if mibBuilder.loadTexts: st4InputCordFrequency.setDescription('The frequency of the input cord voltage in tenth Hertz.') st4InputCordOutOfBalance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2000))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordOutOfBalance.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalance.setDescription('The current imbalance on the lines of the input cord in tenth percent.') st4InputCordOutOfBalanceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 3, 1, 13), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4InputCordOutOfBalanceStatus.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalanceStatus.setDescription('The status of the current imbalance on the lines of the input cord.') st4InputCordEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4), ) if mibBuilder.loadTexts: st4InputCordEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4InputCordEventConfigTable.setDescription('Input cord event configuration table.') st4InputCordEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex")) if mibBuilder.loadTexts: st4InputCordEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4InputCordEventConfigEntry.setDescription('Event configuration objects for a particular input cord.') st4InputCordNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordNotifications.setStatus('current') if mibBuilder.loadTexts: st4InputCordNotifications.setDescription('The notification methods enabled for input cord events.') st4InputCordActivePowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordActivePowerLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerLowAlarm.setDescription('The active power low alarm threshold of the input cord in Watts.') st4InputCordActivePowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordActivePowerLowWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerLowWarning.setDescription('The active power low warning threshold of the input cord in Watts.') st4InputCordActivePowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordActivePowerHighWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerHighWarning.setDescription('The active power high warning threshold of the input cord in Watts.') st4InputCordActivePowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordActivePowerHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerHighAlarm.setDescription('The active power high alarm threshold of the input cord in Watts.') st4InputCordApparentPowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordApparentPowerLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerLowAlarm.setDescription('The apparent power low alarm threshold of the input cord in Volt-Amps.') st4InputCordApparentPowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordApparentPowerLowWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerLowWarning.setDescription('The apparent power low warning threshold of the input cord in Volt-Amps.') st4InputCordApparentPowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordApparentPowerHighWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerHighWarning.setDescription('The apparent power high warning threshold of the input cord in Volt-Amps.') st4InputCordApparentPowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50000))).setUnits('Volt-Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordApparentPowerHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerHighAlarm.setDescription('The apparent power high alarm threshold of the input cord in Volt-Amps.') st4InputCordPowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordPowerFactorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactorLowAlarm.setDescription('The power factor low alarm threshold of the input cord in hundredths.') st4InputCordPowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordPowerFactorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactorLowWarning.setDescription('The power factor low warning threshold of the input cord in hundredths.') st4InputCordOutOfBalanceHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighWarning.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighWarning.setDescription('The 3 phase out-of-balance high warning threshold of the input cord in percent.') st4InputCordOutOfBalanceHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 3, 4, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalanceHighAlarm.setDescription('The 3 phase out-of-balance high alarm threshold of the input cord in percent.') st4Lines = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4)) st4LineCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1)) st4LineCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineCurrentHysteresis.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentHysteresis.setDescription('The current hysteresis of the line in tenth Amps.') st4LineConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2), ) if mibBuilder.loadTexts: st4LineConfigTable.setStatus('current') if mibBuilder.loadTexts: st4LineConfigTable.setDescription('Line configuration table.') st4LineConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex")) if mibBuilder.loadTexts: st4LineConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4LineConfigEntry.setDescription('Configuration objects for a particular line.') st4LineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))) if mibBuilder.loadTexts: st4LineIndex.setStatus('current') if mibBuilder.loadTexts: st4LineIndex.setDescription('Line index. L1=1, L2=2, L3=3, N=4.') st4LineID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineID.setStatus('current') if mibBuilder.loadTexts: st4LineID.setDescription('The internal ID of the line. Format=AAN.') st4LineLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineLabel.setStatus('current') if mibBuilder.loadTexts: st4LineLabel.setDescription('The system label assigned to the line for identification.') st4LineCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineCurrentCapacity.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentCapacity.setDescription('The current capacity of the line in Amps.') st4LineMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3), ) if mibBuilder.loadTexts: st4LineMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4LineMonitorTable.setDescription('Line monitor table.') st4LineMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex")) if mibBuilder.loadTexts: st4LineMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4LineMonitorEntry.setDescription('Objects to monitor for a particular line.') st4LineState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 1), DeviceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineState.setStatus('current') if mibBuilder.loadTexts: st4LineState.setDescription('The on/off state of the line.') st4LineStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineStatus.setStatus('current') if mibBuilder.loadTexts: st4LineStatus.setDescription('The status of the line.') st4LineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 60000))).setUnits('hundredth Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineCurrent.setStatus('current') if mibBuilder.loadTexts: st4LineCurrent.setDescription('The measured current on the line in hundredth Amps.') st4LineCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineCurrentStatus.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentStatus.setDescription('The status of the measured current on the line.') st4LineCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4LineCurrentUtilized.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentUtilized.setDescription('The amount of the line current capacity used in tenth percent.') st4LineEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4), ) if mibBuilder.loadTexts: st4LineEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4LineEventConfigTable.setDescription('Line event configuration table.') st4LineEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4LineIndex")) if mibBuilder.loadTexts: st4LineEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4LineEventConfigEntry.setDescription('Event configuration objects for a particular line.') st4LineNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineNotifications.setStatus('current') if mibBuilder.loadTexts: st4LineNotifications.setDescription('The notification methods enabled for line events.') st4LineCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineCurrentLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentLowAlarm.setDescription('The current low alarm threshold of the line in tenth Amps.') st4LineCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineCurrentLowWarning.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentLowWarning.setDescription('The current low warning threshold of the line in tenth Amps.') st4LineCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineCurrentHighWarning.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentHighWarning.setDescription('The current high warning threshold of the line in tenth Amps.') st4LineCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 4, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4LineCurrentHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentHighAlarm.setDescription('The current high alarm threshold of the line in tenth Amps.') st4Phases = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5)) st4PhaseCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1)) st4PhaseVoltageHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseVoltageHysteresis.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageHysteresis.setDescription('The voltage hysteresis of the phase in tenth Volts.') st4PhasePowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhasePowerFactorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactorHysteresis.setDescription('The power factor hysteresis of the phase in hundredths.') st4PhaseConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2), ) if mibBuilder.loadTexts: st4PhaseConfigTable.setStatus('current') if mibBuilder.loadTexts: st4PhaseConfigTable.setDescription('Phase configuration table.') st4PhaseConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex")) if mibBuilder.loadTexts: st4PhaseConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4PhaseConfigEntry.setDescription('Configuration objects for a particular phase.') st4PhaseIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))) if mibBuilder.loadTexts: st4PhaseIndex.setStatus('current') if mibBuilder.loadTexts: st4PhaseIndex.setDescription('Phase index. Three-phase AC Wye: L1-N=1, L2-N=2, L3-N=3; Three-phase AC Delta: L1-L2=1, L2-L3=2, L3-L1=3; Single Phase: L1-R=1; DC: L1-R=1; Three-phase AC Wye & Delta: L1-N=1, L2-N=2, L3-N=3, L1-L2=4, L2-L3=5; L3-L1=6.') st4PhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseID.setStatus('current') if mibBuilder.loadTexts: st4PhaseID.setDescription('The internal ID of the phase. Format=AAN.') st4PhaseLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseLabel.setStatus('current') if mibBuilder.loadTexts: st4PhaseLabel.setDescription('The system label assigned to the phase for identification.') st4PhaseNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseNominalVoltage.setStatus('current') if mibBuilder.loadTexts: st4PhaseNominalVoltage.setDescription('The nominal voltage of the phase in tenth Volts.') st4PhaseBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseBranchCount.setStatus('current') if mibBuilder.loadTexts: st4PhaseBranchCount.setDescription('The number of branches downstream from the phase.') st4PhaseOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseOutletCount.setStatus('current') if mibBuilder.loadTexts: st4PhaseOutletCount.setDescription('The number of outlets powered from the phase.') st4PhaseMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3), ) if mibBuilder.loadTexts: st4PhaseMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4PhaseMonitorTable.setDescription('Phase monitor table.') st4PhaseMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex")) if mibBuilder.loadTexts: st4PhaseMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4PhaseMonitorEntry.setDescription('Objects to monitor for a particular phase.') st4PhaseState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 1), DeviceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseState.setStatus('current') if mibBuilder.loadTexts: st4PhaseState.setDescription('The on/off state of the phase.') st4PhaseStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseStatus.setStatus('current') if mibBuilder.loadTexts: st4PhaseStatus.setDescription('The status of the phase.') st4PhaseVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseVoltage.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltage.setDescription('The measured voltage on the phase in tenth Volts.') st4PhaseVoltageStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseVoltageStatus.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageStatus.setDescription('The status of the measured voltage on the phase.') st4PhaseVoltageDeviation = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1000, 1000))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseVoltageDeviation.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageDeviation.setDescription('The deviation from the nominal voltage on the phase in tenth percent.') st4PhaseCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 30000))).setUnits('hundredth Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseCurrent.setStatus('current') if mibBuilder.loadTexts: st4PhaseCurrent.setDescription('The measured current on the phase in hundredth Amps.') st4PhaseCurrentCrestFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 250))).setUnits('tenths').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseCurrentCrestFactor.setStatus('current') if mibBuilder.loadTexts: st4PhaseCurrentCrestFactor.setDescription('The measured crest factor of the current waveform on the phase in tenths.') st4PhaseActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 25000))).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseActivePower.setStatus('current') if mibBuilder.loadTexts: st4PhaseActivePower.setDescription('The measured active power on the phase in Watts.') st4PhaseApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 25000))).setUnits('Volt-Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseApparentPower.setStatus('current') if mibBuilder.loadTexts: st4PhaseApparentPower.setDescription('The measured apparent power on the phase in Volt-Amps.') st4PhasePowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhasePowerFactor.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactor.setDescription('The measured power factor on the phase in hundredths.') st4PhasePowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 11), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhasePowerFactorStatus.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactorStatus.setDescription('The status of the measured power factor on the phase.') st4PhaseReactance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("capacitive", 1), ("inductive", 2), ("resistive", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseReactance.setStatus('current') if mibBuilder.loadTexts: st4PhaseReactance.setDescription('The status of the measured reactance of the phase.') st4PhaseEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('tenth Kilowatt-Hours').setMaxAccess("readonly") if mibBuilder.loadTexts: st4PhaseEnergy.setStatus('current') if mibBuilder.loadTexts: st4PhaseEnergy.setDescription('The total energy consumption of loads through the phase in tenth Kilowatt-Hours.') st4PhaseEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4), ) if mibBuilder.loadTexts: st4PhaseEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4PhaseEventConfigTable.setDescription('Phase event configuration table.') st4PhaseEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4PhaseIndex")) if mibBuilder.loadTexts: st4PhaseEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4PhaseEventConfigEntry.setDescription('Event configuration objects for a particular phase.') st4PhaseNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseNotifications.setStatus('current') if mibBuilder.loadTexts: st4PhaseNotifications.setDescription('The notification methods enabled for phase events.') st4PhaseVoltageLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseVoltageLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageLowAlarm.setDescription('The current low alarm threshold of the phase in tenth Volts.') st4PhaseVoltageLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseVoltageLowWarning.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageLowWarning.setDescription('The current low warning threshold of the phase in tenth Volts.') st4PhaseVoltageHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseVoltageHighWarning.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageHighWarning.setDescription('The current high warning threshold of the phase in tenth Volts.') st4PhaseVoltageHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6000))).setUnits('tenth Volts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhaseVoltageHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageHighAlarm.setDescription('The current high alarm threshold of the phase in tenth Volts.') st4PhasePowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhasePowerFactorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the phase in hundredths.') st4PhasePowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 5, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4PhasePowerFactorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactorLowWarning.setDescription('The low power factor warning threshold of the phase in hundredths.') st4OverCurrentProtectors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6)) st4OcpCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 1)) st4OcpConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2), ) if mibBuilder.loadTexts: st4OcpConfigTable.setStatus('current') if mibBuilder.loadTexts: st4OcpConfigTable.setDescription('Over-current protector configuration table.') st4OcpConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex")) if mibBuilder.loadTexts: st4OcpConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4OcpConfigEntry.setDescription('Configuration objects for a particular over-current protector.') st4OcpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: st4OcpIndex.setStatus('current') if mibBuilder.loadTexts: st4OcpIndex.setDescription('Over-current protector index.') st4OcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpID.setStatus('current') if mibBuilder.loadTexts: st4OcpID.setDescription('The internal ID of the over-current protector. Format=AAN[N].') st4OcpLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpLabel.setStatus('current') if mibBuilder.loadTexts: st4OcpLabel.setDescription('The system label assigned to the over-current protector for identification.') st4OcpType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fuse", 0), ("breaker", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpType.setStatus('current') if mibBuilder.loadTexts: st4OcpType.setDescription('The type of over-current protector.') st4OcpCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OcpCurrentCapacity.setStatus('current') if mibBuilder.loadTexts: st4OcpCurrentCapacity.setDescription('The user-configured current capacity of the over-current protector in Amps.') st4OcpCurrentCapacityMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpCurrentCapacityMax.setStatus('current') if mibBuilder.loadTexts: st4OcpCurrentCapacityMax.setDescription('The factory-set maximum allowed for the user-configured current capacity of the over-current protector in Amps.') st4OcpBranchCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 12))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpBranchCount.setStatus('current') if mibBuilder.loadTexts: st4OcpBranchCount.setDescription('The number of branches downstream from the over-current protector.') st4OcpOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpOutletCount.setStatus('current') if mibBuilder.loadTexts: st4OcpOutletCount.setDescription('The number of outlets powered from the over-current protector.') st4OcpMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3), ) if mibBuilder.loadTexts: st4OcpMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4OcpMonitorTable.setDescription('Over-current protector monitor table.') st4OcpMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex")) if mibBuilder.loadTexts: st4OcpMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4OcpMonitorEntry.setDescription('Objects to monitor for a particular over-current protector.') st4OcpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OcpStatus.setStatus('current') if mibBuilder.loadTexts: st4OcpStatus.setDescription('The status of the over-current protector.') st4OcpEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4), ) if mibBuilder.loadTexts: st4OcpEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4OcpEventConfigTable.setDescription('Over-current protector event configuration table.') st4OcpEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OcpIndex")) if mibBuilder.loadTexts: st4OcpEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4OcpEventConfigEntry.setDescription('Event configuration objects for a particular over-current protector.') st4OcpNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 6, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OcpNotifications.setStatus('current') if mibBuilder.loadTexts: st4OcpNotifications.setDescription('The notification methods enabled for over-current protector events.') st4Branches = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7)) st4BranchCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1)) st4BranchCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchCurrentHysteresis.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentHysteresis.setDescription('The current hysteresis of the branch in tenth Amps.') st4BranchConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2), ) if mibBuilder.loadTexts: st4BranchConfigTable.setStatus('current') if mibBuilder.loadTexts: st4BranchConfigTable.setDescription('Branch configuration table.') st4BranchConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex")) if mibBuilder.loadTexts: st4BranchConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4BranchConfigEntry.setDescription('Configuration objects for a particular branch.') st4BranchIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: st4BranchIndex.setStatus('current') if mibBuilder.loadTexts: st4BranchIndex.setDescription('Branch index.') st4BranchID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchID.setStatus('current') if mibBuilder.loadTexts: st4BranchID.setDescription('The internal ID of the branch. Format=AAN[N].') st4BranchLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchLabel.setStatus('current') if mibBuilder.loadTexts: st4BranchLabel.setDescription('The system label assigned to the branch for identification.') st4BranchCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchCurrentCapacity.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentCapacity.setDescription('The current capacity of the branch in Amps.') st4BranchPhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchPhaseID.setStatus('current') if mibBuilder.loadTexts: st4BranchPhaseID.setDescription('The internal ID of the phase powering this branch. Format=AAN.') st4BranchOcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchOcpID.setStatus('current') if mibBuilder.loadTexts: st4BranchOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].') st4BranchOutletCount = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 2, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchOutletCount.setStatus('current') if mibBuilder.loadTexts: st4BranchOutletCount.setDescription('The number of outlets powered from the branch.') st4BranchMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3), ) if mibBuilder.loadTexts: st4BranchMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4BranchMonitorTable.setDescription('Branch monitor table.') st4BranchMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex")) if mibBuilder.loadTexts: st4BranchMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4BranchMonitorEntry.setDescription('Objects to monitor for a particular branch.') st4BranchState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 1), DeviceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchState.setStatus('current') if mibBuilder.loadTexts: st4BranchState.setDescription('The on/off state of the branch.') st4BranchStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchStatus.setStatus('current') if mibBuilder.loadTexts: st4BranchStatus.setDescription('The status of the branch.') st4BranchCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchCurrent.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrent.setDescription('The measured current on the branch in hundredth Amps.') st4BranchCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchCurrentStatus.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentStatus.setDescription('The status of the measured current on the branch.') st4BranchCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4BranchCurrentUtilized.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentUtilized.setDescription('The amount of the branch current capacity used in tenth percent.') st4BranchEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4), ) if mibBuilder.loadTexts: st4BranchEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4BranchEventConfigTable.setDescription('Branch event configuration table.') st4BranchEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4BranchIndex")) if mibBuilder.loadTexts: st4BranchEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4BranchEventConfigEntry.setDescription('Event configuration objects for a particular branch.') st4BranchNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchNotifications.setStatus('current') if mibBuilder.loadTexts: st4BranchNotifications.setDescription('The notification methods enabled for branch events.') st4BranchCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchCurrentLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentLowAlarm.setDescription('The current low alarm threshold of the branch in tenth Amps.') st4BranchCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchCurrentLowWarning.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentLowWarning.setDescription('The current low warning threshold of the branch in tenth Amps.') st4BranchCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchCurrentHighWarning.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentHighWarning.setDescription('The current high warning threshold of the branch in tenth Amps.') st4BranchCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 7, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4BranchCurrentHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentHighAlarm.setDescription('The current high alarm threshold of the branch in tenth Amps.') st4Outlets = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8)) st4OutletCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1)) st4OutletCurrentHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletCurrentHysteresis.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentHysteresis.setDescription('The current hysteresis of the outlet in tenth Amps.') st4OutletActivePowerHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletActivePowerHysteresis.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerHysteresis.setDescription('The power hysteresis of the outlet in Watts.') st4OutletPowerFactorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletPowerFactorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactorHysteresis.setDescription('The power factor hysteresis of the outlet in hundredths.') st4OutletSequenceInterval = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletSequenceInterval.setStatus('current') if mibBuilder.loadTexts: st4OutletSequenceInterval.setDescription('The power-on sequencing interval for all outlets in seconds.') st4OutletRebootDelay = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 600))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletRebootDelay.setStatus('current') if mibBuilder.loadTexts: st4OutletRebootDelay.setDescription('The reboot delay for all outlets in seconds.') st4OutletStateChangeLogging = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletStateChangeLogging.setStatus('current') if mibBuilder.loadTexts: st4OutletStateChangeLogging.setDescription('Enables or disables informational Outlet State Change event logging.') st4OutletConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2), ) if mibBuilder.loadTexts: st4OutletConfigTable.setStatus('current') if mibBuilder.loadTexts: st4OutletConfigTable.setDescription('Outlet configuration table.') st4OutletConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex")) if mibBuilder.loadTexts: st4OutletConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4OutletConfigEntry.setDescription('Configuration objects for a particular outlet.') st4OutletIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 128))) if mibBuilder.loadTexts: st4OutletIndex.setStatus('current') if mibBuilder.loadTexts: st4OutletIndex.setDescription('Outlet index.') st4OutletID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 5))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletID.setStatus('current') if mibBuilder.loadTexts: st4OutletID.setDescription('The internal ID of the outlet. Format=AAN[N[N]].') st4OutletName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletName.setStatus('current') if mibBuilder.loadTexts: st4OutletName.setDescription('The name of the outlet.') st4OutletCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 5), Bits().clone(namedValues=NamedValues(("switched", 0), ("pops", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCapabilities.setStatus('current') if mibBuilder.loadTexts: st4OutletCapabilities.setDescription('The capabilities of the outlet.') st4OutletSocketType = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletSocketType.setStatus('current') if mibBuilder.loadTexts: st4OutletSocketType.setDescription('The socket type of the outlet.') st4OutletCurrentCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 125))).setUnits('Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCurrentCapacity.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentCapacity.setDescription('The current capacity of the outlet in Amps.') st4OutletPowerCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Volt-Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletPowerCapacity.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerCapacity.setDescription('The power capacity of the outlet in Volt-Amps. For DC products, this is identical to power capacity in Watts.') st4OutletWakeupState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("on", 0), ("off", 1), ("last", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletWakeupState.setStatus('current') if mibBuilder.loadTexts: st4OutletWakeupState.setDescription('The wakeup state of the outlet.') st4OutletPostOnDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 900))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletPostOnDelay.setStatus('current') if mibBuilder.loadTexts: st4OutletPostOnDelay.setDescription('The post-on delay of the outlet in seconds.') st4OutletPhaseID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletPhaseID.setStatus('current') if mibBuilder.loadTexts: st4OutletPhaseID.setDescription('The internal ID of the phase powering this outlet. Format=AAN.') st4OutletOcpID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletOcpID.setStatus('current') if mibBuilder.loadTexts: st4OutletOcpID.setDescription('The internal ID of the over-current protector powering this outlet. Format=AAN[N].') st4OutletBranchID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 2, 1, 32), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletBranchID.setStatus('current') if mibBuilder.loadTexts: st4OutletBranchID.setDescription('The internal ID of the branch powering this outlet. Format=AAN[N].') st4OutletMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3), ) if mibBuilder.loadTexts: st4OutletMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4OutletMonitorTable.setDescription('Outlet monitor table.') st4OutletMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex")) if mibBuilder.loadTexts: st4OutletMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4OutletMonitorEntry.setDescription('Objects to monitor for a particular outlet.') st4OutletState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 1), DeviceState()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletState.setStatus('current') if mibBuilder.loadTexts: st4OutletState.setDescription('The on/off state of the outlet.') st4OutletStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletStatus.setStatus('current') if mibBuilder.loadTexts: st4OutletStatus.setDescription('The status of the outlet.') st4OutletCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 12500))).setUnits('hundredth Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCurrent.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrent.setDescription('The measured current on the outlet in hundredth Amps.') st4OutletCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 4), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCurrentStatus.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentStatus.setDescription('The status of the measured current on the outlet.') st4OutletCurrentUtilized = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1200))).setUnits('tenth percent').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCurrentUtilized.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentUtilized.setDescription('The amount of the outlet current capacity used in tenth percent.') st4OutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 6000))).setUnits('tenth Volts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletVoltage.setStatus('current') if mibBuilder.loadTexts: st4OutletVoltage.setDescription('The measured voltage of the outlet in tenth Volts.') st4OutletActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 10000))).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletActivePower.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePower.setDescription('The measured active power of the outlet in Watts.') st4OutletActivePowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 8), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletActivePowerStatus.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerStatus.setDescription('The status of the measured active power of the outlet.') st4OutletApparentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 10000))).setUnits('Volt-Amps').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletApparentPower.setStatus('current') if mibBuilder.loadTexts: st4OutletApparentPower.setDescription('The measured apparent power of the outlet in Volt-Amps.') st4OutletPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('hundredths').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletPowerFactor.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactor.setDescription('The measured power factor of the outlet in hundredths.') st4OutletPowerFactorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 11), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletPowerFactorStatus.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactorStatus.setDescription('The status of the measured power factor of the outlet.') st4OutletCurrentCrestFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 250))).setUnits('tenths').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletCurrentCrestFactor.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentCrestFactor.setDescription('The measured crest factor of the outlet in tenths.') st4OutletReactance = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("capacitive", 1), ("inductive", 2), ("resistive", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletReactance.setStatus('current') if mibBuilder.loadTexts: st4OutletReactance.setDescription('The status of the measured reactance of the outlet.') st4OutletEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 3, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('Watt-Hours').setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletEnergy.setStatus('current') if mibBuilder.loadTexts: st4OutletEnergy.setDescription('The total energy consumption of the device plugged into the outlet in Watt-Hours.') st4OutletEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4), ) if mibBuilder.loadTexts: st4OutletEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4OutletEventConfigTable.setDescription('Outlet event configuration table.') st4OutletEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex")) if mibBuilder.loadTexts: st4OutletEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4OutletEventConfigEntry.setDescription('Event configuration objects for a particular outlet.') st4OutletNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletNotifications.setStatus('current') if mibBuilder.loadTexts: st4OutletNotifications.setDescription('The notification methods enabled for outlet events.') st4OutletCurrentLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletCurrentLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentLowAlarm.setDescription('The current low alarm threshold of the outlet in tenth Amps.') st4OutletCurrentLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletCurrentLowWarning.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentLowWarning.setDescription('The current low warning threshold of the outlet in tenth Amps.') st4OutletCurrentHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletCurrentHighWarning.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentHighWarning.setDescription('The current high warning threshold of the outlet in tenth Amps.') st4OutletCurrentHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1250))).setUnits('tenth Amps').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletCurrentHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentHighAlarm.setDescription('The current high alarm threshold of the outlet in tenth Amps.') st4OutletActivePowerLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletActivePowerLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerLowAlarm.setDescription('The active power low alarm threshold of the outlet in Watts.') st4OutletActivePowerLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletActivePowerLowWarning.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerLowWarning.setDescription('The active power low warning threshold of the outlet in Watts.') st4OutletActivePowerHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletActivePowerHighWarning.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerHighWarning.setDescription('The active power high warning threshold of the outlet in Watts.') st4OutletActivePowerHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletActivePowerHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerHighAlarm.setDescription('The active power high alarm threshold of the outlet in Watts.') st4OutletPowerFactorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletPowerFactorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactorLowAlarm.setDescription('The low power factor alarm threshold of the outlet in hundredths.') st4OutletPowerFactorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('hundredths').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletPowerFactorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactorLowWarning.setDescription('The low power factor warning threshold of the outlet in hundredths.') st4OutletControlTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5), ) if mibBuilder.loadTexts: st4OutletControlTable.setStatus('current') if mibBuilder.loadTexts: st4OutletControlTable.setDescription('Outlet control table.') st4OutletControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4InputCordIndex"), (0, "Sentry4-MIB", "st4OutletIndex")) if mibBuilder.loadTexts: st4OutletControlEntry.setStatus('current') if mibBuilder.loadTexts: st4OutletControlEntry.setDescription('Objects for control of a particular outlet.') st4OutletControlState = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("notSet", 0), ("fixedOn", 1), ("idleOff", 2), ("idleOn", 3), ("wakeOff", 4), ("wakeOn", 5), ("ocpOff", 6), ("ocpOn", 7), ("pendOn", 8), ("pendOff", 9), ("off", 10), ("on", 11), ("reboot", 12), ("shutdown", 13), ("lockedOff", 14), ("lockedOn", 15), ("eventOff", 16), ("eventOn", 17), ("eventReboot", 18), ("eventShutdown", 19)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4OutletControlState.setStatus('current') if mibBuilder.loadTexts: st4OutletControlState.setDescription('The control state of the outlet.') st4OutletControlAction = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("none", 0), ("on", 1), ("off", 2), ("reboot", 3), ("queueOn", 4), ("queueOff", 5), ("queueReboot", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletControlAction.setStatus('current') if mibBuilder.loadTexts: st4OutletControlAction.setDescription('An action to change the control state of the outlet, or to queue an action.') st4OutletCommonControl = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6)) st4OutletQueueControl = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 8, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("clear", 0), ("commit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4OutletQueueControl.setStatus('current') if mibBuilder.loadTexts: st4OutletQueueControl.setDescription('An action to clear or commit queued outlet control actions. A read of this object returns clear(0) if queue is empty, and commit(1) if the queue is not empty.') st4TemperatureSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9)) st4TempSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1)) st4TempSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 54))).setUnits('degrees').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4TempSensorHysteresis.setDescription('The temperature hysteresis of the sensor in degrees, using the scale selected by st4TempSensorScale.') st4TempSensorScale = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("celsius", 0), ("fahrenheit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorScale.setStatus('current') if mibBuilder.loadTexts: st4TempSensorScale.setDescription('The current scale used for all temperature values.') st4TempSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2), ) if mibBuilder.loadTexts: st4TempSensorConfigTable.setStatus('current') if mibBuilder.loadTexts: st4TempSensorConfigTable.setDescription('Temperature sensor configuration table.') st4TempSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex")) if mibBuilder.loadTexts: st4TempSensorConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4TempSensorConfigEntry.setDescription('Configuration objects for a particular temperature sensor.') st4TempSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))) if mibBuilder.loadTexts: st4TempSensorIndex.setStatus('current') if mibBuilder.loadTexts: st4TempSensorIndex.setDescription('Temperature sensor index.') st4TempSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4TempSensorID.setStatus('current') if mibBuilder.loadTexts: st4TempSensorID.setDescription('The internal ID of the temperature sensor. Format=AN.') st4TempSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorName.setStatus('current') if mibBuilder.loadTexts: st4TempSensorName.setDescription('The name of the temperature sensor.') st4TempSensorValueMin = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readonly") if mibBuilder.loadTexts: st4TempSensorValueMin.setStatus('current') if mibBuilder.loadTexts: st4TempSensorValueMin.setDescription('The minimum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.') st4TempSensorValueMax = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readonly") if mibBuilder.loadTexts: st4TempSensorValueMax.setStatus('current') if mibBuilder.loadTexts: st4TempSensorValueMax.setDescription('The maximum temperature limit of the sensor in degrees, using the scale selected by st4TempSensorScale.') st4TempSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3), ) if mibBuilder.loadTexts: st4TempSensorMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4TempSensorMonitorTable.setDescription('Temperature sensor monitor table.') st4TempSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex")) if mibBuilder.loadTexts: st4TempSensorMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4TempSensorMonitorEntry.setDescription('Objects to monitor for a particular temperature sensor.') st4TempSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-410, 2540))).setUnits('tenth degrees').setMaxAccess("readonly") if mibBuilder.loadTexts: st4TempSensorValue.setStatus('current') if mibBuilder.loadTexts: st4TempSensorValue.setDescription('The measured temperature on the sensor in tenth degrees using the scale selected by st4TempSensorScale. -410 means the temperature reading is invalid.') st4TempSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4TempSensorStatus.setStatus('current') if mibBuilder.loadTexts: st4TempSensorStatus.setDescription('The status of the temperature sensor.') st4TempSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4), ) if mibBuilder.loadTexts: st4TempSensorEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4TempSensorEventConfigTable.setDescription('Temperature sensor event configuration table.') st4TempSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4TempSensorIndex")) if mibBuilder.loadTexts: st4TempSensorEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4TempSensorEventConfigEntry.setDescription('Event configuration objects for a particular temperature sensor.') st4TempSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorNotifications.setStatus('current') if mibBuilder.loadTexts: st4TempSensorNotifications.setDescription('The notification methods enabled for temperature sensor events.') st4TempSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4TempSensorLowAlarm.setDescription('The low alarm threshold of the temperature sensor in degrees.') st4TempSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4TempSensorLowWarning.setDescription('The low warning threshold of the temperature sensor in degrees.') st4TempSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorHighWarning.setStatus('current') if mibBuilder.loadTexts: st4TempSensorHighWarning.setDescription('The high warning threshold of the temperature sensor in degrees.') st4TempSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 9, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-40, 253))).setUnits('degrees').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4TempSensorHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4TempSensorHighAlarm.setDescription('The high alarm threshold of the temperature sensor in degrees.') st4HumiditySensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10)) st4HumidSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1)) st4HumidSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('percentage relative humidity').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorHysteresis.setDescription('The humidity hysteresis of the sensor in percent relative humidity.') st4HumidSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2), ) if mibBuilder.loadTexts: st4HumidSensorConfigTable.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorConfigTable.setDescription('Humidity sensor configuration table.') st4HumidSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex")) if mibBuilder.loadTexts: st4HumidSensorConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorConfigEntry.setDescription('Configuration objects for a particular humidity sensor.') st4HumidSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))) if mibBuilder.loadTexts: st4HumidSensorIndex.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorIndex.setDescription('Humidity sensor index.') st4HumidSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4HumidSensorID.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorID.setDescription('The internal ID of the humidity sensor. Format=AN.') st4HumidSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorName.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorName.setDescription('The name of the humidity sensor.') st4HumidSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3), ) if mibBuilder.loadTexts: st4HumidSensorMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorMonitorTable.setDescription('Humidity sensor monitor table.') st4HumidSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex")) if mibBuilder.loadTexts: st4HumidSensorMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorMonitorEntry.setDescription('Objects to monitor for a particular humidity sensor.') st4HumidSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 100))).setUnits('percentage relative humidity').setMaxAccess("readonly") if mibBuilder.loadTexts: st4HumidSensorValue.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorValue.setDescription('The measured humidity on the sensor in percentage relative humidity.') st4HumidSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4HumidSensorStatus.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorStatus.setDescription('The status of the humidity sensor.') st4HumidSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4), ) if mibBuilder.loadTexts: st4HumidSensorEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorEventConfigTable.setDescription('Humidity sensor event configuration table.') st4HumidSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4HumidSensorIndex")) if mibBuilder.loadTexts: st4HumidSensorEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorEventConfigEntry.setDescription('Event configuration objects for a particular humidity sensor.') st4HumidSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorNotifications.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorNotifications.setDescription('The notification methods enabled for humidity sensor events.') st4HumidSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorLowAlarm.setDescription('The low alarm threshold of the humidity sensor in percentage relative humidity.') st4HumidSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorLowWarning.setDescription('The low warning threshold of the humidity sensor in percentage relative humidity.') st4HumidSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorHighWarning.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorHighWarning.setDescription('The high warning threshold of the humidity sensor in percentage relative humidity.') st4HumidSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 10, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percentage relative humidity').setMaxAccess("readwrite") if mibBuilder.loadTexts: st4HumidSensorHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorHighAlarm.setDescription('The high alarm threshold of the humidity sensor in percentage relative humidity.') st4WaterSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11)) st4WaterSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 1)) st4WaterSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2), ) if mibBuilder.loadTexts: st4WaterSensorConfigTable.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorConfigTable.setDescription('Water sensor configuration table.') st4WaterSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex")) if mibBuilder.loadTexts: st4WaterSensorConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorConfigEntry.setDescription('Configuration objects for a particular water sensor.') st4WaterSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))) if mibBuilder.loadTexts: st4WaterSensorIndex.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorIndex.setDescription('Water sensor index.') st4WaterSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4WaterSensorID.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorID.setDescription('The internal ID of the water sensor. Format=AN.') st4WaterSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4WaterSensorName.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorName.setDescription('The name of the water sensor.') st4WaterSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3), ) if mibBuilder.loadTexts: st4WaterSensorMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorMonitorTable.setDescription('Water sensor monitor table.') st4WaterSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex")) if mibBuilder.loadTexts: st4WaterSensorMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorMonitorEntry.setDescription('Objects to monitor for a particular water sensor.') st4WaterSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4WaterSensorStatus.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorStatus.setDescription('The status of the water sensor.') st4WaterSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4), ) if mibBuilder.loadTexts: st4WaterSensorEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorEventConfigTable.setDescription('Water sensor event configuration table.') st4WaterSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4WaterSensorIndex")) if mibBuilder.loadTexts: st4WaterSensorEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorEventConfigEntry.setDescription('Event configuration objects for a particular water sensor.') st4WaterSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 11, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4WaterSensorNotifications.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorNotifications.setDescription('The notification methods enabled for water sensor events.') st4ContactClosureSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12)) st4CcSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 1)) st4CcSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2), ) if mibBuilder.loadTexts: st4CcSensorConfigTable.setStatus('current') if mibBuilder.loadTexts: st4CcSensorConfigTable.setDescription('Contact closure sensor configuration table.') st4CcSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex")) if mibBuilder.loadTexts: st4CcSensorConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4CcSensorConfigEntry.setDescription('Configuration objects for a particular contact closure sensor.') st4CcSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))) if mibBuilder.loadTexts: st4CcSensorIndex.setStatus('current') if mibBuilder.loadTexts: st4CcSensorIndex.setDescription('Contact closure sensor index.') st4CcSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4CcSensorID.setStatus('current') if mibBuilder.loadTexts: st4CcSensorID.setDescription('The internal ID of the contact closure sensor. Format=AN.') st4CcSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4CcSensorName.setStatus('current') if mibBuilder.loadTexts: st4CcSensorName.setDescription('The name of the contact closure sensor.') st4CcSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3), ) if mibBuilder.loadTexts: st4CcSensorMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4CcSensorMonitorTable.setDescription('Contact closure sensor monitor table.') st4CcSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex")) if mibBuilder.loadTexts: st4CcSensorMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4CcSensorMonitorEntry.setDescription('Objects to monitor for a particular contact closure sensor.') st4CcSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 3, 1, 1), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4CcSensorStatus.setStatus('current') if mibBuilder.loadTexts: st4CcSensorStatus.setDescription('The status of the contact closure.') st4CcSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4), ) if mibBuilder.loadTexts: st4CcSensorEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4CcSensorEventConfigTable.setDescription('Contact closure sensor event configuration table.') st4CcSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4CcSensorIndex")) if mibBuilder.loadTexts: st4CcSensorEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4CcSensorEventConfigEntry.setDescription('Event configuration objects for a particular contact closure sensor.') st4CcSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 12, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4CcSensorNotifications.setStatus('current') if mibBuilder.loadTexts: st4CcSensorNotifications.setDescription('The notification methods enabled for contact closure sensor events.') st4AnalogToDigitalConvSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13)) st4AdcSensorCommonConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1)) st4AdcSensorHysteresis = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorHysteresis.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorHysteresis.setDescription('The 8-bit count hysteresis of the analog-to-digital converter sensor.') st4AdcSensorConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2), ) if mibBuilder.loadTexts: st4AdcSensorConfigTable.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorConfigTable.setDescription('Analog-to-digital converter sensor configuration table.') st4AdcSensorConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex")) if mibBuilder.loadTexts: st4AdcSensorConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorConfigEntry.setDescription('Configuration objects for a particular analog-to-digital converter sensor.') st4AdcSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))) if mibBuilder.loadTexts: st4AdcSensorIndex.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorIndex.setDescription('Analog-to-digital converter sensor index.') st4AdcSensorID = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: st4AdcSensorID.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorID.setDescription('The internal ID of the analog-to-digital converter sensor. Format=AN.') st4AdcSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorName.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorName.setDescription('The name of the analog-to-digital converter sensor.') st4AdcSensorMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3), ) if mibBuilder.loadTexts: st4AdcSensorMonitorTable.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorMonitorTable.setDescription('Analog-to-digital converter sensor monitor table.') st4AdcSensorMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex")) if mibBuilder.loadTexts: st4AdcSensorMonitorEntry.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorMonitorEntry.setDescription('Objects to monitor for a particular analog-to-digital converter sensor.') st4AdcSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4AdcSensorValue.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorValue.setDescription('The 8-bit value from the analog-to-digital converter sensor.') st4AdcSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 3, 1, 2), DeviceStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: st4AdcSensorStatus.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorStatus.setDescription('The status of the analog-to-digital converter sensor.') st4AdcSensorEventConfigTable = MibTable((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4), ) if mibBuilder.loadTexts: st4AdcSensorEventConfigTable.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorEventConfigTable.setDescription('Analog-to-digital converter sensor event configuration table.') st4AdcSensorEventConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1), ).setIndexNames((0, "Sentry4-MIB", "st4UnitIndex"), (0, "Sentry4-MIB", "st4AdcSensorIndex")) if mibBuilder.loadTexts: st4AdcSensorEventConfigEntry.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorEventConfigEntry.setDescription('Event configuration objects for a particular analog-to-digital converter sensor.') st4AdcSensorNotifications = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 1), EventNotificationMethods()).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorNotifications.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorNotifications.setDescription('The notification methods enabled for analog-to-digital converter sensor events.') st4AdcSensorLowAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorLowAlarm.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorLowAlarm.setDescription('The 8-bit value for the low alarm threshold of the analog-to-digital converter sensor.') st4AdcSensorLowWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorLowWarning.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorLowWarning.setDescription('The 8-bit value for the low warning threshold of the analog-to-digital converter sensor.') st4AdcSensorHighWarning = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorHighWarning.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorHighWarning.setDescription('The 8-bit value for the high warning threshold of the analog-to-digital converter sensor.') st4AdcSensorHighAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 1718, 4, 1, 13, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: st4AdcSensorHighAlarm.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorHighAlarm.setDescription('The 8-bit value for the high alarm threshold of the analog-to-digital converter sensor.') st4EventInformation = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99)) st4EventStatusText = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4EventStatusText.setStatus('current') if mibBuilder.loadTexts: st4EventStatusText.setDescription('The text representation of the enumerated integer value of the most-relevant status or state object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return a NULL string.') st4EventStatusCondition = MibScalar((1, 3, 6, 1, 4, 1, 1718, 4, 1, 99, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("nonError", 0), ("error", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: st4EventStatusCondition.setStatus('current') if mibBuilder.loadTexts: st4EventStatusCondition.setDescription('The condition of the enumerated integer value of the status object included in a trap. The value of this object is set only when sent with a trap. A read of this object will return zero.') st4Notifications = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 100)) st4Events = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0)) st4UnitStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 1)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4UnitID"), ("Sentry4-MIB", "st4UnitName"), ("Sentry4-MIB", "st4UnitStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4UnitStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4UnitStatusEvent.setDescription('Unit status event.') st4InputCordStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 2)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordState"), ("Sentry4-MIB", "st4InputCordStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4InputCordStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4InputCordStatusEvent.setDescription('Input cord status event.') st4InputCordActivePowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 3)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordActivePower"), ("Sentry4-MIB", "st4InputCordActivePowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4InputCordActivePowerEvent.setStatus('current') if mibBuilder.loadTexts: st4InputCordActivePowerEvent.setDescription('Input cord active power event.') st4InputCordApparentPowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 4)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordApparentPower"), ("Sentry4-MIB", "st4InputCordApparentPowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4InputCordApparentPowerEvent.setStatus('current') if mibBuilder.loadTexts: st4InputCordApparentPowerEvent.setDescription('Input cord apparent power event.') st4InputCordPowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 5)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordPowerFactor"), ("Sentry4-MIB", "st4InputCordPowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4InputCordPowerFactorEvent.setStatus('current') if mibBuilder.loadTexts: st4InputCordPowerFactorEvent.setDescription('Input cord power factor event.') st4InputCordOutOfBalanceEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 6)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordOutOfBalance"), ("Sentry4-MIB", "st4InputCordOutOfBalanceStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4InputCordOutOfBalanceEvent.setStatus('current') if mibBuilder.loadTexts: st4InputCordOutOfBalanceEvent.setDescription('Input cord out-of-balance event.') st4LineStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 7)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineState"), ("Sentry4-MIB", "st4LineStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4LineStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4LineStatusEvent.setDescription('Line status event.') st4LineCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 8)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineCurrent"), ("Sentry4-MIB", "st4LineCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4LineCurrentEvent.setStatus('current') if mibBuilder.loadTexts: st4LineCurrentEvent.setDescription('Line current event.') st4PhaseStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 9)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseState"), ("Sentry4-MIB", "st4PhaseStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4PhaseStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4PhaseStatusEvent.setDescription('Phase status event.') st4PhaseVoltageEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 10)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseVoltage"), ("Sentry4-MIB", "st4PhaseVoltageStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4PhaseVoltageEvent.setStatus('current') if mibBuilder.loadTexts: st4PhaseVoltageEvent.setDescription('Phase voltage event.') st4PhasePowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 11)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhasePowerFactor"), ("Sentry4-MIB", "st4PhasePowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4PhasePowerFactorEvent.setStatus('current') if mibBuilder.loadTexts: st4PhasePowerFactorEvent.setDescription('Phase voltage event.') st4OcpStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 12)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OcpID"), ("Sentry4-MIB", "st4OcpLabel"), ("Sentry4-MIB", "st4OcpStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OcpStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4OcpStatusEvent.setDescription('Over-current protector status event.') st4BranchStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 13)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchState"), ("Sentry4-MIB", "st4BranchStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4BranchStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4BranchStatusEvent.setDescription('Branch status event.') st4BranchCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 14)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchCurrent"), ("Sentry4-MIB", "st4BranchCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4BranchCurrentEvent.setStatus('current') if mibBuilder.loadTexts: st4BranchCurrentEvent.setDescription('Branch current event.') st4OutletStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 15)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OutletStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4OutletStatusEvent.setDescription('Outlet status event.') st4OutletStateChangeEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 16)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OutletStateChangeEvent.setStatus('current') if mibBuilder.loadTexts: st4OutletStateChangeEvent.setDescription('Outlet state change event.') st4OutletCurrentEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 17)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletCurrent"), ("Sentry4-MIB", "st4OutletCurrentStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OutletCurrentEvent.setStatus('current') if mibBuilder.loadTexts: st4OutletCurrentEvent.setDescription('Outlet current event.') st4OutletActivePowerEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 18)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletActivePower"), ("Sentry4-MIB", "st4OutletActivePowerStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OutletActivePowerEvent.setStatus('current') if mibBuilder.loadTexts: st4OutletActivePowerEvent.setDescription('Outlet active power event.') st4OutletPowerFactorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 19)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletPowerFactor"), ("Sentry4-MIB", "st4OutletPowerFactorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4OutletPowerFactorEvent.setStatus('current') if mibBuilder.loadTexts: st4OutletPowerFactorEvent.setDescription('Outlet power factor event.') st4TempSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 20)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4TempSensorID"), ("Sentry4-MIB", "st4TempSensorName"), ("Sentry4-MIB", "st4TempSensorValue"), ("Sentry4-MIB", "st4TempSensorStatus"), ("Sentry4-MIB", "st4TempSensorScale"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4TempSensorEvent.setStatus('current') if mibBuilder.loadTexts: st4TempSensorEvent.setDescription('Temperature sensor event.') st4HumidSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 21)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4HumidSensorID"), ("Sentry4-MIB", "st4HumidSensorName"), ("Sentry4-MIB", "st4HumidSensorValue"), ("Sentry4-MIB", "st4HumidSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4HumidSensorEvent.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorEvent.setDescription('Humidity sensor event.') st4WaterSensorStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 22)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4WaterSensorID"), ("Sentry4-MIB", "st4WaterSensorName"), ("Sentry4-MIB", "st4WaterSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4WaterSensorStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorStatusEvent.setDescription('Water sensor status event.') st4CcSensorStatusEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 23)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4CcSensorID"), ("Sentry4-MIB", "st4CcSensorName"), ("Sentry4-MIB", "st4CcSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4CcSensorStatusEvent.setStatus('current') if mibBuilder.loadTexts: st4CcSensorStatusEvent.setDescription('Contact closure sensor status event.') st4AdcSensorEvent = NotificationType((1, 3, 6, 1, 4, 1, 1718, 4, 100, 0, 24)).setObjects(("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4AdcSensorID"), ("Sentry4-MIB", "st4AdcSensorName"), ("Sentry4-MIB", "st4AdcSensorValue"), ("Sentry4-MIB", "st4AdcSensorStatus"), ("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if mibBuilder.loadTexts: st4AdcSensorEvent.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorEvent.setDescription('Analog-to-digital converter sensor event.') st4Conformance = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200)) st4Groups = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1)) st4SystemObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 1)).setObjects(("Sentry4-MIB", "st4SystemProductName"), ("Sentry4-MIB", "st4SystemLocation"), ("Sentry4-MIB", "st4SystemFirmwareVersion"), ("Sentry4-MIB", "st4SystemFirmwareBuildInfo"), ("Sentry4-MIB", "st4SystemNICSerialNumber"), ("Sentry4-MIB", "st4SystemNICHardwareInfo"), ("Sentry4-MIB", "st4SystemProductSeries"), ("Sentry4-MIB", "st4SystemFeatures"), ("Sentry4-MIB", "st4SystemFeatureKey"), ("Sentry4-MIB", "st4SystemConfigModifiedCount"), ("Sentry4-MIB", "st4SystemUnitCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4SystemObjectsGroup = st4SystemObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4SystemObjectsGroup.setDescription('System objects group.') st4UnitObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 2)).setObjects(("Sentry4-MIB", "st4UnitID"), ("Sentry4-MIB", "st4UnitName"), ("Sentry4-MIB", "st4UnitProductSN"), ("Sentry4-MIB", "st4UnitModel"), ("Sentry4-MIB", "st4UnitAssetTag"), ("Sentry4-MIB", "st4UnitType"), ("Sentry4-MIB", "st4UnitCapabilities"), ("Sentry4-MIB", "st4UnitProductMfrDate"), ("Sentry4-MIB", "st4UnitDisplayOrientation"), ("Sentry4-MIB", "st4UnitOutletSequenceOrder"), ("Sentry4-MIB", "st4UnitInputCordCount"), ("Sentry4-MIB", "st4UnitTempSensorCount"), ("Sentry4-MIB", "st4UnitHumidSensorCount"), ("Sentry4-MIB", "st4UnitWaterSensorCount"), ("Sentry4-MIB", "st4UnitCcSensorCount"), ("Sentry4-MIB", "st4UnitAdcSensorCount"), ("Sentry4-MIB", "st4UnitStatus"), ("Sentry4-MIB", "st4UnitNotifications")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4UnitObjectsGroup = st4UnitObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4UnitObjectsGroup.setDescription('Unit objects group.') st4InputCordObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 3)).setObjects(("Sentry4-MIB", "st4InputCordActivePowerHysteresis"), ("Sentry4-MIB", "st4InputCordApparentPowerHysteresis"), ("Sentry4-MIB", "st4InputCordPowerFactorHysteresis"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHysteresis"), ("Sentry4-MIB", "st4InputCordID"), ("Sentry4-MIB", "st4InputCordName"), ("Sentry4-MIB", "st4InputCordInletType"), ("Sentry4-MIB", "st4InputCordNominalVoltage"), ("Sentry4-MIB", "st4InputCordNominalVoltageMin"), ("Sentry4-MIB", "st4InputCordNominalVoltageMax"), ("Sentry4-MIB", "st4InputCordCurrentCapacity"), ("Sentry4-MIB", "st4InputCordCurrentCapacityMax"), ("Sentry4-MIB", "st4InputCordPowerCapacity"), ("Sentry4-MIB", "st4InputCordNominalPowerFactor"), ("Sentry4-MIB", "st4InputCordLineCount"), ("Sentry4-MIB", "st4InputCordPhaseCount"), ("Sentry4-MIB", "st4InputCordOcpCount"), ("Sentry4-MIB", "st4InputCordBranchCount"), ("Sentry4-MIB", "st4InputCordOutletCount"), ("Sentry4-MIB", "st4InputCordState"), ("Sentry4-MIB", "st4InputCordStatus"), ("Sentry4-MIB", "st4InputCordActivePower"), ("Sentry4-MIB", "st4InputCordActivePowerStatus"), ("Sentry4-MIB", "st4InputCordApparentPower"), ("Sentry4-MIB", "st4InputCordApparentPowerStatus"), ("Sentry4-MIB", "st4InputCordPowerUtilized"), ("Sentry4-MIB", "st4InputCordPowerFactor"), ("Sentry4-MIB", "st4InputCordPowerFactorStatus"), ("Sentry4-MIB", "st4InputCordEnergy"), ("Sentry4-MIB", "st4InputCordFrequency"), ("Sentry4-MIB", "st4InputCordOutOfBalance"), ("Sentry4-MIB", "st4InputCordOutOfBalanceStatus"), ("Sentry4-MIB", "st4InputCordNotifications"), ("Sentry4-MIB", "st4InputCordActivePowerLowAlarm"), ("Sentry4-MIB", "st4InputCordActivePowerLowWarning"), ("Sentry4-MIB", "st4InputCordActivePowerHighWarning"), ("Sentry4-MIB", "st4InputCordActivePowerHighAlarm"), ("Sentry4-MIB", "st4InputCordApparentPowerLowAlarm"), ("Sentry4-MIB", "st4InputCordApparentPowerLowWarning"), ("Sentry4-MIB", "st4InputCordApparentPowerHighWarning"), ("Sentry4-MIB", "st4InputCordApparentPowerHighAlarm"), ("Sentry4-MIB", "st4InputCordPowerFactorLowAlarm"), ("Sentry4-MIB", "st4InputCordPowerFactorLowWarning"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHighWarning"), ("Sentry4-MIB", "st4InputCordOutOfBalanceHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4InputCordObjectsGroup = st4InputCordObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4InputCordObjectsGroup.setDescription('Input cord objects group.') st4LineObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 4)).setObjects(("Sentry4-MIB", "st4LineCurrentHysteresis"), ("Sentry4-MIB", "st4LineID"), ("Sentry4-MIB", "st4LineLabel"), ("Sentry4-MIB", "st4LineCurrentCapacity"), ("Sentry4-MIB", "st4LineState"), ("Sentry4-MIB", "st4LineStatus"), ("Sentry4-MIB", "st4LineCurrent"), ("Sentry4-MIB", "st4LineCurrentStatus"), ("Sentry4-MIB", "st4LineCurrentUtilized"), ("Sentry4-MIB", "st4LineNotifications"), ("Sentry4-MIB", "st4LineCurrentLowAlarm"), ("Sentry4-MIB", "st4LineCurrentLowWarning"), ("Sentry4-MIB", "st4LineCurrentHighWarning"), ("Sentry4-MIB", "st4LineCurrentHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4LineObjectsGroup = st4LineObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4LineObjectsGroup.setDescription('Line objects group.') st4PhaseObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 5)).setObjects(("Sentry4-MIB", "st4PhaseVoltageHysteresis"), ("Sentry4-MIB", "st4PhasePowerFactorHysteresis"), ("Sentry4-MIB", "st4PhaseID"), ("Sentry4-MIB", "st4PhaseLabel"), ("Sentry4-MIB", "st4PhaseNominalVoltage"), ("Sentry4-MIB", "st4PhaseBranchCount"), ("Sentry4-MIB", "st4PhaseOutletCount"), ("Sentry4-MIB", "st4PhaseState"), ("Sentry4-MIB", "st4PhaseStatus"), ("Sentry4-MIB", "st4PhaseVoltage"), ("Sentry4-MIB", "st4PhaseVoltageStatus"), ("Sentry4-MIB", "st4PhaseVoltageDeviation"), ("Sentry4-MIB", "st4PhaseCurrent"), ("Sentry4-MIB", "st4PhaseCurrentCrestFactor"), ("Sentry4-MIB", "st4PhaseActivePower"), ("Sentry4-MIB", "st4PhaseApparentPower"), ("Sentry4-MIB", "st4PhasePowerFactor"), ("Sentry4-MIB", "st4PhasePowerFactorStatus"), ("Sentry4-MIB", "st4PhaseReactance"), ("Sentry4-MIB", "st4PhaseEnergy"), ("Sentry4-MIB", "st4PhaseNotifications"), ("Sentry4-MIB", "st4PhaseVoltageLowAlarm"), ("Sentry4-MIB", "st4PhaseVoltageLowWarning"), ("Sentry4-MIB", "st4PhaseVoltageHighWarning"), ("Sentry4-MIB", "st4PhaseVoltageHighAlarm"), ("Sentry4-MIB", "st4PhasePowerFactorLowAlarm"), ("Sentry4-MIB", "st4PhasePowerFactorLowWarning")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4PhaseObjectsGroup = st4PhaseObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4PhaseObjectsGroup.setDescription('Phase objects group.') st4OcpObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 6)).setObjects(("Sentry4-MIB", "st4OcpID"), ("Sentry4-MIB", "st4OcpLabel"), ("Sentry4-MIB", "st4OcpType"), ("Sentry4-MIB", "st4OcpCurrentCapacity"), ("Sentry4-MIB", "st4OcpCurrentCapacityMax"), ("Sentry4-MIB", "st4OcpBranchCount"), ("Sentry4-MIB", "st4OcpOutletCount"), ("Sentry4-MIB", "st4OcpStatus"), ("Sentry4-MIB", "st4OcpNotifications")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4OcpObjectsGroup = st4OcpObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4OcpObjectsGroup.setDescription('Over-current protector objects group.') st4BranchObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 7)).setObjects(("Sentry4-MIB", "st4BranchCurrentHysteresis"), ("Sentry4-MIB", "st4BranchID"), ("Sentry4-MIB", "st4BranchLabel"), ("Sentry4-MIB", "st4BranchCurrentCapacity"), ("Sentry4-MIB", "st4BranchPhaseID"), ("Sentry4-MIB", "st4BranchOcpID"), ("Sentry4-MIB", "st4BranchOutletCount"), ("Sentry4-MIB", "st4BranchState"), ("Sentry4-MIB", "st4BranchStatus"), ("Sentry4-MIB", "st4BranchCurrent"), ("Sentry4-MIB", "st4BranchCurrentStatus"), ("Sentry4-MIB", "st4BranchCurrentUtilized"), ("Sentry4-MIB", "st4BranchNotifications"), ("Sentry4-MIB", "st4BranchCurrentLowAlarm"), ("Sentry4-MIB", "st4BranchCurrentLowWarning"), ("Sentry4-MIB", "st4BranchCurrentHighWarning"), ("Sentry4-MIB", "st4BranchCurrentHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4BranchObjectsGroup = st4BranchObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4BranchObjectsGroup.setDescription('Branch objects group.') st4OutletObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 8)).setObjects(("Sentry4-MIB", "st4OutletCurrentHysteresis"), ("Sentry4-MIB", "st4OutletActivePowerHysteresis"), ("Sentry4-MIB", "st4OutletPowerFactorHysteresis"), ("Sentry4-MIB", "st4OutletSequenceInterval"), ("Sentry4-MIB", "st4OutletRebootDelay"), ("Sentry4-MIB", "st4OutletStateChangeLogging"), ("Sentry4-MIB", "st4OutletID"), ("Sentry4-MIB", "st4OutletName"), ("Sentry4-MIB", "st4OutletCapabilities"), ("Sentry4-MIB", "st4OutletSocketType"), ("Sentry4-MIB", "st4OutletCurrentCapacity"), ("Sentry4-MIB", "st4OutletPowerCapacity"), ("Sentry4-MIB", "st4OutletWakeupState"), ("Sentry4-MIB", "st4OutletPostOnDelay"), ("Sentry4-MIB", "st4OutletPhaseID"), ("Sentry4-MIB", "st4OutletOcpID"), ("Sentry4-MIB", "st4OutletBranchID"), ("Sentry4-MIB", "st4OutletState"), ("Sentry4-MIB", "st4OutletStatus"), ("Sentry4-MIB", "st4OutletCurrent"), ("Sentry4-MIB", "st4OutletCurrentStatus"), ("Sentry4-MIB", "st4OutletCurrentUtilized"), ("Sentry4-MIB", "st4OutletVoltage"), ("Sentry4-MIB", "st4OutletActivePower"), ("Sentry4-MIB", "st4OutletActivePowerStatus"), ("Sentry4-MIB", "st4OutletApparentPower"), ("Sentry4-MIB", "st4OutletPowerFactor"), ("Sentry4-MIB", "st4OutletPowerFactorStatus"), ("Sentry4-MIB", "st4OutletCurrentCrestFactor"), ("Sentry4-MIB", "st4OutletReactance"), ("Sentry4-MIB", "st4OutletEnergy"), ("Sentry4-MIB", "st4OutletNotifications"), ("Sentry4-MIB", "st4OutletCurrentLowAlarm"), ("Sentry4-MIB", "st4OutletCurrentLowWarning"), ("Sentry4-MIB", "st4OutletCurrentHighWarning"), ("Sentry4-MIB", "st4OutletCurrentHighAlarm"), ("Sentry4-MIB", "st4OutletActivePowerLowAlarm"), ("Sentry4-MIB", "st4OutletActivePowerLowWarning"), ("Sentry4-MIB", "st4OutletActivePowerHighWarning"), ("Sentry4-MIB", "st4OutletActivePowerHighAlarm"), ("Sentry4-MIB", "st4OutletPowerFactorLowAlarm"), ("Sentry4-MIB", "st4OutletPowerFactorLowWarning"), ("Sentry4-MIB", "st4OutletControlState"), ("Sentry4-MIB", "st4OutletControlAction"), ("Sentry4-MIB", "st4OutletQueueControl")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4OutletObjectsGroup = st4OutletObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4OutletObjectsGroup.setDescription('Outlet objects group.') st4TempSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 9)).setObjects(("Sentry4-MIB", "st4TempSensorHysteresis"), ("Sentry4-MIB", "st4TempSensorScale"), ("Sentry4-MIB", "st4TempSensorID"), ("Sentry4-MIB", "st4TempSensorName"), ("Sentry4-MIB", "st4TempSensorValueMin"), ("Sentry4-MIB", "st4TempSensorValueMax"), ("Sentry4-MIB", "st4TempSensorValue"), ("Sentry4-MIB", "st4TempSensorStatus"), ("Sentry4-MIB", "st4TempSensorNotifications"), ("Sentry4-MIB", "st4TempSensorLowAlarm"), ("Sentry4-MIB", "st4TempSensorLowWarning"), ("Sentry4-MIB", "st4TempSensorHighWarning"), ("Sentry4-MIB", "st4TempSensorHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4TempSensorObjectsGroup = st4TempSensorObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4TempSensorObjectsGroup.setDescription('Temperature sensor objects group.') st4HumidSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 10)).setObjects(("Sentry4-MIB", "st4HumidSensorHysteresis"), ("Sentry4-MIB", "st4HumidSensorID"), ("Sentry4-MIB", "st4HumidSensorName"), ("Sentry4-MIB", "st4HumidSensorValue"), ("Sentry4-MIB", "st4HumidSensorStatus"), ("Sentry4-MIB", "st4HumidSensorNotifications"), ("Sentry4-MIB", "st4HumidSensorLowAlarm"), ("Sentry4-MIB", "st4HumidSensorLowWarning"), ("Sentry4-MIB", "st4HumidSensorHighWarning"), ("Sentry4-MIB", "st4HumidSensorHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4HumidSensorObjectsGroup = st4HumidSensorObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4HumidSensorObjectsGroup.setDescription('Humidity sensor objects group.') st4WaterSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 11)).setObjects(("Sentry4-MIB", "st4WaterSensorID"), ("Sentry4-MIB", "st4WaterSensorName"), ("Sentry4-MIB", "st4WaterSensorStatus"), ("Sentry4-MIB", "st4WaterSensorNotifications")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4WaterSensorObjectsGroup = st4WaterSensorObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4WaterSensorObjectsGroup.setDescription('Water sensor objects group.') st4CcSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 12)).setObjects(("Sentry4-MIB", "st4CcSensorID"), ("Sentry4-MIB", "st4CcSensorName"), ("Sentry4-MIB", "st4CcSensorStatus"), ("Sentry4-MIB", "st4CcSensorNotifications")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4CcSensorObjectsGroup = st4CcSensorObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4CcSensorObjectsGroup.setDescription('Contact closure sensor objects group.') st4AdcSensorObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 13)).setObjects(("Sentry4-MIB", "st4AdcSensorHysteresis"), ("Sentry4-MIB", "st4AdcSensorID"), ("Sentry4-MIB", "st4AdcSensorName"), ("Sentry4-MIB", "st4AdcSensorValue"), ("Sentry4-MIB", "st4AdcSensorStatus"), ("Sentry4-MIB", "st4AdcSensorNotifications"), ("Sentry4-MIB", "st4AdcSensorLowAlarm"), ("Sentry4-MIB", "st4AdcSensorLowWarning"), ("Sentry4-MIB", "st4AdcSensorHighWarning"), ("Sentry4-MIB", "st4AdcSensorHighAlarm")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4AdcSensorObjectsGroup = st4AdcSensorObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4AdcSensorObjectsGroup.setDescription('Analog-to-digital converter sensor objects group.') st4EventInfoObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 99)).setObjects(("Sentry4-MIB", "st4EventStatusText"), ("Sentry4-MIB", "st4EventStatusCondition")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4EventInfoObjectsGroup = st4EventInfoObjectsGroup.setStatus('current') if mibBuilder.loadTexts: st4EventInfoObjectsGroup.setDescription('Event information objects group.') st4EventNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 1718, 4, 200, 1, 100)).setObjects(("Sentry4-MIB", "st4UnitStatusEvent"), ("Sentry4-MIB", "st4InputCordStatusEvent"), ("Sentry4-MIB", "st4InputCordActivePowerEvent"), ("Sentry4-MIB", "st4InputCordApparentPowerEvent"), ("Sentry4-MIB", "st4InputCordPowerFactorEvent"), ("Sentry4-MIB", "st4InputCordOutOfBalanceEvent"), ("Sentry4-MIB", "st4LineStatusEvent"), ("Sentry4-MIB", "st4LineCurrentEvent"), ("Sentry4-MIB", "st4PhaseStatusEvent"), ("Sentry4-MIB", "st4PhaseVoltageEvent"), ("Sentry4-MIB", "st4PhasePowerFactorEvent"), ("Sentry4-MIB", "st4OcpStatusEvent"), ("Sentry4-MIB", "st4BranchStatusEvent"), ("Sentry4-MIB", "st4BranchCurrentEvent"), ("Sentry4-MIB", "st4OutletStatusEvent"), ("Sentry4-MIB", "st4OutletStateChangeEvent"), ("Sentry4-MIB", "st4OutletCurrentEvent"), ("Sentry4-MIB", "st4OutletActivePowerEvent"), ("Sentry4-MIB", "st4OutletPowerFactorEvent"), ("Sentry4-MIB", "st4TempSensorEvent"), ("Sentry4-MIB", "st4HumidSensorEvent"), ("Sentry4-MIB", "st4WaterSensorStatusEvent"), ("Sentry4-MIB", "st4CcSensorStatusEvent"), ("Sentry4-MIB", "st4AdcSensorEvent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4EventNotificationsGroup = st4EventNotificationsGroup.setStatus('current') if mibBuilder.loadTexts: st4EventNotificationsGroup.setDescription('Event notifications group.') st4Compliances = MibIdentifier((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2)) st4ModuleCompliances = ModuleCompliance((1, 3, 6, 1, 4, 1, 1718, 4, 200, 2, 1)).setObjects(("Sentry4-MIB", "st4SystemObjectsGroup"), ("Sentry4-MIB", "st4UnitObjectsGroup"), ("Sentry4-MIB", "st4InputCordObjectsGroup"), ("Sentry4-MIB", "st4LineObjectsGroup"), ("Sentry4-MIB", "st4PhaseObjectsGroup"), ("Sentry4-MIB", "st4OcpObjectsGroup"), ("Sentry4-MIB", "st4BranchObjectsGroup"), ("Sentry4-MIB", "st4OutletObjectsGroup"), ("Sentry4-MIB", "st4TempSensorObjectsGroup"), ("Sentry4-MIB", "st4HumidSensorObjectsGroup"), ("Sentry4-MIB", "st4WaterSensorObjectsGroup"), ("Sentry4-MIB", "st4CcSensorObjectsGroup"), ("Sentry4-MIB", "st4AdcSensorObjectsGroup"), ("Sentry4-MIB", "st4EventInfoObjectsGroup"), ("Sentry4-MIB", "st4EventNotificationsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): st4ModuleCompliances = st4ModuleCompliances.setStatus('current') if mibBuilder.loadTexts: st4ModuleCompliances.setDescription('The requirements for conformance to the Sentry4-MIB.') mibBuilder.exportSymbols("Sentry4-MIB", st4WaterSensorStatus=st4WaterSensorStatus, st4LineConfigEntry=st4LineConfigEntry, st4InputCordMonitorTable=st4InputCordMonitorTable, st4BranchLabel=st4BranchLabel, st4InputCordActivePowerLowAlarm=st4InputCordActivePowerLowAlarm, st4OcpStatus=st4OcpStatus, st4OcpCommonConfig=st4OcpCommonConfig, st4BranchConfigTable=st4BranchConfigTable, st4CcSensorEventConfigTable=st4CcSensorEventConfigTable, st4PhaseReactance=st4PhaseReactance, st4AdcSensorEventConfigTable=st4AdcSensorEventConfigTable, st4PhasePowerFactorEvent=st4PhasePowerFactorEvent, st4HumiditySensors=st4HumiditySensors, st4BranchCurrent=st4BranchCurrent, st4OutletCurrentHysteresis=st4OutletCurrentHysteresis, st4TempSensorConfigTable=st4TempSensorConfigTable, st4OcpEventConfigEntry=st4OcpEventConfigEntry, st4UnitConfigEntry=st4UnitConfigEntry, st4System=st4System, st4PhaseState=st4PhaseState, st4OutletConfigEntry=st4OutletConfigEntry, st4TempSensorObjectsGroup=st4TempSensorObjectsGroup, st4InputCordActivePowerHighAlarm=st4InputCordActivePowerHighAlarm, st4UnitEventConfigEntry=st4UnitEventConfigEntry, st4OutletIndex=st4OutletIndex, st4HumidSensorMonitorTable=st4HumidSensorMonitorTable, st4InputCordConfigTable=st4InputCordConfigTable, st4HumidSensorEventConfigTable=st4HumidSensorEventConfigTable, st4LineState=st4LineState, st4PhaseNominalVoltage=st4PhaseNominalVoltage, st4AdcSensorEvent=st4AdcSensorEvent, st4InputCordActivePowerHysteresis=st4InputCordActivePowerHysteresis, st4UnitCommonConfig=st4UnitCommonConfig, st4InputCordActivePowerHighWarning=st4InputCordActivePowerHighWarning, st4InputCordApparentPowerHighWarning=st4InputCordApparentPowerHighWarning, st4OcpBranchCount=st4OcpBranchCount, st4OutletPostOnDelay=st4OutletPostOnDelay, st4InputCordPowerUtilized=st4InputCordPowerUtilized, st4UnitOutletSequenceOrder=st4UnitOutletSequenceOrder, st4SystemFeatures=st4SystemFeatures, st4LineCurrent=st4LineCurrent, st4HumidSensorValue=st4HumidSensorValue, st4ModuleCompliances=st4ModuleCompliances, st4PhaseVoltageLowAlarm=st4PhaseVoltageLowAlarm, st4OutletCurrentLowAlarm=st4OutletCurrentLowAlarm, st4OcpType=st4OcpType, st4InputCordOutOfBalance=st4InputCordOutOfBalance, st4BranchCommonConfig=st4BranchCommonConfig, st4UnitConfigTable=st4UnitConfigTable, st4UnitModel=st4UnitModel, st4TempSensorConfigEntry=st4TempSensorConfigEntry, st4PhaseVoltageStatus=st4PhaseVoltageStatus, st4AdcSensorStatus=st4AdcSensorStatus, EventNotificationMethods=EventNotificationMethods, st4UnitNotifications=st4UnitNotifications, st4OutletPowerFactorEvent=st4OutletPowerFactorEvent, st4WaterSensorMonitorEntry=st4WaterSensorMonitorEntry, st4LineCurrentLowAlarm=st4LineCurrentLowAlarm, st4InputCordPowerCapacity=st4InputCordPowerCapacity, st4PhaseBranchCount=st4PhaseBranchCount, st4InputCordState=st4InputCordState, st4OutletPhaseID=st4OutletPhaseID, st4OcpEventConfigTable=st4OcpEventConfigTable, st4OutletBranchID=st4OutletBranchID, st4LineEventConfigEntry=st4LineEventConfigEntry, st4CcSensorName=st4CcSensorName, st4OutletCurrentLowWarning=st4OutletCurrentLowWarning, st4BranchCurrentCapacity=st4BranchCurrentCapacity, st4WaterSensorCommonConfig=st4WaterSensorCommonConfig, st4InputCordNotifications=st4InputCordNotifications, st4WaterSensorConfigTable=st4WaterSensorConfigTable, st4OutletCurrentStatus=st4OutletCurrentStatus, st4OutletCommonConfig=st4OutletCommonConfig, st4TempSensorNotifications=st4TempSensorNotifications, st4OutletActivePowerHighWarning=st4OutletActivePowerHighWarning, st4OverCurrentProtectors=st4OverCurrentProtectors, st4OutletPowerFactor=st4OutletPowerFactor, st4BranchOutletCount=st4BranchOutletCount, st4EventNotificationsGroup=st4EventNotificationsGroup, sentry4=sentry4, st4WaterSensorIndex=st4WaterSensorIndex, st4UnitStatus=st4UnitStatus, st4InputCordOcpCount=st4InputCordOcpCount, st4LineCurrentStatus=st4LineCurrentStatus, st4LineCurrentHighWarning=st4LineCurrentHighWarning, st4InputCordNominalVoltage=st4InputCordNominalVoltage, st4Compliances=st4Compliances, st4PhaseActivePower=st4PhaseActivePower, st4BranchCurrentEvent=st4BranchCurrentEvent, st4InputCordIndex=st4InputCordIndex, st4OcpNotifications=st4OcpNotifications, DeviceState=DeviceState, st4AdcSensorMonitorTable=st4AdcSensorMonitorTable, st4PhasePowerFactorStatus=st4PhasePowerFactorStatus, st4SystemProductSeries=st4SystemProductSeries, st4OutletCurrentHighWarning=st4OutletCurrentHighWarning, st4WaterSensorConfigEntry=st4WaterSensorConfigEntry, st4PhaseConfigEntry=st4PhaseConfigEntry, st4HumidSensorCommonConfig=st4HumidSensorCommonConfig, st4CcSensorConfigTable=st4CcSensorConfigTable, st4LineNotifications=st4LineNotifications, st4BranchConfigEntry=st4BranchConfigEntry, st4OutletActivePowerLowAlarm=st4OutletActivePowerLowAlarm, st4PhaseCurrent=st4PhaseCurrent, st4OutletConfigTable=st4OutletConfigTable, st4InputCordPowerFactor=st4InputCordPowerFactor, st4LineCommonConfig=st4LineCommonConfig, st4OutletVoltage=st4OutletVoltage, st4OutletStateChangeLogging=st4OutletStateChangeLogging, st4PhaseCommonConfig=st4PhaseCommonConfig, st4InputCordOutOfBalanceEvent=st4InputCordOutOfBalanceEvent, st4OcpConfigTable=st4OcpConfigTable, st4BranchMonitorTable=st4BranchMonitorTable, st4OutletCurrentEvent=st4OutletCurrentEvent, st4OutletPowerFactorLowAlarm=st4OutletPowerFactorLowAlarm, st4SystemNICSerialNumber=st4SystemNICSerialNumber, st4InputCordPowerFactorLowWarning=st4InputCordPowerFactorLowWarning, st4WaterSensorName=st4WaterSensorName, st4OutletCapabilities=st4OutletCapabilities, st4UnitAdcSensorCount=st4UnitAdcSensorCount, st4BranchStatus=st4BranchStatus, st4InputCords=st4InputCords, st4UnitWaterSensorCount=st4UnitWaterSensorCount, st4TempSensorHighWarning=st4TempSensorHighWarning, st4PhaseCurrentCrestFactor=st4PhaseCurrentCrestFactor, st4LineCurrentHighAlarm=st4LineCurrentHighAlarm, st4HumidSensorIndex=st4HumidSensorIndex, st4SystemObjectsGroup=st4SystemObjectsGroup, st4CcSensorIndex=st4CcSensorIndex, st4InputCordConfigEntry=st4InputCordConfigEntry, st4BranchCurrentStatus=st4BranchCurrentStatus, st4InputCordCurrentCapacity=st4InputCordCurrentCapacity, st4PhaseVoltageDeviation=st4PhaseVoltageDeviation, st4PhaseID=st4PhaseID, st4OcpCurrentCapacityMax=st4OcpCurrentCapacityMax, st4AdcSensorLowWarning=st4AdcSensorLowWarning, st4LineMonitorTable=st4LineMonitorTable, st4InputCordBranchCount=st4InputCordBranchCount, st4AnalogToDigitalConvSensors=st4AnalogToDigitalConvSensors, DeviceStatus=DeviceStatus, st4InputCordPowerFactorEvent=st4InputCordPowerFactorEvent, st4OutletEventConfigTable=st4OutletEventConfigTable, st4InputCordStatusEvent=st4InputCordStatusEvent, st4UnitEventConfigTable=st4UnitEventConfigTable, st4OcpID=st4OcpID, st4TempSensorHysteresis=st4TempSensorHysteresis, st4PhaseMonitorEntry=st4PhaseMonitorEntry, st4InputCordApparentPowerHysteresis=st4InputCordApparentPowerHysteresis, st4OutletPowerCapacity=st4OutletPowerCapacity, st4OutletActivePowerHysteresis=st4OutletActivePowerHysteresis, st4LineCurrentCapacity=st4LineCurrentCapacity, st4SystemConfig=st4SystemConfig, st4AdcSensorIndex=st4AdcSensorIndex, st4LineCurrentLowWarning=st4LineCurrentLowWarning, st4TempSensorMonitorTable=st4TempSensorMonitorTable, st4InputCordNominalPowerFactor=st4InputCordNominalPowerFactor, st4UnitDisplayOrientation=st4UnitDisplayOrientation, st4PhaseVoltageLowWarning=st4PhaseVoltageLowWarning, st4HumidSensorHighWarning=st4HumidSensorHighWarning, st4BranchCurrentHighWarning=st4BranchCurrentHighWarning, st4TempSensorStatus=st4TempSensorStatus, st4AdcSensorHighWarning=st4AdcSensorHighWarning, st4OcpMonitorEntry=st4OcpMonitorEntry, st4SystemNICHardwareInfo=st4SystemNICHardwareInfo, st4InputCordOutOfBalanceHighAlarm=st4InputCordOutOfBalanceHighAlarm, st4HumidSensorEventConfigEntry=st4HumidSensorEventConfigEntry, st4BranchID=st4BranchID, st4InputCordActivePowerEvent=st4InputCordActivePowerEvent, st4CcSensorConfigEntry=st4CcSensorConfigEntry, st4OutletRebootDelay=st4OutletRebootDelay, st4OcpLabel=st4OcpLabel, st4Outlets=st4Outlets, st4OutletActivePower=st4OutletActivePower, st4PhaseOutletCount=st4PhaseOutletCount, st4CcSensorMonitorTable=st4CcSensorMonitorTable, st4UnitType=st4UnitType, st4InputCordNominalVoltageMax=st4InputCordNominalVoltageMax, st4BranchObjectsGroup=st4BranchObjectsGroup, st4UnitIndex=st4UnitIndex, st4TempSensorValueMax=st4TempSensorValueMax, st4UnitMonitorTable=st4UnitMonitorTable, st4Units=st4Units, st4HumidSensorConfigTable=st4HumidSensorConfigTable, st4UnitProductSN=st4UnitProductSN, st4TemperatureSensors=st4TemperatureSensors, st4AdcSensorLowAlarm=st4AdcSensorLowAlarm, st4SystemConfigModifiedCount=st4SystemConfigModifiedCount, st4UnitID=st4UnitID, st4LineCurrentUtilized=st4LineCurrentUtilized, st4OcpObjectsGroup=st4OcpObjectsGroup, st4SystemFeatureKey=st4SystemFeatureKey, st4TempSensorLowAlarm=st4TempSensorLowAlarm, st4WaterSensorID=st4WaterSensorID, st4OutletControlState=st4OutletControlState, st4AdcSensorConfigEntry=st4AdcSensorConfigEntry, st4WaterSensorNotifications=st4WaterSensorNotifications, st4Lines=st4Lines, st4WaterSensorStatusEvent=st4WaterSensorStatusEvent, st4BranchPhaseID=st4BranchPhaseID, st4OcpIndex=st4OcpIndex, st4OutletSequenceInterval=st4OutletSequenceInterval, st4InputCordOutOfBalanceStatus=st4InputCordOutOfBalanceStatus, st4OutletPowerFactorLowWarning=st4OutletPowerFactorLowWarning, st4TempSensorValueMin=st4TempSensorValueMin, st4AdcSensorCommonConfig=st4AdcSensorCommonConfig, st4PhaseVoltage=st4PhaseVoltage, st4OutletQueueControl=st4OutletQueueControl, st4InputCordPowerFactorHysteresis=st4InputCordPowerFactorHysteresis, st4InputCordCommonConfig=st4InputCordCommonConfig, st4OutletState=st4OutletState, st4SystemLocation=st4SystemLocation, st4HumidSensorMonitorEntry=st4HumidSensorMonitorEntry, st4OutletCurrent=st4OutletCurrent, st4PhaseVoltageHighAlarm=st4PhaseVoltageHighAlarm, st4PhaseStatusEvent=st4PhaseStatusEvent, st4LineConfigTable=st4LineConfigTable, st4CcSensorEventConfigEntry=st4CcSensorEventConfigEntry, st4AdcSensorMonitorEntry=st4AdcSensorMonitorEntry, st4InputCordNominalVoltageMin=st4InputCordNominalVoltageMin, st4OcpConfigEntry=st4OcpConfigEntry, st4TempSensorEventConfigTable=st4TempSensorEventConfigTable, st4OutletMonitorTable=st4OutletMonitorTable, st4InputCordObjectsGroup=st4InputCordObjectsGroup, st4OutletStateChangeEvent=st4OutletStateChangeEvent, st4AdcSensorConfigTable=st4AdcSensorConfigTable, st4OutletControlAction=st4OutletControlAction, st4TempSensorLowWarning=st4TempSensorLowWarning, st4InputCordStatus=st4InputCordStatus, st4BranchCurrentUtilized=st4BranchCurrentUtilized, st4UnitInputCordCount=st4UnitInputCordCount, st4InputCordApparentPowerHighAlarm=st4InputCordApparentPowerHighAlarm, st4OutletEnergy=st4OutletEnergy, st4InputCordEventConfigEntry=st4InputCordEventConfigEntry, st4PhasePowerFactorLowWarning=st4PhasePowerFactorLowWarning, st4BranchStatusEvent=st4BranchStatusEvent, st4PhaseEnergy=st4PhaseEnergy, st4UnitTempSensorCount=st4UnitTempSensorCount, st4LineIndex=st4LineIndex, st4OutletStatusEvent=st4OutletStatusEvent, st4OutletActivePowerEvent=st4OutletActivePowerEvent, st4InputCordActivePower=st4InputCordActivePower, st4OcpStatusEvent=st4OcpStatusEvent, st4OutletControlTable=st4OutletControlTable, st4LineCurrentEvent=st4LineCurrentEvent, st4Branches=st4Branches, st4PhaseStatus=st4PhaseStatus, st4OutletEventConfigEntry=st4OutletEventConfigEntry, st4PhaseLabel=st4PhaseLabel, st4LineMonitorEntry=st4LineMonitorEntry, st4AdcSensorName=st4AdcSensorName, st4TempSensorMonitorEntry=st4TempSensorMonitorEntry, st4PhaseEventConfigTable=st4PhaseEventConfigTable, st4OutletApparentPower=st4OutletApparentPower, st4UnitName=st4UnitName) mibBuilder.exportSymbols("Sentry4-MIB", st4LineEventConfigTable=st4LineEventConfigTable, st4InputCordPowerFactorStatus=st4InputCordPowerFactorStatus, st4OutletCurrentCrestFactor=st4OutletCurrentCrestFactor, st4AdcSensorObjectsGroup=st4AdcSensorObjectsGroup, st4HumidSensorLowWarning=st4HumidSensorLowWarning, st4PhaseVoltageHighWarning=st4PhaseVoltageHighWarning, st4HumidSensorName=st4HumidSensorName, st4BranchIndex=st4BranchIndex, st4HumidSensorEvent=st4HumidSensorEvent, st4LineCurrentHysteresis=st4LineCurrentHysteresis, st4CcSensorCommonConfig=st4CcSensorCommonConfig, st4OutletObjectsGroup=st4OutletObjectsGroup, st4OutletActivePowerHighAlarm=st4OutletActivePowerHighAlarm, st4UnitCcSensorCount=st4UnitCcSensorCount, st4BranchMonitorEntry=st4BranchMonitorEntry, st4InputCordApparentPowerStatus=st4InputCordApparentPowerStatus, st4InputCordFrequency=st4InputCordFrequency, st4WaterSensors=st4WaterSensors, st4TempSensorIndex=st4TempSensorIndex, st4OutletID=st4OutletID, st4OutletActivePowerLowWarning=st4OutletActivePowerLowWarning, st4PhasePowerFactorLowAlarm=st4PhasePowerFactorLowAlarm, st4AdcSensorValue=st4AdcSensorValue, st4BranchCurrentLowWarning=st4BranchCurrentLowWarning, st4PhaseEventConfigEntry=st4PhaseEventConfigEntry, st4PhaseNotifications=st4PhaseNotifications, st4WaterSensorMonitorTable=st4WaterSensorMonitorTable, st4LineObjectsGroup=st4LineObjectsGroup, st4Phases=st4Phases, st4UnitHumidSensorCount=st4UnitHumidSensorCount, st4OutletPowerFactorHysteresis=st4OutletPowerFactorHysteresis, st4CcSensorStatus=st4CcSensorStatus, st4AdcSensorHighAlarm=st4AdcSensorHighAlarm, st4OutletStatus=st4OutletStatus, st4LineLabel=st4LineLabel, st4SystemFirmwareBuildInfo=st4SystemFirmwareBuildInfo, st4SystemProductName=st4SystemProductName, st4InputCordEnergy=st4InputCordEnergy, st4HumidSensorStatus=st4HumidSensorStatus, st4TempSensorName=st4TempSensorName, st4InputCordPowerFactorLowAlarm=st4InputCordPowerFactorLowAlarm, st4PhaseIndex=st4PhaseIndex, st4InputCordActivePowerLowWarning=st4InputCordActivePowerLowWarning, st4InputCordApparentPower=st4InputCordApparentPower, serverTech=serverTech, st4LineID=st4LineID, st4PhaseVoltageEvent=st4PhaseVoltageEvent, st4WaterSensorEventConfigTable=st4WaterSensorEventConfigTable, st4InputCordEventConfigTable=st4InputCordEventConfigTable, st4InputCordMonitorEntry=st4InputCordMonitorEntry, st4InputCordApparentPowerLowAlarm=st4InputCordApparentPowerLowAlarm, st4Objects=st4Objects, st4TempSensorScale=st4TempSensorScale, st4OutletCurrentCapacity=st4OutletCurrentCapacity, st4TempSensorCommonConfig=st4TempSensorCommonConfig, st4Events=st4Events, st4Conformance=st4Conformance, st4BranchCurrentHighAlarm=st4BranchCurrentHighAlarm, st4OutletOcpID=st4OutletOcpID, st4TempSensorEventConfigEntry=st4TempSensorEventConfigEntry, st4BranchOcpID=st4BranchOcpID, st4HumidSensorHysteresis=st4HumidSensorHysteresis, st4TempSensorValue=st4TempSensorValue, st4Notifications=st4Notifications, st4HumidSensorConfigEntry=st4HumidSensorConfigEntry, st4HumidSensorNotifications=st4HumidSensorNotifications, st4InputCordOutletCount=st4InputCordOutletCount, st4InputCordInletType=st4InputCordInletType, st4CcSensorStatusEvent=st4CcSensorStatusEvent, st4AdcSensorHysteresis=st4AdcSensorHysteresis, st4LineStatusEvent=st4LineStatusEvent, st4OutletPowerFactorStatus=st4OutletPowerFactorStatus, st4BranchEventConfigEntry=st4BranchEventConfigEntry, st4TempSensorEvent=st4TempSensorEvent, st4AdcSensorNotifications=st4AdcSensorNotifications, st4HumidSensorID=st4HumidSensorID, st4Groups=st4Groups, st4UnitStatusEvent=st4UnitStatusEvent, st4BranchCurrentHysteresis=st4BranchCurrentHysteresis, st4BranchNotifications=st4BranchNotifications, st4UnitAssetTag=st4UnitAssetTag, st4OutletSocketType=st4OutletSocketType, st4ContactClosureSensors=st4ContactClosureSensors, st4UnitProductMfrDate=st4UnitProductMfrDate, st4TempSensorID=st4TempSensorID, st4OutletNotifications=st4OutletNotifications, st4CcSensorNotifications=st4CcSensorNotifications, st4UnitCapabilities=st4UnitCapabilities, st4InputCordPhaseCount=st4InputCordPhaseCount, st4SystemFirmwareVersion=st4SystemFirmwareVersion, st4OutletReactance=st4OutletReactance, st4EventInfoObjectsGroup=st4EventInfoObjectsGroup, st4OutletControlEntry=st4OutletControlEntry, st4CcSensorMonitorEntry=st4CcSensorMonitorEntry, st4BranchEventConfigTable=st4BranchEventConfigTable, st4LineStatus=st4LineStatus, st4PhaseApparentPower=st4PhaseApparentPower, st4EventStatusCondition=st4EventStatusCondition, st4AdcSensorEventConfigEntry=st4AdcSensorEventConfigEntry, st4AdcSensorID=st4AdcSensorID, st4OcpOutletCount=st4OcpOutletCount, st4InputCordActivePowerStatus=st4InputCordActivePowerStatus, st4UnitObjectsGroup=st4UnitObjectsGroup, st4HumidSensorHighAlarm=st4HumidSensorHighAlarm, st4PhaseConfigTable=st4PhaseConfigTable, st4PhasePowerFactor=st4PhasePowerFactor, st4BranchCurrentLowAlarm=st4BranchCurrentLowAlarm, st4WaterSensorObjectsGroup=st4WaterSensorObjectsGroup, st4InputCordApparentPowerLowWarning=st4InputCordApparentPowerLowWarning, st4InputCordLineCount=st4InputCordLineCount, st4InputCordID=st4InputCordID, st4InputCordCurrentCapacityMax=st4InputCordCurrentCapacityMax, st4OcpMonitorTable=st4OcpMonitorTable, st4CcSensorID=st4CcSensorID, st4PhasePowerFactorHysteresis=st4PhasePowerFactorHysteresis, st4OcpCurrentCapacity=st4OcpCurrentCapacity, st4InputCordApparentPowerEvent=st4InputCordApparentPowerEvent, st4TempSensorHighAlarm=st4TempSensorHighAlarm, st4WaterSensorEventConfigEntry=st4WaterSensorEventConfigEntry, st4HumidSensorObjectsGroup=st4HumidSensorObjectsGroup, st4InputCordOutOfBalanceHysteresis=st4InputCordOutOfBalanceHysteresis, st4PhaseVoltageHysteresis=st4PhaseVoltageHysteresis, st4HumidSensorLowAlarm=st4HumidSensorLowAlarm, st4CcSensorObjectsGroup=st4CcSensorObjectsGroup, st4OutletMonitorEntry=st4OutletMonitorEntry, st4OutletCurrentUtilized=st4OutletCurrentUtilized, st4OutletCurrentHighAlarm=st4OutletCurrentHighAlarm, st4OutletName=st4OutletName, st4OutletActivePowerStatus=st4OutletActivePowerStatus, st4PhaseObjectsGroup=st4PhaseObjectsGroup, st4OutletWakeupState=st4OutletWakeupState, st4OutletCommonControl=st4OutletCommonControl, st4EventInformation=st4EventInformation, st4InputCordOutOfBalanceHighWarning=st4InputCordOutOfBalanceHighWarning, st4BranchState=st4BranchState, st4SystemUnitCount=st4SystemUnitCount, st4PhaseMonitorTable=st4PhaseMonitorTable, st4UnitMonitorEntry=st4UnitMonitorEntry, st4EventStatusText=st4EventStatusText, PYSNMP_MODULE_ID=sentry4, st4InputCordName=st4InputCordName)
# 374. 猜数字大小 # # 20200810 # huao # 二分 # The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 def guess(num: int) -> int: pass class Solution: def guessNumber(self, n: int) -> int: begin = 1 end = n mid = (begin + end) // 2 result = guess(mid) while result != 0: if result == 1: begin = mid mid = (begin + end) // 2 else: end = mid mid = (begin + end) // 2 if begin + 1 == end: if guess(end) == 0: return end result = guess(mid) return mid
DEBUG = True ALLOWED_HOSTS = ['*'] SECRET_KEY = 'secret' SOCIAL_AUTH_TWITTER_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx' SOCIAL_AUTH_TWITTER_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' SOCIAL_AUTH_ORCID_KEY = '' SOCIAL_AUTH_ORCID_SECRET = ''
# reverse generator def reverse(data): current = len(data) while current >= 1: current -= 1 yield data[current] for c in reverse("string"): print(c) for i in reverse([1, 2, 3]): print(i) # reverse iterator class Reverse(object): def __init__(self, data): self.data = data self.index = len(data) def __iter__(self): return self def __next__(self): if self.index == 0: raise StopIteration self.index -= 1 return self.data[self.index] for c in Reverse("string"): print(c) for i in Reverse([1, 2, 3]): print(i) # simple generator def counter(low, high, step): current = low while current <= high: yield current current += step for c in counter(3, 9, 2): print(c) # simple iterator class Counter(object): def __init__(self, low, high, step): self.current = low self.high = high self.step = step def __iter__(self): return self def __next__(self): if self.current > self.high: raise StopIteration else: result = self.current self.current += self.step return result for c in Counter(3, 9, 2): print(c)
salario = float(input('Qual o salário atual?')) aumento = float(input('Qual o valor do aumento em porcento?')) total = (salario*aumento)/100 print('o valor final é de R${}'.format(total+salario))
### Model data class catboost_model(object): float_features_index = [ 0, 1, 2, 4, 5, 6, 8, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 24, 27, 28, 31, 33, 35, 37, 38, 39, 46, 47, 48, ] float_feature_count = 50 cat_feature_count = 0 binary_feature_count = 29 tree_count = 40 float_feature_borders = [ [0.000758085982, 0.178914994, 0.1888735, 0.194539994, 0.34700349, 0.44264698, 0.780139983, 0.813149452], [0.00132575491, 0.0216720998, 0.0395833515, 0.0403138474, 0.102008, 0.156479999, 0.213277996, 0.281994998, 0.312178016, 0.384054512, 0.474032521, 0.585997999, 0.681437016, 0.815984011], [0.00109145499, 0.00861673057, 0.0365923494, 0.0686140954, 0.419130981, 0.428588986, 0.879231513, 0.937812984], [0.5], [0.5], [0.5], [0.5], [0.5], [0.5], [0.358823478, 0.421568513, 0.433333516, 0.52352953, 0.554902017, 0.558823466, 0.621568501, 0.7156865], [0.148551002, 0.183333501, 0.384469509, 0.436507493, 0.506097496, 0.578900516, 0.587584972, 0.674775004, 0.748417497, 0.76047051, 0.800989985, 0.866219521, 0.867108464, 0.908883512, 0.950919986], [0.0207247995, 0.0343967006, 0.0504557006, 0.158435494, 0.216674, 0.247377992, 0.269448996, 0.318728, 0.333916008, 0.37875849, 0.39003402, 0.422357976, 0.594812512, 0.795647502], [0.0398375988, 0.0653211027, 0.115491495, 0.120285496, 0.124523498, 0.133076996, 0.136280507, 0.140028998, 0.142480001, 0.14288801, 0.155889004, 0.199276, 0.2121225, 0.240777999, 0.260086477, 0.276386499, 0.280552983, 0.297052979, 0.355903506], [0.5], [0.252941012, 0.276470482, 0.331372499, 0.335294008, 0.413725495, 0.437254995, 0.496078491, 0.694117486, 0.699999988, 0.750980496, 0.852941036, 0.929412007, 0.968627512], [0.5], [0.0416666493], [0.0225447994, 0.0226299986, 0.0261416994, 0.0633649006, 0.182705492, 0.187063992, 0.211840004, 0.213952005, 0.241398007, 0.29707399, 0.937534451, 0.939258993, 0.93988049, 0.946740508], [0.5], [0.5], [0.0867389515, 0.16316551, 0.693239987], [0.185759991, 0.297058523, 0.363489985, 0.402247012, 0.793442488, 0.84256053], [-0.0383633971, 0.00895375013, 0.193027496, 0.220256999, 0.342289001, 0.423586994, 0.434064507, 0.476337016, 0.623547494, 0.957795024], [0.000421158999, 0.000926548964, 0.00227425992, 0.00513814017, 0.0282176994, 0.0325976983, 0.0403470509], [0.283847004, 0.650285006, 0.6519925, 0.654693007, 0.661086977, 0.682412982, 0.726830006, 0.784554005, 0.821318984, 0.950830996], [4.17586998e-05, 8.0244994e-05, 0.000137109499, 0.00141531997, 0.00250496017, 0.00326151494, 0.00393318012, 0.005463365, 0.00693041505, 0.00947646052, 0.0113535002, 0.0157128982, 0.01822575, 0.0689947009, 0.0747110993], [0.0761536956, 0.103404, 0.148530498, 0.164992496, 0.214888006, 0.404017985, 0.451396525, 0.535629511, 0.665955007, 0.811691999], [0.60571146, 0.711432993, 0.981393516], [0.1105005, 0.175806999, 0.340994507, 0.346906006, 0.458132505, 0.504471004, 0.544902503, 0.547486544, 0.569079995, 0.670499027, 0.726330996, 0.774749517, 0.776835024, 0.787591517, 0.870769978, 0.911834955], ] tree_depth = [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6] tree_split_border = [1, 6, 8, 9, 4, 6, 8, 5, 7, 9, 3, 1, 2, 13, 5, 1, 5, 7, 16, 1, 1, 7, 10, 6, 14, 11, 7, 8, 14, 12, 2, 5, 4, 7, 6, 14, 6, 7, 19, 8, 5, 1, 2, 1, 6, 13, 2, 5, 13, 10, 8, 1, 15, 10, 5, 8, 10, 2, 2, 9, 1, 9, 2, 3, 9, 7, 1, 1, 8, 7, 8, 8, 1, 15, 1, 8, 15, 7, 1, 8, 4, 4, 10, 4, 13, 3, 1, 4, 5, 1, 14, 1, 6, 4, 14, 10, 4, 8, 8, 2, 1, 7, 12, 16, 5, 3, 7, 9, 4, 3, 11, 8, 18, 8, 14, 14, 5, 1, 4, 9, 1, 3, 3, 4, 1, 11, 12, 10, 13, 9, 13, 13, 1, 3, 13, 6, 3, 3, 8, 3, 1, 1, 13, 8, 2, 3, 3, 4, 2, 12, 15, 6, 11, 9, 14, 7, 14, 12, 1, 10, 2, 1, 6, 3, 5, 3, 4, 5, 7, 10, 4, 1, 1, 1, 2, 7, 10, 2, 12, 11, 14, 12, 6, 1, 6, 9, 10, 12, 2, 9, 1, 6, 15, 5, 17, 10, 6, 1, 11, 9, 8, 2, 1, 2, 15, 2, 1, 1, 3, 3, 13, 12, 1, 6, 12, 5, 6, 3, 1, 5, 4, 6, 11, 6, 1, 9, 7, 4, 2, 10, 11, 14, 12, 5, 2, 16, 7, 3, 11, 4] tree_split_feature_index = [20, 1, 25, 10, 23, 22, 2, 22, 14, 22, 11, 21, 27, 11, 28, 18, 14, 23, 28, 4, 24, 2, 12, 12, 11, 17, 10, 0, 12, 25, 25, 12, 21, 24, 11, 17, 17, 25, 12, 11, 9, 27, 17, 13, 2, 12, 21, 17, 14, 24, 2, 26, 28, 25, 21, 2, 24, 22, 9, 25, 15, 11, 2, 9, 28, 26, 8, 1, 12, 12, 28, 9, 15, 10, 2, 22, 12, 9, 0, 17, 25, 24, 11, 9, 14, 17, 28, 24, 10, 19, 1, 8, 21, 14, 11, 26, 12, 1, 24, 28, 4, 25, 14, 28, 23, 10, 0, 24, 0, 24, 10, 26, 12, 10, 10, 11, 25, 15, 26, 17, 18, 26, 25, 2, 23, 28, 14, 14, 17, 26, 1, 25, 10, 12, 10, 14, 23, 21, 2, 20, 22, 25, 28, 14, 1, 27, 22, 22, 11, 10, 28, 23, 12, 14, 28, 22, 1, 1, 3, 1, 20, 5, 28, 28, 24, 2, 17, 0, 17, 17, 10, 13, 9, 18, 0, 28, 10, 12, 11, 11, 25, 28, 0, 14, 12, 12, 22, 17, 24, 12, 6, 12, 25, 1, 12, 28, 25, 6, 12, 12, 12, 9, 17, 14, 25, 26, 12, 11, 14, 1, 14, 1, 3, 10, 12, 2, 24, 26, 16, 26, 1, 9, 14, 26, 7, 1, 11, 11, 23, 26, 1, 17, 17, 11, 10, 12, 1, 0, 25, 28] tree_split_xor_mask = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] cat_features_index = [] one_hot_cat_feature_index = [] one_hot_hash_values = [ ] ctr_feature_borders = [ ] ## Aggregated array of leaf values for trees. Each tree is represented by a separate line: leaf_values = [ -0.01452223061650176, 0.003220391872338723, -0.005535119676446759, -0.01465273981215404, -0.00855547415566176, 0.002037667919068398, 0.0001120632868695247, 0.03840825802757053, -0.01533940293562541, 0.007951286482469178, 0.02893911799022985, 0, 0.02292931274542596, 0.02265389319360762, 0.02038603740012057, 0.01812879496613256, -0.00714521746238457, 0.001950130990137022, -0.007326369906077018, 0.002300279908813374, 0.008621431815437664, 0.03554284328040242, 0.03512996404078633, 0.01981997355782309, -0.0179565158733794, 0.01325214413744863, 0.01360229305612498, 0.009626649814890392, 0.01925329962978078, 0.02543763356059014, 0.01559011467674228, 0.03281872682860205, -0.009945571873778352, -0.001362905044225135, -0.01304254387598467, 0, -0.006594462653496712, -0.01190226843647107, 0.007182689275421724, 0.01535789817241634, -0.00410502282758085, 0.007472611244634545, 0.04089836809158642, 0, 0.006062759240253598, 0.03643488793168285, 0.003512268152670903, 0.007951286482469178, -0.00983941490470884, 0.07047121835364896, 0, 0, 0, 0.02766033534093435, 0, 0.05719577328378828, -0.0149153515011613, -0.007326369906077018, 0, 0, 0, 0.03080527940764925, 0.001150139954406687, -0.004940983961336265, -0.004290491016358114, 0, -0.005142491159808076, 0, -0.01631414563094668, 0, -0.01583305362655595, 0, 0, 0, -0.004223387993378917, 0, 0, 0, -0.009901576725822188, 0, 0.001550563113605264, 0.001390731497052868, 0.00226873941224347, 0.005896346192859286, -0.007258726327461003, 0, 0.003358357795086376, 0, 0, 0, 0.00837589032594164, 0, 0, 0, -0.01059649838552386, 0, -0.009781645896798577, -0.007562517113173503, 0.02214271375734489, 0.05394157562038105, -0.0002138456496420421, 0.008021907958099189, -0.005188739401065129, 0, 0, 0, 0.04905615915828059, 0, 0, 0, -0.005303802232773693, 0, 0.0117081010746993, 0.03062085933581888, 0.02235340547823699, 0.1227133227722861, 0.007862897175603121, 0, 0.001608888337109428, 0, 0, 0, 0.007699061410369978, 0.00687759070158362, 0, 0, -0.01342322142795995, 0, -0.0008628659065023804, 0.009204875414304065, -0.01426102453631723, 0, 0.001937670583401637, 0.0156650165407804, 0.003739955634906077, -0.01011840625499374, -0.006940214177145987, 0, 0.0880356242859759, 0, 0.004817009991483832, -0.01025097578144819, 0.01005740748032615, 0, -0.007628195609257056, 0.01666370432348902, -0.005875549236929858, 0, -0.005698779283673799, 0.02285690403407965, 0.007392561165114673, -0.0003019701652545931, -0.007486785321659697, 0, 0.02840589257042851, 0, 0.02333489281990855, -0.01496735226052822, 0.02076800095251007, 0, -0.001649031678139777, 0, 0, 0, -0.008155449138096203, 0.004641872952715348, 0, 0, -0.001232876227576032, 0, 0, 0, 0, 0.05206643187070074, 0, 0, -0.006966526173996213, 0, 0, 0, 0.006788599608527733, 0.03295161256656724, 0, 0, -0.004321213678543653, 0, 0, 0, 0, 0, 0, 0, -0.0006316326352561491, 0, 0.002209029311105294, 0, -0.003906258731861617, 0.01822784905785241, -0.007781793914963634, 0.00369127410676005, 0, 0, 0, 0, 0, 0, 0.01084750316615975, 0.003076691807563753, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.007433185431032323, 0, 0.09732001192850437, 0, 0, -0.006489873411550759, -0.000821510986801417, 0, 0.0009016305409923756, 0, 0, 0, 0, 0, 0, 0, -0.003277781054332973, 0, -0.005230433240534993, 0, -2.334684902255853e-05, 0, 0.01667959184008616, 0.030891978624975, -0.009702818552789287, -0.003268921953000008, 0.07275386856216502, 0, 0.005896393694908028, 0.09662770584410534, 0.006870360776745228, 0, -0.006516009201959305, 0, -3.323295954872068e-05, 0, 0.0004376897450590875, -0.016185990647663, 0.005314203577559586, 0, 0, 0, 0.04228330137429515, 0, 0, 0, 0.002856957752237062, 0, -0.006992031300023761, 0, -0.007689462879424449, 0, -0.004894108778840038, 0.04066674455775433, -0.006377224181098736, 0.06636328184817226, 0, 0, 0, 0, 0, 0, -0.002448863010868009, 0, -0.001599676199583939, 0, -0.001839682430886059, 0, 0.008702810373211153, 0.008430332565516271, 0.01224326320954283, -0.001859631967022486, 0, 0, 0.006273614761263048, 0, 0, 0, 0.004420039017319769, 0, 0.001293534889321958, 0, 0.02950345370374422, -0.009660460245099391, 0.02369356196464931, -0.001158431984081868, 0.009349389068681473, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.01033229094404197, -0.007187343747184476, -0.007599668941868871, 0.001046029595139935, 0, -0.002073750565693754, 0, 0.01099245434817203, 0, -0.004632214597172815, -0.00297160298904751, -0.001383886818924526, 0, -0.002361190901371866, 0, 0.005535010356095894, 0, -0.01322741423698182, -0.002775568834658869, 0.01131382384954872, 0, -0.007914126374622217, 0, -0.008210417918465872, 0, 0.001797586256526629, 0, -0.01802573556610242, 0, -0.005298017858824775, 0, -0.008726335545986813, -0.008859381936163979, 0.005372641593092777, 0.01071385500662267, -0.007928226701768163, 0, 0, 0, 0, 0, 0.004516165657551504, -0.006049952764731165, 0.0192234950573283, 0, -0.005696520755513532, 0.02659826875262265, 0.003420263338752106, 0, 0, 0, 0.02422158610017956, 0, 0, 0, 0, 0, 0.00126692067246405, 0, 0, 0, 0.0007217026943314586, 0, -0.002266889663467931, 0.000527517366002036, -0.002534949671624169, -0.003795174528153681, 0.004302276548359646, 0.00417587126416725, -0.01268481637109885, -0.005280610360802796, -0.01140100317411678, 0.01675387938496236, 0.04086789025096867, -0.008145068052945906, 0.006114168871778969, 0.00077910935731664, 0.01117549245296063, 0.0005327828844887133, -0.01676369662343859, 0.001517021075247556, -0.001040003671238676, -0.007437525517506317, -0.003805970678087701, -0.00677088288691832, -0.008383823598800712, -0.005926407144474803, 0.002916388412913377, -0.007793611684618585, -0.01499687262349923, -0.00837170672752739, 0.005644736538996646, 0, -0.007805469452170886, 0.04114703210503323, -0.009413073655501647, 0.00264157826850697, 0.006811901388331594, -0.007850015890872459, 0.006267517621904849, 0, 0, 0, 0, 0, -0.01002221384787358, -0.001878559000076426, -0.001571213557730054, 0, 0, 0, 0, -0.002083858638354818, 0.001275122653329691, -0.00298423046224213, 0.007948801114930267, 0, 0, 0, 0, 0, 0, 0.001703906597396959, 0.01259645896916223, 0, 0, 0, 0, 0.03371445805168941, -0.001185444138199443, -0.005124136415977224, -0.002269766091428051, 0, -0.003115138555538167, 0, 0.0002734064426249876, 0.004451898118968756, -0.006610624869245027, 0.01146197259215778, 0.008207522836697762, 0, -0.01252261687479132, 0, 0, 0.02224446463457334, -0.007450223305193149, 0, -0.002956108328539124, 0, 0.005493097638456914, 0, 0, -0.01117800929023734, -0.005940270996419188, 0, -0.009309274010778306, 0, -0.01121189428501243, 0, 0.007270105812932515, 0, 0.001794995781352121, 0, -0.002881837710680872, 0, -0.00175626470189178, 0, 0.02789932855041816, 0, -0.001254060475956491, 0, 0.0003838824129692717, 0, 0.002700351630090569, 0, -0.004932940466300367, 0, 0.002454226355227466, 0, -0.006817443839065618, 0, 0.01105467749302552, 0, 0.01258289305241422, 0, 0.005684877145427304, 0, 0.004658453264072202, 0, -0.02276857481217035, 0, 0.004522300012710081, 0.0008425763829553446, 0, 0.002408208215270238, 0, 0.003974681148615804, 0, 0, 0, -0.00124829809341042, 0.02601956538434454, -0.01009978674854628, 0, -0.01518993399347249, 0, -0.0005417341493214053, 0, 0.02703082630014987, 0, -0.005929548050357011, 0, 0.01170565302244698, 0, 0, 0, 0.009499910399089498, 0, 0.003443180560358982, 0, 0.03899070964790601, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.001177194100092369, 0.002197621475938342, -0.003738951144040578, 0, 0.06761161842455489, 0, -0.001413081831667368, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004615713640272379, 0, 0.004864661537091734, 0, -0.002598625338326503, 0, -0.004341071208617991, 0, 0.0007082202227046739, -0.01417198056324468, 0, 0, 0, 0, 0, 0, -0.002233204528853981, -0.0004139872216927391, 0.01979641445754554, 0, 0, 0, 0, 0, -0.002178288671951388, 0, -0.00360473464751448, 0, 0.005053944700215062, 0, 0, 0, 0.002122122180820853, -0.007506233446806798, -0.01335053935450701, 0, -0.005379359259597945, 0, -0.0004761339373366446, 0, 0.003036568089877086, 0, -0.002159168798767843, 0, -0.006397598535431919, 0.002462250454737061, 0, 0, -0.0007918339682017969, -0.00747074017029643, 0.03613803344024129, 0, 0.00141681661514044, -0.0005350297286611192, 0, -0.001184656097336426, 0.0007980781893843416, -0.01629166360527857, -0.0002549510143050871, 0, -0.002119026697857936, 0.0007696998857344751, -0.003092788850768577, -0.001970819641649676, 0.00198267359326956, -0.006528310010020534, 0.05276177036643386, 0, -0.0003863112444145576, 0.002799631501597771, -0.0004585310810119515, 0, -0.003436931006256012, -0.001880055642781857, 0.03931679760609862, 0.00207680679730032, -0.01608453850866252, 0.006177269964816359, 0, 0.004155976758090527, -0.008203301672499668, 7.89624474734734e-05, -0.009091765287648202, 0.009506992461471344, -0.008745540885302742, 0.003336443982337911, 0, 0.004891915602822441, 0, 0, 0, 0, -0.02901723113755253, 0.01377392164587125, 0, 0, 0, 0, 0, 0, 0.004189553403655831, -0.0009198607687909613, 0, -0.008800524472416962, 0.0007477070656349182, 0.0138133903052463, -0.005912442929395006, -0.005368369746916586, -0.0008132228493616045, -0.01170808838238346, -0.001728136193868294, 0, -0.002738385514239566, 0.002586904335229321, 0.005527382910955883, -0.003968764892065669, -0.008492087951499474, -0.002880444593632151, -0.008360550051275346, -0.0009289996874247378, 0.004891720359176894, 0.004942331617833064, -0.009186322270972859, 0.01193260467970703, -0.01284207922655834, -0.002735258252103402, 0, -0.002480936486017504, 0.006092020715453159, -0.009081414635937958, -0.01483079523810853, 0.00322573154796649, -0.01337992039046931, -0.0008211533919189933, 0.009915519969014479, 0.004262051857374169, -0.006519586679048669, 0, -0.001127439979654628, -0.002417485798184351, 0, 0, 0, 0, 0.004765260126636051, 0, 0.03932018670902827, 0.04753753344254798, -0.0005372979603245312, -0.005862006702254967, -0.0005733088667826958, 0.003664515811356012, -0.008420020702699777, 0, -0.003859880487842085, 0.003816000064491417, 0, 0, 0, 0, -0.0006419674658671908, 0, -0.02011266763831634, 0.03841717796147258, 0.02145587480367529, 0, 0.001925676050311349, -0.007280202882629585, 0, 0, -0.0006407812599111966, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002655541373673015, -0.003236077560222469, -0.001415994749800743, 0.01414876397674743, 0, 0, -0.003357723086404019, 0.003451453831730515, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.004834488764318794, 0, -0.000649587430288665, 0.001077810862839724, 0.005798390928744019, -0.003420055346174706, -0.00977233842052971, 0.0009085490175898029, 0, 0.001268016052802764, -0.01005377673547363, -0.001856233393903322, 0.03246167031016051, -0.0058344375144712, -0.002341716809590147, 0.003562496750569594, 0, 0.01261561634395496, -0.006365779933418836, -0.0003390004264884097, -0.001645150670912731, -0.003596299577269803, -0.01418453604877385, 0.005461785519242847, 0, 0, -0.0007057914691763191, 0.0007260677058429372, 0, -0.009896463286649984, -0.008367117275452961, -0.005707163502343657, 0, 0.01979329622098861, -0.001778446722347536, 0.001576838212596189, 0, -0.01190640980002457, -0.0004514969114598992, 0.001800839165156762, 0, 0.002327598870655146, -0.005076946147572659, 0.00582526834986082, 0, 0, 0.003340497563803794, -0.002860466736855253, 0, 0.007086956874265312, 0.02583719934066403, 0.00254818672368436, 0, -2.785195404866421e-05, 0, 0.01713202940723876, 0, 0.003595286904269788, -0.001680688760924203, -0.005253073562903502, 0, -0.01081673412265356, -0.006149780945842423, -0.01189845578887982, 0, 0, 0, 0.00144580774246254, -0.006888315703386255, -0.002036765507886379, 0, -0.001717011677129853, -0.002416602298772847, -0.0007846538918684904, 0, 0.01802989916708417, -0.002267182912939588, -0.0007106579902153677, 0, -0.001608776183287672, 0.01324732702175739, 0.006722458027226863, 0, -0.005711035880326279, 0, 0.01101753622188988, 0, 0.01008548666656309, -0.01875901981605288, 0.008680745365905417, 0, 0, 0, 0, 0, -0.0113679978126718, -0.0007958558244987248, -0.01031906953379618, -0.001981992694753275, 0.002226838976410632, -0.005259296160203421, -4.108337312730977e-05, 0.01110704169108917, -0.005510461213624759, -0.004599803442791042, 0.005564226391006013, 0, 0.01477565262190105, -0.008758703119366424, 0.004090543373581325, 0, -0.001946440683938637, -0.004179704633185196, -0.001019196740294627, 0, -0.006620610622624007, -0.003885535891225653, -0.008092744687167423, 0, -0.005365153750766971, -0.00270999863953204, 0.02358261062736248, 0, 0, 0, 0, 0, -0.002285192751038402, -0.007117575670051689, -0.01232766448342375, -0.0003341775321481666, 0, 0.002356934022451013, 0, 0.002627904063348906, 0, -0.001614027693938054, 0, 0, 0, 0, 0, 0.002034389801264993, 0, 0.001773630831705176, 0, -0.002472580780816105, 0, -0.0006188588949580134, 0, 0.008418005933349243, 0.004516321830814956, -0.0006466613588203758, 0.01567428295178522, 0, 0, 0.008423149535952622, 0, -0.005537896997797264, -0.0001469527459028007, 0.00128345360039673, 0, 0, 0, 0, 0, -0.0007313399641059645, 0, -0.003587022157459245, 0, 0, 0, 0, 0, -0.003942508888188949, 0, -0.00671756904680176, 0, 0, 0, -0.001198313839797913, 0, 0.03313639836171998, 0, 0.002525281174674087, 0.007225695226896136, 0, 0, 0.02085168500556788, 0, -0.001725133937376072, 0, -0.003710163156462239, 0, -2.882306979392905e-05, -0.008840340185999234, 0.01024219447979495, -0.004930401259347526, -0.006336257367863711, 0, 0.001363241283987496, 0, -0.0001362738648771099, -0.01257142901958388, -0.001552308801101539, 0, -0.008898668970800964, 0, 0, 0, 0.0287313036792823, -0.00715429047871884, 0, 0, 0, 0, 0, 0, 0.001686325181308503, -0.00914341470329577, 0.002158413856034538, 0, 0, 0, 0, 0, -0.01356606425328256, 0, 0, 0, 0, 0, 0, 0, 0.03497281238054101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.001750091035647119, 0, 0, 0, 0, 0, 0, 0, -0.00833899733874174, 0.0003597655116193077, 0.007016154531836198, -0.00123643255121268, 0, 0.01903116048937517, 0, 0, 0.001437478765078566, -0.001400042597859968, 0.01088785520414561, -0.0002887918868625145, 0, -0.002488949628264815, 0, 0, -0.002569265729330937, -0.002666947570060249, 0, 0, 0, 0, 0, 0, -0.00726840434383713, 0.0241659502052364, 0, 0, -0.00332110542221703, -0.003921528142455406, 0, 0, 0, -0.004270025268621891, 0.006357136520265612, -0.006259558610432504, 0, 0, 0, 0, -0.004337383344948695, 0.001448668683583064, 0.009064191660367545, 0.002898151765618375, 0, 0.003881684061312062, 0, -0.01294678778151941, 0, -0.008359143556347395, 0, 0.0009808235090056872, 0.04419026938925198, 0, 0, 0, -0.0127668756252063, 0.005044528643021176, 0, -0.004078874836433299, -0.001189739358603529, 0.00330880756771256, 0, -0.007698494217423413, -0.001725111427812541, 0, 0, 0, 0, 0, -0.00954446058119998, 0, 5.049130832362155e-05, 0.01266973371588525, 0, 0, -0.0008610824848622114, 0, -0.0005105988414078843, 0, 0, 0, 0, 0, 0.002432831430493304, 0, 0.02130681477465009, 0, -0.01468038158756479, 0, 0, 0, -0.001430667328265194, 0, -0.004419700040505479, 0.009483546732933994, 0.01978173759029336, 0, -0.002015094255606966, 0, 0, 0, 0, 0, 6.366680547170786e-05, -0.0004112288299529529, 0.04185219872909039, 0, -0.001839165935000485, 0, -0.007108198494370649, 0, 0, 0, 0, 0, 0, 0, 0.0128909098423757, 0, 0, 0, 0, 0, -0.001614524668354511, 0, -0.001010272969642779, 0, 0.001413719447510995, 0.004751833843638695, 0.001313793010005915, 0.0002773174819771473, 0, 0, 0, 0, -0.01538215993244164, -0.001811808821310886, 0.001564441477073216, -0.00073417920675308, 0, 0, 0, 0, -0.004267364424007767, 0.003066742239883457, 0.005759722493614132, -0.003034823224738566, 0, 0, 0, 0, -0.0166641368118317, 0.05179552019099695, -0.007232574699234405, 0.0007212122993372308, 0, 0, 0, 0, -0.006304942411102714, -0.0009205927880105677, -0.005573628773923337, -0.002819479638492943, -1.928710344308788e-05, -0.0006618894988711732, 0.01133539923226573, 0.00458174729249652, 0.009051748594843353, -0.0004143779508366861, -0.001799954669535612, 0.002688707844776018, 0.01215331560054345, -0.01363113126007854, 0.03577091990467188, -0.004616038270617801, -0.004548332188562191, 0.005800679496140143, -0.004336825215151915, 0.001375792889004648, -0.003232260899274965, 0.007215689750060041, 0.003765752462791202, -0.01374873478244614, 0.0283693508400993, 0.007790534392359536, -0.004176866207106717, 0, 0, -0.003590814535215166, 0, 0, 0.007712177561303588, 0.004658813867975723, 0, 0, 0.003557399374690188, 0, 0, 0, 0.007130442330222466, -0.007895219243215307, 0, 0, 0.03289739152535191, 0, 0, -0.007204186454902795, 0.004782292775409107, -0.001155831056293473, 0, 0, -0.005270111378991518, 0.02805235351119512, 0, -0.008387982736450469, 0.0004314053372997581, -0.009707191312727615, 0.02362033205035392, 0, -0.0002384965866926278, -0.00939000113265419, -0.0007410785044227704, -0.01218842555308583, 0.003992714503420977, -0.004304508514187587, 0, 0, 0.002849145933975315, 0, 0, 0, -3.611069715285153e-05, -0.001111251685001905, 0, 0, 0.00547271371868726, -0.001195237635243299, 0, 0, -0.00331778380644569, -0.001341608886442737, 0, 0, -0.009315421546020202, 0, 0, 0.001879442002142324, -0.004942635778845518, 0.00171882168861144, 0.0203156934154258, 0.009121080072022385, 0.002246847443140535, -0.0005361572000861885, 0.01155669165606157, -0.009626795354304836, -0.0002601353391901144, -0.008032177731987391, 0.005539670950967394, -0.004143159973277316, -0.002967544462277945, 0.02861031790043842, 0.0001945131651728269, -9.269367257699312e-05, -0.0007553570617151146, 0, -0.001613740462189984, 0, 0.009964433228540247, 0, -0.0047107579508887, -0.002541340061554663, -0.005599930095332994, -0.007501060498578672, -0.008025313202598611, 0, -0.003026589957880636, 0.005698437314104208, 0.002041607267156333, 0.002585827738774831, 0.00684362169127563, 0, 0.001909902942932213, -0.007630891383431389, 0.003850190264516804, 0, -0.00245138110677884, 0.01593767824059439, 0, 0, 0, 0, 0, 0, -0.00354065071434987, 0.01566065512421712, 0, 0, 0, 0, 0, 0, 0.002199701640094146, -0.002188107635406581, 0, 0, 0, 0, 0, 0, 0.03451007331324229, 0, -0.00490689580914813, 0.01766780513554095, 0, 0, 0.001512439046726563, -0.001825098653789209, -0.0005931838293132388, -0.005157040072186576, 6.426277619093477e-05, 0, -0.001053295396698586, 0.00791380502922337, 0.0005572520806985627, 0, -0.01346640850622293, 0.008101327343203509, -0.004004243877249658, 0, 0.00306316892786278, 0, 0.02130978596680305, 0, -0.005771656277276187, 0, -0.0138094111776746, 0, 0, 0, 0.02403559749070115, 0, 0, 0, -0.007439958927368553, 0, 0, 0, 0, 0, 0, 0, -3.498454990553957e-05, 0, -0.006298561674139992, 0, -0.0001156497182768396, 0, 0, 0, 0.008960153715300803, 0, 0.003232462183187687, 0, 0, 0, 0, 0, 0.007003649553629167, 0, -0.006388788944325855, 0, 0.0003260134544410754, 0, 0, 0, -0.004401136908448783, 0, 0, 0, 0, 0, 0, 0, 0, -0.007468746764876354, 0, 0.0003351050199188818, 0, -0.00638944493732296, 0, 0.002130180133394121, 0, -0.003794535013882342, 0, 0.001253569330085425, 0, 0.01821343246937834, 0, -0.007538205084731804, 0, -0.001752637503362958, -0.004604875481238277, 0.0008674830719780078, 0, 0.002092116041797376, 0, -0.003707124202399564, 0, -0.0001439664007336834, 0, 0.01778113443047632, 0, 0.002342171332183897, 0, 0.002379560561952122, 0, -0.01116478430331294, 0, -0.001968226746205869, 0, 0, 0, 0.02518558177547209, 0, -0.002362237310972251, 0, 0.001091567784160315, 0, 0.004140784782122374, 0, -4.71196184252804e-07, 0, -0.0008175801365521834, 0, -0.01134486964097154, 0, -0.01079323652592306, 0, -0.007469012940402369, 0, -0.0110228441565101, 0.01182741387367938, 0.004025666667684384, 0, 0, 0, 0.0002276349551944205, -0.008732362933184646, 0, 0, 0, 0.0002902448270457388, 0, 0, 0, -0.001593958931154713, 0, 7.458892425533448e-05, 0, 0.0001624390686383372, 0.02212232631464971, -0.008817154382776077, -0.01228384459161924, 0, 0, 0, -0.007059238623060285, -0.007518528175023706, 0, 0.01010691468931285, 0.01039519687514465, -0.002362882837612092, -0.000806647433439807, 0.0005699612407259796, -0.00475481231183098, -0.002400173914475628, 0.03130885710814432, 0.001126294158892378, 0.0009203706966530442, 0, 0, 0, 0, -4.833650121306244e-05, 0, 0, 0, -0.007707060184955791, 0.001536347829489788, 0, 0, -0.001195263603377008, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02124656744689655, 0, 0, 0, 0.001005199683833882, 0.002378035702359351, 0, 0, -0.006957336822733496, 0.005907671209316037, 0, 0, 0, 0, 0, 0, 0.0008477092446434622, -0.004237509980262018, 0.0186146935465747, 5.991270146717054e-05, -0.0007863149970890873, -0.00010593576188641, 0, -0.000485384063887367, 0, 0.0289568863966818, 0, 0.0009868884078362058, 0, 0, 0, 0, -0.01257588799119105, 0.0007205764878100086, 0, -0.001012432400738649, -0.002305237155792446, 0.004169314076856803, 0, 0, 0.003008650588714366, 0, 0, 0, 0, 0, 0, 0, -0.004487513651467192, 0.02312311134611146, 0, 0, 0.0004508549730984344, -0.001715035859191854, 0, 3.731125807723225e-05, 0, 0, 0, 0, 0, 0, 0, 0, -0.005998714136472598, 0.003153553926814504, 0, 0.000971000752150799, 0.0001257730234203951, 0, -0.005998997894691992, 0, 0.0004567970005242645, 0, -0.000194201407038784, 0, -0.006492881338481158, 0, 0, 0, 0.004107529069339337, 0, 0, 0, 0.001356326521594529, 0.007035516014978383, 0.004838611624248375, 0.0004452612152863048, -0.01139214943932402, 0.02254760811869375, -0.009721221545397113, -0.004409346286175638, 0, 0, 0, 0, 0.01893099953866985, 0, 0, 0, 0.001430804090144947, 0, -0.001724440856717321, 0, -0.000980358423217427, 0, -0.0115672759223646, 0, -0.008127120238271569, 0, 0, 0, 0.005049390172673433, 0, 0.005692238305356361, 0, -0.01149617972157024, 0, 0.00151810000007299, -0.0009953135724501347, -0.006209248133282681, 0, 0, 0.01500811908427421, 0, 0, 0, 0.002307075159195328, 0, 0, 0, 0, 6.806071117309631e-05, 0, 0, 0, -0.001016047567698612, 0, 0, 0, -0.01701526858562624, 0, 0.02558693385867629, 0.003846804176346546, 0.008020553450149095, 0, -0.001802907781160725, -0.01079246059061763, -0.01390630575442788, 0, 0, 0, 0.006837121810751317, 0, 0, 0, -0.01086009736563739, 0, 0.01433663526237206, 0, 0, 0, 0, 0, 0.01291057394889696, 0, 0, 0, 0.0006180469986989157, 0, 0, 0, 0, 0, 0, 0, -0.0007738011510673988, 0, 0.004031051215267387, -0.004896749197145166, -0.001489287449101218, 0, 0, 0, 0.001551170557854442, 0, 0, 0, 0, 0, 0, 0, -0.01141970879160927, 0, 0.008628092591820808, 0, 0.001126218605304539, 0, 0.02016498070162265, -0.003092008597246964, 0, 0, -0.000517003713890498, -0.0003914335697334931, -0.0001440370248138673, 0, -0.013670168916573, 0.001556309664740588, -0.007568652105128563, 0, -0.004421682735892658, 0.004639149742664597, -0.001590854437451202, 0, 0.0043745244952328, -0.001935581372121101, 0.010299902966338, 0, 0.003148613022866638, -0.004740457672219808, -0.007972785612895172, 0, 0.002336000234194641, 0.00293227564110007, -0.003211738660437819, 0, -0.00794765274044616, -0.00222639422820582, 0.003245669470591114, 0, -0.005975529440151903, -0.0068626921097712, -0.003132569355364862, 0, 0.00272824717145368, 0.0002246468471952025, -0.008010754082007819, 0, -0.009866340280826219, -0.0002562873797048795, -0.002834980615258248, 0, 0.001467874914260032, 0.003067304539378215, -0.004744704208284056, 0, 0.004149746880943716, -0.006271130333408623, 0.01738582596173823, 0, -1.164045429277443e-05, 0.004675097165856939, 0.006557644974532456, 0, 0.008713262618591138, -0.002070787156176882, 0.001507251848941074, 0, -0.000237952794471403, -0.0001236747799720155, 0.006434111949914737, -0.004622922407263938, 0, 0.001190019379212154, -0.007512841085398453, 0.003784805331020962, 0, -0.006120610757383083, 0, -0.002383583685779329, 0, -0.00329688893431917, -0.005694900759515568, -0.003914956197215805, 0, -0.000326405797146243, -0.008082791056511746, -0.003837763995919439, 0, 0.001323099560808065, 0.0006020809422659129, 0.009778649045643857, 0, -0.0007933097001797593, 0.01711201503420096, -0.001436035332414139, 0, 0.01026069237299034, -0.00370245860304249, -0.003283917338843471, 0, -0.001796595689620441, 0, -0.002900690968876481, 0, 0.01178948264817988, 0.009207173079810473, -0.0006611422564243819, 0, -0.004909509630911322, -0.004947893703929581, 0.01797809682195921, 0, 0.008663223665884399, -0.006438895448720918, 0.01491436872249691, 0, 0.009982633756021472, -0.0084738981186407, -0.006444518003298808, 0, 0.003613325673000373, -0.003609795348444116, 0.009488600341575266, 0, -0.0006037221500529269, -0.005146833413561202, -0.004123072030895489, 0, -0.002502878021072579, 0.007102521924209803, -0.006137331387839083, 0, 0.003000423291863974, -0.0003716806318731357, -0.009147213741804511, 0.003393429600422219, -0.00159855758954746, -0.003230952235450017, 0.02363482282849876, 0, -0.001876286655321569, -0.00307003544747985, 0.001581491262596342, 0.001554300540215755, -0.0005991541455636257, -0.0005064617499824666, -0.0001458050098129941, 0.01389328363834484, 0.001131416464432976, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00269437525770383, 0.000955212410004915, 0.005388523946922758, -0.007222489623611219, 0.01521856695344321, 0.02862999331260521, 0.0007507232452434407, -0.0003721496971993855, 0, 0, 0, 0, 0, 0, 0, 0, -0.0006581258952861653, -0.003898566164443519, -0.005504645488404245, 0.004016475995727442, -0.006932143371149152, -0.002706394840185011, 0.02603807786094646, -0.006457077278412474, 0.0008333858112814772, 0, 0.003322231215794787, 0, 0.007030691782148221, 0, 0.0006674628364834567, 0, -0.0009490579320315346, 0, -0.005866820130288414, 0, -0.003222285416630529, 0, 0.002669135285761115, 0, 0.009601590900597482, 0, 0, 0, -0.01467775069959415, 0, -0.0005163565926599732, 0, 0.01765851383475853, -0.0004673994813533929, -0.01244352977112377, 0.005867672282405119, 0.007443411055672763, 0, -0.002986700525482147, 0.004661429040999812, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0003729558140413504, 0.001159843574114646, -0.001206682903343299, 0.0142159845489957, -0.00555105580993312, 0, -0.006716175441539823, 0, -0.0002366130338200353, 0.001491461841280922, -0.01188605580053989, 0, -0.003550940561238971, 0, 0.01740745201716997, 0, -0.0005206229533172776, -0.007389787726235744, 0.00571174439246964, -0.001413902148439728, -0.001540908561638005, -0.004050829196045627, -0.0007900817585849532, -0.004096596225019023, 0, 0, 0, 0, 0, 0, 0, 0, 0.007808117309308044, -0.002389152434264638, -0.003126186787337136, 0, -0.002369428520866114, -0.001151142525467415, -0.002727314198337178, 0.003494877300399567, 0, 0, 0, 0, 0, 0, 0, 0, -0.002605894910530867, 0.01426748309209886, -0.003833921355499409, 0.01906455445173979, 0, 0, -0.007073242335998765, -0.003412146996453673, 0.0003580713315009965, -0.006366007085742838, -0.003542709926184133, 0.008908452508420485, 0.0006275045869376188, -0.0005916902853405298, 0.006850665927795104, -0.002363867292964954, 0.02717027862956679, -0.01324778956019031, 0.02393728647898445, 0.01184217416546364, -0.0009349039834501818, -0.007081358508085917, 0.002628411433231996, 0, -0.006274938056162171, -0.001843618347049134, 0.01642945355608477, 0, -0.000438734069903705, 0.0003669912116903268, 0.001584737256219857, 0, 0.0009035942318894242, 0, -0.007731411378679106, 0, -0.0009420968597672351, 0, 0.00716997484554133, 0, -0.004468927511204036, 0, -0.001578808799589982, 0, 0, 0, 0, 0, 0.006509804567358965, 0, -0.001524354104739426, 0.0009434082277321563, -0.008668971860839989, 0, -0.001565944129273947, 0, -0.002331377573980632, 0, -0.00156206282546401, 0, 0, 0, 0.0278606177866006, 0, -0.005650582956621558, 0, 0.03120680087019912, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.005717228746906962, 0, -0.002885205776921137, -0.000516937712554633, 0, 0, 0.002738605394545225, 0.00633501787859803, 0.00321645116213338, 0, -0.0004008998629149539, 0.006900077270706165, 0, 0, 0.01050503658941557, 0, 0, 0, 0, 0, 0, 0, 0, 0.01212698195395298, 0.01694183428317643, 0, 0, 0, 0, 0, 0.003033543381740902, -0.008051167983832336, -0.002148721568378247, 0, 0, 0, 0, 0, -0.01348866553208747, 0.002383715398289006, 0.002023657883634585, 0, 0, 0, 0, 0, -0.004694187903310705, 0.0005309122258515087, 0, 0, 0, 0, 0, 0, 0, 0, 0.00584344319988623, 0, 0, 0, 0, 0, -0.01316397428112242, 0.002732271895744454, 0.0004121489571974119, 0, 0, 0, 0, 0, -0.007599238608812724, -0.0001604977494409007, -0.0004288108966699379, 0, 0, 0, 0.0251605207750177, 0, -0.006301350685921673, 5.285876568801811e-05, 0, 0, -0.005781391942185314, 0, -0.003303524206408698, 0, -0.009584093460265739, 0, 0, 0, 0.005151337751185255, 0, 0.008766051554230282, 0, 0.003059388820613836, 0, 0.02005053204515015, 0, 0, 0, 0.004240594506279695, 0, -0.006809769055794543, 0, 0, 0, 0, 0, -0.0003037153551994478, 0, -0.003167208954064623, 0, 0, 0, -0.008662060686102606, 0, 0.003451393935389406, 0, 0.005570804897147878, 0, 0, 0, -0.002854141286807793, 0, 0.007478329689000058, 0, -0.0001157983845928881, 8.448946638262499e-05, 0, 0, 0, 0, 0.003603790406370605, 0, 0.0009097880107919778, 0, 0, 0, -0.003047353645013298, 0, -2.886701326251023e-05, 0, 9.541927321861329e-05, 0.00774898944331678, 0.01630901693668716, 0, 0, 0, 0.0008493408967284018, 0, 0.008007254966244541, 0, 0.00638947239058216, 0, 0, 0, 0.0004086289046566216, 0.005915396695794608, -0.007644844709016225, 0, -0.0020483493037432, 0, 0.02334623039528641, 0, -0.002963312755350968, 0, 0.001334662399364233, 0, -0.0007896565870777275, 0, 0.003567698530639925, 0, 0.0004419253061240559, 0.002020884061689238, -0.003405090476810642, 0, -3.107400690391909e-05, 0, 0, 0, -0.008848577783466793, 0, 0.002430605805834032, 0, -0.008162389198315927, 0, 0, 0, 0.001834579472200669, 0, 0, 0, -0.009079916491195942, 0, 0.01171764004582317, 0, 0.002040818335766045, 0, -0.001483609434343343, 0, -0.007521377282591571, 0, -0.001424617639326989, 0, -0.004473173043090052, 0, 0.005795257952119029, 0, -3.091180632599988e-05, 0.000283968794228894, 0.003580140541915714, -0.005130787961160182, -0.003589514318363054, 0.01757307091957987, 0.001911740236477573, -0.003084485554528056, 0, 0, -0.001558274565991026, -0.004388733782783085, 0, 0, 0.009090347942013861, -0.008538533820557781, 0.001315161538127572, 0.006204452785369888, -0.004397227854226076, -0.01495705269674054, 0, 0, 0.01721502888426632, 0.005916958189823338, 0, 0, 0.002229895700517362, -0.003759709622810227, 0, 0, -0.008808490208197874, 0.0008552410189744743, 0.00154580629232903, -0.001700593197007501, -0.001842745983030029, 0.003994462857484092, -0.002264180657569243, 0.01304125979042078, 0, -0.006652139724974812, 0, 0, 0.001095193671274753, -0.0002493820967402591, 0, 0, -0.009383861319603965, -0.0004357794930232231, -0.00597716028509146, 0.0008705095891339598, -0.004192470155566111, -0.0008853220262082244, 0, 0.002057423181567856, 0, 0.001671880774940797, 0, 0, -0.0009776117403414166, -0.001759638538139495, 0, 0, 0.008938850209649813, 0.001634556590349951, -0.0004698049349426934, 0.01153696629503784, 9.038149644943767e-05, -0.005949048129154037, 0.01703580578494586, 0, 0, 0, 0.005408925424404415, 6.409388394209269e-06, 0.0008933812203781565, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.008272974278283532, 0.002067779125116028, 0.004295358760507847, 0.0001066198706846939, 0.0001019123460597512, 0, -0.006014875229771914, 0, -0.003547874232213407, 0, -5.296988096453445e-06, 0.0009276201883237631, 0, 0, -0.009634101962925776, 0, 0.000235389479181564, 0, -0.0002866474767635955, 0, 0, 0, 0.001835090715255629, 0, 0.01757390831741953, 0, -0.001069657800969774, 0, 0, 0, -0.002339334448906032, 0, -0.0004839894924010943, -0.001867532366196057, 0, 0, 0.001738643444075898, 0.005377487266275471, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.002748272755798261, 0.002595239780007262, 0, 0, -0.0001418462882295295, 0.02229442230453981, 0, 0, -0.001995540941819327, 0.000445743324936112, 0, 0, 0, -0.008830282191130729, 0, 0, 0.0001564274714546383, 0.006102919775881276, -0.005676531345791757, 0, -0.0006993343315798668, 0.005076547134070009, 0.005989930194543225, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.004068345711333085, -0.006948242587641357, 0, 0, -0.01017012505841051, 0.01010449312627406, 0, 0, -0.006196028033325935, -0.00099568292557525, 0, 0.01562187972351308, 0, 0.001418969537149321, 0, 0, 0, -0.0007031474788144405, 0, 0.0005447611253861456, 0, -0.00314880788541437, 0, -0.002255281158319075, -0.005541068280287664, 0.00107959792698606, -1.579335866601879e-05, -0.001629093559384154, 0, -0.001839189970067733, 0, 0.004206100141319774, 0, -0.0048079435507011, 0, -0.005490863460335312, 0, -0.005501361744136286, 0, 0.002927194013940577, 0, 0.00190880459565371, 0, -0.008980166468561158, -0.005105365057309028, -0.008767530934527685, 0, 0.01937541126211955, 0, 0.001390124860092424, 0.001924338259124036, -0.002530326311729387, 0, -0.003640942735772867, 0, -0.007902581862801567, -0.007984121476397429, 0.0002658338340561725, -0.003193877285811589, 0.001371176911079293, 0, 0.0007700019506418588, 0, 0.01193419567179719, 0, -0.003857117752852003, 0, 0.01461267569869293, 0, 0.003554378068678606, 0, -0.0006163488209701966, 0, 0.001194383006065124, 0, -0.00928588435454002, 0, -0.004737440862932004, 0.007471919429696474, 0.007080388378003371 ] scale = 1 bias = 0.06050201133 cat_features_hashes = { } def hash_uint64(string): return cat_features_hashes.get(str(string), 0x7fFFffFF) ### Applicator for the CatBoost model def apply_catboost_model(float_features, cat_features=[], ntree_start=0, ntree_end=catboost_model.tree_count): """ Applies the model built by CatBoost. Parameters ---------- float_features : list of float features cat_features : list of categorical features You need to pass float and categorical features separately in the same order they appeared in train dataset. For example if you had features f1,f2,f3,f4, where f2 and f4 were considered categorical, you need to pass here float_features=f1,f3, cat_features=f2,f4 Returns ------- prediction : formula value for the model and the features """ if ntree_end == 0: ntree_end = catboost_model.tree_count else: ntree_end = min(ntree_end, catboost_model.tree_count) model = catboost_model assert len(float_features) >= model.float_feature_count assert len(cat_features) >= model.cat_feature_count # Binarise features binary_features = [0] * model.binary_feature_count binary_feature_index = 0 for i in range(len(model.float_feature_borders)): for border in model.float_feature_borders[i]: binary_features[binary_feature_index] += 1 if (float_features[model.float_features_index[i]] > border) else 0 binary_feature_index += 1 transposed_hash = [0] * model.cat_feature_count for i in range(model.cat_feature_count): transposed_hash[i] = hash_uint64(cat_features[i]) if len(model.one_hot_cat_feature_index) > 0: cat_feature_packed_indexes = {} for i in range(model.cat_feature_count): cat_feature_packed_indexes[model.cat_features_index[i]] = i for i in range(len(model.one_hot_cat_feature_index)): cat_idx = cat_feature_packed_indexes[model.one_hot_cat_feature_index[i]] hash = transposed_hash[cat_idx] for border_idx in range(len(model.one_hot_hash_values[i])): binary_features[binary_feature_index] |= (1 if hash == model.one_hot_hash_values[i][border_idx] else 0) * (border_idx + 1) binary_feature_index += 1 if hasattr(model, 'model_ctrs') and model.model_ctrs.used_model_ctrs_count > 0: ctrs = [0.] * model.model_ctrs.used_model_ctrs_count; calc_ctrs(model.model_ctrs, binary_features, transposed_hash, ctrs) for i in range(len(model.ctr_feature_borders)): for border in model.ctr_feature_borders[i]: binary_features[binary_feature_index] += 1 if ctrs[i] > border else 0 binary_feature_index += 1 # Extract and sum values from trees result = 0. tree_splits_index = 0 current_tree_leaf_values_index = 0 for tree_id in range(ntree_start, ntree_end): current_tree_depth = model.tree_depth[tree_id] index = 0 for depth in range(current_tree_depth): border_val = model.tree_split_border[tree_splits_index + depth] feature_index = model.tree_split_feature_index[tree_splits_index + depth] xor_mask = model.tree_split_xor_mask[tree_splits_index + depth] index |= ((binary_features[feature_index] ^ xor_mask) >= border_val) << depth result += model.leaf_values[current_tree_leaf_values_index + index] tree_splits_index += current_tree_depth current_tree_leaf_values_index += (1 << current_tree_depth) return model.scale * result + model.bias
# Based on: https://articles.leetcode.com/longest-palindromic-substring-part-ii/ def _process(s): alt_chars = ['$', '#'] for char in s: alt_chars.extend([char, '#']) alt_chars += ['@'] return alt_chars def _run_manacher(alt_chars): palin_table = [0] * len(alt_chars) center, right = 0, 0 for i in range(len(alt_chars) - 1): opposite = center * 2 - i if right > i: palin_table[i] = min(right - i, palin_table[opposite]) while alt_chars[i + (1 + palin_table[i])] == alt_chars[i - (1 + palin_table[i])]: palin_table[i] += 1 if i + palin_table[i] > right: center, right = i, i + palin_table[i] return palin_table def longest_palindrome(s): alt_chars = _process(s) palin_table = _run_manacher(alt_chars) longest, center = 0, 0 for i in range(len(palin_table) - 1): if palin_table[i] > longest: longest, center = palin_table[i], i return s[(center - 1 - longest) // 2:(center - 1 + longest) // 2] def main(): print(longest_palindrome("blahblahblahracecarblah")) if __name__ == '__main__': main()
def get_majority_element(a, left, right): a.sort() if left == right: return -1 if left + 1 == right: return a[left] #write your code here mid = left + (right-left)//2 k=0 for i in range(len(a)): if a[i]==a[mid]: k+=1 if k > right/2 : return k return -1 n = int(input()) a = list(map(int, input().split())) if get_majority_element(a, 0, n) != -1: print(1) else: print(0)
n1 = int(input('Digite o começo de uma PA: ')) n2 = int(input('Agora digite a razão de uma PA: ')) contador = 0 while contador < 10: print(f'{n1 + (contador * n2)}', end=', ') contador += 1 print('Acabou')
def main(): points = [] with open("input.txt") as input_file: for wire in input_file: wire = [(x[0], int(x[1:])) for x in wire.split(",")] x, y = 0, 0 cost = 0 points_local = [(x, y, cost)] for direction, value in wire: if direction == "U": y += value elif direction == "D": y -= value elif direction == "R": x += value elif direction == "L": x -= value else: raise Exception("Invalid direction: " + direction) cost += value points_local.append((x, y, cost)) points.append(points_local) results = [] for i in range(len(points[0]) - 1): px1, py1 = points[0][i][0], points[0][i][1] px2, py2 = points[0][i + 1][0], points[0][i + 1][1] for j in range(len(points[1]) - 1): qx1, qy1 = points[1][j][0], points[1][j][1] qx2, qy2 = points[1][j + 1][0], points[1][j + 1][1] if px1 == px2 and qy1 == qy2: if px1 <= max(qx1, qx2) and px1 >= min(qx1, qx2) and px2 <= max(qx1, qx2) and px2 >= min(qx1, qx2): if max(py1, py2) >= qy1 and min(py1, py2) <= qy2: results.append(points[0][i][2] + points[1][j][2] + abs(px1 - qx1) + abs(qy1 - py1)) #print((px1, qy1)) elif py1 == py2 and qx1 == qx2: if qx1 <= max(px1, px2) and qx1 >= min(px1, px2) and qx2 <= max(px1, px2) and qx2 >= min(px1, px2): if max(qy1, qy2) >= py1 and min(qy1, qy2) <= py2: results.append(points[0][i][2] + points[1][j][2] + abs(qx1 - px1) + abs(py1 - qy1)) #print((qx1, py1)) print(results) if __name__ == "__main__": main()
class APIException(Exception): def __init__(self, message): super().__init__(message) self.message = message class UserException(Exception): def __init__(self, message): super().__init__(message) self.message = message
# Implemente um algoritmo em Python que receba a matricula, nome, teste e prova de um aluno e que calcule e exiba a matricula, nome, média e qual o seu conceito conforme discriminado abaixo: # Conceito A - media superior ou igual a 9 # Conceito B - media superior ou igual a 7 e inferior a 9 # Conceito C - media superior ou igual a 5 e inferior a 7 # Conceito D - media superior ou igual a 3 e inferior a 5 # Conceito E - media inferior a 3 # Dados: # matricula - ler # nome - ler # teste - ler # prova - ler # Processamento: # media - calcular # Conceito - Identificar # Informação: # matricula - exibir # nome - exibir # media - exibir # conceito - exibir matricula = input("Digite a matricula: ") nome = input("Digite o seu nome: ") teste = float(input("Digite a nota de teste: ")) prova = float(input("Digite a nota da prova: ")) media = (teste + prova) /2 if media >= 9: conceito = "A" elif media >= 7: conceito = "B" elif media >= 5: conceito = "C" elif media >= 3: conceito = "D" else: conceito = "E" print(matricula) print(nome) print(media) print(conceito)
class MyClass(object): def set_val(self,val): self.val = val def get_val(self): return self.val a = MyClass() b = MyClass() a.set_val(10) b.set_val(100) print(a.get_val()) print(b.get_val())
""" @Pedro Santana Abreu (https://linktr.ee/pedrosantanaabreu) @Icev (https://somosicev.com) PT-BR: Desenvolva um programa para efetuar o cálculo da quantidade de litros de combustível gasta em uma viagem, considerando um automóvel que faz 12 Km/l. Para obter o cálculo, o usuário deve fornecer o tempo gasto (variável TEMPO) e a velocidade média (variável VELOCIDADE) durante a viagem. Dessa forma, será possível obter a distância percorrida com a fórmula DISTÂNCIA = TEMPO * VELOCIDADE. A partir do valor da distância, basta calcular a quantidade de litros de combustível utilizada na viagem com a fórmula LITROS_USADOS = DISTÂNCIA / 12. O programa deve apresentar os valores da velocidade média, tempo gasto na viagem, a distância percorrida e a quantidade de litros utilizada na viagem. """ # Recebendo valores tempo = float(input("Digite o tempo gasto em horas | ")) velocidade = float(input("Digite a velocidade média em Km/h | ")) # Calculando distancia = tempo * velocidade litros_usados = distancia / 12 # Exibindo resultado print("""\nVelocidade média | {:.2f} Km/h Tempo gasto na viagem | {:.1f} Hrs Distância percorrida | {:.2f} Km Quantidade de litros utilizada na viagem | {:.1f} L""".format(velocidade, tempo, distancia, litros_usados))
""" Спортсмен поставил перед собой задачу пробежать в общей сложности Х километров. В первый день спортсмен пробежал Y километров, а затем он каждый день увеличивал пробег на 10% от предыдущего значения. Определите номер дня в который спортсмен достигнет своей цели. Оформите решение в виде программы, которая на вход принимает числа X и Y и выводит номер найденного дня. """ def days_to_goal(target_distance: int, daily_distance: int): """ Calculate days to goal """ result_days = 0 current_distance = 0 while current_distance < target_distance: current_distance += daily_distance daily_distance *= 1.1 result_days += 1 return result_days def main(): target_distance = int(input("Enter target distance (km): ")) daily_distance = int(input("Enter daily distance (km): ")) days = days_to_goal(target_distance, daily_distance) print("Days to goal: ", days) if __name__ == "__main__": main()
# ======================== # Information # ======================== # Direct Link: https://www.hackerrank.com/challenges/security-key-spaces/problem # Difficulty: Easy # Max Score: 10 # Language: Python # ======================== # Solution # ======================== num = (input()) e = int(input()) print(''.join([str((int(i)+e) % 10) for i in num]))
def reverse(S, start, stop): """Reverse elements in emplicit slice S[start:stop].""" if start < stop - 1: S[start], S[stop-1] = S[stop - 1], S[start] reverse(S, start+1, stop - 1) def reverse_iterative(S): """Reverse elements in S using tail recursion""" start,stop = 0,len(S) while start < stop - 1: S[start],S[stop-1] = S[stop - 1], S[start] start,stop = start+1, stop -1
def palindrome_num(): num = int(input("Enter a number:")) temp = num rev = 0 while(num>0): dig = num%10 rev = rev*10+dig num = num//10 if(temp == rev): print("The number is palindrome!") else: print("Not a palindrome!") palindrome_num()
# Not necessary. Just wanted to separate program from credentials def apikey(): return 'apikey' def stomp_username(): return 'stomp user' def stomp_password(): return 'stomp pass'
''' # Functional composition # • Lego is a popular toy because it’s so versatile # • Similar to how Lego pieces can be combined, in functional programming it’s common to combine functions def f(number): return number * 2 def g(number): return number + 1 x = 2 # print(f(2)) # detta ger --> 4 # print(g(2)) # detta ger --> 3 # skicka 2 till g(+1) --> 3 och vidare till f(*2) --> 6 y = f(g(x)) # skcika 2 till f(*2) --> 4 och vidare till g(+1) --> 5 z = g(f(x)) print(y, z) # Output: 6 5 ''' # Lambda # • Python supports anonymous functions with lambda # • Useful to define simple functions # lambda = anonymous function , parametern till lambda finns mellan "Lambda" och ":" # nedan skickas number till functionerna, och number uppdateras och returneras # obs att pylance ändrar från lambda... :D # f = lambda number: number * 2 # g = lambda number: number + 1 def f(number): return number * 2 def g(number): return number + 1 x = 2 y = f(g(x)) z = g(f(x)) print(y, z) # Output: 6 5
""" https://leetcode.com/problems/add-strings/ Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100. Both num1 and num2 contains only digits 0-9. Both num1 and num2 does not contain any leading zero. You must not use any built-in BigInteger library or convert the inputs to integer directly. """ # Pretty easy. # time complexity: O(n+m), space complexity: O(max(m,n)), where m and n are the lengths of the two strings respectively. class Solution: def addStrings(self, num1: str, num2: str) -> str: result = "" addone = 0 for i in range(max(len(num1),len(num2))): if i >= len(num1): number1 = 0 number2 = ord(num2[-1-i]) - ord('0') elif i >= len(num2): number1 = ord(num1[-1-i]) - ord('0') number2 = 0 else: number1 = ord(num1[-1-i]) - ord('0') number2 = ord(num2[-1-i]) - ord('0') r = number1 + number2 + addone if r > 9: addone = 1 r -= 10 else: addone = 0 result = str(r)+result if addone != 0: result = '1' + result return result
# Lists always stay in the same order, so you can get # information out very easily. List indexes act very similar # to string indexs intList = [1, 2, 3, 4, 5] # Get the first item print(intList[0]) # Get the last item print(intList[-1]) # Alternatively: print(intList[len(intList) - 1]) # Get the 2nd to 4th items print(intList[1:5]) # Instead of find, lists have "index" print(intList.index(2))
cars = 100 space_in_car = 4 drivers = 30 passengers = 90 cars_not_driven = cars - drivers cars_driven = drivers carpool_capacity = cars_driven * space_in_car average_passengers_per_car = passengers / cars_driven print("Cars: ", cars) print(drivers) print(cars_not_driven) print(carpool_capacity) print(passengers) print(average_passengers_per_car)
class Config(object): # Measuration Parameters TOTAL_TICKS = 80 PRECISION = 1 INITIAL_TIMESTAMP = 1 # Acceleration Parameters MINIMIZE_CHECKING = True GENERATE_STATE = False LOGGING_NETWORK = False # SPEC Parameters SLOTS_PER_EPOCH = 8 # System Parameters NUM_VALIDATORS = 8 # Network Parameters LATENCY = 1.5 / PRECISION RELIABILITY = 1.0 NUM_PEERS = 10 SHARD_NUM_PEERS = 5 TARGET_TOTAL_TPS = 1 MEAN_TX_ARRIVAL_TIME = ((1 / TARGET_TOTAL_TPS) * PRECISION) * NUM_VALIDATORS # Validator Parameters TIME_OFFSET = 1 PROB_CREATE_BLOCK_SUCCESS = 0.999 DISCONNECT_THRESHOLD = 5
_base_ = [ '../_base_/models/mask_rcnn_se_r50_fpn.py', '../_base_/datasets/coco_instance.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( pretrained='checkpoints/se_resnext101_64x4d-f9926f93.pth', backbone=dict(block='SEResNeXtBottleneck', layers=[3, 4, 23, 3], groups=64))
class Solution: def reverseVowels(self, s: str) -> str: vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'} s = list(s) left = 0 right = len(s) - 1 while left < right: if s[left] not in vowels: left += 1 elif s[right] not in vowels: right -= 1 else: s[left], s[right] = s[right], s[left] left += 1 right -= 1 return ''.join(s)
#!/usr/bin/env python3 # https://sites.google.com/site/ev3python/learn_ev3_python/using-sensors/sensor-modes speedReading=0 # Color Sensor Readings # COL-REFLECT COL-AMBIENT COL-COLOR RGB-RAW colorSensor_mode_default = "COL-COLOR" colorSensor_mode_lt = colorSensor_mode_default colorSensor_mode_rt = colorSensor_mode_default colorSensor_reflect_lt=0 colorSensor_reflect_rt=0 colorSensor_color_lt=0 colorSensor_color_rt=0 colorSensor_rawred_lt=0 colorSensor_rawgreen_lt=0 colorSensor_rawblue_lt=0 colorSensor_rawred_rt=0 colorSensor_rawgreen_rt=0 colorSensor_rawblue_rt=0 ultrasonicSensor_ReadingInCm=0
"""Message types to register.""" PROTOCOL_URI = "https://didcomm.org/issue-credential/1.1" PROTOCOL_PACKAGE = "aries_cloudagent.protocols.issue_credential.v1_1" CREDENTIAL_ISSUE = f"{PROTOCOL_URI}/issue-credential" CREDENTIAL_REQUEST = f"{PROTOCOL_URI}/request-credential" MESSAGE_TYPES = { CREDENTIAL_ISSUE: (f"{PROTOCOL_PACKAGE}.messages.credential_issue.CredentialIssue"), CREDENTIAL_REQUEST: ( f"{PROTOCOL_PACKAGE}.messages.credential_request.CredentialRequest" ), }
class Player: def getTime(self): pass def playWavFile(self, file): pass def wavWasPlayed(self): pass def resetWav(self): pass
def countSetBits(num): binary = bin(num) setBits = [ones for ones in binary[2:] if ones == '1'] return len(setBits) if __name__ == "__main__": n = int(input()) for i in range(n+1): print(countSetBits(i), end =' ')
'simple demo of using map to create instances of objects' class Dog: def __init__(self, name): self.name = name def bark(self): print("Woof! %s is barking!" % self.name) dogs = list(map(Dog, ['rex', 'rover', 'ranger']))
#!/usr/bin/python3 max_integer = __import__('6-max_integer').max_integer print(max_integer([1, 2, 3, 4])) print(max_integer([1, 3, 4, 2]))
try: # Check if the basestring type if available, this will fail in python3 basestring except NameError: basestring = str class ControlFileParams: generalParams = "GeneralParams" spawningBlockname = "SpawningParams" simulationBlockname = "SimulationParams" clusteringBlockname = "clusteringTypes" class GeneralParams: mandatory = { "restart": "bool", "outputPath": "basestring", "initialStructures": "list" } params = { "restart": "bool", "outputPath": "basestring", "initialStructures": "list", "debug": "bool", "writeAllClusteringStructures": "bool", "nativeStructure": "basestring" } class SpawningParams: params = { "epsilon": "numbers.Real", "T": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", "varEpsilonType": "basestring", "maxEpsilon": "numbers.Real", "minEpsilon": "numbers.Real", "variationWindow": "numbers.Real", "maxEpsilonWindow": "numbers.Real", "period": "numbers.Real", "alpha": "numbers.Real", "metricWeights": "basestring", "metricsInd": "list", "condition": "basestring", "n": "numbers.Real", "lagtime": "numbers.Real", "minPos": "list", "SASA_column": "int", "filterByMetric": "bool", "filter_value": "numbers.Real", "filter_col": "int" } types = { "sameWeight": { "reportFilename": "basestring" }, "independent": { "reportFilename": "basestring" }, "independentMetric": { "metricColumnInReport": "numbers.Real", "reportFilename": "basestring" }, "inverselyProportional": { "reportFilename": "basestring" }, "null": { "reportFilename": "basestring" }, "epsilon": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", }, "FAST": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", }, "variableEpsilon": { "epsilon": "numbers.Real", "reportFilename": "basestring", "metricColumnInReport": "numbers.Real", "varEpsilonType": "basestring", "maxEpsilon": "numbers.Real" }, "UCB": { "reportFilename": "basestring", "metricColumnInReport": "numbers.Real" }, "REAP": { "reportFilename": "basestring", "metricColumnInReport": "numbers.Real" }, "ProbabilityMSM": { "lagtime": "numbers.Real" }, "MetastabilityMSM": { "lagtime": "numbers.Real" }, "UncertaintyMSM": { "lagtime": "numbers.Real" }, "IndependentMSM": { "lagtime": "numbers.Real" } } density = { "types": { "heaviside": "basestring", "null": "basestring", "constant": "basestring", "exitContinuous": "basestring", "continuous": "basestring" }, "params": { "heaviside": "basestring", "null": "basestring", "constant": "basestring", "values": "list", "conditions": "list", "exitContinuous": "basestring", "continuous": "basestring" } } class SimulationParams: types = { "pele": { "processors": "numbers.Real", "controlFile": "basestring", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real" }, "test": { "destination": "basestring", "origin": "basestring", "processors": "numbers.Real", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real" }, "md": { "processors": "numbers.Real", "seed": "numbers.Real", "productionLength": "numbers.Real", "iterations": "numbers.Real", "numReplicas": "numbers.Real" }} params = { "executable": "basestring", "data": "basestring", "documents": "basestring", "destination": "basestring", "origin": "basestring", "time": "numbers.Real", "processors": "numbers.Real", "controlFile": "basestring", "seed": "numbers.Real", "peleSteps": "numbers.Real", "iterations": "numbers.Real", "modeMovingBox": "basestring", "boxCenter": "list", "boxRadius": "numbers.Real", "runEquilibration": "bool", "equilibrationMode": "basestring", "equilibrationLength": "numbers.Real", "equilibrationBoxRadius": "numbers.Real", "equilibrationTranslationRange": "numbers.Real", "equilibrationRotationRange": "numbers.Real", "numberEquilibrationStructures": "numbers.Real", "useSrun": "bool", "srunParameters": "basestring", "mpiParameters": "basestring", "exitCondition": "dict", "trajectoryName": "basestring", "ligandCharge": "list|numbers.Real", "ligandName": "list|basestring", "cofactors": "list", "ligandsToRestrict": "list", "nonBondedCutoff": "numbers.Real", "timeStep": "numbers.Real", "temperature": "numbers.Real", "runningPlatform": "basestring", "minimizationIterations": "numbers.Real", "reporterFrequency": "numbers.Real", "productionLength": "numbers.Real", "WaterBoxSize": "numbers.Real", "forcefield": "basestring", "trajectoriesPerReplica": "numbers.Real", "equilibrationLengthNVT": "numbers.Real", "equilibrationLengthNPT": "numbers.Real", "devicesPerTrajectory": "int", "constraintsMinimization": "numbers.Real", "constraintsNVT": "numbers.Real", "constraintsNPT": "numbers.Real", "customparamspath": "basestring", "numReplicas": "numbers.Real", "maxDevicesPerReplica": "numbers.Real", "format": "basestring", "constraints": "list", "boxType": "basestring", "postprocessing": "bool", "cylinderBases": "list" } exitCondition = { "types": { "metric": "basestring", "clustering": "basestring", "metricMultipleTrajectories": "basestring" }, "params": { "metricCol": "numbers.Real", "exitValue": "numbers.Real", "condition": "basestring", "numTrajs": "numbers.Real" } } class clusteringTypes: types = { "rmsd": {}, "contactMap": { "similarityEvaluator": "basestring", "ligandResname": "basestring" }, "lastSnapshot": { "ligandResname": "basestring" }, "null": {}, "MSM": { "ligandResname": "basestring", "nclusters": "numbers.Real" } } params = { "rmsd": "basestring", "contactMap": "basestring", "lastSnapshot": "basestring", "null": "basestring", "contactThresholdDistance": "numbers.Real", "ligandResname": "basestring", "ligandResnum": "numbers.Real", "ligandChain": "basestring", "similarityEvaluator": "basestring", "symmetries": "list", "alternativeStructure": "bool", "nclusters": "numbers.Real", "tica": "bool", "atom_Ids": "list", "writeCA": "bool", "sidechains": "bool", "tica_lagtime": "numbers.Real", "tica_nICs": "numbers.Real", "tica_kinetic_map": "bool", "tica_commute_map": "bool" } thresholdCalculator = { "types": { "heaviside": "basestring", "constant": "basestring" }, "params": { "conditions": "list", "values": "list", "value": "numbers.Real", "heaviside": "basestring", "constant": "basestring" } }
num = int(input()) if num == 0: print("zero") elif num == 1: print("one") elif num == 2: print("two") elif num == 3: print("three") elif num == 4: print("four") elif num == 5: print("five") elif num == 6: print("six") elif num == 7: print("seven") elif num == 8: print("eight") elif num == 9: print("nine") else: print("number too big")
# -*- coding:utf-8 -*- """ Description: Exceptions Usage: from AntShares.Exceptions import * """ class WorkIdError(Exception): """Work Id Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0002 class OutputError(Exception): """Output Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0003 class RegisterNameError(Exception): """Regiser Transaction Name Error""" def __init__(self, info): super(Exception, self).__init__(info) self.error_code = 0x0004
#aula 7 14-11-2019 #Dicionarios lista = [] dicionario = { 'Nome': 'Antonio' , 'Sobrenome' : 'Gastaldi' } print(dicionario) print(dicionario['Sobrenome']) nome = 'Antônio' lista_notas = [10,20,50,70] media = sum(lista_notas)/ len(lista_notas) situacao = 'Reprovado' if media >= 7 : situacao = 'Aprovado' dicionario_alunos = {'nome' :nome, 'lista_Notas': lista_notas, 'Media' : media, 'Situacao': situacao } print(f"{dicionario_alunos['nome']} - {dicionario_alunos['Situacao']}")
# Crie um progrmaa que leia dois numeros e mostra a soma entre eles n1 = int(input('Digite o primeiro numero: ')) n2 = int(input('Digite o segundo numero: ')) s = n1 + n2 print('A soma de \033[31m{}\033[m e \033[34m{}\033[m eh de \033[32m{}\033[m ' .format(n1, n2, s))
# TODO(dan): Sort out how this displays in tracebacks, it's terrible class ValidationError(Exception): def __init__(self, errors, exc=None): self.errors = errors self.exc = exc self._str = str(exc) if exc is not None else '' + ', '.join( [str(e) for e in errors]) def __str__(self): return self._str
# # PySNMP MIB module SONUS-NTP-SERVICES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-NTP-SERVICES-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:02:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibIdentifier, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, NotificationType, TimeTicks, Bits, IpAddress, Unsigned32, ObjectIdentity, ModuleIdentity, iso, Integer32, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "NotificationType", "TimeTicks", "Bits", "IpAddress", "Unsigned32", "ObjectIdentity", "ModuleIdentity", "iso", "Integer32", "Gauge32") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") sonusEventLevel, sonusEventClass, sonusEventDescription, sonusShelfIndex, sonusSlotIndex = mibBuilder.importSymbols("SONUS-COMMON-MIB", "sonusEventLevel", "sonusEventClass", "sonusEventDescription", "sonusShelfIndex", "sonusSlotIndex") sonusServicesMIBs, = mibBuilder.importSymbols("SONUS-SMI", "sonusServicesMIBs") SonusName, SonusNameReference = mibBuilder.importSymbols("SONUS-TC", "SonusName", "SonusNameReference") sonusNtpServicesMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2)) if mibBuilder.loadTexts: sonusNtpServicesMIB.setLastUpdated('200004230000Z') if mibBuilder.loadTexts: sonusNtpServicesMIB.setOrganization('Sonus Networks, Inc.') sonusNtpServicesMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1)) sonusTimeZoneObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1)) sonusTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35))).clone(namedValues=NamedValues(("gmtMinus12-Eniuetok", 1), ("gmtMinus11-MidwayIsland", 2), ("gmtMinus10-Hawaii", 3), ("gmtMinus09-Alaska", 4), ("gmtMinus08-Pacific-US", 5), ("gmtMinus07-Arizona", 6), ("gmtMinus07-Mountain", 7), ("gmtMinus06-Central-US", 8), ("gmtMinus06-Mexico", 9), ("gmtMinus06-Saskatchewan", 10), ("gmtMinus05-Bojota", 11), ("gmtMinus05-Eastern-US", 12), ("gmtMinus05-Indiana", 13), ("gmtMinus04-Atlantic-Canada", 14), ("gmtMinus04-Caracas", 15), ("gmtMinus03-BuenosAires", 16), ("gmtMinus02-MidAtlantic", 17), ("gmtMinus01-Azores", 18), ("gmt", 19), ("gmtPlus01-Berlin", 20), ("gmtPlus02-Athens", 21), ("gmtPlus03-Moscow", 22), ("gmtPlus0330-Tehran", 23), ("gmtPlus04-AbuDhabi", 24), ("gmtPlus0430-Kabul", 25), ("gmtPlus05-Islamabad", 26), ("gmtPlus0530-NewDelhi", 27), ("gmtPlus06-Dhaka", 28), ("gmtPlus07-Bangkok", 29), ("gmtPlus08-Beijing", 30), ("gmtPlus09-Tokyo", 31), ("gmtPlus0930-Adelaide", 32), ("gmtPlus10-Guam", 33), ("gmtPlus11-Magadan", 34), ("gmtPlus12-Fiji", 35))).clone(12)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusTimeZone.setStatus('current') sonusNtpPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2)) sonusNtpPeerNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerNextIndex.setStatus('current') sonusNtpPeerTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2), ) if mibBuilder.loadTexts: sonusNtpPeerTable.setStatus('current') sonusNtpAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerIndex")) if mibBuilder.loadTexts: sonusNtpAdmnEntry.setStatus('current') sonusNtpPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerIndex.setStatus('current') sonusNtpServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 2), SonusName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpServerName.setStatus('current') sonusNtpPeerIpaddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerIpaddr.setStatus('current') sonusNtpPeerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 8))).clone(namedValues=NamedValues(("poll", 3), ("broadcast", 8))).clone('poll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMode.setStatus('current') sonusNtpPeerVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 4))).clone(namedValues=NamedValues(("version3", 3), ("version4", 4))).clone('version3')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerVersion.setStatus('current') sonusNtpPeerMinPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMinPoll.setStatus('current') sonusNtpPeerMaxPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerMaxPoll.setStatus('current') sonusNtpPeerAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerAdmnState.setStatus('current') sonusNtpPeerAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 2, 2, 1, 9), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusNtpPeerAdmnRowStatus.setStatus('current') sonusNtpPeerStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3), ) if mibBuilder.loadTexts: sonusNtpPeerStatTable.setStatus('current') sonusNtpPeerStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerStatShelfIndex"), (0, "SONUS-NTP-SERVICES-MIB", "sonusNtpPeerStatIndex")) if mibBuilder.loadTexts: sonusNtpPeerStatEntry.setStatus('current') sonusNtpPeerStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStatShelfIndex.setStatus('current') sonusNtpPeerStatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStatIndex.setStatus('current') sonusNtpPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("outofsync", 1), ("insync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerState.setStatus('current') sonusNtpPeerStratum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerStratum.setStatus('current') sonusNtpPeerRefTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpPeerRefTime.setStatus('current') sonusNtpSysStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4), ) if mibBuilder.loadTexts: sonusNtpSysStatTable.setStatus('current') sonusNtpSysStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1), ).setIndexNames((0, "SONUS-NTP-SERVICES-MIB", "sonusNtpSysShelfIndex")) if mibBuilder.loadTexts: sonusNtpSysStatEntry.setStatus('current') sonusNtpSysShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysShelfIndex.setStatus('current') sonusNtpSysClock = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysClock.setStatus('current') sonusNtpSysRefTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysRefTime.setStatus('current') sonusNtpSysLastSelect = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysLastSelect.setStatus('current') sonusNtpSysPeer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 1, 4, 1, 5), SonusNameReference()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpSysPeer.setStatus('current') sonusNtpServicesMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2)) sonusNtpServicesMIBNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0)) sonusNtpServicesMIBNotificationsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1)) sonusNtpServerOutOfServiceReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ntpServerDisabled", 1), ("ntpServerOutOfSync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpServerOutOfServiceReason.setStatus('current') sonusNtpDownReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noNtpServerConfigured", 1), ("allNtpServersOutOfSync", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusNtpDownReason.setStatus('current') sonusNtpServerInServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 1)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerName"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpServerInServiceNotification.setStatus('current') sonusNtpServerOutOfServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 2)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerName"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpServerOutOfServiceReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpServerOutOfServiceNotification.setStatus('current') sonusNtpUpNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 3)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpUpNotification.setStatus('current') sonusNtpDownNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 2, 2, 0, 4)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NTP-SERVICES-MIB", "sonusNtpDownReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusNtpDownNotification.setStatus('current') mibBuilder.exportSymbols("SONUS-NTP-SERVICES-MIB", sonusNtpServerName=sonusNtpServerName, sonusNtpSysStatEntry=sonusNtpSysStatEntry, sonusNtpPeerVersion=sonusNtpPeerVersion, sonusNtpPeerState=sonusNtpPeerState, sonusNtpSysPeer=sonusNtpSysPeer, sonusNtpPeerAdmnState=sonusNtpPeerAdmnState, sonusNtpUpNotification=sonusNtpUpNotification, sonusNtpServerOutOfServiceNotification=sonusNtpServerOutOfServiceNotification, sonusNtpPeerStatTable=sonusNtpPeerStatTable, sonusNtpDownNotification=sonusNtpDownNotification, sonusNtpPeerMaxPoll=sonusNtpPeerMaxPoll, sonusNtpServicesMIB=sonusNtpServicesMIB, sonusNtpSysRefTime=sonusNtpSysRefTime, sonusTimeZoneObjects=sonusTimeZoneObjects, sonusNtpPeerStratum=sonusNtpPeerStratum, sonusNtpPeerIpaddr=sonusNtpPeerIpaddr, sonusNtpSysLastSelect=sonusNtpSysLastSelect, sonusNtpServicesMIBNotifications=sonusNtpServicesMIBNotifications, sonusNtpPeerStatEntry=sonusNtpPeerStatEntry, sonusNtpPeerTable=sonusNtpPeerTable, sonusNtpPeerMinPoll=sonusNtpPeerMinPoll, sonusNtpPeerMode=sonusNtpPeerMode, sonusNtpPeerIndex=sonusNtpPeerIndex, sonusNtpPeerAdmnRowStatus=sonusNtpPeerAdmnRowStatus, PYSNMP_MODULE_ID=sonusNtpServicesMIB, sonusNtpPeer=sonusNtpPeer, sonusNtpPeerStatShelfIndex=sonusNtpPeerStatShelfIndex, sonusNtpServerInServiceNotification=sonusNtpServerInServiceNotification, sonusNtpAdmnEntry=sonusNtpAdmnEntry, sonusNtpPeerRefTime=sonusNtpPeerRefTime, sonusNtpPeerNextIndex=sonusNtpPeerNextIndex, sonusNtpServicesMIBNotificationsObjects=sonusNtpServicesMIBNotificationsObjects, sonusNtpDownReason=sonusNtpDownReason, sonusNtpSysShelfIndex=sonusNtpSysShelfIndex, sonusNtpSysStatTable=sonusNtpSysStatTable, sonusNtpSysClock=sonusNtpSysClock, sonusNtpServerOutOfServiceReason=sonusNtpServerOutOfServiceReason, sonusNtpServicesMIBNotificationsPrefix=sonusNtpServicesMIBNotificationsPrefix, sonusTimeZone=sonusTimeZone, sonusNtpServicesMIBObjects=sonusNtpServicesMIBObjects, sonusNtpPeerStatIndex=sonusNtpPeerStatIndex)
JSVIZ1='''<script type="text/javascript"> function go() { var zoomCanvas = document.getElementById('canvas'); origZoomChart = new Scribl(zoomCanvas, 100); //origZoomChart.scale.min = 0; // origZoomChart.scale.max = 12000; ''' JSVIZ2=''' origZoomChart.scrollable = true; origZoomChart.scrollValues = [10, 250]; origZoomChart.draw(); } </script> ''' CANVAS=''' <div id="container"> <canvas id="canvas" width="940px" height="400px" style="margin-left:auto; margin-right:auto"></canvas> </div> ''' SEQ='''origZoomChart.addFeature( new Seq('human', %s, %s, "%s") );''' def addseq(pos,len,seq): return(SEQ % (pos,len,seq))
"""Default constants used in this library. Exponential Coulomb interaction. v(x) = amplitude * exp(-abs(x) * kappa) See also ext_potentials.exp_hydrogenic. Further details in: Thomas E Baker, E Miles Stoudenmire, Lucas O Wagner, Kieron Burke, and Steven R White. One-dimensional mimicking of electronic structure: The case for exponentials. Physical Review B,91(23):235141, 2015. """ EXPONENTIAL_COULOMB_AMPLITUDE = 1.071295 EXPONENTIAL_COULOMB_KAPPA = 1 / 2.385345
def catalan_rec(n): if n <= 1: return 1 res = 0 for i in range(n): res += catalan_rec(i) * catalan_rec(n-i-1) return res def catalan_rec_td(n, arr): if n <= 1: return 1 if arr[n] > 0: return arr[n] res = 0 for i in range(n): res += catalan_rec_td(i, arr) * catalan_rec_td(n-i-1, arr) arr[n] = res return res def catalan_rec_bu(n): catalan = [0] * (n+1) catalan[0] = 1 catalan[1] = 1 for i in range(2, n + 1): catalan[i] = 0 for j in range(i): catalan[i] = catalan[i] + catalan[j] + catalan[i-j-1] return catalan[n] if __name__ == "__main__": for i in range(10): catalan_rec(i) for i in range(10): arr = [0] * i catalan_rec(i, arr)
''' Exercício Python 63: Escreva um programa que leia um número N inteiro qualquer e mostre na tela os N primeiros elementos de uma Sequência de Fibonacci. Exemplo: 0 – 1 – 1 – 2 – 3 – 5 – 8 ''' print('------------------------------') print('Sequencia de Fibonacci') print('------------------------------') n = int(input('Quantos termos você quer mostrar? ')) t1 = 0 t2 = 1 print('~'*30) print('{} → {}'.format(t1, t2), end='') cont = 3 while cont <= n: t3 = t1 + t2 print(' → {}'.format(t3), end='') t1 = t2 t2 = t3 cont += 1 print(' → FIM') print('~'*30)
# %% P = {"task.variable_a": "value-used-during-interactive-development"} # %% tags=["parameters"] # ---- During automated runs parameters will be injected in this cell --- # %% # ----------------------------------------------------------------------- # %% # Example comment print(1 + 12 + 123) # %% print(f"""variable_a={P["task.variable_a"]}""") # %%
class Solution: def isValidSerialization(self, preorder: str) -> bool: return self.isValidSerializationStack(preorder) ''' Initial, Almost-Optimal, Split Iteration Look at the question closely. If i give you a subset from start, will you be able to tell me easily if its valid You will quickly realize that the numbers don't matter There a given number of slots for any given tree structure and all of them must be filled, BUT there should be no more nodes than the number of slots How do we know how many slots to be filled? Look at the tree growth and you will find a pattern Initially, we have 1 slot available (for the root) For every new number node, we use up 1 slot but create 2 new ones Net change: +1 For every null node, we use up 1 slot and create 0 new ones Net change: -1 So if you keep track of this slot count, you can easily figure out if the traversal is valid NOTE: The traversal being preorder is basically useless Time: O(n) Space: O(n) ''' def isValidSerializationInitial(self, preorder: str) -> bool: # initially we have one empty slot to put the root in it slots = 1 for node in preorder.split(','): # no empty slot to put the current node if slots == 0: return False if node == '#': # null node uses up a slot slots -= 1 else: # number node creates a new slot slots += 1 # we don't allow empty slots at the end return slots == 0 ''' Optimal, Character Iteration Similar logic as above, just skips the .split for char iteration This is because .split saves the split in a new list, costing us O(n) memory Time: O(n) Space: O(n) ''' def isValidSerializationCharIteration(self, preorder: str) -> bool: # initially we have one empty slot to put the root in it slots = 1 # this boolean indicates whether current digit char indicates a new node (for multi-char numbers) new_symbol = True for ch in preorder: # if current char is a comma # get ready for next node and continue if ch == ',': new_symbol = True continue # no empty slot to put the current node if slots == 0: return False if ch == '#': # null node uses up a slot slots -= 1 elif new_symbol: # number node creates a new slot slots += 1 # next letter is not a new node new_symbol = False # we don't allow empty slots at the end return slots == 0 ''' Stack Not better than initial, but interesting ''' def isValidSerializationStack(self, preorder: str) -> bool: stack = [] for node in preorder.split(","): while stack and node == stack[-1] == "#": if len(stack) < 2: return False stack.pop() stack.pop() stack.append(node) return stack == ['#']
""" Shell Sort Approach: Divide and Conquer Complexity: O(n2) """ def sort_shell(input_arr): print("""""""""""""""""""""""""") print("input " + str(input_arr)) print("""""""""""""""""""""""""") print("""""""""""""""""""""""""") print("result " + str(input_arr)) print("""""""""""""""""""""""""") if __name__ == '__main__': arr = [21, 4, 1, 3, 9, 20, 25, 6, 21, 14] sort_shell(arr)
#!/usr/bin/env python3 # Day 22: Binary Tree Zigzag Level Order Traversal # # Given a binary tree, return the zigzag level order traversal of its nodes' # values. (ie, from left to right, then right to left for the next level and # alternate between). # 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 zigzagLevelOrder(self, root: TreeNode) -> [[int]]: # First get a regular level order traversal if root is None: return [] result = [[root.val]] queue = [root] while len(queue) > 0: children = [] for node in queue: if node.left is not None: children.append(node.left) if node.right is not None: children.append(node.right) queue = children if len(children) > 0: result.append([node.val for node in queue]) # Then flip the odd levels for level in range(len(result)): if level % 2 == 1: result[level] = result[level][::-1] return result # Test test_tree = TreeNode(3) test_tree.left = TreeNode(9) test_tree.right = TreeNode(20) test_tree.right.left = TreeNode(15) test_tree.right.right = TreeNode(7) assert Solution().zigzagLevelOrder(test_tree) == [[3],[20,9],[15,7]]
""" 数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。   示例: 输入:n = 3 输出:[ "((()))", "(()())", "(())()", "()(())", "()()()" ] 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/generate-parentheses 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """
def minion_game(string): length = len(string) the_vowel = "AEIOU" kevin = 0 stuart = 0 for i in range(length): if string[i] in the_vowel: kevin = kevin + length - i else: stuart = stuart + length - i if kevin > stuart: print ("Kevin %d" % kevin) elif kevin < stuart: print ("Stuart %d" % stuart) else: print ("Draw")
class PatchExtractor: def __init__(self, img, patch_size, stride): self.img = img self.size = patch_size self.stride = stride def extract_patches(self): wp, hp = self.shape() return [self.extract_patch((w, h)) for h in range(hp) for w in range(wp)] def extract_patch(self, patch): return self.img.crop(( patch[0] * self.stride, # left patch[1] * self.stride, # up patch[0] * self.stride + self.size, # right patch[1] * self.stride + self.size # down )) def shape(self): wp = int((self.img.width - self.size) / self.stride + 1) hp = int((self.img.height - self.size) / self.stride + 1) return wp, hp
class OnegramException(Exception): pass # TODO [romeira]: Login exceptions {06/03/18 23:07} class AuthException(OnegramException): pass class AuthFailed(AuthException): pass class AuthUserError(AuthException): pass class NotSupportedError(OnegramException): pass class RequestFailed(OnegramException): pass class RateLimitedError(RequestFailed): pass # TODO [romeira]: Query/action exceptions {06/03/18 23:08} # TODO [romeira]: Session expired exception {06/03/18 23:08} # TODO [romeira]: Private user exception/warning {06/03/18 23:09} # TODO [romeira]: Not found exception {06/03/18 23:12} # TODO [romeira]: Already following/liked/commented? warnings {06/03/18 23:12} # TODO [romeira]: Timeout exception {06/03/18 23:12}
# _version.py # Simon Hulse # [email protected] # Last Edited: Tue 10 May 2022 10:24:50 BST __version__ = "0.0.6"
#1. 如果有两个字符串"hello" 和 “world”,生成一个列表,列表中元素["hw", "eo", "lr"] str1 = "hello" str2 = "world" l = [] for i in range(len(str1)): l.append(str1[i]+str2[i]) print(l)
def fact(n): if n == 0: return(1) return(n*fact(n-1)) def ncr(n, r): return(fact(n)/(fact(r)*fact(n-r))) million = 1000000 n = 0 a = 0 comp = 0 for n in range(100, 0, -1): for r in range(a, n): if ncr(n,r) > million: comp += n-2*r + 1 a = r-1 break print(n) print("comp=" + str(comp))
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. LOG_MODE_ERROR = -1 LOG_MODE_INFO = 1 LOG_MODE_DEBUG = 2 _lines = [] _active = True _mode = LOG_MODE_INFO def activate(): global _active _active = True def deactivate(): global _active _active = False def set_log_mode(mode): global _mode _mode = mode def write_log(*args): global _active global _lines if _active: line = " ".join(map(str, args)) print(line) _lines.append(line) def write_message_to_log(message, mode=LOG_MODE_INFO): global _active global _lines if _active and _mode >= mode: print(message) _lines.append(message) def save_log(filename): global _lines with open(filename, "wb") as outfile: for l in _lines: outfile.write(l+"\n") def clear_log(): global _lines _lines = []
# # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # ORIGINAL_VALUE = 0 TOP_RESOLUTION = 1 SLOT_CONFIG = { 'event_name': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find an event called "{}".'}, 'event_month': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_name': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_city': {'type': ORIGINAL_VALUE, 'remember': True}, 'venue_state': {'type': ORIGINAL_VALUE, 'remember': True}, 'cat_desc': {'type': TOP_RESOLUTION, 'remember': True, 'error': 'I couldn\'t find a category called "{}".'}, 'count': {'type': ORIGINAL_VALUE, 'remember': True}, 'dimension': {'type': ORIGINAL_VALUE, 'remember': True}, 'one_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'another_event': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find an event called "{}".'}, 'one_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_venue': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_month': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_city': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'another_state': {'type': ORIGINAL_VALUE, 'remember': False}, 'one_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'}, 'another_category': {'type': TOP_RESOLUTION, 'remember': False, 'error': 'I couldn\'t find a category called "{}".'} } DIMENSIONS = { 'events': {'slot': 'event_name', 'column': 'e.event_name', 'singular': 'event'}, 'months': {'slot': 'event_month', 'column': 'd.month', 'singular': 'month'}, 'venues': {'slot': 'venue_name', 'column': 'v.venue_name', 'singular': 'venue'}, 'cities': {'slot': 'venue_city', 'column': 'v.venue_city', 'singular': 'city'}, 'states': {'slot': 'venue_state', 'column': 'v.venue_state', 'singular': 'state'}, 'categories': {'slot': 'cat_desc', 'column': 'c.cat_desc', 'singular': 'category'} } class SlotError(Exception): pass
""" Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 >>> spam = Spam() >>> spam.eggs() 42 """ def square(x): """ Examples: >>> square(1) 1 >>> square(2) 4 >>> square(3) 9 """ return x * x class Spam(object): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ def eggs(self): """ Examples: >>> spam = Spam() >>> spam.eggs() 42 """ return 42
""" Random Starry Sky """ newPage(300, 300) fill(0) rect(0, 0, 300, 300) for i in range (200): dia = random() * 3 fill(random()) oval(random()*300, random()*300, dia, dia) """ Aufgabe: - Platziere ein paar zufällig farbige Planeten am Nachthimmel - Was passiert, wenn du Zeile 13 zu oval(dia, dia, dia, dia) änderst? - Warum braucht es für die x- und y-Position seperate Zufallswerte? """
'''' def multiplica(a,b): return a*b print(multiplica(4,5)) def troca(x,y): aux = x x=y y=aux x=10 y=20 troca(x,y) print("X=",x,"e y =",y) ''' def total_caracteres (x,y,z): return (len(x)+len(y)+len(z))
#!/usr/bin/env python3 def encode(message): encoded_message = "" i = 0 while (i <= len(message) - 1): count = 1 ch = message[i] j = i while (j < len(message) - 1): if (message[j] == message[j + 1]): count = count + 1 j = j + 1 else: break encoded_message = encoded_message + str(count) + ch i = j + 1 return encoded_message #Provide different values for message and test your program encoded_message = encode("ABBBBCCCCCCCCAB") print(encoded_message)
'''from math import trunc num = float(input('Digite um número para mostrar sua porção: ')) print('a porção do seu número é: {}'.format(trunc(num)))''' num = float(input('Digite um numero para se tornar uma integral zozinha: ')) print('o número flutuante {}, se tornou um número integral {:.0f}'.format(num, int(num)))
class MainClass: class_number = 20 class_string = 'Hello, world' def get_local_number(self): return 14 def get_lass_number(self): return MainClass.class_number def get_class_string(self): return MainClass.class_string
# # @lc app=leetcode id=135 lang=python3 # # [135] Candy # # https://leetcode.com/problems/candy/description/ # # algorithms # Hard (30.87%) # Likes: 815 # Dislikes: 154 # Total Accepted: 125.7K # Total Submissions: 406.8K # Testcase Example: '[1,0,2]' # # There are N children standing in a line. Each child is assigned a rating # value. # # You are giving candies to these children subjected to the following # requirements: # # # Each child must have at least one candy. # Children with a higher rating get more candies than their neighbors. # # # What is the minimum candies you must give? # # Example 1: # # # Input: [1,0,2] # Output: 5 # Explanation: You can allocate to the first, second and third child with 2, 1, # 2 candies respectively. # # # Example 2: # # # Input: [1,2,2] # Output: 4 # Explanation: You can allocate to the first, second and third child with 1, 2, # 1 candies respectively. # ⁠ The third child gets 1 candy because it satisfies the above two # conditions. # # # # @lc code=start class Solution: def candy(self, ratings: List[int]) -> int: last_max_pos = -1 last_max_candies = -1 candies = 0 last_candy_gave = 0 for i, r in enumerate(ratings): last_rating = ratings[i-1] if i > 0 else -1 candy_to_give = last_candy_gave if r > last_rating: candy_to_give += 1 else: candy_to_give = 1 if r < last_rating and last_candy_gave == candy_to_give: diff = i - last_max_pos candies += diff if diff < last_max_candies: candies -= 1 candies += candy_to_give last_candy_gave = candy_to_give if r >= last_rating: last_max_pos = i last_max_candies = candy_to_give return candies # @lc code=end
friendly_names = { "fim_s01e01": "Season 1, Episode 1", "fim_s01e02": "Season 1, Episode 2", "fim_s01e03": "Season 1, Episode 3", "fim_s01e04": "Season 1, Episode 4", "fim_s01e05": "Season 1, Episode 5", "fim_s01e06": "Season 1, Episode 6", "fim_s01e07": "Season 1, Episode 7", "fim_s01e08": "Season 1, Episode 8", "fim_s01e09": "Season 1, Episode 9", "fim_s01e10": "Season 1, Episode 10", "fim_s01e11": "Season 1, Episode 11", "fim_s01e12": "Season 1, Episode 12", "fim_s01e13": "Season 1, Episode 13", "fim_s01e14": "Season 1, Episode 14", "fim_s01e15": "Season 1, Episode 15", "fim_s01e16": "Season 1, Episode 16", "fim_s01e17": "Season 1, Episode 17", "fim_s01e18": "Season 1, Episode 18", "fim_s01e19": "Season 1, Episode 19", "fim_s01e20": "Season 1, Episode 20", "fim_s01e21": "Season 1, Episode 21", "fim_s01e22": "Season 1, Episode 22", "fim_s01e23": "Season 1, Episode 23", "fim_s01e24": "Season 1, Episode 24", "fim_s01e25": "Season 1, Episode 25", "fim_s01e26": "Season 1, Episode 26", "fim_s02e01": "Season 2, Episode 1", "fim_s02e02": "Season 2, Episode 2", "fim_s02e03": "Season 2, Episode 3", "fim_s02e04": "Season 2, Episode 4", "fim_s02e05": "Season 2, Episode 5", "fim_s02e06": "Season 2, Episode 6", "fim_s02e07": "Season 2, Episode 7", "fim_s02e08": "Season 2, Episode 8", "fim_s02e09": "Season 2, Episode 9", "fim_s02e10": "Season 2, Episode 10", "fim_s02e11": "Season 2, Episode 11", "fim_s02e12": "Season 2, Episode 12", "fim_s02e13": "Season 2, Episode 13", "fim_s02e14": "Season 2, Episode 14", "fim_s02e15": "Season 2, Episode 15", "fim_s02e16": "Season 2, Episode 16", "fim_s02e17": "Season 2, Episode 17", "fim_s02e18": "Season 2, Episode 18", "fim_s02e19": "Season 2, Episode 19", "fim_s02e20": "Season 2, Episode 20", "fim_s02e21": "Season 2, Episode 21", "fim_s02e22": "Season 2, Episode 22", "fim_s02e23": "Season 2, Episode 23", "fim_s02e24": "Season 2, Episode 24", "fim_s02e25": "Season 2, Episode 25", "fim_s02e26": "Season 2, Episode 26", "fim_s03e01": "Season 3, Episode 1", "fim_s03e02": "Season 3, Episode 2", "fim_s03e03": "Season 3, Episode 3", "fim_s03e04": "Season 3, Episode 4", "fim_s03e05": "Season 3, Episode 5", "fim_s03e06": "Season 3, Episode 6", "fim_s03e07": "Season 3, Episode 7", "fim_s03e08": "Season 3, Episode 8", "fim_s03e09": "Season 3, Episode 9", "fim_s03e10": "Season 3, Episode 10", "fim_s03e11": "Season 3, Episode 11", "fim_s03e12": "Season 3, Episode 12", "fim_s03e13": "Season 3, Episode 13", "fim_s04e01": "Season 4, Episode 1", "fim_s04e02": "Season 4, Episode 2", "fim_s04e03": "Season 4, Episode 3", "fim_s04e04": "Season 4, Episode 4", "fim_s04e05": "Season 4, Episode 5", "fim_s04e06": "Season 4, Episode 6", "fim_s04e07": "Season 4, Episode 7", "fim_s04e08": "Season 4, Episode 8", "fim_s04e09": "Season 4, Episode 9", "fim_s04e10": "Season 4, Episode 10", "fim_s04e11": "Season 4, Episode 11", "fim_s04e12": "Season 4, Episode 12", "fim_s04e13": "Season 4, Episode 13", "fim_s04e14": "Season 4, Episode 14", "fim_s04e15": "Season 4, Episode 15", "fim_s04e16": "Season 4, Episode 16", "fim_s04e17": "Season 4, Episode 17", "fim_s04e18": "Season 4, Episode 18", "fim_s04e19": "Season 4, Episode 19", "fim_s04e20": "Season 4, Episode 20", "fim_s04e21": "Season 4, Episode 21", "fim_s04e22": "Season 4, Episode 22", "fim_s04e23": "Season 4, Episode 23", "fim_s04e24": "Season 4, Episode 24", "fim_s04e25": "Season 4, Episode 25", "fim_s04e26": "Season 4, Episode 26", "fim_s05e01": "Season 5, Episode 1", "fim_s05e02": "Season 5, Episode 2", "fim_s05e03": "Season 5, Episode 3", "fim_s05e04": "Season 5, Episode 4", "fim_s05e05": "Season 5, Episode 5", "fim_s05e06": "Season 5, Episode 6", "fim_s05e07": "Season 5, Episode 7", "fim_s05e08": "Season 5, Episode 8", "fim_s05e09": "Season 5, Episode 9", "fim_s05e10": "Season 5, Episode 10", "fim_s05e11": "Season 5, Episode 11", "fim_s05e12": "Season 5, Episode 12", "fim_s05e13": "Season 5, Episode 13", "fim_s05e14": "Season 5, Episode 14", "fim_s05e15": "Season 5, Episode 15", "fim_s05e16": "Season 5, Episode 16", "fim_s05e17": "Season 5, Episode 17", "fim_s05e18": "Season 5, Episode 18", "fim_s05e19": "Season 5, Episode 19", "fim_s05e20": "Season 5, Episode 20", "fim_s05e21": "Season 5, Episode 21", "fim_s05e22": "Season 5, Episode 22", "fim_s05e23": "Season 5, Episode 23", "fim_s05e24": "Season 5, Episode 24", "fim_s05e25": "Season 5, Episode 25", "fim_s05e26": "Season 5, Episode 26", "fim_s06e01": "Season 6, Episode 1", "fim_s06e02": "Season 6, Episode 2", "fim_s06e03": "Season 6, Episode 3", "fim_s06e04": "Season 6, Episode 4", "fim_s06e05": "Season 6, Episode 5", "fim_s06e06": "Season 6, Episode 6", "fim_s06e07": "Season 6, Episode 7", "fim_s06e08": "Season 6, Episode 8", "fim_s06e09": "Season 6, Episode 9", "fim_s06e10": "Season 6, Episode 10", "fim_s06e11": "Season 6, Episode 11", "fim_s06e12": "Season 6, Episode 12", "fim_s06e13": "Season 6, Episode 13", "fim_s06e14": "Season 6, Episode 14", "fim_s06e15": "Season 6, Episode 15", "fim_s06e16": "Season 6, Episode 16", "fim_s06e17": "Season 6, Episode 17", "fim_s06e18": "Season 6, Episode 18", "fim_s06e19": "Season 6, Episode 19", "fim_s06e20": "Season 6, Episode 20", "fim_s06e21": "Season 6, Episode 21", "fim_s06e22": "Season 6, Episode 22", "fim_s06e23": "Season 6, Episode 23", "fim_s06e24": "Season 6, Episode 24", "fim_s06e25": "Season 6, Episode 25", "fim_s06e26": "Season 6, Episode 26", "fim_s07e01": "Season 7, Episode 1", "fim_s07e02": "Season 7, Episode 2", "fim_s07e03": "Season 7, Episode 3", "fim_s07e04": "Season 7, Episode 4", "fim_s07e05": "Season 7, Episode 5", "fim_s07e06": "Season 7, Episode 6", "fim_s07e07": "Season 7, Episode 7", "fim_s07e08": "Season 7, Episode 8", "fim_s07e09": "Season 7, Episode 9", "fim_s07e10": "Season 7, Episode 10", "fim_s07e11": "Season 7, Episode 11", "fim_s07e12": "Season 7, Episode 12", "fim_s07e13": "Season 7, Episode 13", "fim_s07e14": "Season 7, Episode 14", "fim_s07e15": "Season 7, Episode 15", "fim_s07e16": "Season 7, Episode 16", "fim_s07e17": "Season 7, Episode 17", "fim_s07e18": "Season 7, Episode 18", "fim_s07e19": "Season 7, Episode 19", "fim_s07e20": "Season 7, Episode 20", "fim_s07e21": "Season 7, Episode 21", "fim_s07e22": "Season 7, Episode 22", "fim_s07e23": "Season 7, Episode 23", "fim_s07e24": "Season 7, Episode 24", "fim_s07e25": "Season 7, Episode 25", "fim_s07e26": "Season 7, Episode 26", "fim_s08e01": "Season 8, Episode 1", "fim_s08e02": "Season 8, Episode 2", "fim_s08e03": "Season 8, Episode 3", "fim_s08e04": "Season 8, Episode 4", "fim_s08e05": "Season 8, Episode 5", "fim_s08e06": "Season 8, Episode 6", "fim_s08e07": "Season 8, Episode 7", "fim_s08e08": "Season 8, Episode 8", "fim_s08e09": "Season 8, Episode 9", "fim_s08e10": "Season 8, Episode 10", "fim_s08e11": "Season 8, Episode 11", "fim_s08e12": "Season 8, Episode 12", "fim_s08e13": "Season 8, Episode 13", "fim_s08e14": "Season 8, Episode 14", "fim_s08e15": "Season 8, Episode 15", "fim_s08e16": "Season 8, Episode 16", "fim_s08e17": "Season 8, Episode 17", "fim_s08e18": "Season 8, Episode 18", "fim_s08e19": "Season 8, Episode 19", "fim_s08e20": "Season 8, Episode 20", "fim_s08e21": "Season 8, Episode 21", "fim_s08e22": "Season 8, Episode 22", "fim_s08e23": "Season 8, Episode 23", "fim_s08e24": "Season 8, Episode 24", "fim_s08e25": "Season 8, Episode 25", "fim_s08e26": "Season 8, Episode 26", "fim_s09e01": "Season 9, Episode 1", "fim_s09e02": "Season 9, Episode 2", "fim_s09e03": "Season 9, Episode 3", "fim_s09e04": "Season 9, Episode 4", "fim_s09e05": "Season 9, Episode 5", "fim_s09e06": "Season 9, Episode 6", "fim_s09e07": "Season 9, Episode 7", "fim_s09e08": "Season 9, Episode 8", "fim_s09e09": "Season 9, Episode 9", "fim_s09e10": "Season 9, Episode 10", "fim_s09e11": "Season 9, Episode 11", "fim_s09e12": "Season 9, Episode 12", "fim_s09e13": "Season 9, Episode 13", "fim_s09e14": "Season 9, Episode 14", "fim_s09e15": "Season 9, Episode 15", "fim_s09e16": "Season 9, Episode 16", "fim_s09e17": "Season 9, Episode 17", "fim_s09e18": "Season 9, Episode 18", "fim_s09e19": "Season 9, Episode 19", "fim_s09e20": "Season 9, Episode 20", "fim_s09e21": "Season 9, Episode 21", # "fim_s09e22": "Season 9, Episode 22", # "fim_s09e23": "Season 9, Episode 23", # "fim_s09e24": "Season 9, Episode 24", # "fim_s09e25": "Season 9, Episode 25", # "fim_s09e26": "Season 9, Episode 26", "eqg_original_movie": "Equestria Girls (Original)", "eqg_friendship_games": "Equestria Girls: Friendship Games", "eqg_legend_of_everfree": "Equestria Girls: Legend of Everfree", "eqg_rainbow_rocks": "Equestria Girls: Rainbow Rocks", } original_hashes = { "fim_s01e01": "5735ea49c43ea56109171cde2547a42cecb839cc", "fim_s01e02": "8d61b132aaff821b0b93fbff5baf74a017b93942", "fim_s01e03": "6c5e832dbdc91aec2159bd517a818c6aa1057613", "fim_s01e04": "b18eb5b02993dfed9cd383e54207119ee5cb51e4", "fim_s01e05": "7d7461461e39dd807ad5ace457d762c65075e62e", "fim_s01e06": "94138a8ed565a1d39ab43cbf9244720372287d66", "fim_s01e07": "a416681e16e9d8397e9ae06ecdfd9d2386e8f8f1", "fim_s01e08": "fedfadaa3d737e59fe1617407f80157258858004", "fim_s01e09": "75c31f8555f4b6a931b41185dd9aa645a6b5d9df", "fim_s01e10": "868a4050fd56eb397b25624a6bd6efea7b05f4d1", "fim_s01e11": "d9c603f4073e796454935eb855205f424b2bc0b0", "fim_s01e12": "9aa15d4cc4d6a1596b1b964add7398149cff5d4d", "fim_s01e13": "aa94e28636d9ad224b71c544a1ad84598a4899f6", "fim_s01e14": "6ea73fc00e5626669269c207b3ee0e52f018e382", "fim_s01e15": "701f2862a9aeefca70f6d314c0589c7a8a179ccc", "fim_s01e16": "dfcb90fb26d55641b554268d1d93efaa11ad285c", "fim_s01e17": "cc867f314d68564ce48e0bcad9b57a7af80a1520", "fim_s01e18": "e54ae83f44efd7dcab1bafa88eb6f3a6bd7f6c2a", "fim_s01e19": "96ca30cedca8170dad9611da02f774980ad83737", "fim_s01e20": "f4dbd0df7214583e0848360c89a8bde432c91b6d", "fim_s01e21": "ec5b1b9036ddce7cd62c0af9fb0c96a4dd85a52a", "fim_s01e22": "89aae028e1658c083c18a99216d1a549b30bce21", "fim_s01e23": "b18d2ab28435fbafb90046328e77751b8ca8cf6f", "fim_s01e24": "2e72f04bb686ea6273ebdda7f712ae32d76d0594", "fim_s01e25": "225228dcba4fdc08601b4b48cb182a9bc5d841f8", "fim_s01e26": "69030f04a1395db8a732149d552c7f9a5f95cad7", "fim_s02e01": "b188a4b7b3d9e74fa26dcb573e29216f450d677f", "fim_s02e02": "9072ea4af815c04c86fe00884aa55acde51c8de8", "fim_s02e03": "bc9bcab5e626e649185a237485cd6c45044febac", "fim_s02e04": "0bf3465a2adb91829d8fe16d8354f4dea9a96a4f", "fim_s02e05": "4d3033f9b443ebf892db563ecc183b15ad171134", "fim_s02e06": "e80a27201a93226b99377e5f3c7d60a337bfb974", "fim_s02e07": "5fd93be8ea58d26ed2eac7aee6cab6ea6d606da8", "fim_s02e08": "0f4197de4d3e5e29bb916c68c989c42003a3cae7", "fim_s02e09": "4aec2125d344f7651a25869f6fefe2d340cf255c", "fim_s02e10": "2df0e6d01d8510db000065baa2d028240d7dae49", "fim_s02e11": "7586a9586ffd57ddacda6201abd1e919cc6a782f", "fim_s02e12": "dd027fe0d956c851f8d4b633cfc56e0b5b24f786", "fim_s02e13": "667ef565d8fd3fa82dcd54cf2b469a5e1ae85c5e", "fim_s02e14": "69d1e1a4610eba20343287f2fd5a3419b74fb6e7", "fim_s02e15": "feedd3600151fa1834f9ff73363ce8931f7b5ec6", "fim_s02e16": "d2bb3a3f5daa5553b5be15894b4e209b211ea178", "fim_s02e17": "4524d942ca3834230e9766ba1e4ad4e51681ed0c", "fim_s02e18": "6ac536af39ec9a3096296af9da5559ae4a5d8523", "fim_s02e19": "82e77f72f7b67126ae7fd85e87cccb1d6fc586ff", "fim_s02e20": "333994b8309e760d0eaeaa793b18020b5b7acd9c", "fim_s02e21": "1b085707a89006b05290cc4df7e29030b42c85d0", "fim_s02e22": "cee734596a7c3f57e7c87e8542746142745375c7", "fim_s02e23": "e698ae4ec212fbef527914f5eeb4ee6cae8060fd", "fim_s02e24": "14b3bb367891df57cbd39aa9f34309d6a1658884", "fim_s02e25": "b6e1cc5ec6bcd7c9a14e901a278c7eb940ea93e1", "fim_s02e26": "201d11c9eea301bb85f222b392f88289d1b966d9", "fim_s03e01": "4408659e47d65176add7e46137f67b1756ea0265", "fim_s03e02": "32ace5c7e56f0dc92d192ccc3c5c5eda4ff32f29", "fim_s03e03": "60422fc559b26daeb7392b9c7839c6787e1bbdf0", "fim_s03e04": "51487978bdf587624f56abeb18e98703bb738ab1", "fim_s03e05": "ebd85277ee14163e7f5ec690197e617346032bd3", "fim_s03e06": "36c4ac7e393b268ce76cf7f834a52bcdd170a22c", "fim_s03e07": "7faadb4e07ea50f9660d4d29c5ec98e5080da2e2", "fim_s03e08": "3b4001fce0ab49313f59afcecfdb3944564b3682", "fim_s03e09": "5c045b5532829d502adcc9839cd22b961f5e7342", "fim_s03e10": "8212168e108028e5e4906a4fabba10530f2550a9", "fim_s03e11": "520d1362576df396c8db428fe430b4b14260346c", "fim_s03e12": "735ca37f27f8c75a7d3bc23bd43c933a4aa073c5", "fim_s03e13": "b9c1e54800c8965a2b3a3ab73ba8e1a3b24dd58b", "fim_s04e01": "fd420d33b9f256868ee5e379eb9c8a2bc3b40b09", "fim_s04e02": "73b72f84f85ee26ee9c2728b933c86d7d370a69b", "fim_s04e03": "5bedfc8eb95c9b692daa4a806ff35e6d5c215d1b", "fim_s04e04": "4f6aa4d45802b3304f04e6a4e3a7456933878a21", "fim_s04e05": "a03e2eb3d089408e3b37d3cd258736e81ee2e2cb", "fim_s04e06": "678bd6d70839761b9a4271af8cf55e526c12e6ca", "fim_s04e07": "ca0cd431366b9d29282f1cafed3c4b1194670a89", "fim_s04e08": "81f8192af3404dc563ba9d5567e89e781201226a", "fim_s04e09": "aad68c1cb09aa95482e22cfc9fd4495445cfe1e6", "fim_s04e10": "7be7993cc1a2ea9866f0ee6350765c0973fbab48", "fim_s04e11": "a7476b04649ab027f6419d439b7d7add52342145", "fim_s04e12": "977825b271c87e55d760ef3f93663f1491c16fcb", "fim_s04e13": "3d0fc66b9f550f84d599ae26a0561888620b83a2", "fim_s04e14": "ef3e76f455176c085d74f5571fbe20e378e2db15", "fim_s04e15": "26ef4519511b99b13d112dca008f8933bb0417ef", "fim_s04e16": "09155205ae4c06db7fc224016f3c529b2d72aeeb", "fim_s04e17": "d4516745d73a6c6b06922367370d9b60c1e9c9e2", "fim_s04e18": "0166151f5eb32b945fc0a7c87a83661193dc8a7e", "fim_s04e19": "714b02bc8baf1d892cd7a40d1846e2a98e17f771", "fim_s04e20": "a541743d1e4c68fec52ba8890ffde23b53d76df1", "fim_s04e21": "92ce42d2b108fe9adf0b6be24e91d8f7772a2b97", "fim_s04e22": "e274ef133ad4b64751737407ff2d56fafd404669", "fim_s04e23": "19983b86893a51ff9a9c7dfd975724dcba07f6fd", "fim_s04e24": "477c881d8da11102e280363b61a65fb3da41eecb", "fim_s04e25": "51d3e59472d7393a46303f7f7be084929242145b", "fim_s04e26": "97444afe8ab97a9d31586eb812a2fcd239fd055a", "fim_s05e01": "5dbb872d9bff9054a28e7438558d6a1f8264ff91", "fim_s05e02": "c3f15e75538b723a08fd602faba7714bd6e6d812", "fim_s05e03": "4621407df2da79bd229df24599f5caff56b88ea1", "fim_s05e04": "f839303bc2689ec96d61910ae6c7cf5c209616c7", "fim_s05e05": "5115b64a61e0819007f6382425f397ebe48a06de", "fim_s05e06": "0eb12c6d0baa38299b6afe70450e1c4bf02001fb", "fim_s05e07": "2178552485f41cb2fc30a6e0b5e0b6ff70129ef9", "fim_s05e08": "c5240a27e9956e388ab3aaa75078db473cf4f755", "fim_s05e09": "def459ef5462a3ae16aee3d7897eeeb272f366fc", "fim_s05e10": "b9c0b00bb44280c5a882ab86d65d62c864cd4aca", "fim_s05e11": "c8b22e0bb8d1e8db700ab334b7e1af487028abd1", "fim_s05e12": "d368b0c504d66794db1c576e2665f9e0bdc26149", "fim_s05e13": "9205df05a50ccebe7ef943dd753add0c113977e4", "fim_s05e14": "1f85660cc8a5eb6f02995b9d6791a2a693c78c15", "fim_s05e15": "8a5e01c14f3506c24c62204d57e882b40e77fbad", "fim_s05e16": "935236f72c771c29f37102ef039e91d6650ccb0b", "fim_s05e17": "e0ae2f283a214a454c1f5dc2d7f5266fcf06b625", "fim_s05e18": "aec9d8082e0b5d44df44530ac925eaf06d9eb36c", "fim_s05e19": "897e301efe7314d8b9badce6a976201aeb4a85bc", "fim_s05e20": "0bf2590abedcc2273813e641e19f6a85da0e868f", "fim_s05e21": "319945de56b444a1b576158af1a85f93ee1cce47", "fim_s05e22": "958dcd5354a6a1f92b9f7f825fa621a58a4f24b3", "fim_s05e23": "5ba88f8254ef41fc344e1cc4e19696e1dda8ed4f", "fim_s05e24": "a6f4b609f03c7c3db10f139ae9777b31faa87ade", "fim_s05e25": "2a457cace44f83d75d75a97d51ef8f7610b1ee5e", "fim_s05e26": "6109d956ffa8ef0e5654101188ceac10e0e4b00a", "fim_s06e01": "2f5a0741966fd0a65f39f6a46cf7e211c4abd615", "fim_s06e02": "772a81ef3a8bc4de77e9844a222024b7c6556902", "fim_s06e03": "c1776d478795ef7c1a80163df1d2577020fd67c1", "fim_s06e04": "31df7f9e1b14fe9e2cfda4bc374d42b5f6410ee8", "fim_s06e05": "63ae25a890c4ce775dd1e468cce9ff53ce1555d6", "fim_s06e06": "01eee5ecc47f9194252b0e6a79e3eab1e7c967bf", "fim_s06e07": "fb37ddb83fd33fb21f7ec531d2ab22ee553bfcff", "fim_s06e08": "e59cf84e2bda3c737e8e493eeacd8cc03226ed62", "fim_s06e09": "af76a47b6a4cc4f70c90b5a7a01198c36f9cefe2", "fim_s06e10": "64d83601772b03136d008755ac489d7db6f8782a", "fim_s06e11": "ee4b97ba3d04e45fb95f0bdd3489d2e89082fe46", "fim_s06e12": "624eb125ab329d0cbb6753e0485b3e898ec74f2a", "fim_s06e13": "265a77bbec7ffda9c4bc984a771eac89046d3db4", "fim_s06e14": "60f7e86420539011d092374e1fb9146f8a795108", "fim_s06e15": "b8c38b7727fe2711d5b27f5fd128e4f43f1230c6", "fim_s06e16": "e4e7c18f04dcfe19e6a122edd69dd0705b05815e", "fim_s06e17": "d75ffe2da2f92f8f80671d6a2f6de5ec41909f99", "fim_s06e18": "fb7b89e4a0984b3a31387199bc1e760e5e8e34fc", "fim_s06e19": "e768fb304bc6d8de89496d20649a068c9c482419", "fim_s06e20": "50b39be291c5d541587ec717df9703430f848266", "fim_s06e21": "617546695b583ece594330c591a6e4427eaaf77a", "fim_s06e22": "303d856ed659c809aab459684e1a94d1e4df5f76", "fim_s06e23": "a32aa10d18294a43fd3d6df25a129117f3261397", "fim_s06e24": "25fce908c96c825fd88e5b300f237eb34ec267b5", "fim_s06e25": "0aa2b8bcdc0d515ce645abebf96cf50eabbb2d68", "fim_s06e26": "e28ae456662b264cb791a071d9d8c9fca1b128c6", "fim_s07e01": "c2edfa142bb6c91446a3a747c49c9f3ee2234b9d", "fim_s07e02": "de9c1ca38abce51ed605d86bc6d85daf8fbe595a", "fim_s07e03": "585e527dd175d89f58723725d5aa1d4d27949616", "fim_s07e04": "f94a53d4ca0ff914b35de88f6488d5d0e666ce3b", "fim_s07e05": "58695b0e626411828275efd146d1e2c0953cb054", "fim_s07e06": "ed0d957a8e7f5b35835c9b617159dbef72378c6d", "fim_s07e07": "e75b261b0420f2051558f5d9b7c5d427ce997cbe", "fim_s07e08": "b1a72ee905e56567e9277247aee5ae78ce0ae3af", "fim_s07e09": "59f1d24cdb1b89775ee1c08e697c534b30ee09c0", "fim_s07e10": "fd83d40fcaf077b47fc3e953fcd71a9b55a5d230", "fim_s07e11": "c9a867d1ddc812b691b50cd413aa74d854cbe69f", "fim_s07e12": "df3ab652a7c120292069664886c72a05f6c3d31e", "fim_s07e13": "637041b3645af31dd7467b566f512b491582f59e", "fim_s07e14": "58ebd77188a430a23d63d36c317d40563265448c", "fim_s07e15": "029953957f3f5f96430b9900286671c45ed5029f", "fim_s07e16": "ebd3f72254542a3ab9bd05c8e8833f5ba4961d9e", "fim_s07e17": "c85dbaec5fc5508269cc1a68d8bc2d0fd09a1c5d", "fim_s07e18": "710e6e92c6e755ef6fb833b74b8335d2c4ae1855", "fim_s07e19": "4bc91bc47cc7c1d49682cea2ca5ea0897a14792a", "fim_s07e20": "1066134a286afa3ad42da6d40d800d4d70d10bb8", "fim_s07e21": "438f7eb81b4ef8ef20376bb87a3b07a938354066", "fim_s07e22": "b14f3aabbdafd30cdd91c18b4c8fd31ff6f50e8f", "fim_s07e23": "35e529712b734da8d2e4026f1e7297c064bb5686", "fim_s07e24": "a546204cece37896e6a49df7f53850586bb395ce", "fim_s07e25": "cd3624133eeac941a5a6e26912f9416a762017ef", "fim_s07e26": "7eb71360fafe1fb1f397b3e1ec5023e1a877e575", "fim_s08e01": "076cc70aeedf3b775070a174d24899c99bba48e7", "fim_s08e02": "ef55ff3f9e8be2c295687a9c05e607ef3902b74f", "fim_s08e03": "5d389fd6b7eb480b02f1a42e97ad496349c95ce4", "fim_s08e04": "c309a04a82c5d6b3a805de4ba6fdb1f2a7463283", "fim_s08e05": "83ba497a8e0e6c3cb0e030a0cc45ca2c412f264d", "fim_s08e06": "bb1a1e6aba6414d3d54e42dba64f636b6ccca1f4", "fim_s08e07": "cd90c566bec22350c83c53aa9892b3a31ad6c69a", "fim_s08e08": "7e100b9b553136604e411863d1b01f20b731c747", "fim_s08e09": "4360eba6f9068ddda8534a034e3eaada342bac97", "fim_s08e10": "94ad320e05ce30402d8f22b014f3004d76edfa6b", "fim_s08e11": "03b9ff19482c8db8c700d547025a23b8ca0c9b74", "fim_s08e12": "304d0723742c7fc10ef5d44868daef6684a5f674", "fim_s08e13": "3531ea698101b35a0823a843725e51500b6d70f2", "fim_s08e14": "4830050ce62167e61391b6cece11057caac273e6", "fim_s08e15": "8a2fd1e83457459fe29c548df94de3461d46adfd", "fim_s08e16": "2fb4a3ecc5062a1b5e7515c1f5e87f45151ca319", "fim_s08e17": "27bc30641357df42cae1a8622a6653c29540b550", "fim_s08e18": "c5f759656652a3c4745e2c25e90dae59442f46df", "fim_s08e19": "cb8b76cfcae9ca0496df5c3e8570e927093bce79", "fim_s08e20": "362db545da4fbaabcf31db03151f106ac66fecc1", "fim_s08e21": "c397c7a2c59f905e30d8654ebcb86417bc349dfc", "fim_s08e22": "9e790fb4b4796af8e8c9a7fd4a12cd69628243ba", "fim_s08e23": "19df7e2a55ca6141ac8708d8552fca36e19b593b", "fim_s08e24": "214f2c55f0d2bd625ed32d98bfda086c90d282b8", "fim_s08e25": "ee960deb72558e988f896e6e4bee03972ac598c7", "fim_s08e26": "af21facb8c787fe81b4fc03f7de529a87f425540", "fim_s09e01": "b42a1efd4656e1a935dbdd83bd5090323ec1f3c1", "fim_s09e02": "515fb107f552dfc34b85102276336c77a9daca37", "fim_s09e03": "6a584f94467f7df36ba970c2136f824abcdc8c16", "fim_s09e04": "72b9a3dc0493b064b12500bffaea6f7cf9206f41", "fim_s09e05": "c5540523c71796cc073836e82aca115a4a1c79ba", "fim_s09e06": "847bc311062d64baf047478323cc5aae20993eb9", "fim_s09e07": "6b5a6224ba2d52df20b73e2357a5c78facb0a60f", "fim_s09e08": "2a7fa34a6ddb7e8ee2263756f4d315bc323af94e", "fim_s09e09": "c60d111f27ea50bdb886adc71a8c5f946bfce280", "fim_s09e10": "8adfc1e86af3ec220c8d379a8a397588d98e11a6", "fim_s09e11": "40fb13de7799c29f8bf6f41090a54d24d49233a4", "fim_s09e12": "8cceb7e03154c46c61c6a0691180a654a8fe268d", "fim_s09e13": "7700e2e51cb7c8e634f7cabe28f066c4b1f0f72a", "fim_s09e14": "736f62c0c276f6aa1f911517b82d294dfce4b876", "fim_s09e15": "6a1ddf8ba3c0cd2713522f7582b16a0b48828a41", "fim_s09e16": "18b5e2fa57b4f82b76f3338a5ca44e95a289659e", "fim_s09e17": "d319eedfebff339b116985eeec7db529f952c9de", "fim_s09e18": "baa11cd12bee95a5bf2719b8f7bbe1fa3fad60f5", "fim_s09e19": "1757cfd03e199649d11d566d2c74f9a52d660bc8", "fim_s09e20": "5ba76c741cae8f83fb5ade47b946ba5925224577", "fim_s09e21": "beb7a4d66acd631f2891d2491702db673f026935", "fim_s09e22": "unknown", "fim_s09e23": "unknown", "fim_s09e24": "unknown", "fim_s09e25": "unknown", "fim_s09e26": "unknown", "eqg_original_movie": "a7d91653a1e68c7c1be95cb6f20d334c66266e98", "eqg_friendship_games": "41d5a6e45d13cde4220720e843ad5285d9ab95ff", "eqg_legend_of_everfree": "0ae355e182f7ad116127dcede68c50f247db6876", "eqg_rainbow_rocks": "3e9bccff77192b5acfce95d334805027f1de83e4", } izo_hashes = { "fim_s01e01": "f6a9024c2d5f1b98ed6f65ffb9e633b731633ca1", "fim_s01e02": "837028fbc12f6998da620bd687093cb71da44300", "fim_s01e03": "46cb8d1bdf8a59dbc38a080f7c1ee69bcf6ebe50", "fim_s01e04": "01fd19c33a7cfebae29630469f2b63f00e61ab67", "fim_s01e05": "7ed175f523796df134fe4a91cd924f495e7fc6f0", "fim_s01e06": "b44630407e4ba8aeecb9c9bce3094578a5989be5", "fim_s01e07": "c606a59baf8ea44667cdc1ef32dd0a8b439aa832", "fim_s01e08": "f9ece1c16c067f935f472ca44de2b42cbd4ce72c", "fim_s01e09": "081c9ad4947c28f111c64a2d0dfa3dbb122865a5", "fim_s01e10": "77ea25d4e5d6fbed37c87ef51498465c47850809", "fim_s01e11": "55b6a431b0fdb124106dc3ec3c9b34426780c7be", "fim_s01e12": "92d010ba3ac2b8fef2971ad95fa60b3d88b2dce3", "fim_s01e13": "39c55e57ade0e1dd75ac9f1d9528ebc9eb4049c7", "fim_s01e14": "ff9c70f14c1e9e17c90e5e74f0e6c830662e6641", "fim_s01e15": "c06c7e448eee5390c203692550deaa56c7ca99fa", "fim_s01e16": "f95e0b3e36bf56ad987a338d896c41ecfb5d6ef2", "fim_s01e17": "337e1d6a9d60b516ad4c1c252a2b3b43b110cd4a", "fim_s01e18": "f6adcde8831ca4801cd455c864e47ecf001becbd", "fim_s01e19": "bc91d89bf4361306ee03fbd66161f2c09e932180", "fim_s01e20": "077ef96ebe6b62f7b8dfbad054ccf48eeaa639ad", "fim_s01e21": "e79c648baffc2889e1bcda8bb1e6180ed229bdd0", "fim_s01e22": "d05cbf7e0062b23692542cfef4cb4509e1d1bb7c", "fim_s01e23": "6a6edc7f89bb1f5d297b9163abde7b60218b2f72", "fim_s01e24": "bd7bf5fca6f75306db9d06546a8151cdc8fa2af4", "fim_s01e25": "1f323ccc45e5ed180b91636cafaec314070eeb45", "fim_s01e26": "6c9f96dac12594083cadb1c520d9e9e238127414", "fim_s02e01": "961f47fc2d8617cb513a5c6e963ab5405583b24f", "fim_s02e02": "9cf031d0f8f5fa891a73f086417e3bf9f42f9ccc", "fim_s02e03": "12685c6cf5f1fac7e9114e78f091f42ee5f52b7d", "fim_s02e04": "3c789884ec1d340e55413a813bd39dab4290ef38", "fim_s02e05": "618049dbb04f4c9325f93854e9dd5bf984a459a4", "fim_s02e06": "de634231e70c2f23316944086f2c543c97c19a9f", "fim_s02e07": "4866c807dadb346607332b25c08530931967b4e3", "fim_s02e08": "d1f1885afd3eccc191b586ff7217be732b0d17a5", "fim_s02e09": "d52d0c06cec5ffabc441f2d390ea8260b63b8d47", "fim_s02e10": "9a9845afa5a4b5b64b418294debc45221042ba4f", "fim_s02e11": "f307bf2614e1ce8e19e581a683694a7d37f318c3", "fim_s02e12": "49bc1e0b89c944a5408d7d757779f130ff533ed6", "fim_s02e13": "5e56f840d7d5fbcf4c0724f9fbf6cbf5f00e56f5", "fim_s02e14": "ac86b17bfc3d9341dab3e6282506ead5326c3c70", "fim_s02e15": "1dcb2629a203f0a4f758dfee25930fe18f228a9b", "fim_s02e16": "c17161d4f77d44be1f8c72af6a15df630253ac53", "fim_s02e17": "b08637bc0489faaf9e1e7392536a6c218fadc2ab", "fim_s02e18": "a1191dd442d88bd50037cc8000eeb30b559c53e3", "fim_s02e19": "d9de8c47d06b6a922ba058b72ebfa816f302c573", "fim_s02e20": "fb72d51dab61f932313261a9a424f432e14df024", "fim_s02e21": "319344dd49593b60b2f9188deaac64c7207a91e4", "fim_s02e22": "3dacdacb0831dbf23ea02bc3edaa923b14c0216e", "fim_s02e23": "0415b042a97b52f6d4ee68a7dab90e6032160ab0", "fim_s02e24": "a0a48b6e4609e0c089966043ccdae842cfad7401", "fim_s02e25": "9f52e54d5273baafc607bc2e6503c5b4283a202e", "fim_s02e26": "5cd79ebce7f9302b4fd581c42d8f2ebb9d4dbf11", "fim_s03e01": "ad581fa4b222d653f8f067bf073251aad5c508f5", "fim_s03e02": "26043fa9c1ffd15ce10a32975a81cd0eb024a635", "fim_s03e03": "4ccc98ae5ae3a6845973f05414ee9d5f6bd106e3", "fim_s03e04": "2d028f89db0ab5ecf72126af65a0580d72f37fd8", "fim_s03e05": "a0c2edcc17bb07d07988199d4b8699ae1311cf92", "fim_s03e06": "fd7bdcd134c4e1a1039b58943143cd42c16daf22", "fim_s03e07": "06c566eb542db2fa6591e7d0be03d0588ffc72ce", "fim_s03e08": "fae0c07f7cdd4e071648477e861cf1e16a0bb705", "fim_s03e09": "3753c33c68f01934bc189ec017317f2bcbd70dd6", "fim_s03e10": "82844bb1ebabac572a239d5c08bc50ac602cc4b5", "fim_s03e11": "7cbc0294c8fd6412cd3f60f4d9dfde5a3a4ecae1", "fim_s03e12": "ba91ccd6ecb94859e895c8f3340ff4323ea8739f", "fim_s03e13": "b2bab2e7fa9e171aefcf0996b0987b4af25f16fe", "fim_s04e01": "0b8da7a6025a14aa2a2376d2519052fe883247cf", "fim_s04e02": "16dc2f4e35644a3b6df37ca3270eafa27fbc1dab", "fim_s04e03": "0bab184d4d58e520ea7a2ef54232a3f439076f83", "fim_s04e04": "3e971bd50fd6801a69169c81c9b22d2054b9102e", "fim_s04e05": "4efdae5536326d27db57cea43c8ffb9b486b2cbf", "fim_s04e06": "edb0561371fc453e6fe2474b2401948daab43333", "fim_s04e07": "4bbf58fdd9bc3f33376a44ccf164e8b33e14449e", "fim_s04e08": "f2a5c2ab930579c52aab347e003b6b4bb72c96b6", "fim_s04e09": "7d2f532d3540cd1147c9c3427e0f9a3bd6431162", "fim_s04e10": "f1f1ca515bd1bf1d462c570921c3486ebe99e5ff", "fim_s04e11": "4964977a3956c359d8800ee0f73a65bca0713805", "fim_s04e12": "ef639444d94cb91f057be13feb7d6107011d1c63", "fim_s04e13": "df95a0c61c2eaed4ea3a22d054a14d3533b5e61c", "fim_s04e14": "308cb00a6ab8bd4458759627063b64cff9e71b2b", "fim_s04e15": "19ac49592509505adb2e9cd6bdacb5c6e4ea3fcb", "fim_s04e16": "68f5b5df443dd44f31ba98b797b799022e4b9f58", "fim_s04e17": "06351f66834b2149ce3e4207af795d01f59986d7", "fim_s04e18": "afadfb72c758af6722df942ceb117ff59e26ca83", "fim_s04e19": "c48728696083634780d169c0334ef7570ff9b24c", "fim_s04e20": "bda66b67600367b1a79368e160d94f3f8132bfc3", "fim_s04e21": "36676b142a4765e1b4503067bae814245e5f9d9b", "fim_s04e22": "de86d1413b2d0f6d218f36fa19816d087c8fffda", "fim_s04e23": "06654109453e40c0a771f3f6f931c45638836eeb", "fim_s04e24": "8f0b8efe53b924ede6174b81fc2981accb24a126", "fim_s04e25": "ef09917da342d41a82a56c8688aa8de4fdaeca02", "fim_s04e26": "be4f396dff757242c5eaab50a72e1fe5d1f53223", "fim_s05e01": "dadbddb82ef59384c14c8ff341db3eff97f24ca8", "fim_s05e02": "210dcfc2ae2f3d81ae141c0fe53df47c8a9ab59d", "fim_s05e03": "78416fd1698876844ab838e55075c7d6224c9cc4", "fim_s05e04": "f5e84b08970e3b473361617abdc1f6a0bbe17792", "fim_s05e05": "304ed96576a36cd5646f1bcbe74279cd594871b3", "fim_s05e06": "83cee832d68583db83e6066380ecd0086ca2f1b8", "fim_s05e07": "1a64148801f604cf419f4edd3f0900af1f292112", "fim_s05e08": "6ef331a7f08cd0923f2f0326bf0d4fa0c17626f0", "fim_s05e09": "f7db68bf6e74be8ae26fe7d0c069db66dc48225f", "fim_s05e10": "d8d915e674acab272a146af517629e6d45a2e5c9", "fim_s05e11": "c07f5e9b1be669b59c28ce5aa26eb67546dd074f", "fim_s05e12": "6ea0cf770a228b9537c3c14e1382dd14b50997f7", "fim_s05e13": "27609192ad83af804295d8ae98c00ab8fc22eb5f", "fim_s05e14": "38a6b06c2ab0b3fc4fd7f238f89fe8bd277d28ef", "fim_s05e15": "4688d8c2050235dd5eebf7aa0099812eb5aeca34", "fim_s05e16": "71b2c6c682e142bbd53e80adc298d6b5c6f54123", "fim_s05e17": "a9ef2e4f7bbad929bd21f98563d07adfaab6129e", "fim_s05e18": "806444a811e91498d3cbfb001811cb21d548d4a8", "fim_s05e19": "f862eb7c844ae1f6c721e3fde703488b0e022dc2", "fim_s05e20": "253dc31d2279bfb7ec24228042702ed9e8f27a9a", "fim_s05e21": "beba681c7bf7e04f5537b9dda8d26eea81ad6abc", "fim_s05e22": "4f1118498df9a8a098b945843e2d4708099da8b1", "fim_s05e23": "700b3b57686af13fe370a509f7fe49c93fd12cb6", "fim_s05e24": "eff6b8292ce12f9427a1612e1c5736fada62f071", "fim_s05e25": "e0b85c17a79cb694cfedfe41c9f269ace64354ef", "fim_s05e26": "94173ecac9fa6d993b9e321c24a21d37b5295bdf", "fim_s06e01": "f9abcbff1c6559363dc2d01b1b131b1fd7652075", "fim_s06e02": "4570cb5c8f677081856503e9473b829af9ea5279", "fim_s06e03": "6da71d196d87b5a0d71a0d6cbc8d0739e6f08df3", "fim_s06e04": "a1e365ea7e0a5eee9d3284dc59345ceab167d8a0", "fim_s06e05": "717aca95a8877a9b5b5aaa4224c8eb595efbc8f8", "fim_s06e06": "5a1422a00d41575285b653b087fd72c2880452b5", "fim_s06e07": "e73b105b48d9554661558f0296bc4c34cb33c237", "fim_s06e08": "dda06b88279e0d2bbc536526af548d48b5e4f1e4", "fim_s06e09": "289234b9563758f0ced37eac3e6ed43e9bf2dd49", "fim_s06e10": "0368cfdd86f97d4ba49076cb164452e3aa920beb", "fim_s06e11": "11ab453a3f70f147952d35e9b4158920fc112524", "fim_s06e12": "9b4182df2d0e21170e23552796bcfcd33ecad1f1", "fim_s06e13": "b93b9faf3daa40b569c7d1200175a981dcc27335", "fim_s06e14": "46d41de3ce8e1811225930d27691c4de2049de85", "fim_s06e15": "fcb2fa148c53badc896b38e3b7ca9a9697ac063b", "fim_s06e16": "f3ae9395e43b6f3690795d8ab187af799e87cf29", "fim_s06e17": "498828cb2eee52431057d8b6728eccfb372df368", "fim_s06e18": "010ae66278753eb775d49bae32acab0d1c9c6fcd", "fim_s06e19": "8b6e00372b21906b74161141745cbb8643f937d5", "fim_s06e20": "2ea96c422a1d980cbc431da6df61cbf2bbb00ecf", "fim_s06e21": "fee21ca21647b474b10c57cd95b915f9454e3e4c", "fim_s06e22": "fd05dd1eafabb6ad23294f087400415428083952", "fim_s06e23": "e6b38a84d01530fb1710417c37b14edb9ceb0318", "fim_s06e24": "1d569bd9e83b93165a321d7f1137cc4f856e2f28", "fim_s06e25": "0988ecb76b172b1e0f2ab83c8a81a2b21d90cb23", "fim_s06e26": "7b255c9d24419c79b61cb03e1aa1c51ee869a59b", "fim_s07e01": "13552a4e583122cb929c335f2aabb96868ebe8bf", "fim_s07e02": "7168f16470d158d98e77cd2f956d3c3aeed950f0", "fim_s07e03": "f9d114d4a6ba8728ab1e66e2c72c2ab49afdb425", "fim_s07e04": "a4863d754430365e8f8352f1ea281b33152f62ec", "fim_s07e05": "f7e82abd7dfb363f7cc5d88c056ff39bf88fc91a", "fim_s07e06": "6f7d7a949963cf603d94a1d2f6ea2faba40d6ec0", "fim_s07e07": "f554058057385bf47b8e44247296bdecd74245d7", "fim_s07e08": "34a440cba25b5c0d28c4a4519fd666291c4eacb5", "fim_s07e09": "0a80082dcb8261751db62316624ddb1a5413d084", "fim_s07e10": "33959c2ac2e4210fe679a9d74ed035baa32ff581", "fim_s07e11": "f262360d1b534b9893277f17065efbc006e86597", "fim_s07e12": "decde67c0c63c957c89b3cc4814ec62010e0390f", "fim_s07e13": "a1fd8783e398141ab29969c968a9ef8d926a2761", "fim_s07e14": "538abc0eb0513c9d2915b7c226d63949977c8b45", "fim_s07e15": "ce4422c88246c21768f4188843824dc48bf2da30", "fim_s07e16": "ae4ba22190cdf32599bad2d1fa67371e31fa1bc5", "fim_s07e17": "c6a47aab6a11fccb4846ddabf650a47ed3ad95d9", "fim_s07e18": "800d3ba5074eb59556ff3d2d929fe55f33662467", "fim_s07e19": "49566b3604ef3414064cc5f6e2ddb71716f3c55e", "fim_s07e20": "856e6dc2c66f4c352fdb48625eae6cf8f8e8d0bf", "fim_s07e21": "55d99812da760cd528a735887e822517e06a30f4", "fim_s07e22": "62801071748a63e688e939b306d78b51f5f8e824", "fim_s07e23": "3a70ac5a28606d4e92fb9fec484997c5c45454bc", "fim_s07e24": "c8b532184c09ecb0f9eb468b18746edb95553053", "fim_s07e25": "da047c5cf0eb2e93cd163775fe1729e64ad3b5ca", "fim_s07e26": "b69f4c32c3717abef52fbf43e0f7d95e5ce0a9ae", "fim_s08e01": "695f7365f9fbb7df059f38911ef397c2525ddd0f", "fim_s08e02": "976df812644dbbaa5905dd9e6f2b712bfb9bce5a", "fim_s08e03": "4f8f3f236ad697147aa002d545907ce6427c1ef2", "fim_s08e04": "b3faf68eaf99deec4f5ef9ea162b5ec6df0412ff", "fim_s08e05": "7bdd85dec8e09fda1ec57cf56ce5cafc75188b31", "fim_s08e06": "6a53c91e3dd22ddc069d5cf85225d3ec9a141e2e", "fim_s08e07": "5b788645db606822e99d6188cbad5a06556bcd80", "fim_s08e08": "6cbcfde1eddaef72e4f54fab85602776c3f83f1f", "fim_s08e09": "1c01cfc679b442b2f05184327ca15fa0bb54a04c", "fim_s08e10": "8d680da1acdd9c8636fb6d093e3cae5e1072916c", "fim_s08e11": "3acc0bd1c3bd9ad1924a7baad0ae52d224f1b98f", "fim_s08e12": "814e5e20a1d5cb11b2d40630d8d9f09aadf0f367", "fim_s08e13": "f153eb6197d9587f10d5ef21b2564ecce8a0869c", "fim_s08e14": "003127da6e5d687a916e8f0facb99130f34d6856", "fim_s08e15": "c1db00dfe88352f6d09e90825ccf20aedda29416", "fim_s08e16": "bd5879b90204a8e45534f8f1021aeb05085b0cfb", "fim_s08e17": "d5d073670b0053b023bf7c82ba33bc58ae064e81", "fim_s08e18": "8bac4e2877cbdb46df87f1ca61c4f78ca41cb491", "fim_s08e19": "7d7cb95831868838738a12a215b04e97ab7d15d4", "fim_s08e20": "f631a709607562db55fc15b36657ef4ecddcc039", "fim_s08e21": "9690385208ee229254b635af82a09fa2ab9828c4", "fim_s08e22": "4379434a499ec49628607955e9d711d001c2c709", "fim_s08e23": "9d1bbd5ffa936a38dd50f819ee0ffa61bb8ce9b7", "fim_s08e24": "ae1aa3fa3ad40e000d3e4ce4775d665ff9f54cda", "fim_s08e25": "d51e3fe09bfcf10efcb7e81db41075d1afd48476", "fim_s08e26": "db77fb88f9de6d48f1abd197f366d481be9b76c6", "fim_s09e01": "697b309edad2fea1ac2d21e6c1d6e17dcedcabdb", "fim_s09e02": "756036b6d4932190a97b08c3578a5fd67fce328d", "fim_s09e03": "44a1060f5bf3d587e7bf85ad0dd172fefa636a83", "fim_s09e04": "430e5a5756053b09780400e1cb4bdad0662f492b", "fim_s09e05": "5d0fdc9c8dc60bdff56aec4c031de671f639749b", "fim_s09e06": "bb38c9d23c41df9c22668da7bf535988c3f1356f", "fim_s09e07": "ca180f475678b55150b92382edd7ce1c4350467d", "fim_s09e08": "e01251baa48012eb5a75e7798ca0f7970b08bbd6", "fim_s09e09": "f7d6a40d4c4405a96fdad66917fbb1b013b3d0aa", "fim_s09e10": "5c726e521b2160c19b9010fab42103e181e60ed5", "fim_s09e11": "54c9aedfe15155519c363c10133dd6d2277ad751", "fim_s09e12": "60f163a0092527684966532789bc2d90b8ee6986", "fim_s09e13": "6008d29554185bd36deec16b72368101b791fda3", "fim_s09e14": "44b896f80f0393559ee001e05c64df30a5dda905", "fim_s09e15": "6d880d843f8adecd6ec664128c1d355c486f2753", "fim_s09e16": "682776123da12ab638f3af15a75d7915dab38b4d", "fim_s09e17": "79e62638d6628c7ba97af6f6187a864e15787a7f", "fim_s09e18": "2974b45463f9ac41b4a29f63d9b0d013e311771e", "fim_s09e19": "8989d8a96822f29839bc3330487d7586aa927d37", "fim_s09e20": "088134fe57889434089515c889e590f33afeb099", "fim_s09e21": "7d6749aeb470e71c0e8bd51e3760ae9562f6579d", "fim_s09e22": "a164e1f92185d6fb51f1b5a25196c2377498ea43", "fim_s09e23": "3094600e69bd6934e925f58cb95a2430d1839f54", "fim_s09e24": "ded8ba2b9887a14597e41ec7256d9f45b0f61abc", "fim_s09e25": "ebab1fc09dadb040388d89486aeef1b75885b0b5", "fim_s09e26": "2ba14c1d174eb33155dd3f6ebace2279ba8b4ef6", "eqg_original_movie": "edea58393759cf74326e05d0b0a821e7ff54dc03", "eqg_friendship_games": "9619ab463a28b5498490ed1e43ff83ba247ac309", "eqg_legend_of_everfree": "6b65399c961f71afd2dfa2189d493a412ee3300a", "eqg_rainbow_rocks": "b5a8d331a5e6b37931282207874b334d488d562d", } unmix_hashes = { "fim_s01e01": "104d5aaa0c37225c200ad7b83fcf63034f05522f", "fim_s01e02": "e0d7b62bb2291a3d692f3feccdeefa184e80e7c1", "fim_s01e03": "c29cb960fae5e435016e02fa107ea1bcdbc75eae", "fim_s01e04": "19a6c63c6ebf8be3e040003e8c08627df98e5a44", "fim_s01e05": "9ef84b6c65927182d21b3cc3d4b2a847e6c16c18", "fim_s01e06": "50594babaf65ec42243c4a9800ee1bfebc6bc7d8", "fim_s01e07": "eb05c17e53a166ae660d1f3da6e90b8f14b7c79a", "fim_s01e08": "41577ab4d5a133397e55c03a747d41f4658b4481", "fim_s01e09": "59a587efd4f2292c9969f0e391e54ecf9d7cb594", "fim_s01e10": "df48e4108bfb89a9e6b490b07bf04dbd1bc3494b", "fim_s01e11": "907907fdc17d15f7e65d8ca1e079095b508b18a6", "fim_s01e12": "5a8007535d7b0925f077fde57a63791b71bad523", "fim_s01e13": "d6e26ed11d68262ebd32becca6529509f97c3a58", "fim_s01e14": "a5784986a38730fc1fb430ad0f0272fd0c7d0cf4", "fim_s01e15": "7fd50b75fe4a02337c25f8ff694e390f268a9456", "fim_s01e16": "0344d2ae7ee8f2f6461798e2900ed0ad3bd0b11d", "fim_s01e17": "28b9582d04a27dd13b0557730cf0eadaaa2cd629", "fim_s01e18": "6e84cf840ba430e9527f71ef2a0dc8ce6c218875", "fim_s01e19": "4a9a544a5663a6d7ac731a9083c9cce71aefdb6b", "fim_s01e20": "fa7733b6ab981829b4466c26f185738509ec062e", "fim_s01e21": "388cc179f81c44d23aee3fcffec64b17d3c10f01", "fim_s01e22": "e46ae2a8f92e82be3172ffd7d25f491de7cd0289", "fim_s01e23": "661828a394087d716376dc0139b61137389ae5de", "fim_s01e24": "b227ac1c89f3a25dc4522118750a58e978475b9c", "fim_s01e25": "2004b2aa9015498e1f2d8454856e5883bfbb3315", "fim_s01e26": "f66ca26045de350188d476ab5b501408c551acba", "fim_s02e01": "44b3fe6e76e60b7e70ef85aed2c0b2756c69cef7", "fim_s02e02": "35fff48ca55ecb1e601b57d896330900a55cbc92", "fim_s02e03": "87e1d81dcb3cffbca12550e143cc922e6a4a68b1", "fim_s02e04": "e5463604e47ddcc6c15552e65c4a8ae75ba55730", "fim_s02e05": "33149416515e8a3f04e1db6f636afecd20e4572c", "fim_s02e06": "8516c352f688e3be76cd9db8ca709d5dd62dc5bf", "fim_s02e07": "00f060faae1f1e0b6b82361b4c0fc4ddde90fd1d", "fim_s02e08": "059f6d9b21d6e78d7ff2593f01a032f045bb3246", "fim_s02e09": "153a013f94d0272ccaee7a4197f353a0756b917e", "fim_s02e10": "13de5f5c20c11bcf6afdf01a76db934f370c5afa", "fim_s02e11": "1f1b0e38ec868d3d976444b6b28548e023fd2508", "fim_s02e12": "cc9a39c32d44632161968b5b5babd9a38bc9b385", "fim_s02e13": "00ccf5ce90f50db65a4aeec6a8b6c75f056e9e19", "fim_s02e14": "b737ccfc861470abbc6e9e1d8d4d11dae78cfe8f", "fim_s02e15": "9e03f0e03c39f797f16211b086aea4f660f72684", "fim_s02e16": "ae02167827b0a27794154534fcb16c489df6418c", "fim_s02e17": "4a002a75c00b34ca9cf932a5cf7987b7abf84292", "fim_s02e18": "8fe1a7765ddf8ab1b062ea7ddb968d1c92569876", "fim_s02e19": "c4f73cec0071d37a021d96a0c7e8e8269cfa6b21", "fim_s02e20": "a8a392cbfe39a7f478f308dde7774f5264da1bef", "fim_s02e21": "c19ce429444c7862f6de83fcee8479ede4d2de0b", "fim_s02e22": "9054930ee5a9403da56794aa30ee8a9b8bc66c54", "fim_s02e23": "96baecf46098eccca9b26a587f8e588c622a0443", "fim_s02e24": "d304f143b81026f93628bc26f3018442d6b494b4", "fim_s02e25": "258b39c68661c89a7a3f564f0827382c365ac824", "fim_s02e26": "58df95dbcd6998ace149d16479add90f670b5156", "fim_s03e01": "197d03426d4bbdebff15e7723bb95f5cffccd230", "fim_s03e02": "3623a1cb7dea3c5fd43ed5b5e77c91f83d7ced4b", "fim_s03e03": "4df72e4dc9580acf9a9c598d5fbcb36e1f1429f7", "fim_s03e04": "213ba1e62e23931e58dc4ebb5f4b2dfd735f47ca", "fim_s03e05": "564a8c54b13320aa982ff2209565ef4750564194", "fim_s03e06": "ed1b6fb5b071ab56a78492e54875b082c0c8a074", "fim_s03e07": "a37fc358a86679130e9a4ff8baf0ba55ccf28b56", "fim_s03e08": "e050d4d8d14c26c6ebb859b01a4569d871fcd2b0", "fim_s03e09": "229dbc841e643c820653af1e7f3bd14f07ef1e1b", "fim_s03e10": "50f5e34647763ab9b007c7e86d0d7be94c297845", "fim_s03e11": "df0c039168e062c9dd57e77c974e810255dceb4f", "fim_s03e12": "3bf02a42574ea2a703639adddb3614172d50a525", "fim_s03e13": "788d4bc2660f27bf51fa57c469155d4e3a4488e4", "fim_s04e01": "b538e685b444022c8fce4916da0d422d13f6e576", "fim_s04e02": "aa205fdfd60da95fc4f99fffba883c567421dab1", "fim_s04e03": "fe64dcf231ccc42722fc855a3e74ae3bbbf0e643", "fim_s04e04": "001c014fe5324332f8d00f012efb35fefa47f533", "fim_s04e05": "e8a338e557652d21b161b8026dd5768e05976027", "fim_s04e06": "321426038fc6cc0bc8ddd086a79c3946a27cd436", "fim_s04e07": "611e78559560a6b63a099fc3397ef3a8eb0db4c7", "fim_s04e08": "3a463dd8573a4eb51dabd2efb28cd099681e110e", "fim_s04e09": "de37b8d59676f5f598ea6bda080077a371fbf601", "fim_s04e10": "9f40be459463d5513ba274189548c2b0b3552d36", "fim_s04e11": "bfa1dc10e4c64bdefe2c7ebe0fc2ffb9f4f1e443", "fim_s04e12": "13adfc2233f9a005b6bf708e7abd0b93faba828b", "fim_s04e13": "3fc37f27939d951f313111a9f792715731ed059d", "fim_s04e14": "88a29e567214de2c72b8b5a11466ea8f2e2b5c96", "fim_s04e15": "2728093f445fd3a21d0ac86598cf07f9b20fc45d", "fim_s04e16": "9f720280324c0d491fc75f179d69ca4965f46821", "fim_s04e17": "77437fa49ab73a880859c76ee4b6b522e60e5b5e", "fim_s04e18": "ee79772dd96bb4cf78e53879168b52044a80f83a", "fim_s04e19": "3a93bca017d5fe1f28a1f89c10df0abc49a33e42", "fim_s04e20": "8481897fa44d02624b3a8799ceba22a1b9087060", "fim_s04e21": "74f6f18d61e52673b99ba1c1379fcad2a1125899", "fim_s04e22": "cec016654cdd2f7c73864229f54760ea20b86c8a", "fim_s04e23": "1f894ae6cf86a865988b72b3d1a5060cf2f89a86", "fim_s04e24": "c6a4fe51123ba3ce0b0716df21e9989e8b555ade", "fim_s04e25": "204666928675f6b9bff9e92ef3b2176099180e9b", "fim_s04e26": "47de6d5d70bb61fc746a47d28fc53854d2be441b", "fim_s05e01": "2cafa7cc6ca0414c294c824d63c3a433e07b2f13", "fim_s05e02": "69260d52ed666d0dc97544ed5019e1914d674c53", "fim_s05e03": "5c7db95c1f78f2e7425096b67ce534fc872e6618", "fim_s05e04": "91da34c761324628156d1db94b5a06b77a327c41", "fim_s05e05": "ee74a927b5a5419fe9e851a132fe2d814f699f10", "fim_s05e06": "84d7d6c7cce9a4cca502d9c8a24ed0be862ea702", "fim_s05e07": "2c128bf9d45e75ffddd452ac2f20abd553203641", "fim_s05e08": "2954354ce57c7fedd61d372e8fa908731e3407bb", "fim_s05e09": "317ac1df8d316d175fca6e1715bb9f97cfc1ca13", "fim_s05e10": "f977396916f65a96ca0aa40fee7345d3ce0d34a8", "fim_s05e11": "1df05e8363c41ba68f5eaa2af0c22e29998d066d", "fim_s05e12": "bc08072dc6be4e21dae03db1464ae0b83f657a7f", "fim_s05e13": "674758bd23d8ba73d14858580b60fa5062e28fe0", "fim_s05e14": "047799ab041a30d774938d0dc2672c34935371f8", "fim_s05e15": "66ec2eb2ce01dc382cc32c9c6530374e8a96a938", "fim_s05e16": "4bc308416d420583a69642bfa83c8235fb84e1e1", "fim_s05e17": "8fe15d113baf7a5e140f53729aa11a4722aaec64", "fim_s05e18": "9ff2bf125cf6a07af325cb5cbba3d17b2579c498", "fim_s05e19": "af9a63a629b1fc154e600ab058878457bdc799e1", "fim_s05e20": "ea0635bf7757e53300a07d56887e4b1857cde93c", "fim_s05e21": "3fa37e113e81c54667db87204d68958cb4dfb50f", "fim_s05e22": "b5f54f2e4736b4e1be4d537d8d0edaa219ca16c7", "fim_s05e23": "40bce23e28e12686b667c431072f925b01bdf817", "fim_s05e24": "f08b14a1e6e41dccc4315aade503ed91ce2f71b3", "fim_s05e25": "85272b7929fa219f503ca08637f04b52458b2636", "fim_s05e26": "abe7acfacc78bba55e4da71eab592383e8c2010d", "fim_s06e01": "bb554e4b036f19bfe98b0e11db71732204e71747", "fim_s06e02": "9bcd6ba7d6da353e49da88ee9702a1c9e7b58f9d", "fim_s06e03": "44f278c1c3b1642f92dae0f1dc9d1869cb5edd3e", "fim_s06e04": "a23fc5a9b0171265d4c37debd3e6888b7d5cfadd", "fim_s06e05": "717c3c0a63515266079cafe0d0076cedf3eeb2c9", "fim_s06e06": "0c7f49103a41190b115f8d4d4a4134c10d03c441", "fim_s06e07": "dc1011e5ee80a45544ee9d9c5edd6bca2e0b9b10", "fim_s06e08": "70ebfee1498e73c6e0432e279cda32efc6c611d7", "fim_s06e09": "0ecdf3735a03bb49075e94221e840815e960e736", "fim_s06e10": "eac675ef07f63907353d758cc5dccf82c75bcf9c", "fim_s06e11": "43bd3f861e85bc7e21dc4523e112d82a3193edd0", "fim_s06e12": "cee4185a9957ecbd00b6b6f374fa56715ef04fcd", "fim_s06e13": "e040a7ec92cf7139a415a5e27bff994c8604c320", "fim_s06e14": "b1f071de18a25d9ee6f70674ff3c00379ed44e09", "fim_s06e15": "75473364424e5b4dd91e918657e41b5d4e7f0b61", "fim_s06e16": "a59a451317257474359cc85e523892e94c2f393c", "fim_s06e17": "0bd07609e7209aac921e21d9f33f6a8b16172d65", "fim_s06e18": "3d16b21da67c674735b61adddb831a0e2240d3b9", "fim_s06e19": "3594101ff21359203054973ead72905fd09b5680", "fim_s06e20": "562c8a5c548deef2a915c8fdd9f3ab069e1222ae", "fim_s06e21": "38a558ff7551b56511cb9644dfe2ceb7b0c635ec", "fim_s06e22": "5735868115acbe5c18d0370592eeff689402a3b3", "fim_s06e23": "9a40a8b6b6c304d286f34d2cee80535dc46c618a", "fim_s06e24": "8987aaca1bb4395673093c28ec00023b65abf451", "fim_s06e25": "f33e490c411fe249d90be1e23b455f422bbfea7d", "fim_s06e26": "70a737ebe36d85801294b2d22a462bf41a211a77", "fim_s07e01": "unknown", "fim_s07e02": "unknown", "fim_s07e03": "unknown", "fim_s07e04": "unknown", "fim_s07e05": "unknown", "fim_s07e06": "unknown", "fim_s07e07": "unknown", "fim_s07e08": "unknown", "fim_s07e09": "unknown", "fim_s07e10": "unknown", "fim_s07e11": "unknown", "fim_s07e12": "unknown", "fim_s07e13": "unknown", "fim_s07e14": "unknown", "fim_s07e15": "unknown", "fim_s07e16": "unknown", "fim_s07e17": "unknown", "fim_s07e18": "unknown", "fim_s07e19": "unknown", "fim_s07e20": "unknown", "fim_s07e21": "unknown", "fim_s07e22": "unknown", "fim_s07e23": "unknown", "fim_s07e24": "unknown", "fim_s07e25": "unknown", "fim_s07e26": "unknown", "fim_s08e01": "unknown", "fim_s08e02": "unknown", "fim_s08e03": "unknown", "fim_s08e04": "unknown", "fim_s08e05": "unknown", "fim_s08e06": "unknown", "fim_s08e07": "unknown", "fim_s08e08": "unknown", "fim_s08e09": "unknown", "fim_s08e10": "unknown", "fim_s08e11": "unknown", "fim_s08e12": "unknown", "fim_s08e13": "unknown", "fim_s08e14": "unknown", "fim_s08e15": "unknown", "fim_s08e16": "unknown", "fim_s08e17": "unknown", "fim_s08e18": "unknown", "fim_s08e19": "unknown", "fim_s08e20": "unknown", "fim_s08e21": "unknown", "fim_s08e22": "unknown", "fim_s08e23": "unknown", "fim_s08e24": "unknown", "fim_s08e25": "unknown", "fim_s08e26": "unknown", "fim_s09e01": "unknown", "fim_s09e02": "unknown", "fim_s09e03": "unknown", "fim_s09e04": "unknown", "fim_s09e05": "unknown", "fim_s09e06": "unknown", "fim_s09e07": "unknown", "fim_s09e08": "unknown", "fim_s09e09": "unknown", "fim_s09e10": "unknown", "fim_s09e11": "unknown", "fim_s09e12": "unknown", "fim_s09e13": "unknown", "fim_s09e14": "unknown", "fim_s09e15": "unknown", "fim_s09e16": "unknown", "fim_s09e17": "unknown", "fim_s09e18": "unknown", "fim_s09e19": "unknown", "fim_s09e20": "unknown", "fim_s09e21": "unknown", "fim_s09e22": "eec65346f3f84a2200a5e5918e89d91a2a549a29", "fim_s09e23": "1426f4afd21cc478d175cc89d342d4cb42d358b7", "fim_s09e24": "14ac91b7eda5698feed15ec53084aee5cf0fb571", "fim_s09e25": "60cbea49cec1cd14c94921c0990a42df754abf51", "fim_s09e26": "9b2d98c2eb5e336a97e49b3e35bffee39238414c", "eqg_original_movie": "5ecf9491a5808e7b32accabdf7c57273ad197192", "eqg_friendship_games": "31097404640cced077169c41e7cdf925ced9f165", "eqg_legend_of_everfree": "3104471033ef47b7cd303812dfeb720bd0d63f8a", "eqg_rainbow_rocks": "ff4e528045e846f2221229a3f38bababd5c0b733", }
#Aula02 #operadores aritmetricos print(5+8) print(10-5) print(5*3) print(17/3) print(2**3) #calculando a parte inteira da divisão print(5//2) print(5%2)
class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ # Simple brute force # while val in nums: # nums.remove(val) # return (len(nums)) # Trying a 2 pointer approach which should be faster k = 0 for i in range(len(nums)): if(nums[i] != val): nums[k] = nums[i] k+=1 return k
class SpotUrls: token='85392160' CFID='459565' venice_morning_good='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191103T162900647.mp4' venice_static='https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.20191027T235900139.mp4' lookup={'breakwater': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150603&CFID=459565&CFTOKEN=85392160', 'topanga': 'http://www.surfline.com/surfdata/video-rewind/video_rewind.cfm?id=150605&CFID=491164&CFTOKEN=82948697'} lookupmp4={'breakwater': "https://camrewinds.cdn-surfline.com/live/wc-venicebeachclose.stream.", 'topanga': "https://camrewinds.cdn-surfline.com/live/wc-topangaclose.stream."}
s = input() n = len(s) formulas = s.split('+') ans = 0 for f in formulas: for i in range(len(f)): if f[i] == '0': break if i == len(f) - 1: ans += 1 print(ans)
x = int(input('Qual tabuada multiplicar: ')) print('-' * 15) print('{} x {:2} = {}'.format(x, 1, (x*1))) print('{} x {:2} = {}'.format(x, 2, (x*2))) print('{} x {:2} = {}'.format(x, 3, (x*3))) print('{} x {:2} = {}'.format(x, 4, (x*4))) print('{} x {:2} = {}'.format(x, 5, (x*5))) print('{} x {:2} = {}'.format(x, 6, (x*6))) print('{} x {:2} = {}'.format(x, 7, (x*7))) print('{} x {:2} = {}'.format(x, 8, (x*8))) print('{} x {:2} = {}'.format(x, 9, (x*9))) print('{} x {:2} = {}'.format(x, 10, (x*10))) print('-' * 15)
def FibonacciSearch(arr, key): fib2 = 0 fib1 = 1 fib = fib1 + fib2 while (fib < len(arr)): fib2 = fib1 fib1 = fib fib = fib1 + fib2 index = -1 while (fib > 1): i = min(index + fib2, (len(arr)-1)) if (arr[i] < key): fib = fib1 fib1 = fib2 fib2 = fib - fib1 index = i elif (arr[i] > key): fib = fib2 fib1 = fib1 - fib2 fib2 = fib - fib1 else : return i if(fib1 and index < (len(arr)-1) and arr[index+1] == key): return index+1 return -1 key= 15 arr = [5, 10, 15, 20, 25, 30, 35] ans = FibonacciSearch(arr, key) print(ans) if (ans): print("Found at "+ str(ans+1) +" position") else: print("Not Found")
# from fluprodia import FluidPropertyDiagram def test_main(): pass
""" Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: false Example 3: Input: [1,1,1,3,3,4,3,2,4,2] Output: true """ # in order to check if an array contains any duplicates: # FIRST SOLUTION # make a set from the array (set will ignore duplicates) # compare length of set to length of array # if length is == return true else return false # SECOND SOLUTION # make a hashtable for the array with each item as the key and a count of occurances as valuus # loop through the hashtable and return true if any value is > 0 # THIRD SOLUTION # LOOP THROUGH EACH ITEM IN THE ARRAY # FOR EACH ITERATION OF LOOP LOOP THROUGH THE WHOLE ARRAY AGAIN(EXCLUDING CURRENT ITEM) AND RETURN TRUE IF A MATCH IS FOUND input1 = [1,2,3,1] input2 = [1,2,3,4] input3 = [1,1,1,3,3,4,3,2,4,2] def first_solution (arr): new_set = set(arr) if len(new_set) == len(arr): return False else: return True # print(f"First Solution") # print(first_solution(input1)) # print(first_solution(input2)) # print(first_solution(input3)) def second_solution (arr): arrDict = {} for i in arr: if i not in arrDict: arrDict[i] = 0 arrDict[i] += 1 for key, value in arrDict.items(): if value > 1: return True return False # print(f"Second Solution") # print(second_solution(input1)) # print(second_solution(input2)) # print(second_solution(input3)) def third_solution (arr): for i in range(len(arr)): for j in arr[i + 1:]: if arr[i] == j: return True return False print(f"Third Solution") print(third_solution(input1)) print(third_solution(input2)) print(third_solution(input3))
# -*- coding: utf-8 -*- """ Copyright (c) 2010-2014 Jennifer Ennis, William Tisäter. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>. """ def time_zone_by_country_and_region(country_code, region_code=None): """ Returns time zone from country and region code. :arg country_code: Country code :arg region_code: Region code """ timezone = country_dict.get(country_code) if not timezone: return None if isinstance(timezone, str): return timezone return timezone.get(region_code) country_dict = { 'AD': 'Europe/Andorra', 'AE': 'Asia/Dubai', 'AF': 'Asia/Kabul', 'AG': 'America/Antigua', 'AI': 'America/Anguilla', 'AL': 'Europe/Tirane', 'AM': 'Asia/Yerevan', 'AN': 'America/Curacao', 'AO': 'Africa/Luanda', 'AR': { '01': 'America/Argentina/Buenos_Aires', '02': 'America/Argentina/Catamarca', '03': 'America/Argentina/Tucuman', '04': 'America/Argentina/Rio_Gallegos', '05': 'America/Argentina/Cordoba', '06': 'America/Argentina/Tucuman', '07': 'America/Argentina/Buenos_Aires', '08': 'America/Argentina/Buenos_Aires', '09': 'America/Argentina/Tucuman', '10': 'America/Argentina/Jujuy', '11': 'America/Argentina/San_Luis', '12': 'America/Argentina/La_Rioja', '13': 'America/Argentina/Mendoza', '14': 'America/Argentina/Buenos_Aires', '15': 'America/Argentina/San_Luis', '16': 'America/Argentina/Buenos_Aires', '17': 'America/Argentina/Salta', '18': 'America/Argentina/San_Juan', '19': 'America/Argentina/San_Luis', '20': 'America/Argentina/Rio_Gallegos', '21': 'America/Argentina/Buenos_Aires', '22': 'America/Argentina/Catamarca', '23': 'America/Argentina/Ushuaia', '24': 'America/Argentina/Tucuman' }, 'AS': 'US/Samoa', 'AT': 'Europe/Vienna', 'AU': { '01': 'Australia/Canberra', '02': 'Australia/NSW', '03': 'Australia/North', '04': 'Australia/Queensland', '05': 'Australia/South', '06': 'Australia/Tasmania', '07': 'Australia/Victoria', '08': 'Australia/West' }, 'AW': 'America/Aruba', 'AX': 'Europe/Mariehamn', 'AZ': 'Asia/Baku', 'BA': 'Europe/Sarajevo', 'BB': 'America/Barbados', 'BD': 'Asia/Dhaka', 'BE': 'Europe/Brussels', 'BF': 'Africa/Ouagadougou', 'BG': 'Europe/Sofia', 'BH': 'Asia/Bahrain', 'BI': 'Africa/Bujumbura', 'BJ': 'Africa/Porto-Novo', 'BL': 'America/St_Barthelemy', 'BM': 'Atlantic/Bermuda', 'BN': 'Asia/Brunei', 'BO': 'America/La_Paz', 'BQ': 'America/Curacao', 'BR': { '01': 'America/Rio_Branco', '02': 'America/Maceio', '03': 'America/Sao_Paulo', '04': 'America/Manaus', '05': 'America/Bahia', '06': 'America/Fortaleza', '07': 'America/Sao_Paulo', '08': 'America/Sao_Paulo', '11': 'America/Campo_Grande', '13': 'America/Belem', '14': 'America/Cuiaba', '15': 'America/Sao_Paulo', '16': 'America/Belem', '17': 'America/Recife', '18': 'America/Sao_Paulo', '20': 'America/Fortaleza', '21': 'America/Sao_Paulo', '22': 'America/Recife', '23': 'America/Sao_Paulo', '24': 'America/Porto_Velho', '25': 'America/Boa_Vista', '26': 'America/Sao_Paulo', '27': 'America/Sao_Paulo', '28': 'America/Maceio', '29': 'America/Sao_Paulo', '30': 'America/Recife', '31': 'America/Araguaina' }, 'BS': 'America/Nassau', 'BT': 'Asia/Thimphu', 'BW': 'Africa/Gaborone', 'BY': 'Europe/Minsk', 'BZ': 'America/Belize', 'CA': { 'AB': 'America/Edmonton', 'BC': 'America/Vancouver', 'MB': 'America/Winnipeg', 'NB': 'America/Halifax', 'NL': 'America/St_Johns', 'NS': 'America/Halifax', 'NT': 'America/Yellowknife', 'NU': 'America/Rankin_Inlet', 'ON': 'America/Toronto', 'PE': 'America/Halifax', 'QC': 'America/Montreal', 'SK': 'America/Regina', 'YT': 'America/Whitehorse' }, 'CC': 'Indian/Cocos', 'CD': { '02': 'Africa/Kinshasa', '05': 'Africa/Lubumbashi', '06': 'Africa/Kinshasa', '08': 'Africa/Kinshasa', '10': 'Africa/Lubumbashi', '11': 'Africa/Lubumbashi', '12': 'Africa/Lubumbashi' }, 'CF': 'Africa/Bangui', 'CG': 'Africa/Brazzaville', 'CH': 'Europe/Zurich', 'CI': 'Africa/Abidjan', 'CK': 'Pacific/Rarotonga', 'CL': 'Chile/Continental', 'CM': 'Africa/Lagos', 'CN': { '01': 'Asia/Shanghai', '02': 'Asia/Shanghai', '03': 'Asia/Shanghai', '04': 'Asia/Shanghai', '05': 'Asia/Harbin', '06': 'Asia/Chongqing', '07': 'Asia/Shanghai', '08': 'Asia/Harbin', '09': 'Asia/Shanghai', '10': 'Asia/Shanghai', '11': 'Asia/Chongqing', '12': 'Asia/Shanghai', '13': 'Asia/Urumqi', '14': 'Asia/Chongqing', '15': 'Asia/Chongqing', '16': 'Asia/Chongqing', '18': 'Asia/Chongqing', '19': 'Asia/Harbin', '20': 'Asia/Harbin', '21': 'Asia/Chongqing', '22': 'Asia/Harbin', '23': 'Asia/Shanghai', '24': 'Asia/Chongqing', '25': 'Asia/Shanghai', '26': 'Asia/Chongqing', '28': 'Asia/Shanghai', '29': 'Asia/Chongqing', '30': 'Asia/Chongqing', '31': 'Asia/Chongqing', '32': 'Asia/Chongqing', '33': 'Asia/Chongqing' }, 'CO': 'America/Bogota', 'CR': 'America/Costa_Rica', 'CU': 'America/Havana', 'CV': 'Atlantic/Cape_Verde', 'CW': 'America/Curacao', 'CX': 'Indian/Christmas', 'CY': 'Asia/Nicosia', 'CZ': 'Europe/Prague', 'DE': 'Europe/Berlin', 'DJ': 'Africa/Djibouti', 'DK': 'Europe/Copenhagen', 'DM': 'America/Dominica', 'DO': 'America/Santo_Domingo', 'DZ': 'Africa/Algiers', 'EC': { '01': 'Pacific/Galapagos', '02': 'America/Guayaquil', '03': 'America/Guayaquil', '04': 'America/Guayaquil', '05': 'America/Guayaquil', '06': 'America/Guayaquil', '07': 'America/Guayaquil', '08': 'America/Guayaquil', '09': 'America/Guayaquil', '10': 'America/Guayaquil', '11': 'America/Guayaquil', '12': 'America/Guayaquil', '13': 'America/Guayaquil', '14': 'America/Guayaquil', '15': 'America/Guayaquil', '17': 'America/Guayaquil', '18': 'America/Guayaquil', '19': 'America/Guayaquil', '20': 'America/Guayaquil', '22': 'America/Guayaquil' }, 'EE': 'Europe/Tallinn', 'EG': 'Africa/Cairo', 'EH': 'Africa/El_Aaiun', 'ER': 'Africa/Asmera', 'ES': { '07': 'Europe/Madrid', '27': 'Europe/Madrid', '29': 'Europe/Madrid', '31': 'Europe/Madrid', '32': 'Europe/Madrid', '34': 'Europe/Madrid', '39': 'Europe/Madrid', '51': 'Africa/Ceuta', '52': 'Europe/Madrid', '53': 'Atlantic/Canary', '54': 'Europe/Madrid', '55': 'Europe/Madrid', '56': 'Europe/Madrid', '57': 'Europe/Madrid', '58': 'Europe/Madrid', '59': 'Europe/Madrid', '60': 'Europe/Madrid' }, 'ET': 'Africa/Addis_Ababa', 'FI': 'Europe/Helsinki', 'FJ': 'Pacific/Fiji', 'FK': 'Atlantic/Stanley', 'FO': 'Atlantic/Faeroe', 'FR': 'Europe/Paris', 'FX': 'Europe/Paris', 'GA': 'Africa/Libreville', 'GB': 'Europe/London', 'GD': 'America/Grenada', 'GE': 'Asia/Tbilisi', 'GF': 'America/Cayenne', 'GG': 'Europe/Guernsey', 'GH': 'Africa/Accra', 'GI': 'Europe/Gibraltar', 'GL': { '01': 'America/Thule', '02': 'America/Godthab', '03': 'America/Godthab' }, 'GM': 'Africa/Banjul', 'GN': 'Africa/Conakry', 'GP': 'America/Guadeloupe', 'GQ': 'Africa/Malabo', 'GR': 'Europe/Athens', 'GS': 'Atlantic/South_Georgia', 'GT': 'America/Guatemala', 'GU': 'Pacific/Guam', 'GW': 'Africa/Bissau', 'GY': 'America/Guyana', 'HK': 'Asia/Hong_Kong', 'HN': 'America/Tegucigalpa', 'HR': 'Europe/Zagreb', 'HT': 'America/Port-au-Prince', 'HU': 'Europe/Budapest', 'ID': { '01': 'Asia/Pontianak', '02': 'Asia/Makassar', '03': 'Asia/Jakarta', '04': 'Asia/Jakarta', '05': 'Asia/Jakarta', '06': 'Asia/Jakarta', '07': 'Asia/Jakarta', '08': 'Asia/Jakarta', '09': 'Asia/Jayapura', '10': 'Asia/Jakarta', '11': 'Asia/Pontianak', '12': 'Asia/Makassar', '13': 'Asia/Makassar', '14': 'Asia/Makassar', '15': 'Asia/Jakarta', '16': 'Asia/Makassar', '17': 'Asia/Makassar', '18': 'Asia/Makassar', '19': 'Asia/Pontianak', '20': 'Asia/Makassar', '21': 'Asia/Makassar', '22': 'Asia/Makassar', '23': 'Asia/Makassar', '24': 'Asia/Jakarta', '25': 'Asia/Pontianak', '26': 'Asia/Pontianak', '30': 'Asia/Jakarta', '31': 'Asia/Makassar', '33': 'Asia/Jakarta' }, 'IE': 'Europe/Dublin', 'IL': 'Asia/Jerusalem', 'IM': 'Europe/Isle_of_Man', 'IN': 'Asia/Calcutta', 'IO': 'Indian/Chagos', 'IQ': 'Asia/Baghdad', 'IR': 'Asia/Tehran', 'IS': 'Atlantic/Reykjavik', 'IT': 'Europe/Rome', 'JE': 'Europe/Jersey', 'JM': 'America/Jamaica', 'JO': 'Asia/Amman', 'JP': 'Asia/Tokyo', 'KE': 'Africa/Nairobi', 'KG': 'Asia/Bishkek', 'KH': 'Asia/Phnom_Penh', 'KI': 'Pacific/Tarawa', 'KM': 'Indian/Comoro', 'KN': 'America/St_Kitts', 'KP': 'Asia/Pyongyang', 'KR': 'Asia/Seoul', 'KW': 'Asia/Kuwait', 'KY': 'America/Cayman', 'KZ': { '01': 'Asia/Almaty', '02': 'Asia/Almaty', '03': 'Asia/Qyzylorda', '04': 'Asia/Aqtobe', '05': 'Asia/Qyzylorda', '06': 'Asia/Aqtau', '07': 'Asia/Oral', '08': 'Asia/Qyzylorda', '09': 'Asia/Aqtau', '10': 'Asia/Qyzylorda', '11': 'Asia/Almaty', '12': 'Asia/Qyzylorda', '13': 'Asia/Aqtobe', '14': 'Asia/Qyzylorda', '15': 'Asia/Almaty', '16': 'Asia/Aqtobe', '17': 'Asia/Almaty' }, 'LA': 'Asia/Vientiane', 'LB': 'Asia/Beirut', 'LC': 'America/St_Lucia', 'LI': 'Europe/Vaduz', 'LK': 'Asia/Colombo', 'LR': 'Africa/Monrovia', 'LS': 'Africa/Maseru', 'LT': 'Europe/Vilnius', 'LU': 'Europe/Luxembourg', 'LV': 'Europe/Riga', 'LY': 'Africa/Tripoli', 'MA': 'Africa/Casablanca', 'MC': 'Europe/Monaco', 'MD': 'Europe/Chisinau', 'ME': 'Europe/Podgorica', 'MF': 'America/Marigot', 'MG': 'Indian/Antananarivo', 'MK': 'Europe/Skopje', 'ML': 'Africa/Bamako', 'MM': 'Asia/Rangoon', 'MN': 'Asia/Choibalsan', 'MO': 'Asia/Macao', 'MP': 'Pacific/Saipan', 'MQ': 'America/Martinique', 'MR': 'Africa/Nouakchott', 'MS': 'America/Montserrat', 'MT': 'Europe/Malta', 'MU': 'Indian/Mauritius', 'MV': 'Indian/Maldives', 'MW': 'Africa/Blantyre', 'MX': { '01': 'America/Mexico_City', '02': 'America/Tijuana', '03': 'America/Hermosillo', '04': 'America/Merida', '05': 'America/Mexico_City', '06': 'America/Chihuahua', '07': 'America/Monterrey', '08': 'America/Mexico_City', '09': 'America/Mexico_City', '10': 'America/Mazatlan', '11': 'America/Mexico_City', '12': 'America/Mexico_City', '13': 'America/Mexico_City', '14': 'America/Mazatlan', '15': 'America/Chihuahua', '16': 'America/Mexico_City', '17': 'America/Mexico_City', '18': 'America/Mazatlan', '19': 'America/Monterrey', '20': 'America/Mexico_City', '21': 'America/Mexico_City', '22': 'America/Mexico_City', '23': 'America/Cancun', '24': 'America/Mexico_City', '25': 'America/Mazatlan', '26': 'America/Hermosillo', '27': 'America/Merida', '28': 'America/Monterrey', '29': 'America/Mexico_City', '30': 'America/Mexico_City', '31': 'America/Merida', '32': 'America/Monterrey' }, 'MY': { '01': 'Asia/Kuala_Lumpur', '02': 'Asia/Kuala_Lumpur', '03': 'Asia/Kuala_Lumpur', '04': 'Asia/Kuala_Lumpur', '05': 'Asia/Kuala_Lumpur', '06': 'Asia/Kuala_Lumpur', '07': 'Asia/Kuala_Lumpur', '08': 'Asia/Kuala_Lumpur', '09': 'Asia/Kuala_Lumpur', '11': 'Asia/Kuching', '12': 'Asia/Kuala_Lumpur', '13': 'Asia/Kuala_Lumpur', '14': 'Asia/Kuala_Lumpur', '15': 'Asia/Kuching', '16': 'Asia/Kuching' }, 'MZ': 'Africa/Maputo', 'NA': 'Africa/Windhoek', 'NC': 'Pacific/Noumea', 'NE': 'Africa/Niamey', 'NF': 'Pacific/Norfolk', 'NG': 'Africa/Lagos', 'NI': 'America/Managua', 'NL': 'Europe/Amsterdam', 'NO': 'Europe/Oslo', 'NP': 'Asia/Katmandu', 'NR': 'Pacific/Nauru', 'NU': 'Pacific/Niue', 'NZ': { '85': 'Pacific/Auckland', 'E7': 'Pacific/Auckland', 'E8': 'Pacific/Auckland', 'E9': 'Pacific/Auckland', 'F1': 'Pacific/Auckland', 'F2': 'Pacific/Auckland', 'F3': 'Pacific/Auckland', 'F4': 'Pacific/Auckland', 'F5': 'Pacific/Auckland', 'F7': 'Pacific/Chatham', 'F8': 'Pacific/Auckland', 'F9': 'Pacific/Auckland', 'G1': 'Pacific/Auckland', 'G2': 'Pacific/Auckland', 'G3': 'Pacific/Auckland' }, 'OM': 'Asia/Muscat', 'PA': 'America/Panama', 'PE': 'America/Lima', 'PF': 'Pacific/Marquesas', 'PG': 'Pacific/Port_Moresby', 'PH': 'Asia/Manila', 'PK': 'Asia/Karachi', 'PL': 'Europe/Warsaw', 'PM': 'America/Miquelon', 'PN': 'Pacific/Pitcairn', 'PR': 'America/Puerto_Rico', 'PS': 'Asia/Gaza', 'PT': { '02': 'Europe/Lisbon', '03': 'Europe/Lisbon', '04': 'Europe/Lisbon', '05': 'Europe/Lisbon', '06': 'Europe/Lisbon', '07': 'Europe/Lisbon', '08': 'Europe/Lisbon', '09': 'Europe/Lisbon', '10': 'Atlantic/Madeira', '11': 'Europe/Lisbon', '13': 'Europe/Lisbon', '14': 'Europe/Lisbon', '16': 'Europe/Lisbon', '17': 'Europe/Lisbon', '18': 'Europe/Lisbon', '19': 'Europe/Lisbon', '20': 'Europe/Lisbon', '21': 'Europe/Lisbon', '22': 'Europe/Lisbon' }, 'PW': 'Pacific/Palau', 'PY': 'America/Asuncion', 'QA': 'Asia/Qatar', 'RE': 'Indian/Reunion', 'RO': 'Europe/Bucharest', 'RS': 'Europe/Belgrade', 'RU': { '01': 'Europe/Volgograd', '02': 'Asia/Irkutsk', '03': 'Asia/Novokuznetsk', '04': 'Asia/Novosibirsk', '05': 'Asia/Vladivostok', '06': 'Europe/Moscow', '07': 'Europe/Volgograd', '08': 'Europe/Samara', '09': 'Europe/Moscow', '10': 'Europe/Moscow', '11': 'Asia/Irkutsk', '13': 'Asia/Yekaterinburg', '14': 'Asia/Irkutsk', '15': 'Asia/Anadyr', '16': 'Europe/Samara', '17': 'Europe/Volgograd', '18': 'Asia/Krasnoyarsk', '20': 'Asia/Irkutsk', '21': 'Europe/Moscow', '22': 'Europe/Volgograd', '23': 'Europe/Kaliningrad', '24': 'Europe/Volgograd', '25': 'Europe/Moscow', '26': 'Asia/Kamchatka', '27': 'Europe/Volgograd', '28': 'Europe/Moscow', '29': 'Asia/Novokuznetsk', '30': 'Asia/Vladivostok', '31': 'Asia/Krasnoyarsk', '32': 'Asia/Omsk', '33': 'Asia/Yekaterinburg', '34': 'Asia/Yekaterinburg', '35': 'Asia/Yekaterinburg', '36': 'Asia/Anadyr', '37': 'Europe/Moscow', '38': 'Europe/Volgograd', '39': 'Asia/Krasnoyarsk', '40': 'Asia/Yekaterinburg', '41': 'Europe/Moscow', '42': 'Europe/Moscow', '43': 'Europe/Moscow', '44': 'Asia/Magadan', '45': 'Europe/Samara', '46': 'Europe/Samara', '47': 'Europe/Moscow', '48': 'Europe/Moscow', '49': 'Europe/Moscow', '50': 'Asia/Yekaterinburg', '51': 'Europe/Moscow', '52': 'Europe/Moscow', '53': 'Asia/Novosibirsk', '54': 'Asia/Omsk', '55': 'Europe/Samara', '56': 'Europe/Moscow', '57': 'Europe/Samara', '58': 'Asia/Yekaterinburg', '59': 'Asia/Vladivostok', '60': 'Europe/Kaliningrad', '61': 'Europe/Volgograd', '62': 'Europe/Moscow', '63': 'Asia/Yakutsk', '64': 'Asia/Sakhalin', '65': 'Europe/Samara', '66': 'Europe/Moscow', '67': 'Europe/Samara', '68': 'Europe/Volgograd', '69': 'Europe/Moscow', '70': 'Europe/Volgograd', '71': 'Asia/Yekaterinburg', '72': 'Europe/Moscow', '73': 'Europe/Samara', '74': 'Asia/Krasnoyarsk', '75': 'Asia/Novosibirsk', '76': 'Europe/Moscow', '77': 'Europe/Moscow', '78': 'Asia/Yekaterinburg', '79': 'Asia/Irkutsk', '80': 'Asia/Yekaterinburg', '81': 'Europe/Samara', '82': 'Asia/Irkutsk', '83': 'Europe/Moscow', '84': 'Europe/Volgograd', '85': 'Europe/Moscow', '86': 'Europe/Moscow', '87': 'Asia/Novosibirsk', '88': 'Europe/Moscow', '89': 'Asia/Vladivostok' }, 'RW': 'Africa/Kigali', 'SA': 'Asia/Riyadh', 'SB': 'Pacific/Guadalcanal', 'SC': 'Indian/Mahe', 'SD': 'Africa/Khartoum', 'SE': 'Europe/Stockholm', 'SG': 'Asia/Singapore', 'SH': 'Atlantic/St_Helena', 'SI': 'Europe/Ljubljana', 'SJ': 'Arctic/Longyearbyen', 'SK': 'Europe/Bratislava', 'SL': 'Africa/Freetown', 'SM': 'Europe/San_Marino', 'SN': 'Africa/Dakar', 'SO': 'Africa/Mogadishu', 'SR': 'America/Paramaribo', 'SS': 'Africa/Juba', 'ST': 'Africa/Sao_Tome', 'SV': 'America/El_Salvador', 'SX': 'America/Curacao', 'SY': 'Asia/Damascus', 'SZ': 'Africa/Mbabane', 'TC': 'America/Grand_Turk', 'TD': 'Africa/Ndjamena', 'TF': 'Indian/Kerguelen', 'TG': 'Africa/Lome', 'TH': 'Asia/Bangkok', 'TJ': 'Asia/Dushanbe', 'TK': 'Pacific/Fakaofo', 'TL': 'Asia/Dili', 'TM': 'Asia/Ashgabat', 'TN': 'Africa/Tunis', 'TO': 'Pacific/Tongatapu', 'TR': 'Asia/Istanbul', 'TT': 'America/Port_of_Spain', 'TV': 'Pacific/Funafuti', 'TW': 'Asia/Taipei', 'TZ': 'Africa/Dar_es_Salaam', 'UA': { '01': 'Europe/Kiev', '02': 'Europe/Kiev', '03': 'Europe/Uzhgorod', '04': 'Europe/Zaporozhye', '05': 'Europe/Zaporozhye', '06': 'Europe/Uzhgorod', '07': 'Europe/Zaporozhye', '08': 'Europe/Simferopol', '09': 'Europe/Kiev', '10': 'Europe/Zaporozhye', '11': 'Europe/Simferopol', '13': 'Europe/Kiev', '14': 'Europe/Zaporozhye', '15': 'Europe/Uzhgorod', '16': 'Europe/Zaporozhye', '17': 'Europe/Simferopol', '18': 'Europe/Zaporozhye', '19': 'Europe/Kiev', '20': 'Europe/Simferopol', '21': 'Europe/Kiev', '22': 'Europe/Uzhgorod', '23': 'Europe/Kiev', '24': 'Europe/Uzhgorod', '25': 'Europe/Uzhgorod', '26': 'Europe/Zaporozhye', '27': 'Europe/Kiev' }, 'UG': 'Africa/Kampala', 'US': { 'AK': 'America/Anchorage', 'AL': 'America/Chicago', 'AR': 'America/Chicago', 'AZ': 'America/Phoenix', 'CA': 'America/Los_Angeles', 'CO': 'America/Denver', 'CT': 'America/New_York', 'DC': 'America/New_York', 'DE': 'America/New_York', 'FL': 'America/New_York', 'GA': 'America/New_York', 'HI': 'Pacific/Honolulu', 'IA': 'America/Chicago', 'ID': 'America/Denver', 'IL': 'America/Chicago', 'IN': 'America/Indianapolis', 'KS': 'America/Chicago', 'KY': 'America/New_York', 'LA': 'America/Chicago', 'MA': 'America/New_York', 'MD': 'America/New_York', 'ME': 'America/New_York', 'MI': 'America/New_York', 'MN': 'America/Chicago', 'MO': 'America/Chicago', 'MS': 'America/Chicago', 'MT': 'America/Denver', 'NC': 'America/New_York', 'ND': 'America/Chicago', 'NE': 'America/Chicago', 'NH': 'America/New_York', 'NJ': 'America/New_York', 'NM': 'America/Denver', 'NV': 'America/Los_Angeles', 'NY': 'America/New_York', 'OH': 'America/New_York', 'OK': 'America/Chicago', 'OR': 'America/Los_Angeles', 'PA': 'America/New_York', 'RI': 'America/New_York', 'SC': 'America/New_York', 'SD': 'America/Chicago', 'TN': 'America/Chicago', 'TX': 'America/Chicago', 'UT': 'America/Denver', 'VA': 'America/New_York', 'VT': 'America/New_York', 'WA': 'America/Los_Angeles', 'WI': 'America/Chicago', 'WV': 'America/New_York', 'WY': 'America/Denver' }, 'UY': 'America/Montevideo', 'UZ': { '01': 'Asia/Tashkent', '02': 'Asia/Samarkand', '03': 'Asia/Tashkent', '06': 'Asia/Tashkent', '07': 'Asia/Samarkand', '08': 'Asia/Samarkand', '09': 'Asia/Samarkand', '10': 'Asia/Samarkand', '12': 'Asia/Samarkand', '13': 'Asia/Tashkent', '14': 'Asia/Tashkent' }, 'VA': 'Europe/Vatican', 'VC': 'America/St_Vincent', 'VE': 'America/Caracas', 'VG': 'America/Tortola', 'VI': 'America/St_Thomas', 'VN': 'Asia/Phnom_Penh', 'VU': 'Pacific/Efate', 'WF': 'Pacific/Wallis', 'WS': 'Pacific/Samoa', 'YE': 'Asia/Aden', 'YT': 'Indian/Mayotte', 'YU': 'Europe/Belgrade', 'ZA': 'Africa/Johannesburg', 'ZM': 'Africa/Lusaka', 'ZW': 'Africa/Harare' }
a=0 pg=[[]] # input the number of chapters # input the maximum number of problems per page x,y=map(int,input().split(' ')) # input the number of problems in each chapter l=list(map(int,input().split(' '))) for i in l: k = [[] for _ in range(100)] for j in range(i): k[j//y].append(j+1) for i in k: if i != []: pg.append(i) for i in range(len(pg)): if i in pg[i]: a+=1 # Print the number of special problems in Lisa's workbook print(a)
male = [ 'David', 'Maximilian', 'Lukas', 'Tobias', 'Paul', 'Elias', 'Jakob', 'Jonas', 'Alexander', 'Felix', 'Leon', 'Simon', 'Sebastian', 'Julian', 'Fabian', 'Florian', 'Noah', 'Moritz', 'Samuel', 'Raphael', 'Luca', 'Leo', 'Daniel', 'Valentin', 'Matthias', 'Benjamin', 'Niklas', 'Johannes', 'Luis', 'Michael', 'Lorenz', 'Ben', 'Matteo', 'Philipp', 'Nico', 'Dominik', 'Gabriel', 'Anton', 'Jonathan', 'Liam', 'Emil', 'Max', 'Theodor', 'Adrian', 'Finn', 'Stefan', 'Vincent', 'Josef', 'Oliver', 'Andreas', 'Marcel', 'Konstantin', 'Thomas', 'Jan', 'Manuel', 'Kilian', 'Oskar', 'Theo', 'Fabio', 'Martin' ] female = [ 'Anna', 'Emma', 'Marie', 'Lena', 'Sophia', 'Laura', 'Mia', 'Sophie', 'Emilia', 'Lea', 'Valentina', 'Johanna', 'Leonie', 'Julia', 'Hannah', 'Lara', 'Sarah', 'Elena', 'Luisa', 'Magdalena', 'Katharina', 'Hanna', 'Sara', 'Lina', 'Amelie', 'Lisa', 'Emily', 'Nora', 'Theresa', 'Helena', 'Marlene', 'Isabella', 'Nina', 'Jana', 'Ella', 'Alina', 'Elisa', 'Miriam', 'Maria', 'Valerie', 'Franziska', 'Sofia', 'Clara', 'Paula', 'Annika', 'Klara', 'Viktoria', 'Charlotte', 'Olivia', 'Eva', 'Antonia', 'Elisabeth', 'Pia', 'Rosa', 'Selina', 'Linda', 'Livia', 'Vanessa', 'Mila', 'Elina' ] last = [ 'Gruber', 'Huber', 'Bauer', 'Wagner', 'Müller', 'Pichler', 'Steiner', 'Mayer', 'Moser', 'Hofer', 'Berger', 'Leitner', 'Fuchs', 'Fischer', 'Eder', 'Schmid', 'Weber', 'Schneider', 'Schwarz', 'Winkler', 'Maier', 'Reiter', 'Schmidt', 'Mayr', 'Lang', 'Baumgartner', 'Brunner', 'Wimmer', 'Auer', 'Egger', 'Wolf', 'Lechner', 'Wallner', 'Aigner', 'Binder', 'Ebner', 'Koller', 'Haas', 'Lehner', 'Schuster', 'Graf', 'Holzer', 'Haider', 'Lackner', 'Wieser', 'Koch', 'Strasser', 'Weiss', 'Stadler', 'Böhm', 'König', 'Krenn', 'Kaiser', 'Kaufmann', 'Fink', 'Winter', 'Hofbauer', 'Kern', 'Hauser', 'Mair', 'Fritz', 'Maurer', 'Hofmann', 'Seidl', 'Karner', 'Hackl', 'Riegler', 'Resch', 'Strobl', 'Ortner', 'Posch', 'Reisinger', 'Schober', 'Mayrhofer', 'Riedl', 'Rainer', 'Kogler', 'Klein', 'Neubauer', 'Schwaiger', 'Jäger', 'Frank', 'Friedl', 'Grabner', 'Horvath', 'Unger', 'Müllner', 'Brandstätter', 'Hartl', 'Zimmermann', 'Kainz', 'Hoffmann', 'Sommer', 'Hager', 'Lindner', 'Weiß', 'Schweiger', 'Wiesinger', 'Thaler', 'Höller', 'Richter', 'Walter', 'Haslinger', 'Steininger', 'Herzog', 'Pirker', 'Baumann', 'Mandl', 'Pfeiffer', 'Krammer', 'Rauch', 'Kofler', 'Huemer', 'Zauner', 'Hammer', 'Jovanovic', 'Hahn', 'Brandstetter', 'Ecker', 'Konrad', 'Angerer', 'Köck', 'Novak', 'Schwab', 'Stangl', 'Hauer', 'Fellner', 'Kurz', 'Putz', 'Brandl', 'Holzinger', 'Braun', 'Mayerhofer', 'Bruckner', 'Grill', 'Mader', 'Zach', 'Plank', 'Ertl', 'Steindl', 'Wurm', 'Langer', 'Rieder', 'Hafner', 'Kraus', 'Rath', 'Hartmann', 'Schauer', 'Stocker', 'Neumann', 'Knapp', 'Platzer', 'Singer', 'Rieger', 'Stockinger', 'Fasching', 'Oswald', 'Gassner', 'Neuhold', 'Bayer', 'Stöckl', 'Prinz', 'Haller', 'Kastner', 'Pfeifer', 'Schlager', 'Hutter', 'Sturm', 'Rauscher', 'Peter', 'Roth', 'Gasser', 'Stöger', 'Fröhlich', 'Petrovic', 'Schreiner', 'Knoll', 'Burgstaller', 'Hölzl', 'Lorenz', 'Haberl', 'Feichtinger', 'Karl', 'Pucher', 'Bischof', 'Windisch', 'Deutsch', 'Vogl', 'Schütz', 'Bacher', 'Ziegler', 'Weinberger', 'Hermann', 'Kerschbaumer', 'Trummer', 'Zechner', 'Pilz', 'Gabriel', 'Burger', 'Thurner' ]