content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# -*- coding: utf-8 -*- """ Created on Sat Jun 13 17:56:31 2020 @author: super """
""" Created on Sat Jun 13 17:56:31 2020 @author: super """
#Collaborators: None def rerun(): #Function is here to rerun the program for total of two times y = 0 while y<2: yogurtshack() y += 1 def yogurtshack(): print("Welcome to Yogurt Shack! Please type your order below. ") #Introducing the store and asking for order print("\n") flavor = input("What would you like your yogurt flavor to be? ") #input ICE CREAM FLAVOR topping1 = input("Topping 1? ") #input FIRST TOPPING topping2 = input("Topping 2? ") #input SECOND TOPPING print("\n") lst = [flavor, topping1, topping2] print("Your order is" + str(lst)) #Telling the customer what their order is x = 0 while x<1: print("Great selection!") print("\n") x += 1 try: drink = input("What drink would you like with that? You can either say tea, water, coffee, or soda. ") #Asking the customer what drink they would like. if drink == "tea": print("Our tea is world-famous!") if drink == "Tea": print("Our tea is world-famous!") elif drink == "water": print("Sounds good!") elif drink == "Water": print("Sounds good!") elif drink == "coffee": print("I could go for some coffee now.") elif drink == "Coffee": print("I could go for some coffee now.") elif drink == "soda": print("Lucky you! This is our last one!") elif drink == "Soda": print("Lucky you! This is our last one!") except: print("Sorry, that is not a valid entry.") for i in range(1): print("\n") print("We hope you enjoy your meal. Have a great day and we hope to see you soon!") #Thank you and goodbye to customer print("\n") if __name__ == '__main__': rerun()
def rerun(): y = 0 while y < 2: yogurtshack() y += 1 def yogurtshack(): print('Welcome to Yogurt Shack! Please type your order below. ') print('\n') flavor = input('What would you like your yogurt flavor to be? ') topping1 = input('Topping 1? ') topping2 = input('Topping 2? ') print('\n') lst = [flavor, topping1, topping2] print('Your order is' + str(lst)) x = 0 while x < 1: print('Great selection!') print('\n') x += 1 try: drink = input('What drink would you like with that? You can either say tea, water, coffee, or soda. ') if drink == 'tea': print('Our tea is world-famous!') if drink == 'Tea': print('Our tea is world-famous!') elif drink == 'water': print('Sounds good!') elif drink == 'Water': print('Sounds good!') elif drink == 'coffee': print('I could go for some coffee now.') elif drink == 'Coffee': print('I could go for some coffee now.') elif drink == 'soda': print('Lucky you! This is our last one!') elif drink == 'Soda': print('Lucky you! This is our last one!') except: print('Sorry, that is not a valid entry.') for i in range(1): print('\n') print('We hope you enjoy your meal. Have a great day and we hope to see you soon!') print('\n') if __name__ == '__main__': rerun()
""" * Factorial of a Number * Create a program to find the factorial of an integer entered by the user. * The factorial of a positive integer n is equal to 1 * 2 * 3 * ... * n. For example, the factorial of 4 is 1 * 2 * * 3 * 4 which is 24. * Take an integer input from the user and assign it to the variable n. We will assume the user will always enter a positive integer. * Using a while loop, compute the factorial. * Print the factorial at the end. """ number = int(input('Enter a number: ')) # The initial value of total is 1 total = 1 # counter i = 1 while i <= number: total = total * i i += 1 print(total)
""" * Factorial of a Number * Create a program to find the factorial of an integer entered by the user. * The factorial of a positive integer n is equal to 1 * 2 * 3 * ... * n. For example, the factorial of 4 is 1 * 2 * * 3 * 4 which is 24. * Take an integer input from the user and assign it to the variable n. We will assume the user will always enter a positive integer. * Using a while loop, compute the factorial. * Print the factorial at the end. """ number = int(input('Enter a number: ')) total = 1 i = 1 while i <= number: total = total * i i += 1 print(total)
def print_fun(): print("Heloo") class bala: Name = "This is Shifat" def shit(self): print("Say my name !") print("I'm in a class") def __str__(self): return self.Name
def print_fun(): print('Heloo') class Bala: name = 'This is Shifat' def shit(self): print('Say my name !') print("I'm in a class") def __str__(self): return self.Name
""" Implements a dependency tree. Indices are 1-based. """ class Node: def __init__(self, pair, index): self.parent_index_, self.label_ = pair.split('/') self.parent_index_ = int(self.parent_index_) self.index_ = int(index) self.parent_ = None self.children_ = [] def parent(self): return (self.parent_, self.label_) def parent_index(self): return self.parent_index_ def index(self): return self.index_ def label(self): """Label of the arc pointing to the node's parent.""" return self.label_ def children(self): return self.children_ def __str__(self): return '-%s/%d->' % (self.label_, self.parent_index_) class DepTree: def __init__(self, line): self.nodes_ = [Node('-1/None', 0)] + [Node(x,i+1) for i,x in enumerate(line.rstrip().split())] for node in self.nodes_[1:]: self.nodes_[node.parent_index()].children_.append(node) node.parent = node.parent_index() def root(self): return self.node(0) def node(self, index): return self.nodes_[index] def nodes(self): return self.nodes_ def __iter__(self): """Iterate over the nodes from left to right.""" self.iter_node_ = 1 return self def next(self): if self.iter_node_ >= len(self.nodes_): raise StopIteration else: self.iter_node_ += 1 return self.nodes_[self.iter_node_ - 1]
""" Implements a dependency tree. Indices are 1-based. """ class Node: def __init__(self, pair, index): (self.parent_index_, self.label_) = pair.split('/') self.parent_index_ = int(self.parent_index_) self.index_ = int(index) self.parent_ = None self.children_ = [] def parent(self): return (self.parent_, self.label_) def parent_index(self): return self.parent_index_ def index(self): return self.index_ def label(self): """Label of the arc pointing to the node's parent.""" return self.label_ def children(self): return self.children_ def __str__(self): return '-%s/%d->' % (self.label_, self.parent_index_) class Deptree: def __init__(self, line): self.nodes_ = [node('-1/None', 0)] + [node(x, i + 1) for (i, x) in enumerate(line.rstrip().split())] for node in self.nodes_[1:]: self.nodes_[node.parent_index()].children_.append(node) node.parent = node.parent_index() def root(self): return self.node(0) def node(self, index): return self.nodes_[index] def nodes(self): return self.nodes_ def __iter__(self): """Iterate over the nodes from left to right.""" self.iter_node_ = 1 return self def next(self): if self.iter_node_ >= len(self.nodes_): raise StopIteration else: self.iter_node_ += 1 return self.nodes_[self.iter_node_ - 1]
''' This module represents the time stamp when Arelle was last built @author: Mark V Systems Limited (c) Copyright 2013 Mark V Systems Limited, All rights reserved. ''' version = '2013-10-08 05:43 UTC'
""" This module represents the time stamp when Arelle was last built @author: Mark V Systems Limited (c) Copyright 2013 Mark V Systems Limited, All rights reserved. """ version = '2013-10-08 05:43 UTC'
pedidos = [] def adicionaPedidos(nome, sabor, observacao='None'): pedido = {} pedido['nome'] = nome pedido['sabor'] = sabor pedido['observacao'] = observacao return (pedido) pedidos.append(adicionaPedidos('mario', 'pepperoni')) pedidos.append(adicionaPedidos('marco', 'portuguesa', 'dobro de presunto')) for pedido in pedidos: template = 'Nome: {nome}\nSabor: {sabor}' print(template.format(**pedido)) if pedido['observacao']: print('Observacao: {}'.format(pedido['observacao'])) print('-'*20)
pedidos = [] def adiciona_pedidos(nome, sabor, observacao='None'): pedido = {} pedido['nome'] = nome pedido['sabor'] = sabor pedido['observacao'] = observacao return pedido pedidos.append(adiciona_pedidos('mario', 'pepperoni')) pedidos.append(adiciona_pedidos('marco', 'portuguesa', 'dobro de presunto')) for pedido in pedidos: template = 'Nome: {nome}\nSabor: {sabor}' print(template.format(**pedido)) if pedido['observacao']: print('Observacao: {}'.format(pedido['observacao'])) print('-' * 20)
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftPAR_ABREPAR_CIERRArightIGUALleftORleftANDleftNO_IGUALnonassocMAYORMENORMAYOR_IGUALMENOR_IGUALleftMASMENOSleftASTERISCODIVISIONMODULOleftPOTENCIArightNOTleftLLAVE_ABRELLAVE_CIERRAABS ADD ALL ALTER AND AS ASC ASTERISCO AVG BETWEEN BIGINT BOOLEAN BY CADENA CASE CASTEO CBRT CEIL CEILING CHAR CHARACTER CHECK COLUMN COMA CONSTRAINT CORCHE_ABRE CORCHE_CIERRA COUNT CREATE CURRENT_USER DATABASE DATABASES DATE DAY DECIMAL DECIMAL_NUM DEFAULT DEGREES DELETE DESC DIFERENTE DISTINCT DIV DIVISION DOUBLE DROP ELSE END ENTERO ENUM EXISTS EXP FACTORIAL FALSE FIELDS FIRST FLOOR FOREIGN FROM FULL GCD GREATEST GROUP HAVING HOUR ID IF IGUAL ILIKE IN INHERITS INNER INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL JOIN KEY LAST LEAST LEFT LIKE LIMIT LLAVE_ABRE LLAVE_CIERRA LN LOG MAS MAX MAYOR MAYOR_IGUAL MENOR MENOR_IGUAL MENOS MIN MINUTE MOD MODE MODULO MONEY MONTH NOT NOTNULL NO_IGUAL NULL NULLS NUMERIC OFFSET OR ORDER OUTER OWNER PAR_ABRE PAR_CIERRA PI POTENCIA POWER PRECISION PRIMARY PUNTO PUNTOCOMA RADIANS REAL REFERENCE REFERENCES RENAME REPLACE RIGHT ROUND SECOND SELECT SESSION_USER SET SHOW SIMILAR SMALLINT SUBSTRING SUM SYMMETRIC TABLE TEXT THEN TIME TIMESTAMP TO TRUE TYPE UNION UNIQUE UNKNOWN UPDATE USE VALUES VARCHAR VARYING WHEN WHERE WITH WITHOUT YEAR ZONEinit : instruccionesinstrucciones : instrucciones instruccioninstrucciones : instruccion instruccion : crear_statement PUNTOCOMA\n | alter_statement PUNTOCOMA\n | drop_statement PUNTOCOMA\n | seleccionar PUNTOCOMAinstruccion : SHOW DATABASES PUNTOCOMA\n | INSERT INTO ID VALUES PAR_ABRE list_val PAR_CIERRA PUNTOCOMA\n | UPDATE ID SET ID IGUAL expression where PUNTOCOMA\n | DELETE FROM ID WHERE ID IGUAL expression PUNTOCOMA\n | USE DATABASE ID PUNTOCOMAcrear_statement : CREATE TABLE ID PAR_ABRE contenido_tabla PAR_CIERRA inherits_statementcrear_statement : CREATE or_replace DATABASE if_not_exists ID owner_ mode_or_replace : OR REPLACE\n | if_not_exists : IF NOT EXISTS\n | owner_ : OWNER IGUAL ID\n | mode_ : MODE IGUAL ENTERO\n | alter_statement : ALTER DATABASE ID rename_owneralter_statement : ALTER TABLE ID alter_oprename_owner : RENAME TO ID\n | OWNER TO LLAVE_ABRE ow_op LLAVE_CIERRAow_op : ID\n | CURRENT_USER\n | SESSION_USERdrop_statement : DROP DATABASE if_exists IDdrop_statement : DROP TABLE IDif_exists : IF EXISTS\n | contenido_tabla : contenido_tabla COMA manejo_tablacontenido_tabla : manejo_tablamanejo_tabla : declaracion_columna\n | condition_columndeclaracion_columna : ID type_column condition_column_rowdeclaracion_columna : ID type_columntype_column : SMALLINT\n | INTEGER\n\t | BIGINT\n\t | DECIMAL\n\t | NUMERIC\n\t | REAL\n\t | DOUBLE PRECISION\n\t | MONEY\n\t | VARCHAR PAR_ABRE ENTERO PAR_CIERRA\n | CHAR PAR_ABRE ENTERO PAR_CIERRA\n | CHARACTER PAR_ABRE ENTERO PAR_CIERRA\n | CHARACTER VARYING PAR_ABRE ENTERO PAR_CIERRA\n \t | TEXT\n\t | DATE\n | TIMESTAMP\n | TIMEcondition_column_row : condition_column_row condition_columncondition_column_row : condition_columncondition_column : constraint UNIQUE op_unique\n | constraint CHECK PAR_ABRE expression PAR_CIERRA\n | key_tablecondition_column : DEFAULT expression\n | NULL\n | NOT NULL\n\t | REFERENCE ID\n\t\t | CONSTRAINT ID key_table\n \t\t | constraint : CONSTRAINT ID\n | op_unique : PAR_ABRE list_id PAR_CIERRA\n | constraint CHECK PAR_ABRE expression PAR_CIERRA\n | list_id : list_id COMA aliaslist_id : aliasalias : IDkey_table : PRIMARY KEY list_key\n\t | FOREIGN KEY PAR_ABRE list_id PAR_CIERRA REFERENCES ID PAR_ABRE list_id PAR_CIERRAlist_key : PAR_ABRE list_id PAR_CIERRA\n\t | alter_op : ADD op_add\n\t | ALTER COLUMN ID alter_col_op\n\t | DROP alter_drop IDalter_drop : CONSTRAINT\n\t | COLUMN op_add : CHECK PAR_ABRE ID DIFERENTE CADENA PAR_CIERRA\n | CONSTRAINT ID UNIQUE PAR_ABRE ID PAR_CIERRA\n | key_table REFERENCES PAR_ABRE list_id PAR_CIERRAalter_col_op : SET NOT NULL\n | TYPE type_columninherits_statement : INHERITS PAR_ABRE ID PAR_CIERRA\n | list_val : list_val COMA expressionlist_val : expressionwhere : WHERE ID IGUAL expression\n | seleccionar : SELECT distinto select_list FROM table_expression list_fin_selectseleccionar : SELECT GREATEST expressiones\n | SELECT LEAST expressioneslist_fin_select : list_fin_select fin_selectlist_fin_select : fin_selectfin_select : group_by \n\t | donde\n\t | order_by\n\t | group_having\n\t | limite\n \t| expressiones : PAR_ABRE list_expression PAR_CIERRAexpressiones : list_expressiondistinto : DISTINCT\n\t | select_list : ASTERISCO\n\t | expressiones table_expression : expressionesdonde : WHERE expressionesgroup_by : GROUP BY expressiones order_by : ORDER BY expressiones asc_desc nulls_f_lgroup_having : HAVING expressiones asc_desc : ASC\n\t | DESCnulls_f_l : NULLS LAST\n\t | NULLS FIRST\n\t | limite : LIMIT ENTERO\n\t | LIMIT ALL\n\t | OFFSET ENTEROlist_expression : list_expression COMA expressionlist_expression : expressionexpression : SUBSTRING PAR_ABRE expression COMA expression COMA expression PAR_CIERRAexpression : expression NOT BETWEEN SYMMETRIC expression AND expressionexpression : expression NOT BETWEEN expression AND expression\n | expression BETWEEN SYMMETRIC expression AND expressionexpression : expression BETWEEN expression AND expressionexpression : expression IS DISTINCT FROM expressionexpression : expression IS NOT DISTINCT FROM expressionexpression : ID PUNTO IDexpression : expression IS NOT NULL\n | expression IS NOT TRUE\n | expression IS NOT FALSE\n | expression IS NOT UNKNOWNexpression : expression IS NULL\n | expression IS TRUE\n | expression IS FALSE\n | expression IS UNKNOWNexpression : expression ISNULL\n | expression NOTNULLexpression : SUM PAR_ABRE expression PAR_CIERRA\n | COUNT PAR_ABRE expression PAR_CIERRA\n | AVG PAR_ABRE expression PAR_CIERRA\n | MAX PAR_ABRE expression PAR_CIERRA\n | MIN PAR_ABRE expression PAR_CIERRA\n | ABS PAR_ABRE expression PAR_CIERRA\n | CBRT PAR_ABRE expression PAR_CIERRA\n | CEIL PAR_ABRE expression PAR_CIERRA\n | CEILING PAR_ABRE expression PAR_CIERRA \n | DEGREES PAR_ABRE expression PAR_CIERRA\n | DIV PAR_ABRE expression PAR_CIERRA\n | EXP PAR_ABRE expression PAR_CIERRA\n | FACTORIAL PAR_ABRE expression PAR_CIERRA \n | FLOOR PAR_ABRE expression PAR_CIERRA\n | GCD PAR_ABRE expression PAR_CIERRA\n | LN PAR_ABRE expression PAR_CIERRA\n | LOG PAR_ABRE expression PAR_CIERRA\n | MOD PAR_ABRE expression PAR_CIERRA\n | PI PAR_ABRE expression PAR_CIERRA\n | POWER PAR_ABRE expression PAR_CIERRA\n | RADIANS PAR_ABRE expression PAR_CIERRA\n | ROUND PAR_ABRE expression PAR_CIERRAexpression : seleccionarexpression : PAR_ABRE expression PAR_CIERRAexpression : expression MAYOR expressionexpression : expression MENOR expressionexpression : expression MAYOR_IGUAL expressionexpression : expression MENOR_IGUAL expressionexpression : expression IGUAL expressionexpression : expression NO_IGUAL expressionexpression : expression DIFERENTE expressionexpression : expression AND expressionexpression : expression OR expressionexpression : NOT expressionexpression : ID\n | ASTERISCOexpression : ENTEROexpression : DECIMAL_NUMexpression : CADENA' _lr_action_items = {'SHOW':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[8,8,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'INSERT':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[9,9,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'UPDATE':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[10,10,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'DELETE':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[11,11,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'USE':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[12,12,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'CREATE':([0,2,3,17,18,19,20,21,38,92,364,366,368,],[13,13,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'ALTER':([0,2,3,17,18,19,20,21,38,47,92,364,366,368,],[14,14,-3,-2,-4,-5,-6,-7,-8,99,-12,-9,-10,-11,]),'DROP':([0,2,3,17,18,19,20,21,38,47,92,364,366,368,],[15,15,-3,-2,-4,-5,-6,-7,-8,102,-12,-9,-10,-11,]),'SELECT':([0,2,3,16,17,18,19,20,21,34,35,36,37,38,54,58,92,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,364,366,368,394,397,398,404,],[16,16,-3,-109,-2,-4,-5,-6,-7,16,16,16,-108,-8,16,16,-12,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,-9,-10,-11,16,16,16,16,]),'$end':([1,2,3,17,18,19,20,21,38,92,364,366,368,],[0,-1,-3,-2,-4,-5,-6,-7,-8,-12,-9,-10,-11,]),'PUNTOCOMA':([4,5,6,7,22,42,50,55,56,59,82,83,84,85,86,87,88,96,100,103,114,115,125,166,171,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,228,231,232,233,234,235,236,238,242,243,244,245,246,256,259,265,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,314,316,319,324,336,343,349,351,353,354,355,356,359,361,384,385,387,391,393,395,396,399,400,401,410,411,414,415,416,417,418,420,421,422,426,427,428,430,433,434,],[18,19,20,21,38,92,-31,-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-23,-24,-30,-143,-144,-178,-20,-79,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-94,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,-90,-22,-25,-81,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,364,366,368,-46,-13,-14,-80,-98,-113,-116,-122,-123,-124,-131,-132,-19,-26,-88,-114,-129,-130,-133,-48,-49,-50,-21,-87,-86,-121,-117,-118,-128,-93,-51,-89,-84,-85,-115,-127,-119,-120,]),'DATABASES':([8,],[22,]),'INTO':([9,],[23,]),'ID':([10,16,23,25,26,27,30,31,32,33,34,35,36,37,40,44,48,54,58,91,93,94,104,105,106,109,111,112,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,162,163,168,170,173,175,176,177,184,186,229,247,258,260,262,274,276,280,281,283,289,313,315,329,330,331,334,335,338,348,350,352,357,360,362,374,389,394,397,398,404,406,425,435,],[24,-109,39,41,42,43,46,47,-33,50,59,59,59,-108,90,-18,103,59,59,151,152,166,-32,59,59,59,59,59,59,59,59,59,59,59,59,59,59,203,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,252,253,259,261,263,265,-82,-83,59,59,59,152,-17,340,346,59,59,59,59,59,59,59,367,378,379,59,378,378,384,378,59,59,59,59,59,403,413,59,59,59,59,378,432,378,]),'FROM':([11,51,52,53,55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,188,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,284,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[25,105,-110,-111,-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,-105,-112,-106,-168,-125,-176,283,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-95,-99,-100,-101,-102,-103,-104,362,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'DATABASE':([12,13,14,15,28,45,],[26,-16,30,32,44,-15,]),'TABLE':([13,14,15,],[27,31,33,]),'OR':([13,52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[29,-180,-107,123,-179,-167,-181,-182,-183,-96,-180,-97,123,-143,-144,-178,-105,-112,123,-106,-168,123,123,-176,-139,-140,-141,-142,-169,-170,-171,-172,123,-174,123,-177,123,-134,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-95,-99,-100,-101,-102,-103,-104,123,123,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,123,-98,-113,-116,-122,-123,-124,123,-131,123,123,123,123,-114,-129,-130,123,-121,-117,-118,-128,123,123,123,-115,-127,-119,-120,]),'GREATEST':([16,],[35,]),'LEAST':([16,],[36,]),'DISTINCT':([16,113,189,],[37,188,284,]),'ASTERISCO':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,52,87,87,-108,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,]),'PAR_ABRE':([16,34,35,36,37,43,54,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,89,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,172,184,186,229,239,240,241,248,249,254,255,264,274,276,280,281,283,289,313,323,325,331,347,350,352,357,360,362,375,394,397,398,404,432,],[-109,54,54,54,-108,93,106,124,106,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,54,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,262,106,106,106,320,321,322,329,331,334,335,348,54,54,106,106,106,106,106,373,374,106,389,54,54,106,106,106,404,106,106,106,106,435,]),'SUBSTRING':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,57,57,57,-108,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,]),'SUM':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,60,60,60,-108,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,]),'COUNT':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,61,61,61,-108,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,]),'AVG':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,62,62,62,-108,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,]),'MAX':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,63,63,63,-108,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,]),'MIN':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,64,64,64,-108,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,]),'ABS':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,65,65,65,-108,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,]),'CBRT':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,66,66,66,-108,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,]),'CEIL':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,67,67,67,-108,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,]),'CEILING':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,68,68,68,-108,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,]),'DEGREES':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,69,69,69,-108,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,]),'DIV':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,70,70,70,-108,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,]),'EXP':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,71,71,71,-108,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,]),'FACTORIAL':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,72,72,72,-108,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,]),'FLOOR':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,73,73,73,-108,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,]),'GCD':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,74,74,74,-108,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,]),'LN':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,75,75,75,-108,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,]),'LOG':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,76,76,76,-108,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,]),'MOD':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,77,77,77,-108,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,]),'PI':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,78,78,78,-108,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,]),'POWER':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,79,79,79,-108,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,]),'RADIANS':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,80,80,80,-108,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,]),'ROUND':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,81,81,81,-108,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,]),'NOT':([16,34,35,36,37,52,54,55,56,58,59,82,83,84,85,86,87,88,93,95,105,106,108,109,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,158,159,160,178,179,180,181,182,183,184,185,186,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,229,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,274,276,279,280,281,282,283,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,313,316,317,318,319,328,331,332,333,344,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,365,369,380,391,393,394,395,396,397,398,399,400,401,404,405,407,408,415,416,417,418,419,420,421,423,428,430,431,433,434,437,],[-109,58,58,58,-108,-180,58,-107,110,58,-179,-167,-181,-182,-183,-96,-180,-97,161,167,58,58,110,58,58,58,189,-143,-144,58,58,58,58,58,58,58,58,58,110,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,-60,58,-62,-105,-112,110,-106,-168,110,58,110,58,110,-139,-140,-141,-142,110,110,110,110,110,110,110,110,110,-134,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,58,161,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,161,-71,110,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,58,58,110,58,58,110,58,-135,-136,-137,-138,58,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,58,110,161,-57,-46,-58,58,-65,-75,386,-98,58,-113,58,-116,-122,-123,-124,58,110,110,58,110,58,110,110,-56,110,-114,110,58,110,110,58,58,-48,-49,-50,58,-69,-59,-77,-121,-117,-118,110,110,110,-51,110,-115,-127,-70,-119,-120,-76,]),'ENTERO':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,277,278,280,281,283,289,313,320,321,322,331,350,352,357,360,362,373,383,394,397,398,404,],[-109,83,83,83,-108,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,354,356,83,83,83,83,83,370,371,372,83,83,83,83,83,83,402,410,83,83,83,83,]),'DECIMAL_NUM':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[-109,84,84,84,-108,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,]),'CADENA':([16,34,35,36,37,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,388,394,397,398,404,],[-109,85,85,85,-108,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,412,85,85,85,85,]),'SET':([24,261,],[40,344,]),'REPLACE':([29,],[45,]),'IF':([32,44,],[49,95,]),'VALUES':([39,],[89,]),'WHERE':([41,55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,228,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[91,-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,274,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,315,274,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'RENAME':([46,],[97,]),'OWNER':([46,166,],[98,257,]),'ADD':([47,],[101,]),'EXISTS':([49,167,],[104,258,]),'BETWEEN':([52,55,56,59,82,83,84,85,86,87,88,108,110,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,111,-179,-167,-181,-182,-183,-96,-180,-97,111,184,-143,-144,-178,-105,-112,111,-106,-168,111,111,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,111,-177,111,-134,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,-95,-99,-100,-101,-102,-103,-104,111,111,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,111,-98,-113,-116,-122,-123,-124,111,-131,111,111,111,111,-114,-129,-130,111,-121,-117,-118,-128,111,111,111,-115,-127,-119,-120,]),'IS':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,113,-179,-167,-181,-182,-183,-96,-180,-97,113,-143,-144,-178,-105,-112,113,-106,-168,113,113,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,113,-177,113,-134,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,-95,-99,-100,-101,-102,-103,-104,113,113,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,113,-98,-113,-116,-122,-123,-124,113,-131,113,113,113,113,-114,-129,-130,113,-121,-117,-118,-128,113,113,113,-115,-127,-119,-120,]),'ISNULL':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,114,-179,-167,-181,-182,-183,-96,-180,-97,114,-143,-144,-178,-105,-112,114,-106,-168,114,114,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,114,-177,114,-134,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,-95,-99,-100,-101,-102,-103,-104,114,114,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,114,-98,-113,-116,-122,-123,-124,114,-131,114,114,114,114,-114,-129,-130,114,-121,-117,-118,-128,114,114,114,-115,-127,-119,-120,]),'NOTNULL':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,115,-179,-167,-181,-182,-183,-96,-180,-97,115,-143,-144,-178,-105,-112,115,-106,-168,115,115,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,115,-177,115,-134,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-95,-99,-100,-101,-102,-103,-104,115,115,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,115,-98,-113,-116,-122,-123,-124,115,-131,115,115,115,115,-114,-129,-130,115,-121,-117,-118,-128,115,115,115,-115,-127,-119,-120,]),'MAYOR':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,116,-179,-167,-181,-182,-183,-96,-180,-97,116,-143,-144,-178,-105,-112,116,-106,-168,116,116,116,-139,-140,-141,-142,None,None,None,None,116,116,116,116,116,-134,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-95,-99,-100,-101,-102,-103,-104,116,116,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,116,-98,-113,-116,-122,-123,-124,116,116,116,116,116,116,-114,116,116,116,-121,-117,-118,116,116,116,116,-115,-127,-119,-120,]),'MENOR':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,117,-179,-167,-181,-182,-183,-96,-180,-97,117,-143,-144,-178,-105,-112,117,-106,-168,117,117,117,-139,-140,-141,-142,None,None,None,None,117,117,117,117,117,-134,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-95,-99,-100,-101,-102,-103,-104,117,117,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,117,-98,-113,-116,-122,-123,-124,117,117,117,117,117,117,-114,117,117,117,-121,-117,-118,117,117,117,117,-115,-127,-119,-120,]),'MAYOR_IGUAL':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,118,-179,-167,-181,-182,-183,-96,-180,-97,118,-143,-144,-178,-105,-112,118,-106,-168,118,118,118,-139,-140,-141,-142,None,None,None,None,118,118,118,118,118,-134,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-95,-99,-100,-101,-102,-103,-104,118,118,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,118,-98,-113,-116,-122,-123,-124,118,118,118,118,118,118,-114,118,118,118,-121,-117,-118,118,118,118,118,-115,-127,-119,-120,]),'MENOR_IGUAL':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,119,-179,-167,-181,-182,-183,-96,-180,-97,119,-143,-144,-178,-105,-112,119,-106,-168,119,119,119,-139,-140,-141,-142,None,None,None,None,119,119,119,119,119,-134,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,-95,-99,-100,-101,-102,-103,-104,119,119,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,119,-98,-113,-116,-122,-123,-124,119,119,119,119,119,119,-114,119,119,119,-121,-117,-118,119,119,119,119,-115,-127,-119,-120,]),'IGUAL':([52,55,56,59,82,83,84,85,86,87,88,90,108,114,115,125,151,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,257,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,337,349,351,353,354,355,356,358,359,361,363,365,367,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,120,-179,-167,-181,-182,-183,-96,-180,-97,150,120,-143,-144,-178,229,-105,-112,120,-106,-168,120,120,-176,-139,-140,-141,-142,-169,-170,-171,-172,120,-174,120,-177,120,-134,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,338,-95,-99,-100,-101,-102,-103,-104,120,120,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,120,383,-98,-113,-116,-122,-123,-124,120,-131,120,120,120,398,120,-114,-129,-130,120,-121,-117,-118,-128,120,120,120,-115,-127,-119,-120,]),'NO_IGUAL':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,121,-179,-167,-181,-182,-183,-96,-180,-97,121,-143,-144,-178,-105,-112,121,-106,-168,121,121,121,-139,-140,-141,-142,-169,-170,-171,-172,121,-174,121,121,121,-134,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-95,-99,-100,-101,-102,-103,-104,121,121,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,121,-98,-113,-116,-122,-123,-124,121,121,121,121,121,121,-114,121,121,121,-121,-117,-118,121,121,121,121,-115,-127,-119,-120,]),'DIFERENTE':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,346,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,122,-179,-167,-181,-182,-183,-96,-180,-97,122,-143,-144,-178,-105,-112,122,-106,-168,122,122,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,122,-177,122,-134,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-95,-99,-100,-101,-102,-103,-104,122,122,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,122,388,-98,-113,-116,-122,-123,-124,122,-131,122,122,122,122,-114,-129,-130,122,-121,-117,-118,-128,122,122,122,-115,-127,-119,-120,]),'AND':([52,55,56,59,82,83,84,85,86,87,88,108,114,115,125,178,179,180,181,182,183,185,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,266,267,268,269,270,271,272,279,282,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,316,349,351,353,354,355,356,358,359,361,363,365,380,391,393,395,396,415,416,417,418,419,420,423,428,430,433,434,],[-180,-107,112,-179,-167,-181,-182,-183,-96,-180,-97,112,-143,-144,-178,-105,-112,112,-106,-168,112,281,-176,-139,-140,-141,-142,-169,-170,-171,-172,112,-174,112,112,112,-134,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,-95,-99,-100,-101,-102,-103,-104,357,360,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,112,-98,-113,-116,-122,-123,-124,394,-131,112,112,112,112,-114,-129,-130,112,-121,-117,-118,-128,112,112,112,-115,-127,-119,-120,]),'COMA':([52,55,56,59,82,83,84,85,86,87,88,93,107,108,114,115,125,153,154,155,156,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,202,203,226,227,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,326,328,332,333,349,351,353,354,355,356,359,361,363,365,369,376,377,378,381,382,390,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,424,428,430,431,433,434,436,437,],[-180,109,-126,-179,-167,-181,-182,-183,-96,-180,-97,-66,109,-126,-143,-144,-178,247,-35,-36,-37,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,289,-134,313,-92,-39,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,-66,-71,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-38,-57,-46,-34,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,397,-91,-56,406,-73,-74,406,406,406,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-72,-115,-127,-70,-119,-120,406,-76,]),'PAR_CIERRA':([55,56,59,82,83,84,85,86,87,88,93,107,108,114,115,125,153,154,155,156,158,160,178,179,180,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,326,328,332,333,349,351,353,354,355,356,359,361,365,369,370,371,372,376,377,378,380,381,382,390,391,393,395,396,399,400,401,402,403,405,407,408,412,413,415,416,417,418,419,421,423,424,428,430,431,433,434,436,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-66,181,182,-143,-144,-178,246,-35,-36,-37,-60,-62,-105,-112,182,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,-92,-39,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,-66,-71,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-38,-57,-46,-34,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-91,-56,399,400,401,405,-73,-74,407,408,409,414,-114,-129,-130,-133,-48,-49,-50,421,422,-69,-59,-77,426,427,-121,-117,-118,-128,430,-51,431,-72,-115,-127,-70,-119,-120,437,-76,]),'GROUP':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,273,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,273,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'ORDER':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,275,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,275,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'HAVING':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,276,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,276,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'LIMIT':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,277,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,277,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'OFFSET':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,278,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,278,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'DEFAULT':([55,56,59,82,83,84,85,86,87,88,93,114,115,125,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,159,-143,-144,-178,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,159,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,159,-71,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,159,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'NULL':([55,56,59,82,83,84,85,86,87,88,93,113,114,115,125,158,160,161,178,179,181,182,183,187,189,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,386,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,160,190,-143,-144,-178,-60,-62,251,-105,-112,-106,-168,-125,-176,285,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,160,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,160,-71,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,160,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,411,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'REFERENCE':([55,56,59,82,83,84,85,86,87,88,93,114,115,125,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,162,-143,-144,-178,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,162,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,162,-71,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,162,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'CONSTRAINT':([55,56,59,82,83,84,85,86,87,88,93,101,102,114,115,125,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,163,173,176,-143,-144,-178,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,163,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,163,330,-61,-63,-64,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,163,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'PRIMARY':([55,56,59,82,83,84,85,86,87,88,93,101,114,115,125,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,253,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,164,164,-143,-144,-178,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,164,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,164,-71,-61,-63,-64,164,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,164,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'FOREIGN':([55,56,59,82,83,84,85,86,87,88,93,101,114,115,125,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,253,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,165,165,-143,-144,-178,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,165,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,165,-71,-61,-63,-64,165,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,165,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'UNIQUE':([55,56,59,82,83,84,85,86,87,88,93,114,115,125,157,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,253,254,263,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,328,332,333,349,351,353,354,355,356,359,361,369,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-68,-143,-144,-178,248,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-66,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,-68,-71,-61,-63,-64,-67,-78,347,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-66,-57,-46,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'CHECK':([55,56,59,82,83,84,85,86,87,88,93,101,114,115,125,157,158,160,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,230,231,232,233,234,235,236,238,242,243,244,245,247,248,250,251,252,253,254,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,317,318,319,327,328,332,333,349,351,353,354,355,356,359,361,369,379,391,393,395,396,399,400,401,405,407,408,415,416,417,418,421,428,430,431,433,434,437,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-68,172,-143,-144,-178,249,-60,-62,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-66,-40,-41,-42,-43,-44,-45,-47,-52,-53,-54,-55,-68,-68,-61,-63,-64,-67,-78,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-66,-57,-46,375,-58,-65,-75,-98,-113,-116,-122,-123,-124,-131,-132,-56,-67,-114,-129,-130,-133,-48,-49,-50,-69,-59,-77,-121,-117,-118,-128,-51,-115,-127,-70,-119,-120,-76,]),'ASC':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,392,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,416,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'DESC':([55,56,59,82,83,84,85,86,87,88,114,115,125,178,179,181,182,183,187,190,191,192,193,194,195,196,197,198,199,200,201,203,266,267,268,269,270,271,272,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,349,351,353,354,355,356,359,361,391,392,393,395,396,415,416,417,418,428,430,433,434,],[-107,-126,-179,-167,-181,-182,-183,-96,-180,-97,-143,-144,-178,-105,-112,-106,-168,-125,-176,-139,-140,-141,-142,-169,-170,-171,-172,-173,-174,-175,-177,-134,-95,-99,-100,-101,-102,-103,-104,-135,-136,-137,-138,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-98,-113,-116,-122,-123,-124,-131,-132,-114,417,-129,-130,-133,-121,-117,-118,-128,-115,-127,-119,-120,]),'PUNTO':([59,],[126,]),'TO':([97,98,],[168,169,]),'COLUMN':([99,102,],[170,177,]),'SYMMETRIC':([111,184,],[186,280,]),'TRUE':([113,189,],[191,286,]),'FALSE':([113,189,],[192,287,]),'UNKNOWN':([113,189,],[193,288,]),'SMALLINT':([152,345,],[231,231,]),'INTEGER':([152,345,],[232,232,]),'BIGINT':([152,345,],[233,233,]),'DECIMAL':([152,345,],[234,234,]),'NUMERIC':([152,345,],[235,235,]),'REAL':([152,345,],[236,236,]),'DOUBLE':([152,345,],[237,237,]),'MONEY':([152,345,],[238,238,]),'VARCHAR':([152,345,],[239,239,]),'CHAR':([152,345,],[240,240,]),'CHARACTER':([152,345,],[241,241,]),'TEXT':([152,345,],[242,242,]),'DATE':([152,345,],[243,243,]),'TIMESTAMP':([152,345,],[244,244,]),'TIME':([152,345,],[245,245,]),'KEY':([164,165,],[254,255,]),'MODE':([166,256,384,],[-20,337,-19,]),'LLAVE_ABRE':([169,],[260,]),'REFERENCES':([174,254,333,408,409,437,],[264,-78,-75,-77,425,-76,]),'PRECISION':([237,],[319,]),'VARYING':([241,],[323,]),'INHERITS':([246,],[325,]),'CURRENT_USER':([260,],[341,]),'SESSION_USER':([260,],[342,]),'TYPE':([261,],[345,]),'BY':([273,275,],[350,352,]),'ALL':([277,],[355,]),'LLAVE_CIERRA':([339,340,341,342,],[385,-27,-28,-29,]),'NULLS':([415,416,417,],[429,-117,-118,]),'LAST':([429,],[433,]),'FIRST':([429,],[434,]),} _lr_action = {} for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'init':([0,],[1,]),'instrucciones':([0,],[2,]),'instruccion':([0,2,],[3,17,]),'crear_statement':([0,2,],[4,4,]),'alter_statement':([0,2,],[5,5,]),'drop_statement':([0,2,],[6,6,]),'seleccionar':([0,2,34,35,36,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[7,7,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,]),'or_replace':([13,],[28,]),'distinto':([16,],[34,]),'if_exists':([32,],[48,]),'select_list':([34,],[51,]),'expressiones':([34,35,36,105,274,276,350,352,],[53,86,88,179,351,353,391,392,]),'list_expression':([34,35,36,54,105,274,276,350,352,],[55,55,55,107,55,55,55,55,55,]),'expression':([34,35,36,54,58,105,106,109,111,112,116,117,118,119,120,121,122,123,124,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,159,184,186,229,274,276,280,281,283,289,313,331,350,352,357,360,362,394,397,398,404,],[56,56,56,108,125,56,180,183,185,187,194,195,196,197,198,199,200,201,202,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,227,228,250,279,282,316,56,56,358,359,361,363,365,380,56,56,393,395,396,418,419,420,423,]),'if_not_exists':([44,],[94,]),'rename_owner':([46,],[96,]),'alter_op':([47,],[100,]),'contenido_tabla':([93,],[153,]),'manejo_tabla':([93,247,],[154,326,]),'declaracion_columna':([93,247,],[155,155,]),'condition_column':([93,230,247,317,],[156,318,156,369,]),'constraint':([93,230,247,248,317,],[157,157,157,327,157,]),'key_table':([93,101,230,247,253,317,],[158,174,158,158,332,158,]),'op_add':([101,],[171,]),'alter_drop':([102,],[175,]),'table_expression':([105,],[178,]),'list_val':([149,],[226,]),'type_column':([152,345,],[230,387,]),'owner_':([166,],[256,]),'list_fin_select':([178,],[266,]),'fin_select':([178,266,],[267,349,]),'group_by':([178,266,],[268,268,]),'donde':([178,266,],[269,269,]),'order_by':([178,266,],[270,270,]),'group_having':([178,266,],[271,271,]),'limite':([178,266,],[272,272,]),'where':([228,],[314,]),'condition_column_row':([230,],[317,]),'inherits_statement':([246,],[324,]),'op_unique':([248,],[328,]),'list_key':([254,],[333,]),'mode_':([256,],[336,]),'ow_op':([260,],[339,]),'alter_col_op':([261,],[343,]),'list_id':([329,334,335,348,435,],[376,381,382,390,436,]),'alias':([329,334,335,348,406,435,],[377,377,377,377,424,377,]),'asc_desc':([392,],[415,]),'nulls_f_l':([415,],[428,]),} _lr_goto = {} for _k, _v in _lr_goto_items.items(): for _x, _y in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [ ("S' -> init","S'",1,None,None,None), ('init -> instrucciones','init',1,'p_init','sql_grammar.py',324), ('instrucciones -> instrucciones instruccion','instrucciones',2,'p_instrucciones_lista','sql_grammar.py',328), ('instrucciones -> instruccion','instrucciones',1,'p_instrucciones_instruccion','sql_grammar.py',333), ('instruccion -> crear_statement PUNTOCOMA','instruccion',2,'p_instruccion','sql_grammar.py',337), ('instruccion -> alter_statement PUNTOCOMA','instruccion',2,'p_instruccion','sql_grammar.py',338), ('instruccion -> drop_statement PUNTOCOMA','instruccion',2,'p_instruccion','sql_grammar.py',339), ('instruccion -> seleccionar PUNTOCOMA','instruccion',2,'p_instruccion','sql_grammar.py',340), ('instruccion -> SHOW DATABASES PUNTOCOMA','instruccion',3,'p_aux_instruccion','sql_grammar.py',344), ('instruccion -> INSERT INTO ID VALUES PAR_ABRE list_val PAR_CIERRA PUNTOCOMA','instruccion',8,'p_aux_instruccion','sql_grammar.py',345), ('instruccion -> UPDATE ID SET ID IGUAL expression where PUNTOCOMA','instruccion',8,'p_aux_instruccion','sql_grammar.py',346), ('instruccion -> DELETE FROM ID WHERE ID IGUAL expression PUNTOCOMA','instruccion',8,'p_aux_instruccion','sql_grammar.py',347), ('instruccion -> USE DATABASE ID PUNTOCOMA','instruccion',4,'p_aux_instruccion','sql_grammar.py',348), ('crear_statement -> CREATE TABLE ID PAR_ABRE contenido_tabla PAR_CIERRA inherits_statement','crear_statement',7,'p_crear_statement_tbl','sql_grammar.py',367), ('crear_statement -> CREATE or_replace DATABASE if_not_exists ID owner_ mode_','crear_statement',7,'p_crear_statement_db','sql_grammar.py',373), ('or_replace -> OR REPLACE','or_replace',2,'p_or_replace_db','sql_grammar.py',379), ('or_replace -> <empty>','or_replace',0,'p_or_replace_db','sql_grammar.py',380), ('if_not_exists -> IF NOT EXISTS','if_not_exists',3,'p_if_not_exists_db','sql_grammar.py',388), ('if_not_exists -> <empty>','if_not_exists',0,'p_if_not_exists_db','sql_grammar.py',389), ('owner_ -> OWNER IGUAL ID','owner_',3,'p_owner_db','sql_grammar.py',397), ('owner_ -> <empty>','owner_',0,'p_owner_db','sql_grammar.py',398), ('mode_ -> MODE IGUAL ENTERO','mode_',3,'p_mode_db','sql_grammar.py',408), ('mode_ -> <empty>','mode_',0,'p_mode_db','sql_grammar.py',409), ('alter_statement -> ALTER DATABASE ID rename_owner','alter_statement',4,'p_alter_db','sql_grammar.py',419), ('alter_statement -> ALTER TABLE ID alter_op','alter_statement',4,'p_alter_tbl','sql_grammar.py',425), ('rename_owner -> RENAME TO ID','rename_owner',3,'p_rename_owner_db','sql_grammar.py',432), ('rename_owner -> OWNER TO LLAVE_ABRE ow_op LLAVE_CIERRA','rename_owner',5,'p_rename_owner_db','sql_grammar.py',433), ('ow_op -> ID','ow_op',1,'p_ow_op_db','sql_grammar.py',443), ('ow_op -> CURRENT_USER','ow_op',1,'p_ow_op_db','sql_grammar.py',444), ('ow_op -> SESSION_USER','ow_op',1,'p_ow_op_db','sql_grammar.py',445), ('drop_statement -> DROP DATABASE if_exists ID','drop_statement',4,'p_drop_db','sql_grammar.py',449), ('drop_statement -> DROP TABLE ID','drop_statement',3,'p_drop_tbl','sql_grammar.py',458), ('if_exists -> IF EXISTS','if_exists',2,'p_if_exists_db','sql_grammar.py',464), ('if_exists -> <empty>','if_exists',0,'p_if_exists_db','sql_grammar.py',465), ('contenido_tabla -> contenido_tabla COMA manejo_tabla','contenido_tabla',3,'p_contenido_tabla','sql_grammar.py',472), ('contenido_tabla -> manejo_tabla','contenido_tabla',1,'p_aux_contenido_table','sql_grammar.py',477), ('manejo_tabla -> declaracion_columna','manejo_tabla',1,'p_manejo_tabla','sql_grammar.py',481), ('manejo_tabla -> condition_column','manejo_tabla',1,'p_manejo_tabla','sql_grammar.py',482), ('declaracion_columna -> ID type_column condition_column_row','declaracion_columna',3,'p_aux_declaracion_columna','sql_grammar.py',486), ('declaracion_columna -> ID type_column','declaracion_columna',2,'p_declaracion_columna','sql_grammar.py',492), ('type_column -> SMALLINT','type_column',1,'p_type_column','sql_grammar.py',498), ('type_column -> INTEGER','type_column',1,'p_type_column','sql_grammar.py',499), ('type_column -> BIGINT','type_column',1,'p_type_column','sql_grammar.py',500), ('type_column -> DECIMAL','type_column',1,'p_type_column','sql_grammar.py',501), ('type_column -> NUMERIC','type_column',1,'p_type_column','sql_grammar.py',502), ('type_column -> REAL','type_column',1,'p_type_column','sql_grammar.py',503), ('type_column -> DOUBLE PRECISION','type_column',2,'p_type_column','sql_grammar.py',504), ('type_column -> MONEY','type_column',1,'p_type_column','sql_grammar.py',505), ('type_column -> VARCHAR PAR_ABRE ENTERO PAR_CIERRA','type_column',4,'p_type_column','sql_grammar.py',506), ('type_column -> CHAR PAR_ABRE ENTERO PAR_CIERRA','type_column',4,'p_type_column','sql_grammar.py',507), ('type_column -> CHARACTER PAR_ABRE ENTERO PAR_CIERRA','type_column',4,'p_type_column','sql_grammar.py',508), ('type_column -> CHARACTER VARYING PAR_ABRE ENTERO PAR_CIERRA','type_column',5,'p_type_column','sql_grammar.py',509), ('type_column -> TEXT','type_column',1,'p_type_column','sql_grammar.py',510), ('type_column -> DATE','type_column',1,'p_type_column','sql_grammar.py',511), ('type_column -> TIMESTAMP','type_column',1,'p_type_column','sql_grammar.py',512), ('type_column -> TIME','type_column',1,'p_type_column','sql_grammar.py',513), ('condition_column_row -> condition_column_row condition_column','condition_column_row',2,'p_condition_column_row','sql_grammar.py',547), ('condition_column_row -> condition_column','condition_column_row',1,'p_aux_condition_column_row','sql_grammar.py',552), ('condition_column -> constraint UNIQUE op_unique','condition_column',3,'p_condition_column','sql_grammar.py',556), ('condition_column -> constraint CHECK PAR_ABRE expression PAR_CIERRA','condition_column',5,'p_condition_column','sql_grammar.py',557), ('condition_column -> key_table','condition_column',1,'p_condition_column','sql_grammar.py',558), ('condition_column -> DEFAULT expression','condition_column',2,'p_aux_condition_column','sql_grammar.py',573), ('condition_column -> NULL','condition_column',1,'p_aux_condition_column','sql_grammar.py',574), ('condition_column -> NOT NULL','condition_column',2,'p_aux_condition_column','sql_grammar.py',575), ('condition_column -> REFERENCE ID','condition_column',2,'p_aux_condition_column','sql_grammar.py',576), ('condition_column -> CONSTRAINT ID key_table','condition_column',3,'p_aux_condition_column','sql_grammar.py',577), ('condition_column -> <empty>','condition_column',0,'p_aux_condition_column','sql_grammar.py',578), ('constraint -> CONSTRAINT ID','constraint',2,'p_constraint','sql_grammar.py',600), ('constraint -> <empty>','constraint',0,'p_constraint','sql_grammar.py',601), ('op_unique -> PAR_ABRE list_id PAR_CIERRA','op_unique',3,'p_op_unique','sql_grammar.py',611), ('op_unique -> constraint CHECK PAR_ABRE expression PAR_CIERRA','op_unique',5,'p_op_unique','sql_grammar.py',612), ('op_unique -> <empty>','op_unique',0,'p_op_unique','sql_grammar.py',613), ('list_id -> list_id COMA alias','list_id',3,'p_list_id','sql_grammar.py',624), ('list_id -> alias','list_id',1,'p_aux_list_id','sql_grammar.py',629), ('alias -> ID','alias',1,'p_alias','sql_grammar.py',633), ('key_table -> PRIMARY KEY list_key','key_table',3,'p_key_table','sql_grammar.py',639), ('key_table -> FOREIGN KEY PAR_ABRE list_id PAR_CIERRA REFERENCES ID PAR_ABRE list_id PAR_CIERRA','key_table',10,'p_key_table','sql_grammar.py',640), ('list_key -> PAR_ABRE list_id PAR_CIERRA','list_key',3,'p_list_key','sql_grammar.py',653), ('list_key -> <empty>','list_key',0,'p_list_key','sql_grammar.py',654), ('alter_op -> ADD op_add','alter_op',2,'p_alter_op','sql_grammar.py',661), ('alter_op -> ALTER COLUMN ID alter_col_op','alter_op',4,'p_alter_op','sql_grammar.py',662), ('alter_op -> DROP alter_drop ID','alter_op',3,'p_alter_op','sql_grammar.py',663), ('alter_drop -> CONSTRAINT','alter_drop',1,'p_aux_alter_op','sql_grammar.py',678), ('alter_drop -> COLUMN','alter_drop',1,'p_aux_alter_op','sql_grammar.py',679), ('op_add -> CHECK PAR_ABRE ID DIFERENTE CADENA PAR_CIERRA','op_add',6,'p_op_add','sql_grammar.py',683), ('op_add -> CONSTRAINT ID UNIQUE PAR_ABRE ID PAR_CIERRA','op_add',6,'p_op_add','sql_grammar.py',684), ('op_add -> key_table REFERENCES PAR_ABRE list_id PAR_CIERRA','op_add',5,'p_op_add','sql_grammar.py',685), ('alter_col_op -> SET NOT NULL','alter_col_op',3,'p_alter_col_op','sql_grammar.py',698), ('alter_col_op -> TYPE type_column','alter_col_op',2,'p_alter_col_op','sql_grammar.py',699), ('inherits_statement -> INHERITS PAR_ABRE ID PAR_CIERRA','inherits_statement',4,'p_inherits_tbl','sql_grammar.py',709), ('inherits_statement -> <empty>','inherits_statement',0,'p_inherits_tbl','sql_grammar.py',710), ('list_val -> list_val COMA expression','list_val',3,'p_list_val','sql_grammar.py',719), ('list_val -> expression','list_val',1,'p_aux_list_val','sql_grammar.py',724), ('where -> WHERE ID IGUAL expression','where',4,'p_where','sql_grammar.py',728), ('where -> <empty>','where',0,'p_where','sql_grammar.py',729), ('seleccionar -> SELECT distinto select_list FROM table_expression list_fin_select','seleccionar',6,'p_seleccionar','sql_grammar.py',739), ('seleccionar -> SELECT GREATEST expressiones','seleccionar',3,'p_aux_seleccionar','sql_grammar.py',749), ('seleccionar -> SELECT LEAST expressiones','seleccionar',3,'p_aux_seleccionar','sql_grammar.py',750), ('list_fin_select -> list_fin_select fin_select','list_fin_select',2,'p_list_fin_select','sql_grammar.py',756), ('list_fin_select -> fin_select','list_fin_select',1,'p_aux_list_fin_select','sql_grammar.py',761), ('fin_select -> group_by','fin_select',1,'p_fin_select','sql_grammar.py',765), ('fin_select -> donde','fin_select',1,'p_fin_select','sql_grammar.py',766), ('fin_select -> order_by','fin_select',1,'p_fin_select','sql_grammar.py',767), ('fin_select -> group_having','fin_select',1,'p_fin_select','sql_grammar.py',768), ('fin_select -> limite','fin_select',1,'p_fin_select','sql_grammar.py',769), ('fin_select -> <empty>','fin_select',0,'p_fin_select','sql_grammar.py',770), ('expressiones -> PAR_ABRE list_expression PAR_CIERRA','expressiones',3,'p_expressiones','sql_grammar.py',777), ('expressiones -> list_expression','expressiones',1,'p_aux_expressiones','sql_grammar.py',781), ('distinto -> DISTINCT','distinto',1,'p_distinto','sql_grammar.py',785), ('distinto -> <empty>','distinto',0,'p_distinto','sql_grammar.py',786), ('select_list -> ASTERISCO','select_list',1,'p_select_list','sql_grammar.py',793), ('select_list -> expressiones','select_list',1,'p_select_list','sql_grammar.py',794), ('table_expression -> expressiones','table_expression',1,'p_table_expression','sql_grammar.py',798), ('donde -> WHERE expressiones','donde',2,'p_donde','sql_grammar.py',802), ('group_by -> GROUP BY expressiones','group_by',3,'p_group_by','sql_grammar.py',811), ('order_by -> ORDER BY expressiones asc_desc nulls_f_l','order_by',5,'p_order_by','sql_grammar.py',820), ('group_having -> HAVING expressiones','group_having',2,'p_group_having','sql_grammar.py',829), ('asc_desc -> ASC','asc_desc',1,'p_asc_desc','sql_grammar.py',838), ('asc_desc -> DESC','asc_desc',1,'p_asc_desc','sql_grammar.py',839), ('nulls_f_l -> NULLS LAST','nulls_f_l',2,'p_nulls_f_l','sql_grammar.py',843), ('nulls_f_l -> NULLS FIRST','nulls_f_l',2,'p_nulls_f_l','sql_grammar.py',844), ('nulls_f_l -> <empty>','nulls_f_l',0,'p_nulls_f_l','sql_grammar.py',845), ('limite -> LIMIT ENTERO','limite',2,'p_limite','sql_grammar.py',852), ('limite -> LIMIT ALL','limite',2,'p_limite','sql_grammar.py',853), ('limite -> OFFSET ENTERO','limite',2,'p_limite','sql_grammar.py',854), ('list_expression -> list_expression COMA expression','list_expression',3,'p_list_expression','sql_grammar.py',863), ('list_expression -> expression','list_expression',1,'p_aux_list_expression','sql_grammar.py',868), ('expression -> SUBSTRING PAR_ABRE expression COMA expression COMA expression PAR_CIERRA','expression',8,'p_expression','sql_grammar.py',872), ('expression -> expression NOT BETWEEN SYMMETRIC expression AND expression','expression',7,'p_expression_between3','sql_grammar.py',881), ('expression -> expression NOT BETWEEN expression AND expression','expression',6,'p_expression_between2','sql_grammar.py',890), ('expression -> expression BETWEEN SYMMETRIC expression AND expression','expression',6,'p_expression_between2','sql_grammar.py',891), ('expression -> expression BETWEEN expression AND expression','expression',5,'p_expression_between','sql_grammar.py',900), ('expression -> expression IS DISTINCT FROM expression','expression',5,'p_expression_Distinct','sql_grammar.py',911), ('expression -> expression IS NOT DISTINCT FROM expression','expression',6,'p_expression_not_Distinct','sql_grammar.py',920), ('expression -> ID PUNTO ID','expression',3,'p_expression_puntoId','sql_grammar.py',929), ('expression -> expression IS NOT NULL','expression',4,'p_expression_null3','sql_grammar.py',938), ('expression -> expression IS NOT TRUE','expression',4,'p_expression_null3','sql_grammar.py',939), ('expression -> expression IS NOT FALSE','expression',4,'p_expression_null3','sql_grammar.py',940), ('expression -> expression IS NOT UNKNOWN','expression',4,'p_expression_null3','sql_grammar.py',941), ('expression -> expression IS NULL','expression',3,'p_expression_null2','sql_grammar.py',950), ('expression -> expression IS TRUE','expression',3,'p_expression_null2','sql_grammar.py',951), ('expression -> expression IS FALSE','expression',3,'p_expression_null2','sql_grammar.py',952), ('expression -> expression IS UNKNOWN','expression',3,'p_expression_null2','sql_grammar.py',953), ('expression -> expression ISNULL','expression',2,'p_expression_null','sql_grammar.py',962), ('expression -> expression NOTNULL','expression',2,'p_expression_null','sql_grammar.py',963), ('expression -> SUM PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',972), ('expression -> COUNT PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',973), ('expression -> AVG PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',974), ('expression -> MAX PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',975), ('expression -> MIN PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',976), ('expression -> ABS PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',977), ('expression -> CBRT PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',978), ('expression -> CEIL PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',979), ('expression -> CEILING PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',980), ('expression -> DEGREES PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',981), ('expression -> DIV PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',982), ('expression -> EXP PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',983), ('expression -> FACTORIAL PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',984), ('expression -> FLOOR PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',985), ('expression -> GCD PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',986), ('expression -> LN PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',987), ('expression -> LOG PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',988), ('expression -> MOD PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',989), ('expression -> PI PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',990), ('expression -> POWER PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',991), ('expression -> RADIANS PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',992), ('expression -> ROUND PAR_ABRE expression PAR_CIERRA','expression',4,'p_expression_agrupar','sql_grammar.py',993), ('expression -> seleccionar','expression',1,'p_expression_select','sql_grammar.py',1003), ('expression -> PAR_ABRE expression PAR_CIERRA','expression',3,'p_expression_ss','sql_grammar.py',1007), ('expression -> expression MAYOR expression','expression',3,'p_expression_relacional_aux_mayor','sql_grammar.py',1011), ('expression -> expression MENOR expression','expression',3,'p_expression_relacional_aux_menor','sql_grammar.py',1017), ('expression -> expression MAYOR_IGUAL expression','expression',3,'p_expression_relacional_aux_mayorigual','sql_grammar.py',1023), ('expression -> expression MENOR_IGUAL expression','expression',3,'p_expression_relacional_aux_menorigual','sql_grammar.py',1029), ('expression -> expression IGUAL expression','expression',3,'p_expression_relacional_aux_igual','sql_grammar.py',1035), ('expression -> expression NO_IGUAL expression','expression',3,'p_expression_relacional_aux_noigual','sql_grammar.py',1041), ('expression -> expression DIFERENTE expression','expression',3,'p_expression_relacional_aux_diferente','sql_grammar.py',1047), ('expression -> expression AND expression','expression',3,'p_expression_logica_and__and','sql_grammar.py',1053), ('expression -> expression OR expression','expression',3,'p_expression_logica_or','sql_grammar.py',1059), ('expression -> NOT expression','expression',2,'p_expression_logica_not','sql_grammar.py',1065), ('expression -> ID','expression',1,'p_solouno_expression','sql_grammar.py',1071), ('expression -> ASTERISCO','expression',1,'p_solouno_expression','sql_grammar.py',1072), ('expression -> ENTERO','expression',1,'p_expression_entero','sql_grammar.py',1082), ('expression -> DECIMAL_NUM','expression',1,'p_expression_decimal','sql_grammar.py',1094), ('expression -> CADENA','expression',1,'p_expression_cadena','sql_grammar.py',1115), ]
_tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftPAR_ABREPAR_CIERRArightIGUALleftORleftANDleftNO_IGUALnonassocMAYORMENORMAYOR_IGUALMENOR_IGUALleftMASMENOSleftASTERISCODIVISIONMODULOleftPOTENCIArightNOTleftLLAVE_ABRELLAVE_CIERRAABS ADD ALL ALTER AND AS ASC ASTERISCO AVG BETWEEN BIGINT BOOLEAN BY CADENA CASE CASTEO CBRT CEIL CEILING CHAR CHARACTER CHECK COLUMN COMA CONSTRAINT CORCHE_ABRE CORCHE_CIERRA COUNT CREATE CURRENT_USER DATABASE DATABASES DATE DAY DECIMAL DECIMAL_NUM DEFAULT DEGREES DELETE DESC DIFERENTE DISTINCT DIV DIVISION DOUBLE DROP ELSE END ENTERO ENUM EXISTS EXP FACTORIAL FALSE FIELDS FIRST FLOOR FOREIGN FROM FULL GCD GREATEST GROUP HAVING HOUR ID IF IGUAL ILIKE IN INHERITS INNER INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL JOIN KEY LAST LEAST LEFT LIKE LIMIT LLAVE_ABRE LLAVE_CIERRA LN LOG MAS MAX MAYOR MAYOR_IGUAL MENOR MENOR_IGUAL MENOS MIN MINUTE MOD MODE MODULO MONEY MONTH NOT NOTNULL NO_IGUAL NULL NULLS NUMERIC OFFSET OR ORDER OUTER OWNER PAR_ABRE PAR_CIERRA PI POTENCIA POWER PRECISION PRIMARY PUNTO PUNTOCOMA RADIANS REAL REFERENCE REFERENCES RENAME REPLACE RIGHT ROUND SECOND SELECT SESSION_USER SET SHOW SIMILAR SMALLINT SUBSTRING SUM SYMMETRIC TABLE TEXT THEN TIME TIMESTAMP TO TRUE TYPE UNION UNIQUE UNKNOWN UPDATE USE VALUES VARCHAR VARYING WHEN WHERE WITH WITHOUT YEAR ZONEinit : instruccionesinstrucciones : instrucciones instruccioninstrucciones : instruccion instruccion : crear_statement PUNTOCOMA\n | alter_statement PUNTOCOMA\n | drop_statement PUNTOCOMA\n | seleccionar PUNTOCOMAinstruccion : SHOW DATABASES PUNTOCOMA\n | INSERT INTO ID VALUES PAR_ABRE list_val PAR_CIERRA PUNTOCOMA\n | UPDATE ID SET ID IGUAL expression where PUNTOCOMA\n | DELETE FROM ID WHERE ID IGUAL expression PUNTOCOMA\n | USE DATABASE ID PUNTOCOMAcrear_statement : CREATE TABLE ID PAR_ABRE contenido_tabla PAR_CIERRA inherits_statementcrear_statement : CREATE or_replace DATABASE if_not_exists ID owner_ mode_or_replace : OR REPLACE\n | if_not_exists : IF NOT EXISTS\n | owner_ : OWNER IGUAL ID\n | mode_ : MODE IGUAL ENTERO\n | alter_statement : ALTER DATABASE ID rename_owneralter_statement : ALTER TABLE ID alter_oprename_owner : RENAME TO ID\n | OWNER TO LLAVE_ABRE ow_op LLAVE_CIERRAow_op : ID\n | CURRENT_USER\n | SESSION_USERdrop_statement : DROP DATABASE if_exists IDdrop_statement : DROP TABLE IDif_exists : IF EXISTS\n | contenido_tabla : contenido_tabla COMA manejo_tablacontenido_tabla : manejo_tablamanejo_tabla : declaracion_columna\n | condition_columndeclaracion_columna : ID type_column condition_column_rowdeclaracion_columna : ID type_columntype_column : SMALLINT\n | INTEGER\n\t | BIGINT\n\t | DECIMAL\n\t | NUMERIC\n\t | REAL\n\t | DOUBLE PRECISION\n\t | MONEY\n\t | VARCHAR PAR_ABRE ENTERO PAR_CIERRA\n | CHAR PAR_ABRE ENTERO PAR_CIERRA\n | CHARACTER PAR_ABRE ENTERO PAR_CIERRA\n | CHARACTER VARYING PAR_ABRE ENTERO PAR_CIERRA\n \t | TEXT\n\t | DATE\n | TIMESTAMP\n | TIMEcondition_column_row : condition_column_row condition_columncondition_column_row : condition_columncondition_column : constraint UNIQUE op_unique\n | constraint CHECK PAR_ABRE expression PAR_CIERRA\n | key_tablecondition_column : DEFAULT expression\n | NULL\n | NOT NULL\n\t | REFERENCE ID\n\t\t | CONSTRAINT ID key_table\n \t\t | constraint : CONSTRAINT ID\n | op_unique : PAR_ABRE list_id PAR_CIERRA\n | constraint CHECK PAR_ABRE expression PAR_CIERRA\n | list_id : list_id COMA aliaslist_id : aliasalias : IDkey_table : PRIMARY KEY list_key\n\t | FOREIGN KEY PAR_ABRE list_id PAR_CIERRA REFERENCES ID PAR_ABRE list_id PAR_CIERRAlist_key : PAR_ABRE list_id PAR_CIERRA\n\t | alter_op : ADD op_add\n\t | ALTER COLUMN ID alter_col_op\n\t | DROP alter_drop IDalter_drop : CONSTRAINT\n\t | COLUMN op_add : CHECK PAR_ABRE ID DIFERENTE CADENA PAR_CIERRA\n | CONSTRAINT ID UNIQUE PAR_ABRE ID PAR_CIERRA\n | key_table REFERENCES PAR_ABRE list_id PAR_CIERRAalter_col_op : SET NOT NULL\n | TYPE type_columninherits_statement : INHERITS PAR_ABRE ID PAR_CIERRA\n | list_val : list_val COMA expressionlist_val : expressionwhere : WHERE ID IGUAL expression\n | seleccionar : SELECT distinto select_list FROM table_expression list_fin_selectseleccionar : SELECT GREATEST expressiones\n | SELECT LEAST expressioneslist_fin_select : list_fin_select fin_selectlist_fin_select : fin_selectfin_select : group_by \n\t | donde\n\t | order_by\n\t | group_having\n\t | limite\n \t| expressiones : PAR_ABRE list_expression PAR_CIERRAexpressiones : list_expressiondistinto : DISTINCT\n\t | select_list : ASTERISCO\n\t | expressiones table_expression : expressionesdonde : WHERE expressionesgroup_by : GROUP BY expressiones order_by : ORDER BY expressiones asc_desc nulls_f_lgroup_having : HAVING expressiones asc_desc : ASC\n\t | DESCnulls_f_l : NULLS LAST\n\t | NULLS FIRST\n\t | limite : LIMIT ENTERO\n\t | LIMIT ALL\n\t | OFFSET ENTEROlist_expression : list_expression COMA expressionlist_expression : expressionexpression : SUBSTRING PAR_ABRE expression COMA expression COMA expression PAR_CIERRAexpression : expression NOT BETWEEN SYMMETRIC expression AND expressionexpression : expression NOT BETWEEN expression AND expression\n | expression BETWEEN SYMMETRIC expression AND expressionexpression : expression BETWEEN expression AND expressionexpression : expression IS DISTINCT FROM expressionexpression : expression IS NOT DISTINCT FROM expressionexpression : ID PUNTO IDexpression : expression IS NOT NULL\n | expression IS NOT TRUE\n | expression IS NOT FALSE\n | expression IS NOT UNKNOWNexpression : expression IS NULL\n | expression IS TRUE\n | expression IS FALSE\n | expression IS UNKNOWNexpression : expression ISNULL\n | expression NOTNULLexpression : SUM PAR_ABRE expression PAR_CIERRA\n | COUNT PAR_ABRE expression PAR_CIERRA\n | AVG PAR_ABRE expression PAR_CIERRA\n | MAX PAR_ABRE expression PAR_CIERRA\n | MIN PAR_ABRE expression PAR_CIERRA\n | ABS PAR_ABRE expression PAR_CIERRA\n | CBRT PAR_ABRE expression PAR_CIERRA\n | CEIL PAR_ABRE expression PAR_CIERRA\n | CEILING PAR_ABRE expression PAR_CIERRA \n | DEGREES PAR_ABRE expression PAR_CIERRA\n | DIV PAR_ABRE expression PAR_CIERRA\n | EXP PAR_ABRE expression PAR_CIERRA\n | FACTORIAL PAR_ABRE expression PAR_CIERRA \n | FLOOR PAR_ABRE expression PAR_CIERRA\n | GCD PAR_ABRE expression PAR_CIERRA\n | LN PAR_ABRE expression PAR_CIERRA\n | LOG PAR_ABRE expression PAR_CIERRA\n | MOD PAR_ABRE expression PAR_CIERRA\n | PI PAR_ABRE expression PAR_CIERRA\n | POWER PAR_ABRE expression PAR_CIERRA\n | RADIANS PAR_ABRE expression PAR_CIERRA\n | ROUND PAR_ABRE expression PAR_CIERRAexpression : seleccionarexpression : PAR_ABRE expression PAR_CIERRAexpression : expression MAYOR expressionexpression : expression MENOR expressionexpression : expression MAYOR_IGUAL expressionexpression : expression MENOR_IGUAL expressionexpression : expression IGUAL expressionexpression : expression NO_IGUAL expressionexpression : expression DIFERENTE expressionexpression : expression AND expressionexpression : expression OR expressionexpression : NOT expressionexpression : ID\n | ASTERISCOexpression : ENTEROexpression : DECIMAL_NUMexpression : CADENA' _lr_action_items = {'SHOW': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [8, 8, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'INSERT': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [9, 9, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'UPDATE': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [10, 10, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'DELETE': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [11, 11, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'USE': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [12, 12, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'CREATE': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [13, 13, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'ALTER': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 47, 92, 364, 366, 368], [14, 14, -3, -2, -4, -5, -6, -7, -8, 99, -12, -9, -10, -11]), 'DROP': ([0, 2, 3, 17, 18, 19, 20, 21, 38, 47, 92, 364, 366, 368], [15, 15, -3, -2, -4, -5, -6, -7, -8, 102, -12, -9, -10, -11]), 'SELECT': ([0, 2, 3, 16, 17, 18, 19, 20, 21, 34, 35, 36, 37, 38, 54, 58, 92, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 364, 366, 368, 394, 397, 398, 404], [16, 16, -3, -109, -2, -4, -5, -6, -7, 16, 16, 16, -108, -8, 16, 16, -12, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -9, -10, -11, 16, 16, 16, 16]), '$end': ([1, 2, 3, 17, 18, 19, 20, 21, 38, 92, 364, 366, 368], [0, -1, -3, -2, -4, -5, -6, -7, -8, -12, -9, -10, -11]), 'PUNTOCOMA': ([4, 5, 6, 7, 22, 42, 50, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 96, 100, 103, 114, 115, 125, 166, 171, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 228, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 246, 256, 259, 265, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 314, 316, 319, 324, 336, 343, 349, 351, 353, 354, 355, 356, 359, 361, 384, 385, 387, 391, 393, 395, 396, 399, 400, 401, 410, 411, 414, 415, 416, 417, 418, 420, 421, 422, 426, 427, 428, 430, 433, 434], [18, 19, 20, 21, 38, 92, -31, -107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -23, -24, -30, -143, -144, -178, -20, -79, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -94, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, -90, -22, -25, -81, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 364, 366, 368, -46, -13, -14, -80, -98, -113, -116, -122, -123, -124, -131, -132, -19, -26, -88, -114, -129, -130, -133, -48, -49, -50, -21, -87, -86, -121, -117, -118, -128, -93, -51, -89, -84, -85, -115, -127, -119, -120]), 'DATABASES': ([8], [22]), 'INTO': ([9], [23]), 'ID': ([10, 16, 23, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 40, 44, 48, 54, 58, 91, 93, 94, 104, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 162, 163, 168, 170, 173, 175, 176, 177, 184, 186, 229, 247, 258, 260, 262, 274, 276, 280, 281, 283, 289, 313, 315, 329, 330, 331, 334, 335, 338, 348, 350, 352, 357, 360, 362, 374, 389, 394, 397, 398, 404, 406, 425, 435], [24, -109, 39, 41, 42, 43, 46, 47, -33, 50, 59, 59, 59, -108, 90, -18, 103, 59, 59, 151, 152, 166, -32, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 203, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 252, 253, 259, 261, 263, 265, -82, -83, 59, 59, 59, 152, -17, 340, 346, 59, 59, 59, 59, 59, 59, 59, 367, 378, 379, 59, 378, 378, 384, 378, 59, 59, 59, 59, 59, 403, 413, 59, 59, 59, 59, 378, 432, 378]), 'FROM': ([11, 51, 52, 53, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 188, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 284, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [25, 105, -110, -111, -107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, -105, -112, -106, -168, -125, -176, 283, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -95, -99, -100, -101, -102, -103, -104, 362, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'DATABASE': ([12, 13, 14, 15, 28, 45], [26, -16, 30, 32, 44, -15]), 'TABLE': ([13, 14, 15], [27, 31, 33]), 'OR': ([13, 52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [29, -180, -107, 123, -179, -167, -181, -182, -183, -96, -180, -97, 123, -143, -144, -178, -105, -112, 123, -106, -168, 123, 123, -176, -139, -140, -141, -142, -169, -170, -171, -172, 123, -174, 123, -177, 123, -134, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, -95, -99, -100, -101, -102, -103, -104, 123, 123, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 123, -98, -113, -116, -122, -123, -124, 123, -131, 123, 123, 123, 123, -114, -129, -130, 123, -121, -117, -118, -128, 123, 123, 123, -115, -127, -119, -120]), 'GREATEST': ([16], [35]), 'LEAST': ([16], [36]), 'DISTINCT': ([16, 113, 189], [37, 188, 284]), 'ASTERISCO': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 52, 87, 87, -108, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87]), 'PAR_ABRE': ([16, 34, 35, 36, 37, 43, 54, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 89, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 172, 184, 186, 229, 239, 240, 241, 248, 249, 254, 255, 264, 274, 276, 280, 281, 283, 289, 313, 323, 325, 331, 347, 350, 352, 357, 360, 362, 375, 394, 397, 398, 404, 432], [-109, 54, 54, 54, -108, 93, 106, 124, 106, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 54, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 262, 106, 106, 106, 320, 321, 322, 329, 331, 334, 335, 348, 54, 54, 106, 106, 106, 106, 106, 373, 374, 106, 389, 54, 54, 106, 106, 106, 404, 106, 106, 106, 106, 435]), 'SUBSTRING': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 57, 57, 57, -108, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57]), 'SUM': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 60, 60, 60, -108, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60]), 'COUNT': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 61, 61, 61, -108, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61]), 'AVG': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 62, 62, 62, -108, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62]), 'MAX': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 63, 63, 63, -108, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63]), 'MIN': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 64, 64, 64, -108, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64]), 'ABS': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 65, 65, 65, -108, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65]), 'CBRT': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 66, 66, 66, -108, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66]), 'CEIL': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 67, 67, 67, -108, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67]), 'CEILING': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 68, 68, 68, -108, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68]), 'DEGREES': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 69, 69, 69, -108, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69]), 'DIV': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 70, 70, 70, -108, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70]), 'EXP': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 71, 71, 71, -108, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71]), 'FACTORIAL': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 72, 72, 72, -108, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72]), 'FLOOR': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 73, 73, 73, -108, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73]), 'GCD': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 74, 74, 74, -108, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74]), 'LN': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 75, 75, 75, -108, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75]), 'LOG': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 76, 76, 76, -108, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76]), 'MOD': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 77, 77, 77, -108, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77]), 'PI': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 78, 78, 78, -108, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78]), 'POWER': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 79, 79, 79, -108, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79]), 'RADIANS': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 80, 80, 80, -108, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80]), 'ROUND': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 81, 81, 81, -108, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81]), 'NOT': ([16, 34, 35, 36, 37, 52, 54, 55, 56, 58, 59, 82, 83, 84, 85, 86, 87, 88, 93, 95, 105, 106, 108, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 158, 159, 160, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 274, 276, 279, 280, 281, 282, 283, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 313, 316, 317, 318, 319, 328, 331, 332, 333, 344, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 365, 369, 380, 391, 393, 394, 395, 396, 397, 398, 399, 400, 401, 404, 405, 407, 408, 415, 416, 417, 418, 419, 420, 421, 423, 428, 430, 431, 433, 434, 437], [-109, 58, 58, 58, -108, -180, 58, -107, 110, 58, -179, -167, -181, -182, -183, -96, -180, -97, 161, 167, 58, 58, 110, 58, 58, 58, 189, -143, -144, 58, 58, 58, 58, 58, 58, 58, 58, 58, 110, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, -60, 58, -62, -105, -112, 110, -106, -168, 110, 58, 110, 58, 110, -139, -140, -141, -142, 110, 110, 110, 110, 110, 110, 110, 110, 110, -134, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 58, 161, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 161, -71, 110, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, 58, 58, 110, 58, 58, 110, 58, -135, -136, -137, -138, 58, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 58, 110, 161, -57, -46, -58, 58, -65, -75, 386, -98, 58, -113, 58, -116, -122, -123, -124, 58, 110, 110, 58, 110, 58, 110, 110, -56, 110, -114, 110, 58, 110, 110, 58, 58, -48, -49, -50, 58, -69, -59, -77, -121, -117, -118, 110, 110, 110, -51, 110, -115, -127, -70, -119, -120, -76]), 'ENTERO': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 277, 278, 280, 281, 283, 289, 313, 320, 321, 322, 331, 350, 352, 357, 360, 362, 373, 383, 394, 397, 398, 404], [-109, 83, 83, 83, -108, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 354, 356, 83, 83, 83, 83, 83, 370, 371, 372, 83, 83, 83, 83, 83, 83, 402, 410, 83, 83, 83, 83]), 'DECIMAL_NUM': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [-109, 84, 84, 84, -108, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84]), 'CADENA': ([16, 34, 35, 36, 37, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 388, 394, 397, 398, 404], [-109, 85, 85, 85, -108, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 412, 85, 85, 85, 85]), 'SET': ([24, 261], [40, 344]), 'REPLACE': ([29], [45]), 'IF': ([32, 44], [49, 95]), 'VALUES': ([39], [89]), 'WHERE': ([41, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 228, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [91, -107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 274, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 315, 274, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'RENAME': ([46], [97]), 'OWNER': ([46, 166], [98, 257]), 'ADD': ([47], [101]), 'EXISTS': ([49, 167], [104, 258]), 'BETWEEN': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 110, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 111, -179, -167, -181, -182, -183, -96, -180, -97, 111, 184, -143, -144, -178, -105, -112, 111, -106, -168, 111, 111, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, 111, -177, 111, -134, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, -95, -99, -100, -101, -102, -103, -104, 111, 111, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 111, -98, -113, -116, -122, -123, -124, 111, -131, 111, 111, 111, 111, -114, -129, -130, 111, -121, -117, -118, -128, 111, 111, 111, -115, -127, -119, -120]), 'IS': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 113, -179, -167, -181, -182, -183, -96, -180, -97, 113, -143, -144, -178, -105, -112, 113, -106, -168, 113, 113, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, 113, -177, 113, -134, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, -95, -99, -100, -101, -102, -103, -104, 113, 113, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 113, -98, -113, -116, -122, -123, -124, 113, -131, 113, 113, 113, 113, -114, -129, -130, 113, -121, -117, -118, -128, 113, 113, 113, -115, -127, -119, -120]), 'ISNULL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 114, -179, -167, -181, -182, -183, -96, -180, -97, 114, -143, -144, -178, -105, -112, 114, -106, -168, 114, 114, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, 114, -177, 114, -134, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, -95, -99, -100, -101, -102, -103, -104, 114, 114, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 114, -98, -113, -116, -122, -123, -124, 114, -131, 114, 114, 114, 114, -114, -129, -130, 114, -121, -117, -118, -128, 114, 114, 114, -115, -127, -119, -120]), 'NOTNULL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 115, -179, -167, -181, -182, -183, -96, -180, -97, 115, -143, -144, -178, -105, -112, 115, -106, -168, 115, 115, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, 115, -177, 115, -134, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, -95, -99, -100, -101, -102, -103, -104, 115, 115, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 115, -98, -113, -116, -122, -123, -124, 115, -131, 115, 115, 115, 115, -114, -129, -130, 115, -121, -117, -118, -128, 115, 115, 115, -115, -127, -119, -120]), 'MAYOR': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 116, -179, -167, -181, -182, -183, -96, -180, -97, 116, -143, -144, -178, -105, -112, 116, -106, -168, 116, 116, 116, -139, -140, -141, -142, None, None, None, None, 116, 116, 116, 116, 116, -134, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, -95, -99, -100, -101, -102, -103, -104, 116, 116, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 116, -98, -113, -116, -122, -123, -124, 116, 116, 116, 116, 116, 116, -114, 116, 116, 116, -121, -117, -118, 116, 116, 116, 116, -115, -127, -119, -120]), 'MENOR': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 117, -179, -167, -181, -182, -183, -96, -180, -97, 117, -143, -144, -178, -105, -112, 117, -106, -168, 117, 117, 117, -139, -140, -141, -142, None, None, None, None, 117, 117, 117, 117, 117, -134, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, -95, -99, -100, -101, -102, -103, -104, 117, 117, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 117, -98, -113, -116, -122, -123, -124, 117, 117, 117, 117, 117, 117, -114, 117, 117, 117, -121, -117, -118, 117, 117, 117, 117, -115, -127, -119, -120]), 'MAYOR_IGUAL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 118, -179, -167, -181, -182, -183, -96, -180, -97, 118, -143, -144, -178, -105, -112, 118, -106, -168, 118, 118, 118, -139, -140, -141, -142, None, None, None, None, 118, 118, 118, 118, 118, -134, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, -95, -99, -100, -101, -102, -103, -104, 118, 118, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 118, -98, -113, -116, -122, -123, -124, 118, 118, 118, 118, 118, 118, -114, 118, 118, 118, -121, -117, -118, 118, 118, 118, 118, -115, -127, -119, -120]), 'MENOR_IGUAL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 119, -179, -167, -181, -182, -183, -96, -180, -97, 119, -143, -144, -178, -105, -112, 119, -106, -168, 119, 119, 119, -139, -140, -141, -142, None, None, None, None, 119, 119, 119, 119, 119, -134, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, -95, -99, -100, -101, -102, -103, -104, 119, 119, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 119, -98, -113, -116, -122, -123, -124, 119, 119, 119, 119, 119, 119, -114, 119, 119, 119, -121, -117, -118, 119, 119, 119, 119, -115, -127, -119, -120]), 'IGUAL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 90, 108, 114, 115, 125, 151, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 257, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 337, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 367, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 120, -179, -167, -181, -182, -183, -96, -180, -97, 150, 120, -143, -144, -178, 229, -105, -112, 120, -106, -168, 120, 120, -176, -139, -140, -141, -142, -169, -170, -171, -172, 120, -174, 120, -177, 120, -134, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 338, -95, -99, -100, -101, -102, -103, -104, 120, 120, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 120, 383, -98, -113, -116, -122, -123, -124, 120, -131, 120, 120, 120, 398, 120, -114, -129, -130, 120, -121, -117, -118, -128, 120, 120, 120, -115, -127, -119, -120]), 'NO_IGUAL': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 121, -179, -167, -181, -182, -183, -96, -180, -97, 121, -143, -144, -178, -105, -112, 121, -106, -168, 121, 121, 121, -139, -140, -141, -142, -169, -170, -171, -172, 121, -174, 121, 121, 121, -134, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, -95, -99, -100, -101, -102, -103, -104, 121, 121, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 121, -98, -113, -116, -122, -123, -124, 121, 121, 121, 121, 121, 121, -114, 121, 121, 121, -121, -117, -118, 121, 121, 121, 121, -115, -127, -119, -120]), 'DIFERENTE': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 346, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 122, -179, -167, -181, -182, -183, -96, -180, -97, 122, -143, -144, -178, -105, -112, 122, -106, -168, 122, 122, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, 122, -177, 122, -134, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, -95, -99, -100, -101, -102, -103, -104, 122, 122, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 122, 388, -98, -113, -116, -122, -123, -124, 122, -131, 122, 122, 122, 122, -114, -129, -130, 122, -121, -117, -118, -128, 122, 122, 122, -115, -127, -119, -120]), 'AND': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 108, 114, 115, 125, 178, 179, 180, 181, 182, 183, 185, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 266, 267, 268, 269, 270, 271, 272, 279, 282, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 316, 349, 351, 353, 354, 355, 356, 358, 359, 361, 363, 365, 380, 391, 393, 395, 396, 415, 416, 417, 418, 419, 420, 423, 428, 430, 433, 434], [-180, -107, 112, -179, -167, -181, -182, -183, -96, -180, -97, 112, -143, -144, -178, -105, -112, 112, -106, -168, 112, 281, -176, -139, -140, -141, -142, -169, -170, -171, -172, 112, -174, 112, 112, 112, -134, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, -95, -99, -100, -101, -102, -103, -104, 357, 360, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 112, -98, -113, -116, -122, -123, -124, 394, -131, 112, 112, 112, 112, -114, -129, -130, 112, -121, -117, -118, -128, 112, 112, 112, -115, -127, -119, -120]), 'COMA': ([52, 55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 107, 108, 114, 115, 125, 153, 154, 155, 156, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 226, 227, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 326, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 363, 365, 369, 376, 377, 378, 381, 382, 390, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 424, 428, 430, 431, 433, 434, 436, 437], [-180, 109, -126, -179, -167, -181, -182, -183, -96, -180, -97, -66, 109, -126, -143, -144, -178, 247, -35, -36, -37, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, 289, -134, 313, -92, -39, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, -66, -71, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -38, -57, -46, -34, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, 397, -91, -56, 406, -73, -74, 406, 406, 406, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -72, -115, -127, -70, -119, -120, 406, -76]), 'PAR_CIERRA': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 107, 108, 114, 115, 125, 153, 154, 155, 156, 158, 160, 178, 179, 180, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 326, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 365, 369, 370, 371, 372, 376, 377, 378, 380, 381, 382, 390, 391, 393, 395, 396, 399, 400, 401, 402, 403, 405, 407, 408, 412, 413, 415, 416, 417, 418, 419, 421, 423, 424, 428, 430, 431, 433, 434, 436, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -66, 181, 182, -143, -144, -178, 246, -35, -36, -37, -60, -62, -105, -112, 182, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, -92, -39, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, -66, -71, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -38, -57, -46, -34, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -91, -56, 399, 400, 401, 405, -73, -74, 407, 408, 409, 414, -114, -129, -130, -133, -48, -49, -50, 421, 422, -69, -59, -77, 426, 427, -121, -117, -118, -128, 430, -51, 431, -72, -115, -127, -70, -119, -120, 437, -76]), 'GROUP': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 273, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 273, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'ORDER': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 275, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 275, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'HAVING': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 276, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 276, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'LIMIT': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 277, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 277, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'OFFSET': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, 278, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 278, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'DEFAULT': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 114, 115, 125, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 159, -143, -144, -178, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 159, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 159, -71, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 159, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'NULL': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 113, 114, 115, 125, 158, 160, 161, 178, 179, 181, 182, 183, 187, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 386, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 160, 190, -143, -144, -178, -60, -62, 251, -105, -112, -106, -168, -125, -176, 285, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 160, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 160, -71, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 160, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, 411, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'REFERENCE': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 114, 115, 125, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 162, -143, -144, -178, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 162, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 162, -71, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 162, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'CONSTRAINT': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 101, 102, 114, 115, 125, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 163, 173, 176, -143, -144, -178, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 163, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 163, 330, -61, -63, -64, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 163, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'PRIMARY': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 101, 114, 115, 125, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 253, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 164, 164, -143, -144, -178, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 164, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 164, -71, -61, -63, -64, 164, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 164, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'FOREIGN': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 101, 114, 115, 125, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 253, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, 165, 165, -143, -144, -178, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, 165, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, 165, -71, -61, -63, -64, 165, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, 165, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'UNIQUE': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 114, 115, 125, 157, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 253, 254, 263, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -68, -143, -144, -178, 248, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -66, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, -68, -71, -61, -63, -64, -67, -78, 347, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -66, -57, -46, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'CHECK': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 93, 101, 114, 115, 125, 157, 158, 160, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 230, 231, 232, 233, 234, 235, 236, 238, 242, 243, 244, 245, 247, 248, 250, 251, 252, 253, 254, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 317, 318, 319, 327, 328, 332, 333, 349, 351, 353, 354, 355, 356, 359, 361, 369, 379, 391, 393, 395, 396, 399, 400, 401, 405, 407, 408, 415, 416, 417, 418, 421, 428, 430, 431, 433, 434, 437], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -68, 172, -143, -144, -178, 249, -60, -62, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -66, -40, -41, -42, -43, -44, -45, -47, -52, -53, -54, -55, -68, -68, -61, -63, -64, -67, -78, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -66, -57, -46, 375, -58, -65, -75, -98, -113, -116, -122, -123, -124, -131, -132, -56, -67, -114, -129, -130, -133, -48, -49, -50, -69, -59, -77, -121, -117, -118, -128, -51, -115, -127, -70, -119, -120, -76]), 'ASC': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 392, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, 416, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'DESC': ([55, 56, 59, 82, 83, 84, 85, 86, 87, 88, 114, 115, 125, 178, 179, 181, 182, 183, 187, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 266, 267, 268, 269, 270, 271, 272, 285, 286, 287, 288, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 349, 351, 353, 354, 355, 356, 359, 361, 391, 392, 393, 395, 396, 415, 416, 417, 418, 428, 430, 433, 434], [-107, -126, -179, -167, -181, -182, -183, -96, -180, -97, -143, -144, -178, -105, -112, -106, -168, -125, -176, -139, -140, -141, -142, -169, -170, -171, -172, -173, -174, -175, -177, -134, -95, -99, -100, -101, -102, -103, -104, -135, -136, -137, -138, -145, -146, -147, -148, -149, -150, -151, -152, -153, -154, -155, -156, -157, -158, -159, -160, -161, -162, -163, -164, -165, -166, -98, -113, -116, -122, -123, -124, -131, -132, -114, 417, -129, -130, -133, -121, -117, -118, -128, -115, -127, -119, -120]), 'PUNTO': ([59], [126]), 'TO': ([97, 98], [168, 169]), 'COLUMN': ([99, 102], [170, 177]), 'SYMMETRIC': ([111, 184], [186, 280]), 'TRUE': ([113, 189], [191, 286]), 'FALSE': ([113, 189], [192, 287]), 'UNKNOWN': ([113, 189], [193, 288]), 'SMALLINT': ([152, 345], [231, 231]), 'INTEGER': ([152, 345], [232, 232]), 'BIGINT': ([152, 345], [233, 233]), 'DECIMAL': ([152, 345], [234, 234]), 'NUMERIC': ([152, 345], [235, 235]), 'REAL': ([152, 345], [236, 236]), 'DOUBLE': ([152, 345], [237, 237]), 'MONEY': ([152, 345], [238, 238]), 'VARCHAR': ([152, 345], [239, 239]), 'CHAR': ([152, 345], [240, 240]), 'CHARACTER': ([152, 345], [241, 241]), 'TEXT': ([152, 345], [242, 242]), 'DATE': ([152, 345], [243, 243]), 'TIMESTAMP': ([152, 345], [244, 244]), 'TIME': ([152, 345], [245, 245]), 'KEY': ([164, 165], [254, 255]), 'MODE': ([166, 256, 384], [-20, 337, -19]), 'LLAVE_ABRE': ([169], [260]), 'REFERENCES': ([174, 254, 333, 408, 409, 437], [264, -78, -75, -77, 425, -76]), 'PRECISION': ([237], [319]), 'VARYING': ([241], [323]), 'INHERITS': ([246], [325]), 'CURRENT_USER': ([260], [341]), 'SESSION_USER': ([260], [342]), 'TYPE': ([261], [345]), 'BY': ([273, 275], [350, 352]), 'ALL': ([277], [355]), 'LLAVE_CIERRA': ([339, 340, 341, 342], [385, -27, -28, -29]), 'NULLS': ([415, 416, 417], [429, -117, -118]), 'LAST': ([429], [433]), 'FIRST': ([429], [434])} _lr_action = {} for (_k, _v) in _lr_action_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'init': ([0], [1]), 'instrucciones': ([0], [2]), 'instruccion': ([0, 2], [3, 17]), 'crear_statement': ([0, 2], [4, 4]), 'alter_statement': ([0, 2], [5, 5]), 'drop_statement': ([0, 2], [6, 6]), 'seleccionar': ([0, 2, 34, 35, 36, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [7, 7, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82]), 'or_replace': ([13], [28]), 'distinto': ([16], [34]), 'if_exists': ([32], [48]), 'select_list': ([34], [51]), 'expressiones': ([34, 35, 36, 105, 274, 276, 350, 352], [53, 86, 88, 179, 351, 353, 391, 392]), 'list_expression': ([34, 35, 36, 54, 105, 274, 276, 350, 352], [55, 55, 55, 107, 55, 55, 55, 55, 55]), 'expression': ([34, 35, 36, 54, 58, 105, 106, 109, 111, 112, 116, 117, 118, 119, 120, 121, 122, 123, 124, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 159, 184, 186, 229, 274, 276, 280, 281, 283, 289, 313, 331, 350, 352, 357, 360, 362, 394, 397, 398, 404], [56, 56, 56, 108, 125, 56, 180, 183, 185, 187, 194, 195, 196, 197, 198, 199, 200, 201, 202, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 250, 279, 282, 316, 56, 56, 358, 359, 361, 363, 365, 380, 56, 56, 393, 395, 396, 418, 419, 420, 423]), 'if_not_exists': ([44], [94]), 'rename_owner': ([46], [96]), 'alter_op': ([47], [100]), 'contenido_tabla': ([93], [153]), 'manejo_tabla': ([93, 247], [154, 326]), 'declaracion_columna': ([93, 247], [155, 155]), 'condition_column': ([93, 230, 247, 317], [156, 318, 156, 369]), 'constraint': ([93, 230, 247, 248, 317], [157, 157, 157, 327, 157]), 'key_table': ([93, 101, 230, 247, 253, 317], [158, 174, 158, 158, 332, 158]), 'op_add': ([101], [171]), 'alter_drop': ([102], [175]), 'table_expression': ([105], [178]), 'list_val': ([149], [226]), 'type_column': ([152, 345], [230, 387]), 'owner_': ([166], [256]), 'list_fin_select': ([178], [266]), 'fin_select': ([178, 266], [267, 349]), 'group_by': ([178, 266], [268, 268]), 'donde': ([178, 266], [269, 269]), 'order_by': ([178, 266], [270, 270]), 'group_having': ([178, 266], [271, 271]), 'limite': ([178, 266], [272, 272]), 'where': ([228], [314]), 'condition_column_row': ([230], [317]), 'inherits_statement': ([246], [324]), 'op_unique': ([248], [328]), 'list_key': ([254], [333]), 'mode_': ([256], [336]), 'ow_op': ([260], [339]), 'alter_col_op': ([261], [343]), 'list_id': ([329, 334, 335, 348, 435], [376, 381, 382, 390, 436]), 'alias': ([329, 334, 335, 348, 406, 435], [377, 377, 377, 377, 424, 377]), 'asc_desc': ([392], [415]), 'nulls_f_l': ([415], [428])} _lr_goto = {} for (_k, _v) in _lr_goto_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [("S' -> init", "S'", 1, None, None, None), ('init -> instrucciones', 'init', 1, 'p_init', 'sql_grammar.py', 324), ('instrucciones -> instrucciones instruccion', 'instrucciones', 2, 'p_instrucciones_lista', 'sql_grammar.py', 328), ('instrucciones -> instruccion', 'instrucciones', 1, 'p_instrucciones_instruccion', 'sql_grammar.py', 333), ('instruccion -> crear_statement PUNTOCOMA', 'instruccion', 2, 'p_instruccion', 'sql_grammar.py', 337), ('instruccion -> alter_statement PUNTOCOMA', 'instruccion', 2, 'p_instruccion', 'sql_grammar.py', 338), ('instruccion -> drop_statement PUNTOCOMA', 'instruccion', 2, 'p_instruccion', 'sql_grammar.py', 339), ('instruccion -> seleccionar PUNTOCOMA', 'instruccion', 2, 'p_instruccion', 'sql_grammar.py', 340), ('instruccion -> SHOW DATABASES PUNTOCOMA', 'instruccion', 3, 'p_aux_instruccion', 'sql_grammar.py', 344), ('instruccion -> INSERT INTO ID VALUES PAR_ABRE list_val PAR_CIERRA PUNTOCOMA', 'instruccion', 8, 'p_aux_instruccion', 'sql_grammar.py', 345), ('instruccion -> UPDATE ID SET ID IGUAL expression where PUNTOCOMA', 'instruccion', 8, 'p_aux_instruccion', 'sql_grammar.py', 346), ('instruccion -> DELETE FROM ID WHERE ID IGUAL expression PUNTOCOMA', 'instruccion', 8, 'p_aux_instruccion', 'sql_grammar.py', 347), ('instruccion -> USE DATABASE ID PUNTOCOMA', 'instruccion', 4, 'p_aux_instruccion', 'sql_grammar.py', 348), ('crear_statement -> CREATE TABLE ID PAR_ABRE contenido_tabla PAR_CIERRA inherits_statement', 'crear_statement', 7, 'p_crear_statement_tbl', 'sql_grammar.py', 367), ('crear_statement -> CREATE or_replace DATABASE if_not_exists ID owner_ mode_', 'crear_statement', 7, 'p_crear_statement_db', 'sql_grammar.py', 373), ('or_replace -> OR REPLACE', 'or_replace', 2, 'p_or_replace_db', 'sql_grammar.py', 379), ('or_replace -> <empty>', 'or_replace', 0, 'p_or_replace_db', 'sql_grammar.py', 380), ('if_not_exists -> IF NOT EXISTS', 'if_not_exists', 3, 'p_if_not_exists_db', 'sql_grammar.py', 388), ('if_not_exists -> <empty>', 'if_not_exists', 0, 'p_if_not_exists_db', 'sql_grammar.py', 389), ('owner_ -> OWNER IGUAL ID', 'owner_', 3, 'p_owner_db', 'sql_grammar.py', 397), ('owner_ -> <empty>', 'owner_', 0, 'p_owner_db', 'sql_grammar.py', 398), ('mode_ -> MODE IGUAL ENTERO', 'mode_', 3, 'p_mode_db', 'sql_grammar.py', 408), ('mode_ -> <empty>', 'mode_', 0, 'p_mode_db', 'sql_grammar.py', 409), ('alter_statement -> ALTER DATABASE ID rename_owner', 'alter_statement', 4, 'p_alter_db', 'sql_grammar.py', 419), ('alter_statement -> ALTER TABLE ID alter_op', 'alter_statement', 4, 'p_alter_tbl', 'sql_grammar.py', 425), ('rename_owner -> RENAME TO ID', 'rename_owner', 3, 'p_rename_owner_db', 'sql_grammar.py', 432), ('rename_owner -> OWNER TO LLAVE_ABRE ow_op LLAVE_CIERRA', 'rename_owner', 5, 'p_rename_owner_db', 'sql_grammar.py', 433), ('ow_op -> ID', 'ow_op', 1, 'p_ow_op_db', 'sql_grammar.py', 443), ('ow_op -> CURRENT_USER', 'ow_op', 1, 'p_ow_op_db', 'sql_grammar.py', 444), ('ow_op -> SESSION_USER', 'ow_op', 1, 'p_ow_op_db', 'sql_grammar.py', 445), ('drop_statement -> DROP DATABASE if_exists ID', 'drop_statement', 4, 'p_drop_db', 'sql_grammar.py', 449), ('drop_statement -> DROP TABLE ID', 'drop_statement', 3, 'p_drop_tbl', 'sql_grammar.py', 458), ('if_exists -> IF EXISTS', 'if_exists', 2, 'p_if_exists_db', 'sql_grammar.py', 464), ('if_exists -> <empty>', 'if_exists', 0, 'p_if_exists_db', 'sql_grammar.py', 465), ('contenido_tabla -> contenido_tabla COMA manejo_tabla', 'contenido_tabla', 3, 'p_contenido_tabla', 'sql_grammar.py', 472), ('contenido_tabla -> manejo_tabla', 'contenido_tabla', 1, 'p_aux_contenido_table', 'sql_grammar.py', 477), ('manejo_tabla -> declaracion_columna', 'manejo_tabla', 1, 'p_manejo_tabla', 'sql_grammar.py', 481), ('manejo_tabla -> condition_column', 'manejo_tabla', 1, 'p_manejo_tabla', 'sql_grammar.py', 482), ('declaracion_columna -> ID type_column condition_column_row', 'declaracion_columna', 3, 'p_aux_declaracion_columna', 'sql_grammar.py', 486), ('declaracion_columna -> ID type_column', 'declaracion_columna', 2, 'p_declaracion_columna', 'sql_grammar.py', 492), ('type_column -> SMALLINT', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 498), ('type_column -> INTEGER', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 499), ('type_column -> BIGINT', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 500), ('type_column -> DECIMAL', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 501), ('type_column -> NUMERIC', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 502), ('type_column -> REAL', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 503), ('type_column -> DOUBLE PRECISION', 'type_column', 2, 'p_type_column', 'sql_grammar.py', 504), ('type_column -> MONEY', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 505), ('type_column -> VARCHAR PAR_ABRE ENTERO PAR_CIERRA', 'type_column', 4, 'p_type_column', 'sql_grammar.py', 506), ('type_column -> CHAR PAR_ABRE ENTERO PAR_CIERRA', 'type_column', 4, 'p_type_column', 'sql_grammar.py', 507), ('type_column -> CHARACTER PAR_ABRE ENTERO PAR_CIERRA', 'type_column', 4, 'p_type_column', 'sql_grammar.py', 508), ('type_column -> CHARACTER VARYING PAR_ABRE ENTERO PAR_CIERRA', 'type_column', 5, 'p_type_column', 'sql_grammar.py', 509), ('type_column -> TEXT', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 510), ('type_column -> DATE', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 511), ('type_column -> TIMESTAMP', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 512), ('type_column -> TIME', 'type_column', 1, 'p_type_column', 'sql_grammar.py', 513), ('condition_column_row -> condition_column_row condition_column', 'condition_column_row', 2, 'p_condition_column_row', 'sql_grammar.py', 547), ('condition_column_row -> condition_column', 'condition_column_row', 1, 'p_aux_condition_column_row', 'sql_grammar.py', 552), ('condition_column -> constraint UNIQUE op_unique', 'condition_column', 3, 'p_condition_column', 'sql_grammar.py', 556), ('condition_column -> constraint CHECK PAR_ABRE expression PAR_CIERRA', 'condition_column', 5, 'p_condition_column', 'sql_grammar.py', 557), ('condition_column -> key_table', 'condition_column', 1, 'p_condition_column', 'sql_grammar.py', 558), ('condition_column -> DEFAULT expression', 'condition_column', 2, 'p_aux_condition_column', 'sql_grammar.py', 573), ('condition_column -> NULL', 'condition_column', 1, 'p_aux_condition_column', 'sql_grammar.py', 574), ('condition_column -> NOT NULL', 'condition_column', 2, 'p_aux_condition_column', 'sql_grammar.py', 575), ('condition_column -> REFERENCE ID', 'condition_column', 2, 'p_aux_condition_column', 'sql_grammar.py', 576), ('condition_column -> CONSTRAINT ID key_table', 'condition_column', 3, 'p_aux_condition_column', 'sql_grammar.py', 577), ('condition_column -> <empty>', 'condition_column', 0, 'p_aux_condition_column', 'sql_grammar.py', 578), ('constraint -> CONSTRAINT ID', 'constraint', 2, 'p_constraint', 'sql_grammar.py', 600), ('constraint -> <empty>', 'constraint', 0, 'p_constraint', 'sql_grammar.py', 601), ('op_unique -> PAR_ABRE list_id PAR_CIERRA', 'op_unique', 3, 'p_op_unique', 'sql_grammar.py', 611), ('op_unique -> constraint CHECK PAR_ABRE expression PAR_CIERRA', 'op_unique', 5, 'p_op_unique', 'sql_grammar.py', 612), ('op_unique -> <empty>', 'op_unique', 0, 'p_op_unique', 'sql_grammar.py', 613), ('list_id -> list_id COMA alias', 'list_id', 3, 'p_list_id', 'sql_grammar.py', 624), ('list_id -> alias', 'list_id', 1, 'p_aux_list_id', 'sql_grammar.py', 629), ('alias -> ID', 'alias', 1, 'p_alias', 'sql_grammar.py', 633), ('key_table -> PRIMARY KEY list_key', 'key_table', 3, 'p_key_table', 'sql_grammar.py', 639), ('key_table -> FOREIGN KEY PAR_ABRE list_id PAR_CIERRA REFERENCES ID PAR_ABRE list_id PAR_CIERRA', 'key_table', 10, 'p_key_table', 'sql_grammar.py', 640), ('list_key -> PAR_ABRE list_id PAR_CIERRA', 'list_key', 3, 'p_list_key', 'sql_grammar.py', 653), ('list_key -> <empty>', 'list_key', 0, 'p_list_key', 'sql_grammar.py', 654), ('alter_op -> ADD op_add', 'alter_op', 2, 'p_alter_op', 'sql_grammar.py', 661), ('alter_op -> ALTER COLUMN ID alter_col_op', 'alter_op', 4, 'p_alter_op', 'sql_grammar.py', 662), ('alter_op -> DROP alter_drop ID', 'alter_op', 3, 'p_alter_op', 'sql_grammar.py', 663), ('alter_drop -> CONSTRAINT', 'alter_drop', 1, 'p_aux_alter_op', 'sql_grammar.py', 678), ('alter_drop -> COLUMN', 'alter_drop', 1, 'p_aux_alter_op', 'sql_grammar.py', 679), ('op_add -> CHECK PAR_ABRE ID DIFERENTE CADENA PAR_CIERRA', 'op_add', 6, 'p_op_add', 'sql_grammar.py', 683), ('op_add -> CONSTRAINT ID UNIQUE PAR_ABRE ID PAR_CIERRA', 'op_add', 6, 'p_op_add', 'sql_grammar.py', 684), ('op_add -> key_table REFERENCES PAR_ABRE list_id PAR_CIERRA', 'op_add', 5, 'p_op_add', 'sql_grammar.py', 685), ('alter_col_op -> SET NOT NULL', 'alter_col_op', 3, 'p_alter_col_op', 'sql_grammar.py', 698), ('alter_col_op -> TYPE type_column', 'alter_col_op', 2, 'p_alter_col_op', 'sql_grammar.py', 699), ('inherits_statement -> INHERITS PAR_ABRE ID PAR_CIERRA', 'inherits_statement', 4, 'p_inherits_tbl', 'sql_grammar.py', 709), ('inherits_statement -> <empty>', 'inherits_statement', 0, 'p_inherits_tbl', 'sql_grammar.py', 710), ('list_val -> list_val COMA expression', 'list_val', 3, 'p_list_val', 'sql_grammar.py', 719), ('list_val -> expression', 'list_val', 1, 'p_aux_list_val', 'sql_grammar.py', 724), ('where -> WHERE ID IGUAL expression', 'where', 4, 'p_where', 'sql_grammar.py', 728), ('where -> <empty>', 'where', 0, 'p_where', 'sql_grammar.py', 729), ('seleccionar -> SELECT distinto select_list FROM table_expression list_fin_select', 'seleccionar', 6, 'p_seleccionar', 'sql_grammar.py', 739), ('seleccionar -> SELECT GREATEST expressiones', 'seleccionar', 3, 'p_aux_seleccionar', 'sql_grammar.py', 749), ('seleccionar -> SELECT LEAST expressiones', 'seleccionar', 3, 'p_aux_seleccionar', 'sql_grammar.py', 750), ('list_fin_select -> list_fin_select fin_select', 'list_fin_select', 2, 'p_list_fin_select', 'sql_grammar.py', 756), ('list_fin_select -> fin_select', 'list_fin_select', 1, 'p_aux_list_fin_select', 'sql_grammar.py', 761), ('fin_select -> group_by', 'fin_select', 1, 'p_fin_select', 'sql_grammar.py', 765), ('fin_select -> donde', 'fin_select', 1, 'p_fin_select', 'sql_grammar.py', 766), ('fin_select -> order_by', 'fin_select', 1, 'p_fin_select', 'sql_grammar.py', 767), ('fin_select -> group_having', 'fin_select', 1, 'p_fin_select', 'sql_grammar.py', 768), ('fin_select -> limite', 'fin_select', 1, 'p_fin_select', 'sql_grammar.py', 769), ('fin_select -> <empty>', 'fin_select', 0, 'p_fin_select', 'sql_grammar.py', 770), ('expressiones -> PAR_ABRE list_expression PAR_CIERRA', 'expressiones', 3, 'p_expressiones', 'sql_grammar.py', 777), ('expressiones -> list_expression', 'expressiones', 1, 'p_aux_expressiones', 'sql_grammar.py', 781), ('distinto -> DISTINCT', 'distinto', 1, 'p_distinto', 'sql_grammar.py', 785), ('distinto -> <empty>', 'distinto', 0, 'p_distinto', 'sql_grammar.py', 786), ('select_list -> ASTERISCO', 'select_list', 1, 'p_select_list', 'sql_grammar.py', 793), ('select_list -> expressiones', 'select_list', 1, 'p_select_list', 'sql_grammar.py', 794), ('table_expression -> expressiones', 'table_expression', 1, 'p_table_expression', 'sql_grammar.py', 798), ('donde -> WHERE expressiones', 'donde', 2, 'p_donde', 'sql_grammar.py', 802), ('group_by -> GROUP BY expressiones', 'group_by', 3, 'p_group_by', 'sql_grammar.py', 811), ('order_by -> ORDER BY expressiones asc_desc nulls_f_l', 'order_by', 5, 'p_order_by', 'sql_grammar.py', 820), ('group_having -> HAVING expressiones', 'group_having', 2, 'p_group_having', 'sql_grammar.py', 829), ('asc_desc -> ASC', 'asc_desc', 1, 'p_asc_desc', 'sql_grammar.py', 838), ('asc_desc -> DESC', 'asc_desc', 1, 'p_asc_desc', 'sql_grammar.py', 839), ('nulls_f_l -> NULLS LAST', 'nulls_f_l', 2, 'p_nulls_f_l', 'sql_grammar.py', 843), ('nulls_f_l -> NULLS FIRST', 'nulls_f_l', 2, 'p_nulls_f_l', 'sql_grammar.py', 844), ('nulls_f_l -> <empty>', 'nulls_f_l', 0, 'p_nulls_f_l', 'sql_grammar.py', 845), ('limite -> LIMIT ENTERO', 'limite', 2, 'p_limite', 'sql_grammar.py', 852), ('limite -> LIMIT ALL', 'limite', 2, 'p_limite', 'sql_grammar.py', 853), ('limite -> OFFSET ENTERO', 'limite', 2, 'p_limite', 'sql_grammar.py', 854), ('list_expression -> list_expression COMA expression', 'list_expression', 3, 'p_list_expression', 'sql_grammar.py', 863), ('list_expression -> expression', 'list_expression', 1, 'p_aux_list_expression', 'sql_grammar.py', 868), ('expression -> SUBSTRING PAR_ABRE expression COMA expression COMA expression PAR_CIERRA', 'expression', 8, 'p_expression', 'sql_grammar.py', 872), ('expression -> expression NOT BETWEEN SYMMETRIC expression AND expression', 'expression', 7, 'p_expression_between3', 'sql_grammar.py', 881), ('expression -> expression NOT BETWEEN expression AND expression', 'expression', 6, 'p_expression_between2', 'sql_grammar.py', 890), ('expression -> expression BETWEEN SYMMETRIC expression AND expression', 'expression', 6, 'p_expression_between2', 'sql_grammar.py', 891), ('expression -> expression BETWEEN expression AND expression', 'expression', 5, 'p_expression_between', 'sql_grammar.py', 900), ('expression -> expression IS DISTINCT FROM expression', 'expression', 5, 'p_expression_Distinct', 'sql_grammar.py', 911), ('expression -> expression IS NOT DISTINCT FROM expression', 'expression', 6, 'p_expression_not_Distinct', 'sql_grammar.py', 920), ('expression -> ID PUNTO ID', 'expression', 3, 'p_expression_puntoId', 'sql_grammar.py', 929), ('expression -> expression IS NOT NULL', 'expression', 4, 'p_expression_null3', 'sql_grammar.py', 938), ('expression -> expression IS NOT TRUE', 'expression', 4, 'p_expression_null3', 'sql_grammar.py', 939), ('expression -> expression IS NOT FALSE', 'expression', 4, 'p_expression_null3', 'sql_grammar.py', 940), ('expression -> expression IS NOT UNKNOWN', 'expression', 4, 'p_expression_null3', 'sql_grammar.py', 941), ('expression -> expression IS NULL', 'expression', 3, 'p_expression_null2', 'sql_grammar.py', 950), ('expression -> expression IS TRUE', 'expression', 3, 'p_expression_null2', 'sql_grammar.py', 951), ('expression -> expression IS FALSE', 'expression', 3, 'p_expression_null2', 'sql_grammar.py', 952), ('expression -> expression IS UNKNOWN', 'expression', 3, 'p_expression_null2', 'sql_grammar.py', 953), ('expression -> expression ISNULL', 'expression', 2, 'p_expression_null', 'sql_grammar.py', 962), ('expression -> expression NOTNULL', 'expression', 2, 'p_expression_null', 'sql_grammar.py', 963), ('expression -> SUM PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 972), ('expression -> COUNT PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 973), ('expression -> AVG PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 974), ('expression -> MAX PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 975), ('expression -> MIN PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 976), ('expression -> ABS PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 977), ('expression -> CBRT PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 978), ('expression -> CEIL PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 979), ('expression -> CEILING PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 980), ('expression -> DEGREES PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 981), ('expression -> DIV PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 982), ('expression -> EXP PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 983), ('expression -> FACTORIAL PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 984), ('expression -> FLOOR PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 985), ('expression -> GCD PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 986), ('expression -> LN PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 987), ('expression -> LOG PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 988), ('expression -> MOD PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 989), ('expression -> PI PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 990), ('expression -> POWER PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 991), ('expression -> RADIANS PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 992), ('expression -> ROUND PAR_ABRE expression PAR_CIERRA', 'expression', 4, 'p_expression_agrupar', 'sql_grammar.py', 993), ('expression -> seleccionar', 'expression', 1, 'p_expression_select', 'sql_grammar.py', 1003), ('expression -> PAR_ABRE expression PAR_CIERRA', 'expression', 3, 'p_expression_ss', 'sql_grammar.py', 1007), ('expression -> expression MAYOR expression', 'expression', 3, 'p_expression_relacional_aux_mayor', 'sql_grammar.py', 1011), ('expression -> expression MENOR expression', 'expression', 3, 'p_expression_relacional_aux_menor', 'sql_grammar.py', 1017), ('expression -> expression MAYOR_IGUAL expression', 'expression', 3, 'p_expression_relacional_aux_mayorigual', 'sql_grammar.py', 1023), ('expression -> expression MENOR_IGUAL expression', 'expression', 3, 'p_expression_relacional_aux_menorigual', 'sql_grammar.py', 1029), ('expression -> expression IGUAL expression', 'expression', 3, 'p_expression_relacional_aux_igual', 'sql_grammar.py', 1035), ('expression -> expression NO_IGUAL expression', 'expression', 3, 'p_expression_relacional_aux_noigual', 'sql_grammar.py', 1041), ('expression -> expression DIFERENTE expression', 'expression', 3, 'p_expression_relacional_aux_diferente', 'sql_grammar.py', 1047), ('expression -> expression AND expression', 'expression', 3, 'p_expression_logica_and__and', 'sql_grammar.py', 1053), ('expression -> expression OR expression', 'expression', 3, 'p_expression_logica_or', 'sql_grammar.py', 1059), ('expression -> NOT expression', 'expression', 2, 'p_expression_logica_not', 'sql_grammar.py', 1065), ('expression -> ID', 'expression', 1, 'p_solouno_expression', 'sql_grammar.py', 1071), ('expression -> ASTERISCO', 'expression', 1, 'p_solouno_expression', 'sql_grammar.py', 1072), ('expression -> ENTERO', 'expression', 1, 'p_expression_entero', 'sql_grammar.py', 1082), ('expression -> DECIMAL_NUM', 'expression', 1, 'p_expression_decimal', 'sql_grammar.py', 1094), ('expression -> CADENA', 'expression', 1, 'p_expression_cadena', 'sql_grammar.py', 1115)]
# -*- coding: utf-8 -*- """ PMLB was primarily developed at the University of Pennsylvania by: - Randal S. Olson (rso@randalolson.com) - William La Cava (lacava@upenn.edu) - Weixuan Fu (weixuanf@upenn.edu) - and many more generous open source contributors 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. """ classification_dataset_names = [ 'GAMETES_Epistasis_2-Way_1000atts_0.4H_EDM-1_EDM-1_1', 'GAMETES_Epistasis_2-Way_20atts_0.1H_EDM-1_1', 'GAMETES_Epistasis_2-Way_20atts_0.4H_EDM-1_1', 'GAMETES_Epistasis_3-Way_20atts_0.2H_EDM-1_1', 'GAMETES_Heterogeneity_20atts_1600_Het_0.4_0.2_50_EDM-2_001', 'GAMETES_Heterogeneity_20atts_1600_Het_0.4_0.2_75_EDM-2_001', 'Hill_Valley_with_noise', 'Hill_Valley_without_noise', 'adult', 'agaricus-lepiota', 'allbp', 'allhyper', 'allhypo', 'allrep', 'analcatdata_aids', 'analcatdata_asbestos', 'analcatdata_authorship', 'analcatdata_bankruptcy', 'analcatdata_boxing1', 'analcatdata_boxing2', 'analcatdata_creditscore', 'analcatdata_cyyoung8092', 'analcatdata_cyyoung9302', 'analcatdata_dmft', 'analcatdata_fraud', 'analcatdata_germangss', 'analcatdata_happiness', 'analcatdata_japansolvent', 'analcatdata_lawsuit', 'ann-thyroid', 'appendicitis', 'australian', 'auto', 'backache', 'balance-scale', 'banana', 'biomed', 'breast', 'breast-cancer', 'breast-cancer-wisconsin', 'breast-w', 'buggyCrx', 'bupa', 'calendarDOW', 'car', 'car-evaluation', 'cars', 'cars1', 'chess', 'churn', 'clean1', 'clean2', 'cleve', 'cleveland', 'cleveland-nominal', 'cloud', 'cmc', 'coil2000', 'colic', 'collins', 'confidence', 'connect-4', 'contraceptive', 'corral', 'credit-a', 'credit-g', 'crx', 'dermatology', 'diabetes', 'dis', 'dna', 'ecoli', 'fars', 'flags', 'flare', 'german', 'glass', 'glass2', 'haberman', 'hayes-roth', 'heart-c', 'heart-h', 'heart-statlog', 'hepatitis', 'horse-colic', 'house-votes-84', 'hungarian', 'hypothyroid', 'ionosphere', 'iris', 'irish', 'kddcup', 'kr-vs-kp', 'krkopt', 'labor', 'led24', 'led7', 'letter', 'liver-disorder', 'lupus', 'lymphography', 'magic', 'mfeat-factors', 'mfeat-fourier', 'mfeat-karhunen', 'mfeat-morphological', 'mfeat-pixel', 'mfeat-zernike', 'mnist', 'mofn-3-7-10', 'molecular-biology_promoters', 'monk1', 'monk2', 'monk3', 'movement_libras', 'mushroom', 'mux6', 'new-thyroid', 'nursery', 'optdigits', 'page-blocks', 'parity5', 'parity5+5', 'pendigits', 'phoneme', 'pima', 'poker', 'postoperative-patient-data', 'prnn_crabs', 'prnn_fglass', 'prnn_synth', 'profb', 'promoters', 'ring', 'saheart', 'satimage', 'schizo', 'segmentation', 'shuttle', 'sleep', 'solar-flare_1', 'solar-flare_2', 'sonar', 'soybean', 'spambase', 'spect', 'spectf', 'splice', 'tae', 'texture', 'threeOf9', 'tic-tac-toe', 'titanic', 'tokyo1', 'twonorm', 'vehicle', 'vote', 'vowel', 'waveform-21', 'waveform-40', 'wdbc', 'wine-quality-red', 'wine-quality-white', 'wine-recognition', 'xd6', 'yeast' ] regression_dataset_names = [ '1027_ESL', '1028_SWD', '1029_LEV', '1030_ERA', '1089_USCrime', '1096_FacultySalaries', '1191_BNG_pbc', '1193_BNG_lowbwt', '1196_BNG_pharynx', '1199_BNG_echoMonths', '1201_BNG_breastTumor', '1203_BNG_pwLinear', '1595_poker', '192_vineyard', '195_auto_price', '197_cpu_act', '201_pol', '207_autoPrice', '210_cloud', '215_2dplanes', '218_house_8L', '225_puma8NH', '227_cpu_small', '228_elusage', '229_pwLinear', '230_machine_cpu', '294_satellite_image', '344_mv', '4544_GeographicalOriginalofMusic', '485_analcatdata_vehicle', '503_wind', '505_tecator', '519_vinnie', '522_pm10', '523_analcatdata_neavote', '527_analcatdata_election2000', '529_pollen', '537_houses', '542_pollution', '547_no2', '556_analcatdata_apnea2', '557_analcatdata_apnea1', '560_bodyfat', '561_cpu', '562_cpu_small', '564_fried', '573_cpu_act', '574_house_16H', '579_fri_c0_250_5', '581_fri_c3_500_25', '582_fri_c1_500_25', '583_fri_c1_1000_50', '584_fri_c4_500_25', '586_fri_c3_1000_25', '588_fri_c4_1000_100', '589_fri_c2_1000_25', '590_fri_c0_1000_50', '591_fri_c1_100_10', '592_fri_c4_1000_25', '593_fri_c1_1000_10', '594_fri_c2_100_5', '595_fri_c0_1000_10', '596_fri_c2_250_5', '597_fri_c2_500_5', '598_fri_c0_1000_25', '599_fri_c2_1000_5', '601_fri_c1_250_5', '602_fri_c3_250_10', '603_fri_c0_250_50', '604_fri_c4_500_10', '605_fri_c2_250_25', '606_fri_c2_1000_10', '607_fri_c4_1000_50', '608_fri_c3_1000_10', '609_fri_c0_1000_5', '611_fri_c3_100_5', '612_fri_c1_1000_5', '613_fri_c3_250_5', '615_fri_c4_250_10', '616_fri_c4_500_50', '617_fri_c3_500_5', '618_fri_c3_1000_50', '620_fri_c1_1000_25', '621_fri_c0_100_10', '622_fri_c2_1000_50', '623_fri_c4_1000_10', '624_fri_c0_100_5', '626_fri_c2_500_50', '627_fri_c2_500_10', '628_fri_c3_1000_5', '631_fri_c1_500_5', '633_fri_c0_500_25', '634_fri_c2_100_10', '635_fri_c0_250_10', '637_fri_c1_500_50', '641_fri_c1_500_10', '643_fri_c2_500_25', '644_fri_c4_250_25', '645_fri_c3_500_50', '646_fri_c3_500_10', '647_fri_c1_250_10', '648_fri_c1_250_50', '649_fri_c0_500_5', '650_fri_c0_500_50', '651_fri_c0_100_25', '653_fri_c0_250_25', '654_fri_c0_500_10', '656_fri_c1_100_5', '657_fri_c2_250_10', '658_fri_c3_250_25', '659_sleuth_ex1714', '663_rabe_266', '665_sleuth_case2002', '666_rmftsa_ladata', '678_visualizing_environmental', '687_sleuth_ex1605', '690_visualizing_galaxy', '695_chatfield_4', '706_sleuth_case1202', '712_chscase_geyser1' ]
""" PMLB was primarily developed at the University of Pennsylvania by: - Randal S. Olson (rso@randalolson.com) - William La Cava (lacava@upenn.edu) - Weixuan Fu (weixuanf@upenn.edu) - and many more generous open source contributors 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. """ classification_dataset_names = ['GAMETES_Epistasis_2-Way_1000atts_0.4H_EDM-1_EDM-1_1', 'GAMETES_Epistasis_2-Way_20atts_0.1H_EDM-1_1', 'GAMETES_Epistasis_2-Way_20atts_0.4H_EDM-1_1', 'GAMETES_Epistasis_3-Way_20atts_0.2H_EDM-1_1', 'GAMETES_Heterogeneity_20atts_1600_Het_0.4_0.2_50_EDM-2_001', 'GAMETES_Heterogeneity_20atts_1600_Het_0.4_0.2_75_EDM-2_001', 'Hill_Valley_with_noise', 'Hill_Valley_without_noise', 'adult', 'agaricus-lepiota', 'allbp', 'allhyper', 'allhypo', 'allrep', 'analcatdata_aids', 'analcatdata_asbestos', 'analcatdata_authorship', 'analcatdata_bankruptcy', 'analcatdata_boxing1', 'analcatdata_boxing2', 'analcatdata_creditscore', 'analcatdata_cyyoung8092', 'analcatdata_cyyoung9302', 'analcatdata_dmft', 'analcatdata_fraud', 'analcatdata_germangss', 'analcatdata_happiness', 'analcatdata_japansolvent', 'analcatdata_lawsuit', 'ann-thyroid', 'appendicitis', 'australian', 'auto', 'backache', 'balance-scale', 'banana', 'biomed', 'breast', 'breast-cancer', 'breast-cancer-wisconsin', 'breast-w', 'buggyCrx', 'bupa', 'calendarDOW', 'car', 'car-evaluation', 'cars', 'cars1', 'chess', 'churn', 'clean1', 'clean2', 'cleve', 'cleveland', 'cleveland-nominal', 'cloud', 'cmc', 'coil2000', 'colic', 'collins', 'confidence', 'connect-4', 'contraceptive', 'corral', 'credit-a', 'credit-g', 'crx', 'dermatology', 'diabetes', 'dis', 'dna', 'ecoli', 'fars', 'flags', 'flare', 'german', 'glass', 'glass2', 'haberman', 'hayes-roth', 'heart-c', 'heart-h', 'heart-statlog', 'hepatitis', 'horse-colic', 'house-votes-84', 'hungarian', 'hypothyroid', 'ionosphere', 'iris', 'irish', 'kddcup', 'kr-vs-kp', 'krkopt', 'labor', 'led24', 'led7', 'letter', 'liver-disorder', 'lupus', 'lymphography', 'magic', 'mfeat-factors', 'mfeat-fourier', 'mfeat-karhunen', 'mfeat-morphological', 'mfeat-pixel', 'mfeat-zernike', 'mnist', 'mofn-3-7-10', 'molecular-biology_promoters', 'monk1', 'monk2', 'monk3', 'movement_libras', 'mushroom', 'mux6', 'new-thyroid', 'nursery', 'optdigits', 'page-blocks', 'parity5', 'parity5+5', 'pendigits', 'phoneme', 'pima', 'poker', 'postoperative-patient-data', 'prnn_crabs', 'prnn_fglass', 'prnn_synth', 'profb', 'promoters', 'ring', 'saheart', 'satimage', 'schizo', 'segmentation', 'shuttle', 'sleep', 'solar-flare_1', 'solar-flare_2', 'sonar', 'soybean', 'spambase', 'spect', 'spectf', 'splice', 'tae', 'texture', 'threeOf9', 'tic-tac-toe', 'titanic', 'tokyo1', 'twonorm', 'vehicle', 'vote', 'vowel', 'waveform-21', 'waveform-40', 'wdbc', 'wine-quality-red', 'wine-quality-white', 'wine-recognition', 'xd6', 'yeast'] regression_dataset_names = ['1027_ESL', '1028_SWD', '1029_LEV', '1030_ERA', '1089_USCrime', '1096_FacultySalaries', '1191_BNG_pbc', '1193_BNG_lowbwt', '1196_BNG_pharynx', '1199_BNG_echoMonths', '1201_BNG_breastTumor', '1203_BNG_pwLinear', '1595_poker', '192_vineyard', '195_auto_price', '197_cpu_act', '201_pol', '207_autoPrice', '210_cloud', '215_2dplanes', '218_house_8L', '225_puma8NH', '227_cpu_small', '228_elusage', '229_pwLinear', '230_machine_cpu', '294_satellite_image', '344_mv', '4544_GeographicalOriginalofMusic', '485_analcatdata_vehicle', '503_wind', '505_tecator', '519_vinnie', '522_pm10', '523_analcatdata_neavote', '527_analcatdata_election2000', '529_pollen', '537_houses', '542_pollution', '547_no2', '556_analcatdata_apnea2', '557_analcatdata_apnea1', '560_bodyfat', '561_cpu', '562_cpu_small', '564_fried', '573_cpu_act', '574_house_16H', '579_fri_c0_250_5', '581_fri_c3_500_25', '582_fri_c1_500_25', '583_fri_c1_1000_50', '584_fri_c4_500_25', '586_fri_c3_1000_25', '588_fri_c4_1000_100', '589_fri_c2_1000_25', '590_fri_c0_1000_50', '591_fri_c1_100_10', '592_fri_c4_1000_25', '593_fri_c1_1000_10', '594_fri_c2_100_5', '595_fri_c0_1000_10', '596_fri_c2_250_5', '597_fri_c2_500_5', '598_fri_c0_1000_25', '599_fri_c2_1000_5', '601_fri_c1_250_5', '602_fri_c3_250_10', '603_fri_c0_250_50', '604_fri_c4_500_10', '605_fri_c2_250_25', '606_fri_c2_1000_10', '607_fri_c4_1000_50', '608_fri_c3_1000_10', '609_fri_c0_1000_5', '611_fri_c3_100_5', '612_fri_c1_1000_5', '613_fri_c3_250_5', '615_fri_c4_250_10', '616_fri_c4_500_50', '617_fri_c3_500_5', '618_fri_c3_1000_50', '620_fri_c1_1000_25', '621_fri_c0_100_10', '622_fri_c2_1000_50', '623_fri_c4_1000_10', '624_fri_c0_100_5', '626_fri_c2_500_50', '627_fri_c2_500_10', '628_fri_c3_1000_5', '631_fri_c1_500_5', '633_fri_c0_500_25', '634_fri_c2_100_10', '635_fri_c0_250_10', '637_fri_c1_500_50', '641_fri_c1_500_10', '643_fri_c2_500_25', '644_fri_c4_250_25', '645_fri_c3_500_50', '646_fri_c3_500_10', '647_fri_c1_250_10', '648_fri_c1_250_50', '649_fri_c0_500_5', '650_fri_c0_500_50', '651_fri_c0_100_25', '653_fri_c0_250_25', '654_fri_c0_500_10', '656_fri_c1_100_5', '657_fri_c2_250_10', '658_fri_c3_250_25', '659_sleuth_ex1714', '663_rabe_266', '665_sleuth_case2002', '666_rmftsa_ladata', '678_visualizing_environmental', '687_sleuth_ex1605', '690_visualizing_galaxy', '695_chatfield_4', '706_sleuth_case1202', '712_chscase_geyser1']
""" Define exceptions and warnings for DyNe Created by: Ankit Khambhati Change Log ---------- 2016/03/10 - Generated __all__ definition """ __all__ = ['PipeTypeError', 'PipeLinkError'] class PipeTypeError(TypeError): """ Exception class if pipe type is not of a registered type """ class PipeLinkError(AttributeError, TypeError): """ Exception class if a pipe is unlinked or cannot be linked to another pipe """
""" Define exceptions and warnings for DyNe Created by: Ankit Khambhati Change Log ---------- 2016/03/10 - Generated __all__ definition """ __all__ = ['PipeTypeError', 'PipeLinkError'] class Pipetypeerror(TypeError): """ Exception class if pipe type is not of a registered type """ class Pipelinkerror(AttributeError, TypeError): """ Exception class if a pipe is unlinked or cannot be linked to another pipe """
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2021-10-23 10:13:19 # @Author : iamwm class Store: """ global shared context """ def __init__(self, cls) -> None: self.class_type = cls self.context = {} def get(self, name: str, *args, **kwargs): """ get a context item by name """ if name not in self.context: target_obj = self.class_type(name, *args, **kwargs) self.context.update({name: target_obj}) return self.context.get(name) def set(self, obj) -> bool: """ set a context item with name """ name = obj.name if name in self.context: return False self.context.update({name: obj}) return True
class Store: """ global shared context """ def __init__(self, cls) -> None: self.class_type = cls self.context = {} def get(self, name: str, *args, **kwargs): """ get a context item by name """ if name not in self.context: target_obj = self.class_type(name, *args, **kwargs) self.context.update({name: target_obj}) return self.context.get(name) def set(self, obj) -> bool: """ set a context item with name """ name = obj.name if name in self.context: return False self.context.update({name: obj}) return True
#pangram - sentence with all alphabets #example - The quick brown fox jumps over the lazy dog #read the input myStr = input("Enter a sentence: ").lower() #eliminating all the spaces myStr = myStr.replace(" ", "") #eliminating all commonly used special characters myStr = myStr.replace("," , "") myStr = myStr.replace("." , "") myStr = myStr.replace("!" , "") #converting string to set #as set only inputs unique values mySet = set(myStr) #now, this set should contain all the 26 alphabets #i.e length of set = 26 then, the str is pangram if len(mySet) == 26: print("Entered string is a Pangram String") else: print("Not a Pangram String")
my_str = input('Enter a sentence: ').lower() my_str = myStr.replace(' ', '') my_str = myStr.replace(',', '') my_str = myStr.replace('.', '') my_str = myStr.replace('!', '') my_set = set(myStr) if len(mySet) == 26: print('Entered string is a Pangram String') else: print('Not a Pangram String')
class UnitGroup(Enum, IComparable, IFormattable, IConvertible): """ A group of related unit types,primarily classified by discipline. enum UnitGroup,values: Common (0),Electrical (3),Energy (5),HVAC (2),Piping (4),Structural (1) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass Common = None Electrical = None Energy = None HVAC = None Piping = None Structural = None value__ = None
class Unitgroup(Enum, IComparable, IFormattable, IConvertible): """ A group of related unit types,primarily classified by discipline. enum UnitGroup,values: Common (0),Electrical (3),Energy (5),HVAC (2),Piping (4),Structural (1) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass common = None electrical = None energy = None hvac = None piping = None structural = None value__ = None
__all__ = ["Roll"] class Roll: pass
__all__ = ['Roll'] class Roll: pass
class ApiHttpRequest: GET_METHOD = 'GET' POST_METHOD = 'POST' HTTP_METHODS = [GET_METHOD, POST_METHOD] def __init__(self, api_http_request_method: str, api_url: str, api_http_request_headers: dict = None, api_http_request_body: str = None) -> None: self._method = api_http_request_method self._url = api_url self._headers = api_http_request_headers self._body = api_http_request_body @property def method(self) -> str: return self._method @property def url(self) -> str: return self._url @url.setter def url(self, url) -> None: self._url = url @property def headers(self) -> dict: return self._headers @property def body(self) -> None: return self._body
class Apihttprequest: get_method = 'GET' post_method = 'POST' http_methods = [GET_METHOD, POST_METHOD] def __init__(self, api_http_request_method: str, api_url: str, api_http_request_headers: dict=None, api_http_request_body: str=None) -> None: self._method = api_http_request_method self._url = api_url self._headers = api_http_request_headers self._body = api_http_request_body @property def method(self) -> str: return self._method @property def url(self) -> str: return self._url @url.setter def url(self, url) -> None: self._url = url @property def headers(self) -> dict: return self._headers @property def body(self) -> None: return self._body
# This code reads a text file from user input, finds words and sorts them by unique count then alphabetically. # C++ version is named "sortwords.cpp" and uses no built-in maps. # Dict is like std::map in C++ result = dict() # Count total number of words totalWords = 0 for line in open(input("Enter the filename: "), encoding="utf8"): # Remove punctuation, convert to lowercase and split by spaces for word in ''.join(c for c in line.rstrip().lower() if c == ' ' or c.isalpha()).split(" "): # Ignore blank words if word != "": # Increment if word already exists, otherwise start from 1 result[word] = result[word] + 1 if word in result else 1 totalWords += 1 # Sort by count, then alphabetically result = sorted(result.items(), key=lambda k: (-k[1], k[0])) # Print final output print("Total: {0}\nUnique: {1}\nFirst 15: {2}\nLast 15: {3}".format(totalWords, len(result), result[:15], result[-15:]))
result = dict() total_words = 0 for line in open(input('Enter the filename: '), encoding='utf8'): for word in ''.join((c for c in line.rstrip().lower() if c == ' ' or c.isalpha())).split(' '): if word != '': result[word] = result[word] + 1 if word in result else 1 total_words += 1 result = sorted(result.items(), key=lambda k: (-k[1], k[0])) print('Total: {0}\nUnique: {1}\nFirst 15: {2}\nLast 15: {3}'.format(totalWords, len(result), result[:15], result[-15:]))
# Everything in this file is sampled by a Vivado 2019.2 # Recap of variables in this file for convenience parts = [] # help command stripped of everything except -directive paragraph place_directives_paragraph = "" route_directives_paragraph = "" synth_directives_paragraph = "" # full help command output help_synth_design = "" help_place_design = "" help_route_design = "" # directives contained in corresponding -directive paragraph synth_directives = [] place_directives = [] route_directives = [] # -directive paragraph stripped of everything except "Note:" section place_note = "" route_note = "" # directives contained in the "Note:" section for incremental directives incremental_place_directives = [] incremental_route_directives = [] parts = { "xc7k70tfbv676-1": "kintex7", "xc7k70tfbv676-2": "kintex7", "xc7k70tfbv676-2L": "kintex7", "xc7k70tfbv676-3": "kintex7", "xc7k70tfbv484-1": "kintex7", "xc7k70tfbv484-2": "kintex7", "xc7k70tfbv484-2L": "kintex7", "xc7k70tfbv484-3": "kintex7", "xc7k70tfbg676-1": "kintex7", "xc7k70tfbg676-2": "kintex7", "xc7k70tfbg676-2L": "kintex7", "xc7k70tfbg676-3": "kintex7", "xc7k70tfbg484-1": "kintex7", "xc7k70tfbg484-2": "kintex7", "xc7k70tfbg484-2L": "kintex7", "xc7k70tfbg484-3": "kintex7", "xc7k160tfbg484-1": "kintex7", "xc7k160tfbg484-2": "kintex7", "xc7k160tfbg484-2L": "kintex7", "xc7k160tfbg484-3": "kintex7", "xc7k160tfbg676-1": "kintex7", "xc7k160tfbg676-2": "kintex7", "xc7k160tfbg676-2L": "kintex7", "xc7k160tfbg676-3": "kintex7", "xc7k160tfbv484-1": "kintex7", "xc7k160tfbv484-2": "kintex7", "xc7k160tfbv484-2L": "kintex7", "xc7k160tfbv484-3": "kintex7", "xc7k160tfbv676-1": "kintex7", "xc7k160tfbv676-2": "kintex7", "xc7k160tfbv676-2L": "kintex7", "xc7k160tfbv676-3": "kintex7", "xc7k160tffg676-1": "kintex7", "xc7k160tffg676-2": "kintex7", "xc7k160tffg676-2L": "kintex7", "xc7k160tffg676-3": "kintex7", "xc7k160tffv676-1": "kintex7", "xc7k160tffv676-2": "kintex7", "xc7k160tffv676-2L": "kintex7", "xc7k160tffv676-3": "kintex7", "xc7k160tifbv676-2L": "kintex7", "xc7k160tifbg484-2L": "kintex7", "xc7k160tifbg676-2L": "kintex7", "xc7k160tifbv484-2L": "kintex7", "xc7k160tiffv676-2L": "kintex7", "xc7k160tiffg676-2L": "kintex7", "xc7k70tlfbv676-2L": "kintex7l", "xc7k70tlfbv484-2L": "kintex7l", "xc7k70tlfbg676-2L": "kintex7l", "xc7k70tlfbg484-2L": "kintex7l", "xc7k160tlfbg484-2L": "kintex7l", "xc7k160tlfbg676-2L": "kintex7l", "xc7k160tlfbv484-2L": "kintex7l", "xc7k160tlfbv676-2L": "kintex7l", "xc7k160tlffg676-2L": "kintex7l", "xc7k160tlffv676-2L": "kintex7l", "xc7a12ticsg325-1L": "artix7", "xc7a12ticpg238-1L": "artix7", "xc7a12tcsg325-1": "artix7", "xc7a12tcsg325-2": "artix7", "xc7a12tcsg325-2L": "artix7", "xc7a12tcsg325-3": "artix7", "xc7a12tcpg238-1": "artix7", "xc7a12tcpg238-2": "artix7", "xc7a12tcpg238-2L": "artix7", "xc7a12tcpg238-3": "artix7", "xc7a25tcpg238-1": "artix7", "xc7a25tcpg238-2": "artix7", "xc7a25tcpg238-2L": "artix7", "xc7a25tcpg238-3": "artix7", "xc7a25tcsg325-1": "artix7", "xc7a25tcsg325-2": "artix7", "xc7a25tcsg325-2L": "artix7", "xc7a25tcsg325-3": "artix7", "xc7a25ticpg238-1L": "artix7", "xc7a25ticsg325-1L": "artix7", "xc7a50tcsg324-1": "artix7", "xc7a50tcsg324-2": "artix7", "xc7a50tcsg324-2L": "artix7", "xc7a50tcsg324-3": "artix7", "xc7a50tcpg236-1": "artix7", "xc7a50tcpg236-2": "artix7", "xc7a50tcpg236-2L": "artix7", "xc7a50tcpg236-3": "artix7", "xc7a50tcsg325-1": "artix7", "xc7a50tcsg325-2": "artix7", "xc7a50tcsg325-2L": "artix7", "xc7a50tcsg325-3": "artix7", "xc7a50tfgg484-1": "artix7", "xc7a50tfgg484-2": "artix7", "xc7a50tfgg484-2L": "artix7", "xc7a50tfgg484-3": "artix7", "xc7a50tftg256-1": "artix7", "xc7a50tftg256-2": "artix7", "xc7a50tftg256-2L": "artix7", "xc7a50tftg256-3": "artix7", "xc7a35tiftg256-1L": "artix7", "xc7a35tifgg484-1L": "artix7", "xc7a35ticsg325-1L": "artix7", "xc7a35ticsg324-1L": "artix7", "xc7a35ticpg236-1L": "artix7", "xc7a50ticpg236-1L": "artix7", "xc7a50tiftg256-1L": "artix7", "xc7a50tifgg484-1L": "artix7", "xc7a50ticsg325-1L": "artix7", "xc7a50ticsg324-1L": "artix7", "xc7a35tftg256-1": "artix7", "xc7a35tftg256-2": "artix7", "xc7a35tftg256-2L": "artix7", "xc7a35tftg256-3": "artix7", "xc7a35tfgg484-1": "artix7", "xc7a35tfgg484-2": "artix7", "xc7a35tfgg484-2L": "artix7", "xc7a35tfgg484-3": "artix7", "xc7a35tcsg325-1": "artix7", "xc7a35tcsg325-2": "artix7", "xc7a35tcsg325-2L": "artix7", "xc7a35tcsg325-3": "artix7", "xc7a35tcsg324-1": "artix7", "xc7a35tcsg324-2": "artix7", "xc7a35tcsg324-2L": "artix7", "xc7a35tcsg324-3": "artix7", "xc7a35tcpg236-1": "artix7", "xc7a35tcpg236-2": "artix7", "xc7a35tcpg236-2L": "artix7", "xc7a35tcpg236-3": "artix7", "xc7a15tcpg236-1": "artix7", "xc7a15tcpg236-2": "artix7", "xc7a15tcpg236-2L": "artix7", "xc7a15tcpg236-3": "artix7", "xc7a15tcsg324-1": "artix7", "xc7a15tcsg324-2": "artix7", "xc7a15tcsg324-2L": "artix7", "xc7a15tcsg324-3": "artix7", "xc7a15tcsg325-1": "artix7", "xc7a15tcsg325-2": "artix7", "xc7a15tcsg325-2L": "artix7", "xc7a15tcsg325-3": "artix7", "xc7a15tfgg484-1": "artix7", "xc7a15tfgg484-2": "artix7", "xc7a15tfgg484-2L": "artix7", "xc7a15tfgg484-3": "artix7", "xc7a15tftg256-1": "artix7", "xc7a15tftg256-2": "artix7", "xc7a15tftg256-2L": "artix7", "xc7a15tftg256-3": "artix7", "xc7a15ticpg236-1L": "artix7", "xc7a15ticsg324-1L": "artix7", "xc7a15ticsg325-1L": "artix7", "xc7a15tifgg484-1L": "artix7", "xc7a15tiftg256-1L": "artix7", "xc7a75tfgg484-1": "artix7", "xc7a75tfgg484-2": "artix7", "xc7a75tfgg484-2L": "artix7", "xc7a75tfgg484-3": "artix7", "xc7a75tfgg676-1": "artix7", "xc7a75tfgg676-2": "artix7", "xc7a75tfgg676-2L": "artix7", "xc7a75tfgg676-3": "artix7", "xc7a75tftg256-1": "artix7", "xc7a75tftg256-2": "artix7", "xc7a75tftg256-2L": "artix7", "xc7a75tftg256-3": "artix7", "xc7a75tcsg324-1": "artix7", "xc7a75tcsg324-2": "artix7", "xc7a75tcsg324-2L": "artix7", "xc7a75tcsg324-3": "artix7", "xc7a75ticsg324-1L": "artix7", "xc7a75tifgg484-1L": "artix7", "xc7a75tifgg676-1L": "artix7", "xc7a75tiftg256-1L": "artix7", "xc7a100tiftg256-1L": "artix7", "xc7a100tifgg676-1L": "artix7", "xc7a100tifgg484-1L": "artix7", "xc7a100ticsg324-1L": "artix7", "xc7a100tftg256-1": "artix7", "xc7a100tftg256-2": "artix7", "xc7a100tftg256-2L": "artix7", "xc7a100tftg256-3": "artix7", "xc7a100tfgg676-1": "artix7", "xc7a100tfgg676-2": "artix7", "xc7a100tfgg676-2L": "artix7", "xc7a100tfgg676-3": "artix7", "xc7a100tfgg484-1": "artix7", "xc7a100tfgg484-2": "artix7", "xc7a100tfgg484-2L": "artix7", "xc7a100tfgg484-3": "artix7", "xc7a100tcsg324-1": "artix7", "xc7a100tcsg324-2": "artix7", "xc7a100tcsg324-2L": "artix7", "xc7a100tcsg324-3": "artix7", "xc7a200tfbg484-1": "artix7", "xc7a200tfbg484-2": "artix7", "xc7a200tfbg484-2L": "artix7", "xc7a200tfbg484-3": "artix7", "xc7a200tfbg676-1": "artix7", "xc7a200tfbg676-2": "artix7", "xc7a200tfbg676-2L": "artix7", "xc7a200tfbg676-3": "artix7", "xc7a200tfbv484-1": "artix7", "xc7a200tfbv484-2": "artix7", "xc7a200tfbv484-2L": "artix7", "xc7a200tfbv484-3": "artix7", "xc7a200tfbv676-1": "artix7", "xc7a200tfbv676-2": "artix7", "xc7a200tfbv676-2L": "artix7", "xc7a200tfbv676-3": "artix7", "xc7a200tffg1156-1": "artix7", "xc7a200tffg1156-2": "artix7", "xc7a200tffg1156-2L": "artix7", "xc7a200tffg1156-3": "artix7", "xc7a200tsbv484-1": "artix7", "xc7a200tsbv484-2": "artix7", "xc7a200tsbv484-2L": "artix7", "xc7a200tsbv484-3": "artix7", "xc7a200tffv1156-1": "artix7", "xc7a200tffv1156-2": "artix7", "xc7a200tffv1156-2L": "artix7", "xc7a200tffv1156-3": "artix7", "xc7a200tsbg484-1": "artix7", "xc7a200tsbg484-2": "artix7", "xc7a200tsbg484-2L": "artix7", "xc7a200tsbg484-3": "artix7", "xc7a200tisbv484-1L": "artix7", "xc7a200tisbg484-1L": "artix7", "xc7a200tiffv1156-1L": "artix7", "xc7a200tiffg1156-1L": "artix7", "xc7a200tifbv676-1L": "artix7", "xc7a200tifbv484-1L": "artix7", "xc7a200tifbg676-1L": "artix7", "xc7a200tifbg484-1L": "artix7", "xc7a12tlcsg325-2L": "artix7l", "xc7a12tlcpg238-2L": "artix7l", "xc7a25tlcsg325-2L": "artix7l", "xc7a25tlcpg238-2L": "artix7l", "xc7a35tlcpg236-2L": "artix7l", "xc7a35tlcsg324-2L": "artix7l", "xc7a35tlcsg325-2L": "artix7l", "xc7a35tlfgg484-2L": "artix7l", "xc7a35tlftg256-2L": "artix7l", "xc7a15tlcpg236-2L": "artix7l", "xc7a15tlcsg324-2L": "artix7l", "xc7a15tlcsg325-2L": "artix7l", "xc7a15tlfgg484-2L": "artix7l", "xc7a15tlftg256-2L": "artix7l", "xc7a50tlcpg236-2L": "artix7l", "xc7a50tlcsg324-2L": "artix7l", "xc7a50tlcsg325-2L": "artix7l", "xc7a50tlfgg484-2L": "artix7l", "xc7a50tlftg256-2L": "artix7l", "xc7a75tlftg256-2L": "artix7l", "xc7a75tlfgg676-2L": "artix7l", "xc7a75tlfgg484-2L": "artix7l", "xc7a75tlcsg324-2L": "artix7l", "xc7a100tlcsg324-2L": "artix7l", "xc7a100tlfgg484-2L": "artix7l", "xc7a100tlfgg676-2L": "artix7l", "xc7a100tlftg256-2L": "artix7l", "xc7a200tlfbg484-2L": "artix7l", "xc7a200tlfbg676-2L": "artix7l", "xc7a200tlfbv484-2L": "artix7l", "xc7a200tlfbv676-2L": "artix7l", "xc7a200tlffg1156-2L": "artix7l", "xc7a200tlffv1156-2L": "artix7l", "xc7a200tlsbg484-2L": "artix7l", "xc7a200tlsbv484-2L": "artix7l", "xa7a35tcsg325-1I": "aartix7", "xa7a35tcsg325-1Q": "aartix7", "xa7a35tcsg325-2I": "aartix7", "xa7a35tcsg324-1I": "aartix7", "xa7a35tcsg324-1Q": "aartix7", "xa7a35tcsg324-2I": "aartix7", "xa7a35tcpg236-1I": "aartix7", "xa7a35tcpg236-1Q": "aartix7", "xa7a35tcpg236-2I": "aartix7", "xa7a15tcpg236-1I": "aartix7", "xa7a15tcpg236-1Q": "aartix7", "xa7a15tcpg236-2I": "aartix7", "xa7a15tcsg324-1I": "aartix7", "xa7a15tcsg324-1Q": "aartix7", "xa7a15tcsg324-2I": "aartix7", "xa7a15tcsg325-1I": "aartix7", "xa7a15tcsg325-1Q": "aartix7", "xa7a15tcsg325-2I": "aartix7", "xa7a50tcpg236-1I": "aartix7", "xa7a50tcpg236-1Q": "aartix7", "xa7a50tcpg236-2I": "aartix7", "xa7a50tcsg324-1I": "aartix7", "xa7a50tcsg324-1Q": "aartix7", "xa7a50tcsg324-2I": "aartix7", "xa7a50tcsg325-1I": "aartix7", "xa7a50tcsg325-1Q": "aartix7", "xa7a50tcsg325-2I": "aartix7", "xa7a100tfgg484-1I": "aartix7", "xa7a100tfgg484-1Q": "aartix7", "xa7a100tfgg484-2I": "aartix7", "xa7a100tcsg324-1I": "aartix7", "xa7a100tcsg324-1Q": "aartix7", "xa7a100tcsg324-2I": "aartix7", "xa7a75tcsg324-1I": "aartix7", "xa7a75tcsg324-1Q": "aartix7", "xa7a75tcsg324-2I": "aartix7", "xa7a75tfgg484-1I": "aartix7", "xa7a75tfgg484-1Q": "aartix7", "xa7a75tfgg484-2I": "aartix7", "xa7a12tcpg238-1I": "aartix7", "xa7a12tcpg238-1Q": "aartix7", "xa7a12tcpg238-2I": "aartix7", "xa7a12tcsg325-1I": "aartix7", "xa7a12tcsg325-1Q": "aartix7", "xa7a12tcsg325-2I": "aartix7", "xa7a25tcpg238-1I": "aartix7", "xa7a25tcpg238-1Q": "aartix7", "xa7a25tcpg238-2I": "aartix7", "xa7a25tcsg325-1I": "aartix7", "xa7a25tcsg325-1Q": "aartix7", "xa7a25tcsg325-2I": "aartix7", "xc7z010iclg225-1L": "zynq", "xc7z010iclg400-1L": "zynq", "xc7z010clg400-1": "zynq", "xc7z010clg400-2": "zynq", "xc7z010clg400-3": "zynq", "xc7z010clg225-1": "zynq", "xc7z010clg225-2": "zynq", "xc7z010clg225-3": "zynq", "xc7z007sclg400-1": "zynq", "xc7z007sclg400-2": "zynq", "xc7z007sclg225-1": "zynq", "xc7z007sclg225-2": "zynq", "xc7z015iclg485-1L": "zynq", "xc7z015clg485-1": "zynq", "xc7z015clg485-2": "zynq", "xc7z015clg485-3": "zynq", "xc7z012sclg485-1": "zynq", "xc7z012sclg485-2": "zynq", "xc7z020iclg484-1L": "zynq", "xc7z020iclg400-1L": "zynq", "xc7z014sclg484-1": "zynq", "xc7z014sclg484-2": "zynq", "xc7z014sclg400-1": "zynq", "xc7z014sclg400-2": "zynq", "xc7z020clg484-1": "zynq", "xc7z020clg484-2": "zynq", "xc7z020clg484-3": "zynq", "xc7z020clg400-1": "zynq", "xc7z020clg400-2": "zynq", "xc7z020clg400-3": "zynq", "xc7z030ifbg484-2L": "zynq", "xc7z030ifbg676-2L": "zynq", "xc7z030ifbv484-2L": "zynq", "xc7z030ifbv676-2L": "zynq", "xc7z030iffg676-2L": "zynq", "xc7z030iffv676-2L": "zynq", "xc7z030isbg485-2L": "zynq", "xc7z030isbv485-2L": "zynq", "xc7z030sbg485-1": "zynq", "xc7z030sbg485-2": "zynq", "xc7z030sbg485-3": "zynq", "xc7z030sbv485-1": "zynq", "xc7z030sbv485-2": "zynq", "xc7z030sbv485-3": "zynq", "xc7z030fbg484-1": "zynq", "xc7z030fbg484-2": "zynq", "xc7z030fbg484-3": "zynq", "xc7z030fbg676-1": "zynq", "xc7z030fbg676-2": "zynq", "xc7z030fbg676-3": "zynq", "xc7z030fbv484-1": "zynq", "xc7z030fbv484-2": "zynq", "xc7z030fbv484-3": "zynq", "xc7z030fbv676-1": "zynq", "xc7z030fbv676-2": "zynq", "xc7z030fbv676-3": "zynq", "xc7z030ffg676-1": "zynq", "xc7z030ffg676-2": "zynq", "xc7z030ffg676-3": "zynq", "xc7z030ffv676-1": "zynq", "xc7z030ffv676-2": "zynq", "xc7z030ffv676-3": "zynq", "xa7z010clg225-1I": "azynq", "xa7z010clg225-1Q": "azynq", "xa7z010clg400-1I": "azynq", "xa7z010clg400-1Q": "azynq", "xa7z020clg400-1I": "azynq", "xa7z020clg400-1Q": "azynq", "xa7z020clg484-1I": "azynq", "xa7z020clg484-1Q": "azynq", "xa7z030fbg484-1I": "azynq", "xa7z030fbg484-1Q": "azynq", "xa7z030fbv484-1I": "azynq", "xa7z030fbv484-1Q": "azynq", "xc7s6ftgb196-1": "spartan7", "xc7s6ftgb196-1IL": "spartan7", "xc7s6ftgb196-1Q": "spartan7", "xc7s6ftgb196-2": "spartan7", "xc7s6csga225-1": "spartan7", "xc7s6csga225-1IL": "spartan7", "xc7s6csga225-1Q": "spartan7", "xc7s6csga225-2": "spartan7", "xc7s6cpga196-1": "spartan7", "xc7s6cpga196-1IL": "spartan7", "xc7s6cpga196-1Q": "spartan7", "xc7s6cpga196-2": "spartan7", "xc7s15cpga196-1": "spartan7", "xc7s15cpga196-1IL": "spartan7", "xc7s15cpga196-1Q": "spartan7", "xc7s15cpga196-2": "spartan7", "xc7s15csga225-1": "spartan7", "xc7s15csga225-1IL": "spartan7", "xc7s15csga225-1Q": "spartan7", "xc7s15csga225-2": "spartan7", "xc7s15ftgb196-1": "spartan7", "xc7s15ftgb196-1IL": "spartan7", "xc7s15ftgb196-1Q": "spartan7", "xc7s15ftgb196-2": "spartan7", "xc7s25ftgb196-1": "spartan7", "xc7s25ftgb196-1IL": "spartan7", "xc7s25ftgb196-1Q": "spartan7", "xc7s25ftgb196-2": "spartan7", "xc7s25csga324-1": "spartan7", "xc7s25csga324-1IL": "spartan7", "xc7s25csga324-1Q": "spartan7", "xc7s25csga324-2": "spartan7", "xc7s25csga225-1": "spartan7", "xc7s25csga225-1IL": "spartan7", "xc7s25csga225-1Q": "spartan7", "xc7s25csga225-2": "spartan7", "xc7s50csga324-1": "spartan7", "xc7s50csga324-1IL": "spartan7", "xc7s50csga324-1Q": "spartan7", "xc7s50csga324-2": "spartan7", "xc7s50fgga484-1": "spartan7", "xc7s50fgga484-1IL": "spartan7", "xc7s50fgga484-1Q": "spartan7", "xc7s50fgga484-2": "spartan7", "xc7s50ftgb196-1": "spartan7", "xc7s50ftgb196-1IL": "spartan7", "xc7s50ftgb196-1Q": "spartan7", "xc7s50ftgb196-2": "spartan7", "xc7s100fgga676-1": "spartan7", "xc7s100fgga676-1IL": "spartan7", "xc7s100fgga676-1Q": "spartan7", "xc7s100fgga676-2": "spartan7", "xc7s100fgga484-1": "spartan7", "xc7s100fgga484-1IL": "spartan7", "xc7s100fgga484-1Q": "spartan7", "xc7s100fgga484-2": "spartan7", "xc7s75fgga484-1": "spartan7", "xc7s75fgga484-1IL": "spartan7", "xc7s75fgga484-1Q": "spartan7", "xc7s75fgga484-2": "spartan7", "xc7s75fgga676-1": "spartan7", "xc7s75fgga676-1IL": "spartan7", "xc7s75fgga676-1Q": "spartan7", "xc7s75fgga676-2": "spartan7", "xa7s6cpga196-1I": "aspartan7", "xa7s6cpga196-1Q": "aspartan7", "xa7s6cpga196-2I": "aspartan7", "xa7s6csga225-1I": "aspartan7", "xa7s6csga225-1Q": "aspartan7", "xa7s6csga225-2I": "aspartan7", "xa7s6ftgb196-1I": "aspartan7", "xa7s6ftgb196-1Q": "aspartan7", "xa7s6ftgb196-2I": "aspartan7", "xa7s15cpga196-1I": "aspartan7", "xa7s15cpga196-1Q": "aspartan7", "xa7s15cpga196-2I": "aspartan7", "xa7s15csga225-1I": "aspartan7", "xa7s15csga225-1Q": "aspartan7", "xa7s15csga225-2I": "aspartan7", "xa7s15ftgb196-1I": "aspartan7", "xa7s15ftgb196-1Q": "aspartan7", "xa7s15ftgb196-2I": "aspartan7", "xa7s25csga225-1I": "aspartan7", "xa7s25csga225-1Q": "aspartan7", "xa7s25csga225-2I": "aspartan7", "xa7s25csga324-1I": "aspartan7", "xa7s25csga324-1Q": "aspartan7", "xa7s25csga324-2I": "aspartan7", "xa7s25ftgb196-1I": "aspartan7", "xa7s25ftgb196-1Q": "aspartan7", "xa7s25ftgb196-2I": "aspartan7", "xa7s50csga324-1I": "aspartan7", "xa7s50csga324-1Q": "aspartan7", "xa7s50csga324-2I": "aspartan7", "xa7s50fgga484-1I": "aspartan7", "xa7s50fgga484-1Q": "aspartan7", "xa7s50fgga484-2I": "aspartan7", "xa7s50ftgb196-1I": "aspartan7", "xa7s50ftgb196-1Q": "aspartan7", "xa7s50ftgb196-2I": "aspartan7", "xa7s75fgga484-1I": "aspartan7", "xa7s75fgga484-1Q": "aspartan7", "xa7s75fgga484-2I": "aspartan7", "xa7s75fgga676-1I": "aspartan7", "xa7s75fgga676-1Q": "aspartan7", "xa7s75fgga676-2I": "aspartan7", "xa7s100fgga484-1I": "aspartan7", "xa7s100fgga484-1Q": "aspartan7", "xa7s100fgga484-2I": "aspartan7", } synth_directives = [ "default", "runtimeoptimized", "AreaOptimized_high", "AreaOptimized_medium", "AlternateRoutability", "AreaMapLargeShiftRegToBRAM", "AreaMultThresholdDSP", "FewerCarryChains", "PerformanceOptimized", ] route_directives = [ "Explore", "AggressiveExplore", "NoTimingRelaxation", "MoreGlobalIterations", "HigherDelayCost", "AdvancedSkewModeling", "AlternateCLBRouting", "RuntimeOptimized", "Quick", "Default", ] place_directives = [ "Explore", "EarlyBlockPlacement", "WLDrivenBlockPlacement", "ExtraNetDelay_high", "ExtraNetDelay_low", "AltSpreadLogic_high", "AltSpreadLogic_medium", "AltSpreadLogic_low", "ExtraPostPlacementOpt", "ExtraTimingOpt", "SSI_SpreadLogic_high", "SSI_SpreadLogic_low", "SSI_SpreadSLLs", "SSI_BalanceSLLs", "SSI_BalanceSLRs", "SSI_HighUtilSLRs", "RuntimeOptimized", "Quick", "Default", ] read_checkpoint_directives = [ "RuntimeOptimized", "TimingClosure", "Quick", ] incremental_place_directives = [ "Explore", "Quick", "Default", ] incremental_route_directives = [ "Explore", "Quick", "Default", ] read_checkpoint_directives_paragraph = """ -directive [ RuntimeOptimized | TimingClosure | Quick ] - (Optional) Specifies a directive, or mode of operation for the -incremental process. * RuntimeOptimized: The target WNS is the referenced from the incremental DCP. Trade-off timing for faster runtime. * TimingClosure: The target WNS is 0. This mode attempts to meet timing at the expense of runtime. * Quick: Specifies a low effort, non-timing-driven incremental implementation mode with the fastest runtime. """ place_directives_paragraph = """ -directive <arg> - (Optional) Direct placement to achieve specific design objectives. Only one directive can be specified for a single place_design command, and values are case-sensitive. Supported values include: * Explore - Increased placer effort in detail placement and post-placement optimization . * EarlyBlockPlacement - Timing-driven placement of RAM and DSP blocks. The RAM and DSP block locations are finalized early in the placement process and are used as anchors to place the remaining logic. * WLDrivenBlockPlacement - Wire length-driven placement of RAM and DSP blocks. Override timing-driven placement by directing the Vivado placer to minimize the distance of connections to and from blocks. * ExtraNetDelay_high - Increases estimated delay of high fanout and long-distance nets. Three levels of pessimism are supported: high, medium, and low. ExtraNetDelay_high applies the highest level of pessimism. * ExtraNetDelay_low - Increases estimated delay of high fanout and long-distance nets. Three levels of pessimism are supported: high, medium, and low. ExtraNetDelay_low applies the lowest level of pessimism. * AltSpreadLogic_high - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_high achieves the highest level of spreading. * AltSpreadLogic_medium - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_medium achieves a medium level of spreading compared to low and high. * AltSpreadLogic_low - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_low achieves the lowest level of spreading. * ExtraPostPlacementOpt - Increased placer effort in post-placement optimization. * ExtraTimingOpt - Use an alternate algorithm for timing-driven placement with greater effort for timing. * SSI_SpreadLogic_high - Distribute logic across SLRs. SSI_SpreadLogic_high achieves the highest level of distribution. * SSI_SpreadLogic_low - Distribute logic across SLRs. SSI_SpreadLogic_low achieves a minimum level of logic distribution, while reducing placement runtime. * SSI_SpreadSLLs - Partition across SLRs and allocate extra area for regions of higher connectivity. * SSI_BalanceSLLs - Partition across SLRs while attempting to balance SLLs between SLRs. * SSI_BalanceSLRs - Partition across SLRs to balance number of cells between SLRs. * SSI_HighUtilSLRs - Direct the placer to attempt to place logic closer together in each SLR. * RuntimeOptimized - Run fewest iterations, trade higher design performance for faster runtime. * Quick - Absolute, fastest runtime, non-timing-driven, performs the minimum required placement for a legal design. * Default - Run place_design with default settings. Note: The -directive option controls the overall placement strategy, and is not compatible with some place_design options. It can be used with -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on placement strategies and the use of the -directive option. """ place_note = """ Note: The -directive option controls the overall placement strategy, and is not compatible with some place_design options. It can be used with -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on placement strategies and the use of the -directive option. """ route_directives_paragraph = """ -directive <arg> - (Optional) Direct routing to achieve specific design objectives. Only one directive can be specified for a single route_design command, and values are case-sensitive. Supported values are: * Explore - Causes the Vivado router to explore different critical path routes based on timing, after an initial route. * AggressiveExplore - Directs the router to further expand its exploration of critical path routes while maintaining original timing budgets. The router runtime might be significantly higher compared to the Explore directive as the router uses more aggressive optimization thresholds to attempt to meet timing constraints. * NoTimingRelaxation - Prevents the router from relaxing timing to complete routing. If the router has difficulty meeting timing, it will run longer to try to meet the original timing constraints. * MoreGlobalIterations - Uses detailed timing analysis throughout all stages instead of just the final stages, and will run more global iterations even when timing improves only slightly. * HigherDelayCost - Adjusts the router`s internal cost functions to emphasize delay over iterations, allowing a trade-off of runtime for better performance. * AdvancedSkewModeling - Uses more accurate skew modeling throughout all routing stages which may improve design performance on higher-skew clock networks. * AlternateCLBRouting - (UltraScale only) Chooses alternate routing algorithms that require extra runtime but may help resolve routing congestion. * RuntimeOptimized - Run fewest iterations, trade higher design performance for faster runtime. * Quick - Absolute fastest runtime, non-timing-driven, performs the minimum required routing for a legal design. * Default - Run route_design with default settings. Note: The -directive option controls the overall routing strategy, and is not compatible with any specific route_design options, except -preserve and -tns_cleanup. It can also be used with -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on the use of the -directive option. """ route_note = """ Note: The -directive option controls the overall routing strategy, and is not compatible with any specific route_design options, except -preserve and -tns_cleanup. It can also be used with -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on the use of the -directive option. """ synth_directives_paragraph = """ -directive <arg> - (Optional) Direct synthesis to achieve specific design objectives. Only one directive can be specified for a single synth_design command, and values are case-sensitive. Valid values are: * default - Run the default synthesis process. * runtimeoptimized - Perform fewer timing optimizations and eliminate some RTL optimizations to reduce synthesis run time. * AreaOptimized_high - Perform general area optimizations including AreaMapLargeShiftRegToBRAM, AreaThresholdUseDSP directives. * AreaOptimized_medium - Perform general area optimizations including forcing ternary adder implementation, applying new thresholds for use of carry chain in comparators, and implementing area optimized multiplexers. * AlternateRoutability - Algorithms to improve routability with reduced use of MUXFs and CARRYs. * AreaMapLargeShiftRegToBRAM - Detects large shift registers and implements them using dedicated blocks of RAM. * AreaMultThresholdDSP - Lower threshold for dedicated DSP block inference for packing multipliers. * FewerCarryChains - Higher operand size threshold to use LUTs instead of the carry chain. * PerformanceOptimized - Perform general timing optimizations including logic level reduction at the expense of area. """ help_synth_design = """ help synth_design synth_design Description: Synthesize a design using Vivado Synthesis and open that design Syntax: synth_design [-name <arg>] [-part <arg>] [-constrset <arg>] [-top <arg>] [-include_dirs <args>] [-generic <args>] [-verilog_define <args>] [-flatten_hierarchy <arg>] [-gated_clock_conversion <arg>] [-directive <arg>] [-rtl] [-bufg <arg>] [-no_lc] [-fanout_limit <arg>] [-shreg_min_size <arg>] [-mode <arg>] [-fsm_extraction <arg>] [-rtl_skip_ip] [-rtl_skip_constraints] [-keep_equivalent_registers] [-resource_sharing <arg>] [-cascade_dsp <arg>] [-control_set_opt_threshold <arg>] [-incremental <arg>] [-max_bram <arg>] [-max_uram <arg>] [-max_dsp <arg>] [-max_bram_cascade_height <arg>] [-max_uram_cascade_height <arg>] [-retiming] [-no_srlextract] [-assert] [-no_timing_driven] [-sfcu] [-quiet] [-verbose] Returns: design object Usage: Name Description ----------------------------------------- [-name] Design name [-part] Target part [-constrset] Constraint fileset to use [-top] Specify the top module name [-include_dirs] Specify verilog search directories [-generic] Specify generic parameters. Syntax: -generic <name>=<value> -generic <name>=<value> ... [-verilog_define] Specify verilog defines. Syntax: -verilog_define <macro_name>[=<macro_text>] -verilog_define <macro_name>[=<macro_text>] ... [-flatten_hierarchy] Flatten hierarchy during LUT mapping. Values: full, none, rebuilt Default: rebuilt [-gated_clock_conversion] Convert clock gating logic to flop enable. Values: off, on, auto Default: off [-directive] Synthesis directive. Values: default, RuntimeOptimized, AreaOptimized_high, AreaOptimized_medium,AlternateRoutability, AreaMapLargeShiftRegToBRAM, AreaMultThresholdDSP, FewerCarryChains,Perfor manceOptimized Default: default [-rtl] Elaborate and open an rtl design [-bufg] Max number of global clock buffers used by synthesis Default: 12 [-no_lc] Disable LUT combining. Do not allow combining LUT pairs into single dual output LUTs. [-fanout_limit] Fanout limit. This switch does not impact control signals (such as set,reset, clock enable) use MAX_FANOUT to replicate these signals if needed. Default: 10000 [-shreg_min_size] Minimum length for chain of registers to be mapped onto SRL Default: 3 [-mode] The design mode. Values: default, out_of_context Default: default [-fsm_extraction] FSM Extraction Encoding. Values: off, one_hot, sequential, johnson, gray, user_encoding, auto Default: auto [-rtl_skip_ip] Exclude subdesign checkpoints in the RTL elaboration of the design; requires -rtl option. [-rtl_skip_constraints] Do not load and validate constraints against elaborated design; requires -rtl option. [-keep_equivalent_registers] Prevents registers sourced by the same logic from being merged. (Note that the merging can otherwise be prevented using the synthesis KEEP attribute) [-resource_sharing] Sharing arithmetic operators. Value: auto, on, off Default: auto [-cascade_dsp] Controls how adders summing DSP block outputs will be implemented. Value: auto, tree, force Default: auto [-control_set_opt_threshold] Threshold for synchronous control set optimization to lower number of control sets. Valid values are 'auto' and non-negative integers. The higher the number, the more control set optimization will be performed and fewer control sets will result. To disable control set optimization completely, set to 0. Default: auto [-incremental] dcp file for incremental flowvalue of this is the file name [-max_bram] Maximum number of block RAM allowed in design. (Note -1 means that the tool will choose the max number allowed for the part in question) Default: -1 [-max_uram] Maximum number of Ultra RAM blocks allowed in design. (Note -1 means that the tool will choose the max number allowed for the part in question) Default: -1 [-max_dsp] Maximum number of block DSP allowed in design. (Note -1 means that the tool will choose the max number allowed for the part in question) Default: -1 [-max_bram_cascade_height] Controls the maximum number of BRAM that can be cascaded by the tool. (Note -1 means that the tool will choose the max number allowed for the part in question) Default: -1 [-max_uram_cascade_height] Controls the maximum number of URAM that can be cascaded by the tool. (Note -1 means that the tool will choose the max number allowed for the part in question) Default: -1 [-retiming] Seeks to improve circuit performance for intra-clock sequential paths by automatically moving registers (register balancing) across combinatorial gates or LUTs. It maintains the original behavior and latency of the circuit and does not require changes to the RTL sources. [-no_srlextract] Prevents the extraction of shift registers so that they get implemented as simple registers [-assert] Enable VHDL assert statements to be evaluated. A severity level of failure will stop the synthesis flow and produce an error. [-no_timing_driven] Do not run in timing driven mode [-sfcu] Run in single-file compilation unit mode [-quiet] Ignore command errors [-verbose] Suspend message limits during command execution Categories: Tools Description: Directly launches the Vivado synthesis engine to compile and synthesize a design in either Project Mode or Non-Project Mode in the Vivado Design Suite. Refer to the Vivado Design Suite User Guide: Design Flows Overview (UG892) for a complete description of Project Mode and Non-Project Mode. Vivado synthesis can be launched directly with the synth_design command in the Non-Project Mode of the Vivado Design Suite. Note: The synth_design can be multi-threaded to speed the process. Refer to the set_param command for more information on setting the general.maxThreads parameter. In Project Mode, synthesis should be launched from an existing synthesis run created with the create_run command. The run is launched using the launch_runs command, and this in turn calls synth_design for Vivado synthesis. You can also use the synth_design command to elaborate RTL source files, and open an elaborated design: synth_design -rtl -name rtl_1 This command returns a transcript of the synthesis process, or returns an error if it fails. Arguments: -name <arg> - (Optional) This is the name assigned to the synthesized design when it is opened by the Vivado tool after synthesis has completed. This name is for reference purposes, and has nothing to do with the top-level of the design or any logic contained within. -part <arg> - (Optional) The target Xilinx device to use for the design. If the part is not specified the default part assigned to the project will be used. -constrset <arg> - (Optional) The name of the XDC constraints to use when synthesizing the design. Vivado synthesis requires the use of XDC, and does not support UCF. The -constrset argument must refer to a constraint fileset that exists. It cannot be used to create a new fileset. Use the create_fileset command for that purpose. -top <arg> - (Optional) The top module of the design hierarchy. Note: If you use the find_top command to define the -top option, be sure to specify only one top if find_top returns multiple prospects. See the examples below. -include_dirs <args> - (Optional) The directories to search for Verilog `include files. You can specify multiple directories by creating a list to contain them: -include_dirs {C:/data/include1 C:/data/include2} -generic <name>=<value> - (Optional) The value of a VHDL generic entity, or of a Verilog parameter. The -generic option can be used to override the assigned values of parameters in the RTL design sources. However it can only override parameters at the top level of the design. The parameters of lower-level modules can only be overridden at the time of instantiation and not by the -generic option. The syntax for the -generic argument is <name>=<value>, specifying the name of the generic or parameter, and the value to be assigned. Repeat the -generic option multiple times in the synth_design command for each generic or parameter value to be defined: synth_design -generic width=32 -generic depth=512 ... Note: When specifying binary values for boolean or std_logic VHDL generic types, you must specify the value using the Verilog bit format, rather than standard VHDL format: 0 = 1`b0 01010000 = 8`b01010000 -verilog_define <name>=<text> - (Optional) Set values for Verilog `define, and `ifdef, statements. The syntax for the -verilog_define argument is <name>=<text>, specifying the name of the define directive, and the value to be assigned. The argument can be reused multiple times in a single synth_design command. synth_design -verilog_define <name>=<value> -verilog_define <name>=<value> ... -flatten_hierarchy <arg> - (Optional) Flatten the hierarchy of the design during LUT mapping. The valid values are: * rebuilt - This will attempt to rebuild the original hierarchy of the RTL design after synthesis has completed. This is the default setting. * full - Flatten the hierarchy of the design. * none - Do not flatten the hierarchy of the design. This will preserve the hierarchy of the design, but will also limit the design optimization that can be performed by the synthesis tool. -gated_clock_conversion <arg> - (Optional) Convert clock gating logic to use the flop enable pins when available. This optimization can eliminate logic and simplify the netlist. Refer to the GATED_CLOCK property in the Vivado Design Suite User Guide: Synthesis (UG901) for more information. Valid values for this option are: * off - Disables the conversion of clock gating logic during synthesis, regardless of the use of the GATED_CLOCK property in the RTL design. * on - Converts clock gating logic based on the use of the GATED_CLOCK property in the RTL design. * auto - lets Vivado synthesis perform gated clock conversion if either the GATED_CLOCK property is present in the RTL, or if the Vivado tool detects a gate with a valid clock constraint. -directive <arg> - (Optional) Direct synthesis to achieve specific design objectives. Only one directive can be specified for a single synth_design command, and values are case-sensitive. Valid values are: * default - Run the default synthesis process. * runtimeoptimized - Perform fewer timing optimizations and eliminate some RTL optimizations to reduce synthesis run time. * AreaOptimized_high - Perform general area optimizations including AreaMapLargeShiftRegToBRAM, AreaThresholdUseDSP directives. * AreaOptimized_medium - Perform general area optimizations including forcing ternary adder implementation, applying new thresholds for use of carry chain in comparators, and implementing area optimized multiplexers. * AlternateRoutability - Algorithms to improve routability with reduced use of MUXFs and CARRYs. * AreaMapLargeShiftRegToBRAM - Detects large shift registers and implements them using dedicated blocks of RAM. * AreaMultThresholdDSP - Lower threshold for dedicated DSP block inference for packing multipliers. * FewerCarryChains - Higher operand size threshold to use LUTs instead of the carry chain. * PerformanceOptimized - Perform general timing optimizations including logic level reduction at the expense of area. -rtl - (Optional) Elaborate the HDL source files and open the RTL design. In designs that use out-of-context (OOC) modules, such as IP from the Xilinx IP catalog, the Vivado Design Suite will import synthesized design checkpoints (DCP) for the OOC modules in the design, and import associated constraint files (XDC) into the elaborated design. However, you can disable the default behavior using the -rtl_skip_ip and -rtl_skip_constraints options. -rtl_skip_ip - (Optional) This option requires the use of the -rtl option. When elaborating the RTL design, this option causes the Vivado Design Suite to skip loading the DCP files for OOC modules in the design, and instead load a stub file to treat the OOC modules as black boxes. This can significantly speed elaboration of the design. Note: An OOC synthesis run will be needed in either case to generate the DCP file that is loaded during elaboration, or to generate the stub file needed for the black box. -rtl_skip_constraints - (Optional) This option requires the use of the -rtl option. When elaborating the RTL design, this option causes the Vivado Design Suite to skip loading any design constraints (XDC) into the elaborated design. This can significantly speed elaboration of the design. -bufg <arg> - (Optional) Specify the maximum number of global clock buffers to be used on clock nets during synthesis. Specified as a value >= 1, which should not exceed the BUFG count on the target device. The default value is 12. Note: Vivado synthesis infers up to the number of BUFGs specified, including those instantiated in the RTL source. For example, with the default setting of -bufg 12, if there are three BUFGs instantiated in the RTL, the tool infers up to nine more for a total of 12. -no_lc - (Optional) Disable the default LUT combining feature of Vivado synthesis. -fanout_limit <arg> - (Optional) Specify a target limit for the maximum net fanout applied during synthesis. The default value is 10,000. This option is applied by Vivado synthesis when the number of loads exceeds an internal limit, and is only a guideline for the tool, not a strict requirement. When strict fanout control is required for specific signals, use the MAX_FANOUT property instead. Note: -fanout_limit does not affect control signals (such as set, reset, clock enable). Use the MAX_FANOUT property to replicate these signals as needed. -shreg_min_size <arg> - (Optional) Specified as an integer, this is the minimum length for a chain of registers to be mapped onto SRL. The default is three. -mode [ default | out_of_context ] - (Optional) Out of Context mode specifies the synthesis of an IP module, or block module, for use in an out-of-context design flow. This mode turns off I/O buffer insertion for the module, and marks the module as OOC, to facilitate its use in the tool flow. The block can also be implemented for analysis purposes. Refer to the Vivado Design Suite User Guide: Designing with IP (UG896) or the Vivado Design Suite User Guide: Hierarchical Design (UG905) for more information. -fsm_extraction <arg> - (Optional) Finite state machine (FSM) encoding is automatic (auto) in Vivado synthesis by default. This option enables state machine identification and specifies the type of encoding that should be applied. Valid values are: off, one_hot, sequential, johnson, gray, auto. Automatic encoding (auto) allows the tool to choose the best encoding for each state machine identified. In this case, the tool may use different encoding styles for different FSMs in the same design. Note: Use -fsm_extraction off to disable finite state machine extraction in Vivado synthesis. This will override the FSM_ENCODING property when specified. -keep_equivalent_registers - (Optional) Works like the KEEP property to prevent the merging of registers during optimization. -resource_sharing <arg> - (Optional) Share arithmetic operators like adders or subtractors between different signals, rather than creating new operators. This can result in better area usage when it is turned on. Valid values are: auto, on, off. The default is auto. -cascade_dsp [ auto | tree | force ] - (Optional) Specifies how to implement adders that add DSP block outputs. Valid values include auto, tree, force. The default setting is auto. -control_set_opt_threshold <arg> - (Optional) Threshold for synchronous control set optimization to decrease the number of control sets. Specifies how large the fanout of a control set should be before it starts using it as a control set. For example, if -control_set_opt_threshold is set to 10, a synchronous reset that only fans out to 5 registers would be moved to the D input logic, rather than using the reset line of a register. However, if -control_set_opt_threshold is set to 4, then the reset line is used. This option can be specified as "auto", or as an integer from 0 to 16. The default setting is "auto", and the actual threshold used under "auto" can vary depending on the selected device architecture. -incremental - (Optional) Specify a DCP file for the incremental compilation flow. In the incremental synthesis flow, the netlist from the incremental DCP is applied to the design objects in the current design to reuse existing synthesis results when possible. -max_bram <arg> - (Optional) Specify the maximum number of Block RAM to add to the design during synthesis. Specify a value >= 1, which should not exceed the available BRAM count on the target device. If a value of -1 is used, the Vivado synthesis tool will not exceed the available Block RAM limit of the device. The default value is -1. Note: A value of 0 directs Vivado synthesis to not infer BRAMs in the design, but is not a recommended value. -max_uram <arg> - (Optional) Specify the maximum number of Ultra RAM blocks (URAM) to add to the design during synthesis. Specify a value >= 1, which should not exceed the available URAM count on the target device. If a value of -1 is used, the Vivado synthesis tool will not exceed the available URAM block limit of the device. The default value is -1. Note: A value of 0 directs Vivado synthesis to not infer URAM in the design, but is not a recommended value. -max_dsp <arg> - (Optional) Specify the maximum number of DSPs to add to the design during synthesis. Specify a value >= 1, which should not exceed the available DSP count on the target device. If a value of -1 is used, the Vivado synthesis tool will not exceed the available limit of the device. The default value is -1. Note: A value of 0 directs Vivado synthesis to not infer DSPs in the design, but is not a recommended value. -max_bram_cascade_height <arg> - (Optional) Controls the maximum number of BRAM that can be cascaded by the tool. A value of -1 lets Vivado synthesis choose up to the maximum number allowed for the target part. The default value is -1. -max_uram_cascade_height <arg> - (Optional) Controls the maximum number of URAM that can be cascaded by the tool. A value of -1 lets Vivado synthesis choose up to the maximum number allowed for the target part. The default value is -1. -retiming - (Optional) Seeks to improve circuit performance for intra-clock sequential paths by automatically moving registers (register balancing) across combinatorial gates or LUTs. It maintains the original behavior and latency of the circuit and does not require changes to the RTL sources. -no_srlextract - (Optional) Prevents the extraction of shift registers so that they get implemented as simple registers. -assert - (Optional) Enable VHDL assert statements to be evaluated. A severity level of failure will stop the synthesis flow and produce an error. -no_timing_driven - (Optional) Disables the default timing driven synthesis algorithm. This results in a reduced synthesis runtime, but ignores the effect of timing on synthesis. -quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution. Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped. -verbose - (Optional) Temporarily override any message limits and return all messages from this command. Note: Message limits can be defined with the set_msg_config command. Examples: The following example uses the set_property command to define the target part for the active project, then elaborates the source files and opens an RTL design: set_property part xc7vx485tffg1158-1 [current_project] synth_design -rtl -name rtl_1 Note: The default source set, constraint set, and part will be used in this example. The following example uses the find_top command to define the top of the current design for synthesis: synth_design -top [lindex [find_top] 0] Note: Since find_top returns multiple possible candidates, choosing index 0 chooses the best top candidate for synthesis. The following example runs synthesis on the current design, defining the top module and the target part, and specifying no flattening of the hierarchy. The results of the synthesis run are then opened in a netlist design: synth_design -top top -part xc7k70tfbg676-2 -flatten_hierarchy none open_run synth_1 -name netlist_1 See Also: * create_ip_run * create_run * current_design * current_project * find_top * open_run * opt_design * report_seu * set_property """ help_place_design = """ help place_design place_design Description: Automatically place ports and leaf-level instances Syntax: place_design [-directive <arg>] [-no_timing_driven] [-timing_summary] [-unplace] [-post_place_opt] [-no_psip] [-no_bufg_opt] [-quiet] [-verbose] Usage: Name Description -------------------------------- [-directive] Mode of behavior (directive) for this command. Please refer to Arguments section of this help for values for this option. Default: Default [-no_timing_driven] Do not run in timing driven mode [-timing_summary] Enable accurate post-placement timing summary. [-unplace] Unplace all the instances which are not locked by Constraints. [-post_place_opt] Run only the post commit optimizer [-no_psip] Disable PSIP (Physical Synthesis In Placer) optimization during placement. [-no_bufg_opt] Disable global buffer insertion during placement [-quiet] Ignore command errors [-verbose] Suspend message limits during command execution Categories: Tools Description: Place the specified ports and logic cells in the current design, or all ports and logic cells, onto device resources on the target part. The tool optimizes placement to minimize negative timing slack and reduce overall wire length, while also attempting to spread out placement to reduce routing congestion. Placement is one step of the complete design implementation process, which can be run automatically through the use of the launch_runs command when running the Vivado tools in Project Mode. In Non-Project Mode, the implementation process must be run manually with the individual commands: opt_design, place_design, phys_opt_design, power_opt_design, and route_design. Refer to the Vivado Design Suite User Guide: Design Flows Overview (UG892) for a complete description of Project Mode and Non-Project Mode. Both placement and routing can be completed incrementally, based on prior results stored in a Design Checkpoint file (DCP), using the incremental implementation flow. Refer to the read_checkpoint command, or to Vivado Design Suite User Guide: Implementation (UG904) for more information on incremental place and route. Note: The place_design can be multi-threaded to speed the process. Refer to the set_param command for more information on setting the general.maxThreads parameter. You can also manually place some elements of the design using place_ports, or by setting LOC properties on the cell, and then automatically place the remainder of the design using place_design. This command requires an open synthesized design, and it is recommended that you run the opt_design command prior to running place_design to avoid placing a suboptimal netlist. Arguments: -directive <arg> - (Optional) Direct placement to achieve specific design objectives. Only one directive can be specified for a single place_design command, and values are case-sensitive. Supported values include: * Explore - Increased placer effort in detail placement and post-placement optimization . * EarlyBlockPlacement - Timing-driven placement of RAM and DSP blocks. The RAM and DSP block locations are finalized early in the placement process and are used as anchors to place the remaining logic. * WLDrivenBlockPlacement - Wire length-driven placement of RAM and DSP blocks. Override timing-driven placement by directing the Vivado placer to minimize the distance of connections to and from blocks. * ExtraNetDelay_high - Increases estimated delay of high fanout and long-distance nets. Three levels of pessimism are supported: high, medium, and low. ExtraNetDelay_high applies the highest level of pessimism. * ExtraNetDelay_low - Increases estimated delay of high fanout and long-distance nets. Three levels of pessimism are supported: high, medium, and low. ExtraNetDelay_low applies the lowest level of pessimism. * AltSpreadLogic_high - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_high achieves the highest level of spreading. * AltSpreadLogic_medium - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_medium achieves a medium level of spreading compared to low and high. * AltSpreadLogic_low - Spreads logic throughout the device to avoid creating congested regions. Three levels are supported: high, medium, and low. AltSpreadLogic_low achieves the lowest level of spreading. * ExtraPostPlacementOpt - Increased placer effort in post-placement optimization. * ExtraTimingOpt - Use an alternate algorithm for timing-driven placement with greater effort for timing. * SSI_SpreadLogic_high - Distribute logic across SLRs. SSI_SpreadLogic_high achieves the highest level of distribution. * SSI_SpreadLogic_low - Distribute logic across SLRs. SSI_SpreadLogic_low achieves a minimum level of logic distribution, while reducing placement runtime. * SSI_SpreadSLLs - Partition across SLRs and allocate extra area for regions of higher connectivity. * SSI_BalanceSLLs - Partition across SLRs while attempting to balance SLLs between SLRs. * SSI_BalanceSLRs - Partition across SLRs to balance number of cells between SLRs. * SSI_HighUtilSLRs - Direct the placer to attempt to place logic closer together in each SLR. * RuntimeOptimized - Run fewest iterations, trade higher design performance for faster runtime. * Quick - Absolute, fastest runtime, non-timing-driven, performs the minimum required placement for a legal design. * Default - Run place_design with default settings. Note: The -directive option controls the overall placement strategy, and is not compatible with some place_design options. It can be used with -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on placement strategies and the use of the -directive option. -no_timing_driven - (Optional) Disables the default timing driven placement algorithm. This results in a faster placement based on wire lengths, but ignores any timing constraints during the placement process. -timing_summary - (Optional) Report the post-placement worst negative slack (WNS) using results from static timing analysis. The WNS value is identical to that of report_timing_summary when run on the post-placement design. By default the placer reports an estimated WNS based on incremental placement updates during the design implementation. The -timing_summary option incurs additional runtime to run a full timing analysis. -unplace - (Optional) Unplace all the instances which are not locked by constraints. Cells with fixed placement (IS_LOC_FIXED set to TRUE), are not affected. Note: Use the set_property to change IS_LOC_FIXED to FALSE prior to unplacing fixed cells. -post_place_opt - (Optional) Run optimization after placement to improve critical path timing at the expense of additional placement and routing runtime. This optimization can be run at any stage after placement. The optimization examines the worst case timing paths and tries to improve placement to reduce delay. Note: Any placement changes will result in unrouted connections, so route_design will need to be run after -post_place_opt. -no_psip - (Optional) Disable PSIP (Physical Synthesis In Placer) optimization during placement. By default, to improve delay the Vivado placer performs optimizations such as replicating drivers of high-fanout nets and drivers of loads that are far-apart. This option disables those optimizations. -no_bufg_opt - (Optional) By default, global buffers are inserted during placement to drive high-fanout nets. This option disables global buffer insertion to reduce the number of routing resources consumed by high fanout nets that are not timing-critical. -quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution. Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped. -verbose - (Optional) Temporarily override any message limits and return all messages from this command. Note: Message limits can be defined with the set_msg_config command. Examples: The following example places the current design, runs optimization, routes the design, runs post placement optimization, and then reroutes the design to cleanup any unconnected nets as a result of post placement optimization: place_design phys_opt_design route_design place_design -post_place_opt phys_opt_design route_design The following example directs the Vivado placer to try different placement algorithms to achieve a better placement result: place_design -directive Explore This example unplaces the current design: place_design -unplace See Also: * launch_runs * opt_design * place_ports * phys_opt_design * power_opt_design * read_checkpoint * route_design * set_property """ help_route_design = """ help route_design route_design Description: Route the current design Syntax: route_design [-unroute] [-release_memory] [-nets <args>] [-physical_nets] [-pins <arg>] [-directive <arg>] [-tns_cleanup] [-no_timing_driven] [-preserve] [-delay] [-auto_delay] -max_delay <arg> -min_delay <arg> [-timing_summary] [-finalize] [-ultrathreads] [-quiet] [-verbose] Usage: Name Description -------------------------------- [-unroute] Unroute whole design or the given nets/pins if used with -nets or -pins. [-release_memory] Release Router memory. Not compatible with any other options. [-nets] Operate on the given nets. [-physical_nets] Operate on all physical nets. [-pins] Operate on the given pins. [-directive] Mode of behavior (directive) for this command. Please refer to Arguments section of this help for values for this option. Default: Default [-tns_cleanup] Do optional TNS clean up. [-no_timing_driven] Do not run in timing driven mode. [-preserve] Preserve existing routing. [-delay] Use with -nets or -pins option to route in delay driven mode. [-auto_delay] Use with -nets or -pins option to route in constraint driven mode. -max_delay Use with -pins option to specify the max_delay constraint on the pins.When specified -delay is implicit. -min_delay Use with -pins option to specify the max_delay constraint on the pins.When specified -delay is implicit. [-timing_summary] Enable post-router signoff timing summary. [-finalize] finalize route_design in interactive mode. [-ultrathreads] Enable Turbo mode routing. [-quiet] Ignore command errors [-verbose] Suspend message limits during command execution Categories: Tools Description: Route the nets in the current design to complete logic connections on the target part. Predefined routing strategies can be quickly selected using the route_design -directive command, or specific route options can be configured to define your own routing strategy. Routing can be completed automatically with route_design, or can be completed iteratively using the various options of the route_design command to achieve route completion and timing closure. Iterative routing provides you some control over the routing process to route critical nets first and then route less critical nets, and to control the level of effort and the timing algorithms for these various route passes. Routing is one step of the complete design implementation process, which can be run automatically through the use of the launch_runs command when running the Vivado tools in Project Mode. In Non-Project Mode, the implementation process must be run manually with the individual commands: opt_design, place_design, phys_opt_design, power_opt_design, and route_design. Refer to the Vivado Design Suite User Guide: Design Flows Overview (UG892) for a complete description of Project Mode and Non-Project Mode. Note: The route_design can be multi-threaded to speed the process. Refer to the set_param command for more information on setting the general.maxThreads parameter. Both placement and routing can be completed incrementally, based on prior results stored in a Design Checkpoint file (DCP), using the incremental implementation flow. Refer to the read_checkpoint command, or to Vivado Design Suite User Guide: Implementation (UG904) for more information on incremental place and route. This command requires a placed design, and it is recommended that you have optimized the design with opt_design prior to placement. Arguments: -unroute <arg> - (Optional) Unroute nets in the design. If no arguments are specified, all nets in the design are unrouted. The route_design command will not route any nets when the -unroute option is specified. * Combine with the -nets option to limit unrouting to a list of nets. * Combine with the -pins option to unroute from a specified pin to the nearest branch of the net. * Combine with the -physical_nets option to unroute all logic 1 and logic 0 nets. -release_memory - (Optional) Free router memory resources for subsequent route passes. This option does not run route passes, but only releases memory held by the router to reduce router initialization. The router will need to reload design data for subsequent route passes. -nets <args> - (Optional) Route or unroute only the specified net objects. Net objects must be specified using the get_nets command. Note: The router uses a quick route approach to find a routing solution for the specified nets, ignoring timing delays, when routing with -nets, -physical_nets, or -pins specified. Use -delay to find a route with the shortest delay. -physical_nets - (Optional) Route or unroute only logic zero and logic one nets. -pins <args> - (Optional) Route or unroute to the specified pins, which must be input pins. If a specified pin is driven by a multiple fanout net, only the route segment between the net and pin is affected. -directive <arg> - (Optional) Direct routing to achieve specific design objectives. Only one directive can be specified for a single route_design command, and values are case-sensitive. Supported values are: * Explore - Causes the Vivado router to explore different critical path routes based on timing, after an initial route. * AggressiveExplore - Directs the router to further expand its exploration of critical path routes while maintaining original timing budgets. The router runtime might be significantly higher compared to the Explore directive as the router uses more aggressive optimization thresholds to attempt to meet timing constraints. * NoTimingRelaxation - Prevents the router from relaxing timing to complete routing. If the router has difficulty meeting timing, it will run longer to try to meet the original timing constraints. * MoreGlobalIterations - Uses detailed timing analysis throughout all stages instead of just the final stages, and will run more global iterations even when timing improves only slightly. * HigherDelayCost - Adjusts the router`s internal cost functions to emphasize delay over iterations, allowing a trade-off of runtime for better performance. * AdvancedSkewModeling - Uses more accurate skew modeling throughout all routing stages which may improve design performance on higher-skew clock networks. * AlternateCLBRouting - (UltraScale only) Chooses alternate routing algorithms that require extra runtime but may help resolve routing congestion. * RuntimeOptimized - Run fewest iterations, trade higher design performance for faster runtime. * Quick - Absolute fastest runtime, non-timing-driven, performs the minimum required routing for a legal design. * Default - Run route_design with default settings. Note: The -directive option controls the overall routing strategy, and is not compatible with any specific route_design options, except -preserve and -tns_cleanup. It can also be used with -quiet and -verbose. Only the Explore, Quick, and Default directives are compatible with high reuse designs and the incremental implementation flow as defined by read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on the use of the -directive option. -tns_cleanup - (Optional) By default, to reduce runtime, the router focuses on optimizing the Worst Negative Slack (WNS) path as opposed to Total Negative Slack (TNS) paths. This option invokes an optional phase at the end of routing where the router attempts to fix the TNS paths, those failing paths other than the WNS path. This option may reduce TNS at the cost of added runtime, but will not affect WNS. The -tns_cleanup option is recommended when using post-route phys_opt_design to ensure that optimization focuses on the WNS path and does not waste effort on TNS paths that can be fixed by the router. This option can be used in combination with -directive. -no_timing_driven - (Optional) Disables the default timing driven routing algorithm. This results in faster routing results, but ignores any timing constraints during the routing process. -preserve - (Optional) Existing completed routes will be preserved and not subject to the rip-up and reroute phase. This does not apply to routing that is fixed using the IS_ROUTE_FIXED or FIXED_ROUTE properties, which is not subject to being rerouted. Routing is preserved only for the current route_design command. Note: Partially routed nets are subject to rerouting to complete the connection. If you want to preserve the routing of a partially routed net, you should apply the FIXED_ROUTE property to the portion of the route you want to preserve. -delay - (Optional) Can only be used in combination with the -nets or -pins options. By default nets are routed to achieve the fastest routing runtime, ignoring timing constraints, when using -nets and -pins options. The -delay option directs the router to try to achieve the shortest routed interconnect delay, but still ignores timing constraints. Note: You can specify multiple nets to route at the same time using the -delay option, but this can result in conflicts for routing resources. The Vivado router may create node overlap errors if the nets are in close proximity to each other because the -delay option will reuse routing resources to achieve the shortest routes for all specified nets. Therefore it is recommended to route nets and pins individually using the -delay option, beginning with the most critical. -auto_delay - (Optional) Can only be used in combination with the -nets or -pins options. It is recommended to use the -auto_delay option on a placed design, and limit the specified number of nets or pins to less than 100. The -auto_delay option directs the router to prioritize setup and hold critical paths using the defined timing constraints. -max_delay <arg> - (Optional) Can only be used with -pins. Directs the router to try to achieve an interconnect delay less than or equal to the specified delay given in picoseconds. When this options is specified, the -delay option is implied. Note: The -max_delay and -min_delay options specify the delay limits for the interconnect only, not the logic or intra-site delay. The router attempts to satisfy the delay restrictions on the interconnect. -min_delay <arg> - (Optional) Can only be used with -pins. Directs the router to try to achieve an interconnect delay greater than or equal to the specified delay given in picoseconds. When this option is specified, the -delay option is implied. -timing_summary - (Optional) By default, the router outputs a final timing summary to the log, based on Vivado router internal estimated timing which might differ slightly from the actual routed timing due to pessimism in the delay estimates. The -timing_summary option forces the router to launch the Vivado static timing analyzer to report the timing summary based on actual routed delays, but incurs additional run time for the static timing analysis. The timing summary consists of the Worst Negative Slack (WNS), Total Negative Slack (TNS), Worst Hold Slack (WHS), and Total Hold Slack (THS). The values are identical to that of report_timing_summary when run on the post-route design. Note: The Vivado static timing analyzer is also launched by the -directive Explore option. -finalize - (Optional) When routing interactively you can specify route_design -finalize to complete any partially routed connections. -ultrathreads - (Optional) Reduces router runtime at the expense of repeatability. This option enables the router to run faster, but there will be some variation in routing results between otherwise identical runs. -quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution. Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped. -verbose - (Optional) Temporarily override any message limits and return all messages from this command. Note: Message limits can be defined with the set_msg_config command. Examples: Route the entire design, and direct the router to try multiple algorithms for improving critical path delay: route_design -directive Explore The following example routes the set of timing critical nets, $criticalNets, to the shortest interconnect delay, marks the nets as fixed using the IS_ROUTE_FIXED property, and then routes the rest of the design using a low effort directive for fast results: route_design -delay -nets $criticalNets set_property IS_ROUTE_FIXED 1 $criticalNets route_design -directive RuntimeOptimized Route the specified nets using the fastest runtime: route_design -nets [get_nets ctrl0/ctr*] Route the specified nets to get the shortest interconnect delays: route_design -nets [get_nets ctrl0/ctr*] -delay Route to the specified pins: route_design -pins [get_pins ctrl0/reset_reg/D ctrl0/ram0/ADDRARDADDR] Route to a particular pin, try to achieve less than 500 ps delay: route_design -pins [get_pins ctrl0/reset_reg/D] -max_delay 500 Route to a particular pin, try to achieve more than 200 ps delay: route_design -pins [get_pins ctrl0/ram0/ADDRARDADDR] -min_delay 200 See Also: * get_nets * get_pins * launch_runs * opt_design * phys_opt_design * place_design * power_opt_design * read_checkpoint * set_property * write_checkpoint """ help_read_checkpoint = """ help read_checkpoint read_checkpoint Description: Read a design checkpoint Syntax: read_checkpoint [-cell <arg>] [-incremental] [-directive <arg>] [-reuse_objects <args>] [-fix_objects <args>] [-dcp_cell_list <args>] [-quiet] [-verbose] [<file>] Usage: Name Description ----------------------------- [-cell] Replace this cell with the checkpoint. The cell must be a black box. [-incremental] Input design checkpoint file to be used for re-using implementation. [-directive] Mode of behavior (directive) for this command. Please refer to Arguments section of this help for values for this option. Default: RuntimeOptimized [-reuse_objects] Reuse only given list of cells, clock regions, SLRs and Designs [-fix_objects] Fix only given list of cells, clock regions, SLRs or Design [-dcp_cell_list] A list of cell/dcp pairs, e.g. {<cell1> <dcp1> <cell2> <dcp2>}. The option value should be in curly braces. [-quiet] Ignore command errors [-verbose] Suspend message limits during command execution [<file>] Design checkpoint file Categories: FileIO Description: Reads a design checkpoint file (DCP) that contains the netlist, constraints, and may optionally have the placement and routing information of an implemented design. You can save design checkpoints at any stage in the design using the write_checkpoint command. The read_checkpoint command simply reads the associated checkpoint file, without opening a design or project in-memory. To create a project from the imported checkpoint, use the open_checkpoint command instead of read_checkpoint, or use the link_design command after read_checkpoint to open the in-memory design from the checkpoint or checkpoint files currently read. Note: When multiple design checkpoints are open in the Vivado tool, you must use the current_project command to switch between the open designs. You can use current_design to check which checkpoint is the active design. Arguments: -cell <arg> - (Optional) Specifies a black box cell in the current design to populate with the netlist data from the checkpoint file being read. This option cannot be used with -incremental, or any of its related options. -incremental - (Optional) Load a checkpoint file into an already open design to enable the incremental implementation design flow, where <file> specifies the path and filename of the incremental design checkpoint (DCP) file. In the incremental implementation flow, the placement and routing from the incremental DCP is applied to matching netlist objects in the current design to reuse existing placement and routing. Refer to the Vivado Design Suite User Guide: Implementation (UG904) for more information on incremental implementation. Note: The -incremental switch is not intended to merge two DCP files into a single design. It applies the placement and routing of the incremental checkpoint to the netlist objects in the current design. After loading an incremental design checkpoint, you can use the report_incremental_reuse command to determine the percentage of physical data reused from the incremental checkpoint, in the current design. The place_design and route_design commands will run incremental place and route, preserving reused placement and routing information and incorporating it into the design solution. Reading a design checkpoint with -incremental, loads the physical data into the current in-memory design. To clear out the incremental design data, you must either reload the current design, using open_run to open the synthesis run for instance, or read a new incremental checkpoint to overwrite the one previously loaded. -directive [ RuntimeOptimized | TimingClosure | Quick ] - (Optional) Specifies a directive, or mode of operation for the -incremental process. * RuntimeOptimized: The target WNS is the referenced from the incremental DCP. Trade-off timing for faster runtime. * TimingClosure: The target WNS is 0. This mode attempts to meet timing at the expense of runtime. * Quick: Specifies a low effort, non-timing-driven incremental implementation mode with the fastest runtime. -reuse_objects <args> - (Optional) For use with the -incremental option, to read and reuse only a portion of the checkpoint file, this option specifies to reuse only the placement and routing data of the specified list of cells, clock regions, and SLRs from the incremental checkpoint. Note: When this option is not specified, the whole design will be reused. The -reuse_objects options can be used multiple times to reuse different object types. See examples below. -fix_objects - (Optional) When -incremental is specified, mark the placement location of specifed cells as fixed (IS_LOC_FIXED) to prevent changes by the place_design command. This option will fix the placement of the specified list of cells, clock regions, SLRs or the current_design. -dcp_cell_list <arg> - (Optional) Lets you specify a list of cell/dcp pairs. This lets you read in multiple DCP files for specified cells in a single run of the read_checkpoint command. The format is specified as a list of cell/DCP pairs enclosed in curly braces: {<cell1> <dcp1> <cell2> <dcp2>}. -quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution. Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped. -verbose - (Optional) Temporarily override any message limits and return all messages from this command. Note: Message limits can be defined with the set_msg_config command. <file> - (Required) The path and filename of the checkpoint file to read. Note: If the path is not specified as part of the file name, the tool will search for the specified file in the current working directory and then in the directory from which the tool was launched. Examples: The following example imports the specified checkpoint file into the tool, and then links the various design elements to create an in-memory design of the specified name: read_checkpoint C:/Data/checkpoint.dcp link_design -name Test1 This example reads a design checkpoint on top of the current design for incremental place and route of the design: read_checkpoint -incremental C:/Data/routed.dcp Reuse and fix the placement and routing associated with the DSPs and Block RAMs: read_checkpoint -incremental C:/Data/routed.dcp \ -reuse_objects [all_rams] -reuse_objects [all_dsps] -fix_objects [current_design] Note: The -reuse_objects option could also be written as: -reuse_objects [get_cells -hier -filter {PRIMITIVE_TYPE =~ BMEM.*.* || PRIMITIVE_TYPE =~ MULT.dsp.* }] The following example reuses the placement and routing of the cells inside the hierarchical cpuEngine cell, and fixes the placement of the DSP cells: read_checkpoint -incremental C:/Data/routed.dcp -reuse_objects [get_cells cpuEngine] -fix_objects [all_dsps] See Also: * all_dsps * config_implementation * current_design * current_project * get_cells * link_design * open_checkpoint * report_config_implementation * write_checkpoint """ utilization_metrics = { "Slice Logic": [ "Slice LUTs*", "LUT as Logic", "LUT as Memory", "LUT as Distributed RAM", "LUT as Shift Register", "Slice Registers", "Register as Flip Flop", "Register as Latch", "F7 Muxes", "F8 Muxes", ], "Memory": ["Block RAM Tile", "RAMB36/FIFO*", "RAMB18"], "DSP": ["DSPs"], "IO and GT Specific": [ "Bonded IOB", "Bonded IPADs", "Bonded IOPADs", "PHY_CONTROL", "PHASER_REF", "OUT_FIFO", "IN_FIFO", "IDELAYCTRL", "IBUFDS", "PHASER_OUT/PHASER_OUT_PHY", "PHASER_IN/PHASER_IN_PHY", "IDELAYE2/IDELAYE2_FINEDELAY", "ILOGIC", "OLOGIC", ], "Clocking": [ "BUFGCTRL", "BUFIO", "MMCME2_ADV", "PLLE2_ADV", "BUFMRCE", "BUFHCE", "BUFR", ], "Specific Feature": [ "BSCANE2", "CAPTUREE2", "DNA_PORT", "EFUSE_USR", "FRAME_ECCE2", "ICAPE2", "STARTUPE2", "XADC", ], }
parts = [] place_directives_paragraph = '' route_directives_paragraph = '' synth_directives_paragraph = '' help_synth_design = '' help_place_design = '' help_route_design = '' synth_directives = [] place_directives = [] route_directives = [] place_note = '' route_note = '' incremental_place_directives = [] incremental_route_directives = [] parts = {'xc7k70tfbv676-1': 'kintex7', 'xc7k70tfbv676-2': 'kintex7', 'xc7k70tfbv676-2L': 'kintex7', 'xc7k70tfbv676-3': 'kintex7', 'xc7k70tfbv484-1': 'kintex7', 'xc7k70tfbv484-2': 'kintex7', 'xc7k70tfbv484-2L': 'kintex7', 'xc7k70tfbv484-3': 'kintex7', 'xc7k70tfbg676-1': 'kintex7', 'xc7k70tfbg676-2': 'kintex7', 'xc7k70tfbg676-2L': 'kintex7', 'xc7k70tfbg676-3': 'kintex7', 'xc7k70tfbg484-1': 'kintex7', 'xc7k70tfbg484-2': 'kintex7', 'xc7k70tfbg484-2L': 'kintex7', 'xc7k70tfbg484-3': 'kintex7', 'xc7k160tfbg484-1': 'kintex7', 'xc7k160tfbg484-2': 'kintex7', 'xc7k160tfbg484-2L': 'kintex7', 'xc7k160tfbg484-3': 'kintex7', 'xc7k160tfbg676-1': 'kintex7', 'xc7k160tfbg676-2': 'kintex7', 'xc7k160tfbg676-2L': 'kintex7', 'xc7k160tfbg676-3': 'kintex7', 'xc7k160tfbv484-1': 'kintex7', 'xc7k160tfbv484-2': 'kintex7', 'xc7k160tfbv484-2L': 'kintex7', 'xc7k160tfbv484-3': 'kintex7', 'xc7k160tfbv676-1': 'kintex7', 'xc7k160tfbv676-2': 'kintex7', 'xc7k160tfbv676-2L': 'kintex7', 'xc7k160tfbv676-3': 'kintex7', 'xc7k160tffg676-1': 'kintex7', 'xc7k160tffg676-2': 'kintex7', 'xc7k160tffg676-2L': 'kintex7', 'xc7k160tffg676-3': 'kintex7', 'xc7k160tffv676-1': 'kintex7', 'xc7k160tffv676-2': 'kintex7', 'xc7k160tffv676-2L': 'kintex7', 'xc7k160tffv676-3': 'kintex7', 'xc7k160tifbv676-2L': 'kintex7', 'xc7k160tifbg484-2L': 'kintex7', 'xc7k160tifbg676-2L': 'kintex7', 'xc7k160tifbv484-2L': 'kintex7', 'xc7k160tiffv676-2L': 'kintex7', 'xc7k160tiffg676-2L': 'kintex7', 'xc7k70tlfbv676-2L': 'kintex7l', 'xc7k70tlfbv484-2L': 'kintex7l', 'xc7k70tlfbg676-2L': 'kintex7l', 'xc7k70tlfbg484-2L': 'kintex7l', 'xc7k160tlfbg484-2L': 'kintex7l', 'xc7k160tlfbg676-2L': 'kintex7l', 'xc7k160tlfbv484-2L': 'kintex7l', 'xc7k160tlfbv676-2L': 'kintex7l', 'xc7k160tlffg676-2L': 'kintex7l', 'xc7k160tlffv676-2L': 'kintex7l', 'xc7a12ticsg325-1L': 'artix7', 'xc7a12ticpg238-1L': 'artix7', 'xc7a12tcsg325-1': 'artix7', 'xc7a12tcsg325-2': 'artix7', 'xc7a12tcsg325-2L': 'artix7', 'xc7a12tcsg325-3': 'artix7', 'xc7a12tcpg238-1': 'artix7', 'xc7a12tcpg238-2': 'artix7', 'xc7a12tcpg238-2L': 'artix7', 'xc7a12tcpg238-3': 'artix7', 'xc7a25tcpg238-1': 'artix7', 'xc7a25tcpg238-2': 'artix7', 'xc7a25tcpg238-2L': 'artix7', 'xc7a25tcpg238-3': 'artix7', 'xc7a25tcsg325-1': 'artix7', 'xc7a25tcsg325-2': 'artix7', 'xc7a25tcsg325-2L': 'artix7', 'xc7a25tcsg325-3': 'artix7', 'xc7a25ticpg238-1L': 'artix7', 'xc7a25ticsg325-1L': 'artix7', 'xc7a50tcsg324-1': 'artix7', 'xc7a50tcsg324-2': 'artix7', 'xc7a50tcsg324-2L': 'artix7', 'xc7a50tcsg324-3': 'artix7', 'xc7a50tcpg236-1': 'artix7', 'xc7a50tcpg236-2': 'artix7', 'xc7a50tcpg236-2L': 'artix7', 'xc7a50tcpg236-3': 'artix7', 'xc7a50tcsg325-1': 'artix7', 'xc7a50tcsg325-2': 'artix7', 'xc7a50tcsg325-2L': 'artix7', 'xc7a50tcsg325-3': 'artix7', 'xc7a50tfgg484-1': 'artix7', 'xc7a50tfgg484-2': 'artix7', 'xc7a50tfgg484-2L': 'artix7', 'xc7a50tfgg484-3': 'artix7', 'xc7a50tftg256-1': 'artix7', 'xc7a50tftg256-2': 'artix7', 'xc7a50tftg256-2L': 'artix7', 'xc7a50tftg256-3': 'artix7', 'xc7a35tiftg256-1L': 'artix7', 'xc7a35tifgg484-1L': 'artix7', 'xc7a35ticsg325-1L': 'artix7', 'xc7a35ticsg324-1L': 'artix7', 'xc7a35ticpg236-1L': 'artix7', 'xc7a50ticpg236-1L': 'artix7', 'xc7a50tiftg256-1L': 'artix7', 'xc7a50tifgg484-1L': 'artix7', 'xc7a50ticsg325-1L': 'artix7', 'xc7a50ticsg324-1L': 'artix7', 'xc7a35tftg256-1': 'artix7', 'xc7a35tftg256-2': 'artix7', 'xc7a35tftg256-2L': 'artix7', 'xc7a35tftg256-3': 'artix7', 'xc7a35tfgg484-1': 'artix7', 'xc7a35tfgg484-2': 'artix7', 'xc7a35tfgg484-2L': 'artix7', 'xc7a35tfgg484-3': 'artix7', 'xc7a35tcsg325-1': 'artix7', 'xc7a35tcsg325-2': 'artix7', 'xc7a35tcsg325-2L': 'artix7', 'xc7a35tcsg325-3': 'artix7', 'xc7a35tcsg324-1': 'artix7', 'xc7a35tcsg324-2': 'artix7', 'xc7a35tcsg324-2L': 'artix7', 'xc7a35tcsg324-3': 'artix7', 'xc7a35tcpg236-1': 'artix7', 'xc7a35tcpg236-2': 'artix7', 'xc7a35tcpg236-2L': 'artix7', 'xc7a35tcpg236-3': 'artix7', 'xc7a15tcpg236-1': 'artix7', 'xc7a15tcpg236-2': 'artix7', 'xc7a15tcpg236-2L': 'artix7', 'xc7a15tcpg236-3': 'artix7', 'xc7a15tcsg324-1': 'artix7', 'xc7a15tcsg324-2': 'artix7', 'xc7a15tcsg324-2L': 'artix7', 'xc7a15tcsg324-3': 'artix7', 'xc7a15tcsg325-1': 'artix7', 'xc7a15tcsg325-2': 'artix7', 'xc7a15tcsg325-2L': 'artix7', 'xc7a15tcsg325-3': 'artix7', 'xc7a15tfgg484-1': 'artix7', 'xc7a15tfgg484-2': 'artix7', 'xc7a15tfgg484-2L': 'artix7', 'xc7a15tfgg484-3': 'artix7', 'xc7a15tftg256-1': 'artix7', 'xc7a15tftg256-2': 'artix7', 'xc7a15tftg256-2L': 'artix7', 'xc7a15tftg256-3': 'artix7', 'xc7a15ticpg236-1L': 'artix7', 'xc7a15ticsg324-1L': 'artix7', 'xc7a15ticsg325-1L': 'artix7', 'xc7a15tifgg484-1L': 'artix7', 'xc7a15tiftg256-1L': 'artix7', 'xc7a75tfgg484-1': 'artix7', 'xc7a75tfgg484-2': 'artix7', 'xc7a75tfgg484-2L': 'artix7', 'xc7a75tfgg484-3': 'artix7', 'xc7a75tfgg676-1': 'artix7', 'xc7a75tfgg676-2': 'artix7', 'xc7a75tfgg676-2L': 'artix7', 'xc7a75tfgg676-3': 'artix7', 'xc7a75tftg256-1': 'artix7', 'xc7a75tftg256-2': 'artix7', 'xc7a75tftg256-2L': 'artix7', 'xc7a75tftg256-3': 'artix7', 'xc7a75tcsg324-1': 'artix7', 'xc7a75tcsg324-2': 'artix7', 'xc7a75tcsg324-2L': 'artix7', 'xc7a75tcsg324-3': 'artix7', 'xc7a75ticsg324-1L': 'artix7', 'xc7a75tifgg484-1L': 'artix7', 'xc7a75tifgg676-1L': 'artix7', 'xc7a75tiftg256-1L': 'artix7', 'xc7a100tiftg256-1L': 'artix7', 'xc7a100tifgg676-1L': 'artix7', 'xc7a100tifgg484-1L': 'artix7', 'xc7a100ticsg324-1L': 'artix7', 'xc7a100tftg256-1': 'artix7', 'xc7a100tftg256-2': 'artix7', 'xc7a100tftg256-2L': 'artix7', 'xc7a100tftg256-3': 'artix7', 'xc7a100tfgg676-1': 'artix7', 'xc7a100tfgg676-2': 'artix7', 'xc7a100tfgg676-2L': 'artix7', 'xc7a100tfgg676-3': 'artix7', 'xc7a100tfgg484-1': 'artix7', 'xc7a100tfgg484-2': 'artix7', 'xc7a100tfgg484-2L': 'artix7', 'xc7a100tfgg484-3': 'artix7', 'xc7a100tcsg324-1': 'artix7', 'xc7a100tcsg324-2': 'artix7', 'xc7a100tcsg324-2L': 'artix7', 'xc7a100tcsg324-3': 'artix7', 'xc7a200tfbg484-1': 'artix7', 'xc7a200tfbg484-2': 'artix7', 'xc7a200tfbg484-2L': 'artix7', 'xc7a200tfbg484-3': 'artix7', 'xc7a200tfbg676-1': 'artix7', 'xc7a200tfbg676-2': 'artix7', 'xc7a200tfbg676-2L': 'artix7', 'xc7a200tfbg676-3': 'artix7', 'xc7a200tfbv484-1': 'artix7', 'xc7a200tfbv484-2': 'artix7', 'xc7a200tfbv484-2L': 'artix7', 'xc7a200tfbv484-3': 'artix7', 'xc7a200tfbv676-1': 'artix7', 'xc7a200tfbv676-2': 'artix7', 'xc7a200tfbv676-2L': 'artix7', 'xc7a200tfbv676-3': 'artix7', 'xc7a200tffg1156-1': 'artix7', 'xc7a200tffg1156-2': 'artix7', 'xc7a200tffg1156-2L': 'artix7', 'xc7a200tffg1156-3': 'artix7', 'xc7a200tsbv484-1': 'artix7', 'xc7a200tsbv484-2': 'artix7', 'xc7a200tsbv484-2L': 'artix7', 'xc7a200tsbv484-3': 'artix7', 'xc7a200tffv1156-1': 'artix7', 'xc7a200tffv1156-2': 'artix7', 'xc7a200tffv1156-2L': 'artix7', 'xc7a200tffv1156-3': 'artix7', 'xc7a200tsbg484-1': 'artix7', 'xc7a200tsbg484-2': 'artix7', 'xc7a200tsbg484-2L': 'artix7', 'xc7a200tsbg484-3': 'artix7', 'xc7a200tisbv484-1L': 'artix7', 'xc7a200tisbg484-1L': 'artix7', 'xc7a200tiffv1156-1L': 'artix7', 'xc7a200tiffg1156-1L': 'artix7', 'xc7a200tifbv676-1L': 'artix7', 'xc7a200tifbv484-1L': 'artix7', 'xc7a200tifbg676-1L': 'artix7', 'xc7a200tifbg484-1L': 'artix7', 'xc7a12tlcsg325-2L': 'artix7l', 'xc7a12tlcpg238-2L': 'artix7l', 'xc7a25tlcsg325-2L': 'artix7l', 'xc7a25tlcpg238-2L': 'artix7l', 'xc7a35tlcpg236-2L': 'artix7l', 'xc7a35tlcsg324-2L': 'artix7l', 'xc7a35tlcsg325-2L': 'artix7l', 'xc7a35tlfgg484-2L': 'artix7l', 'xc7a35tlftg256-2L': 'artix7l', 'xc7a15tlcpg236-2L': 'artix7l', 'xc7a15tlcsg324-2L': 'artix7l', 'xc7a15tlcsg325-2L': 'artix7l', 'xc7a15tlfgg484-2L': 'artix7l', 'xc7a15tlftg256-2L': 'artix7l', 'xc7a50tlcpg236-2L': 'artix7l', 'xc7a50tlcsg324-2L': 'artix7l', 'xc7a50tlcsg325-2L': 'artix7l', 'xc7a50tlfgg484-2L': 'artix7l', 'xc7a50tlftg256-2L': 'artix7l', 'xc7a75tlftg256-2L': 'artix7l', 'xc7a75tlfgg676-2L': 'artix7l', 'xc7a75tlfgg484-2L': 'artix7l', 'xc7a75tlcsg324-2L': 'artix7l', 'xc7a100tlcsg324-2L': 'artix7l', 'xc7a100tlfgg484-2L': 'artix7l', 'xc7a100tlfgg676-2L': 'artix7l', 'xc7a100tlftg256-2L': 'artix7l', 'xc7a200tlfbg484-2L': 'artix7l', 'xc7a200tlfbg676-2L': 'artix7l', 'xc7a200tlfbv484-2L': 'artix7l', 'xc7a200tlfbv676-2L': 'artix7l', 'xc7a200tlffg1156-2L': 'artix7l', 'xc7a200tlffv1156-2L': 'artix7l', 'xc7a200tlsbg484-2L': 'artix7l', 'xc7a200tlsbv484-2L': 'artix7l', 'xa7a35tcsg325-1I': 'aartix7', 'xa7a35tcsg325-1Q': 'aartix7', 'xa7a35tcsg325-2I': 'aartix7', 'xa7a35tcsg324-1I': 'aartix7', 'xa7a35tcsg324-1Q': 'aartix7', 'xa7a35tcsg324-2I': 'aartix7', 'xa7a35tcpg236-1I': 'aartix7', 'xa7a35tcpg236-1Q': 'aartix7', 'xa7a35tcpg236-2I': 'aartix7', 'xa7a15tcpg236-1I': 'aartix7', 'xa7a15tcpg236-1Q': 'aartix7', 'xa7a15tcpg236-2I': 'aartix7', 'xa7a15tcsg324-1I': 'aartix7', 'xa7a15tcsg324-1Q': 'aartix7', 'xa7a15tcsg324-2I': 'aartix7', 'xa7a15tcsg325-1I': 'aartix7', 'xa7a15tcsg325-1Q': 'aartix7', 'xa7a15tcsg325-2I': 'aartix7', 'xa7a50tcpg236-1I': 'aartix7', 'xa7a50tcpg236-1Q': 'aartix7', 'xa7a50tcpg236-2I': 'aartix7', 'xa7a50tcsg324-1I': 'aartix7', 'xa7a50tcsg324-1Q': 'aartix7', 'xa7a50tcsg324-2I': 'aartix7', 'xa7a50tcsg325-1I': 'aartix7', 'xa7a50tcsg325-1Q': 'aartix7', 'xa7a50tcsg325-2I': 'aartix7', 'xa7a100tfgg484-1I': 'aartix7', 'xa7a100tfgg484-1Q': 'aartix7', 'xa7a100tfgg484-2I': 'aartix7', 'xa7a100tcsg324-1I': 'aartix7', 'xa7a100tcsg324-1Q': 'aartix7', 'xa7a100tcsg324-2I': 'aartix7', 'xa7a75tcsg324-1I': 'aartix7', 'xa7a75tcsg324-1Q': 'aartix7', 'xa7a75tcsg324-2I': 'aartix7', 'xa7a75tfgg484-1I': 'aartix7', 'xa7a75tfgg484-1Q': 'aartix7', 'xa7a75tfgg484-2I': 'aartix7', 'xa7a12tcpg238-1I': 'aartix7', 'xa7a12tcpg238-1Q': 'aartix7', 'xa7a12tcpg238-2I': 'aartix7', 'xa7a12tcsg325-1I': 'aartix7', 'xa7a12tcsg325-1Q': 'aartix7', 'xa7a12tcsg325-2I': 'aartix7', 'xa7a25tcpg238-1I': 'aartix7', 'xa7a25tcpg238-1Q': 'aartix7', 'xa7a25tcpg238-2I': 'aartix7', 'xa7a25tcsg325-1I': 'aartix7', 'xa7a25tcsg325-1Q': 'aartix7', 'xa7a25tcsg325-2I': 'aartix7', 'xc7z010iclg225-1L': 'zynq', 'xc7z010iclg400-1L': 'zynq', 'xc7z010clg400-1': 'zynq', 'xc7z010clg400-2': 'zynq', 'xc7z010clg400-3': 'zynq', 'xc7z010clg225-1': 'zynq', 'xc7z010clg225-2': 'zynq', 'xc7z010clg225-3': 'zynq', 'xc7z007sclg400-1': 'zynq', 'xc7z007sclg400-2': 'zynq', 'xc7z007sclg225-1': 'zynq', 'xc7z007sclg225-2': 'zynq', 'xc7z015iclg485-1L': 'zynq', 'xc7z015clg485-1': 'zynq', 'xc7z015clg485-2': 'zynq', 'xc7z015clg485-3': 'zynq', 'xc7z012sclg485-1': 'zynq', 'xc7z012sclg485-2': 'zynq', 'xc7z020iclg484-1L': 'zynq', 'xc7z020iclg400-1L': 'zynq', 'xc7z014sclg484-1': 'zynq', 'xc7z014sclg484-2': 'zynq', 'xc7z014sclg400-1': 'zynq', 'xc7z014sclg400-2': 'zynq', 'xc7z020clg484-1': 'zynq', 'xc7z020clg484-2': 'zynq', 'xc7z020clg484-3': 'zynq', 'xc7z020clg400-1': 'zynq', 'xc7z020clg400-2': 'zynq', 'xc7z020clg400-3': 'zynq', 'xc7z030ifbg484-2L': 'zynq', 'xc7z030ifbg676-2L': 'zynq', 'xc7z030ifbv484-2L': 'zynq', 'xc7z030ifbv676-2L': 'zynq', 'xc7z030iffg676-2L': 'zynq', 'xc7z030iffv676-2L': 'zynq', 'xc7z030isbg485-2L': 'zynq', 'xc7z030isbv485-2L': 'zynq', 'xc7z030sbg485-1': 'zynq', 'xc7z030sbg485-2': 'zynq', 'xc7z030sbg485-3': 'zynq', 'xc7z030sbv485-1': 'zynq', 'xc7z030sbv485-2': 'zynq', 'xc7z030sbv485-3': 'zynq', 'xc7z030fbg484-1': 'zynq', 'xc7z030fbg484-2': 'zynq', 'xc7z030fbg484-3': 'zynq', 'xc7z030fbg676-1': 'zynq', 'xc7z030fbg676-2': 'zynq', 'xc7z030fbg676-3': 'zynq', 'xc7z030fbv484-1': 'zynq', 'xc7z030fbv484-2': 'zynq', 'xc7z030fbv484-3': 'zynq', 'xc7z030fbv676-1': 'zynq', 'xc7z030fbv676-2': 'zynq', 'xc7z030fbv676-3': 'zynq', 'xc7z030ffg676-1': 'zynq', 'xc7z030ffg676-2': 'zynq', 'xc7z030ffg676-3': 'zynq', 'xc7z030ffv676-1': 'zynq', 'xc7z030ffv676-2': 'zynq', 'xc7z030ffv676-3': 'zynq', 'xa7z010clg225-1I': 'azynq', 'xa7z010clg225-1Q': 'azynq', 'xa7z010clg400-1I': 'azynq', 'xa7z010clg400-1Q': 'azynq', 'xa7z020clg400-1I': 'azynq', 'xa7z020clg400-1Q': 'azynq', 'xa7z020clg484-1I': 'azynq', 'xa7z020clg484-1Q': 'azynq', 'xa7z030fbg484-1I': 'azynq', 'xa7z030fbg484-1Q': 'azynq', 'xa7z030fbv484-1I': 'azynq', 'xa7z030fbv484-1Q': 'azynq', 'xc7s6ftgb196-1': 'spartan7', 'xc7s6ftgb196-1IL': 'spartan7', 'xc7s6ftgb196-1Q': 'spartan7', 'xc7s6ftgb196-2': 'spartan7', 'xc7s6csga225-1': 'spartan7', 'xc7s6csga225-1IL': 'spartan7', 'xc7s6csga225-1Q': 'spartan7', 'xc7s6csga225-2': 'spartan7', 'xc7s6cpga196-1': 'spartan7', 'xc7s6cpga196-1IL': 'spartan7', 'xc7s6cpga196-1Q': 'spartan7', 'xc7s6cpga196-2': 'spartan7', 'xc7s15cpga196-1': 'spartan7', 'xc7s15cpga196-1IL': 'spartan7', 'xc7s15cpga196-1Q': 'spartan7', 'xc7s15cpga196-2': 'spartan7', 'xc7s15csga225-1': 'spartan7', 'xc7s15csga225-1IL': 'spartan7', 'xc7s15csga225-1Q': 'spartan7', 'xc7s15csga225-2': 'spartan7', 'xc7s15ftgb196-1': 'spartan7', 'xc7s15ftgb196-1IL': 'spartan7', 'xc7s15ftgb196-1Q': 'spartan7', 'xc7s15ftgb196-2': 'spartan7', 'xc7s25ftgb196-1': 'spartan7', 'xc7s25ftgb196-1IL': 'spartan7', 'xc7s25ftgb196-1Q': 'spartan7', 'xc7s25ftgb196-2': 'spartan7', 'xc7s25csga324-1': 'spartan7', 'xc7s25csga324-1IL': 'spartan7', 'xc7s25csga324-1Q': 'spartan7', 'xc7s25csga324-2': 'spartan7', 'xc7s25csga225-1': 'spartan7', 'xc7s25csga225-1IL': 'spartan7', 'xc7s25csga225-1Q': 'spartan7', 'xc7s25csga225-2': 'spartan7', 'xc7s50csga324-1': 'spartan7', 'xc7s50csga324-1IL': 'spartan7', 'xc7s50csga324-1Q': 'spartan7', 'xc7s50csga324-2': 'spartan7', 'xc7s50fgga484-1': 'spartan7', 'xc7s50fgga484-1IL': 'spartan7', 'xc7s50fgga484-1Q': 'spartan7', 'xc7s50fgga484-2': 'spartan7', 'xc7s50ftgb196-1': 'spartan7', 'xc7s50ftgb196-1IL': 'spartan7', 'xc7s50ftgb196-1Q': 'spartan7', 'xc7s50ftgb196-2': 'spartan7', 'xc7s100fgga676-1': 'spartan7', 'xc7s100fgga676-1IL': 'spartan7', 'xc7s100fgga676-1Q': 'spartan7', 'xc7s100fgga676-2': 'spartan7', 'xc7s100fgga484-1': 'spartan7', 'xc7s100fgga484-1IL': 'spartan7', 'xc7s100fgga484-1Q': 'spartan7', 'xc7s100fgga484-2': 'spartan7', 'xc7s75fgga484-1': 'spartan7', 'xc7s75fgga484-1IL': 'spartan7', 'xc7s75fgga484-1Q': 'spartan7', 'xc7s75fgga484-2': 'spartan7', 'xc7s75fgga676-1': 'spartan7', 'xc7s75fgga676-1IL': 'spartan7', 'xc7s75fgga676-1Q': 'spartan7', 'xc7s75fgga676-2': 'spartan7', 'xa7s6cpga196-1I': 'aspartan7', 'xa7s6cpga196-1Q': 'aspartan7', 'xa7s6cpga196-2I': 'aspartan7', 'xa7s6csga225-1I': 'aspartan7', 'xa7s6csga225-1Q': 'aspartan7', 'xa7s6csga225-2I': 'aspartan7', 'xa7s6ftgb196-1I': 'aspartan7', 'xa7s6ftgb196-1Q': 'aspartan7', 'xa7s6ftgb196-2I': 'aspartan7', 'xa7s15cpga196-1I': 'aspartan7', 'xa7s15cpga196-1Q': 'aspartan7', 'xa7s15cpga196-2I': 'aspartan7', 'xa7s15csga225-1I': 'aspartan7', 'xa7s15csga225-1Q': 'aspartan7', 'xa7s15csga225-2I': 'aspartan7', 'xa7s15ftgb196-1I': 'aspartan7', 'xa7s15ftgb196-1Q': 'aspartan7', 'xa7s15ftgb196-2I': 'aspartan7', 'xa7s25csga225-1I': 'aspartan7', 'xa7s25csga225-1Q': 'aspartan7', 'xa7s25csga225-2I': 'aspartan7', 'xa7s25csga324-1I': 'aspartan7', 'xa7s25csga324-1Q': 'aspartan7', 'xa7s25csga324-2I': 'aspartan7', 'xa7s25ftgb196-1I': 'aspartan7', 'xa7s25ftgb196-1Q': 'aspartan7', 'xa7s25ftgb196-2I': 'aspartan7', 'xa7s50csga324-1I': 'aspartan7', 'xa7s50csga324-1Q': 'aspartan7', 'xa7s50csga324-2I': 'aspartan7', 'xa7s50fgga484-1I': 'aspartan7', 'xa7s50fgga484-1Q': 'aspartan7', 'xa7s50fgga484-2I': 'aspartan7', 'xa7s50ftgb196-1I': 'aspartan7', 'xa7s50ftgb196-1Q': 'aspartan7', 'xa7s50ftgb196-2I': 'aspartan7', 'xa7s75fgga484-1I': 'aspartan7', 'xa7s75fgga484-1Q': 'aspartan7', 'xa7s75fgga484-2I': 'aspartan7', 'xa7s75fgga676-1I': 'aspartan7', 'xa7s75fgga676-1Q': 'aspartan7', 'xa7s75fgga676-2I': 'aspartan7', 'xa7s100fgga484-1I': 'aspartan7', 'xa7s100fgga484-1Q': 'aspartan7', 'xa7s100fgga484-2I': 'aspartan7'} synth_directives = ['default', 'runtimeoptimized', 'AreaOptimized_high', 'AreaOptimized_medium', 'AlternateRoutability', 'AreaMapLargeShiftRegToBRAM', 'AreaMultThresholdDSP', 'FewerCarryChains', 'PerformanceOptimized'] route_directives = ['Explore', 'AggressiveExplore', 'NoTimingRelaxation', 'MoreGlobalIterations', 'HigherDelayCost', 'AdvancedSkewModeling', 'AlternateCLBRouting', 'RuntimeOptimized', 'Quick', 'Default'] place_directives = ['Explore', 'EarlyBlockPlacement', 'WLDrivenBlockPlacement', 'ExtraNetDelay_high', 'ExtraNetDelay_low', 'AltSpreadLogic_high', 'AltSpreadLogic_medium', 'AltSpreadLogic_low', 'ExtraPostPlacementOpt', 'ExtraTimingOpt', 'SSI_SpreadLogic_high', 'SSI_SpreadLogic_low', 'SSI_SpreadSLLs', 'SSI_BalanceSLLs', 'SSI_BalanceSLRs', 'SSI_HighUtilSLRs', 'RuntimeOptimized', 'Quick', 'Default'] read_checkpoint_directives = ['RuntimeOptimized', 'TimingClosure', 'Quick'] incremental_place_directives = ['Explore', 'Quick', 'Default'] incremental_route_directives = ['Explore', 'Quick', 'Default'] read_checkpoint_directives_paragraph = '\n -directive [ RuntimeOptimized | TimingClosure | Quick ] - (Optional)\n Specifies a directive, or mode of operation for the -incremental process.\n\n * RuntimeOptimized: The target WNS is the referenced from the incremental\n DCP. Trade-off timing for faster runtime.\n\n * TimingClosure: The target WNS is 0. This mode attempts to meet timing\n at the expense of runtime.\n\n * Quick: Specifies a low effort, non-timing-driven incremental\n implementation mode with the fastest runtime.\n' place_directives_paragraph = '\n -directive <arg> - (Optional) Direct placement to achieve specific design\n objectives. Only one directive can be specified for a single place_design\n command, and values are case-sensitive. Supported values include:\n\n * Explore - Increased placer effort in detail placement and\n post-placement optimization .\n\n * EarlyBlockPlacement - Timing-driven placement of RAM and DSP blocks.\n The RAM and DSP block locations are finalized early in the placement\n process and are used as anchors to place the remaining logic.\n\n * WLDrivenBlockPlacement - Wire length-driven placement of RAM and DSP\n blocks. Override timing-driven placement by directing the Vivado placer\n to minimize the distance of connections to and from blocks.\n\n * ExtraNetDelay_high - Increases estimated delay of high fanout and\n long-distance nets. Three levels of pessimism are supported: high,\n medium, and low. ExtraNetDelay_high applies the highest level of\n pessimism.\n\n * ExtraNetDelay_low - Increases estimated delay of high fanout and\n long-distance nets. Three levels of pessimism are supported: high,\n medium, and low. ExtraNetDelay_low applies the lowest level of\n pessimism.\n\n * AltSpreadLogic_high - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_high achieves the highest level of spreading.\n\n * AltSpreadLogic_medium - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_medium achieves a medium level of spreading\n compared to low and high.\n\n * AltSpreadLogic_low - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_low achieves the lowest level of spreading.\n\n * ExtraPostPlacementOpt - Increased placer effort in post-placement\n optimization.\n\n * ExtraTimingOpt - Use an alternate algorithm for timing-driven placement\n with greater effort for timing.\n\n * SSI_SpreadLogic_high - Distribute logic across SLRs.\n SSI_SpreadLogic_high achieves the highest level of distribution.\n\n * SSI_SpreadLogic_low - Distribute logic across SLRs. SSI_SpreadLogic_low\n achieves a minimum level of logic distribution, while reducing\n placement runtime.\n\n * SSI_SpreadSLLs - Partition across SLRs and allocate extra area for\n regions of higher connectivity.\n\n * SSI_BalanceSLLs - Partition across SLRs while attempting to balance\n SLLs between SLRs.\n\n * SSI_BalanceSLRs - Partition across SLRs to balance number of cells\n between SLRs.\n\n * SSI_HighUtilSLRs - Direct the placer to attempt to place logic closer\n together in each SLR.\n\n * RuntimeOptimized - Run fewest iterations, trade higher design\n performance for faster runtime.\n\n * Quick - Absolute, fastest runtime, non-timing-driven, performs the\n minimum required placement for a legal design.\n\n * Default - Run place_design with default settings.\n\n Note: The -directive option controls the overall placement strategy, and is\n not compatible with some place_design options. It can be used with\n -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and\n Default directives are compatible with high reuse designs and the\n incremental implementation flow as defined by read_checkpoint -incremental.\n Refer to the Vivado Design Suite User Guide: Implementation (UG904) for\n more information on placement strategies and the use of the -directive\n option.\n' place_note = '\n Note: The -directive option controls the overall placement strategy, and is\n not compatible with some place_design options. It can be used with\n -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and\n Default directives are compatible with high reuse designs and the\n incremental implementation flow as defined by read_checkpoint -incremental.\n Refer to the Vivado Design Suite User Guide: Implementation (UG904) for\n more information on placement strategies and the use of the -directive\n option.\n' route_directives_paragraph = '\n -directive <arg> - (Optional) Direct routing to achieve specific design\n objectives. Only one directive can be specified for a single route_design\n command, and values are case-sensitive. Supported values are:\n\n * Explore - Causes the Vivado router to explore different critical path\n routes based on timing, after an initial route.\n\n * AggressiveExplore - Directs the router to further expand its\n exploration of critical path routes while maintaining original timing\n budgets. The router runtime might be significantly higher compared to\n the Explore directive as the router uses more aggressive optimization\n thresholds to attempt to meet timing constraints.\n\n * NoTimingRelaxation - Prevents the router from relaxing timing to\n complete routing. If the router has difficulty meeting timing, it will\n run longer to try to meet the original timing constraints.\n\n * MoreGlobalIterations - Uses detailed timing analysis throughout all\n stages instead of just the final stages, and will run more global\n iterations even when timing improves only slightly.\n\n * HigherDelayCost - Adjusts the router`s internal cost functions to\n emphasize delay over iterations, allowing a trade-off of runtime for\n better performance.\n\n * AdvancedSkewModeling - Uses more accurate skew modeling throughout all\n routing stages which may improve design performance on higher-skew\n clock networks.\n\n * AlternateCLBRouting - (UltraScale only) Chooses alternate routing\n algorithms that require extra runtime but may help resolve routing\n congestion.\n\n * RuntimeOptimized - Run fewest iterations, trade higher design\n performance for faster runtime.\n\n * Quick - Absolute fastest runtime, non-timing-driven, performs the\n minimum required routing for a legal design.\n\n * Default - Run route_design with default settings.\n\n Note: The -directive option controls the overall routing strategy, and is\n not compatible with any specific route_design options, except -preserve and\n -tns_cleanup. It can also be used with -quiet and -verbose. Only the\n Explore, Quick, and Default directives are compatible with high reuse\n designs and the incremental implementation flow as defined by\n read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide:\n Implementation (UG904) for more information on the use of the -directive\n option.\n' route_note = '\n Note: The -directive option controls the overall routing strategy, and is\n not compatible with any specific route_design options, except -preserve and\n -tns_cleanup. It can also be used with -quiet and -verbose. Only the\n Explore, Quick, and Default directives are compatible with high reuse\n designs and the incremental implementation flow as defined by\n read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide:\n Implementation (UG904) for more information on the use of the -directive\n option.\n' synth_directives_paragraph = '\n -directive <arg> - (Optional) Direct synthesis to achieve specific design\n objectives. Only one directive can be specified for a single synth_design\n command, and values are case-sensitive. Valid values are:\n\n * default - Run the default synthesis process.\n\n * runtimeoptimized - Perform fewer timing optimizations and eliminate\n some RTL optimizations to reduce synthesis run time.\n\n * AreaOptimized_high - Perform general area optimizations including\n AreaMapLargeShiftRegToBRAM, AreaThresholdUseDSP directives.\n\n * AreaOptimized_medium - Perform general area optimizations including\n forcing ternary adder implementation, applying new thresholds for use\n of carry chain in comparators, and implementing area optimized\n multiplexers.\n\n * AlternateRoutability - Algorithms to improve routability with reduced\n use of MUXFs and CARRYs.\n\n * AreaMapLargeShiftRegToBRAM - Detects large shift registers and\n implements them using dedicated blocks of RAM.\n\n * AreaMultThresholdDSP - Lower threshold for dedicated DSP block\n inference for packing multipliers.\n\n * FewerCarryChains - Higher operand size threshold to use LUTs instead of\n the carry chain.\n\n * PerformanceOptimized - Perform general timing optimizations including\n logic level reduction at the expense of area.\n' help_synth_design = '\nhelp synth_design\nsynth_design\n\nDescription:\nSynthesize a design using Vivado Synthesis and open that design\n\nSyntax:\nsynth_design [-name <arg>] [-part <arg>] [-constrset <arg>] [-top <arg>]\n [-include_dirs <args>] [-generic <args>] [-verilog_define <args>]\n [-flatten_hierarchy <arg>] [-gated_clock_conversion <arg>]\n [-directive <arg>] [-rtl] [-bufg <arg>] [-no_lc]\n [-fanout_limit <arg>] [-shreg_min_size <arg>] [-mode <arg>]\n [-fsm_extraction <arg>] [-rtl_skip_ip] [-rtl_skip_constraints]\n [-keep_equivalent_registers] [-resource_sharing <arg>]\n [-cascade_dsp <arg>] [-control_set_opt_threshold <arg>]\n [-incremental <arg>] [-max_bram <arg>] [-max_uram <arg>]\n [-max_dsp <arg>] [-max_bram_cascade_height <arg>]\n [-max_uram_cascade_height <arg>] [-retiming] [-no_srlextract]\n [-assert] [-no_timing_driven] [-sfcu] [-quiet] [-verbose]\n\nReturns:\ndesign object\n\nUsage:\n Name Description\n -----------------------------------------\n [-name] Design name\n [-part] Target part\n [-constrset] Constraint fileset to use\n [-top] Specify the top module name\n [-include_dirs] Specify verilog search directories\n [-generic] Specify generic parameters. Syntax: -generic\n <name>=<value> -generic <name>=<value> ...\n [-verilog_define] Specify verilog defines. Syntax:\n -verilog_define <macro_name>[=<macro_text>]\n -verilog_define <macro_name>[=<macro_text>]\n ...\n [-flatten_hierarchy] Flatten hierarchy during LUT mapping. Values:\n full, none, rebuilt\n Default: rebuilt\n [-gated_clock_conversion] Convert clock gating logic to flop enable.\n Values: off, on, auto\n Default: off\n [-directive] Synthesis directive. Values: default,\n RuntimeOptimized, AreaOptimized_high,\n AreaOptimized_medium,AlternateRoutability,\n AreaMapLargeShiftRegToBRAM,\n AreaMultThresholdDSP, FewerCarryChains,Perfor\n manceOptimized\n Default: default\n [-rtl] Elaborate and open an rtl design\n [-bufg] Max number of global clock buffers used by\n synthesis\n Default: 12\n [-no_lc] Disable LUT combining. Do not allow combining\n LUT pairs into single dual output LUTs.\n [-fanout_limit] Fanout limit. This switch does not impact\n control signals (such as set,reset, clock\n enable) use MAX_FANOUT to replicate these\n signals if needed.\n Default: 10000\n [-shreg_min_size] Minimum length for chain of registers to be\n mapped onto SRL\n Default: 3\n [-mode] The design mode. Values: default,\n out_of_context\n Default: default\n [-fsm_extraction] FSM Extraction Encoding. Values: off,\n one_hot, sequential, johnson, gray,\n user_encoding, auto\n Default: auto\n [-rtl_skip_ip] Exclude subdesign checkpoints in the RTL\n elaboration of the design; requires -rtl\n option.\n [-rtl_skip_constraints] Do not load and validate constraints against\n elaborated design; requires -rtl option.\n [-keep_equivalent_registers] Prevents registers sourced by the same logic\n from being merged. (Note that the merging can\n otherwise be prevented using the synthesis\n KEEP attribute)\n [-resource_sharing] Sharing arithmetic operators. Value: auto,\n on, off\n Default: auto\n [-cascade_dsp] Controls how adders summing DSP block outputs\n will be implemented. Value: auto, tree, force\n Default: auto\n [-control_set_opt_threshold] Threshold for synchronous control set\n optimization to lower number of control sets.\n Valid values are \'auto\' and non-negative\n integers. The higher the number, the more\n control set optimization will be performed\n and fewer control sets will result. To\n disable control set optimization completely,\n set to 0.\n Default: auto\n [-incremental] dcp file for incremental flowvalue of this is\n the file name\n [-max_bram] Maximum number of block RAM allowed in\n design. (Note -1 means that the tool will\n choose the max number allowed for the part in\n question)\n Default: -1\n [-max_uram] Maximum number of Ultra RAM blocks allowed in\n design. (Note -1 means that the tool will\n choose the max number allowed for the part in\n question)\n Default: -1\n [-max_dsp] Maximum number of block DSP allowed in\n design. (Note -1 means that the tool will\n choose the max number allowed for the part in\n question)\n Default: -1\n [-max_bram_cascade_height] Controls the maximum number of BRAM that can\n be cascaded by the tool. (Note -1 means that\n the tool will choose the max number allowed\n for the part in question)\n Default: -1\n [-max_uram_cascade_height] Controls the maximum number of URAM that can\n be cascaded by the tool. (Note -1 means that\n the tool will choose the max number allowed\n for the part in question)\n Default: -1\n [-retiming] Seeks to improve circuit performance for\n intra-clock sequential paths by automatically\n moving registers (register balancing) across\n combinatorial gates or LUTs. It maintains\n the original behavior and latency of the\n circuit and does not require changes to the\n RTL sources.\n [-no_srlextract] Prevents the extraction of shift registers so\n that they get implemented as simple registers\n [-assert] Enable VHDL assert statements to be\n evaluated. A severity level of failure will\n stop the synthesis flow and produce an error.\n [-no_timing_driven] Do not run in timing driven mode\n [-sfcu] Run in single-file compilation unit mode\n [-quiet] Ignore command errors\n [-verbose] Suspend message limits during command\n execution\n\nCategories:\nTools\n\nDescription:\n\n Directly launches the Vivado synthesis engine to compile and synthesize a\n design in either Project Mode or Non-Project Mode in the Vivado Design\n Suite. Refer to the Vivado Design Suite User Guide: Design Flows Overview\n (UG892) for a complete description of Project Mode and Non-Project Mode.\n\n Vivado synthesis can be launched directly with the synth_design command in\n the Non-Project Mode of the Vivado Design Suite.\n\n Note: The synth_design can be multi-threaded to speed the process. Refer to\n the set_param command for more information on setting the\n general.maxThreads parameter.\n\n In Project Mode, synthesis should be launched from an existing synthesis\n run created with the create_run command. The run is launched using the\n launch_runs command, and this in turn calls synth_design for Vivado\n synthesis.\n\n You can also use the synth_design command to elaborate RTL source files,\n and open an elaborated design:\n\n synth_design -rtl -name rtl_1\n\n\n This command returns a transcript of the synthesis process, or returns an\n error if it fails.\n\nArguments:\n\n -name <arg> - (Optional) This is the name assigned to the synthesized\n design when it is opened by the Vivado tool after synthesis has completed.\n This name is for reference purposes, and has nothing to do with the\n top-level of the design or any logic contained within.\n\n -part <arg> - (Optional) The target Xilinx device to use for the design. If\n the part is not specified the default part assigned to the project will be\n used.\n\n -constrset <arg> - (Optional) The name of the XDC constraints to use when\n synthesizing the design. Vivado synthesis requires the use of XDC, and does\n not support UCF. The -constrset argument must refer to a constraint fileset\n that exists. It cannot be used to create a new fileset. Use the\n create_fileset command for that purpose.\n\n -top <arg> - (Optional) The top module of the design hierarchy.\n\n Note: If you use the find_top command to define the -top option, be sure to\n specify only one top if find_top returns multiple prospects. See the\n examples below.\n\n -include_dirs <args> - (Optional) The directories to search for Verilog\n `include files. You can specify multiple directories by creating a list to\n contain them:\n\n -include_dirs {C:/data/include1 C:/data/include2}\n\n\n -generic <name>=<value> - (Optional) The value of a VHDL generic entity, or\n of a Verilog parameter. The -generic option can be used to override the\n assigned values of parameters in the RTL design sources. However it can\n only override parameters at the top level of the design. The parameters of\n lower-level modules can only be overridden at the time of instantiation and\n not by the -generic option. The syntax for the -generic argument is\n <name>=<value>, specifying the name of the generic or parameter, and the\n value to be assigned. Repeat the -generic option multiple times in the\n synth_design command for each generic or parameter value to be defined:\n\n synth_design -generic width=32 -generic depth=512 ...\n\n\n Note: When specifying binary values for boolean or std_logic VHDL generic\n types, you must specify the value using the Verilog bit format, rather than\n standard VHDL format:\n\n 0 = 1`b0\n 01010000 = 8`b01010000\n\n\n -verilog_define <name>=<text> - (Optional) Set values for Verilog `define,\n and `ifdef, statements. The syntax for the -verilog_define argument is\n <name>=<text>, specifying the name of the define directive, and the value\n to be assigned. The argument can be reused multiple times in a single\n synth_design command.\n\n synth_design -verilog_define <name>=<value> -verilog_define <name>=<value> ...\n\n\n -flatten_hierarchy <arg> - (Optional) Flatten the hierarchy of the design\n during LUT mapping. The valid values are:\n\n * rebuilt - This will attempt to rebuild the original hierarchy of the\n RTL design after synthesis has completed. This is the default setting.\n\n * full - Flatten the hierarchy of the design.\n\n * none - Do not flatten the hierarchy of the design. This will preserve\n the hierarchy of the design, but will also limit the design\n optimization that can be performed by the synthesis tool.\n\n -gated_clock_conversion <arg> - (Optional) Convert clock gating logic to\n use the flop enable pins when available. This optimization can eliminate\n logic and simplify the netlist. Refer to the GATED_CLOCK property in the\n Vivado Design Suite User Guide: Synthesis (UG901) for more information.\n Valid values for this option are:\n\n * off - Disables the conversion of clock gating logic during synthesis,\n regardless of the use of the GATED_CLOCK property in the RTL design.\n\n * on - Converts clock gating logic based on the use of the GATED_CLOCK\n property in the RTL design.\n\n * auto - lets Vivado synthesis perform gated clock conversion if either\n the GATED_CLOCK property is present in the RTL, or if the Vivado tool\n detects a gate with a valid clock constraint.\n\n -directive <arg> - (Optional) Direct synthesis to achieve specific design\n objectives. Only one directive can be specified for a single synth_design\n command, and values are case-sensitive. Valid values are:\n\n * default - Run the default synthesis process.\n\n * runtimeoptimized - Perform fewer timing optimizations and eliminate\n some RTL optimizations to reduce synthesis run time.\n\n * AreaOptimized_high - Perform general area optimizations including\n AreaMapLargeShiftRegToBRAM, AreaThresholdUseDSP directives.\n\n * AreaOptimized_medium - Perform general area optimizations including\n forcing ternary adder implementation, applying new thresholds for use\n of carry chain in comparators, and implementing area optimized\n multiplexers.\n\n * AlternateRoutability - Algorithms to improve routability with reduced\n use of MUXFs and CARRYs.\n\n * AreaMapLargeShiftRegToBRAM - Detects large shift registers and\n implements them using dedicated blocks of RAM.\n\n * AreaMultThresholdDSP - Lower threshold for dedicated DSP block\n inference for packing multipliers.\n\n * FewerCarryChains - Higher operand size threshold to use LUTs instead of\n the carry chain.\n\n * PerformanceOptimized - Perform general timing optimizations including\n logic level reduction at the expense of area.\n\n -rtl - (Optional) Elaborate the HDL source files and open the RTL design.\n In designs that use out-of-context (OOC) modules, such as IP from the\n Xilinx IP catalog, the Vivado Design Suite will import synthesized design\n checkpoints (DCP) for the OOC modules in the design, and import associated\n constraint files (XDC) into the elaborated design. However, you can disable\n the default behavior using the -rtl_skip_ip and -rtl_skip_constraints\n options.\n\n -rtl_skip_ip - (Optional) This option requires the use of the -rtl option.\n When elaborating the RTL design, this option causes the Vivado Design Suite\n to skip loading the DCP files for OOC modules in the design, and instead\n load a stub file to treat the OOC modules as black boxes. This can\n significantly speed elaboration of the design.\n\n Note: An OOC synthesis run will be needed in either case to generate the\n DCP file that is loaded during elaboration, or to generate the stub file\n needed for the black box.\n\n -rtl_skip_constraints - (Optional) This option requires the use of the -rtl\n option. When elaborating the RTL design, this option causes the Vivado\n Design Suite to skip loading any design constraints (XDC) into the\n elaborated design. This can significantly speed elaboration of the design.\n\n -bufg <arg> - (Optional) Specify the maximum number of global clock buffers\n to be used on clock nets during synthesis. Specified as a value >= 1, which\n should not exceed the BUFG count on the target device. The default value is\n 12.\n\n Note: Vivado synthesis infers up to the number of BUFGs specified,\n including those instantiated in the RTL source. For example, with the\n default setting of -bufg 12, if there are three BUFGs instantiated in the\n RTL, the tool infers up to nine more for a total of 12.\n\n -no_lc - (Optional) Disable the default LUT combining feature of Vivado\n synthesis.\n\n -fanout_limit <arg> - (Optional) Specify a target limit for the maximum net\n fanout applied during synthesis. The default value is 10,000. This option\n is applied by Vivado synthesis when the number of loads exceeds an internal\n limit, and is only a guideline for the tool, not a strict requirement. When\n strict fanout control is required for specific signals, use the MAX_FANOUT\n property instead.\n\n Note: -fanout_limit does not affect control signals (such as set, reset,\n clock enable). Use the MAX_FANOUT property to replicate these signals as\n needed.\n\n -shreg_min_size <arg> - (Optional) Specified as an integer, this is the\n minimum length for a chain of registers to be mapped onto SRL. The default\n is three.\n\n -mode [ default | out_of_context ] - (Optional) Out of Context mode\n specifies the synthesis of an IP module, or block module, for use in an\n out-of-context design flow. This mode turns off I/O buffer insertion for\n the module, and marks the module as OOC, to facilitate its use in the tool\n flow. The block can also be implemented for analysis purposes. Refer to the\n Vivado Design Suite User Guide: Designing with IP (UG896) or the Vivado\n Design Suite User Guide: Hierarchical Design (UG905) for more information.\n\n -fsm_extraction <arg> - (Optional) Finite state machine (FSM) encoding is\n automatic (auto) in Vivado synthesis by default. This option enables state\n machine identification and specifies the type of encoding that should be\n applied. Valid values are: off, one_hot, sequential, johnson, gray, auto.\n Automatic encoding (auto) allows the tool to choose the best encoding for\n each state machine identified. In this case, the tool may use different\n encoding styles for different FSMs in the same design.\n\n Note: Use -fsm_extraction off to disable finite state machine extraction in\n Vivado synthesis. This will override the FSM_ENCODING property when\n specified.\n\n -keep_equivalent_registers - (Optional) Works like the KEEP property to\n prevent the merging of registers during optimization.\n\n -resource_sharing <arg> - (Optional) Share arithmetic operators like adders\n or subtractors between different signals, rather than creating new\n operators. This can result in better area usage when it is turned on. Valid\n values are: auto, on, off. The default is auto.\n\n -cascade_dsp [ auto | tree | force ] - (Optional) Specifies how to\n implement adders that add DSP block outputs. Valid values include auto,\n tree, force. The default setting is auto.\n\n -control_set_opt_threshold <arg> - (Optional) Threshold for synchronous\n control set optimization to decrease the number of control sets. Specifies\n how large the fanout of a control set should be before it starts using it\n as a control set. For example, if -control_set_opt_threshold is set to 10,\n a synchronous reset that only fans out to 5 registers would be moved to the\n D input logic, rather than using the reset line of a register. However, if\n -control_set_opt_threshold is set to 4, then the reset line is used. This\n option can be specified as "auto", or as an integer from 0 to 16. The\n default setting is "auto", and the actual threshold used under "auto" can\n vary depending on the selected device architecture.\n\n -incremental - (Optional) Specify a DCP file for the incremental\n compilation flow. In the incremental synthesis flow, the netlist from the\n incremental DCP is applied to the design objects in the current design to\n reuse existing synthesis results when possible.\n\n -max_bram <arg> - (Optional) Specify the maximum number of Block RAM to add\n to the design during synthesis. Specify a value >= 1, which should not\n exceed the available BRAM count on the target device. If a value of -1 is\n used, the Vivado synthesis tool will not exceed the available Block RAM\n limit of the device. The default value is -1.\n\n Note: A value of 0 directs Vivado synthesis to not infer BRAMs in the\n design, but is not a recommended value.\n\n -max_uram <arg> - (Optional) Specify the maximum number of Ultra RAM blocks\n (URAM) to add to the design during synthesis. Specify a value >= 1, which\n should not exceed the available URAM count on the target device. If a value\n of -1 is used, the Vivado synthesis tool will not exceed the available URAM\n block limit of the device. The default value is -1.\n\n Note: A value of 0 directs Vivado synthesis to not infer URAM in the\n design, but is not a recommended value.\n\n -max_dsp <arg> - (Optional) Specify the maximum number of DSPs to add to\n the design during synthesis. Specify a value >= 1, which should not exceed\n the available DSP count on the target device. If a value of -1 is used, the\n Vivado synthesis tool will not exceed the available limit of the device.\n The default value is -1.\n\n Note: A value of 0 directs Vivado synthesis to not infer DSPs in the\n design, but is not a recommended value.\n\n -max_bram_cascade_height <arg> - (Optional) Controls the maximum number of\n BRAM that can be cascaded by the tool. A value of -1 lets Vivado synthesis\n choose up to the maximum number allowed for the target part. The default\n value is -1.\n\n -max_uram_cascade_height <arg> - (Optional) Controls the maximum number of\n URAM that can be cascaded by the tool. A value of -1 lets Vivado synthesis\n choose up to the maximum number allowed for the target part. The default\n value is -1.\n\n -retiming - (Optional) Seeks to improve circuit performance for intra-clock\n sequential paths by automatically moving registers (register balancing)\n across combinatorial gates or LUTs. It maintains the original behavior and\n latency of the circuit and does not require changes to the RTL sources.\n\n -no_srlextract - (Optional) Prevents the extraction of shift registers so\n that they get implemented as simple registers.\n\n -assert - (Optional) Enable VHDL assert statements to be evaluated. A\n severity level of failure will stop the synthesis flow and produce an\n error.\n\n -no_timing_driven - (Optional) Disables the default timing driven synthesis\n algorithm. This results in a reduced synthesis runtime, but ignores the\n effect of timing on synthesis.\n\n -quiet - (Optional) Execute the command quietly, returning no messages from\n the command. The command also returns TCL_OK regardless of any errors\n encountered during execution.\n\n Note: Any errors encountered on the command-line, while launching the\n command, will be returned. Only errors occurring inside the command will be\n trapped.\n\n -verbose - (Optional) Temporarily override any message limits and return\n all messages from this command.\n\n Note: Message limits can be defined with the set_msg_config command.\n\nExamples:\n\n The following example uses the set_property command to define the target\n part for the active project, then elaborates the source files and opens an\n RTL design:\n\n set_property part xc7vx485tffg1158-1 [current_project]\n synth_design -rtl -name rtl_1\n\n\n Note: The default source set, constraint set, and part will be used in this\n example.\n\n The following example uses the find_top command to define the top of the\n current design for synthesis:\n\n\n synth_design -top [lindex [find_top] 0]\n\n\n Note: Since find_top returns multiple possible candidates, choosing index 0\n chooses the best top candidate for synthesis.\n\n The following example runs synthesis on the current design, defining the\n top module and the target part, and specifying no flattening of the\n hierarchy. The results of the synthesis run are then opened in a netlist\n design:\n\n synth_design -top top -part xc7k70tfbg676-2 -flatten_hierarchy none\n open_run synth_1 -name netlist_1\n\n\nSee Also:\n\n * create_ip_run\n * create_run\n * current_design\n * current_project\n * find_top\n * open_run\n * opt_design\n * report_seu\n * set_property\n' help_place_design = '\nhelp place_design\nplace_design\n\nDescription: \nAutomatically place ports and leaf-level instances\n\nSyntax:\nplace_design [-directive <arg>] [-no_timing_driven] [-timing_summary]\n [-unplace] [-post_place_opt] [-no_psip] [-no_bufg_opt] [-quiet]\n [-verbose]\n\nUsage:\n Name Description\n --------------------------------\n [-directive] Mode of behavior (directive) for this command. Please\n refer to Arguments section of this help for values for\n this option.\n Default: Default\n [-no_timing_driven] Do not run in timing driven mode\n [-timing_summary] Enable accurate post-placement timing summary.\n [-unplace] Unplace all the instances which are not locked by\n Constraints.\n [-post_place_opt] Run only the post commit optimizer\n [-no_psip] Disable PSIP (Physical Synthesis In Placer)\n optimization during placement.\n [-no_bufg_opt] Disable global buffer insertion during placement\n [-quiet] Ignore command errors\n [-verbose] Suspend message limits during command execution\n\nCategories:\nTools\n\nDescription:\n\n Place the specified ports and logic cells in the current design, or all\n ports and logic cells, onto device resources on the target part. The tool\n optimizes placement to minimize negative timing slack and reduce overall\n wire length, while also attempting to spread out placement to reduce\n routing congestion.\n\n Placement is one step of the complete design implementation process, which\n can be run automatically through the use of the launch_runs command when\n running the Vivado tools in Project Mode.\n\n In Non-Project Mode, the implementation process must be run manually with\n the individual commands: opt_design, place_design, phys_opt_design,\n power_opt_design, and route_design. Refer to the Vivado Design Suite User\n Guide: Design Flows Overview (UG892) for a complete description of Project\n Mode and Non-Project Mode.\n\n Both placement and routing can be completed incrementally, based on prior\n results stored in a Design Checkpoint file (DCP), using the incremental\n implementation flow. Refer to the read_checkpoint command, or to Vivado\n Design Suite User Guide: Implementation (UG904) for more information on\n incremental place and route.\n\n Note: The place_design can be multi-threaded to speed the process. Refer to\n the set_param command for more information on setting the\n general.maxThreads parameter.\n\n You can also manually place some elements of the design using place_ports,\n or by setting LOC properties on the cell, and then automatically place the\n remainder of the design using place_design.\n\n This command requires an open synthesized design, and it is recommended\n that you run the opt_design command prior to running place_design to avoid\n placing a suboptimal netlist.\n\nArguments:\n\n -directive <arg> - (Optional) Direct placement to achieve specific design\n objectives. Only one directive can be specified for a single place_design\n command, and values are case-sensitive. Supported values include:\n\n * Explore - Increased placer effort in detail placement and\n post-placement optimization .\n\n * EarlyBlockPlacement - Timing-driven placement of RAM and DSP blocks.\n The RAM and DSP block locations are finalized early in the placement\n process and are used as anchors to place the remaining logic.\n\n * WLDrivenBlockPlacement - Wire length-driven placement of RAM and DSP\n blocks. Override timing-driven placement by directing the Vivado placer\n to minimize the distance of connections to and from blocks.\n\n * ExtraNetDelay_high - Increases estimated delay of high fanout and\n long-distance nets. Three levels of pessimism are supported: high,\n medium, and low. ExtraNetDelay_high applies the highest level of\n pessimism.\n\n * ExtraNetDelay_low - Increases estimated delay of high fanout and\n long-distance nets. Three levels of pessimism are supported: high,\n medium, and low. ExtraNetDelay_low applies the lowest level of\n pessimism.\n\n * AltSpreadLogic_high - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_high achieves the highest level of spreading.\n\n * AltSpreadLogic_medium - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_medium achieves a medium level of spreading\n compared to low and high.\n\n * AltSpreadLogic_low - Spreads logic throughout the device to avoid\n creating congested regions. Three levels are supported: high, medium,\n and low. AltSpreadLogic_low achieves the lowest level of spreading.\n\n * ExtraPostPlacementOpt - Increased placer effort in post-placement\n optimization.\n\n * ExtraTimingOpt - Use an alternate algorithm for timing-driven placement\n with greater effort for timing.\n\n * SSI_SpreadLogic_high - Distribute logic across SLRs.\n SSI_SpreadLogic_high achieves the highest level of distribution.\n\n * SSI_SpreadLogic_low - Distribute logic across SLRs. SSI_SpreadLogic_low\n achieves a minimum level of logic distribution, while reducing\n placement runtime.\n\n * SSI_SpreadSLLs - Partition across SLRs and allocate extra area for\n regions of higher connectivity.\n\n * SSI_BalanceSLLs - Partition across SLRs while attempting to balance\n SLLs between SLRs.\n\n * SSI_BalanceSLRs - Partition across SLRs to balance number of cells\n between SLRs.\n\n * SSI_HighUtilSLRs - Direct the placer to attempt to place logic closer\n together in each SLR.\n\n * RuntimeOptimized - Run fewest iterations, trade higher design\n performance for faster runtime.\n\n * Quick - Absolute, fastest runtime, non-timing-driven, performs the\n minimum required placement for a legal design.\n\n * Default - Run place_design with default settings.\n\n Note: The -directive option controls the overall placement strategy, and is\n not compatible with some place_design options. It can be used with\n -no_psip, -no_bufg_opt, -quiet and -verbose. Only the Explore, Quick, and\n Default directives are compatible with high reuse designs and the\n incremental implementation flow as defined by read_checkpoint -incremental.\n Refer to the Vivado Design Suite User Guide: Implementation (UG904) for\n more information on placement strategies and the use of the -directive\n option.\n\n -no_timing_driven - (Optional) Disables the default timing driven placement\n algorithm. This results in a faster placement based on wire lengths, but\n ignores any timing constraints during the placement process.\n\n -timing_summary - (Optional) Report the post-placement worst negative slack\n (WNS) using results from static timing analysis. The WNS value is identical\n to that of report_timing_summary when run on the post-placement design. By\n default the placer reports an estimated WNS based on incremental placement\n updates during the design implementation. The -timing_summary option incurs\n additional runtime to run a full timing analysis.\n\n -unplace - (Optional) Unplace all the instances which are not locked by\n constraints. Cells with fixed placement (IS_LOC_FIXED set to TRUE), are not\n affected.\n\n Note: Use the set_property to change IS_LOC_FIXED to FALSE prior to\n unplacing fixed cells.\n\n -post_place_opt - (Optional) Run optimization after placement to improve\n critical path timing at the expense of additional placement and routing\n runtime. This optimization can be run at any stage after placement. The\n optimization examines the worst case timing paths and tries to improve\n placement to reduce delay.\n\n Note: Any placement changes will result in unrouted connections, so\n route_design will need to be run after -post_place_opt.\n\n -no_psip - (Optional) Disable PSIP (Physical Synthesis In Placer)\n optimization during placement. By default, to improve delay the Vivado\n placer performs optimizations such as replicating drivers of high-fanout\n nets and drivers of loads that are far-apart. This option disables those\n optimizations.\n\n -no_bufg_opt - (Optional) By default, global buffers are inserted during\n placement to drive high-fanout nets. This option disables global buffer\n insertion to reduce the number of routing resources consumed by high fanout\n nets that are not timing-critical.\n\n -quiet - (Optional) Execute the command quietly, returning no messages from\n the command. The command also returns TCL_OK regardless of any errors\n encountered during execution.\n\n Note: Any errors encountered on the command-line, while launching the\n command, will be returned. Only errors occurring inside the command will be\n trapped.\n\n -verbose - (Optional) Temporarily override any message limits and return\n all messages from this command.\n\n Note: Message limits can be defined with the set_msg_config command.\n\nExamples:\n\n The following example places the current design, runs optimization, routes\n the design, runs post placement optimization, and then reroutes the design\n to cleanup any unconnected nets as a result of post placement optimization:\n\n place_design\n phys_opt_design\n route_design\n place_design -post_place_opt\n phys_opt_design\n route_design\n\n\n The following example directs the Vivado placer to try different placement\n algorithms to achieve a better placement result:\n\n place_design -directive Explore\n\n\n This example unplaces the current design:\n\n place_design -unplace\n\n\nSee Also:\n\n * launch_runs\n * opt_design\n * place_ports\n * phys_opt_design\n * power_opt_design\n * read_checkpoint\n * route_design\n * set_property\n' help_route_design = '\nhelp route_design\nroute_design\n\nDescription:\nRoute the current design\n\nSyntax:\nroute_design [-unroute] [-release_memory] [-nets <args>] [-physical_nets]\n [-pins <arg>] [-directive <arg>] [-tns_cleanup]\n [-no_timing_driven] [-preserve] [-delay] [-auto_delay]\n -max_delay <arg> -min_delay <arg> [-timing_summary] [-finalize]\n [-ultrathreads] [-quiet] [-verbose]\n\nUsage:\n Name Description\n --------------------------------\n [-unroute] Unroute whole design or the given nets/pins if used\n with -nets or -pins.\n [-release_memory] Release Router memory. Not compatible with any other\n options.\n [-nets] Operate on the given nets.\n [-physical_nets] Operate on all physical nets.\n [-pins] Operate on the given pins.\n [-directive] Mode of behavior (directive) for this command. Please\n refer to Arguments section of this help for values for\n this option.\n Default: Default\n [-tns_cleanup] Do optional TNS clean up.\n [-no_timing_driven] Do not run in timing driven mode.\n [-preserve] Preserve existing routing.\n [-delay] Use with -nets or -pins option to route in delay\n driven mode.\n [-auto_delay] Use with -nets or -pins option to route in constraint\n driven mode.\n -max_delay Use with -pins option to specify the max_delay\n constraint on the pins.When specified -delay is\n implicit.\n -min_delay Use with -pins option to specify the max_delay\n constraint on the pins.When specified -delay is\n implicit.\n [-timing_summary] Enable post-router signoff timing summary.\n [-finalize] finalize route_design in interactive mode.\n [-ultrathreads] Enable Turbo mode routing.\n [-quiet] Ignore command errors\n [-verbose] Suspend message limits during command execution\n\nCategories:\nTools\n\nDescription:\n\n Route the nets in the current design to complete logic connections on the\n target part.\n\n Predefined routing strategies can be quickly selected using the\n route_design -directive command, or specific route options can be\n configured to define your own routing strategy.\n\n Routing can be completed automatically with route_design, or can be\n completed iteratively using the various options of the route_design command\n to achieve route completion and timing closure. Iterative routing provides\n you some control over the routing process to route critical nets first and\n then route less critical nets, and to control the level of effort and the\n timing algorithms for these various route passes.\n\n Routing is one step of the complete design implementation process, which\n can be run automatically through the use of the launch_runs command when\n running the Vivado tools in Project Mode.\n\n In Non-Project Mode, the implementation process must be run manually with\n the individual commands: opt_design, place_design, phys_opt_design,\n power_opt_design, and route_design. Refer to the Vivado Design Suite User\n Guide: Design Flows Overview (UG892) for a complete description of Project\n Mode and Non-Project Mode.\n\n Note: The route_design can be multi-threaded to speed the process. Refer to\n the set_param command for more information on setting the\n general.maxThreads parameter.\n\n Both placement and routing can be completed incrementally, based on prior\n results stored in a Design Checkpoint file (DCP), using the incremental\n implementation flow. Refer to the read_checkpoint command, or to Vivado\n Design Suite User Guide: Implementation (UG904) for more information on\n incremental place and route.\n\n This command requires a placed design, and it is recommended that you have\n optimized the design with opt_design prior to placement.\n\nArguments:\n\n -unroute <arg> - (Optional) Unroute nets in the design. If no arguments are\n specified, all nets in the design are unrouted. The route_design command\n will not route any nets when the -unroute option is specified.\n\n * Combine with the -nets option to limit unrouting to a list of nets.\n\n * Combine with the -pins option to unroute from a specified pin to the\n nearest branch of the net.\n\n * Combine with the -physical_nets option to unroute all logic 1 and logic\n 0 nets.\n\n -release_memory - (Optional) Free router memory resources for subsequent\n route passes. This option does not run route passes, but only releases\n memory held by the router to reduce router initialization. The router will\n need to reload design data for subsequent route passes.\n\n -nets <args> - (Optional) Route or unroute only the specified net objects.\n Net objects must be specified using the get_nets command.\n\n Note: The router uses a quick route approach to find a routing solution for\n the specified nets, ignoring timing delays, when routing with -nets,\n -physical_nets, or -pins specified. Use -delay to find a route with the\n shortest delay.\n\n -physical_nets - (Optional) Route or unroute only logic zero and logic one\n nets.\n\n -pins <args> - (Optional) Route or unroute to the specified pins, which\n must be input pins. If a specified pin is driven by a multiple fanout net,\n only the route segment between the net and pin is affected.\n\n -directive <arg> - (Optional) Direct routing to achieve specific design\n objectives. Only one directive can be specified for a single route_design\n command, and values are case-sensitive. Supported values are:\n\n * Explore - Causes the Vivado router to explore different critical path\n routes based on timing, after an initial route.\n\n * AggressiveExplore - Directs the router to further expand its\n exploration of critical path routes while maintaining original timing\n budgets. The router runtime might be significantly higher compared to\n the Explore directive as the router uses more aggressive optimization\n thresholds to attempt to meet timing constraints.\n\n * NoTimingRelaxation - Prevents the router from relaxing timing to\n complete routing. If the router has difficulty meeting timing, it will\n run longer to try to meet the original timing constraints.\n\n * MoreGlobalIterations - Uses detailed timing analysis throughout all\n stages instead of just the final stages, and will run more global\n iterations even when timing improves only slightly.\n\n * HigherDelayCost - Adjusts the router`s internal cost functions to\n emphasize delay over iterations, allowing a trade-off of runtime for\n better performance.\n\n * AdvancedSkewModeling - Uses more accurate skew modeling throughout all\n routing stages which may improve design performance on higher-skew\n clock networks.\n\n * AlternateCLBRouting - (UltraScale only) Chooses alternate routing\n algorithms that require extra runtime but may help resolve routing\n congestion.\n\n * RuntimeOptimized - Run fewest iterations, trade higher design\n performance for faster runtime.\n\n * Quick - Absolute fastest runtime, non-timing-driven, performs the\n minimum required routing for a legal design.\n\n * Default - Run route_design with default settings.\n\n Note: The -directive option controls the overall routing strategy, and is\n not compatible with any specific route_design options, except -preserve and\n -tns_cleanup. It can also be used with -quiet and -verbose. Only the\n Explore, Quick, and Default directives are compatible with high reuse\n designs and the incremental implementation flow as defined by\n read_checkpoint -incremental. Refer to the Vivado Design Suite User Guide:\n Implementation (UG904) for more information on the use of the -directive\n option.\n\n -tns_cleanup - (Optional) By default, to reduce runtime, the router focuses\n on optimizing the Worst Negative Slack (WNS) path as opposed to Total\n Negative Slack (TNS) paths. This option invokes an optional phase at the\n end of routing where the router attempts to fix the TNS paths, those\n failing paths other than the WNS path. This option may reduce TNS at the\n cost of added runtime, but will not affect WNS. The -tns_cleanup option is\n recommended when using post-route phys_opt_design to ensure that\n optimization focuses on the WNS path and does not waste effort on TNS paths\n that can be fixed by the router. This option can be used in combination\n with -directive.\n\n -no_timing_driven - (Optional) Disables the default timing driven routing\n algorithm. This results in faster routing results, but ignores any timing\n constraints during the routing process.\n\n -preserve - (Optional) Existing completed routes will be preserved and not\n subject to the rip-up and reroute phase. This does not apply to routing\n that is fixed using the IS_ROUTE_FIXED or FIXED_ROUTE properties, which is\n not subject to being rerouted. Routing is preserved only for the current\n route_design command.\n\n Note: Partially routed nets are subject to rerouting to complete the\n connection. If you want to preserve the routing of a partially routed net,\n you should apply the FIXED_ROUTE property to the portion of the route you\n want to preserve.\n\n -delay - (Optional) Can only be used in combination with the -nets or -pins\n options. By default nets are routed to achieve the fastest routing runtime,\n ignoring timing constraints, when using -nets and -pins options. The -delay\n option directs the router to try to achieve the shortest routed\n interconnect delay, but still ignores timing constraints.\n\n Note: You can specify multiple nets to route at the same time using the\n -delay option, but this can result in conflicts for routing resources. The\n Vivado router may create node overlap errors if the nets are in close\n proximity to each other because the -delay option will reuse routing\n resources to achieve the shortest routes for all specified nets. Therefore\n it is recommended to route nets and pins individually using the -delay\n option, beginning with the most critical.\n\n -auto_delay - (Optional) Can only be used in combination with the -nets or\n -pins options. It is recommended to use the -auto_delay option on a placed\n design, and limit the specified number of nets or pins to less than 100.\n The -auto_delay option directs the router to prioritize setup and hold\n critical paths using the defined timing constraints.\n\n -max_delay <arg> - (Optional) Can only be used with -pins. Directs the\n router to try to achieve an interconnect delay less than or equal to the\n specified delay given in picoseconds. When this options is specified, the\n -delay option is implied.\n\n Note: The -max_delay and -min_delay options specify the delay limits for\n the interconnect only, not the logic or intra-site delay. The router\n attempts to satisfy the delay restrictions on the interconnect.\n\n -min_delay <arg> - (Optional) Can only be used with -pins. Directs the\n router to try to achieve an interconnect delay greater than or equal to the\n specified delay given in picoseconds. When this option is specified, the\n -delay option is implied.\n\n -timing_summary - (Optional) By default, the router outputs a final timing\n summary to the log, based on Vivado router internal estimated timing which\n might differ slightly from the actual routed timing due to pessimism in the\n delay estimates. The -timing_summary option forces the router to launch the\n Vivado static timing analyzer to report the timing summary based on actual\n routed delays, but incurs additional run time for the static timing\n analysis. The timing summary consists of the Worst Negative Slack (WNS),\n Total Negative Slack (TNS), Worst Hold Slack (WHS), and Total Hold Slack\n (THS). The values are identical to that of report_timing_summary when run\n on the post-route design.\n\n Note: The Vivado static timing analyzer is also launched by the -directive\n Explore option.\n\n -finalize - (Optional) When routing interactively you can specify\n route_design -finalize to complete any partially routed connections.\n\n -ultrathreads - (Optional) Reduces router runtime at the expense of\n repeatability. This option enables the router to run faster, but there will\n be some variation in routing results between otherwise identical runs.\n\n -quiet - (Optional) Execute the command quietly, returning no messages from\n the command. The command also returns TCL_OK regardless of any errors\n encountered during execution.\n\n Note: Any errors encountered on the command-line, while launching the\n command, will be returned. Only errors occurring inside the command will be\n trapped.\n\n -verbose - (Optional) Temporarily override any message limits and return\n all messages from this command.\n\n Note: Message limits can be defined with the set_msg_config command.\n\nExamples:\n\n Route the entire design, and direct the router to try multiple algorithms\n for improving critical path delay:\n\n route_design -directive Explore\n\n\n The following example routes the set of timing critical nets,\n $criticalNets, to the shortest interconnect delay, marks the nets as fixed\n using the IS_ROUTE_FIXED property, and then routes the rest of the design\n using a low effort directive for fast results:\n\n route_design -delay -nets $criticalNets\n set_property IS_ROUTE_FIXED 1 $criticalNets\n route_design -directive RuntimeOptimized\n\n\n Route the specified nets using the fastest runtime:\n\n route_design -nets [get_nets ctrl0/ctr*]\n\n\n Route the specified nets to get the shortest interconnect delays:\n\n route_design -nets [get_nets ctrl0/ctr*] -delay\n\n\n Route to the specified pins:\n\n route_design -pins [get_pins ctrl0/reset_reg/D ctrl0/ram0/ADDRARDADDR]\n\n\n Route to a particular pin, try to achieve less than 500 ps delay:\n\n route_design -pins [get_pins ctrl0/reset_reg/D] -max_delay 500\n\n\n Route to a particular pin, try to achieve more than 200 ps delay:\n\n route_design -pins [get_pins ctrl0/ram0/ADDRARDADDR] -min_delay 200\n\n\nSee Also:\n\n * get_nets\n * get_pins\n * launch_runs\n * opt_design\n * phys_opt_design\n * place_design\n * power_opt_design\n * read_checkpoint\n * set_property\n * write_checkpoint\n' help_read_checkpoint = '\nhelp read_checkpoint\nread_checkpoint\n\nDescription:\nRead a design checkpoint\n\nSyntax:\nread_checkpoint [-cell <arg>] [-incremental] [-directive <arg>]\n [-reuse_objects <args>] [-fix_objects <args>]\n [-dcp_cell_list <args>] [-quiet] [-verbose] [<file>]\n\nUsage:\n Name Description\n -----------------------------\n [-cell] Replace this cell with the checkpoint. The cell must be a\n black box.\n [-incremental] Input design checkpoint file to be used for re-using\n implementation.\n [-directive] Mode of behavior (directive) for this command. Please\n refer to Arguments section of this help for values for\n this option.\n Default: RuntimeOptimized\n [-reuse_objects] Reuse only given list of cells, clock regions, SLRs and\n Designs\n [-fix_objects] Fix only given list of cells, clock regions, SLRs or\n Design\n [-dcp_cell_list] A list of cell/dcp pairs, e.g. {<cell1> <dcp1> <cell2>\n <dcp2>}. The option value should be in curly braces.\n [-quiet] Ignore command errors\n [-verbose] Suspend message limits during command execution\n [<file>] Design checkpoint file\n\nCategories:\nFileIO\n\nDescription:\n\n Reads a design checkpoint file (DCP) that contains the netlist,\n constraints, and may optionally have the placement and routing information\n of an implemented design. You can save design checkpoints at any stage in\n the design using the write_checkpoint command.\n\n The read_checkpoint command simply reads the associated checkpoint file,\n without opening a design or project in-memory. To create a project from the\n imported checkpoint, use the open_checkpoint command instead of\n read_checkpoint, or use the link_design command after read_checkpoint to\n open the in-memory design from the checkpoint or checkpoint files currently\n read.\n\n Note: When multiple design checkpoints are open in the Vivado tool, you\n must use the current_project command to switch between the open designs.\n You can use current_design to check which checkpoint is the active design.\n\nArguments:\n\n -cell <arg> - (Optional) Specifies a black box cell in the current design\n to populate with the netlist data from the checkpoint file being read. This\n option cannot be used with -incremental, or any of its related options.\n\n -incremental - (Optional) Load a checkpoint file into an already open\n design to enable the incremental implementation design flow, where <file>\n specifies the path and filename of the incremental design checkpoint (DCP)\n file. In the incremental implementation flow, the placement and routing\n from the incremental DCP is applied to matching netlist objects in the\n current design to reuse existing placement and routing. Refer to the Vivado\n Design Suite User Guide: Implementation (UG904) for more information on\n incremental implementation.\n\n Note: The -incremental switch is not intended to merge two DCP files into a\n single design. It applies the placement and routing of the incremental\n checkpoint to the netlist objects in the current design.\n\n After loading an incremental design checkpoint, you can use the\n report_incremental_reuse command to determine the percentage of physical\n data reused from the incremental checkpoint, in the current design. The\n place_design and route_design commands will run incremental place and\n route, preserving reused placement and routing information and\n incorporating it into the design solution.\n\n Reading a design checkpoint with -incremental, loads the physical data into\n the current in-memory design. To clear out the incremental design data, you\n must either reload the current design, using open_run to open the synthesis\n run for instance, or read a new incremental checkpoint to overwrite the one\n previously loaded.\n\n -directive [ RuntimeOptimized | TimingClosure | Quick ] - (Optional)\n Specifies a directive, or mode of operation for the -incremental process.\n\n * RuntimeOptimized: The target WNS is the referenced from the incremental\n DCP. Trade-off timing for faster runtime.\n\n * TimingClosure: The target WNS is 0. This mode attempts to meet timing\n at the expense of runtime.\n\n * Quick: Specifies a low effort, non-timing-driven incremental\n implementation mode with the fastest runtime.\n\n -reuse_objects <args> - (Optional) For use with the -incremental option, to\n read and reuse only a portion of the checkpoint file, this option specifies\n to reuse only the placement and routing data of the specified list of\n cells, clock regions, and SLRs from the incremental checkpoint.\n\n Note: When this option is not specified, the whole design will be reused.\n The -reuse_objects options can be used multiple times to reuse different\n object types. See examples below.\n\n -fix_objects - (Optional) When -incremental is specified, mark the\n placement location of specifed cells as fixed (IS_LOC_FIXED) to prevent\n changes by the place_design command. This option will fix the placement of\n the specified list of cells, clock regions, SLRs or the current_design.\n\n -dcp_cell_list <arg> - (Optional) Lets you specify a list of cell/dcp\n pairs. This lets you read in multiple DCP files for specified cells in a\n single run of the read_checkpoint command. The format is specified as a\n list of cell/DCP pairs enclosed in curly braces: {<cell1> <dcp1> <cell2>\n <dcp2>}.\n\n -quiet - (Optional) Execute the command quietly, returning no messages from\n the command. The command also returns TCL_OK regardless of any errors\n encountered during execution.\n\n Note: Any errors encountered on the command-line, while launching the\n command, will be returned. Only errors occurring inside the command will be\n trapped.\n\n -verbose - (Optional) Temporarily override any message limits and return\n all messages from this command.\n\n Note: Message limits can be defined with the set_msg_config command.\n\n <file> - (Required) The path and filename of the checkpoint file to read.\n\n Note: If the path is not specified as part of the file name, the tool will\n search for the specified file in the current working directory and then in\n the directory from which the tool was launched.\n\nExamples:\n\n The following example imports the specified checkpoint file into the tool,\n and then links the various design elements to create an in-memory design of\n the specified name:\n\n read_checkpoint C:/Data/checkpoint.dcp\n link_design -name Test1\n\n\n This example reads a design checkpoint on top of the current design for\n incremental place and route of the design:\n\n read_checkpoint -incremental C:/Data/routed.dcp\n\n\n Reuse and fix the placement and routing associated with the DSPs and Block\n RAMs:\n\n read_checkpoint -incremental C:/Data/routed.dcp -reuse_objects [all_rams] -reuse_objects [all_dsps] -fix_objects [current_design]\n\n\n Note: The -reuse_objects option could also be written as:\n\n -reuse_objects [get_cells -hier -filter {PRIMITIVE_TYPE =~ BMEM.*.* || PRIMITIVE_TYPE =~ MULT.dsp.* }]\n\n\n The following example reuses the placement and routing of the cells inside\n the hierarchical cpuEngine cell, and fixes the placement of the DSP cells:\n\n read_checkpoint -incremental C:/Data/routed.dcp -reuse_objects [get_cells cpuEngine] -fix_objects [all_dsps]\n\n\n\nSee Also:\n\n * all_dsps\n * config_implementation\n * current_design\n * current_project\n * get_cells\n * link_design\n * open_checkpoint\n * report_config_implementation\n * write_checkpoint\n' utilization_metrics = {'Slice Logic': ['Slice LUTs*', 'LUT as Logic', 'LUT as Memory', 'LUT as Distributed RAM', 'LUT as Shift Register', 'Slice Registers', 'Register as Flip Flop', 'Register as Latch', 'F7 Muxes', 'F8 Muxes'], 'Memory': ['Block RAM Tile', 'RAMB36/FIFO*', 'RAMB18'], 'DSP': ['DSPs'], 'IO and GT Specific': ['Bonded IOB', 'Bonded IPADs', 'Bonded IOPADs', 'PHY_CONTROL', 'PHASER_REF', 'OUT_FIFO', 'IN_FIFO', 'IDELAYCTRL', 'IBUFDS', 'PHASER_OUT/PHASER_OUT_PHY', 'PHASER_IN/PHASER_IN_PHY', 'IDELAYE2/IDELAYE2_FINEDELAY', 'ILOGIC', 'OLOGIC'], 'Clocking': ['BUFGCTRL', 'BUFIO', 'MMCME2_ADV', 'PLLE2_ADV', 'BUFMRCE', 'BUFHCE', 'BUFR'], 'Specific Feature': ['BSCANE2', 'CAPTUREE2', 'DNA_PORT', 'EFUSE_USR', 'FRAME_ECCE2', 'ICAPE2', 'STARTUPE2', 'XADC']}
# https://www.hackerrank.com/challenges/crush/problem?isFullScreen=true def reduce_x(a, b, c): mod = 1000000007 return a % mod, b % mod, c % mod # Main Method if __name__ == '__main__': n, m = map(int, input().split()) arr = [0] * (n + 2) for _ in range(m): a, b, k = map(int, input().split()) a, b, k = reduce_x(a, b, k) arr[a] += k arr[b + 1] -= k ''' if a == b: arr[a-1] += k else: arr[a-1 : b] = [i + k for i in arr[a-1 : b]] ''' m = v = 0 for i in range(1, n + 1): v += arr[i] m = max(m, v) print(m)
def reduce_x(a, b, c): mod = 1000000007 return (a % mod, b % mod, c % mod) if __name__ == '__main__': (n, m) = map(int, input().split()) arr = [0] * (n + 2) for _ in range(m): (a, b, k) = map(int, input().split()) (a, b, k) = reduce_x(a, b, k) arr[a] += k arr[b + 1] -= k '\n if a == b: \n arr[a-1] += k\n else: \n arr[a-1 : b] = [i + k for i in arr[a-1 : b]]\n ' m = v = 0 for i in range(1, n + 1): v += arr[i] m = max(m, v) print(m)
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Stephan Krause <stephan.krause@eox.at> # Stephan Meissl <stephan.meissl@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2011 EOX IT Services 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 of this Software or works derived from this 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. #------------------------------------------------------------------------------- class AbstractStorageInterface(object): @property def name(self): "Name of the storage implementation." def validate(self, url): """ Validates the given storage locator and raises a ValidationError if errors occurred. """ class FileStorageInterface(AbstractStorageInterface): """ Interface for storages that provide access to files and allow the retrieval of those. """ def retrieve(self, url, location, path): """ Retrieve a remote file from the storage specified by the given `url` and location and store it to the given `path`. Storages that don't need to actually retrieve and store files, just need to return a path to a local file instead of storing it under `path`. """ def list_files(self, url, location): """ Return a list of retrievable files available on the storage located at the specified URL and given location. """ class ConnectedStorageInterface(AbstractStorageInterface): """ Interface for storages that do not store "files" but provide access to data in a different fashion. """ def connect(self, url, location): """ Return a connection string for a remote dataset residing on a storage specified by the given `url` and `location`. """ class PackageInterface(object): @property def name(self): "Name of the package implementation." def extract(self, package_filename, location, path): """ Extract a file specified by the `location` from the package to the given `path` specification. """ def list_contents(self, package_filename, location): """ Return a list of item locations under the specified location in the given package. """
class Abstractstorageinterface(object): @property def name(self): """Name of the storage implementation.""" def validate(self, url): """ Validates the given storage locator and raises a ValidationError if errors occurred. """ class Filestorageinterface(AbstractStorageInterface): """ Interface for storages that provide access to files and allow the retrieval of those. """ def retrieve(self, url, location, path): """ Retrieve a remote file from the storage specified by the given `url` and location and store it to the given `path`. Storages that don't need to actually retrieve and store files, just need to return a path to a local file instead of storing it under `path`. """ def list_files(self, url, location): """ Return a list of retrievable files available on the storage located at the specified URL and given location. """ class Connectedstorageinterface(AbstractStorageInterface): """ Interface for storages that do not store "files" but provide access to data in a different fashion. """ def connect(self, url, location): """ Return a connection string for a remote dataset residing on a storage specified by the given `url` and `location`. """ class Packageinterface(object): @property def name(self): """Name of the package implementation.""" def extract(self, package_filename, location, path): """ Extract a file specified by the `location` from the package to the given `path` specification. """ def list_contents(self, package_filename, location): """ Return a list of item locations under the specified location in the given package. """
# -*- coding: utf-8 -*- """ Created on Sat Nov 3 11:46:11 2018 @author: Simon """ def bubble_sort_reverse(array): bubble_sort(array, lambda x, y: x < y) def bubble_sort(array, comparator=lambda x, y: x>y): """ Sorts an array using a bubble sort algorithm Inputs: array: the list to sort comparator: function that compare two elements of the list. Must take 2 arguments and return a boolean """ if len(array) < 2: return try: if type(comparator(array[0], array[1])) != bool: raise ValueError("Function must take two arguments and return a bool") except ValueError as value_error: raise value_error except: raise ValueError("Incorrect comparator") last_index = len(array) - 1 while last_index >= 0: last_change = -1 for i in range(last_index): if array[i] > array[i+1]: array[i], array[i+1] = array[i+1], array[i] last_change = i last_index = last_change
""" Created on Sat Nov 3 11:46:11 2018 @author: Simon """ def bubble_sort_reverse(array): bubble_sort(array, lambda x, y: x < y) def bubble_sort(array, comparator=lambda x, y: x > y): """ Sorts an array using a bubble sort algorithm Inputs: array: the list to sort comparator: function that compare two elements of the list. Must take 2 arguments and return a boolean """ if len(array) < 2: return try: if type(comparator(array[0], array[1])) != bool: raise value_error('Function must take two arguments and return a bool') except ValueError as value_error: raise value_error except: raise value_error('Incorrect comparator') last_index = len(array) - 1 while last_index >= 0: last_change = -1 for i in range(last_index): if array[i] > array[i + 1]: (array[i], array[i + 1]) = (array[i + 1], array[i]) last_change = i last_index = last_change
def calcManhattanDist(x1, y1, x2, y2) -> float: return abs(x1 - x2) + abs(y1 - y2) def main(): print(calcManhattanDist(2, 5, 10, 14)) if __name__ == "__main__": main()
def calc_manhattan_dist(x1, y1, x2, y2) -> float: return abs(x1 - x2) + abs(y1 - y2) def main(): print(calc_manhattan_dist(2, 5, 10, 14)) if __name__ == '__main__': main()
class EventNotFound(Exception): """Handles invalid event type provided to publishers Attributes: event_type --> the event that's invalid message --> additional message to log or print """ def __init__(self, event_type: str, message: str ="invalid event"): self.event_type = event_type self.message = message def __repr__(self): return f"{self.event_type} --> {self.message}" class UnexpectedError(Exception): """Handles unknown errors Attributes: message --> additional message to log or print """ def __init__(self, message: str ="unexpected error occured"): self.message = message def __repr__(self): return {self.message} class NotFoundError(Exception): """Handles not found Attributes: message --> additional message to log or print """ def __init__(self, message: str ="element not found"): self.message = message def __repr__(self): return {self.message}
class Eventnotfound(Exception): """Handles invalid event type provided to publishers Attributes: event_type --> the event that's invalid message --> additional message to log or print """ def __init__(self, event_type: str, message: str='invalid event'): self.event_type = event_type self.message = message def __repr__(self): return f'{self.event_type} --> {self.message}' class Unexpectederror(Exception): """Handles unknown errors Attributes: message --> additional message to log or print """ def __init__(self, message: str='unexpected error occured'): self.message = message def __repr__(self): return {self.message} class Notfounderror(Exception): """Handles not found Attributes: message --> additional message to log or print """ def __init__(self, message: str='element not found'): self.message = message def __repr__(self): return {self.message}
def collatz(n): seq = [n] while n != 1: if n % 2 == 0: n = n / 2 seq.append(int(n)) else: n = 3 * n + 1 seq.append(int(n)) return len(seq) i = 1 seqs = [] dictich = {} while i < 1000000: length = collatz(i) dictich[length] = i seqs.append(length) i += 1 max_len = max(seqs) print(dictich[max_len])
def collatz(n): seq = [n] while n != 1: if n % 2 == 0: n = n / 2 seq.append(int(n)) else: n = 3 * n + 1 seq.append(int(n)) return len(seq) i = 1 seqs = [] dictich = {} while i < 1000000: length = collatz(i) dictich[length] = i seqs.append(length) i += 1 max_len = max(seqs) print(dictich[max_len])
# DEVELOPER NOTES: # Copy this file and rename it to config.py # Replace your client/secret/callback url for each environment below with your specific app details # (Note: local is mainly for BB2 internal developers) ConfigType = { 'production' : { 'bb2BaseUrl' : 'https://api.bluebutton.cms.gov', 'bb2ClientId' : '<client-id>', 'bb2ClientSecret' : '<client-secret>', 'bb2CallbackUrl' : '<only https is supported in prod>', 'port' : 3001, 'host' : 'Unk' }, 'sandbox' : { 'bb2BaseUrl' : 'https://sandbox.bluebutton.cms.gov', 'bb2ClientId' : '<client-id>', 'bb2ClientSecret' : '<client-secret>', 'bb2CallbackUrl' : 'http://localhost:3001/api/bluebutton/callback/', 'port' : 3001, 'host' : 'server' }, 'local' : { 'bb2BaseUrl' : 'https://sandbox.bluebutton.cms.gov', 'bb2ClientId' : '<client-id>', 'bb2ClientSecret' : '<client-secret>', 'bb2CallbackUrl' : 'http://localhost:3001/api/bluebutton/callback/', 'port' : 3001, 'host' : 'server' } }
config_type = {'production': {'bb2BaseUrl': 'https://api.bluebutton.cms.gov', 'bb2ClientId': '<client-id>', 'bb2ClientSecret': '<client-secret>', 'bb2CallbackUrl': '<only https is supported in prod>', 'port': 3001, 'host': 'Unk'}, 'sandbox': {'bb2BaseUrl': 'https://sandbox.bluebutton.cms.gov', 'bb2ClientId': '<client-id>', 'bb2ClientSecret': '<client-secret>', 'bb2CallbackUrl': 'http://localhost:3001/api/bluebutton/callback/', 'port': 3001, 'host': 'server'}, 'local': {'bb2BaseUrl': 'https://sandbox.bluebutton.cms.gov', 'bb2ClientId': '<client-id>', 'bb2ClientSecret': '<client-secret>', 'bb2CallbackUrl': 'http://localhost:3001/api/bluebutton/callback/', 'port': 3001, 'host': 'server'}}
class prm: std = dict( field_color="mediumseagreen", field_markings_color="White", title_color="White", ) pc = dict( field_color="White", field_markings_color="black", title_color="black" ) field_width = 1000 field_height = 700 field_dim = (106.0, 68.0) marker_border_color = "white" marker_border_size = 2 blocked_marker_color = "white" goal_marker_color = "#EE3124" home_color = "#AD0B05" away_color = "#0570B0" player_marker_size = 20 # symbols sym_header = "circle" sym_header_off_target = "circle-open" sym_footer = "triangle-up" sym_footer_off_target = "triangle-up-open" sym_corners = "square" # sizes -> corners [10] fks [15] chlnge/recov/turnov [18] rest [20] player_marker_args = { "Home": dict( mode="markers+text", marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=home_color, marker_line_width=marker_border_size, textfont=dict(size=11, color="white"), ), "Away": dict( mode="markers+text", marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=away_color, marker_line_width=marker_border_size, textfont=dict(size=11, color="white"), ), } event_player_marker_args = { "Home": dict( mode="lines+markers+text", marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=home_color, marker_line_width=marker_border_size, line_color=home_color, textfont=dict(size=11, color="white"), ), "Away": dict( mode="lines+markers+text", marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=away_color, marker_line_width=marker_border_size, line_color=away_color, textfont=dict(size=11, color="white"), ), }
class Prm: std = dict(field_color='mediumseagreen', field_markings_color='White', title_color='White') pc = dict(field_color='White', field_markings_color='black', title_color='black') field_width = 1000 field_height = 700 field_dim = (106.0, 68.0) marker_border_color = 'white' marker_border_size = 2 blocked_marker_color = 'white' goal_marker_color = '#EE3124' home_color = '#AD0B05' away_color = '#0570B0' player_marker_size = 20 sym_header = 'circle' sym_header_off_target = 'circle-open' sym_footer = 'triangle-up' sym_footer_off_target = 'triangle-up-open' sym_corners = 'square' player_marker_args = {'Home': dict(mode='markers+text', marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=home_color, marker_line_width=marker_border_size, textfont=dict(size=11, color='white')), 'Away': dict(mode='markers+text', marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=away_color, marker_line_width=marker_border_size, textfont=dict(size=11, color='white'))} event_player_marker_args = {'Home': dict(mode='lines+markers+text', marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=home_color, marker_line_width=marker_border_size, line_color=home_color, textfont=dict(size=11, color='white')), 'Away': dict(mode='lines+markers+text', marker_size=player_marker_size, marker_line_color=marker_border_color, marker_color=away_color, marker_line_width=marker_border_size, line_color=away_color, textfont=dict(size=11, color='white'))}
assert gradiente('rojo', 'azul') == gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', inicio='centro') == gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', inicio='izquierda') == gradiente('rojo', 'azul', inicio='izquierda') assert gradiente('rojo', 'azul') != gradiente('rojo', 'azul', inicio='izquierda') assert gradiente('rojo', 'azul', inicio='izquierda') != gradiente('rojo', 'azul') assert gradiente('rojo', 'verde') != gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', 'naranja') != gradiente('rojo', 'azul') assert rgb(0, 0, 0) == rgb(0, 0, 0) assert rgb(1, 0, 0) != rgb(0, 0, 0) assert rgb(0, 1, 0) != rgb(0, 0, 0) assert rgb(0, 0, 1) != rgb(0, 0, 0) assert gradiente('rojo', rgb(0, 0, 5)) == gradiente('rojo', rgb(0, 0, 5)) assert gradiente('rojo', rgb(0, 0, 5)) != gradiente('rojo', rgb(0, 5, 0)) assert gradiente('rojo', rgb(0, 0, 5)) != gradiente('rojo', 'verde') assert gradiente('rojo', 'verde') != gradiente('rojo', rgb(0, 0, 5)) rect = Rect(50, 50, 150, 150, relleno=gradiente('naranja', 'rojo')) assert rect.relleno == gradiente('naranja', 'rojo')
assert gradiente('rojo', 'azul') == gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', inicio='centro') == gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', inicio='izquierda') == gradiente('rojo', 'azul', inicio='izquierda') assert gradiente('rojo', 'azul') != gradiente('rojo', 'azul', inicio='izquierda') assert gradiente('rojo', 'azul', inicio='izquierda') != gradiente('rojo', 'azul') assert gradiente('rojo', 'verde') != gradiente('rojo', 'azul') assert gradiente('rojo', 'azul', 'naranja') != gradiente('rojo', 'azul') assert rgb(0, 0, 0) == rgb(0, 0, 0) assert rgb(1, 0, 0) != rgb(0, 0, 0) assert rgb(0, 1, 0) != rgb(0, 0, 0) assert rgb(0, 0, 1) != rgb(0, 0, 0) assert gradiente('rojo', rgb(0, 0, 5)) == gradiente('rojo', rgb(0, 0, 5)) assert gradiente('rojo', rgb(0, 0, 5)) != gradiente('rojo', rgb(0, 5, 0)) assert gradiente('rojo', rgb(0, 0, 5)) != gradiente('rojo', 'verde') assert gradiente('rojo', 'verde') != gradiente('rojo', rgb(0, 0, 5)) rect = rect(50, 50, 150, 150, relleno=gradiente('naranja', 'rojo')) assert rect.relleno == gradiente('naranja', 'rojo')
def foo(y): x = 5 x / y def bar(): foo(0) bar()
def foo(y): x = 5 x / y def bar(): foo(0) bar()
class Error(Exception): def __init__(self, message, error): self.message = message self.error = error @property def code(self): return 503 @property def name(self): return self.__class__.__name__ @property def description(self): return self.message class OperatorImportError(Error): pass class OperatorRegistError(Error): pass class PipelineCheckError(Error): pass class Insert2SQLError(Error): pass class QueryFromSQLError(Error): pass class DeleteFromSQLError(Error): pass class UpdateFromSQLError(Error): pass class NotExistError(Error): @property def code(self): return 404 class MilvusError(Error): pass class S3Error(Error): pass class DecodeError(Error): @property def code(self): return 400 class DownloadFileError(Error): @property def code(self): return 598 class PipelineIlegalError(Error): @property def code(self): return 400 class RPCExecError(Error): @property def code(self): return 503 class RequestError(Error): @property def code(self): return 400 class NoneVectorError(Error): @property def code(self): return 400
class Error(Exception): def __init__(self, message, error): self.message = message self.error = error @property def code(self): return 503 @property def name(self): return self.__class__.__name__ @property def description(self): return self.message class Operatorimporterror(Error): pass class Operatorregisterror(Error): pass class Pipelinecheckerror(Error): pass class Insert2Sqlerror(Error): pass class Queryfromsqlerror(Error): pass class Deletefromsqlerror(Error): pass class Updatefromsqlerror(Error): pass class Notexisterror(Error): @property def code(self): return 404 class Milvuserror(Error): pass class S3Error(Error): pass class Decodeerror(Error): @property def code(self): return 400 class Downloadfileerror(Error): @property def code(self): return 598 class Pipelineilegalerror(Error): @property def code(self): return 400 class Rpcexecerror(Error): @property def code(self): return 503 class Requesterror(Error): @property def code(self): return 400 class Nonevectorerror(Error): @property def code(self): return 400
def sixIntegers(): print("Please enter 6 integers:") i = 0 even = 0 odd = 0 while i < 6: try: six = input(">") six = int(six) i += 1 if (six % 2) == 0: even = even + six elif (six % 2) == 1: odd = odd + six except ValueError: print("Try again, not a valid Integer!") return even, odd def printResults(even, odd): print("\n\nEven sum:", even) print("Odd sum:", odd, "\n") def calculator(): even, odd = sixIntegers() printResults(even, odd) repeatCalc() def repeatCalc(): repeat = input("Do you wish to return this program? (y/n) \n>") if repeat.upper() == "Y": print("") calculator() elif repeat.upper() == "N": print("\nDone!") quit() else: print("Please enter y or n.") repeatCalc() calculator()
def six_integers(): print('Please enter 6 integers:') i = 0 even = 0 odd = 0 while i < 6: try: six = input('>') six = int(six) i += 1 if six % 2 == 0: even = even + six elif six % 2 == 1: odd = odd + six except ValueError: print('Try again, not a valid Integer!') return (even, odd) def print_results(even, odd): print('\n\nEven sum:', even) print('Odd sum:', odd, '\n') def calculator(): (even, odd) = six_integers() print_results(even, odd) repeat_calc() def repeat_calc(): repeat = input('Do you wish to return this program? (y/n) \n>') if repeat.upper() == 'Y': print('') calculator() elif repeat.upper() == 'N': print('\nDone!') quit() else: print('Please enter y or n.') repeat_calc() calculator()
class YLBaseServer(object): def name(self): pass def handle(self, args): pass def startup(self, *args): pass def stop(self, *args): pass
class Ylbaseserver(object): def name(self): pass def handle(self, args): pass def startup(self, *args): pass def stop(self, *args): pass
""" Status codes for Andor cameras. """ # Status code -> status message ANDOR_CODES = { 20001: "DRV_ERROR_CODES", 20002: "DRV_SUCCESS", 20003: "DRV_VXDNOTINSTALLED", 20004: "DRV_ERROR_SCAN", 20005: "DRV_ERROR_CHECK_SUM", 20006: "DRV_ERROR_FILELOAD", 20007: "DRV_UNKNOWN_FUNCTION", 20008: "DRV_ERROR_VXD_INIT", 20009: "DRV_ERROR_ADDRESS", 20010: "DRV_ERROR_PAGELOCK", 20011: "DRV_ERROR_PAGE_UNLOCK", 20012: "DRV_ERROR_BOARDTEST", 20013: "DRV_ERROR_ACK", 20014: "DRV_ERROR_UP_FIFO", 20015: "DRV_ERROR_PATTERN", 20017: "DRV_ACQUISITION_ERRORS", 20018: "DRV_ACQ_BUFFER", 20019: "DRV_ACQ_DOWNFIFO_FULL", 20020: "DRV_PROC_UNKNOWN_INSTRUCTION", 20021: "DRV_ILLEGAL_OP_CODE", 20022: "DRV_KINETIC_TIME_NOT_MET", 20022: "DRV_KINETIC_TIME_NOT_MET", 20023: "DRV_ACCUM_TIME_NOT_MET", 20024: "DRV_NO_NEW_DATA", 20026: "DRV_SPOOLERROR", 20027: "DRV_SPOOLSETUPERROR", 20033: "DRV_TEMPERATURE_CODES", 20034: "DRV_TEMPERATURE_OFF", 20035: "DRV_TEMP_NOT_STABILIZED", 20036: "DRV_TEMPERATURE_STABILIZED", 20037: "DRV_TEMPERATURE_NOT_REACHED", 20038: "DRV_TEMPERATURE_OUT_RANGE", 20039: "DRV_TEMPERATURE_NOT_SUPPORTED", 20040: "DRV_TEMPERATURE_DRIFT", 20049: "DRV_GENERAL_ERRORS", 20050: "DRV_INVALID_AUX", 20051: "DRV_COF_NOTLOADED", 20052: "DRV_FPGAPROG", 20053: "DRV_FLEXERROR", 20054: "DRV_GPIBERROR", 20064: "DRV_DATATYPE", 20065: "DRV_DRIVER_ERRORS", 20066: "DRV_P1INVALID", 20067: "DRV_P2INVALID", 20068: "DRV_P3INVALID", 20069: "DRV_P4INVALID", 20070: "DRV_INIERROR", 20071: "DRV_COFERROR", 20072: "DRV_ACQUIRING", 20073: "DRV_IDLE", 20074: "DRV_TEMPCYCLE", 20075: "DRV_NOT_INITIALIZED", 20076: "DRV_P5INVALID", 20077: "DRV_P6INVALID", 20078: "DRV_INVALID_MODE", 20079: "DRV_INVALID_FILTER", 20080: "DRV_I2CERRORS", 20081: "DRV_DRV_I2CDEVNOTFOUND", 20082: "DRV_I2CTIMEOUT", 20083: "DRV_P7INVALID", 20089: "DRV_USBERROR", 20090: "DRV_IOCERROR", 20091: "DRV_VRMVERSIONERROR", 20093: "DRV_USB_INTERRUPT_ENDPOINT_ERROR", 20094: "DRV_RANDOM_TRACK_ERROR", 20095: "DRV_INVALID_TRIGGER_MODE", 20096: "DRV_LOAD_FIRMWARE_ERROR", 20097: "DRV_DIVIDE_BY_ZERO_ERROR", 20098: "DRV_INVALID_RINGEXPOSURES", 20099: "DRV_BINNING_ERROR", 20990: "DRV_ERROR_NOCAMERA", 20991: "DRV_NOT_SUPPORTED", 20992: "DRV_NOT_AVAILABLE", 20115: "DRV_ERROR_MAP", 20116: "DRV_ERROR_UNMAP", 20117: "DRV_ERROR_MDL", 20118: "DRV_ERROR_UNMDL", 20119: "DRV_ERROR_BUFFSIZE", 20121: "DRV_ERROR_NOHANDLE", 20130: "DRV_GATING_NOT_AVAILABLE", 20131: "DRV_FPGA_VOLTAGE_ERROR", 20099: "DRV_BINNING_ERROR", 20100: "DRV_INVALID_AMPLIFIER", 20101: "DRV_INVALID_COUNTCONVERT_MODE"} # Status message -> status code ANDOR_STATUS = { "DRV_LOAD_FIRMWARE_ERROR": 20096, "DRV_DIVIDE_BY_ZERO_ERROR": 20097, "DRV_INVALID_RINGEXPOSURES": 20098, "DRV_BINNING_ERROR": 20099, "DRV_INVALID_AMPLIFIER": 20100, "DRV_ERROR_UNMDL": 20118, "DRV_ERROR_MAP": 20115, "DRV_ERROR_UNMAP": 20116, "DRV_ERROR_MDL": 20117, "DRV_NOT_AVAILABLE": 20992, "DRV_ERROR_BUFFSIZE": 20119, "DRV_ERROR_NOHANDLE": 20121, "DRV_INVALID_COUNTCONVERT_MODE": 20101, "DRV_ERROR_CODES": 20001, "DRV_SUCCESS": 20002, "DRV_VXDNOTINSTALLED": 20003, "DRV_ERROR_SCAN": 20004, "DRV_ERROR_CHECK_SUM": 20005, "DRV_ERROR_FILELOAD": 20006, "DRV_UNKNOWN_FUNCTION": 20007, "DRV_ERROR_VXD_INIT": 20008, "DRV_ERROR_ADDRESS": 20009, "DRV_ERROR_PAGELOCK": 20010, "DRV_ERROR_PAGE_UNLOCK": 20011, "DRV_ERROR_BOARDTEST": 20012, "DRV_ERROR_ACK": 20013, "DRV_ERROR_UP_FIFO": 20014, "DRV_ERROR_PATTERN": 20015, "DRV_ACQUISITION_ERRORS": 20017, "DRV_ACQ_BUFFER": 20018, "DRV_ACQ_DOWNFIFO_FULL": 20019, "DRV_PROC_UNKNOWN_INSTRUCTION": 20020, "DRV_ILLEGAL_OP_CODE": 20021, "DRV_KINETIC_TIME_NOT_MET": 20022, "DRV_ACCUM_TIME_NOT_MET": 20023, "DRV_NO_NEW_DATA": 20024, "DRV_SPOOLERROR": 20026, "DRV_SPOOLSETUPERROR": 20027, "DRV_TEMPERATURE_CODES": 20033, "DRV_TEMPERATURE_OFF": 20034, "DRV_TEMP_NOT_STABILIZED": 20035, "DRV_TEMPERATURE_STABILIZED": 20036, "DRV_TEMPERATURE_NOT_REACHED": 20037, "DRV_TEMPERATURE_OUT_RANGE": 20038, "DRV_TEMPERATURE_NOT_SUPPORTED": 20039, "DRV_TEMPERATURE_DRIFT": 20040, "DRV_FPGA_VOLTAGE_ERROR": 20131, "DRV_GATING_NOT_AVAILABLE": 20130, "DRV_GENERAL_ERRORS": 20049, "DRV_INVALID_AUX": 20050, "DRV_COF_NOTLOADED": 20051, "DRV_FPGAPROG": 20052, "DRV_FLEXERROR": 20053, "DRV_GPIBERROR": 20054, "DRV_DATATYPE": 20064, "DRV_DRIVER_ERRORS": 20065, "DRV_P1INVALID": 20066, "DRV_P2INVALID": 20067, "DRV_P3INVALID": 20068, "DRV_P4INVALID": 20069, "DRV_INIERROR": 20070, "DRV_COFERROR": 20071, "DRV_ACQUIRING": 20072, "DRV_IDLE": 20073, "DRV_TEMPCYCLE": 20074, "DRV_NOT_INITIALIZED": 20075, "DRV_P5INVALID": 20076, "DRV_P6INVALID": 20077, "DRV_INVALID_MODE": 20078, "DRV_INVALID_FILTER": 20079, "DRV_I2CERRORS": 20080, "DRV_DRV_I2CDEVNOTFOUND": 20081, "DRV_I2CTIMEOUT": 20082, "DRV_P7INVALID": 20083, "DRV_ERROR_NOCAMERA": 20990, "DRV_NOT_SUPPORTED": 20991, "DRV_USBERROR": 20089, "DRV_IOCERROR": 20090, "DRV_VRMVERSIONERROR": 20091, "DRV_USB_INTERRUPT_ENDPOINT_ERROR": 20093, "DRV_RANDOM_TRACK_ERROR": 20094, "DRV_INVALID_TRIGGER_MODE": 20095}
""" Status codes for Andor cameras. """ andor_codes = {20001: 'DRV_ERROR_CODES', 20002: 'DRV_SUCCESS', 20003: 'DRV_VXDNOTINSTALLED', 20004: 'DRV_ERROR_SCAN', 20005: 'DRV_ERROR_CHECK_SUM', 20006: 'DRV_ERROR_FILELOAD', 20007: 'DRV_UNKNOWN_FUNCTION', 20008: 'DRV_ERROR_VXD_INIT', 20009: 'DRV_ERROR_ADDRESS', 20010: 'DRV_ERROR_PAGELOCK', 20011: 'DRV_ERROR_PAGE_UNLOCK', 20012: 'DRV_ERROR_BOARDTEST', 20013: 'DRV_ERROR_ACK', 20014: 'DRV_ERROR_UP_FIFO', 20015: 'DRV_ERROR_PATTERN', 20017: 'DRV_ACQUISITION_ERRORS', 20018: 'DRV_ACQ_BUFFER', 20019: 'DRV_ACQ_DOWNFIFO_FULL', 20020: 'DRV_PROC_UNKNOWN_INSTRUCTION', 20021: 'DRV_ILLEGAL_OP_CODE', 20022: 'DRV_KINETIC_TIME_NOT_MET', 20022: 'DRV_KINETIC_TIME_NOT_MET', 20023: 'DRV_ACCUM_TIME_NOT_MET', 20024: 'DRV_NO_NEW_DATA', 20026: 'DRV_SPOOLERROR', 20027: 'DRV_SPOOLSETUPERROR', 20033: 'DRV_TEMPERATURE_CODES', 20034: 'DRV_TEMPERATURE_OFF', 20035: 'DRV_TEMP_NOT_STABILIZED', 20036: 'DRV_TEMPERATURE_STABILIZED', 20037: 'DRV_TEMPERATURE_NOT_REACHED', 20038: 'DRV_TEMPERATURE_OUT_RANGE', 20039: 'DRV_TEMPERATURE_NOT_SUPPORTED', 20040: 'DRV_TEMPERATURE_DRIFT', 20049: 'DRV_GENERAL_ERRORS', 20050: 'DRV_INVALID_AUX', 20051: 'DRV_COF_NOTLOADED', 20052: 'DRV_FPGAPROG', 20053: 'DRV_FLEXERROR', 20054: 'DRV_GPIBERROR', 20064: 'DRV_DATATYPE', 20065: 'DRV_DRIVER_ERRORS', 20066: 'DRV_P1INVALID', 20067: 'DRV_P2INVALID', 20068: 'DRV_P3INVALID', 20069: 'DRV_P4INVALID', 20070: 'DRV_INIERROR', 20071: 'DRV_COFERROR', 20072: 'DRV_ACQUIRING', 20073: 'DRV_IDLE', 20074: 'DRV_TEMPCYCLE', 20075: 'DRV_NOT_INITIALIZED', 20076: 'DRV_P5INVALID', 20077: 'DRV_P6INVALID', 20078: 'DRV_INVALID_MODE', 20079: 'DRV_INVALID_FILTER', 20080: 'DRV_I2CERRORS', 20081: 'DRV_DRV_I2CDEVNOTFOUND', 20082: 'DRV_I2CTIMEOUT', 20083: 'DRV_P7INVALID', 20089: 'DRV_USBERROR', 20090: 'DRV_IOCERROR', 20091: 'DRV_VRMVERSIONERROR', 20093: 'DRV_USB_INTERRUPT_ENDPOINT_ERROR', 20094: 'DRV_RANDOM_TRACK_ERROR', 20095: 'DRV_INVALID_TRIGGER_MODE', 20096: 'DRV_LOAD_FIRMWARE_ERROR', 20097: 'DRV_DIVIDE_BY_ZERO_ERROR', 20098: 'DRV_INVALID_RINGEXPOSURES', 20099: 'DRV_BINNING_ERROR', 20990: 'DRV_ERROR_NOCAMERA', 20991: 'DRV_NOT_SUPPORTED', 20992: 'DRV_NOT_AVAILABLE', 20115: 'DRV_ERROR_MAP', 20116: 'DRV_ERROR_UNMAP', 20117: 'DRV_ERROR_MDL', 20118: 'DRV_ERROR_UNMDL', 20119: 'DRV_ERROR_BUFFSIZE', 20121: 'DRV_ERROR_NOHANDLE', 20130: 'DRV_GATING_NOT_AVAILABLE', 20131: 'DRV_FPGA_VOLTAGE_ERROR', 20099: 'DRV_BINNING_ERROR', 20100: 'DRV_INVALID_AMPLIFIER', 20101: 'DRV_INVALID_COUNTCONVERT_MODE'} andor_status = {'DRV_LOAD_FIRMWARE_ERROR': 20096, 'DRV_DIVIDE_BY_ZERO_ERROR': 20097, 'DRV_INVALID_RINGEXPOSURES': 20098, 'DRV_BINNING_ERROR': 20099, 'DRV_INVALID_AMPLIFIER': 20100, 'DRV_ERROR_UNMDL': 20118, 'DRV_ERROR_MAP': 20115, 'DRV_ERROR_UNMAP': 20116, 'DRV_ERROR_MDL': 20117, 'DRV_NOT_AVAILABLE': 20992, 'DRV_ERROR_BUFFSIZE': 20119, 'DRV_ERROR_NOHANDLE': 20121, 'DRV_INVALID_COUNTCONVERT_MODE': 20101, 'DRV_ERROR_CODES': 20001, 'DRV_SUCCESS': 20002, 'DRV_VXDNOTINSTALLED': 20003, 'DRV_ERROR_SCAN': 20004, 'DRV_ERROR_CHECK_SUM': 20005, 'DRV_ERROR_FILELOAD': 20006, 'DRV_UNKNOWN_FUNCTION': 20007, 'DRV_ERROR_VXD_INIT': 20008, 'DRV_ERROR_ADDRESS': 20009, 'DRV_ERROR_PAGELOCK': 20010, 'DRV_ERROR_PAGE_UNLOCK': 20011, 'DRV_ERROR_BOARDTEST': 20012, 'DRV_ERROR_ACK': 20013, 'DRV_ERROR_UP_FIFO': 20014, 'DRV_ERROR_PATTERN': 20015, 'DRV_ACQUISITION_ERRORS': 20017, 'DRV_ACQ_BUFFER': 20018, 'DRV_ACQ_DOWNFIFO_FULL': 20019, 'DRV_PROC_UNKNOWN_INSTRUCTION': 20020, 'DRV_ILLEGAL_OP_CODE': 20021, 'DRV_KINETIC_TIME_NOT_MET': 20022, 'DRV_ACCUM_TIME_NOT_MET': 20023, 'DRV_NO_NEW_DATA': 20024, 'DRV_SPOOLERROR': 20026, 'DRV_SPOOLSETUPERROR': 20027, 'DRV_TEMPERATURE_CODES': 20033, 'DRV_TEMPERATURE_OFF': 20034, 'DRV_TEMP_NOT_STABILIZED': 20035, 'DRV_TEMPERATURE_STABILIZED': 20036, 'DRV_TEMPERATURE_NOT_REACHED': 20037, 'DRV_TEMPERATURE_OUT_RANGE': 20038, 'DRV_TEMPERATURE_NOT_SUPPORTED': 20039, 'DRV_TEMPERATURE_DRIFT': 20040, 'DRV_FPGA_VOLTAGE_ERROR': 20131, 'DRV_GATING_NOT_AVAILABLE': 20130, 'DRV_GENERAL_ERRORS': 20049, 'DRV_INVALID_AUX': 20050, 'DRV_COF_NOTLOADED': 20051, 'DRV_FPGAPROG': 20052, 'DRV_FLEXERROR': 20053, 'DRV_GPIBERROR': 20054, 'DRV_DATATYPE': 20064, 'DRV_DRIVER_ERRORS': 20065, 'DRV_P1INVALID': 20066, 'DRV_P2INVALID': 20067, 'DRV_P3INVALID': 20068, 'DRV_P4INVALID': 20069, 'DRV_INIERROR': 20070, 'DRV_COFERROR': 20071, 'DRV_ACQUIRING': 20072, 'DRV_IDLE': 20073, 'DRV_TEMPCYCLE': 20074, 'DRV_NOT_INITIALIZED': 20075, 'DRV_P5INVALID': 20076, 'DRV_P6INVALID': 20077, 'DRV_INVALID_MODE': 20078, 'DRV_INVALID_FILTER': 20079, 'DRV_I2CERRORS': 20080, 'DRV_DRV_I2CDEVNOTFOUND': 20081, 'DRV_I2CTIMEOUT': 20082, 'DRV_P7INVALID': 20083, 'DRV_ERROR_NOCAMERA': 20990, 'DRV_NOT_SUPPORTED': 20991, 'DRV_USBERROR': 20089, 'DRV_IOCERROR': 20090, 'DRV_VRMVERSIONERROR': 20091, 'DRV_USB_INTERRUPT_ENDPOINT_ERROR': 20093, 'DRV_RANDOM_TRACK_ERROR': 20094, 'DRV_INVALID_TRIGGER_MODE': 20095}
#!/usr/local/bin/python3 def checkDriverAge(age=0): # if not age: # age = int(input('What is your age?: ')) if int(age) < 18: print('Sorry, you are too young to drive this car ' 'Powering off!') elif int(age) > 18: print('Powering On. Enjoy the ride!') elif int(age) == 18: print('Congratulations on your first year of' 'driving. Enjoy the ride') return age if __name__ == "__main__": age = checkDriverAge(19) print(f'You\'re age is {age}')
def check_driver_age(age=0): if int(age) < 18: print('Sorry, you are too young to drive this car Powering off!') elif int(age) > 18: print('Powering On. Enjoy the ride!') elif int(age) == 18: print('Congratulations on your first year ofdriving. Enjoy the ride') return age if __name__ == '__main__': age = check_driver_age(19) print(f"You're age is {age}")
#!/usr/bin/env python3 #encoding=utf-8 #--------------------------------------- # Usage: python3 5-tracer1.py # Description: Recall from Chapter 30 that the __call__ operator overloading # method implements a function-call interface for class instances. # The following code uses this to define a call proxy class that # saves the decorated function in the instance and catches calls # to the original name. Because this is a class, it also has state # information -- a counter of calls made #--------------------------------------- class Tracer: def __init__(self, func): # Remember original, init counter self.calls = 0 self.func = func def __call__(self, *args): # On later calls: add logic, run original self.calls += 1 print('call %s to %s' % (self.calls, self.func.__name__)) return self.func(*args) if __name__ == '__main__': ''' Because the spam function is run through the tracer decorator, when the original spam name is called it actually triggers the __call__ method in the class. This method counts and logs the call, and then dispatches it to the original wrapped function. Note how the *name argument syntax is used to pack and unpack the passed-in arguments; because of this, this decorator can be used to wrap any function with any number of positional arguments. ''' @Tracer # same as spam = Tracer(spam) def spam(a, b, c): # Wrap spam in a decorator object return a + b + c print(spam(1, 2, 3)) # really call the Tracer wrapper object print(spam('a', 'b', 'c')) # Invokes __call__ in class ''' results: Chapter32.AdvancedClassTopics]# python3 5-tracer1.py call 1 to spam 6 call 2 to spam abc '''
class Tracer: def __init__(self, func): self.calls = 0 self.func = func def __call__(self, *args): self.calls += 1 print('call %s to %s' % (self.calls, self.func.__name__)) return self.func(*args) if __name__ == '__main__': '\n Because the spam function is run through the tracer decorator, when the original\n spam name is called it actually triggers the __call__ method in the class. This\n method counts and logs the call, and then dispatches it to the original wrapped \n function. Note how the *name argument syntax is used to pack and unpack the passed-in\n arguments; because of this, this decorator can be used to wrap any function with\n any number of positional arguments.\n ' @Tracer def spam(a, b, c): return a + b + c print(spam(1, 2, 3)) print(spam('a', 'b', 'c')) '\n results:\n Chapter32.AdvancedClassTopics]# python3 5-tracer1.py\n call 1 to spam\n 6\n call 2 to spam\n abc\n '
class Artist: def __init__(self, name = 'None', birthYear = 0, deathYear = 0): self.name = name self.BirthYear = birthYear self.deathYear = deathYear def printInfo(self): if self.deathYear == str('alive'): print('Artist: {}, born {}'.format(self.name, self.BirthYear)) else: print('Artist: {} ({}-{})'.format(self.name, self.BirthYear, self.deathYear))
class Artist: def __init__(self, name='None', birthYear=0, deathYear=0): self.name = name self.BirthYear = birthYear self.deathYear = deathYear def print_info(self): if self.deathYear == str('alive'): print('Artist: {}, born {}'.format(self.name, self.BirthYear)) else: print('Artist: {} ({}-{})'.format(self.name, self.BirthYear, self.deathYear))
alert_failure_count = 0 MAX_TEMP_ALLOWED_IN_CELCIUS = 200 def network_alert_stub(celcius): print(f'ALERT: Temperature is {celcius} celcius') if(celcius <= MAX_TEMP_ALLOWED_IN_CELCIUS): # Return 200 for ok return 200 else: # Return 500 for not-ok return 500 def network_alert_real(celcius): # Dummy function to simulate real network functionality return 200 def farenheit2celcius(farenheit): celcius = (farenheit - 32) * 5 / 9 return celcius def check_temp_in_farenheit(temp_farenheit, alertFunction=network_alert_real): # Complain, this function ask for celcius but the parameter is in Farenheit celcius = farenheit2celcius(temp_farenheit) returnCode = alertFunction(celcius) if returnCode != 200: # non-ok response is not an error! Issues happen in life! # let us keep a count of failures to report # However, this code doesn't count failures! # Add a test below to catch this bug. Alter the stub above, if needed. global alert_failure_count alert_failure_count += 1 # Error, this lines adds 0, must add 1. # Test network_alert_stub output = network_alert_stub(200) expectedOutput = 200 assert(output==expectedOutput) output = network_alert_stub(0) expectedOutput = 200 assert(output==expectedOutput) output = network_alert_stub(400.2) expectedOutput = 500 assert(output==expectedOutput) # Test farenheit2celcius() output = farenheit2celcius(212) expectedOutput = 100 assert(output == expectedOutput) # Main funcionality Test # insert 3 valid temperatures check_temp_in_farenheit(250.5, alertFunction=network_alert_stub) check_temp_in_farenheit(300.6, alertFunction=network_alert_stub) check_temp_in_farenheit(303.6, alertFunction=network_alert_stub) # insert 3 invalid temperatures check_temp_in_farenheit(400.6,alertFunction=network_alert_stub) check_temp_in_farenheit(401.6, alertFunction=network_alert_stub) check_temp_in_farenheit(560.6, alertFunction=network_alert_stub) print(f'{alert_failure_count} alerts failed.') assert(alert_failure_count == 3) print('All is well (maybe!)')
alert_failure_count = 0 max_temp_allowed_in_celcius = 200 def network_alert_stub(celcius): print(f'ALERT: Temperature is {celcius} celcius') if celcius <= MAX_TEMP_ALLOWED_IN_CELCIUS: return 200 else: return 500 def network_alert_real(celcius): return 200 def farenheit2celcius(farenheit): celcius = (farenheit - 32) * 5 / 9 return celcius def check_temp_in_farenheit(temp_farenheit, alertFunction=network_alert_real): celcius = farenheit2celcius(temp_farenheit) return_code = alert_function(celcius) if returnCode != 200: global alert_failure_count alert_failure_count += 1 output = network_alert_stub(200) expected_output = 200 assert output == expectedOutput output = network_alert_stub(0) expected_output = 200 assert output == expectedOutput output = network_alert_stub(400.2) expected_output = 500 assert output == expectedOutput output = farenheit2celcius(212) expected_output = 100 assert output == expectedOutput check_temp_in_farenheit(250.5, alertFunction=network_alert_stub) check_temp_in_farenheit(300.6, alertFunction=network_alert_stub) check_temp_in_farenheit(303.6, alertFunction=network_alert_stub) check_temp_in_farenheit(400.6, alertFunction=network_alert_stub) check_temp_in_farenheit(401.6, alertFunction=network_alert_stub) check_temp_in_farenheit(560.6, alertFunction=network_alert_stub) print(f'{alert_failure_count} alerts failed.') assert alert_failure_count == 3 print('All is well (maybe!)')
''' Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected element by 1 or decrementing a selected element by 1. You may assume the array's length is at most 10,000. Example: Input: [1,2,3] Output: 2 Explanation: Only two moves are needed (remember each move increments or decrements one element): [1,2,3] => [2,2,3] => [2,2,2] ''' class Solution(object): def minMoves2(self, nums): """ :type nums: List[int] :rtype: int """ nums.sort() median = nums[len(nums) // 2] res = 0 for x in nums: res += abs(x - median) return res
""" Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected element by 1 or decrementing a selected element by 1. You may assume the array's length is at most 10,000. Example: Input: [1,2,3] Output: 2 Explanation: Only two moves are needed (remember each move increments or decrements one element): [1,2,3] => [2,2,3] => [2,2,2] """ class Solution(object): def min_moves2(self, nums): """ :type nums: List[int] :rtype: int """ nums.sort() median = nums[len(nums) // 2] res = 0 for x in nums: res += abs(x - median) return res
""" .. module:: reaction_message :platform: Unix :synopsis: A module that describes what the reaction should be when receiving a specific message. .. Copyright 2022 EDF .. moduleauthor:: Oscar RODRIGUEZ INFANTE, Tony ZHOU, Trang PHAM, Efflam OLLIVIER .. License:: This source code is licensed under the MIT License. """ class ReactionToIncomingMessage: """This is a class that contains any useful information about an incoming message and the reaction to it. """ def __init__(self): self.__message = None self.__extra_data = None self.__msg_type = None @property def message(self): return self.__message @message.setter def message(self, message): self.__message = message @property def extra_data(self): return self.__extra_data @extra_data.setter def extra_data(self, data): self.__extra_data = data @property def next_state(self): return self.__next_state @property def msg_type(self): return self.__msg_type @msg_type.setter def msg_type(self, type_msg): self.__msg_type = type_msg class SendMessage(ReactionToIncomingMessage): """This is a reaction to a message that tells it to send it. Inherits from ReactionToIncomingMessage. """ def __init__(self): super(SendMessage, self).__init__() class TerminateSession(ReactionToIncomingMessage): """This is a reaction to a message that tells it to end the session. Inherits from ReactionToIncomingMessage. """ pass class ChangeState(ReactionToIncomingMessage): """This is a reaction to a message that tells it to change the state. Inherits from ReactionToIncomingMessage. Not really used, so consider removing it. """ pass class PauseSession(ReactionToIncomingMessage): """This is a reaction to a message that tells it to pause the session. Inherits from ReactionToIncomingMessage. Not really used, to be implemented in later versions. """ pass
""" .. module:: reaction_message :platform: Unix :synopsis: A module that describes what the reaction should be when receiving a specific message. .. Copyright 2022 EDF .. moduleauthor:: Oscar RODRIGUEZ INFANTE, Tony ZHOU, Trang PHAM, Efflam OLLIVIER .. License:: This source code is licensed under the MIT License. """ class Reactiontoincomingmessage: """This is a class that contains any useful information about an incoming message and the reaction to it. """ def __init__(self): self.__message = None self.__extra_data = None self.__msg_type = None @property def message(self): return self.__message @message.setter def message(self, message): self.__message = message @property def extra_data(self): return self.__extra_data @extra_data.setter def extra_data(self, data): self.__extra_data = data @property def next_state(self): return self.__next_state @property def msg_type(self): return self.__msg_type @msg_type.setter def msg_type(self, type_msg): self.__msg_type = type_msg class Sendmessage(ReactionToIncomingMessage): """This is a reaction to a message that tells it to send it. Inherits from ReactionToIncomingMessage. """ def __init__(self): super(SendMessage, self).__init__() class Terminatesession(ReactionToIncomingMessage): """This is a reaction to a message that tells it to end the session. Inherits from ReactionToIncomingMessage. """ pass class Changestate(ReactionToIncomingMessage): """This is a reaction to a message that tells it to change the state. Inherits from ReactionToIncomingMessage. Not really used, so consider removing it. """ pass class Pausesession(ReactionToIncomingMessage): """This is a reaction to a message that tells it to pause the session. Inherits from ReactionToIncomingMessage. Not really used, to be implemented in later versions. """ pass
class Spam(object): def __init__(self, count): self.count = count def __eq__(self, other): return self.count == other.count
class Spam(object): def __init__(self, count): self.count = count def __eq__(self, other): return self.count == other.count
class Node: def __init__(self, data=None, pointer=None): self.data = data self.pointer = pointer def set_data(self, data): self.data = data def get_data(self): return self.data def set_pointer(self, pointer): self.pointer = pointer def get_pointer(self): return self.pointer class LinkedList: def __init__(self, head=None): self.head = head def add_node(self, data): # empty list if self.head == None: self.head = Node(data) else: curr_node = self.head if data < curr_node.get_data(): self.head = Node(data, curr_node) else: while curr_node.get_data() < data and curr_node.get_pointer() != None: prev_node = curr_node curr_node = curr_node.get_pointer() if curr_node.get_data() > data: prev_node.set_pointer(Node(data, curr_node)) elif curr_node.get_data() < data and curr_node.get_pointer() == None: curr_node.set_pointer(Node(data)) else: prev_node.set_pointer(Node(data, curr_node)) def return_list(self): curr_node = self.head linked_list = list() while curr_node.get_pointer() != None: linked_list.append(curr_node.get_data()) curr_node = curr_node.get_pointer() linked_list.append(curr_node.get_data()) return linked_list def search(self, data): curr_node = self.head while curr_node.get_pointer() != None: if curr_node.get_data() == data: return True curr_node = curr_node.get_pointer() if curr_node.get_data() == data: return True return False def delete(self, data): prev_node = curr_node = self.head while curr_node.get_pointer() != None: if curr_node.get_data() == data: if prev_node == curr_node: self.head = curr_node.get_pointer() # curr_node.set_pointer(None) # curr_node.set_data(None) return True else: prev_node.set_pointer(curr_node.get_pointer()) # curr_node.set_pointer(None) # curr_node.set_data(None) return True prev_node = curr_node curr_node = curr_node.get_pointer() if curr_node.get_data() == data: prev_node.set_pointer(None) # curr_node.set_pointer(None) # curr_node.set_data(None) return True return False def size(self): size = 0 curr_node = self.head while curr_node.get_pointer() != None: size += 1 curr_node = curr_node.get_pointer() size += 1 return size if __name__ == '__main__': linked_list = LinkedList() linked_list.add_node(4) linked_list.add_node(2) linked_list.add_node(1) linked_list.add_node(3) linked_list.add_node(8) linked_list.add_node(10) linked_list.add_node(5) linked_list.add_node(9) linked_list.add_node(5) linked_list.add_node(7) linked_list.add_node(7) linked_list.add_node(6) linked_list.add_node(100) linked_list.add_node(1000) linked_list.add_node(150) linked_list.add_node(50) print(linked_list.return_list()) print(linked_list.search(1000)) print(linked_list.delete(1000)) print(linked_list.return_list()) print(linked_list.search(1000)) print(linked_list.delete(50)) print(linked_list.search(50)) print(linked_list.return_list()) linked_list.add_node(50) print(linked_list.return_list()) print(linked_list.size())
class Node: def __init__(self, data=None, pointer=None): self.data = data self.pointer = pointer def set_data(self, data): self.data = data def get_data(self): return self.data def set_pointer(self, pointer): self.pointer = pointer def get_pointer(self): return self.pointer class Linkedlist: def __init__(self, head=None): self.head = head def add_node(self, data): if self.head == None: self.head = node(data) else: curr_node = self.head if data < curr_node.get_data(): self.head = node(data, curr_node) else: while curr_node.get_data() < data and curr_node.get_pointer() != None: prev_node = curr_node curr_node = curr_node.get_pointer() if curr_node.get_data() > data: prev_node.set_pointer(node(data, curr_node)) elif curr_node.get_data() < data and curr_node.get_pointer() == None: curr_node.set_pointer(node(data)) else: prev_node.set_pointer(node(data, curr_node)) def return_list(self): curr_node = self.head linked_list = list() while curr_node.get_pointer() != None: linked_list.append(curr_node.get_data()) curr_node = curr_node.get_pointer() linked_list.append(curr_node.get_data()) return linked_list def search(self, data): curr_node = self.head while curr_node.get_pointer() != None: if curr_node.get_data() == data: return True curr_node = curr_node.get_pointer() if curr_node.get_data() == data: return True return False def delete(self, data): prev_node = curr_node = self.head while curr_node.get_pointer() != None: if curr_node.get_data() == data: if prev_node == curr_node: self.head = curr_node.get_pointer() return True else: prev_node.set_pointer(curr_node.get_pointer()) return True prev_node = curr_node curr_node = curr_node.get_pointer() if curr_node.get_data() == data: prev_node.set_pointer(None) return True return False def size(self): size = 0 curr_node = self.head while curr_node.get_pointer() != None: size += 1 curr_node = curr_node.get_pointer() size += 1 return size if __name__ == '__main__': linked_list = linked_list() linked_list.add_node(4) linked_list.add_node(2) linked_list.add_node(1) linked_list.add_node(3) linked_list.add_node(8) linked_list.add_node(10) linked_list.add_node(5) linked_list.add_node(9) linked_list.add_node(5) linked_list.add_node(7) linked_list.add_node(7) linked_list.add_node(6) linked_list.add_node(100) linked_list.add_node(1000) linked_list.add_node(150) linked_list.add_node(50) print(linked_list.return_list()) print(linked_list.search(1000)) print(linked_list.delete(1000)) print(linked_list.return_list()) print(linked_list.search(1000)) print(linked_list.delete(50)) print(linked_list.search(50)) print(linked_list.return_list()) linked_list.add_node(50) print(linked_list.return_list()) print(linked_list.size())
how_many_snakes = 1 snake_string = """ Bem-vindo ao Python3! ____ / . .\\ \ ---< \ / __________/ / -=:___________/ <3, Philip e Charlie """ print(snake_string * how_many_snakes)
how_many_snakes = 1 snake_string = '\nBem-vindo ao Python3!\n\n ____\n / . .\\\n \\ ---<\n \\ /\n __________/ /\n-=:___________/\n\n<3, Philip e Charlie\n' print(snake_string * how_many_snakes)
def open_group(group, path): """Creates or loads the subgroup defined by `path`.""" if path in group: return group[path] else: return group.create_group(path)
def open_group(group, path): """Creates or loads the subgroup defined by `path`.""" if path in group: return group[path] else: return group.create_group(path)
''' Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOBECODEBANC", T = "ABC" Output: "BANC" Note: If there is no such window in S that covers all characters in T, return the empty string "". If there is such window, you are guaranteed that there will always be only one unique minimum window in S. ''' class Solution(object): def minWindow(self, s, t): """ :type s: str :type t: str :rtype: str """ dic = {} for c in t: if c in dic: dic[c] += 1 else: dic[c] = 1 counter = len(t) res = '' i = 0 for j in xrange(len(s)): if s[j] in dic: dic[s[j]] -= 1 if dic[s[j]] >= 0: counter -= 1 while counter == 0: if res == '' or len(res) > j - i + 1: res = s[i:j+1] if s[i] in dic: dic[s[i]] += 1 if dic[s[i]] > 0: counter += 1 i += 1 return res
""" Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOBECODEBANC", T = "ABC" Output: "BANC" Note: If there is no such window in S that covers all characters in T, return the empty string "". If there is such window, you are guaranteed that there will always be only one unique minimum window in S. """ class Solution(object): def min_window(self, s, t): """ :type s: str :type t: str :rtype: str """ dic = {} for c in t: if c in dic: dic[c] += 1 else: dic[c] = 1 counter = len(t) res = '' i = 0 for j in xrange(len(s)): if s[j] in dic: dic[s[j]] -= 1 if dic[s[j]] >= 0: counter -= 1 while counter == 0: if res == '' or len(res) > j - i + 1: res = s[i:j + 1] if s[i] in dic: dic[s[i]] += 1 if dic[s[i]] > 0: counter += 1 i += 1 return res
def test_message_create_list(test_client, version_header): payload = {"subject": "heyhey", "message": "testing"} create_response = test_client.post( "/messages", json=payload, headers=version_header ) assert create_response.status_code == 201 response = test_client.get("/messages", headers=version_header) results = response.json() assert len(results) == 1
def test_message_create_list(test_client, version_header): payload = {'subject': 'heyhey', 'message': 'testing'} create_response = test_client.post('/messages', json=payload, headers=version_header) assert create_response.status_code == 201 response = test_client.get('/messages', headers=version_header) results = response.json() assert len(results) == 1
# 11. Write a program that asks the user to enter a word that contains the letter a. The program # should then print the following two lines: On the first line should be the part of the string up # to and including the the first a, and on the second line should be the rest of the string. Sample # output is shown below: # Enter a word: buffalo # buffa # lo word = input('Enter a word: ') idx = word.find('a') print(word[:idx + 1]) print(word[idx + 1:])
word = input('Enter a word: ') idx = word.find('a') print(word[:idx + 1]) print(word[idx + 1:])
''' The floor number we can check given m moves and k eggs. dp[m][k] = dp[m - 1][k - 1] + dp[m - 1][k] + 1 ''' class Solution: def superEggDrop(self, K: int, N: int) -> int: dp = [0] * (K + 1) m = 0 while dp[K] < N: for k in range(K, 0, -1): dp[k] = dp[k - 1] + dp[k] + 1 m += 1 return m
""" The floor number we can check given m moves and k eggs. dp[m][k] = dp[m - 1][k - 1] + dp[m - 1][k] + 1 """ class Solution: def super_egg_drop(self, K: int, N: int) -> int: dp = [0] * (K + 1) m = 0 while dp[K] < N: for k in range(K, 0, -1): dp[k] = dp[k - 1] + dp[k] + 1 m += 1 return m
def dfs(node,parent,ptaken): if dp[node][ptaken]!=-1: return dp[node][ptaken] taking,nottaking=1,0 total=0 tways for neig in graph[node]: if neig!=parent: taking+=dfs(neig,node,1) nottaking+=dfs(neig,node,0) if ptaken: dp[node][ptaken]=min(taking,nottaking) else: dp[node][ptaken]=taking return dp[node][ptaken] if __name__ == '__main__': n=int(input()) graph=[[]for ii in range(n)] for i in range(n-1): a,b=map(int,input().split()) a=a-1 b=b-1 graph[a].append(b) graph[b].append(a) dp=[[-1 for i in range(2)]for j in range(n)] print(dfs(0,-1,1))
def dfs(node, parent, ptaken): if dp[node][ptaken] != -1: return dp[node][ptaken] (taking, nottaking) = (1, 0) total = 0 tways for neig in graph[node]: if neig != parent: taking += dfs(neig, node, 1) nottaking += dfs(neig, node, 0) if ptaken: dp[node][ptaken] = min(taking, nottaking) else: dp[node][ptaken] = taking return dp[node][ptaken] if __name__ == '__main__': n = int(input()) graph = [[] for ii in range(n)] for i in range(n - 1): (a, b) = map(int, input().split()) a = a - 1 b = b - 1 graph[a].append(b) graph[b].append(a) dp = [[-1 for i in range(2)] for j in range(n)] print(dfs(0, -1, 1))
# Vicfred # https://atcoder.jp/contests/abc154/tasks/abc154_a # simulation s, t = input().split() a, b = list(map(int, input().split())) u = input() balls = {} balls[s] = a balls[t] = b balls[u] = balls[u] - 1 print(balls[s], balls[t])
(s, t) = input().split() (a, b) = list(map(int, input().split())) u = input() balls = {} balls[s] = a balls[t] = b balls[u] = balls[u] - 1 print(balls[s], balls[t])
class Solution: def longestPalindrome(self, s: str) -> str: def expand(left:int, right:int) -> str: while left >= 0 and right <= len(s) and s[left] == s[right-1]: left -= 1 right += 1 return s[left+1 : right-1] if len(s) < 2 or s == s[::-1]: return s result = '' for i in range(len(s) - 1): result = max(result, expand(i, i+1), expand(i, i+2), key = len) return result
class Solution: def longest_palindrome(self, s: str) -> str: def expand(left: int, right: int) -> str: while left >= 0 and right <= len(s) and (s[left] == s[right - 1]): left -= 1 right += 1 return s[left + 1:right - 1] if len(s) < 2 or s == s[::-1]: return s result = '' for i in range(len(s) - 1): result = max(result, expand(i, i + 1), expand(i, i + 2), key=len) return result
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "David S. Batista" __email__ = "dsbatista@inesc-id.pt" class Seed(object): def __init__(self, _e1, _e2): self.e1 = _e1 self.e2 = _e2 def __hash__(self): return hash(self.e1) ^ hash(self.e2) def __eq__(self, other): return self.e1 == other.e1 and self.e2 == other.e2
__author__ = 'David S. Batista' __email__ = 'dsbatista@inesc-id.pt' class Seed(object): def __init__(self, _e1, _e2): self.e1 = _e1 self.e2 = _e2 def __hash__(self): return hash(self.e1) ^ hash(self.e2) def __eq__(self, other): return self.e1 == other.e1 and self.e2 == other.e2
CONFIG = { 'file_gdb': 'curb_geocoder.gdb', 'input': { 'address_pt': 'ADDRESS_CURB_20141105', 'address_fields': { 'address_id': 'OBJECTID', 'address_full': 'ADDRESS_ID', 'poly_id': 'OBJECTID_1', }, 'streets_lin': 'STREETS_LIN', 'streets_fields': { 'street_name': 'STNAME', 'left_from': 'L_F_ADD', 'left_to': 'L_T_ADD', 'right_from': 'R_F_ADD', 'right_to': 'R_T_ADD', }, 'curbs_ply': 'CURBS_PLY', }, 'output': { 'constr_lin': 'CONSTR_LIN', # Relative path for output files (non-GDB) 'dir': 'output', }, 'logging': { 'max_bytes': 5*1024*1024, 'backup_count': 3, # CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET 'console_level': 'CRITICAL', 'file_level': 'DEBUG', }, 'debug': { 'max_rows': 0, # Time every n runs 'timed_row_interval': 50000, } }
config = {'file_gdb': 'curb_geocoder.gdb', 'input': {'address_pt': 'ADDRESS_CURB_20141105', 'address_fields': {'address_id': 'OBJECTID', 'address_full': 'ADDRESS_ID', 'poly_id': 'OBJECTID_1'}, 'streets_lin': 'STREETS_LIN', 'streets_fields': {'street_name': 'STNAME', 'left_from': 'L_F_ADD', 'left_to': 'L_T_ADD', 'right_from': 'R_F_ADD', 'right_to': 'R_T_ADD'}, 'curbs_ply': 'CURBS_PLY'}, 'output': {'constr_lin': 'CONSTR_LIN', 'dir': 'output'}, 'logging': {'max_bytes': 5 * 1024 * 1024, 'backup_count': 3, 'console_level': 'CRITICAL', 'file_level': 'DEBUG'}, 'debug': {'max_rows': 0, 'timed_row_interval': 50000}}
# 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 findBottomLeftValue(self, root: Optional[TreeNode]) -> int: bottomleft=root.val stack=[(root, 0)] prev_depth=0 while(stack): cur, depth = stack.pop(0) if depth!=prev_depth: bottomleft=cur.val if cur.left: stack.append((cur.left, depth+1)) if cur.right: stack.append((cur.right, depth+1)) prev_depth=depth return bottomleft
class Solution: def find_bottom_left_value(self, root: Optional[TreeNode]) -> int: bottomleft = root.val stack = [(root, 0)] prev_depth = 0 while stack: (cur, depth) = stack.pop(0) if depth != prev_depth: bottomleft = cur.val if cur.left: stack.append((cur.left, depth + 1)) if cur.right: stack.append((cur.right, depth + 1)) prev_depth = depth return bottomleft
# # PySNMP MIB module AISPY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AISPY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:00:57 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, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint") TruthValue, = mibBuilder.importSymbols("RFC1253-MIB", "TruthValue") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Integer32, NotificationType, ModuleIdentity, enterprises, ObjectIdentity, Gauge32, iso, Counter32, TimeTicks, Counter64, NotificationType, MibIdentifier, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "NotificationType", "ModuleIdentity", "enterprises", "ObjectIdentity", "Gauge32", "iso", "Counter32", "TimeTicks", "Counter64", "NotificationType", "MibIdentifier", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Unsigned32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") aii = MibIdentifier((1, 3, 6, 1, 4, 1, 539)) aiSPY = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20)) aiSPYIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 1)) aiSPYIdentManufacturer = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYIdentManufacturer.setStatus('mandatory') aiSPYIdentModel = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYIdentModel.setStatus('mandatory') aiSPYIdentSoftwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYIdentSoftwareVersion.setStatus('mandatory') aiSPYIdentSpecific = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 4), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYIdentSpecific.setStatus('mandatory') aiSPYSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 2)) aiSPYClock = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYClock.setStatus('mandatory') aiSPYDoorAlarmBypass = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYDoorAlarmBypass.setStatus('mandatory') aiSPYKeypad = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 2, 3)) aiSPYKeypadCode1 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode1.setStatus('mandatory') aiSPYKeypadName1 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName1.setStatus('mandatory') aiSPYKeypadCode2 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode2.setStatus('mandatory') aiSPYKeypadName2 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName2.setStatus('mandatory') aiSPYKeypadCode3 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode3.setStatus('mandatory') aiSPYKeypadName3 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName3.setStatus('mandatory') aiSPYKeypadCode4 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode4.setStatus('mandatory') aiSPYKeypadName4 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 8), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName4.setStatus('mandatory') aiSPYKeypadCode5 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 9), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode5.setStatus('mandatory') aiSPYKeypadName5 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 10), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName5.setStatus('mandatory') aiSPYKeypadCode6 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 11), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode6.setStatus('mandatory') aiSPYKeypadName6 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 12), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName6.setStatus('mandatory') aiSPYKeypadCode7 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 13), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode7.setStatus('mandatory') aiSPYKeypadName7 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 14), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName7.setStatus('mandatory') aiSPYKeypadCode8 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 15), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode8.setStatus('mandatory') aiSPYKeypadName8 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 16), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName8.setStatus('mandatory') aiSPYKeypadCode9 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 17), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode9.setStatus('mandatory') aiSPYKeypadName9 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 18), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName9.setStatus('mandatory') aiSPYKeypadCode10 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 19), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode10.setStatus('mandatory') aiSPYKeypadName10 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 20), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName10.setStatus('mandatory') aiSPYKeypadCode11 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 21), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode11.setStatus('mandatory') aiSPYKeypadName11 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 22), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName11.setStatus('mandatory') aiSPYKeypadCode12 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 23), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode12.setStatus('mandatory') aiSPYKeypadName12 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 24), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName12.setStatus('mandatory') aiSPYKeypadCode13 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 25), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode13.setStatus('mandatory') aiSPYKeypadName13 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 26), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName13.setStatus('mandatory') aiSPYKeypadCode14 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 27), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode14.setStatus('mandatory') aiSPYKeypadName14 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 28), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName14.setStatus('mandatory') aiSPYKeypadCode15 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 29), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode15.setStatus('mandatory') aiSPYKeypadName15 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 30), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName15.setStatus('mandatory') aiSPYKeypadCode16 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 31), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode16.setStatus('mandatory') aiSPYKeypadName16 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 32), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName16.setStatus('mandatory') aiSPYKeypadCode17 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 33), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode17.setStatus('mandatory') aiSPYKeypadName17 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 34), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName17.setStatus('mandatory') aiSPYKeypadCode18 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 35), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode18.setStatus('mandatory') aiSPYKeypadName18 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 36), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName18.setStatus('mandatory') aiSPYKeypadCode19 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 37), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode19.setStatus('mandatory') aiSPYKeypadName19 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 38), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName19.setStatus('mandatory') aiSPYKeypadCode20 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 39), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadCode20.setStatus('mandatory') aiSPYKeypadName20 = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 40), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYKeypadName20.setStatus('mandatory') aiSPYInputVoltage = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInputVoltage.setStatus('mandatory') aiSPYOnBattery = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("notInstalled", 0), ("installed", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYOnBattery.setStatus('mandatory') aiSPYLowBatteryThreshold = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYLowBatteryThreshold.setStatus('mandatory') aiSPYAnalogAverage = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 60))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYAnalogAverage.setStatus('mandatory') aiSPYInputs = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3)) aiSPYInput1 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 1)) aiSPYInput1State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notinstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1State.setStatus('mandatory') aiSPYInput1Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput1Reading.setStatus('mandatory') aiSPYInput1Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1Gain.setStatus('mandatory') aiSPYInput1Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1Offset.setStatus('mandatory') aiSPYInput1Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1Label.setStatus('mandatory') aiSPYInput1UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1UOM.setStatus('mandatory') aiSPYInput1HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1HighLimit.setStatus('mandatory') aiSPYInput1LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1LowLimit.setStatus('mandatory') aiSPYInput1RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1RlyControl.setStatus('mandatory') aiSPYInput1Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1Delay.setStatus('mandatory') aiSPYInput1RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1RTNDelay.setStatus('mandatory') aiSPYInput1Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput1Hysteresis.setStatus('mandatory') aiSPYInput2 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 2)) aiSPYInput2State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2State.setStatus('mandatory') aiSPYInput2Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput2Reading.setStatus('mandatory') aiSPYInput2Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2Gain.setStatus('mandatory') aiSPYInput2Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2Offset.setStatus('mandatory') aiSPYInput2Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2Label.setStatus('mandatory') aiSPYInput2UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2UOM.setStatus('mandatory') aiSPYInput2HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2HighLimit.setStatus('mandatory') aiSPYInput2LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2LowLimit.setStatus('mandatory') aiSPYInput2RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2RlyControl.setStatus('mandatory') aiSPYInput2Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2Delay.setStatus('mandatory') aiSPYInput2RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2RTNDelay.setStatus('mandatory') aiSPYInput2Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput2Hysteresis.setStatus('mandatory') aiSPYInput3 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 3)) aiSPYInput3State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3State.setStatus('mandatory') aiSPYInput3Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput3Reading.setStatus('mandatory') aiSPYInput3Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3Gain.setStatus('mandatory') aiSPYInput3Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3Offset.setStatus('mandatory') aiSPYInput3Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3Label.setStatus('mandatory') aiSPYInput3UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3UOM.setStatus('mandatory') aiSPYInput3HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3HighLimit.setStatus('mandatory') aiSPYInput3LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3LowLimit.setStatus('mandatory') aiSPYInput3RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3RlyControl.setStatus('mandatory') aiSPYInput3Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3Delay.setStatus('mandatory') aiSPYInput3RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3RTNDelay.setStatus('mandatory') aiSPYInput3Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput3Hysteresis.setStatus('mandatory') aiSPYInput4 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 4)) aiSPYInput4State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4State.setStatus('mandatory') aiSPYInput4Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput4Reading.setStatus('mandatory') aiSPYInput4Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4Gain.setStatus('mandatory') aiSPYInput4Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4Offset.setStatus('mandatory') aiSPYInput4Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4Label.setStatus('mandatory') aiSPYInput4UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4UOM.setStatus('mandatory') aiSPYInput4HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4HighLimit.setStatus('mandatory') aiSPYInput4LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4LowLimit.setStatus('mandatory') aiSPYInput4RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4RlyControl.setStatus('mandatory') aiSPYInput4Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4Delay.setStatus('mandatory') aiSPYInput4RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4RTNDelay.setStatus('mandatory') aiSPYInput4Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput4Hysteresis.setStatus('mandatory') aiSPYInput5 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 5)) aiSPYInput5State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5State.setStatus('mandatory') aiSPYInput5Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput5Reading.setStatus('mandatory') aiSPYInput5Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5Gain.setStatus('mandatory') aiSPYInput5Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5Offset.setStatus('mandatory') aiSPYInput5Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5Label.setStatus('mandatory') aiSPYInput5UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5UOM.setStatus('mandatory') aiSPYInput5HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5HighLimit.setStatus('mandatory') aiSPYInput5LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5LowLimit.setStatus('mandatory') aiSPYInput5RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5RlyControl.setStatus('mandatory') aiSPYInput5Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5Delay.setStatus('mandatory') aiSPYInput5RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5RTNDelay.setStatus('mandatory') aiSPYInput5Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput5Hysteresis.setStatus('mandatory') aiSPYInput6 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 6)) aiSPYInput6State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6State.setStatus('mandatory') aiSPYInput6Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput6Reading.setStatus('mandatory') aiSPYInput6Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6Gain.setStatus('mandatory') aiSPYInput6Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6Offset.setStatus('mandatory') aiSPYInput6Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6Label.setStatus('mandatory') aiSPYInput6UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6UOM.setStatus('mandatory') aiSPYInput6HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6HighLimit.setStatus('mandatory') aiSPYInput6LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6LowLimit.setStatus('mandatory') aiSPYInput6RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6RlyControl.setStatus('mandatory') aiSPYInput6Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6Delay.setStatus('mandatory') aiSPYInput6RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6RTNDelay.setStatus('mandatory') aiSPYInput6Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput6Hysteresis.setStatus('mandatory') aiSPYInput7 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 7)) aiSPYInput7State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7State.setStatus('mandatory') aiSPYInput7Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput7Reading.setStatus('mandatory') aiSPYInput7Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7Gain.setStatus('mandatory') aiSPYInput7Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7Offset.setStatus('mandatory') aiSPYInput7Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7Label.setStatus('mandatory') aiSPYInput7UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7UOM.setStatus('mandatory') aiSPYInput7HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7HighLimit.setStatus('mandatory') aiSPYInput7LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7LowLimit.setStatus('mandatory') aiSPYInput7RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7RlyControl.setStatus('mandatory') aiSPYInput7Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7Delay.setStatus('mandatory') aiSPYInput7RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7RTNDelay.setStatus('mandatory') aiSPYInput7Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput7Hysteresis.setStatus('mandatory') aiSPYInput8 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 8)) aiSPYInput8State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notInstalled", 1), ("analog-4to20-installed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8State.setStatus('mandatory') aiSPYInput8Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput8Reading.setStatus('mandatory') aiSPYInput8Gain = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8Gain.setStatus('mandatory') aiSPYInput8Offset = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8Offset.setStatus('mandatory') aiSPYInput8Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8Label.setStatus('mandatory') aiSPYInput8UOM = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8UOM.setStatus('mandatory') aiSPYInput8HighLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8HighLimit.setStatus('mandatory') aiSPYInput8LowLimit = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8LowLimit.setStatus('mandatory') aiSPYInput8RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8RlyControl.setStatus('mandatory') aiSPYInput8Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8Delay.setStatus('mandatory') aiSPYInput8RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8RTNDelay.setStatus('mandatory') aiSPYInput8Hysteresis = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput8Hysteresis.setStatus('mandatory') aiSPYInput9 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 25)) aiSPYInput9State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput9State.setStatus('mandatory') aiSPYInput9Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput9Reading.setStatus('mandatory') aiSPYInput9Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput9Label.setStatus('mandatory') aiSPYInput9RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput9RlyControl.setStatus('mandatory') aiSPYInput9Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput9Delay.setStatus('mandatory') aiSPYInput9RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput9RTNDelay.setStatus('mandatory') aiSPYInput10 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 26)) aiSPYInput10State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput10State.setStatus('mandatory') aiSPYInput10Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput10Reading.setStatus('mandatory') aiSPYInput10Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput10Label.setStatus('mandatory') aiSPYInput10RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput10RlyControl.setStatus('mandatory') aiSPYInput10Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput10Delay.setStatus('mandatory') aiSPYInput10RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput10RTNDelay.setStatus('mandatory') aiSPYInput11 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 27)) aiSPYInput11State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput11State.setStatus('mandatory') aiSPYInput11Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput11Reading.setStatus('mandatory') aiSPYInput11Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput11Label.setStatus('mandatory') aiSPYInput11RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput11RlyControl.setStatus('mandatory') aiSPYInput11Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput11Delay.setStatus('mandatory') aiSPYInput11RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput11RTNDelay.setStatus('mandatory') aiSPYInput12 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 28)) aiSPYInput12State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput12State.setStatus('mandatory') aiSPYInput12Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput12Reading.setStatus('mandatory') aiSPYInput12Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput12Label.setStatus('mandatory') aiSPYInput12RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput12RlyControl.setStatus('mandatory') aiSPYInput12Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput12Delay.setStatus('mandatory') aiSPYInput12RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput12RTNDelay.setStatus('mandatory') aiSPYInput13 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 29)) aiSPYInput13State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput13State.setStatus('mandatory') aiSPYInput13Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput13Reading.setStatus('mandatory') aiSPYInput13Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput13Label.setStatus('mandatory') aiSPYInput13RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput13RlyControl.setStatus('mandatory') aiSPYInput13Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput13Delay.setStatus('mandatory') aiSPYInput13RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput13RTNDelay.setStatus('mandatory') aiSPYInput14 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 30)) aiSPYInput14State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput14State.setStatus('mandatory') aiSPYInput14Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput14Reading.setStatus('mandatory') aiSPYInput14Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput14Label.setStatus('mandatory') aiSPYInput14RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput14RlyControl.setStatus('mandatory') aiSPYInput14Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput14Delay.setStatus('mandatory') aiSPYInput14RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput14RTNDelay.setStatus('mandatory') aiSPYInput15 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 31)) aiSPYInput15State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput15State.setStatus('mandatory') aiSPYInput15Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput15Reading.setStatus('mandatory') aiSPYInput15Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput15Label.setStatus('mandatory') aiSPYInput15RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput15RlyControl.setStatus('mandatory') aiSPYInput15Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput15Delay.setStatus('mandatory') aiSPYInput15RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput15RTNDelay.setStatus('mandatory') aiSPYInput16 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 32)) aiSPYInput16State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput16State.setStatus('mandatory') aiSPYInput16Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput16Reading.setStatus('mandatory') aiSPYInput16Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput16Label.setStatus('mandatory') aiSPYInput16RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput16RlyControl.setStatus('mandatory') aiSPYInput16Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput16Delay.setStatus('mandatory') aiSPYInput16RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput16RTNDelay.setStatus('mandatory') aiSPYInput17 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 33)) aiSPYInput17State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput17State.setStatus('mandatory') aiSPYInput17Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput17Reading.setStatus('mandatory') aiSPYInput17Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput17Label.setStatus('mandatory') aiSPYInput17RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput17RlyControl.setStatus('mandatory') aiSPYInput17Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput17Delay.setStatus('mandatory') aiSPYInput17RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput17RTNDelay.setStatus('mandatory') aiSPYInput18 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 34)) aiSPYInput18State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput18State.setStatus('mandatory') aiSPYInput18Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput18Reading.setStatus('mandatory') aiSPYInput18Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput18Label.setStatus('mandatory') aiSPYInput18RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput18RlyControl.setStatus('mandatory') aiSPYInput18Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput18Delay.setStatus('mandatory') aiSPYInput18RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput18RTNDelay.setStatus('mandatory') aiSPYInput19 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 35)) aiSPYInput19State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput19State.setStatus('mandatory') aiSPYInput19Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput19Reading.setStatus('mandatory') aiSPYInput19Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput19Label.setStatus('mandatory') aiSPYInput19RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput19RlyControl.setStatus('mandatory') aiSPYInput19Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput19Delay.setStatus('mandatory') aiSPYInput19RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput19RTNDelay.setStatus('mandatory') aiSPYInput20 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 36)) aiSPYInput20State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput20State.setStatus('mandatory') aiSPYInput20Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput20Reading.setStatus('mandatory') aiSPYInput20Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput20Label.setStatus('mandatory') aiSPYInput20RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput20RlyControl.setStatus('mandatory') aiSPYInput20Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput20Delay.setStatus('mandatory') aiSPYInput20RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput20RTNDelay.setStatus('mandatory') aiSPYInput21 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 37)) aiSPYInput21State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput21State.setStatus('mandatory') aiSPYInput21Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput21Reading.setStatus('mandatory') aiSPYInput21Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput21Label.setStatus('mandatory') aiSPYInput21RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput21RlyControl.setStatus('mandatory') aiSPYInput21Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput21Delay.setStatus('mandatory') aiSPYInput21RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput21RTNDelay.setStatus('mandatory') aiSPYInput22 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 38)) aiSPYInput22State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput22State.setStatus('mandatory') aiSPYInput22Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput22Reading.setStatus('mandatory') aiSPYInput22Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput22Label.setStatus('mandatory') aiSPYInput22RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput22RlyControl.setStatus('mandatory') aiSPYInput22Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput22Delay.setStatus('mandatory') aiSPYInput22RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput22RTNDelay.setStatus('mandatory') aiSPYInput23 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 39)) aiSPYInput23State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput23State.setStatus('mandatory') aiSPYInput23Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput23Reading.setStatus('mandatory') aiSPYInput23Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput23Label.setStatus('mandatory') aiSPYInput23RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput23RlyControl.setStatus('mandatory') aiSPYInput23Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput23Delay.setStatus('mandatory') aiSPYInput23RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput23RTNDelay.setStatus('mandatory') aiSPYInput24 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 40)) aiSPYInput24State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput24State.setStatus('mandatory') aiSPYInput24Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput24Reading.setStatus('mandatory') aiSPYInput24Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput24Label.setStatus('mandatory') aiSPYInput24RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput24RlyControl.setStatus('mandatory') aiSPYInput24Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput24Delay.setStatus('mandatory') aiSPYInput24RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput24RTNDelay.setStatus('mandatory') aiSPYInput25 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 41)) aiSPYInput25State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput25State.setStatus('mandatory') aiSPYInput25Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput25Reading.setStatus('mandatory') aiSPYInput25Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput25Label.setStatus('mandatory') aiSPYInput25RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput25RlyControl.setStatus('mandatory') aiSPYInput25Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput25Delay.setStatus('mandatory') aiSPYInput25RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput25RTNDelay.setStatus('mandatory') aiSPYInput26 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 42)) aiSPYInput26State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput26State.setStatus('mandatory') aiSPYInput26Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput26Reading.setStatus('mandatory') aiSPYInput26Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput26Label.setStatus('mandatory') aiSPYInput26RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput26RlyControl.setStatus('mandatory') aiSPYInput26Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput26Delay.setStatus('mandatory') aiSPYInput26RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput26RTNDelay.setStatus('mandatory') aiSPYInput27 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 43)) aiSPYInput27State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput27State.setStatus('mandatory') aiSPYInput27Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput27Reading.setStatus('mandatory') aiSPYInput27Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput27Label.setStatus('mandatory') aiSPYInput27RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput27RlyControl.setStatus('mandatory') aiSPYInput27Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput27Delay.setStatus('mandatory') aiSPYInput27RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput27RTNDelay.setStatus('mandatory') aiSPYInput28 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 44)) aiSPYInput28State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("notInstalled", 1), ("digital-no-installed", 3), ("digital-nc-installed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput28State.setStatus('mandatory') aiSPYInput28Reading = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYInput28Reading.setStatus('mandatory') aiSPYInput28Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput28Label.setStatus('mandatory') aiSPYInput28RlyControl = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput28RlyControl.setStatus('mandatory') aiSPYInput28Delay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput28Delay.setStatus('mandatory') aiSPYInput28RTNDelay = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYInput28RTNDelay.setStatus('mandatory') aiSPYOutputs = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4)) aiSPYRelay1 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 1)) aiSPYRelay1State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay1State.setStatus('mandatory') aiSPYRelay1Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay1Status.setStatus('mandatory') aiSPYRelay1Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay1Label.setStatus('mandatory') aiSPYRelay1Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay1Time.setStatus('mandatory') aiSPYRelay2 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 2)) aiSPYRelay2State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay2State.setStatus('mandatory') aiSPYRelay2Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay2Status.setStatus('mandatory') aiSPYRelay2Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay2Label.setStatus('mandatory') aiSPYRelay2Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay2Time.setStatus('mandatory') aiSPYRelay3 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 3)) aiSPYRelay3State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay3State.setStatus('mandatory') aiSPYRelay3Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay3Status.setStatus('mandatory') aiSPYRelay3Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay3Label.setStatus('mandatory') aiSPYRelay3Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay3Time.setStatus('mandatory') aiSPYRelay4 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 4)) aiSPYRelay4State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay4State.setStatus('mandatory') aiSPYRelay4Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay4Status.setStatus('mandatory') aiSPYRelay4Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay4Label.setStatus('mandatory') aiSPYRelay4Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay4Time.setStatus('mandatory') aiSPYRelay5 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 5)) aiSPYRelay5State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay5State.setStatus('mandatory') aiSPYRelay5Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay5Status.setStatus('mandatory') aiSPYRelay5Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay5Label.setStatus('mandatory') aiSPYRelay5Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay5Time.setStatus('mandatory') aiSPYRelay6 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 6)) aiSPYRelay6State = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("normallyoff", 1), ("normallyon", 2), ("forceon", 3), ("forceoff", 4), ("keypadcontrolled", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay6State.setStatus('mandatory') aiSPYRelay6Status = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("normaloff", 1), ("normalon", 2), ("forcedon", 3), ("forcedoff", 4), ("keycodeactive", 5), ("alarmedactive", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYRelay6Status.setStatus('mandatory') aiSPYRelay6Label = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay6Label.setStatus('mandatory') aiSPYRelay6Time = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYRelay6Time.setStatus('mandatory') aiSPYAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 5)) aiSPYAlarmsPresent = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 5, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYAlarmsPresent.setStatus('current') aiSPYAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 539, 20, 5, 2), ) if mibBuilder.loadTexts: aiSPYAlarmTable.setStatus('current') aiSPYAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1), ).setIndexNames((0, "AISPY-MIB", "aiSPYAlarmId")) if mibBuilder.loadTexts: aiSPYAlarmEntry.setStatus('current') aiSPYAlarmId = MibTableColumn((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: aiSPYAlarmId.setStatus('current') aiSPYAlarmDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYAlarmDescr.setStatus('current') aiSPYWellKnownAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 5, 3)) aiSPYInput1HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 1)) if mibBuilder.loadTexts: aiSPYInput1HighAlarm.setStatus('current') aiSPYInput1LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 2)) if mibBuilder.loadTexts: aiSPYInput1LowAlarm.setStatus('current') aiSPYInput2HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 3)) if mibBuilder.loadTexts: aiSPYInput2HighAlarm.setStatus('current') aiSPYInput2LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 4)) if mibBuilder.loadTexts: aiSPYInput2LowAlarm.setStatus('current') aiSPYInput3HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 5)) if mibBuilder.loadTexts: aiSPYInput3HighAlarm.setStatus('current') aiSPYInput3LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 6)) if mibBuilder.loadTexts: aiSPYInput3LowAlarm.setStatus('current') aiSPYInput4HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 7)) if mibBuilder.loadTexts: aiSPYInput4HighAlarm.setStatus('current') aiSPYInput4LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 8)) if mibBuilder.loadTexts: aiSPYInput4LowAlarm.setStatus('current') aiSPYInput5HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 9)) if mibBuilder.loadTexts: aiSPYInput5HighAlarm.setStatus('current') aiSPYInput5LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 10)) if mibBuilder.loadTexts: aiSPYInput5LowAlarm.setStatus('current') aiSPYInput6HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 11)) if mibBuilder.loadTexts: aiSPYInput6HighAlarm.setStatus('current') aiSPYInput6LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 12)) if mibBuilder.loadTexts: aiSPYInput6LowAlarm.setStatus('current') aiSPYInput7HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 13)) if mibBuilder.loadTexts: aiSPYInput7HighAlarm.setStatus('current') aiSPYInput7LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 14)) if mibBuilder.loadTexts: aiSPYInput7LowAlarm.setStatus('current') aiSPYInput8HighAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 15)) if mibBuilder.loadTexts: aiSPYInput8HighAlarm.setStatus('current') aiSPYInput8LowAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 16)) if mibBuilder.loadTexts: aiSPYInput8LowAlarm.setStatus('current') aiSPYInput1DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 17)) if mibBuilder.loadTexts: aiSPYInput1DigAlarm.setStatus('current') aiSPYInput2DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 18)) if mibBuilder.loadTexts: aiSPYInput2DigAlarm.setStatus('current') aiSPYInput3DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 19)) if mibBuilder.loadTexts: aiSPYInput3DigAlarm.setStatus('current') aiSPYInput4DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 20)) if mibBuilder.loadTexts: aiSPYInput4DigAlarm.setStatus('current') aiSPYInput5DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 21)) if mibBuilder.loadTexts: aiSPYInput5DigAlarm.setStatus('current') aiSPYInput6DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 22)) if mibBuilder.loadTexts: aiSPYInput6DigAlarm.setStatus('current') aiSPYInput7DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 23)) if mibBuilder.loadTexts: aiSPYInput7DigAlarm.setStatus('current') aiSPYInput8DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 24)) if mibBuilder.loadTexts: aiSPYInput8DigAlarm.setStatus('current') aiSPYInput9DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 25)) if mibBuilder.loadTexts: aiSPYInput9DigAlarm.setStatus('current') aiSPYInput10DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 26)) if mibBuilder.loadTexts: aiSPYInput10DigAlarm.setStatus('current') aiSPYInput11DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 27)) if mibBuilder.loadTexts: aiSPYInput11DigAlarm.setStatus('current') aiSPYInput12DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 28)) if mibBuilder.loadTexts: aiSPYInput12DigAlarm.setStatus('current') aiSPYInput13DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 29)) if mibBuilder.loadTexts: aiSPYInput13DigAlarm.setStatus('current') aiSPYInput14DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 30)) if mibBuilder.loadTexts: aiSPYInput14DigAlarm.setStatus('current') aiSPYInput15DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 31)) if mibBuilder.loadTexts: aiSPYInput15DigAlarm.setStatus('current') aiSPYInput16DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 32)) if mibBuilder.loadTexts: aiSPYInput16DigAlarm.setStatus('current') aiSPYInput17DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 33)) if mibBuilder.loadTexts: aiSPYInput17DigAlarm.setStatus('current') aiSPYInput18DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 34)) if mibBuilder.loadTexts: aiSPYInput18DigAlarm.setStatus('current') aiSPYInput19DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 35)) if mibBuilder.loadTexts: aiSPYInput19DigAlarm.setStatus('current') aiSPYInput20DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 36)) if mibBuilder.loadTexts: aiSPYInput20DigAlarm.setStatus('current') aiSPYInput21DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 37)) if mibBuilder.loadTexts: aiSPYInput21DigAlarm.setStatus('current') aiSPYInput22DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 38)) if mibBuilder.loadTexts: aiSPYInput22DigAlarm.setStatus('current') aiSPYInput23DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 39)) if mibBuilder.loadTexts: aiSPYInput23DigAlarm.setStatus('current') aiSPYInput24DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 40)) if mibBuilder.loadTexts: aiSPYInput24DigAlarm.setStatus('current') aiSPYInput25DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 41)) if mibBuilder.loadTexts: aiSPYInput25DigAlarm.setStatus('current') aiSPYInput26DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 42)) if mibBuilder.loadTexts: aiSPYInput26DigAlarm.setStatus('current') aiSPYInput27DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 43)) if mibBuilder.loadTexts: aiSPYInput27DigAlarm.setStatus('current') aiSPYInput28DigAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 44)) if mibBuilder.loadTexts: aiSPYInput28DigAlarm.setStatus('current') aiSPYOnBatteryAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 96)) if mibBuilder.loadTexts: aiSPYOnBatteryAlarm.setStatus('current') aiSPYLowBatteryAlarm = ObjectIdentity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 97)) if mibBuilder.loadTexts: aiSPYLowBatteryAlarm.setStatus('current') aiSPYTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 6)) aiSPYAlarmEntryAdded = NotificationType((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0,1)) aiSPYAlarmEntryRemoved = NotificationType((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0,2)) aiSPYAccessGranted = NotificationType((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0,3)) aiSPYAccessDenied = NotificationType((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0,4)) aiSPYAlarmHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 7)) aiSPYAlarmHistoryEntries = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 7, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYAlarmHistoryEntries.setStatus('current') aiSPYAlarmHistoryClear = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clearbuffer", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYAlarmHistoryClear.setStatus('mandatory') aiSPYAlarmHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 539, 20, 7, 3), ) if mibBuilder.loadTexts: aiSPYAlarmHistoryTable.setStatus('current') aiSPYAlarmHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1), ).setIndexNames((0, "AISPY-MIB", "aiSPYAlarmHistoryId")) if mibBuilder.loadTexts: aiSPYAlarmHistoryEntry.setStatus('current') aiSPYAlarmHistoryId = MibTableColumn((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: aiSPYAlarmHistoryId.setStatus('current') aiSPYAlarmHistoryText = MibTableColumn((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: aiSPYAlarmHistoryText.setStatus('current') aiSPYTrapSettings = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 8)) aiSPYPersistantTraps = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 8, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYPersistantTraps.setStatus('mandatory') aiSPYAlarmAcknowledge = MibScalar((1, 3, 6, 1, 4, 1, 539, 20, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("acknowledgealarms", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aiSPYAlarmAcknowledge.setStatus('mandatory') aiSPY8124 = MibIdentifier((1, 3, 6, 1, 4, 1, 539, 20, 3)) mibBuilder.exportSymbols("AISPY-MIB", aiSPYInput8HighLimit=aiSPYInput8HighLimit, aiSPYInput21=aiSPYInput21, aiSPYInput10Label=aiSPYInput10Label, aiSPYRelay2=aiSPYRelay2, aiSPYKeypadCode12=aiSPYKeypadCode12, aiSPYInput17=aiSPYInput17, aiSPYKeypadCode19=aiSPYKeypadCode19, aiSPYInput19State=aiSPYInput19State, aiSPY8124=aiSPY8124, aiSPYInput15RlyControl=aiSPYInput15RlyControl, aiSPYInput5Delay=aiSPYInput5Delay, aiSPYInput23State=aiSPYInput23State, aiSPYInput7Offset=aiSPYInput7Offset, aiSPYKeypadName4=aiSPYKeypadName4, aiSPYInput1Gain=aiSPYInput1Gain, aiSPYInput19Delay=aiSPYInput19Delay, aiSPYKeypadName11=aiSPYKeypadName11, aiSPYInput3UOM=aiSPYInput3UOM, aiSPYInput7DigAlarm=aiSPYInput7DigAlarm, aiSPYInput5UOM=aiSPYInput5UOM, aiSPYInput23Reading=aiSPYInput23Reading, aiSPYKeypadCode8=aiSPYKeypadCode8, aiSPYInput26RlyControl=aiSPYInput26RlyControl, aiSPYInput16Delay=aiSPYInput16Delay, aiSPYInput20DigAlarm=aiSPYInput20DigAlarm, aiSPYInput18RTNDelay=aiSPYInput18RTNDelay, aiSPYInput19DigAlarm=aiSPYInput19DigAlarm, aiSPYInput5HighLimit=aiSPYInput5HighLimit, aiSPYKeypadCode3=aiSPYKeypadCode3, aiSPYInput18Label=aiSPYInput18Label, aiSPYInput1LowAlarm=aiSPYInput1LowAlarm, aiSPYInput26Label=aiSPYInput26Label, aiSPYKeypadName1=aiSPYKeypadName1, aiSPYInput3LowAlarm=aiSPYInput3LowAlarm, aiSPYInput20Label=aiSPYInput20Label, aiSPYInput6HighAlarm=aiSPYInput6HighAlarm, aiSPYRelay6Status=aiSPYRelay6Status, aiSPYInput7RTNDelay=aiSPYInput7RTNDelay, aiSPYInput6Gain=aiSPYInput6Gain, aiSPYRelay1State=aiSPYRelay1State, aiSPYInput8Label=aiSPYInput8Label, aiSPYInput18DigAlarm=aiSPYInput18DigAlarm, aiSPYInput11Delay=aiSPYInput11Delay, aiSPYInput16Reading=aiSPYInput16Reading, aiSPYInput17State=aiSPYInput17State, aiSPYInput5LowLimit=aiSPYInput5LowLimit, aiSPYAnalogAverage=aiSPYAnalogAverage, aiSPYInput21Delay=aiSPYInput21Delay, aiSPYInput5RTNDelay=aiSPYInput5RTNDelay, aiSPYInput19Reading=aiSPYInput19Reading, aiSPYInput8RlyControl=aiSPYInput8RlyControl, aiSPYKeypadCode16=aiSPYKeypadCode16, aiSPYInput16Label=aiSPYInput16Label, aiSPYInput5State=aiSPYInput5State, aiSPYInput21RTNDelay=aiSPYInput21RTNDelay, aiSPYKeypadCode9=aiSPYKeypadCode9, aiSPYInput14=aiSPYInput14, aiSPYInput14Delay=aiSPYInput14Delay, aiSPYInput13DigAlarm=aiSPYInput13DigAlarm, aiSPYInput10RlyControl=aiSPYInput10RlyControl, aiSPYInput23RlyControl=aiSPYInput23RlyControl, aiSPYOnBatteryAlarm=aiSPYOnBatteryAlarm, aiSPYInput5=aiSPYInput5, aiSPYInput1RTNDelay=aiSPYInput1RTNDelay, aiSPYKeypadName20=aiSPYKeypadName20, aiSPYInput12Delay=aiSPYInput12Delay, aiSPYLowBatteryAlarm=aiSPYLowBatteryAlarm, aiSPYInput18State=aiSPYInput18State, aiSPYInput8Gain=aiSPYInput8Gain, aiSPYInput6UOM=aiSPYInput6UOM, aiSPYRelay3State=aiSPYRelay3State, aiSPYInput23RTNDelay=aiSPYInput23RTNDelay, aiSPYRelay5=aiSPYRelay5, aiSPYInput24State=aiSPYInput24State, aiSPYInput8LowAlarm=aiSPYInput8LowAlarm, aiSPYInput7LowAlarm=aiSPYInput7LowAlarm, aiSPYInput17RlyControl=aiSPYInput17RlyControl, aiSPYInput4Delay=aiSPYInput4Delay, aiSPYInput12RTNDelay=aiSPYInput12RTNDelay, aiSPYInput28Reading=aiSPYInput28Reading, aiSPYInput1=aiSPYInput1, aiSPYInput11State=aiSPYInput11State, aiSPYRelay1Time=aiSPYRelay1Time, aiSPYInput1Offset=aiSPYInput1Offset, aiSPYInput6DigAlarm=aiSPYInput6DigAlarm, aiSPYRelay3Time=aiSPYRelay3Time, aiSPYInput26State=aiSPYInput26State, aiSPYInput22Delay=aiSPYInput22Delay, aiSPYInput9=aiSPYInput9, aiSPYInput20RTNDelay=aiSPYInput20RTNDelay, aiSPYInput25RTNDelay=aiSPYInput25RTNDelay, aiSPYInput27Delay=aiSPYInput27Delay, aiSPYInput17RTNDelay=aiSPYInput17RTNDelay, aiSPYInput26Reading=aiSPYInput26Reading, aiSPYInput5Hysteresis=aiSPYInput5Hysteresis, aiSPYIdent=aiSPYIdent, aiSPYAlarmAcknowledge=aiSPYAlarmAcknowledge, aiSPYAlarmHistoryEntry=aiSPYAlarmHistoryEntry, aiSPYInput2=aiSPYInput2, aiSPYInput3Delay=aiSPYInput3Delay, aiSPYKeypadName14=aiSPYKeypadName14, aiSPYInput21DigAlarm=aiSPYInput21DigAlarm, aiSPYInput3Label=aiSPYInput3Label, aiSPYInput18Reading=aiSPYInput18Reading, aiSPYInput20Reading=aiSPYInput20Reading, aiSPYAlarmHistoryText=aiSPYAlarmHistoryText, aiSPYInput16RlyControl=aiSPYInput16RlyControl, aiSPYInputVoltage=aiSPYInputVoltage, aiSPYInput5Reading=aiSPYInput5Reading, aiSPYKeypadName5=aiSPYKeypadName5, aiSPYInput25DigAlarm=aiSPYInput25DigAlarm, aiSPYInput19RlyControl=aiSPYInput19RlyControl, aiSPYRelay3Status=aiSPYRelay3Status, aiSPYInput13State=aiSPYInput13State, aiSPYInput25RlyControl=aiSPYInput25RlyControl, aiSPYInput8=aiSPYInput8, aiSPY=aiSPY, aiSPYInput27State=aiSPYInput27State, aiSPYInput11Reading=aiSPYInput11Reading, aiSPYRelay2Time=aiSPYRelay2Time, aiSPYIdentSpecific=aiSPYIdentSpecific, aiSPYInput11RlyControl=aiSPYInput11RlyControl, aiSPYKeypadCode17=aiSPYKeypadCode17, aiSPYIdentManufacturer=aiSPYIdentManufacturer, aiSPYInput4LowAlarm=aiSPYInput4LowAlarm, aiSPYInput7Label=aiSPYInput7Label, aiSPYInput2HighLimit=aiSPYInput2HighLimit, aiSPYInput7Reading=aiSPYInput7Reading, aiSPYInput8State=aiSPYInput8State, aiSPYInput12RlyControl=aiSPYInput12RlyControl, aiSPYInput17DigAlarm=aiSPYInput17DigAlarm, aiSPYInput1HighLimit=aiSPYInput1HighLimit, aiSPYRelay5Label=aiSPYRelay5Label, aiSPYInput8LowLimit=aiSPYInput8LowLimit, aiSPYInput7State=aiSPYInput7State, aiSPYInput5LowAlarm=aiSPYInput5LowAlarm, aiSPYInput15Delay=aiSPYInput15Delay, aiSPYInput5Gain=aiSPYInput5Gain, aiSPYInput7RlyControl=aiSPYInput7RlyControl, aiSPYInput14Reading=aiSPYInput14Reading, aiSPYInput1UOM=aiSPYInput1UOM, aiSPYRelay2Label=aiSPYRelay2Label, aiSPYInput6Delay=aiSPYInput6Delay, aiSPYInput1Reading=aiSPYInput1Reading, aiSPYKeypadName13=aiSPYKeypadName13, aiSPYInput20Delay=aiSPYInput20Delay, aiSPYInput15Label=aiSPYInput15Label, aiSPYInput20RlyControl=aiSPYInput20RlyControl, aiSPYInput24=aiSPYInput24, aiSPYInput28State=aiSPYInput28State, aiSPYInput19Label=aiSPYInput19Label, aiSPYInput9Label=aiSPYInput9Label, aiSPYInput7Gain=aiSPYInput7Gain, aiSPYInput4Reading=aiSPYInput4Reading, aiSPYRelay4=aiSPYRelay4, aiSPYInput3Gain=aiSPYInput3Gain, aiSPYAlarmEntry=aiSPYAlarmEntry, aiSPYInput27DigAlarm=aiSPYInput27DigAlarm, aiSPYInput12Reading=aiSPYInput12Reading, aiSPYInput28=aiSPYInput28, aiSPYInput22State=aiSPYInput22State, aiSPYKeypadCode11=aiSPYKeypadCode11, aiSPYDoorAlarmBypass=aiSPYDoorAlarmBypass, aiSPYInput12DigAlarm=aiSPYInput12DigAlarm, aiSPYKeypadName16=aiSPYKeypadName16, aiSPYIdentModel=aiSPYIdentModel, aiSPYInput15Reading=aiSPYInput15Reading, aiSPYInput7Delay=aiSPYInput7Delay, aiSPYInput20=aiSPYInput20, aiSPYKeypadCode20=aiSPYKeypadCode20, aiSPYInput15=aiSPYInput15, aiSPYInput6LowAlarm=aiSPYInput6LowAlarm, aiSPYInput14RTNDelay=aiSPYInput14RTNDelay, aiSPYInput7LowLimit=aiSPYInput7LowLimit, aiSPYKeypadCode10=aiSPYKeypadCode10, aiSPYInput4HighAlarm=aiSPYInput4HighAlarm, aiSPYInput10DigAlarm=aiSPYInput10DigAlarm, aiSPYInput4DigAlarm=aiSPYInput4DigAlarm, aiSPYInput22Label=aiSPYInput22Label, aiSPYTrapSettings=aiSPYTrapSettings, aiSPYKeypadCode18=aiSPYKeypadCode18, aiSPYInput2RTNDelay=aiSPYInput2RTNDelay, aiSPYInput22RTNDelay=aiSPYInput22RTNDelay, aiSPYRelay6State=aiSPYRelay6State, aiSPYInput9RTNDelay=aiSPYInput9RTNDelay, aiSPYRelay4Label=aiSPYRelay4Label, aiSPYRelay2State=aiSPYRelay2State, aiSPYInput10Reading=aiSPYInput10Reading, aiSPYKeypadCode4=aiSPYKeypadCode4, aiSPYInput3Offset=aiSPYInput3Offset, aiSPYInput4State=aiSPYInput4State, aiSPYRelay4Time=aiSPYRelay4Time, aiSPYInput16DigAlarm=aiSPYInput16DigAlarm, aiSPYInput9Delay=aiSPYInput9Delay, aiSPYInput28DigAlarm=aiSPYInput28DigAlarm, aiSPYInput3HighLimit=aiSPYInput3HighLimit, aiSPYInput22Reading=aiSPYInput22Reading, aiSPYInput19=aiSPYInput19, aiSPYInput28Delay=aiSPYInput28Delay, aiSPYKeypadCode15=aiSPYKeypadCode15, aiSPYInput1LowLimit=aiSPYInput1LowLimit, aiSPYInput4RlyControl=aiSPYInput4RlyControl, aiSPYInput8Hysteresis=aiSPYInput8Hysteresis, aiSPYInput17Delay=aiSPYInput17Delay, aiSPYInput27RTNDelay=aiSPYInput27RTNDelay, aiSPYInput4Hysteresis=aiSPYInput4Hysteresis, aiSPYInput26Delay=aiSPYInput26Delay, aiSPYRelay3=aiSPYRelay3, aiSPYInput12State=aiSPYInput12State, aiSPYInput13Delay=aiSPYInput13Delay, aiSPYInput3Hysteresis=aiSPYInput3Hysteresis, aiSPYKeypadCode14=aiSPYKeypadCode14, aiSPYRelay6=aiSPYRelay6, aiSPYWellKnownAlarms=aiSPYWellKnownAlarms, aiSPYAlarms=aiSPYAlarms, aiSPYInput3State=aiSPYInput3State, aiSPYInput24Reading=aiSPYInput24Reading, aiSPYInput1Delay=aiSPYInput1Delay, aiSPYInput24Delay=aiSPYInput24Delay, aiSPYAlarmHistoryEntries=aiSPYAlarmHistoryEntries, aiSPYInput4=aiSPYInput4, aiSPYKeypadName18=aiSPYKeypadName18, aiSPYInput6State=aiSPYInput6State, aiSPYAlarmId=aiSPYAlarmId, aiSPYAccessGranted=aiSPYAccessGranted, aiSPYInput7HighLimit=aiSPYInput7HighLimit, aiSPYKeypadCode13=aiSPYKeypadCode13, aiSPYAlarmEntryRemoved=aiSPYAlarmEntryRemoved, aiSPYKeypadName12=aiSPYKeypadName12, aiSPYInput2State=aiSPYInput2State, aiSPYInput7HighAlarm=aiSPYInput7HighAlarm, aiSPYRelay1Status=aiSPYRelay1Status, aiSPYInput23DigAlarm=aiSPYInput23DigAlarm, aiSPYKeypadCode6=aiSPYKeypadCode6, aiSPYRelay4Status=aiSPYRelay4Status, aiSPYInput22DigAlarm=aiSPYInput22DigAlarm, aiSPYInput4UOM=aiSPYInput4UOM, aiSPYInput26=aiSPYInput26, aiSPYInput26RTNDelay=aiSPYInput26RTNDelay, aiSPYKeypadName6=aiSPYKeypadName6, aiSPYInput3LowLimit=aiSPYInput3LowLimit, aiSPYRelay4State=aiSPYRelay4State, aiSPYInput17Reading=aiSPYInput17Reading, aiSPYInput5RlyControl=aiSPYInput5RlyControl, aiSPYInput6Label=aiSPYInput6Label, aiSPYInput16RTNDelay=aiSPYInput16RTNDelay, aiSPYInput5DigAlarm=aiSPYInput5DigAlarm, aiSPYRelay1=aiSPYRelay1, aiSPYInput6HighLimit=aiSPYInput6HighLimit, aiSPYKeypadCode5=aiSPYKeypadCode5, aiSPYInput3RTNDelay=aiSPYInput3RTNDelay, aiSPYInput7Hysteresis=aiSPYInput7Hysteresis, aiSPYInput3DigAlarm=aiSPYInput3DigAlarm, aiSPYInput15DigAlarm=aiSPYInput15DigAlarm) mibBuilder.exportSymbols("AISPY-MIB", aiSPYInput9DigAlarm=aiSPYInput9DigAlarm, aiSPYAccessDenied=aiSPYAccessDenied, aiSPYInput16State=aiSPYInput16State, aiSPYInput13RTNDelay=aiSPYInput13RTNDelay, aiSPYInput26DigAlarm=aiSPYInput26DigAlarm, aiSPYInput14State=aiSPYInput14State, aiSPYRelay2Status=aiSPYRelay2Status, aiSPYInput4Gain=aiSPYInput4Gain, aiSPYInput10State=aiSPYInput10State, aiSPYKeypadName7=aiSPYKeypadName7, aiSPYInput27RlyControl=aiSPYInput27RlyControl, aiSPYInput3RlyControl=aiSPYInput3RlyControl, aiSPYInput1HighAlarm=aiSPYInput1HighAlarm, aiSPYInput1DigAlarm=aiSPYInput1DigAlarm, aiSPYInput13RlyControl=aiSPYInput13RlyControl, aiSPYInput22=aiSPYInput22, aiSPYInput10RTNDelay=aiSPYInput10RTNDelay, aiSPYInput23Label=aiSPYInput23Label, aiSPYInput24Label=aiSPYInput24Label, aiSPYInput2Offset=aiSPYInput2Offset, aiSPYInput3HighAlarm=aiSPYInput3HighAlarm, aiSPYRelay5Time=aiSPYRelay5Time, aiSPYInput4Offset=aiSPYInput4Offset, aiSPYInput15State=aiSPYInput15State, aiSPYInput8Delay=aiSPYInput8Delay, aiSPYInput6=aiSPYInput6, aiSPYRelay6Time=aiSPYRelay6Time, aiSPYInput2Gain=aiSPYInput2Gain, aiSPYKeypadName15=aiSPYKeypadName15, aiSPYClock=aiSPYClock, aiSPYInput8DigAlarm=aiSPYInput8DigAlarm, aiSPYInput18Delay=aiSPYInput18Delay, aiSPYRelay5Status=aiSPYRelay5Status, aiSPYKeypadName2=aiSPYKeypadName2, aiSPYKeypadName3=aiSPYKeypadName3, aiSPYInput18RlyControl=aiSPYInput18RlyControl, aiSPYInput28RlyControl=aiSPYInput28RlyControl, aiSPYSystem=aiSPYSystem, aiSPYInput14Label=aiSPYInput14Label, aiSPYInput2UOM=aiSPYInput2UOM, aiSPYAlarmsPresent=aiSPYAlarmsPresent, aiSPYAlarmHistoryTable=aiSPYAlarmHistoryTable, aiSPYInput2Delay=aiSPYInput2Delay, aiSPYInput12=aiSPYInput12, aiSPYInput5Label=aiSPYInput5Label, aiSPYInput1State=aiSPYInput1State, aiSPYInput8HighAlarm=aiSPYInput8HighAlarm, aiSPYInput15RTNDelay=aiSPYInput15RTNDelay, aiSPYInput7UOM=aiSPYInput7UOM, aiSPYInput1Hysteresis=aiSPYInput1Hysteresis, aiSPYInput7=aiSPYInput7, aiSPYInput21RlyControl=aiSPYInput21RlyControl, aiSPYAlarmTable=aiSPYAlarmTable, aiSPYInput5HighAlarm=aiSPYInput5HighAlarm, aiSPYInput20State=aiSPYInput20State, aiSPYKeypadName17=aiSPYKeypadName17, aiSPYRelay6Label=aiSPYRelay6Label, aiSPYKeypadName10=aiSPYKeypadName10, aiSPYPersistantTraps=aiSPYPersistantTraps, aiSPYInput2LowAlarm=aiSPYInput2LowAlarm, aiSPYInput21State=aiSPYInput21State, aiSPYInput21Reading=aiSPYInput21Reading, aiSPYInput25=aiSPYInput25, aiSPYInput4LowLimit=aiSPYInput4LowLimit, aiSPYInput3=aiSPYInput3, aiSPYAlarmDescr=aiSPYAlarmDescr, aiSPYInput8UOM=aiSPYInput8UOM, aiSPYKeypadCode1=aiSPYKeypadCode1, aiSPYInput6LowLimit=aiSPYInput6LowLimit, aiSPYInput11=aiSPYInput11, aiSPYInput27=aiSPYInput27, aiSPYKeypadName8=aiSPYKeypadName8, aiSPYInput17Label=aiSPYInput17Label, aiSPYInput13Reading=aiSPYInput13Reading, aiSPYInput11RTNDelay=aiSPYInput11RTNDelay, aiSPYOutputs=aiSPYOutputs, aiSPYInput27Reading=aiSPYInput27Reading, aiSPYInput13=aiSPYInput13, aiSPYKeypadCode2=aiSPYKeypadCode2, aiSPYInput22RlyControl=aiSPYInput22RlyControl, aiSPYLowBatteryThreshold=aiSPYLowBatteryThreshold, aiSPYInput2LowLimit=aiSPYInput2LowLimit, aiSPYInputs=aiSPYInputs, aiSPYInput27Label=aiSPYInput27Label, aiSPYInput14DigAlarm=aiSPYInput14DigAlarm, aiSPYInput2Reading=aiSPYInput2Reading, aiSPYInput9State=aiSPYInput9State, aiSPYIdentSoftwareVersion=aiSPYIdentSoftwareVersion, aiSPYInput2HighAlarm=aiSPYInput2HighAlarm, aiSPYInput11Label=aiSPYInput11Label, aiSPYInput28RTNDelay=aiSPYInput28RTNDelay, aiSPYInput14RlyControl=aiSPYInput14RlyControl, aiSPYInput25Delay=aiSPYInput25Delay, aiSPYInput4HighLimit=aiSPYInput4HighLimit, aiSPYInput6Offset=aiSPYInput6Offset, aiSPYInput23=aiSPYInput23, aiSPYInput25State=aiSPYInput25State, aiSPYInput2Label=aiSPYInput2Label, aiSPYAlarmHistoryId=aiSPYAlarmHistoryId, aiSPYInput8Offset=aiSPYInput8Offset, aiSPYRelay1Label=aiSPYRelay1Label, aiSPYInput1RlyControl=aiSPYInput1RlyControl, aiSPYInput6Hysteresis=aiSPYInput6Hysteresis, aiSPYAlarmEntryAdded=aiSPYAlarmEntryAdded, aiSPYKeypadName19=aiSPYKeypadName19, aiSPYInput16=aiSPYInput16, aiSPYInput2Hysteresis=aiSPYInput2Hysteresis, aiSPYInput28Label=aiSPYInput28Label, aiSPYInput6Reading=aiSPYInput6Reading, aiSPYInput19RTNDelay=aiSPYInput19RTNDelay, aiSPYInput1Label=aiSPYInput1Label, aii=aii, aiSPYKeypadCode7=aiSPYKeypadCode7, aiSPYInput2RlyControl=aiSPYInput2RlyControl, aiSPYInput24RlyControl=aiSPYInput24RlyControl, aiSPYInput24DigAlarm=aiSPYInput24DigAlarm, aiSPYInput2DigAlarm=aiSPYInput2DigAlarm, aiSPYOnBattery=aiSPYOnBattery, aiSPYInput6RTNDelay=aiSPYInput6RTNDelay, aiSPYInput3Reading=aiSPYInput3Reading, aiSPYInput6RlyControl=aiSPYInput6RlyControl, aiSPYInput25Label=aiSPYInput25Label, aiSPYInput8Reading=aiSPYInput8Reading, aiSPYInput21Label=aiSPYInput21Label, aiSPYInput10Delay=aiSPYInput10Delay, aiSPYInput12Label=aiSPYInput12Label, aiSPYAlarmHistory=aiSPYAlarmHistory, aiSPYInput24RTNDelay=aiSPYInput24RTNDelay, aiSPYInput5Offset=aiSPYInput5Offset, aiSPYInput13Label=aiSPYInput13Label, aiSPYInput4RTNDelay=aiSPYInput4RTNDelay, aiSPYRelay5State=aiSPYRelay5State, aiSPYInput23Delay=aiSPYInput23Delay, aiSPYInput11DigAlarm=aiSPYInput11DigAlarm, aiSPYTraps=aiSPYTraps, aiSPYInput9RlyControl=aiSPYInput9RlyControl, aiSPYAlarmHistoryClear=aiSPYAlarmHistoryClear, aiSPYInput18=aiSPYInput18, aiSPYRelay3Label=aiSPYRelay3Label, aiSPYInput4Label=aiSPYInput4Label, aiSPYKeypad=aiSPYKeypad, aiSPYInput8RTNDelay=aiSPYInput8RTNDelay, aiSPYInput10=aiSPYInput10, aiSPYInput9Reading=aiSPYInput9Reading, aiSPYKeypadName9=aiSPYKeypadName9, aiSPYInput25Reading=aiSPYInput25Reading)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint') (truth_value,) = mibBuilder.importSymbols('RFC1253-MIB', 'TruthValue') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (integer32, notification_type, module_identity, enterprises, object_identity, gauge32, iso, counter32, time_ticks, counter64, notification_type, mib_identifier, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'NotificationType', 'ModuleIdentity', 'enterprises', 'ObjectIdentity', 'Gauge32', 'iso', 'Counter32', 'TimeTicks', 'Counter64', 'NotificationType', 'MibIdentifier', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Unsigned32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') aii = mib_identifier((1, 3, 6, 1, 4, 1, 539)) ai_spy = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20)) ai_spy_ident = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 1)) ai_spy_ident_manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYIdentManufacturer.setStatus('mandatory') ai_spy_ident_model = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYIdentModel.setStatus('mandatory') ai_spy_ident_software_version = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYIdentSoftwareVersion.setStatus('mandatory') ai_spy_ident_specific = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 1, 4), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYIdentSpecific.setStatus('mandatory') ai_spy_system = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 2)) ai_spy_clock = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 1), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYClock.setStatus('mandatory') ai_spy_door_alarm_bypass = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYDoorAlarmBypass.setStatus('mandatory') ai_spy_keypad = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 2, 3)) ai_spy_keypad_code1 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 1), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode1.setStatus('mandatory') ai_spy_keypad_name1 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 2), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName1.setStatus('mandatory') ai_spy_keypad_code2 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode2.setStatus('mandatory') ai_spy_keypad_name2 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName2.setStatus('mandatory') ai_spy_keypad_code3 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode3.setStatus('mandatory') ai_spy_keypad_name3 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName3.setStatus('mandatory') ai_spy_keypad_code4 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 7), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode4.setStatus('mandatory') ai_spy_keypad_name4 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 8), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName4.setStatus('mandatory') ai_spy_keypad_code5 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 9), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode5.setStatus('mandatory') ai_spy_keypad_name5 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 10), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName5.setStatus('mandatory') ai_spy_keypad_code6 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 11), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode6.setStatus('mandatory') ai_spy_keypad_name6 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 12), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName6.setStatus('mandatory') ai_spy_keypad_code7 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 13), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode7.setStatus('mandatory') ai_spy_keypad_name7 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 14), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName7.setStatus('mandatory') ai_spy_keypad_code8 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 15), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode8.setStatus('mandatory') ai_spy_keypad_name8 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 16), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName8.setStatus('mandatory') ai_spy_keypad_code9 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 17), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode9.setStatus('mandatory') ai_spy_keypad_name9 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 18), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName9.setStatus('mandatory') ai_spy_keypad_code10 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 19), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode10.setStatus('mandatory') ai_spy_keypad_name10 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 20), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName10.setStatus('mandatory') ai_spy_keypad_code11 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 21), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode11.setStatus('mandatory') ai_spy_keypad_name11 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 22), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName11.setStatus('mandatory') ai_spy_keypad_code12 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 23), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode12.setStatus('mandatory') ai_spy_keypad_name12 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 24), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName12.setStatus('mandatory') ai_spy_keypad_code13 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 25), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode13.setStatus('mandatory') ai_spy_keypad_name13 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 26), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName13.setStatus('mandatory') ai_spy_keypad_code14 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 27), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode14.setStatus('mandatory') ai_spy_keypad_name14 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 28), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName14.setStatus('mandatory') ai_spy_keypad_code15 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 29), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode15.setStatus('mandatory') ai_spy_keypad_name15 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 30), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName15.setStatus('mandatory') ai_spy_keypad_code16 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 31), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode16.setStatus('mandatory') ai_spy_keypad_name16 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 32), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName16.setStatus('mandatory') ai_spy_keypad_code17 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 33), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode17.setStatus('mandatory') ai_spy_keypad_name17 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 34), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName17.setStatus('mandatory') ai_spy_keypad_code18 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 35), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode18.setStatus('mandatory') ai_spy_keypad_name18 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 36), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName18.setStatus('mandatory') ai_spy_keypad_code19 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 37), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode19.setStatus('mandatory') ai_spy_keypad_name19 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 38), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName19.setStatus('mandatory') ai_spy_keypad_code20 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 39), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadCode20.setStatus('mandatory') ai_spy_keypad_name20 = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 3, 40), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYKeypadName20.setStatus('mandatory') ai_spy_input_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInputVoltage.setStatus('mandatory') ai_spy_on_battery = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('notInstalled', 0), ('installed', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYOnBattery.setStatus('mandatory') ai_spy_low_battery_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 6), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYLowBatteryThreshold.setStatus('mandatory') ai_spy_analog_average = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 60))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYAnalogAverage.setStatus('mandatory') ai_spy_inputs = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3)) ai_spy_input1 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 1)) ai_spy_input1_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notinstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1State.setStatus('mandatory') ai_spy_input1_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput1Reading.setStatus('mandatory') ai_spy_input1_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1Gain.setStatus('mandatory') ai_spy_input1_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1Offset.setStatus('mandatory') ai_spy_input1_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1Label.setStatus('mandatory') ai_spy_input1_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1UOM.setStatus('mandatory') ai_spy_input1_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1HighLimit.setStatus('mandatory') ai_spy_input1_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1LowLimit.setStatus('mandatory') ai_spy_input1_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1RlyControl.setStatus('mandatory') ai_spy_input1_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1Delay.setStatus('mandatory') ai_spy_input1_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1RTNDelay.setStatus('mandatory') ai_spy_input1_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput1Hysteresis.setStatus('mandatory') ai_spy_input2 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 2)) ai_spy_input2_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2State.setStatus('mandatory') ai_spy_input2_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput2Reading.setStatus('mandatory') ai_spy_input2_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2Gain.setStatus('mandatory') ai_spy_input2_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2Offset.setStatus('mandatory') ai_spy_input2_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2Label.setStatus('mandatory') ai_spy_input2_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2UOM.setStatus('mandatory') ai_spy_input2_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2HighLimit.setStatus('mandatory') ai_spy_input2_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2LowLimit.setStatus('mandatory') ai_spy_input2_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2RlyControl.setStatus('mandatory') ai_spy_input2_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2Delay.setStatus('mandatory') ai_spy_input2_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2RTNDelay.setStatus('mandatory') ai_spy_input2_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 2, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput2Hysteresis.setStatus('mandatory') ai_spy_input3 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 3)) ai_spy_input3_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3State.setStatus('mandatory') ai_spy_input3_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput3Reading.setStatus('mandatory') ai_spy_input3_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3Gain.setStatus('mandatory') ai_spy_input3_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3Offset.setStatus('mandatory') ai_spy_input3_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3Label.setStatus('mandatory') ai_spy_input3_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3UOM.setStatus('mandatory') ai_spy_input3_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3HighLimit.setStatus('mandatory') ai_spy_input3_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3LowLimit.setStatus('mandatory') ai_spy_input3_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3RlyControl.setStatus('mandatory') ai_spy_input3_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3Delay.setStatus('mandatory') ai_spy_input3_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3RTNDelay.setStatus('mandatory') ai_spy_input3_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 3, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput3Hysteresis.setStatus('mandatory') ai_spy_input4 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 4)) ai_spy_input4_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4State.setStatus('mandatory') ai_spy_input4_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput4Reading.setStatus('mandatory') ai_spy_input4_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4Gain.setStatus('mandatory') ai_spy_input4_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4Offset.setStatus('mandatory') ai_spy_input4_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4Label.setStatus('mandatory') ai_spy_input4_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4UOM.setStatus('mandatory') ai_spy_input4_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4HighLimit.setStatus('mandatory') ai_spy_input4_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4LowLimit.setStatus('mandatory') ai_spy_input4_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4RlyControl.setStatus('mandatory') ai_spy_input4_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4Delay.setStatus('mandatory') ai_spy_input4_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4RTNDelay.setStatus('mandatory') ai_spy_input4_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 4, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput4Hysteresis.setStatus('mandatory') ai_spy_input5 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 5)) ai_spy_input5_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5State.setStatus('mandatory') ai_spy_input5_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput5Reading.setStatus('mandatory') ai_spy_input5_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5Gain.setStatus('mandatory') ai_spy_input5_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5Offset.setStatus('mandatory') ai_spy_input5_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5Label.setStatus('mandatory') ai_spy_input5_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5UOM.setStatus('mandatory') ai_spy_input5_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5HighLimit.setStatus('mandatory') ai_spy_input5_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5LowLimit.setStatus('mandatory') ai_spy_input5_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5RlyControl.setStatus('mandatory') ai_spy_input5_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5Delay.setStatus('mandatory') ai_spy_input5_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5RTNDelay.setStatus('mandatory') ai_spy_input5_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 5, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput5Hysteresis.setStatus('mandatory') ai_spy_input6 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 6)) ai_spy_input6_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6State.setStatus('mandatory') ai_spy_input6_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput6Reading.setStatus('mandatory') ai_spy_input6_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6Gain.setStatus('mandatory') ai_spy_input6_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6Offset.setStatus('mandatory') ai_spy_input6_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6Label.setStatus('mandatory') ai_spy_input6_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6UOM.setStatus('mandatory') ai_spy_input6_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6HighLimit.setStatus('mandatory') ai_spy_input6_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6LowLimit.setStatus('mandatory') ai_spy_input6_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6RlyControl.setStatus('mandatory') ai_spy_input6_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6Delay.setStatus('mandatory') ai_spy_input6_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6RTNDelay.setStatus('mandatory') ai_spy_input6_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 6, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput6Hysteresis.setStatus('mandatory') ai_spy_input7 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 7)) ai_spy_input7_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7State.setStatus('mandatory') ai_spy_input7_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput7Reading.setStatus('mandatory') ai_spy_input7_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7Gain.setStatus('mandatory') ai_spy_input7_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7Offset.setStatus('mandatory') ai_spy_input7_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7Label.setStatus('mandatory') ai_spy_input7_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7UOM.setStatus('mandatory') ai_spy_input7_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7HighLimit.setStatus('mandatory') ai_spy_input7_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7LowLimit.setStatus('mandatory') ai_spy_input7_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7RlyControl.setStatus('mandatory') ai_spy_input7_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7Delay.setStatus('mandatory') ai_spy_input7_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7RTNDelay.setStatus('mandatory') ai_spy_input7_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 7, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput7Hysteresis.setStatus('mandatory') ai_spy_input8 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 8)) ai_spy_input8_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notInstalled', 1), ('analog-4to20-installed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8State.setStatus('mandatory') ai_spy_input8_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 2), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput8Reading.setStatus('mandatory') ai_spy_input8_gain = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8Gain.setStatus('mandatory') ai_spy_input8_offset = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8Offset.setStatus('mandatory') ai_spy_input8_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 5), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8Label.setStatus('mandatory') ai_spy_input8_uom = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 6), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8UOM.setStatus('mandatory') ai_spy_input8_high_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 7), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8HighLimit.setStatus('mandatory') ai_spy_input8_low_limit = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 8), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8LowLimit.setStatus('mandatory') ai_spy_input8_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 9), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8RlyControl.setStatus('mandatory') ai_spy_input8_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8Delay.setStatus('mandatory') ai_spy_input8_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8RTNDelay.setStatus('mandatory') ai_spy_input8_hysteresis = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 8, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput8Hysteresis.setStatus('mandatory') ai_spy_input9 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 25)) ai_spy_input9_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput9State.setStatus('mandatory') ai_spy_input9_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput9Reading.setStatus('mandatory') ai_spy_input9_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput9Label.setStatus('mandatory') ai_spy_input9_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput9RlyControl.setStatus('mandatory') ai_spy_input9_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput9Delay.setStatus('mandatory') ai_spy_input9_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 25, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput9RTNDelay.setStatus('mandatory') ai_spy_input10 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 26)) ai_spy_input10_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput10State.setStatus('mandatory') ai_spy_input10_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput10Reading.setStatus('mandatory') ai_spy_input10_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput10Label.setStatus('mandatory') ai_spy_input10_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput10RlyControl.setStatus('mandatory') ai_spy_input10_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput10Delay.setStatus('mandatory') ai_spy_input10_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 26, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput10RTNDelay.setStatus('mandatory') ai_spy_input11 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 27)) ai_spy_input11_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput11State.setStatus('mandatory') ai_spy_input11_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput11Reading.setStatus('mandatory') ai_spy_input11_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput11Label.setStatus('mandatory') ai_spy_input11_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput11RlyControl.setStatus('mandatory') ai_spy_input11_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput11Delay.setStatus('mandatory') ai_spy_input11_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 27, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput11RTNDelay.setStatus('mandatory') ai_spy_input12 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 28)) ai_spy_input12_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput12State.setStatus('mandatory') ai_spy_input12_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput12Reading.setStatus('mandatory') ai_spy_input12_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput12Label.setStatus('mandatory') ai_spy_input12_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput12RlyControl.setStatus('mandatory') ai_spy_input12_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput12Delay.setStatus('mandatory') ai_spy_input12_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 28, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput12RTNDelay.setStatus('mandatory') ai_spy_input13 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 29)) ai_spy_input13_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput13State.setStatus('mandatory') ai_spy_input13_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput13Reading.setStatus('mandatory') ai_spy_input13_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput13Label.setStatus('mandatory') ai_spy_input13_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput13RlyControl.setStatus('mandatory') ai_spy_input13_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput13Delay.setStatus('mandatory') ai_spy_input13_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 29, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput13RTNDelay.setStatus('mandatory') ai_spy_input14 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 30)) ai_spy_input14_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput14State.setStatus('mandatory') ai_spy_input14_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput14Reading.setStatus('mandatory') ai_spy_input14_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput14Label.setStatus('mandatory') ai_spy_input14_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput14RlyControl.setStatus('mandatory') ai_spy_input14_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput14Delay.setStatus('mandatory') ai_spy_input14_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 30, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput14RTNDelay.setStatus('mandatory') ai_spy_input15 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 31)) ai_spy_input15_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput15State.setStatus('mandatory') ai_spy_input15_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput15Reading.setStatus('mandatory') ai_spy_input15_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput15Label.setStatus('mandatory') ai_spy_input15_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput15RlyControl.setStatus('mandatory') ai_spy_input15_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput15Delay.setStatus('mandatory') ai_spy_input15_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 31, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput15RTNDelay.setStatus('mandatory') ai_spy_input16 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 32)) ai_spy_input16_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput16State.setStatus('mandatory') ai_spy_input16_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput16Reading.setStatus('mandatory') ai_spy_input16_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput16Label.setStatus('mandatory') ai_spy_input16_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput16RlyControl.setStatus('mandatory') ai_spy_input16_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput16Delay.setStatus('mandatory') ai_spy_input16_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 32, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput16RTNDelay.setStatus('mandatory') ai_spy_input17 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 33)) ai_spy_input17_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput17State.setStatus('mandatory') ai_spy_input17_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput17Reading.setStatus('mandatory') ai_spy_input17_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput17Label.setStatus('mandatory') ai_spy_input17_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput17RlyControl.setStatus('mandatory') ai_spy_input17_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput17Delay.setStatus('mandatory') ai_spy_input17_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 33, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput17RTNDelay.setStatus('mandatory') ai_spy_input18 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 34)) ai_spy_input18_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput18State.setStatus('mandatory') ai_spy_input18_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput18Reading.setStatus('mandatory') ai_spy_input18_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput18Label.setStatus('mandatory') ai_spy_input18_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput18RlyControl.setStatus('mandatory') ai_spy_input18_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput18Delay.setStatus('mandatory') ai_spy_input18_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 34, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput18RTNDelay.setStatus('mandatory') ai_spy_input19 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 35)) ai_spy_input19_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput19State.setStatus('mandatory') ai_spy_input19_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput19Reading.setStatus('mandatory') ai_spy_input19_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput19Label.setStatus('mandatory') ai_spy_input19_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput19RlyControl.setStatus('mandatory') ai_spy_input19_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput19Delay.setStatus('mandatory') ai_spy_input19_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 35, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput19RTNDelay.setStatus('mandatory') ai_spy_input20 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 36)) ai_spy_input20_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput20State.setStatus('mandatory') ai_spy_input20_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput20Reading.setStatus('mandatory') ai_spy_input20_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput20Label.setStatus('mandatory') ai_spy_input20_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput20RlyControl.setStatus('mandatory') ai_spy_input20_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput20Delay.setStatus('mandatory') ai_spy_input20_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 36, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput20RTNDelay.setStatus('mandatory') ai_spy_input21 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 37)) ai_spy_input21_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput21State.setStatus('mandatory') ai_spy_input21_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput21Reading.setStatus('mandatory') ai_spy_input21_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput21Label.setStatus('mandatory') ai_spy_input21_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput21RlyControl.setStatus('mandatory') ai_spy_input21_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput21Delay.setStatus('mandatory') ai_spy_input21_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 37, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput21RTNDelay.setStatus('mandatory') ai_spy_input22 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 38)) ai_spy_input22_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput22State.setStatus('mandatory') ai_spy_input22_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput22Reading.setStatus('mandatory') ai_spy_input22_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput22Label.setStatus('mandatory') ai_spy_input22_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput22RlyControl.setStatus('mandatory') ai_spy_input22_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput22Delay.setStatus('mandatory') ai_spy_input22_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 38, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput22RTNDelay.setStatus('mandatory') ai_spy_input23 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 39)) ai_spy_input23_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput23State.setStatus('mandatory') ai_spy_input23_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput23Reading.setStatus('mandatory') ai_spy_input23_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput23Label.setStatus('mandatory') ai_spy_input23_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput23RlyControl.setStatus('mandatory') ai_spy_input23_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput23Delay.setStatus('mandatory') ai_spy_input23_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 39, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput23RTNDelay.setStatus('mandatory') ai_spy_input24 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 40)) ai_spy_input24_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput24State.setStatus('mandatory') ai_spy_input24_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput24Reading.setStatus('mandatory') ai_spy_input24_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput24Label.setStatus('mandatory') ai_spy_input24_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput24RlyControl.setStatus('mandatory') ai_spy_input24_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput24Delay.setStatus('mandatory') ai_spy_input24_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 40, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput24RTNDelay.setStatus('mandatory') ai_spy_input25 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 41)) ai_spy_input25_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput25State.setStatus('mandatory') ai_spy_input25_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput25Reading.setStatus('mandatory') ai_spy_input25_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput25Label.setStatus('mandatory') ai_spy_input25_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput25RlyControl.setStatus('mandatory') ai_spy_input25_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput25Delay.setStatus('mandatory') ai_spy_input25_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 41, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput25RTNDelay.setStatus('mandatory') ai_spy_input26 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 42)) ai_spy_input26_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput26State.setStatus('mandatory') ai_spy_input26_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput26Reading.setStatus('mandatory') ai_spy_input26_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput26Label.setStatus('mandatory') ai_spy_input26_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput26RlyControl.setStatus('mandatory') ai_spy_input26_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput26Delay.setStatus('mandatory') ai_spy_input26_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 42, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput26RTNDelay.setStatus('mandatory') ai_spy_input27 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 43)) ai_spy_input27_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput27State.setStatus('mandatory') ai_spy_input27_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput27Reading.setStatus('mandatory') ai_spy_input27_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput27Label.setStatus('mandatory') ai_spy_input27_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput27RlyControl.setStatus('mandatory') ai_spy_input27_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput27Delay.setStatus('mandatory') ai_spy_input27_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 43, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput27RTNDelay.setStatus('mandatory') ai_spy_input28 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3, 44)) ai_spy_input28_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4))).clone(namedValues=named_values(('notInstalled', 1), ('digital-no-installed', 3), ('digital-nc-installed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput28State.setStatus('mandatory') ai_spy_input28_reading = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYInput28Reading.setStatus('mandatory') ai_spy_input28_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput28Label.setStatus('mandatory') ai_spy_input28_rly_control = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput28RlyControl.setStatus('mandatory') ai_spy_input28_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput28Delay.setStatus('mandatory') ai_spy_input28_rtn_delay = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 3, 44, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 600))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYInput28RTNDelay.setStatus('mandatory') ai_spy_outputs = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4)) ai_spy_relay1 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 1)) ai_spy_relay1_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay1State.setStatus('mandatory') ai_spy_relay1_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay1Status.setStatus('mandatory') ai_spy_relay1_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay1Label.setStatus('mandatory') ai_spy_relay1_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay1Time.setStatus('mandatory') ai_spy_relay2 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 2)) ai_spy_relay2_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay2State.setStatus('mandatory') ai_spy_relay2_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay2Status.setStatus('mandatory') ai_spy_relay2_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay2Label.setStatus('mandatory') ai_spy_relay2_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay2Time.setStatus('mandatory') ai_spy_relay3 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 3)) ai_spy_relay3_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay3State.setStatus('mandatory') ai_spy_relay3_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay3Status.setStatus('mandatory') ai_spy_relay3_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay3Label.setStatus('mandatory') ai_spy_relay3_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 3, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay3Time.setStatus('mandatory') ai_spy_relay4 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 4)) ai_spy_relay4_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay4State.setStatus('mandatory') ai_spy_relay4_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay4Status.setStatus('mandatory') ai_spy_relay4_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay4Label.setStatus('mandatory') ai_spy_relay4_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 4, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay4Time.setStatus('mandatory') ai_spy_relay5 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 5)) ai_spy_relay5_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay5State.setStatus('mandatory') ai_spy_relay5_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay5Status.setStatus('mandatory') ai_spy_relay5_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay5Label.setStatus('mandatory') ai_spy_relay5_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 5, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay5Time.setStatus('mandatory') ai_spy_relay6 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 4, 6)) ai_spy_relay6_state = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('normallyoff', 1), ('normallyon', 2), ('forceon', 3), ('forceoff', 4), ('keypadcontrolled', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay6State.setStatus('mandatory') ai_spy_relay6_status = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('normaloff', 1), ('normalon', 2), ('forcedon', 3), ('forcedoff', 4), ('keycodeactive', 5), ('alarmedactive', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYRelay6Status.setStatus('mandatory') ai_spy_relay6_label = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay6Label.setStatus('mandatory') ai_spy_relay6_time = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 4, 6, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYRelay6Time.setStatus('mandatory') ai_spy_alarms = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 5)) ai_spy_alarms_present = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 5, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYAlarmsPresent.setStatus('current') ai_spy_alarm_table = mib_table((1, 3, 6, 1, 4, 1, 539, 20, 5, 2)) if mibBuilder.loadTexts: aiSPYAlarmTable.setStatus('current') ai_spy_alarm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1)).setIndexNames((0, 'AISPY-MIB', 'aiSPYAlarmId')) if mibBuilder.loadTexts: aiSPYAlarmEntry.setStatus('current') ai_spy_alarm_id = mib_table_column((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1, 1), integer32()) if mibBuilder.loadTexts: aiSPYAlarmId.setStatus('current') ai_spy_alarm_descr = mib_table_column((1, 3, 6, 1, 4, 1, 539, 20, 5, 2, 1, 2), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYAlarmDescr.setStatus('current') ai_spy_well_known_alarms = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 5, 3)) ai_spy_input1_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 1)) if mibBuilder.loadTexts: aiSPYInput1HighAlarm.setStatus('current') ai_spy_input1_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 2)) if mibBuilder.loadTexts: aiSPYInput1LowAlarm.setStatus('current') ai_spy_input2_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 3)) if mibBuilder.loadTexts: aiSPYInput2HighAlarm.setStatus('current') ai_spy_input2_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 4)) if mibBuilder.loadTexts: aiSPYInput2LowAlarm.setStatus('current') ai_spy_input3_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 5)) if mibBuilder.loadTexts: aiSPYInput3HighAlarm.setStatus('current') ai_spy_input3_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 6)) if mibBuilder.loadTexts: aiSPYInput3LowAlarm.setStatus('current') ai_spy_input4_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 7)) if mibBuilder.loadTexts: aiSPYInput4HighAlarm.setStatus('current') ai_spy_input4_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 8)) if mibBuilder.loadTexts: aiSPYInput4LowAlarm.setStatus('current') ai_spy_input5_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 9)) if mibBuilder.loadTexts: aiSPYInput5HighAlarm.setStatus('current') ai_spy_input5_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 10)) if mibBuilder.loadTexts: aiSPYInput5LowAlarm.setStatus('current') ai_spy_input6_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 11)) if mibBuilder.loadTexts: aiSPYInput6HighAlarm.setStatus('current') ai_spy_input6_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 12)) if mibBuilder.loadTexts: aiSPYInput6LowAlarm.setStatus('current') ai_spy_input7_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 13)) if mibBuilder.loadTexts: aiSPYInput7HighAlarm.setStatus('current') ai_spy_input7_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 14)) if mibBuilder.loadTexts: aiSPYInput7LowAlarm.setStatus('current') ai_spy_input8_high_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 15)) if mibBuilder.loadTexts: aiSPYInput8HighAlarm.setStatus('current') ai_spy_input8_low_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 16)) if mibBuilder.loadTexts: aiSPYInput8LowAlarm.setStatus('current') ai_spy_input1_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 17)) if mibBuilder.loadTexts: aiSPYInput1DigAlarm.setStatus('current') ai_spy_input2_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 18)) if mibBuilder.loadTexts: aiSPYInput2DigAlarm.setStatus('current') ai_spy_input3_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 19)) if mibBuilder.loadTexts: aiSPYInput3DigAlarm.setStatus('current') ai_spy_input4_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 20)) if mibBuilder.loadTexts: aiSPYInput4DigAlarm.setStatus('current') ai_spy_input5_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 21)) if mibBuilder.loadTexts: aiSPYInput5DigAlarm.setStatus('current') ai_spy_input6_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 22)) if mibBuilder.loadTexts: aiSPYInput6DigAlarm.setStatus('current') ai_spy_input7_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 23)) if mibBuilder.loadTexts: aiSPYInput7DigAlarm.setStatus('current') ai_spy_input8_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 24)) if mibBuilder.loadTexts: aiSPYInput8DigAlarm.setStatus('current') ai_spy_input9_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 25)) if mibBuilder.loadTexts: aiSPYInput9DigAlarm.setStatus('current') ai_spy_input10_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 26)) if mibBuilder.loadTexts: aiSPYInput10DigAlarm.setStatus('current') ai_spy_input11_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 27)) if mibBuilder.loadTexts: aiSPYInput11DigAlarm.setStatus('current') ai_spy_input12_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 28)) if mibBuilder.loadTexts: aiSPYInput12DigAlarm.setStatus('current') ai_spy_input13_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 29)) if mibBuilder.loadTexts: aiSPYInput13DigAlarm.setStatus('current') ai_spy_input14_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 30)) if mibBuilder.loadTexts: aiSPYInput14DigAlarm.setStatus('current') ai_spy_input15_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 31)) if mibBuilder.loadTexts: aiSPYInput15DigAlarm.setStatus('current') ai_spy_input16_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 32)) if mibBuilder.loadTexts: aiSPYInput16DigAlarm.setStatus('current') ai_spy_input17_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 33)) if mibBuilder.loadTexts: aiSPYInput17DigAlarm.setStatus('current') ai_spy_input18_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 34)) if mibBuilder.loadTexts: aiSPYInput18DigAlarm.setStatus('current') ai_spy_input19_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 35)) if mibBuilder.loadTexts: aiSPYInput19DigAlarm.setStatus('current') ai_spy_input20_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 36)) if mibBuilder.loadTexts: aiSPYInput20DigAlarm.setStatus('current') ai_spy_input21_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 37)) if mibBuilder.loadTexts: aiSPYInput21DigAlarm.setStatus('current') ai_spy_input22_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 38)) if mibBuilder.loadTexts: aiSPYInput22DigAlarm.setStatus('current') ai_spy_input23_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 39)) if mibBuilder.loadTexts: aiSPYInput23DigAlarm.setStatus('current') ai_spy_input24_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 40)) if mibBuilder.loadTexts: aiSPYInput24DigAlarm.setStatus('current') ai_spy_input25_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 41)) if mibBuilder.loadTexts: aiSPYInput25DigAlarm.setStatus('current') ai_spy_input26_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 42)) if mibBuilder.loadTexts: aiSPYInput26DigAlarm.setStatus('current') ai_spy_input27_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 43)) if mibBuilder.loadTexts: aiSPYInput27DigAlarm.setStatus('current') ai_spy_input28_dig_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 44)) if mibBuilder.loadTexts: aiSPYInput28DigAlarm.setStatus('current') ai_spy_on_battery_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 96)) if mibBuilder.loadTexts: aiSPYOnBatteryAlarm.setStatus('current') ai_spy_low_battery_alarm = object_identity((1, 3, 6, 1, 4, 1, 539, 20, 5, 3, 97)) if mibBuilder.loadTexts: aiSPYLowBatteryAlarm.setStatus('current') ai_spy_traps = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 6)) ai_spy_alarm_entry_added = notification_type((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0, 1)) ai_spy_alarm_entry_removed = notification_type((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0, 2)) ai_spy_access_granted = notification_type((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0, 3)) ai_spy_access_denied = notification_type((1, 3, 6, 1, 4, 1, 539, 20, 6) + (0, 4)) ai_spy_alarm_history = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 7)) ai_spy_alarm_history_entries = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 7, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYAlarmHistoryEntries.setStatus('current') ai_spy_alarm_history_clear = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 7, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clearbuffer', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYAlarmHistoryClear.setStatus('mandatory') ai_spy_alarm_history_table = mib_table((1, 3, 6, 1, 4, 1, 539, 20, 7, 3)) if mibBuilder.loadTexts: aiSPYAlarmHistoryTable.setStatus('current') ai_spy_alarm_history_entry = mib_table_row((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1)).setIndexNames((0, 'AISPY-MIB', 'aiSPYAlarmHistoryId')) if mibBuilder.loadTexts: aiSPYAlarmHistoryEntry.setStatus('current') ai_spy_alarm_history_id = mib_table_column((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1, 1), integer32()) if mibBuilder.loadTexts: aiSPYAlarmHistoryId.setStatus('current') ai_spy_alarm_history_text = mib_table_column((1, 3, 6, 1, 4, 1, 539, 20, 7, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: aiSPYAlarmHistoryText.setStatus('current') ai_spy_trap_settings = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 8)) ai_spy_persistant_traps = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 8, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYPersistantTraps.setStatus('mandatory') ai_spy_alarm_acknowledge = mib_scalar((1, 3, 6, 1, 4, 1, 539, 20, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('acknowledgealarms', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aiSPYAlarmAcknowledge.setStatus('mandatory') ai_spy8124 = mib_identifier((1, 3, 6, 1, 4, 1, 539, 20, 3)) mibBuilder.exportSymbols('AISPY-MIB', aiSPYInput8HighLimit=aiSPYInput8HighLimit, aiSPYInput21=aiSPYInput21, aiSPYInput10Label=aiSPYInput10Label, aiSPYRelay2=aiSPYRelay2, aiSPYKeypadCode12=aiSPYKeypadCode12, aiSPYInput17=aiSPYInput17, aiSPYKeypadCode19=aiSPYKeypadCode19, aiSPYInput19State=aiSPYInput19State, aiSPY8124=aiSPY8124, aiSPYInput15RlyControl=aiSPYInput15RlyControl, aiSPYInput5Delay=aiSPYInput5Delay, aiSPYInput23State=aiSPYInput23State, aiSPYInput7Offset=aiSPYInput7Offset, aiSPYKeypadName4=aiSPYKeypadName4, aiSPYInput1Gain=aiSPYInput1Gain, aiSPYInput19Delay=aiSPYInput19Delay, aiSPYKeypadName11=aiSPYKeypadName11, aiSPYInput3UOM=aiSPYInput3UOM, aiSPYInput7DigAlarm=aiSPYInput7DigAlarm, aiSPYInput5UOM=aiSPYInput5UOM, aiSPYInput23Reading=aiSPYInput23Reading, aiSPYKeypadCode8=aiSPYKeypadCode8, aiSPYInput26RlyControl=aiSPYInput26RlyControl, aiSPYInput16Delay=aiSPYInput16Delay, aiSPYInput20DigAlarm=aiSPYInput20DigAlarm, aiSPYInput18RTNDelay=aiSPYInput18RTNDelay, aiSPYInput19DigAlarm=aiSPYInput19DigAlarm, aiSPYInput5HighLimit=aiSPYInput5HighLimit, aiSPYKeypadCode3=aiSPYKeypadCode3, aiSPYInput18Label=aiSPYInput18Label, aiSPYInput1LowAlarm=aiSPYInput1LowAlarm, aiSPYInput26Label=aiSPYInput26Label, aiSPYKeypadName1=aiSPYKeypadName1, aiSPYInput3LowAlarm=aiSPYInput3LowAlarm, aiSPYInput20Label=aiSPYInput20Label, aiSPYInput6HighAlarm=aiSPYInput6HighAlarm, aiSPYRelay6Status=aiSPYRelay6Status, aiSPYInput7RTNDelay=aiSPYInput7RTNDelay, aiSPYInput6Gain=aiSPYInput6Gain, aiSPYRelay1State=aiSPYRelay1State, aiSPYInput8Label=aiSPYInput8Label, aiSPYInput18DigAlarm=aiSPYInput18DigAlarm, aiSPYInput11Delay=aiSPYInput11Delay, aiSPYInput16Reading=aiSPYInput16Reading, aiSPYInput17State=aiSPYInput17State, aiSPYInput5LowLimit=aiSPYInput5LowLimit, aiSPYAnalogAverage=aiSPYAnalogAverage, aiSPYInput21Delay=aiSPYInput21Delay, aiSPYInput5RTNDelay=aiSPYInput5RTNDelay, aiSPYInput19Reading=aiSPYInput19Reading, aiSPYInput8RlyControl=aiSPYInput8RlyControl, aiSPYKeypadCode16=aiSPYKeypadCode16, aiSPYInput16Label=aiSPYInput16Label, aiSPYInput5State=aiSPYInput5State, aiSPYInput21RTNDelay=aiSPYInput21RTNDelay, aiSPYKeypadCode9=aiSPYKeypadCode9, aiSPYInput14=aiSPYInput14, aiSPYInput14Delay=aiSPYInput14Delay, aiSPYInput13DigAlarm=aiSPYInput13DigAlarm, aiSPYInput10RlyControl=aiSPYInput10RlyControl, aiSPYInput23RlyControl=aiSPYInput23RlyControl, aiSPYOnBatteryAlarm=aiSPYOnBatteryAlarm, aiSPYInput5=aiSPYInput5, aiSPYInput1RTNDelay=aiSPYInput1RTNDelay, aiSPYKeypadName20=aiSPYKeypadName20, aiSPYInput12Delay=aiSPYInput12Delay, aiSPYLowBatteryAlarm=aiSPYLowBatteryAlarm, aiSPYInput18State=aiSPYInput18State, aiSPYInput8Gain=aiSPYInput8Gain, aiSPYInput6UOM=aiSPYInput6UOM, aiSPYRelay3State=aiSPYRelay3State, aiSPYInput23RTNDelay=aiSPYInput23RTNDelay, aiSPYRelay5=aiSPYRelay5, aiSPYInput24State=aiSPYInput24State, aiSPYInput8LowAlarm=aiSPYInput8LowAlarm, aiSPYInput7LowAlarm=aiSPYInput7LowAlarm, aiSPYInput17RlyControl=aiSPYInput17RlyControl, aiSPYInput4Delay=aiSPYInput4Delay, aiSPYInput12RTNDelay=aiSPYInput12RTNDelay, aiSPYInput28Reading=aiSPYInput28Reading, aiSPYInput1=aiSPYInput1, aiSPYInput11State=aiSPYInput11State, aiSPYRelay1Time=aiSPYRelay1Time, aiSPYInput1Offset=aiSPYInput1Offset, aiSPYInput6DigAlarm=aiSPYInput6DigAlarm, aiSPYRelay3Time=aiSPYRelay3Time, aiSPYInput26State=aiSPYInput26State, aiSPYInput22Delay=aiSPYInput22Delay, aiSPYInput9=aiSPYInput9, aiSPYInput20RTNDelay=aiSPYInput20RTNDelay, aiSPYInput25RTNDelay=aiSPYInput25RTNDelay, aiSPYInput27Delay=aiSPYInput27Delay, aiSPYInput17RTNDelay=aiSPYInput17RTNDelay, aiSPYInput26Reading=aiSPYInput26Reading, aiSPYInput5Hysteresis=aiSPYInput5Hysteresis, aiSPYIdent=aiSPYIdent, aiSPYAlarmAcknowledge=aiSPYAlarmAcknowledge, aiSPYAlarmHistoryEntry=aiSPYAlarmHistoryEntry, aiSPYInput2=aiSPYInput2, aiSPYInput3Delay=aiSPYInput3Delay, aiSPYKeypadName14=aiSPYKeypadName14, aiSPYInput21DigAlarm=aiSPYInput21DigAlarm, aiSPYInput3Label=aiSPYInput3Label, aiSPYInput18Reading=aiSPYInput18Reading, aiSPYInput20Reading=aiSPYInput20Reading, aiSPYAlarmHistoryText=aiSPYAlarmHistoryText, aiSPYInput16RlyControl=aiSPYInput16RlyControl, aiSPYInputVoltage=aiSPYInputVoltage, aiSPYInput5Reading=aiSPYInput5Reading, aiSPYKeypadName5=aiSPYKeypadName5, aiSPYInput25DigAlarm=aiSPYInput25DigAlarm, aiSPYInput19RlyControl=aiSPYInput19RlyControl, aiSPYRelay3Status=aiSPYRelay3Status, aiSPYInput13State=aiSPYInput13State, aiSPYInput25RlyControl=aiSPYInput25RlyControl, aiSPYInput8=aiSPYInput8, aiSPY=aiSPY, aiSPYInput27State=aiSPYInput27State, aiSPYInput11Reading=aiSPYInput11Reading, aiSPYRelay2Time=aiSPYRelay2Time, aiSPYIdentSpecific=aiSPYIdentSpecific, aiSPYInput11RlyControl=aiSPYInput11RlyControl, aiSPYKeypadCode17=aiSPYKeypadCode17, aiSPYIdentManufacturer=aiSPYIdentManufacturer, aiSPYInput4LowAlarm=aiSPYInput4LowAlarm, aiSPYInput7Label=aiSPYInput7Label, aiSPYInput2HighLimit=aiSPYInput2HighLimit, aiSPYInput7Reading=aiSPYInput7Reading, aiSPYInput8State=aiSPYInput8State, aiSPYInput12RlyControl=aiSPYInput12RlyControl, aiSPYInput17DigAlarm=aiSPYInput17DigAlarm, aiSPYInput1HighLimit=aiSPYInput1HighLimit, aiSPYRelay5Label=aiSPYRelay5Label, aiSPYInput8LowLimit=aiSPYInput8LowLimit, aiSPYInput7State=aiSPYInput7State, aiSPYInput5LowAlarm=aiSPYInput5LowAlarm, aiSPYInput15Delay=aiSPYInput15Delay, aiSPYInput5Gain=aiSPYInput5Gain, aiSPYInput7RlyControl=aiSPYInput7RlyControl, aiSPYInput14Reading=aiSPYInput14Reading, aiSPYInput1UOM=aiSPYInput1UOM, aiSPYRelay2Label=aiSPYRelay2Label, aiSPYInput6Delay=aiSPYInput6Delay, aiSPYInput1Reading=aiSPYInput1Reading, aiSPYKeypadName13=aiSPYKeypadName13, aiSPYInput20Delay=aiSPYInput20Delay, aiSPYInput15Label=aiSPYInput15Label, aiSPYInput20RlyControl=aiSPYInput20RlyControl, aiSPYInput24=aiSPYInput24, aiSPYInput28State=aiSPYInput28State, aiSPYInput19Label=aiSPYInput19Label, aiSPYInput9Label=aiSPYInput9Label, aiSPYInput7Gain=aiSPYInput7Gain, aiSPYInput4Reading=aiSPYInput4Reading, aiSPYRelay4=aiSPYRelay4, aiSPYInput3Gain=aiSPYInput3Gain, aiSPYAlarmEntry=aiSPYAlarmEntry, aiSPYInput27DigAlarm=aiSPYInput27DigAlarm, aiSPYInput12Reading=aiSPYInput12Reading, aiSPYInput28=aiSPYInput28, aiSPYInput22State=aiSPYInput22State, aiSPYKeypadCode11=aiSPYKeypadCode11, aiSPYDoorAlarmBypass=aiSPYDoorAlarmBypass, aiSPYInput12DigAlarm=aiSPYInput12DigAlarm, aiSPYKeypadName16=aiSPYKeypadName16, aiSPYIdentModel=aiSPYIdentModel, aiSPYInput15Reading=aiSPYInput15Reading, aiSPYInput7Delay=aiSPYInput7Delay, aiSPYInput20=aiSPYInput20, aiSPYKeypadCode20=aiSPYKeypadCode20, aiSPYInput15=aiSPYInput15, aiSPYInput6LowAlarm=aiSPYInput6LowAlarm, aiSPYInput14RTNDelay=aiSPYInput14RTNDelay, aiSPYInput7LowLimit=aiSPYInput7LowLimit, aiSPYKeypadCode10=aiSPYKeypadCode10, aiSPYInput4HighAlarm=aiSPYInput4HighAlarm, aiSPYInput10DigAlarm=aiSPYInput10DigAlarm, aiSPYInput4DigAlarm=aiSPYInput4DigAlarm, aiSPYInput22Label=aiSPYInput22Label, aiSPYTrapSettings=aiSPYTrapSettings, aiSPYKeypadCode18=aiSPYKeypadCode18, aiSPYInput2RTNDelay=aiSPYInput2RTNDelay, aiSPYInput22RTNDelay=aiSPYInput22RTNDelay, aiSPYRelay6State=aiSPYRelay6State, aiSPYInput9RTNDelay=aiSPYInput9RTNDelay, aiSPYRelay4Label=aiSPYRelay4Label, aiSPYRelay2State=aiSPYRelay2State, aiSPYInput10Reading=aiSPYInput10Reading, aiSPYKeypadCode4=aiSPYKeypadCode4, aiSPYInput3Offset=aiSPYInput3Offset, aiSPYInput4State=aiSPYInput4State, aiSPYRelay4Time=aiSPYRelay4Time, aiSPYInput16DigAlarm=aiSPYInput16DigAlarm, aiSPYInput9Delay=aiSPYInput9Delay, aiSPYInput28DigAlarm=aiSPYInput28DigAlarm, aiSPYInput3HighLimit=aiSPYInput3HighLimit, aiSPYInput22Reading=aiSPYInput22Reading, aiSPYInput19=aiSPYInput19, aiSPYInput28Delay=aiSPYInput28Delay, aiSPYKeypadCode15=aiSPYKeypadCode15, aiSPYInput1LowLimit=aiSPYInput1LowLimit, aiSPYInput4RlyControl=aiSPYInput4RlyControl, aiSPYInput8Hysteresis=aiSPYInput8Hysteresis, aiSPYInput17Delay=aiSPYInput17Delay, aiSPYInput27RTNDelay=aiSPYInput27RTNDelay, aiSPYInput4Hysteresis=aiSPYInput4Hysteresis, aiSPYInput26Delay=aiSPYInput26Delay, aiSPYRelay3=aiSPYRelay3, aiSPYInput12State=aiSPYInput12State, aiSPYInput13Delay=aiSPYInput13Delay, aiSPYInput3Hysteresis=aiSPYInput3Hysteresis, aiSPYKeypadCode14=aiSPYKeypadCode14, aiSPYRelay6=aiSPYRelay6, aiSPYWellKnownAlarms=aiSPYWellKnownAlarms, aiSPYAlarms=aiSPYAlarms, aiSPYInput3State=aiSPYInput3State, aiSPYInput24Reading=aiSPYInput24Reading, aiSPYInput1Delay=aiSPYInput1Delay, aiSPYInput24Delay=aiSPYInput24Delay, aiSPYAlarmHistoryEntries=aiSPYAlarmHistoryEntries, aiSPYInput4=aiSPYInput4, aiSPYKeypadName18=aiSPYKeypadName18, aiSPYInput6State=aiSPYInput6State, aiSPYAlarmId=aiSPYAlarmId, aiSPYAccessGranted=aiSPYAccessGranted, aiSPYInput7HighLimit=aiSPYInput7HighLimit, aiSPYKeypadCode13=aiSPYKeypadCode13, aiSPYAlarmEntryRemoved=aiSPYAlarmEntryRemoved, aiSPYKeypadName12=aiSPYKeypadName12, aiSPYInput2State=aiSPYInput2State, aiSPYInput7HighAlarm=aiSPYInput7HighAlarm, aiSPYRelay1Status=aiSPYRelay1Status, aiSPYInput23DigAlarm=aiSPYInput23DigAlarm, aiSPYKeypadCode6=aiSPYKeypadCode6, aiSPYRelay4Status=aiSPYRelay4Status, aiSPYInput22DigAlarm=aiSPYInput22DigAlarm, aiSPYInput4UOM=aiSPYInput4UOM, aiSPYInput26=aiSPYInput26, aiSPYInput26RTNDelay=aiSPYInput26RTNDelay, aiSPYKeypadName6=aiSPYKeypadName6, aiSPYInput3LowLimit=aiSPYInput3LowLimit, aiSPYRelay4State=aiSPYRelay4State, aiSPYInput17Reading=aiSPYInput17Reading, aiSPYInput5RlyControl=aiSPYInput5RlyControl, aiSPYInput6Label=aiSPYInput6Label, aiSPYInput16RTNDelay=aiSPYInput16RTNDelay, aiSPYInput5DigAlarm=aiSPYInput5DigAlarm, aiSPYRelay1=aiSPYRelay1, aiSPYInput6HighLimit=aiSPYInput6HighLimit, aiSPYKeypadCode5=aiSPYKeypadCode5, aiSPYInput3RTNDelay=aiSPYInput3RTNDelay, aiSPYInput7Hysteresis=aiSPYInput7Hysteresis, aiSPYInput3DigAlarm=aiSPYInput3DigAlarm, aiSPYInput15DigAlarm=aiSPYInput15DigAlarm) mibBuilder.exportSymbols('AISPY-MIB', aiSPYInput9DigAlarm=aiSPYInput9DigAlarm, aiSPYAccessDenied=aiSPYAccessDenied, aiSPYInput16State=aiSPYInput16State, aiSPYInput13RTNDelay=aiSPYInput13RTNDelay, aiSPYInput26DigAlarm=aiSPYInput26DigAlarm, aiSPYInput14State=aiSPYInput14State, aiSPYRelay2Status=aiSPYRelay2Status, aiSPYInput4Gain=aiSPYInput4Gain, aiSPYInput10State=aiSPYInput10State, aiSPYKeypadName7=aiSPYKeypadName7, aiSPYInput27RlyControl=aiSPYInput27RlyControl, aiSPYInput3RlyControl=aiSPYInput3RlyControl, aiSPYInput1HighAlarm=aiSPYInput1HighAlarm, aiSPYInput1DigAlarm=aiSPYInput1DigAlarm, aiSPYInput13RlyControl=aiSPYInput13RlyControl, aiSPYInput22=aiSPYInput22, aiSPYInput10RTNDelay=aiSPYInput10RTNDelay, aiSPYInput23Label=aiSPYInput23Label, aiSPYInput24Label=aiSPYInput24Label, aiSPYInput2Offset=aiSPYInput2Offset, aiSPYInput3HighAlarm=aiSPYInput3HighAlarm, aiSPYRelay5Time=aiSPYRelay5Time, aiSPYInput4Offset=aiSPYInput4Offset, aiSPYInput15State=aiSPYInput15State, aiSPYInput8Delay=aiSPYInput8Delay, aiSPYInput6=aiSPYInput6, aiSPYRelay6Time=aiSPYRelay6Time, aiSPYInput2Gain=aiSPYInput2Gain, aiSPYKeypadName15=aiSPYKeypadName15, aiSPYClock=aiSPYClock, aiSPYInput8DigAlarm=aiSPYInput8DigAlarm, aiSPYInput18Delay=aiSPYInput18Delay, aiSPYRelay5Status=aiSPYRelay5Status, aiSPYKeypadName2=aiSPYKeypadName2, aiSPYKeypadName3=aiSPYKeypadName3, aiSPYInput18RlyControl=aiSPYInput18RlyControl, aiSPYInput28RlyControl=aiSPYInput28RlyControl, aiSPYSystem=aiSPYSystem, aiSPYInput14Label=aiSPYInput14Label, aiSPYInput2UOM=aiSPYInput2UOM, aiSPYAlarmsPresent=aiSPYAlarmsPresent, aiSPYAlarmHistoryTable=aiSPYAlarmHistoryTable, aiSPYInput2Delay=aiSPYInput2Delay, aiSPYInput12=aiSPYInput12, aiSPYInput5Label=aiSPYInput5Label, aiSPYInput1State=aiSPYInput1State, aiSPYInput8HighAlarm=aiSPYInput8HighAlarm, aiSPYInput15RTNDelay=aiSPYInput15RTNDelay, aiSPYInput7UOM=aiSPYInput7UOM, aiSPYInput1Hysteresis=aiSPYInput1Hysteresis, aiSPYInput7=aiSPYInput7, aiSPYInput21RlyControl=aiSPYInput21RlyControl, aiSPYAlarmTable=aiSPYAlarmTable, aiSPYInput5HighAlarm=aiSPYInput5HighAlarm, aiSPYInput20State=aiSPYInput20State, aiSPYKeypadName17=aiSPYKeypadName17, aiSPYRelay6Label=aiSPYRelay6Label, aiSPYKeypadName10=aiSPYKeypadName10, aiSPYPersistantTraps=aiSPYPersistantTraps, aiSPYInput2LowAlarm=aiSPYInput2LowAlarm, aiSPYInput21State=aiSPYInput21State, aiSPYInput21Reading=aiSPYInput21Reading, aiSPYInput25=aiSPYInput25, aiSPYInput4LowLimit=aiSPYInput4LowLimit, aiSPYInput3=aiSPYInput3, aiSPYAlarmDescr=aiSPYAlarmDescr, aiSPYInput8UOM=aiSPYInput8UOM, aiSPYKeypadCode1=aiSPYKeypadCode1, aiSPYInput6LowLimit=aiSPYInput6LowLimit, aiSPYInput11=aiSPYInput11, aiSPYInput27=aiSPYInput27, aiSPYKeypadName8=aiSPYKeypadName8, aiSPYInput17Label=aiSPYInput17Label, aiSPYInput13Reading=aiSPYInput13Reading, aiSPYInput11RTNDelay=aiSPYInput11RTNDelay, aiSPYOutputs=aiSPYOutputs, aiSPYInput27Reading=aiSPYInput27Reading, aiSPYInput13=aiSPYInput13, aiSPYKeypadCode2=aiSPYKeypadCode2, aiSPYInput22RlyControl=aiSPYInput22RlyControl, aiSPYLowBatteryThreshold=aiSPYLowBatteryThreshold, aiSPYInput2LowLimit=aiSPYInput2LowLimit, aiSPYInputs=aiSPYInputs, aiSPYInput27Label=aiSPYInput27Label, aiSPYInput14DigAlarm=aiSPYInput14DigAlarm, aiSPYInput2Reading=aiSPYInput2Reading, aiSPYInput9State=aiSPYInput9State, aiSPYIdentSoftwareVersion=aiSPYIdentSoftwareVersion, aiSPYInput2HighAlarm=aiSPYInput2HighAlarm, aiSPYInput11Label=aiSPYInput11Label, aiSPYInput28RTNDelay=aiSPYInput28RTNDelay, aiSPYInput14RlyControl=aiSPYInput14RlyControl, aiSPYInput25Delay=aiSPYInput25Delay, aiSPYInput4HighLimit=aiSPYInput4HighLimit, aiSPYInput6Offset=aiSPYInput6Offset, aiSPYInput23=aiSPYInput23, aiSPYInput25State=aiSPYInput25State, aiSPYInput2Label=aiSPYInput2Label, aiSPYAlarmHistoryId=aiSPYAlarmHistoryId, aiSPYInput8Offset=aiSPYInput8Offset, aiSPYRelay1Label=aiSPYRelay1Label, aiSPYInput1RlyControl=aiSPYInput1RlyControl, aiSPYInput6Hysteresis=aiSPYInput6Hysteresis, aiSPYAlarmEntryAdded=aiSPYAlarmEntryAdded, aiSPYKeypadName19=aiSPYKeypadName19, aiSPYInput16=aiSPYInput16, aiSPYInput2Hysteresis=aiSPYInput2Hysteresis, aiSPYInput28Label=aiSPYInput28Label, aiSPYInput6Reading=aiSPYInput6Reading, aiSPYInput19RTNDelay=aiSPYInput19RTNDelay, aiSPYInput1Label=aiSPYInput1Label, aii=aii, aiSPYKeypadCode7=aiSPYKeypadCode7, aiSPYInput2RlyControl=aiSPYInput2RlyControl, aiSPYInput24RlyControl=aiSPYInput24RlyControl, aiSPYInput24DigAlarm=aiSPYInput24DigAlarm, aiSPYInput2DigAlarm=aiSPYInput2DigAlarm, aiSPYOnBattery=aiSPYOnBattery, aiSPYInput6RTNDelay=aiSPYInput6RTNDelay, aiSPYInput3Reading=aiSPYInput3Reading, aiSPYInput6RlyControl=aiSPYInput6RlyControl, aiSPYInput25Label=aiSPYInput25Label, aiSPYInput8Reading=aiSPYInput8Reading, aiSPYInput21Label=aiSPYInput21Label, aiSPYInput10Delay=aiSPYInput10Delay, aiSPYInput12Label=aiSPYInput12Label, aiSPYAlarmHistory=aiSPYAlarmHistory, aiSPYInput24RTNDelay=aiSPYInput24RTNDelay, aiSPYInput5Offset=aiSPYInput5Offset, aiSPYInput13Label=aiSPYInput13Label, aiSPYInput4RTNDelay=aiSPYInput4RTNDelay, aiSPYRelay5State=aiSPYRelay5State, aiSPYInput23Delay=aiSPYInput23Delay, aiSPYInput11DigAlarm=aiSPYInput11DigAlarm, aiSPYTraps=aiSPYTraps, aiSPYInput9RlyControl=aiSPYInput9RlyControl, aiSPYAlarmHistoryClear=aiSPYAlarmHistoryClear, aiSPYInput18=aiSPYInput18, aiSPYRelay3Label=aiSPYRelay3Label, aiSPYInput4Label=aiSPYInput4Label, aiSPYKeypad=aiSPYKeypad, aiSPYInput8RTNDelay=aiSPYInput8RTNDelay, aiSPYInput10=aiSPYInput10, aiSPYInput9Reading=aiSPYInput9Reading, aiSPYKeypadName9=aiSPYKeypadName9, aiSPYInput25Reading=aiSPYInput25Reading)
class OrangeRicky(): def __init__(self, rotation): self.colour = "O" self.rotation = rotation if rotation == 0: self.coords = [[8, 0], [8, 1], [7, 1], [6, 1]] elif rotation == 1: self.coords = [[8, 2], [7, 2], [7, 1], [7, 0]] elif rotation == 2: self.coords = [[6, 2], [6, 1], [7, 1], [8, 1]] elif rotation == 3: self.coords = [[6, 0], [7, 0], [7, 1], [7, 2]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][0] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][0] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class BlueRicky(): def __init__(self, rotation): self.colour = "DB" self.rotation = rotation if rotation == 0: self.coords = [[6, 0], [6, 1], [7, 1], [8, 1]] elif rotation == 1: self.coords = [[8, 0], [7, 0], [7, 1], [7, 2]] elif rotation == 2: self.coords = [[8, 2], [8, 1], [7, 1], [6, 1]] elif rotation == 3: self.coords = [[6, 2], [7, 2], [7, 1], [7, 0]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][0] += 2 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][0] -= 2 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class CleveZ(): def __init__(self, rotation): self.colour = "R" self.rotation = rotation if rotation == 0: self.coords = [[6, 0], [7, 0], [7, 1], [8, 1]] elif rotation == 1: self.coords = [[8, 0], [8, 1], [7, 1], [7, 2]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][0] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][0] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class RhodeZ(): def __init__(self, rotation): self.colour = "G" self.rotation = rotation if rotation == 0: self.coords = [[8, 0], [7, 0], [7, 1], [6, 1]] elif rotation == 1: self.coords = [[8, 2], [8, 1], [7, 1], [7, 0]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 0 def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class Hero(): def __init__(self, rotation): self.colour = "LB" self.rotation = rotation if rotation == 0: self.coords = [[7, 0], [7, 1], [7, 2], [7, 3]] elif rotation == 1: self.coords = [[6, 1], [7, 1], [8, 1], [9, 1]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] - 1][self.coords[0][1] + 1].getObject() == None and\ board[self.coords[2][0] + 1][self.coords[2][1] - 1].getObject() == None and\ board[self.coords[3][0] + 2][self.coords[3][1] - 2].getObject() == None: self.coords[0][1] += 1 self.coords[0][0] -= 1 self.coords[2][1] -= 1 self.coords[2][0] += 1 self.coords[3][1] -= 2 self.coords[3][0] += 2 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] + 1][self.coords[0][1] - 1].getObject() == None and\ board[self.coords[2][0] - 1][self.coords[2][1] + 1].getObject() == None and\ board[self.coords[3][0] - 2][self.coords[3][1] + 2].getObject() == None: self.coords[0][1] -= 1 self.coords[0][0] += 1 self.coords[2][1] += 1 self.coords[2][0] -= 1 self.coords[3][1] += 2 self.coords[3][0] -= 2 self.rotation = 0 def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class Teewee(): def __init__(self, rotation): self.colour = "P" self.rotation = rotation if rotation == 0: self.coords = [[8, 1], [7, 0], [7, 1], [7, 2]] elif rotation == 1: self.coords = [[7, 2], [8, 1], [7, 1], [6, 1]] elif rotation == 2: self.coords = [[6, 1], [7, 2], [7, 1], [7, 0]] elif rotation == 3: self.coords = [[7, 0], [6, 1], [7, 1], [8, 1]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] - 1][self.coords[0][1] + 1].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][1] += 1 self.coords[0][0] -= 1 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 1][self.coords[0][1] - 1].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None: self.coords[0][1] -= 1 self.coords[0][0] -= 1 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0] + 1][self.coords[0][1] - 1].getObject() == None and\ board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][1] -= 1 self.coords[0][0] += 1 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0] + 1][self.coords[0][1] + 1].getObject() == None and\ board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and\ board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None: self.coords[0][1] += 1 self.coords[0][0] += 1 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 0 def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour class Smashboy(): def __init__(self): self.colour = "Y" self.coords = [[6, 0], [7, 0], [6, 1], [7, 1]] def rotate(self, board): return def moveDown(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveRight(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def moveLeft(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def getCoords(self): return self.coords def getColour(self): return self.colour
class Orangericky: def __init__(self, rotation): self.colour = 'O' self.rotation = rotation if rotation == 0: self.coords = [[8, 0], [8, 1], [7, 1], [6, 1]] elif rotation == 1: self.coords = [[8, 2], [7, 2], [7, 1], [7, 0]] elif rotation == 2: self.coords = [[6, 2], [6, 1], [7, 1], [8, 1]] elif rotation == 3: self.coords = [[6, 0], [7, 0], [7, 1], [7, 2]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][0] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][0] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Bluericky: def __init__(self, rotation): self.colour = 'DB' self.rotation = rotation if rotation == 0: self.coords = [[6, 0], [6, 1], [7, 1], [8, 1]] elif rotation == 1: self.coords = [[8, 0], [7, 0], [7, 1], [7, 2]] elif rotation == 2: self.coords = [[8, 2], [8, 1], [7, 1], [6, 1]] elif rotation == 3: self.coords = [[6, 2], [7, 2], [7, 1], [7, 0]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][0] += 2 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][0] -= 2 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Clevez: def __init__(self, rotation): self.colour = 'R' self.rotation = rotation if rotation == 0: self.coords = [[6, 0], [7, 0], [7, 1], [8, 1]] elif rotation == 1: self.coords = [[8, 0], [8, 1], [7, 1], [7, 2]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] + 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][0] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 2][self.coords[0][1]].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][0] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 0 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Rhodez: def __init__(self, rotation): self.colour = 'G' self.rotation = rotation if rotation == 0: self.coords = [[8, 0], [7, 0], [7, 1], [6, 1]] elif rotation == 1: self.coords = [[8, 2], [8, 1], [7, 1], [7, 0]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0]][self.coords[0][1] + 2].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][1] += 2 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0]][self.coords[0][1] - 2].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][1] -= 2 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 0 def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Hero: def __init__(self, rotation): self.colour = 'LB' self.rotation = rotation if rotation == 0: self.coords = [[7, 0], [7, 1], [7, 2], [7, 3]] elif rotation == 1: self.coords = [[6, 1], [7, 1], [8, 1], [9, 1]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] - 1][self.coords[0][1] + 1].getObject() == None and board[self.coords[2][0] + 1][self.coords[2][1] - 1].getObject() == None and (board[self.coords[3][0] + 2][self.coords[3][1] - 2].getObject() == None): self.coords[0][1] += 1 self.coords[0][0] -= 1 self.coords[2][1] -= 1 self.coords[2][0] += 1 self.coords[3][1] -= 2 self.coords[3][0] += 2 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] + 1][self.coords[0][1] - 1].getObject() == None and board[self.coords[2][0] - 1][self.coords[2][1] + 1].getObject() == None and (board[self.coords[3][0] - 2][self.coords[3][1] + 2].getObject() == None): self.coords[0][1] -= 1 self.coords[0][0] += 1 self.coords[2][1] += 1 self.coords[2][0] -= 1 self.coords[3][1] += 2 self.coords[3][0] -= 2 self.rotation = 0 def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Teewee: def __init__(self, rotation): self.colour = 'P' self.rotation = rotation if rotation == 0: self.coords = [[8, 1], [7, 0], [7, 1], [7, 2]] elif rotation == 1: self.coords = [[7, 2], [8, 1], [7, 1], [6, 1]] elif rotation == 2: self.coords = [[6, 1], [7, 2], [7, 1], [7, 0]] elif rotation == 3: self.coords = [[7, 0], [6, 1], [7, 1], [8, 1]] def rotate(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) if self.rotation == 0: if board[self.coords[0][0] - 1][self.coords[0][1] + 1].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][1] += 1 self.coords[0][0] -= 1 self.coords[1][1] += 1 self.coords[1][0] += 1 self.coords[3][1] -= 1 self.coords[3][0] -= 1 self.rotation = 1 elif self.rotation == 1: if board[self.coords[0][0] - 1][self.coords[0][1] - 1].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] + 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] - 1].getObject() == None): self.coords[0][1] -= 1 self.coords[0][0] -= 1 self.coords[1][1] += 1 self.coords[1][0] -= 1 self.coords[3][1] -= 1 self.coords[3][0] += 1 self.rotation = 2 elif self.rotation == 2: if board[self.coords[0][0] + 1][self.coords[0][1] - 1].getObject() == None and board[self.coords[1][0] - 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] + 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][1] -= 1 self.coords[0][0] += 1 self.coords[1][1] -= 1 self.coords[1][0] -= 1 self.coords[3][1] += 1 self.coords[3][0] += 1 self.rotation = 3 elif self.rotation == 3: if board[self.coords[0][0] + 1][self.coords[0][1] + 1].getObject() == None and board[self.coords[1][0] + 1][self.coords[1][1] - 1].getObject() == None and (board[self.coords[3][0] - 1][self.coords[3][1] + 1].getObject() == None): self.coords[0][1] += 1 self.coords[0][0] += 1 self.coords[1][1] -= 1 self.coords[1][0] += 1 self.coords[3][1] += 1 self.coords[3][0] -= 1 self.rotation = 0 def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour class Smashboy: def __init__(self): self.colour = 'Y' self.coords = [[6, 0], [7, 0], [6, 1], [7, 1]] def rotate(self, board): return def move_down(self, board): for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][1] += 1 self.coords[1][1] += 1 self.coords[2][1] += 1 self.coords[3][1] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_right(self, board): move = True for coord in self.coords: if coord[0] + 1 == 15: return if board[coord[0] + 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] += 1 self.coords[1][0] += 1 self.coords[2][0] += 1 self.coords[3][0] += 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def move_left(self, board): move = True for coord in self.coords: if coord[0] - 1 == -1: return if coord[0] - 1 > -1 and board[coord[0] - 1][coord[1]].getObject() not in [None, self]: move = False if move: for coord in self.coords: board[coord[0]][coord[1]].setObject(None) self.coords[0][0] -= 1 self.coords[1][0] -= 1 self.coords[2][0] -= 1 self.coords[3][0] -= 1 for coord in self.coords: board[coord[0]][coord[1]].setObject(self) def get_coords(self): return self.coords def get_colour(self): return self.colour
""" There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. 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. Return the minimum number of candies you need to have to distribute the candies to the children. Example 1: Input: ratings = [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: ratings = [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. """ """ This is fairly simple - all we have to do set up an initial candies array filled with 1s (as each child gets at least one candy). Then we go along this array going right, checking to see if the rating of the current child is greater than the previous child. If so, we must give the child one more candy than the previous child. We repeat the procedure going left to catch any increases we missed going right. The result is the sum of the candies array after these passes. """ def candy(ratings): len_ratings = len(ratings) candies = [1] * len_ratings for idx in range(1, len_ratings): if ratings[idx] > ratings[idx-1]: candies[idx] = candies[idx-1] + 1 for idx in reversed(range(len_ratings-1)): if ratings[idx] > ratings[idx+1] and candies[idx] <= candies[idx+1]: candies[idx] = candies[idx+1] + 1 return sum(candies) assert candy([1, 0, 2]) == 5 assert candy([1, 2, 2]) == 4 assert candy([1, 2, 2, 1]) == 6 assert candy([1, 2, 3, 3, 4, 1]) == 10
""" There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. 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. Return the minimum number of candies you need to have to distribute the candies to the children. Example 1: Input: ratings = [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: ratings = [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. """ '\nThis is fairly simple - all we have to do set up an initial candies array filled with 1s (as each child gets at least\none candy). Then we go along this array going right, checking to see if the rating of the current child is greater\nthan the previous child. If so, we must give the child one more candy than the previous child. We repeat the procedure\ngoing left to catch any increases we missed going right. The result is the sum of the candies array after these passes.\n' def candy(ratings): len_ratings = len(ratings) candies = [1] * len_ratings for idx in range(1, len_ratings): if ratings[idx] > ratings[idx - 1]: candies[idx] = candies[idx - 1] + 1 for idx in reversed(range(len_ratings - 1)): if ratings[idx] > ratings[idx + 1] and candies[idx] <= candies[idx + 1]: candies[idx] = candies[idx + 1] + 1 return sum(candies) assert candy([1, 0, 2]) == 5 assert candy([1, 2, 2]) == 4 assert candy([1, 2, 2, 1]) == 6 assert candy([1, 2, 3, 3, 4, 1]) == 10
# 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 widthOfBinaryTree(self, root: TreeNode) -> int: if not root: return 0 queue=[[root,0]] max_width=1 while queue: new_queue=[] for node,node_id in queue: if node.left: new_queue.append([node.left,node_id*2]) if node.right: new_queue.append([node.right,node_id*2+1]) if len(new_queue)>=2: max_width=max(max_width,new_queue[-1][1] - new_queue[0][1] + 1) queue=new_queue return max_width
class Solution: def width_of_binary_tree(self, root: TreeNode) -> int: if not root: return 0 queue = [[root, 0]] max_width = 1 while queue: new_queue = [] for (node, node_id) in queue: if node.left: new_queue.append([node.left, node_id * 2]) if node.right: new_queue.append([node.right, node_id * 2 + 1]) if len(new_queue) >= 2: max_width = max(max_width, new_queue[-1][1] - new_queue[0][1] + 1) queue = new_queue return max_width
class AppMetricsError(Exception): pass class InvalidMetricsBackend(AppMetricsError): pass class MetricError(AppMetricsError): pass class TimerError(AppMetricsError): pass
class Appmetricserror(Exception): pass class Invalidmetricsbackend(AppMetricsError): pass class Metricerror(AppMetricsError): pass class Timererror(AppMetricsError): pass
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Const Class # this is a auto generated file generated by Cheetah # Libre Office Version: 7.3 # Namespace: com.sun.star.rendering class PanoseContrast(object): """ Const Class See Also: `API PanoseContrast <https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1rendering_1_1PanoseContrast.html>`_ """ __ooo_ns__: str = 'com.sun.star.rendering' __ooo_full_ns__: str = 'com.sun.star.rendering.PanoseContrast' __ooo_type_name__: str = 'const' ANYTHING = 0 NO_FIT = 1 NONE = 2 VERY_LOW = 3 LOW = 4 MEDIUM_LOW = 5 MEDIUM = 6 MEDIUM_HIGH = 7 HIGH = 8 VERY_HIGH = 9 __all__ = ['PanoseContrast']
class Panosecontrast(object): """ Const Class See Also: `API PanoseContrast <https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1rendering_1_1PanoseContrast.html>`_ """ __ooo_ns__: str = 'com.sun.star.rendering' __ooo_full_ns__: str = 'com.sun.star.rendering.PanoseContrast' __ooo_type_name__: str = 'const' anything = 0 no_fit = 1 none = 2 very_low = 3 low = 4 medium_low = 5 medium = 6 medium_high = 7 high = 8 very_high = 9 __all__ = ['PanoseContrast']
def get_tensor_shape(tensor): shape = [] for s in tensor.shape: if s is None: shape.append(s) else: shape.append(s.value) return tuple(shape)
def get_tensor_shape(tensor): shape = [] for s in tensor.shape: if s is None: shape.append(s) else: shape.append(s.value) return tuple(shape)
class InstaloaderException(Exception): """Base exception for this script. :note: This exception should not be raised directly.""" pass class QueryReturnedBadRequestException(InstaloaderException): pass class QueryReturnedForbiddenException(InstaloaderException): pass class ProfileNotExistsException(InstaloaderException): pass class ProfileHasNoPicsException(InstaloaderException): """ .. deprecated:: 4.2.2 Not raised anymore. """ pass class PrivateProfileNotFollowedException(InstaloaderException): pass class LoginRequiredException(InstaloaderException): pass class TwoFactorAuthRequiredException(InstaloaderException): pass class InvalidArgumentException(InstaloaderException): pass class BadResponseException(InstaloaderException): pass class BadCredentialsException(InstaloaderException): pass class ConnectionException(InstaloaderException): pass class PostChangedException(InstaloaderException): """.. versionadded:: 4.2.2""" pass class QueryReturnedNotFoundException(ConnectionException): pass class TooManyRequestsException(ConnectionException): pass class IPhoneSupportDisabledException(InstaloaderException): pass class AbortDownloadException(Exception): """ Exception that is not catched in the error catchers inside the download loop and so aborts the download loop. This exception is not a subclass of ``InstaloaderException``. .. versionadded:: 4.7 """ pass
class Instaloaderexception(Exception): """Base exception for this script. :note: This exception should not be raised directly.""" pass class Queryreturnedbadrequestexception(InstaloaderException): pass class Queryreturnedforbiddenexception(InstaloaderException): pass class Profilenotexistsexception(InstaloaderException): pass class Profilehasnopicsexception(InstaloaderException): """ .. deprecated:: 4.2.2 Not raised anymore. """ pass class Privateprofilenotfollowedexception(InstaloaderException): pass class Loginrequiredexception(InstaloaderException): pass class Twofactorauthrequiredexception(InstaloaderException): pass class Invalidargumentexception(InstaloaderException): pass class Badresponseexception(InstaloaderException): pass class Badcredentialsexception(InstaloaderException): pass class Connectionexception(InstaloaderException): pass class Postchangedexception(InstaloaderException): """.. versionadded:: 4.2.2""" pass class Queryreturnednotfoundexception(ConnectionException): pass class Toomanyrequestsexception(ConnectionException): pass class Iphonesupportdisabledexception(InstaloaderException): pass class Abortdownloadexception(Exception): """ Exception that is not catched in the error catchers inside the download loop and so aborts the download loop. This exception is not a subclass of ``InstaloaderException``. .. versionadded:: 4.7 """ pass
#!/usr/bin/python3 f = open("day8-input.txt", "r") finput = f.read().split("\n") finput.pop() def get_instruction_set(): instruction_set = [] for i in finput: instruction_set.append({ "instruction" : i.split(' ')[0], "value": int(i.split(' ')[1]), "order": [] }) return instruction_set def run_instruction_set(change, change_line): order = 0 acc = 0 index = 0 i_set = get_instruction_set() i_set[change_line]['instruction'] = change run = True while run: i_set[index]['order'].append(order) order += 1 i = i_set[index] if i['instruction'] == "acc": acc += i['value'] index += 1 elif i['instruction'] == "jmp": index += i['value'] else: index += 1 if (len(i_set) - 1) == index: run = False return True, acc if len(i['order']) > 10: run = False return False, 0 def find_change(): instruction_set = get_instruction_set() for i in range(len(instruction_set)): suc = False acc = 0 if instruction_set[i]['instruction'] == 'jmp': suc, acc = run_instruction_set('nop', i) elif instruction_set[i]['instruction'] == 'nop': suc, acc = run_instruction_set('jmp', i) if suc: print("Run ", i, "Success, Accumulator = ", acc) break find_change()
f = open('day8-input.txt', 'r') finput = f.read().split('\n') finput.pop() def get_instruction_set(): instruction_set = [] for i in finput: instruction_set.append({'instruction': i.split(' ')[0], 'value': int(i.split(' ')[1]), 'order': []}) return instruction_set def run_instruction_set(change, change_line): order = 0 acc = 0 index = 0 i_set = get_instruction_set() i_set[change_line]['instruction'] = change run = True while run: i_set[index]['order'].append(order) order += 1 i = i_set[index] if i['instruction'] == 'acc': acc += i['value'] index += 1 elif i['instruction'] == 'jmp': index += i['value'] else: index += 1 if len(i_set) - 1 == index: run = False return (True, acc) if len(i['order']) > 10: run = False return (False, 0) def find_change(): instruction_set = get_instruction_set() for i in range(len(instruction_set)): suc = False acc = 0 if instruction_set[i]['instruction'] == 'jmp': (suc, acc) = run_instruction_set('nop', i) elif instruction_set[i]['instruction'] == 'nop': (suc, acc) = run_instruction_set('jmp', i) if suc: print('Run ', i, 'Success, Accumulator = ', acc) break find_change()
num = [] par = [] impar = [] for i in range(20): num.append(float(input())) print(num) for i in num: if i % 2 == 0: par.append(i) else: impar.append(i) print(par) print(impar)
num = [] par = [] impar = [] for i in range(20): num.append(float(input())) print(num) for i in num: if i % 2 == 0: par.append(i) else: impar.append(i) print(par) print(impar)
data = '/home/tong.wang001/data/TS/textsimp.train.pt' save_model = 'textsimp' train_from_state_dict = '' train_from = '' curriculum = True extra_shuffle = True batch_size = 64 gpus = [0] layers = 2 rnn_size = 500 word_vec_size = 500 input_feed = 1 brnn_merge = 'concat' max_generator_batches = 32 epochs = 13 start_epoch = 1 param_init = 0.1 optim = 'sgd' max_grad_norm = 5 dropout = 0.3 learning_rate = 1.0 learning_rate_decay = 0.5 start_decay_at = 8 brnn = True log_interval = 50 pre_word_vecs_enc = None pre_word_vecs_dec = None
data = '/home/tong.wang001/data/TS/textsimp.train.pt' save_model = 'textsimp' train_from_state_dict = '' train_from = '' curriculum = True extra_shuffle = True batch_size = 64 gpus = [0] layers = 2 rnn_size = 500 word_vec_size = 500 input_feed = 1 brnn_merge = 'concat' max_generator_batches = 32 epochs = 13 start_epoch = 1 param_init = 0.1 optim = 'sgd' max_grad_norm = 5 dropout = 0.3 learning_rate = 1.0 learning_rate_decay = 0.5 start_decay_at = 8 brnn = True log_interval = 50 pre_word_vecs_enc = None pre_word_vecs_dec = None
#!/usr/bin/python3 count = 0 with open('./input.txt', 'r') as input: list_lines = input.read().split('\n\n') for line in list_lines: count += len({i:line.replace("\n", "").count(i) for i in line.replace("\n", "")}) print(count) input.close()
count = 0 with open('./input.txt', 'r') as input: list_lines = input.read().split('\n\n') for line in list_lines: count += len({i: line.replace('\n', '').count(i) for i in line.replace('\n', '')}) print(count) input.close()
h, n = map(int, input().split()) a = [] b = [] for _ in range(n): ai, bi = map(int, input().split()) a.append(ai) b.append(bi) dp = [float("inf")] * (h + 1) dp[0] = 0 for i in range(h): for j in range(n): index = min(i + a[j], h) dp[index] = min(dp[index], dp[i] + b[j]) print(dp[h])
(h, n) = map(int, input().split()) a = [] b = [] for _ in range(n): (ai, bi) = map(int, input().split()) a.append(ai) b.append(bi) dp = [float('inf')] * (h + 1) dp[0] = 0 for i in range(h): for j in range(n): index = min(i + a[j], h) dp[index] = min(dp[index], dp[i] + b[j]) print(dp[h])
test = { 'name': 'q5', 'points': 3, 'suites': [ { 'cases': [ {'code': '>>> abs(kg_to_newtons(100) - 980) < 0.000001\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> abs(kg_to_newtons(3) - 29.4) < 0.000001\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> abs(kg_to_newtons(47) - 460.6) < 0.000001\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
test = {'name': 'q5', 'points': 3, 'suites': [{'cases': [{'code': '>>> abs(kg_to_newtons(100) - 980) < 0.000001\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> abs(kg_to_newtons(3) - 29.4) < 0.000001\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> abs(kg_to_newtons(47) - 460.6) < 0.000001\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
# 04 February 2018 Functions # Define function using def() def ratio(x,y): """The ratio of 'x' to 'y'.""" return x/y # Define function that always returns the same thing def IReturnOne(): """This returns 1""" return 1 print(ratio(4,2)) print(IReturnOne()) # Function without return argument def think_too_much(): """Express Caesar's skepticism about Cassius """ print("Not too much...") think_too_much() # The function that returns nothing return_val = think_too_much() print() print(return_val) def complement_base(base, material ='DNA'): """Returns the Watson-Crick complement of a base.""" if base == 'A' or base == 'a': if material == 'DNA': return 'T' elif material == 'RNA': return 'U' elif base == 'T' or base == 't' or base == 'U' or base == 'u': return 'A' elif base == 'G' or base == 'g': return 'C' else: return 'G' def reverse_complement(seq,material = 'DNA'): """ Compute reverse complement of a sequence.""" # Initialize reverse complement rev_seq = '' # Loop through and populate list with reverse complement for base in reversed(seq): rev_seq += complement_base(base,material) return rev_seq reversed_sequence = reverse_complement('GCATTGCA') print(reversed_sequence) # Define function displaying template strand above its reverse complement def display_complements(seq): """ Print sequence above its reverse complement.""" # Compute the reverse complement rev_comp = reverse_complement(seq) # Print template print(seq) # Print "base pairs" for base in seq: print('|',end = '') # Print final newline character after base pairs print() # Print reverse complement for base in reversed(rev_comp): print(base, end='') # Print final newline character print() ##### seq = 'GCAGTTGCA' print(seq) print() display_complements(seq) print(reverse_complement('GCAGTTGCA',material='RNA')) # Function checks if triangle is right-angled def is_almost_right(a,b,c): """ Checks if triangle is right-angled.""" # Use sorted(), which gives a sorted list a,b,c = sorted([a,b,c]) # Check to see if it is almost a right triangle if abs(a**2+b**2-c**2) < 1e-12: return True else: return False
def ratio(x, y): """The ratio of 'x' to 'y'.""" return x / y def i_return_one(): """This returns 1""" return 1 print(ratio(4, 2)) print(i_return_one()) def think_too_much(): """Express Caesar's skepticism about Cassius """ print('Not too much...') think_too_much() return_val = think_too_much() print() print(return_val) def complement_base(base, material='DNA'): """Returns the Watson-Crick complement of a base.""" if base == 'A' or base == 'a': if material == 'DNA': return 'T' elif material == 'RNA': return 'U' elif base == 'T' or base == 't' or base == 'U' or (base == 'u'): return 'A' elif base == 'G' or base == 'g': return 'C' else: return 'G' def reverse_complement(seq, material='DNA'): """ Compute reverse complement of a sequence.""" rev_seq = '' for base in reversed(seq): rev_seq += complement_base(base, material) return rev_seq reversed_sequence = reverse_complement('GCATTGCA') print(reversed_sequence) def display_complements(seq): """ Print sequence above its reverse complement.""" rev_comp = reverse_complement(seq) print(seq) for base in seq: print('|', end='') print() for base in reversed(rev_comp): print(base, end='') print() seq = 'GCAGTTGCA' print(seq) print() display_complements(seq) print(reverse_complement('GCAGTTGCA', material='RNA')) def is_almost_right(a, b, c): """ Checks if triangle is right-angled.""" (a, b, c) = sorted([a, b, c]) if abs(a ** 2 + b ** 2 - c ** 2) < 1e-12: return True else: return False
PROCESS_NAME_SET = None PROCESS_DATA = None SERVICE_NAME_SET = None SYSPATH_STR = None SYSPATH_FILE_SET = None SYSTEMROOT_STR = None SYSTEMROOT_FILE_SET = None DRIVERPATH_STR = None DRIVERPATH_FILE_SET = None DRIVERPATH_DATA = None PROFILE_PATH = None USER_DIRS_LIST = None HKEY_USERS_DATA = None PROGRAM_FILES_STR = None PROGRAM_FILESX86_STR = None ENV_VARS = None
process_name_set = None process_data = None service_name_set = None syspath_str = None syspath_file_set = None systemroot_str = None systemroot_file_set = None driverpath_str = None driverpath_file_set = None driverpath_data = None profile_path = None user_dirs_list = None hkey_users_data = None program_files_str = None program_filesx86_str = None env_vars = None
class ShoppingCartItem: def __init__(self, id, name, price, quantity): self.id = id self.name = name self.price = price self.quantity = quantity @property def total_price(self): return self.price * self.quantity
class Shoppingcartitem: def __init__(self, id, name, price, quantity): self.id = id self.name = name self.price = price self.quantity = quantity @property def total_price(self): return self.price * self.quantity
def sort_(arr, temporary=False, reverse=False): # Making copy of array if temporary is true if temporary: ar = arr[:] else: ar = arr # To blend every element # in correct position # length of total array is required length = len(ar) # After each iteration right-most # element is completed sorted while length > 0: # So every next time we iterate only # through un-sorted elements for i in range(0, length - 1): if reverse: # Swapping greater elements to left # and smaller to right # decending order if ar[i] < ar[i + 1]: tmp = ar[i] ar[i] = ar[i + 1] ar[i + 1] = tmp else: # Swapping greater elements to right # and smaller to left # accending order if ar[i] > ar[i + 1]: tmp = ar[i] ar[i] = ar[i + 1] ar[i + 1] = tmp # making sure loop breaks length = length - 1 # if temporary, then returning # copied arr's sorted form # cuz if not returned, then function # is literally of no use if temporary: return ar # See proper explaination # at: https://www.geeksforgeeks.org/bubble-sort/ # a good site! # Testing tests = [[7, 8, 9, 6, 4, 5, 3, 2, 1, 115], [1, 90, 1110, 1312, 1110, 98, 76, 54, 32, 10], ] # Add your test cases for test in tests: print("Orignal:" + str(test)) print("Sorted: " + str(sort_(test, True))) print("Sorted(reverse): " + str(sort_(test, True, True)) + '\n') ''' for test in tests: accend , decend = sort_(test, True), sort_(test, True, True) if accend == sorted(test) and decend == sorted(test, reverse=True): print("Orignal: {}".format(test)) print("Sorted: {}".format(accend)) print("Sorted(reverse): {}\n".format(decend)) else: print("Something went wrong!\n") '''
def sort_(arr, temporary=False, reverse=False): if temporary: ar = arr[:] else: ar = arr length = len(ar) while length > 0: for i in range(0, length - 1): if reverse: if ar[i] < ar[i + 1]: tmp = ar[i] ar[i] = ar[i + 1] ar[i + 1] = tmp elif ar[i] > ar[i + 1]: tmp = ar[i] ar[i] = ar[i + 1] ar[i + 1] = tmp length = length - 1 if temporary: return ar tests = [[7, 8, 9, 6, 4, 5, 3, 2, 1, 115], [1, 90, 1110, 1312, 1110, 98, 76, 54, 32, 10]] for test in tests: print('Orignal:' + str(test)) print('Sorted: ' + str(sort_(test, True))) print('Sorted(reverse): ' + str(sort_(test, True, True)) + '\n') '\nfor test in tests:\n accend , decend = sort_(test, True), sort_(test, True, True)\n if accend == sorted(test) and decend == sorted(test, reverse=True):\n print("Orignal: {}".format(test))\n print("Sorted: {}".format(accend))\n print("Sorted(reverse): {}\n".format(decend))\n else:\n print("Something went wrong!\n") '
def tagWithMostP(dom, tagMaxP=None): for child in dom.findChildren(recursive=False): if child and not child.get('name') == 'p': numMaxP = 0 if tagMaxP: numMaxP = len(tagMaxP.find_all('p', recursive=False)) numCurrentP = len(child.find_all('p', recursive=False)) if numCurrentP > numMaxP: tagMaxP = child tagMaxP = tagWithMostP(dom=child, tagMaxP=tagMaxP) return tagMaxP def pageToArticle(dom): return tagWithMostP(dom)
def tag_with_most_p(dom, tagMaxP=None): for child in dom.findChildren(recursive=False): if child and (not child.get('name') == 'p'): num_max_p = 0 if tagMaxP: num_max_p = len(tagMaxP.find_all('p', recursive=False)) num_current_p = len(child.find_all('p', recursive=False)) if numCurrentP > numMaxP: tag_max_p = child tag_max_p = tag_with_most_p(dom=child, tagMaxP=tagMaxP) return tagMaxP def page_to_article(dom): return tag_with_most_p(dom)
a = [3, 8, 5, 1, 8, 9, 4, 9, 6, 4, 3, 7] b = list (set (a)) for i in range (len(b)): for j in range (i+1,len (b)): if b[i]>b[j]: b[i] , b[j] = b[j], b[i] print (b)
a = [3, 8, 5, 1, 8, 9, 4, 9, 6, 4, 3, 7] b = list(set(a)) for i in range(len(b)): for j in range(i + 1, len(b)): if b[i] > b[j]: (b[i], b[j]) = (b[j], b[i]) print(b)
class Solution(object): def getHint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ bulls = 0 cows = 0 length = len(secret) indexCounted = [] for index in range(0, length): if secret[index] == guess[index]: bulls+=1 indexCounted.append(index) for index in range(0, length): if secret[index] != guess[index]: if guess[index] in secret: ind = [pos for pos, char in enumerate(secret) if char == guess[index]] for i in ind: if i not in indexCounted: cows+=1 indexCounted.append(i) break return "%sA%sB" % (bulls, cows)
class Solution(object): def get_hint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ bulls = 0 cows = 0 length = len(secret) index_counted = [] for index in range(0, length): if secret[index] == guess[index]: bulls += 1 indexCounted.append(index) for index in range(0, length): if secret[index] != guess[index]: if guess[index] in secret: ind = [pos for (pos, char) in enumerate(secret) if char == guess[index]] for i in ind: if i not in indexCounted: cows += 1 indexCounted.append(i) break return '%sA%sB' % (bulls, cows)
def get_input(path): with open(path, 'r') as fh: return fh.read().splitlines() def isValid_part1(rule, password): (r, c) = rule.split(" ") (mini, maxi) = r.split("-") num_of_occur = password.count(c) if num_of_occur < int(mini) or num_of_occur > int(maxi): return False return True def isValid(rule, password): (r, c) = rule.split(" ") (first, second) = r.split("-") first_val = password[int(first)-1] second_val = password[int(second)-1] if (c == first_val and c != second_val) or (c != first_val and c == second_val): return True return False # _file = 'resources/day2_test.txt' _file = 'resources/day2_input.txt' data = get_input(_file) counter = 0 for line in data: (rule, password) = line.split(': ') if isValid_part1(rule, password): counter += 1 print("Day2 - part I:", counter) data = get_input(_file) counter = 0 for line in data: (rule, password) = line.split(': ') if isValid(rule, password): counter += 1 print("Day2 - part II:", counter)
def get_input(path): with open(path, 'r') as fh: return fh.read().splitlines() def is_valid_part1(rule, password): (r, c) = rule.split(' ') (mini, maxi) = r.split('-') num_of_occur = password.count(c) if num_of_occur < int(mini) or num_of_occur > int(maxi): return False return True def is_valid(rule, password): (r, c) = rule.split(' ') (first, second) = r.split('-') first_val = password[int(first) - 1] second_val = password[int(second) - 1] if c == first_val and c != second_val or (c != first_val and c == second_val): return True return False _file = 'resources/day2_input.txt' data = get_input(_file) counter = 0 for line in data: (rule, password) = line.split(': ') if is_valid_part1(rule, password): counter += 1 print('Day2 - part I:', counter) data = get_input(_file) counter = 0 for line in data: (rule, password) = line.split(': ') if is_valid(rule, password): counter += 1 print('Day2 - part II:', counter)
def default(): return { 'columns': [ {'name': 'id', 'type': 'string'}, {'name': 'sku', 'type': 'object'}, {'name': 'name', 'type': 'string'}, {'name': 'type', 'type': 'string'}, {'name': 'kind', 'type': 'string'}, {'name': 'plan', 'type': 'object'}, {'name': 'tags', 'type': 'object'}, {'name': 'location', 'type': 'string'}, {'name': 'properties', 'type': 'object'}, {'name': 'resourceGroup', 'type': 'string'}, {'name': 'subscriptionId', 'type': 'string'}, {'name': 'managedBy', 'type': 'string'}, {'name': 'identity', 'type': 'object'}, {'name': 'zones', 'type': 'object'}, {'name': 'tenantId', 'type': 'string'} ], 'rows': [ [ '/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft.Compute/virtualMachines' '/vmachine1', None, 'vmachine1', 'microsoft.compute/virtualmachines', '', None, None, 'westeurope', { 'provisioningState': 'Succeeded', 'networkProfile': { 'networkInterfaces': [ { 'id': '/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft' '.Network/networkInterfaces/vmachine1960 ' } ] }, 'storageProfile': { 'imageReference': { 'publisher': 'Canonical', 'exactVersion': '18.04.202004290', 'version': 'latest', 'sku': '18.04-LTS', 'offer': 'UbuntuServer' }, 'dataDisks': [], 'osDisk': { 'name': 'vmachine1_disk1_300a88dc334643b187532d00957f5736', 'createOption': 'FromImage', 'diskSizeGB': 30, 'managedDisk': { 'id': '/subscriptions/05aaaafa-6aa1/resourceGroups/VMACHINE/providers/Microsoft' '.Compute/disks/vmachine1_disk1_300a88dc334643b187532d00957f5736', 'storageAccountType': 'Premium_LRS'}, 'caching': 'ReadWrite', 'osType': 'Linux'} }, 'hardwareProfile': { 'vmSize': 'Standard_B1ls'}, 'osProfile': { 'allowExtensionOperations': True, 'secrets': [], 'requireGuestProvisionSignal': True, 'adminUsername': 'buderre', 'linuxConfiguration': { 'disablePasswordAuthentication': False, 'provisionVMAgent': True}, 'computerName': 'vmachine1'}, 'vmId': 'e267230d-b84a-45cd-a212-ca1c26decaf8', 'diagnosticsProfile': { 'bootDiagnostics': { 'enabled': True, 'storageUri': 'https://vmachinediag754.blob.core.windows.net/'} } }, 'vmachine', '05aaaafa-6aa1', '', None, None, 'fead2b37-53d7-4cd9-ad12-d2b6c0751f29'] ] } def simple(): return { 'columns': [ {'name': 'id', 'type': 'string'}, {'name': 'name', 'type': 'string'}, {'name': 'type', 'type': 'string'}, ], 'rows': [ [ '/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft.Compute/virtualMachines' '/vmachine1', 'vmachine1', 'microsoft.compute/virtualmachines' ] ] } def empty(): return { 'columns': [], 'rows': [] }
def default(): return {'columns': [{'name': 'id', 'type': 'string'}, {'name': 'sku', 'type': 'object'}, {'name': 'name', 'type': 'string'}, {'name': 'type', 'type': 'string'}, {'name': 'kind', 'type': 'string'}, {'name': 'plan', 'type': 'object'}, {'name': 'tags', 'type': 'object'}, {'name': 'location', 'type': 'string'}, {'name': 'properties', 'type': 'object'}, {'name': 'resourceGroup', 'type': 'string'}, {'name': 'subscriptionId', 'type': 'string'}, {'name': 'managedBy', 'type': 'string'}, {'name': 'identity', 'type': 'object'}, {'name': 'zones', 'type': 'object'}, {'name': 'tenantId', 'type': 'string'}], 'rows': [['/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft.Compute/virtualMachines/vmachine1', None, 'vmachine1', 'microsoft.compute/virtualmachines', '', None, None, 'westeurope', {'provisioningState': 'Succeeded', 'networkProfile': {'networkInterfaces': [{'id': '/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft.Network/networkInterfaces/vmachine1960 '}]}, 'storageProfile': {'imageReference': {'publisher': 'Canonical', 'exactVersion': '18.04.202004290', 'version': 'latest', 'sku': '18.04-LTS', 'offer': 'UbuntuServer'}, 'dataDisks': [], 'osDisk': {'name': 'vmachine1_disk1_300a88dc334643b187532d00957f5736', 'createOption': 'FromImage', 'diskSizeGB': 30, 'managedDisk': {'id': '/subscriptions/05aaaafa-6aa1/resourceGroups/VMACHINE/providers/Microsoft.Compute/disks/vmachine1_disk1_300a88dc334643b187532d00957f5736', 'storageAccountType': 'Premium_LRS'}, 'caching': 'ReadWrite', 'osType': 'Linux'}}, 'hardwareProfile': {'vmSize': 'Standard_B1ls'}, 'osProfile': {'allowExtensionOperations': True, 'secrets': [], 'requireGuestProvisionSignal': True, 'adminUsername': 'buderre', 'linuxConfiguration': {'disablePasswordAuthentication': False, 'provisionVMAgent': True}, 'computerName': 'vmachine1'}, 'vmId': 'e267230d-b84a-45cd-a212-ca1c26decaf8', 'diagnosticsProfile': {'bootDiagnostics': {'enabled': True, 'storageUri': 'https://vmachinediag754.blob.core.windows.net/'}}}, 'vmachine', '05aaaafa-6aa1', '', None, None, 'fead2b37-53d7-4cd9-ad12-d2b6c0751f29']]} def simple(): return {'columns': [{'name': 'id', 'type': 'string'}, {'name': 'name', 'type': 'string'}, {'name': 'type', 'type': 'string'}], 'rows': [['/subscriptions/05aaaafa-6aa1/resourceGroups/vmachine/providers/Microsoft.Compute/virtualMachines/vmachine1', 'vmachine1', 'microsoft.compute/virtualmachines']]} def empty(): return {'columns': [], 'rows': []}
"""Les ensembles en Python.""" X = set('abcd') Y = set('sbds') print("ensembles de depart".center(50, '-')) print("X=", X) print("Y=", Y) suite = input('\nTaper "Entree" pour la suite') print("appartenance".center(50, '-')) print("'c' appartient a X ?", 'c' in X) print("'a' appartient a Y ?", 'a' in Y) suite = input('\nTaper "Entree" pour la suite') print("difference".center(50, '-')) print("X-Y:", X - Y) print("Y-X:", Y - X) suite = input('\nTaper "Entree" pour la suite') print("union".center(50,'-')) print("X|Y:", X | Y) suite = input('\nTaper "Entree" pour la suite') print("intersection".center(50, '-')) print("X & Y:", X & Y)
"""Les ensembles en Python.""" x = set('abcd') y = set('sbds') print('ensembles de depart'.center(50, '-')) print('X=', X) print('Y=', Y) suite = input('\nTaper "Entree" pour la suite') print('appartenance'.center(50, '-')) print("'c' appartient a X ?", 'c' in X) print("'a' appartient a Y ?", 'a' in Y) suite = input('\nTaper "Entree" pour la suite') print('difference'.center(50, '-')) print('X-Y:', X - Y) print('Y-X:', Y - X) suite = input('\nTaper "Entree" pour la suite') print('union'.center(50, '-')) print('X|Y:', X | Y) suite = input('\nTaper "Entree" pour la suite') print('intersection'.center(50, '-')) print('X & Y:', X & Y)
numbers=[] while True: number=input("Enter a number:") if number=="done": break else: number=float(number) numbers.append(number) continue print("Maximum:",max(numbers)) print("Minimum:",min(numbers))
numbers = [] while True: number = input('Enter a number:') if number == 'done': break else: number = float(number) numbers.append(number) continue print('Maximum:', max(numbers)) print('Minimum:', min(numbers))
def g_load(file): print("file {} loaded as BMP v2".format(file)) return None if __name__ == "__main__": print("Test Bmp.py") print(g_load("test.bmp"))
def g_load(file): print('file {} loaded as BMP v2'.format(file)) return None if __name__ == '__main__': print('Test Bmp.py') print(g_load('test.bmp'))
# Description: Run the AODBW function from the pymolshortcuts.py file to generate photorealistic effect with carbons colored black and all other atoms colored in grayscale. # Source: placeHolder """ cmd.do('cmd.do("AODBW")') """ cmd.do('cmd.do("AODBW")')
""" cmd.do('cmd.do("AODBW")') """ cmd.do('cmd.do("AODBW")')
## Shorty ## Copyright 2009 Joshua Roesslein ## See LICENSE ## @url budurl.com class Budurl(Service): def __init__(self, apikey=None): self.apikey = apikey def _test(self): #prompt for apikey self.apikey = raw_input('budurl apikey: ') Service._test(self) def shrink(self, bigurl, notes=None): if self.apikey is None: raise ShortyError('Must set an apikey') parameters = {'long_url': bigurl, 'api_key': self.apikey} if notes: parameters['notes'] = notes resp = request('http://budurl.com/api/v1/budurls/shrink', parameters) jdata = json.loads(resp.read()) if jdata['success'] != 1: raise ShortyError(jdata['error_message']) else: return str(jdata['budurl']) def expand(self, tinyurl): resp = request('http://budurl.com/api/v1/budurls/expand', {'budurl': tinyurl}) jdata = json.loads(resp.read()) if jdata['success'] != 1: raise ShortyError(jdata['error_message']) else: return str(jdata['long_url'])
class Budurl(Service): def __init__(self, apikey=None): self.apikey = apikey def _test(self): self.apikey = raw_input('budurl apikey: ') Service._test(self) def shrink(self, bigurl, notes=None): if self.apikey is None: raise shorty_error('Must set an apikey') parameters = {'long_url': bigurl, 'api_key': self.apikey} if notes: parameters['notes'] = notes resp = request('http://budurl.com/api/v1/budurls/shrink', parameters) jdata = json.loads(resp.read()) if jdata['success'] != 1: raise shorty_error(jdata['error_message']) else: return str(jdata['budurl']) def expand(self, tinyurl): resp = request('http://budurl.com/api/v1/budurls/expand', {'budurl': tinyurl}) jdata = json.loads(resp.read()) if jdata['success'] != 1: raise shorty_error(jdata['error_message']) else: return str(jdata['long_url'])
def validate_genome(genome, *args, **kwargs): if len(set(e.innov for e in genome.edges)) != len(genome.edges): raise ValueError('Non-unique edge in genome edges.') if len(set(n.innov for n in genome.nodes)) != len(genome.nodes): raise ValueError('Non-unique node in genome node.') for e in genome.edges: if not (e.from_node.innov, e.to_node.innov) in genome.edge_innovs: raise ValueError('Edge innovation not registered.') for e_1, e_2 in zip(genome.edges, genome.edges[1:]): if not e_1.innov < e_2.innov: raise ValueError('Edge innovations are out of order.') for n_1, n_2 in zip(genome.nodes, genome.nodes[1:]): if not n_1.innov < n_2.innov: raise ValueError('Node innovations are out of order.') for n in genome.inputs: if not n.type == 'input': raise ValueError('Non input node in inputs.') for n in genome.outputs: if not n.type == 'output': raise ValueError('Non output node in outputs.')
def validate_genome(genome, *args, **kwargs): if len(set((e.innov for e in genome.edges))) != len(genome.edges): raise value_error('Non-unique edge in genome edges.') if len(set((n.innov for n in genome.nodes))) != len(genome.nodes): raise value_error('Non-unique node in genome node.') for e in genome.edges: if not (e.from_node.innov, e.to_node.innov) in genome.edge_innovs: raise value_error('Edge innovation not registered.') for (e_1, e_2) in zip(genome.edges, genome.edges[1:]): if not e_1.innov < e_2.innov: raise value_error('Edge innovations are out of order.') for (n_1, n_2) in zip(genome.nodes, genome.nodes[1:]): if not n_1.innov < n_2.innov: raise value_error('Node innovations are out of order.') for n in genome.inputs: if not n.type == 'input': raise value_error('Non input node in inputs.') for n in genome.outputs: if not n.type == 'output': raise value_error('Non output node in outputs.')
""" https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/ One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #. _9_ / \ 3 2 / \ / \ 4 1 # 6 / \ / \ / \ # # # # # # For example, the above binary tree can be serialized to the string "9,3,4,#,#,1,#,#,2,#,6,#,#", where # represents a null node. Given a string of comma separated values, verify whether it is a correct preorder traversal serialization of a binary tree. Find an algorithm without reconstructing the tree. Each comma separated value in the string must be either an integer or a character '#' representing null pointer. You may assume that the input format is always valid, for example it could never contain two consecutive commas such as "1,,3". Example 1: Input: "9,3,4,#,#,1,#,#,2,#,6,#,#" Output: true Example 2: Input: "1,#" Output: false Example 3: Input: "9,#,#,1" Output: false """ # time complexity: O(n), space complexity: O(n) # the key is to treat [k, #, #] as a valid binary tree and represent it as # recursively # if the only a # is left in the end, it's a valid b-tree class Solution: def isValidSerialization(self, preorder: str) -> bool: stack = [] nodes = preorder.split(',') if not nodes: return False while nodes: node = nodes.pop(0) stack.append(node) while len(stack) >= 3 and stack[-1] == stack[-2] == '#' and stack[-3] != '#': stack.pop() stack.pop() stack.pop() stack.append('#') if len(stack) == 1 and stack[0] == '#': return True return False
""" https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/ One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #. _9_ / 3 2 / \\ / 4 1 # 6 / \\ / \\ / # # # # # # For example, the above binary tree can be serialized to the string "9,3,4,#,#,1,#,#,2,#,6,#,#", where # represents a null node. Given a string of comma separated values, verify whether it is a correct preorder traversal serialization of a binary tree. Find an algorithm without reconstructing the tree. Each comma separated value in the string must be either an integer or a character '#' representing null pointer. You may assume that the input format is always valid, for example it could never contain two consecutive commas such as "1,,3". Example 1: Input: "9,3,4,#,#,1,#,#,2,#,6,#,#" Output: true Example 2: Input: "1,#" Output: false Example 3: Input: "9,#,#,1" Output: false """ class Solution: def is_valid_serialization(self, preorder: str) -> bool: stack = [] nodes = preorder.split(',') if not nodes: return False while nodes: node = nodes.pop(0) stack.append(node) while len(stack) >= 3 and stack[-1] == stack[-2] == '#' and (stack[-3] != '#'): stack.pop() stack.pop() stack.pop() stack.append('#') if len(stack) == 1 and stack[0] == '#': return True return False
print("enter the two number") n1,n2=map(int,input().split()) print("press + for add") print("press - for subb") print("press * for mul") print("press / for div") e=input() if e == "+": print(n1+n2) elif e == "-": print(n1-n2) elif e == "*": print(n1*n2) elif e == "/": print(n1/n2) else: print("you entered wrong key")
print('enter the two number') (n1, n2) = map(int, input().split()) print('press + for add') print('press - for subb') print('press * for mul') print('press / for div') e = input() if e == '+': print(n1 + n2) elif e == '-': print(n1 - n2) elif e == '*': print(n1 * n2) elif e == '/': print(n1 / n2) else: print('you entered wrong key')
class UndefinedMetricWarning(UserWarning): """Warning used when the metric is invalid .. versionchanged:: 0.18 Moved from sklearn.base. """ class ConvergenceWarning(UserWarning): """Custom warning to capture convergence problems Examples -------- >>> import numpy as np >>> import warnings >>> from sklearn.cluster import KMeans >>> from sklearn.exceptions import ConvergenceWarning >>> warnings.simplefilter("always", ConvergenceWarning) >>> X = np.asarray([[0, 0], ... [0, 1], ... [1, 0], ... [1, 0]]) # last point is duplicated >>> with warnings.catch_warnings(record=True) as w: ... km = KMeans(n_clusters=4).fit(X) ... print(w[-1].message) Number of distinct clusters (3) found smaller than n_clusters (4). Possibly due to duplicate points in X. .. versionchanged:: 0.18 Moved from sklearn.utils. """
class Undefinedmetricwarning(UserWarning): """Warning used when the metric is invalid .. versionchanged:: 0.18 Moved from sklearn.base. """ class Convergencewarning(UserWarning): """Custom warning to capture convergence problems Examples -------- >>> import numpy as np >>> import warnings >>> from sklearn.cluster import KMeans >>> from sklearn.exceptions import ConvergenceWarning >>> warnings.simplefilter("always", ConvergenceWarning) >>> X = np.asarray([[0, 0], ... [0, 1], ... [1, 0], ... [1, 0]]) # last point is duplicated >>> with warnings.catch_warnings(record=True) as w: ... km = KMeans(n_clusters=4).fit(X) ... print(w[-1].message) Number of distinct clusters (3) found smaller than n_clusters (4). Possibly due to duplicate points in X. .. versionchanged:: 0.18 Moved from sklearn.utils. """
recipes,available = {'flour': 500, 'sugar': 200, 'eggs': 1}, {'flour': 1200, 'sugar': 1200, 'eggs': 5, 'milk': 200} print(min([available.get(k,0) // recipes[k] for k in recipes]))
(recipes, available) = ({'flour': 500, 'sugar': 200, 'eggs': 1}, {'flour': 1200, 'sugar': 1200, 'eggs': 5, 'milk': 200}) print(min([available.get(k, 0) // recipes[k] for k in recipes]))
# Program to calculate the gross pay of a worker hours_worked = input("Enter the hours worked:\n") rate = input("Enter the payment rate:\n ") pay = int(hours_worked)*float(rate) print(pay)
hours_worked = input('Enter the hours worked:\n') rate = input('Enter the payment rate:\n ') pay = int(hours_worked) * float(rate) print(pay)
# # PySNMP MIB module A3COM-HUAWEI-QINQ-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-QINQ-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:52:01 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) # h3cCommon, = mibBuilder.importSymbols("A3COM-HUAWEI-OID-MIB", "h3cCommon") ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, Counter32, Unsigned32, Counter64, ModuleIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, IpAddress, Bits, Gauge32, MibIdentifier, NotificationType, iso = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter32", "Unsigned32", "Counter64", "ModuleIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "IpAddress", "Bits", "Gauge32", "MibIdentifier", "NotificationType", "iso") TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString") h3cQINQ = ModuleIdentity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69)) h3cQINQ.setRevisions(('2006-03-10 00:00',)) if mibBuilder.loadTexts: h3cQINQ.setLastUpdated('200603100000Z') if mibBuilder.loadTexts: h3cQINQ.setOrganization('Huawei-3Com Technologies Co., Ltd.') class H3cQinQSwitchState(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("enabled", 1), ("disabled", 2)) h3cQinQMibObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1)) h3cQinQGlobalConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1)) h3cQinQBpduTunnelSwitch = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 1), H3cQinQSwitchState().clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cQinQBpduTunnelSwitch.setStatus('current') h3cQinQEthernetTypeValue = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(33024)).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cQinQEthernetTypeValue.setStatus('current') h3cQinQServiceTPIDValue = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cQinQServiceTPIDValue.setStatus('current') h3cQinQCustomerTPIDValue = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cQinQCustomerTPIDValue.setStatus('current') h3cQinQBpduTunnelTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2), ) if mibBuilder.loadTexts: h3cQinQBpduTunnelTable.setStatus('current') h3cQinQBpduTunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQProtocolIndex")) if mibBuilder.loadTexts: h3cQinQBpduTunnelEntry.setStatus('current') h3cQinQProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("bpdu", 1), ("stp", 2), ("gvrp", 3), ("igmp", 4)))) if mibBuilder.loadTexts: h3cQinQProtocolIndex.setStatus('current') h3cQinQBpduRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQBpduRowStatus.setStatus('current') h3cQinQPriorityRemarkTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3), ) if mibBuilder.loadTexts: h3cQinQPriorityRemarkTable.setStatus('current') h3cQinQPriorityRemarkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQPriorityValue")) if mibBuilder.loadTexts: h3cQinQPriorityRemarkEntry.setStatus('current') h3cQinQPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: h3cQinQPriorityValue.setStatus('current') h3cQinQPriorityRemarkValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQPriorityRemarkValue.setStatus('current') h3cQinQPriorityRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQPriorityRowStatus.setStatus('current') h3cQinQVidTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4), ) if mibBuilder.loadTexts: h3cQinQVidTable.setStatus('current') h3cQinQVidEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQVlanID")) if mibBuilder.loadTexts: h3cQinQVidEntry.setStatus('current') h3cQinQVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))) if mibBuilder.loadTexts: h3cQinQVlanID.setStatus('current') h3cQinQInboundVidListLow = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQInboundVidListLow.setStatus('current') h3cQinQInboundVidListHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQInboundVidListHigh.setStatus('current') h3cQinQVidEthernetType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(33024)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQVidEthernetType.setStatus('current') h3cQinQVidRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQVidRowStatus.setStatus('current') h3cQinQVidSwapTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5), ) if mibBuilder.loadTexts: h3cQinQVidSwapTable.setStatus('current') h3cQinQVidSwapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQVlanID"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQVidSwapOld")) if mibBuilder.loadTexts: h3cQinQVidSwapEntry.setStatus('current') h3cQinQVidSwapOld = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))) if mibBuilder.loadTexts: h3cQinQVidSwapOld.setStatus('current') h3cQinQVidSwapNew = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQVidSwapNew.setStatus('current') h3cQinQVidSwapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQVidSwapRowStatus.setStatus('current') h3cQinQPrioritySwapTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6), ) if mibBuilder.loadTexts: h3cQinQPrioritySwapTable.setStatus('current') h3cQinQPrioritySwapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQVlanID"), (0, "A3COM-HUAWEI-QINQ-MIB", "h3cQinQPrioritySwapOld")) if mibBuilder.loadTexts: h3cQinQPrioritySwapEntry.setStatus('current') h3cQinQPrioritySwapOld = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: h3cQinQPrioritySwapOld.setStatus('current') h3cQinQPrioritySwapNew = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQPrioritySwapNew.setStatus('current') h3cQinQPrioritySwapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQPrioritySwapRowStatus.setStatus('current') h3cQinQIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7), ) if mibBuilder.loadTexts: h3cQinQIfConfigTable.setStatus('current') h3cQinQIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: h3cQinQIfConfigEntry.setStatus('current') h3cQinQIfEthernetType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(33024)).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfEthernetType.setStatus('current') h3cQinQIfSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 2), H3cQinQSwitchState().clone('disabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfSwitch.setStatus('current') h3cQinQIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfRowStatus.setStatus('current') h3cQinQIfServiceTPIDValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfServiceTPIDValue.setStatus('current') h3cQinQIfCustomerTPIDValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfCustomerTPIDValue.setStatus('current') h3cQinQIfUplinkSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 6), H3cQinQSwitchState().clone('disabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfUplinkSwitch.setStatus('current') h3cQinQIfDownlinkSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 7), H3cQinQSwitchState().clone('disabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cQinQIfDownlinkSwitch.setStatus('current') mibBuilder.exportSymbols("A3COM-HUAWEI-QINQ-MIB", h3cQinQPrioritySwapNew=h3cQinQPrioritySwapNew, h3cQinQInboundVidListLow=h3cQinQInboundVidListLow, h3cQinQServiceTPIDValue=h3cQinQServiceTPIDValue, h3cQinQBpduRowStatus=h3cQinQBpduRowStatus, h3cQinQBpduTunnelSwitch=h3cQinQBpduTunnelSwitch, h3cQinQIfConfigEntry=h3cQinQIfConfigEntry, h3cQinQInboundVidListHigh=h3cQinQInboundVidListHigh, h3cQinQIfServiceTPIDValue=h3cQinQIfServiceTPIDValue, PYSNMP_MODULE_ID=h3cQINQ, h3cQinQVidSwapEntry=h3cQinQVidSwapEntry, h3cQinQIfRowStatus=h3cQinQIfRowStatus, h3cQinQIfUplinkSwitch=h3cQinQIfUplinkSwitch, h3cQinQPriorityRemarkValue=h3cQinQPriorityRemarkValue, h3cQinQIfCustomerTPIDValue=h3cQinQIfCustomerTPIDValue, h3cQinQPriorityRowStatus=h3cQinQPriorityRowStatus, h3cQinQPrioritySwapEntry=h3cQinQPrioritySwapEntry, h3cQinQCustomerTPIDValue=h3cQinQCustomerTPIDValue, h3cQinQVidSwapTable=h3cQinQVidSwapTable, h3cQinQIfConfigTable=h3cQinQIfConfigTable, h3cQinQProtocolIndex=h3cQinQProtocolIndex, h3cQINQ=h3cQINQ, h3cQinQGlobalConfigGroup=h3cQinQGlobalConfigGroup, h3cQinQVidSwapOld=h3cQinQVidSwapOld, h3cQinQPriorityRemarkEntry=h3cQinQPriorityRemarkEntry, h3cQinQVidSwapNew=h3cQinQVidSwapNew, h3cQinQIfSwitch=h3cQinQIfSwitch, h3cQinQBpduTunnelEntry=h3cQinQBpduTunnelEntry, h3cQinQEthernetTypeValue=h3cQinQEthernetTypeValue, h3cQinQVidRowStatus=h3cQinQVidRowStatus, h3cQinQMibObject=h3cQinQMibObject, h3cQinQPrioritySwapTable=h3cQinQPrioritySwapTable, h3cQinQVidTable=h3cQinQVidTable, h3cQinQPriorityRemarkTable=h3cQinQPriorityRemarkTable, h3cQinQIfDownlinkSwitch=h3cQinQIfDownlinkSwitch, h3cQinQBpduTunnelTable=h3cQinQBpduTunnelTable, h3cQinQVidSwapRowStatus=h3cQinQVidSwapRowStatus, h3cQinQVlanID=h3cQinQVlanID, h3cQinQIfEthernetType=h3cQinQIfEthernetType, H3cQinQSwitchState=H3cQinQSwitchState, h3cQinQVidEthernetType=h3cQinQVidEthernetType, h3cQinQPriorityValue=h3cQinQPriorityValue, h3cQinQVidEntry=h3cQinQVidEntry, h3cQinQPrioritySwapRowStatus=h3cQinQPrioritySwapRowStatus, h3cQinQPrioritySwapOld=h3cQinQPrioritySwapOld)
(h3c_common,) = mibBuilder.importSymbols('A3COM-HUAWEI-OID-MIB', 'h3cCommon') (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (object_identity, counter32, unsigned32, counter64, module_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, ip_address, bits, gauge32, mib_identifier, notification_type, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter32', 'Unsigned32', 'Counter64', 'ModuleIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'IpAddress', 'Bits', 'Gauge32', 'MibIdentifier', 'NotificationType', 'iso') (textual_convention, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString') h3c_qinq = module_identity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69)) h3cQINQ.setRevisions(('2006-03-10 00:00',)) if mibBuilder.loadTexts: h3cQINQ.setLastUpdated('200603100000Z') if mibBuilder.loadTexts: h3cQINQ.setOrganization('Huawei-3Com Technologies Co., Ltd.') class H3Cqinqswitchstate(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('enabled', 1), ('disabled', 2)) h3c_qin_q_mib_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1)) h3c_qin_q_global_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1)) h3c_qin_q_bpdu_tunnel_switch = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 1), h3c_qin_q_switch_state().clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cQinQBpduTunnelSwitch.setStatus('current') h3c_qin_q_ethernet_type_value = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(33024)).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cQinQEthernetTypeValue.setStatus('current') h3c_qin_q_service_tpid_value = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cQinQServiceTPIDValue.setStatus('current') h3c_qin_q_customer_tpid_value = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cQinQCustomerTPIDValue.setStatus('current') h3c_qin_q_bpdu_tunnel_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2)) if mibBuilder.loadTexts: h3cQinQBpduTunnelTable.setStatus('current') h3c_qin_q_bpdu_tunnel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQProtocolIndex')) if mibBuilder.loadTexts: h3cQinQBpduTunnelEntry.setStatus('current') h3c_qin_q_protocol_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('bpdu', 1), ('stp', 2), ('gvrp', 3), ('igmp', 4)))) if mibBuilder.loadTexts: h3cQinQProtocolIndex.setStatus('current') h3c_qin_q_bpdu_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 2, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQBpduRowStatus.setStatus('current') h3c_qin_q_priority_remark_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3)) if mibBuilder.loadTexts: h3cQinQPriorityRemarkTable.setStatus('current') h3c_qin_q_priority_remark_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQPriorityValue')) if mibBuilder.loadTexts: h3cQinQPriorityRemarkEntry.setStatus('current') h3c_qin_q_priority_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: h3cQinQPriorityValue.setStatus('current') h3c_qin_q_priority_remark_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQPriorityRemarkValue.setStatus('current') h3c_qin_q_priority_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 3, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQPriorityRowStatus.setStatus('current') h3c_qin_q_vid_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4)) if mibBuilder.loadTexts: h3cQinQVidTable.setStatus('current') h3c_qin_q_vid_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQVlanID')) if mibBuilder.loadTexts: h3cQinQVidEntry.setStatus('current') h3c_qin_q_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))) if mibBuilder.loadTexts: h3cQinQVlanID.setStatus('current') h3c_qin_q_inbound_vid_list_low = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256)).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQInboundVidListLow.setStatus('current') h3c_qin_q_inbound_vid_list_high = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256)).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQInboundVidListHigh.setStatus('current') h3c_qin_q_vid_ethernet_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(33024)).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQVidEthernetType.setStatus('current') h3c_qin_q_vid_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQVidRowStatus.setStatus('current') h3c_qin_q_vid_swap_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5)) if mibBuilder.loadTexts: h3cQinQVidSwapTable.setStatus('current') h3c_qin_q_vid_swap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQVlanID'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQVidSwapOld')) if mibBuilder.loadTexts: h3cQinQVidSwapEntry.setStatus('current') h3c_qin_q_vid_swap_old = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))) if mibBuilder.loadTexts: h3cQinQVidSwapOld.setStatus('current') h3c_qin_q_vid_swap_new = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQVidSwapNew.setStatus('current') h3c_qin_q_vid_swap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 5, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQVidSwapRowStatus.setStatus('current') h3c_qin_q_priority_swap_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6)) if mibBuilder.loadTexts: h3cQinQPrioritySwapTable.setStatus('current') h3c_qin_q_priority_swap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQVlanID'), (0, 'A3COM-HUAWEI-QINQ-MIB', 'h3cQinQPrioritySwapOld')) if mibBuilder.loadTexts: h3cQinQPrioritySwapEntry.setStatus('current') h3c_qin_q_priority_swap_old = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: h3cQinQPrioritySwapOld.setStatus('current') h3c_qin_q_priority_swap_new = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQPrioritySwapNew.setStatus('current') h3c_qin_q_priority_swap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 6, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQPrioritySwapRowStatus.setStatus('current') h3c_qin_q_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7)) if mibBuilder.loadTexts: h3cQinQIfConfigTable.setStatus('current') h3c_qin_q_if_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: h3cQinQIfConfigEntry.setStatus('current') h3c_qin_q_if_ethernet_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(33024)).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfEthernetType.setStatus('current') h3c_qin_q_if_switch = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 2), h3c_qin_q_switch_state().clone('disabled')).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfSwitch.setStatus('current') h3c_qin_q_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfRowStatus.setStatus('current') h3c_qin_q_if_service_tpid_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfServiceTPIDValue.setStatus('current') h3c_qin_q_if_customer_tpid_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfCustomerTPIDValue.setStatus('current') h3c_qin_q_if_uplink_switch = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 6), h3c_qin_q_switch_state().clone('disabled')).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfUplinkSwitch.setStatus('current') h3c_qin_q_if_downlink_switch = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 69, 1, 7, 1, 7), h3c_qin_q_switch_state().clone('disabled')).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cQinQIfDownlinkSwitch.setStatus('current') mibBuilder.exportSymbols('A3COM-HUAWEI-QINQ-MIB', h3cQinQPrioritySwapNew=h3cQinQPrioritySwapNew, h3cQinQInboundVidListLow=h3cQinQInboundVidListLow, h3cQinQServiceTPIDValue=h3cQinQServiceTPIDValue, h3cQinQBpduRowStatus=h3cQinQBpduRowStatus, h3cQinQBpduTunnelSwitch=h3cQinQBpduTunnelSwitch, h3cQinQIfConfigEntry=h3cQinQIfConfigEntry, h3cQinQInboundVidListHigh=h3cQinQInboundVidListHigh, h3cQinQIfServiceTPIDValue=h3cQinQIfServiceTPIDValue, PYSNMP_MODULE_ID=h3cQINQ, h3cQinQVidSwapEntry=h3cQinQVidSwapEntry, h3cQinQIfRowStatus=h3cQinQIfRowStatus, h3cQinQIfUplinkSwitch=h3cQinQIfUplinkSwitch, h3cQinQPriorityRemarkValue=h3cQinQPriorityRemarkValue, h3cQinQIfCustomerTPIDValue=h3cQinQIfCustomerTPIDValue, h3cQinQPriorityRowStatus=h3cQinQPriorityRowStatus, h3cQinQPrioritySwapEntry=h3cQinQPrioritySwapEntry, h3cQinQCustomerTPIDValue=h3cQinQCustomerTPIDValue, h3cQinQVidSwapTable=h3cQinQVidSwapTable, h3cQinQIfConfigTable=h3cQinQIfConfigTable, h3cQinQProtocolIndex=h3cQinQProtocolIndex, h3cQINQ=h3cQINQ, h3cQinQGlobalConfigGroup=h3cQinQGlobalConfigGroup, h3cQinQVidSwapOld=h3cQinQVidSwapOld, h3cQinQPriorityRemarkEntry=h3cQinQPriorityRemarkEntry, h3cQinQVidSwapNew=h3cQinQVidSwapNew, h3cQinQIfSwitch=h3cQinQIfSwitch, h3cQinQBpduTunnelEntry=h3cQinQBpduTunnelEntry, h3cQinQEthernetTypeValue=h3cQinQEthernetTypeValue, h3cQinQVidRowStatus=h3cQinQVidRowStatus, h3cQinQMibObject=h3cQinQMibObject, h3cQinQPrioritySwapTable=h3cQinQPrioritySwapTable, h3cQinQVidTable=h3cQinQVidTable, h3cQinQPriorityRemarkTable=h3cQinQPriorityRemarkTable, h3cQinQIfDownlinkSwitch=h3cQinQIfDownlinkSwitch, h3cQinQBpduTunnelTable=h3cQinQBpduTunnelTable, h3cQinQVidSwapRowStatus=h3cQinQVidSwapRowStatus, h3cQinQVlanID=h3cQinQVlanID, h3cQinQIfEthernetType=h3cQinQIfEthernetType, H3cQinQSwitchState=H3cQinQSwitchState, h3cQinQVidEthernetType=h3cQinQVidEthernetType, h3cQinQPriorityValue=h3cQinQPriorityValue, h3cQinQVidEntry=h3cQinQVidEntry, h3cQinQPrioritySwapRowStatus=h3cQinQPrioritySwapRowStatus, h3cQinQPrioritySwapOld=h3cQinQPrioritySwapOld)
def handle_request(): print("hello world!") return "hello world!" if __name__ == '__main__': handle_request()
def handle_request(): print('hello world!') return 'hello world!' if __name__ == '__main__': handle_request()
# ShortTk DownlaodRealeses shell lib Copyright (c) Boubajoker 2021. All right reserved. Project under MIT License. __version__ = "0.0.1 Alpha A-1" __all__ = [ "librairy", "shell", "librairy shell", "downlaod shell lib" ]
__version__ = '0.0.1 Alpha A-1' __all__ = ['librairy', 'shell', 'librairy shell', 'downlaod shell lib']
class Solution(object): def productExceptSelf(self, nums): """ :type nums: List[int] :rtype: List[int] """ answer = [] _len = len(nums) prod = 1 for i in range(_len): answer.append(prod) prod *= nums[i] prod = 1 for i in range(_len - 1, -1, -1): answer[i] *= prod prod *= nums[i] return answer
class Solution(object): def product_except_self(self, nums): """ :type nums: List[int] :rtype: List[int] """ answer = [] _len = len(nums) prod = 1 for i in range(_len): answer.append(prod) prod *= nums[i] prod = 1 for i in range(_len - 1, -1, -1): answer[i] *= prod prod *= nums[i] return answer
string = "Emir Nazira Zarina Aijana Sultan Danil Adis" string = string.replace('Emir', 'Baizak') string = string.replace('Nazira', 'l') print(string)
string = 'Emir Nazira Zarina Aijana Sultan Danil Adis' string = string.replace('Emir', 'Baizak') string = string.replace('Nazira', 'l') print(string)
A, B, C = map(int, input().split()) if A == B: print(C) elif A == C: print(B) else: print(A)
(a, b, c) = map(int, input().split()) if A == B: print(C) elif A == C: print(B) else: print(A)
###### Birthday Cake Candles def birthdayCakeCandles(ar): blown_candle=0 maxi=max(ar) for i in ar: if i==maxi: blown_candle+=1 print(blown_candle) birthdayCakeCandles([3,2,1,3])
def birthday_cake_candles(ar): blown_candle = 0 maxi = max(ar) for i in ar: if i == maxi: blown_candle += 1 print(blown_candle) birthday_cake_candles([3, 2, 1, 3])
i = 1 j = 7 while(i<10): for x in range(3): print("I=%d J=%d" %(i,j)) j += -1 i += 2 j = i + 6
i = 1 j = 7 while i < 10: for x in range(3): print('I=%d J=%d' % (i, j)) j += -1 i += 2 j = i + 6
def check_matrix(mat): O_win = 0 X_win = 0 if mat[:3].count('O') == 3: O_win += 1 if mat[:3].count('X') == 3: X_win += 1 if mat[3:6].count('O') == 3: O_win += 1 if mat[3:6].count('X') == 3: X_win += 1 if mat[6:].count('O') == 3: O_win += 1 if mat[6:].count('X') == 3: X_win += 1 if mat[::3].count('O') == 3: O_win += 1 if mat[::3].count('X') == 3: X_win += 1 if mat[1::3].count('O') == 3: O_win += 1 if mat[1::3].count('X') == 3: X_win += 1 if mat[2::3].count('O') == 3: O_win += 1 if mat[2::3].count('X') == 3: X_win += 1 if mat[::4].count('O') == 3: O_win += 1 if mat[::4].count('X') == 3: X_win += 1 if mat[2:8:2].count('O') == 3: O_win += 1 if mat[2:8:2].count('X') == 3: X_win += 1 return O_win, X_win matrix = list(input()) + list(input()) + list(input()) for x in matrix: if not (x == 'O' or x == 'X' or x == '.'): print('IMPOSSIBLE') exit() a = matrix.count('O') b = matrix.count('X') if a-b == 1: O, X = check_matrix(matrix) if X == 0: print('POSSIBLE') exit() elif a-b == 0: O, X = check_matrix(matrix) if O == 0: print('POSSIBLE') exit() print('IMPOSSIBLE')
def check_matrix(mat): o_win = 0 x_win = 0 if mat[:3].count('O') == 3: o_win += 1 if mat[:3].count('X') == 3: x_win += 1 if mat[3:6].count('O') == 3: o_win += 1 if mat[3:6].count('X') == 3: x_win += 1 if mat[6:].count('O') == 3: o_win += 1 if mat[6:].count('X') == 3: x_win += 1 if mat[::3].count('O') == 3: o_win += 1 if mat[::3].count('X') == 3: x_win += 1 if mat[1::3].count('O') == 3: o_win += 1 if mat[1::3].count('X') == 3: x_win += 1 if mat[2::3].count('O') == 3: o_win += 1 if mat[2::3].count('X') == 3: x_win += 1 if mat[::4].count('O') == 3: o_win += 1 if mat[::4].count('X') == 3: x_win += 1 if mat[2:8:2].count('O') == 3: o_win += 1 if mat[2:8:2].count('X') == 3: x_win += 1 return (O_win, X_win) matrix = list(input()) + list(input()) + list(input()) for x in matrix: if not (x == 'O' or x == 'X' or x == '.'): print('IMPOSSIBLE') exit() a = matrix.count('O') b = matrix.count('X') if a - b == 1: (o, x) = check_matrix(matrix) if X == 0: print('POSSIBLE') exit() elif a - b == 0: (o, x) = check_matrix(matrix) if O == 0: print('POSSIBLE') exit() print('IMPOSSIBLE')
#!/usr/bin/env python3 class Error(Exception): '''Base class for exceptions''' def __init__(self, msg=''): self.message = msg Exception.__init__(self, msg) def __repr__(self): return self.message class InterpolationError(Error): '''Base class for interpolation-related exceptions''' def __init__(self, name, value, msg): Error.__init__(self, msg) self.value = value self.name = name
class Error(Exception): """Base class for exceptions""" def __init__(self, msg=''): self.message = msg Exception.__init__(self, msg) def __repr__(self): return self.message class Interpolationerror(Error): """Base class for interpolation-related exceptions""" def __init__(self, name, value, msg): Error.__init__(self, msg) self.value = value self.name = name
class ActionListener: def __init__(self, function): self.function = function def execute(self): if self.function is not None: self.function()
class Actionlistener: def __init__(self, function): self.function = function def execute(self): if self.function is not None: self.function()
""" Amazon Aurora Labs for MySQL AWS Lambda function to expand directory requests to an index.html file for CloudFront NOTICE: For testing only, the actual code is inline in the CloudFormation template (see ../../../template/site.yml). Dependencies: none License: This sample code is made available under the MIT-0 license. See the LICENSE file. """ # Lambda function handler def lambda_handler(event, context): # Request is the response, too request = event['Records'][0]['cf']['request'] # Check if the URI ends with '/', then append 'index.html' to it if request['uri'].endswith('/'): request['uri'] = request['uri'] + 'index.html' # Return modified request return request
""" Amazon Aurora Labs for MySQL AWS Lambda function to expand directory requests to an index.html file for CloudFront NOTICE: For testing only, the actual code is inline in the CloudFormation template (see ../../../template/site.yml). Dependencies: none License: This sample code is made available under the MIT-0 license. See the LICENSE file. """ def lambda_handler(event, context): request = event['Records'][0]['cf']['request'] if request['uri'].endswith('/'): request['uri'] = request['uri'] + 'index.html' return request
class Ansvar: def __init__(self, id, name, strength, beskrivelse): self.id = id self.name = name self.strength = strength self.description = beskrivelse
class Ansvar: def __init__(self, id, name, strength, beskrivelse): self.id = id self.name = name self.strength = strength self.description = beskrivelse
""" time: c space: c """ class Solution: def groupStrings(self, strings: List[str]) -> List[List[str]]: ans = collections.defaultdict(list) for s in strings: tmp = [] for c in s: tmp.append((ord(s[0]) - ord(c))%26) ans[tuple(tmp)].append(s) return ans.values() def groupStrings(self, strs : List[str]) -> List[List[str]]: hm = collections.defaultdict(list) for s in strs: key = "" for c in s: key = key + str((ord(s[0])- ord(c))%26) hm[key].append(s) return hm.values()
""" time: c space: c """ class Solution: def group_strings(self, strings: List[str]) -> List[List[str]]: ans = collections.defaultdict(list) for s in strings: tmp = [] for c in s: tmp.append((ord(s[0]) - ord(c)) % 26) ans[tuple(tmp)].append(s) return ans.values() def group_strings(self, strs: List[str]) -> List[List[str]]: hm = collections.defaultdict(list) for s in strs: key = '' for c in s: key = key + str((ord(s[0]) - ord(c)) % 26) hm[key].append(s) return hm.values()
#!/bin/python3 # author: Jan Hybs def hex2rgb(hex): """ method will convert given hex color (#00AAFF) to a rgb tuple (R, G, B) """ h = hex.strip('#') return tuple(int(h[i:i + 2], 16) for i in (0, 2, 4)) def rgb2hex(rgb): """ method will convert given rgb tuple (or list) to a hex format (such as #00AAFF) """ return '#%02x%02x%02x' % rgb def rgb2html(rgb, alpha=None): """ method will convert given rgb tuple to html representation rgb(R, G, B) if alpha is set, it will be included rgb(R, G, B, ) """ if alpha is not None: return 'rgba({0:d}, {1:d}, {2:d}, {3:s})'.format( *rgb, alpha if isinstance(alpha, str) else '%1.2f' % float(alpha) ) return 'rgb({0:d}, {1:d}, {2:d})'.format(*rgb) def configurable_html_color(rgb): """ method will return function which take a single argument (float number) and returns a html rgba(R, G, B, A) representation of the color, where A is the argument given to function returned. """ return lambda x: rgb2html(rgb, x)
def hex2rgb(hex): """ method will convert given hex color (#00AAFF) to a rgb tuple (R, G, B) """ h = hex.strip('#') return tuple((int(h[i:i + 2], 16) for i in (0, 2, 4))) def rgb2hex(rgb): """ method will convert given rgb tuple (or list) to a hex format (such as #00AAFF) """ return '#%02x%02x%02x' % rgb def rgb2html(rgb, alpha=None): """ method will convert given rgb tuple to html representation rgb(R, G, B) if alpha is set, it will be included rgb(R, G, B, ) """ if alpha is not None: return 'rgba({0:d}, {1:d}, {2:d}, {3:s})'.format(*rgb, alpha if isinstance(alpha, str) else '%1.2f' % float(alpha)) return 'rgb({0:d}, {1:d}, {2:d})'.format(*rgb) def configurable_html_color(rgb): """ method will return function which take a single argument (float number) and returns a html rgba(R, G, B, A) representation of the color, where A is the argument given to function returned. """ return lambda x: rgb2html(rgb, x)