content
stringlengths 7
1.05M
|
|---|
kwargs = {"a": 1, "b": 2, "c": 3}
print(kwargs.pop("d"))
|
#!/usr/bin/env python3
class Interface:
""" Defines the interface of the padding oracle. """
def oracle(self, ciphertext):
""" This function expects a ciphertext and returns true if there is
no padding error and false otherwise.
Args:
ciphertext (bytes): the ciphertext that should be checked
"""
raise NotImplementedError
def intercept(self):
""" This function should serve a ciphertext by returning it as
bytes-object. If you know the initialization vector you should use
it as prefix of the returned ciphertext in order to decrypt the whole
message (of course except the IV).
"""
raise NotImplementedError
|
'''
单例模式
保证一个类仅有一个实例,并提供一个访问它的全局访问点。
主要解决:一个全局使用的类频繁地创建与销毁。
何时使用:当您想控制实例数目,节省系统资源的时候。
'''
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class MsgBox(metaclass=Singleton):
def __init__(self) -> None:
self.ref = 1
def showMessage(self):
print("Hello World[%d]" % self.ref)
self.ref += 1
class MsgBox2():
def __init__(self) -> None:
self.ref = 1
def showMessage(self):
print("Hello World[%d]" % self.ref)
self.ref += 1
MsgBox().showMessage()
MsgBox().showMessage()
MsgBox().showMessage()
MsgBox().showMessage()
MsgBox2().showMessage()
MsgBox2().showMessage()
MsgBox2().showMessage()
MsgBox2().showMessage()
|
#!/usr/bin/env python3
def reverse_str(name: str) -> str:
""" Reverses a string """
name_lst = list(name)
name_lst.reverse()
ret = ''
for i in range(len(name_lst)):
ret += name_lst[i]
return ret
|
print("Printing n fibonacci numbers")
i=1
x=0
y=1
p=int(input("How many numbers would you like to have displayed: "))
while(i<=p):
print(x,end=' ')
s=x+y
x=y
y=s
i=i+1
print("\n\nEnd of Program\n")
print("Press \"Enter key\" to exit")
u=input()
|
# Write your solutions for 1.5 here!
class Superheros:
def __init__(self, name,superpower, strengh):
self.name = name
self.superpower = superpower
self.strengh = strengh
def name_strengh(self):
print("the name of the superhero is: " + self.name +",his strengh level is: "+str(self.strengh))
def save_civilian(self, work):
if work > self.strengh:
print("not enough power :(")
else:
self.strengh -= work
print("the amount of strengh left in your hero is "+str(self.strengh))
hero = Superheros("noam", "flying", 11)
hero.name_strengh()
hero.save_civilian(2)
|
A=[[1,2, 8], [3, 7,4]]
B=[[5,6, 9], [7,6 ,0]]
c=[]
for i in range(len(A)): #range of len gives me indecesc.
c.append([])
for j in range(len(A[i])):
sum = A[i][j]+B[i][j]
c[i].append(sum)
print(c)
# for i in range(len(A)): #range of len gives me indeces
# for j in range(len(A[i])): #again indeces
# sum = A[i][j]+B[i][j]
# rowlist.append(sum)
# print(rowlist)
# rowlist =[]
|
# output shape openpose keypoints for body, hands, and face
body_keypoints_num = 25
left_hand_keyp_num = 21
right_hand_keyp_num = 21
face_keyp_num = 51
face_contour_keyp_num = 17
|
class Hello:
def __init__(self, name):
self.name = name
def say(self):
print('Hello!,', self.name)
|
class A:
def __init__(self):
super().__init__()
print("A")
class B(A):
def __init__(self):
super().__init__()
print("B")
class C:
def __init__(self):
super().__init__()
print("C")
class D(B, C):
def __init__(self):
super().__init__()
print("D")
if "main" in __name__:
D()
|
class ServiceError(Exception):
pass
class LicenceError(Exception):
pass
class AccountError(Exception):
pass
class RateLimited(Exception):
pass
codeToError = {
0: "There was an error contacting the ProfanityBlocker service. Please try again later.",
104: "There was an error with your licence for ProfanityBlocker. Please check your licence is valid and active and try again.",
102: "There was an error with your account. Please try again later.",
999: "You have sent too many requests than you have paid for in your package, you can either upgrade your package or wait."
}
CodeToException = {
0: ServiceError,
102: AccountError,
104: LicenceError,
999: RateLimited,
103: ServiceError,
101: ServiceError
}
def RaiseError(Code):
raise CodeToException[Code](codeToError[Code])
|
with open("../pokemon_type_relations.csv", "r") as reader:
header = reader.readline().split(",") # Read header
while True:
line = reader.readline()
if not line:
break
line = line.split(",")
attacker = line[0]
weak = []
strong = []
immune = []
for i in range(0, len(line)):
if line[i] == "0":
immune.append(header[i])
if line[i] == "2":
strong.append(header[i])
if line[i] == "0.5":
weak.append(header[i])
with open("../pokemon_type_strength.csv", "a") as appender:
for strong_against in strong:
appender.write(attacker + "," + strong_against+"\n")
with open("../pokemon_type_weakness.csv", "a") as appender:
for weak_against in weak:
appender.write(attacker + "," + weak_against+"\n")
with open("../pokemon_type_immune.csv", "a") as appender:
for immune_against in immune:
appender.write(immune_against + "," + attacker+"\n")
|
def dobro(n=0, formato=False):
res = n*2
return res if formato is False else moeda(res)
def metade(n=0, formato=False):
res = n/2
return res if formato is False else moeda(res)
def aumento(n=0, formato=False):
res = n + (n * 0.1)
return res if formato is False else moeda(res)
def diminuir(n=0, formato=False):
res = n - (n * 0.15)
return res if formato is False else moeda(res)
def moeda(n=0, moeda="R$"):
return f"{moeda} {n:.2f}".replace(".", ",")
def resumo(n=0, taxaa=10, taxar=5):
print("-"*30)
print("RESUMO DO VALOR".center(30))
print("-"*30)
print(f"Preço analisado: \t{moeda(n)}")
print(f"Dobro do preço: \t{dobro(n, True)}")
print(f"Metade do preço: \t{metade(n, True)}")
print(f"10% de aumento: \t{aumento(n, True)}")
print(f"15% de redução: \t{diminuir(n, True)}")
print("-"*30)
|
#Criei uma função e esta recebeu parâmetros.
def funcaoParametros(Par1,Par2):
print(Par1+" "+"é a mãe da"+" "+Par2)
#Vou chamar a função, passando o valor dos parâmetros:
funcaoParametros("Renata","Rafaela")
#Criei nova função com parâmetro que retorna um valor.
def funcaoMultiplica(x):
return x * x
#Vou chamar a função, atribuir seu retorno a uma variável e imprimir a variável:
f=funcaoMultiplica(5)
print(f)
#Posso mandar imprimir direto, chamando a função com um valor atribuído:
print(funcaoMultiplica(2))
|
"""
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
# Solution 1: Solve the challenge:
# "Can you solve it without using extra space?"
#
# Hint:
# 1. like 102 Linked List Cycle, you can figure out if there is a cycle
# 2. if there is a cycle, move slow point to head, and move both points at the same speed until they meet
#
# Figure:
# (1)- * - * - * -(2)- * - #
# | |
# * - * - *
#
# Assume that they first meet at '#‘, you can prove that
# distance(1 -> 2) = distance(# -> 2) + n * length of cycle (n = 0, 1, 2, ...)
# So if moving distance(1 -> 2) steps, you can return to the origin of the cycle
class Solution:
"""
@param: head: The first node of linked list.
@return: The node where the cycle begins. if there is no cycle, return null
"""
def detectCycle(self, head):
# write your code here
slow = fast = head
while slow and fast:
slow = slow.next
fast = fast.next.next if fast.next else None
if slow and slow is fast:
slow = head
while slow is not fast:
slow = slow.next
fast = fast.next
return slow
return None
|
TIPOS = (('P', 'PASAPORTE'), ('I', 'CARTA DE IDENTIDAD EXTRANJERA'), ('N', 'NIE O TARJETA ESPAÑOLA DE EXTRANJEROS'),
('P', 'PASAPORTE'), ('I', 'CARTA DE IDENTIDAD EXTRANJERA'), ('N', 'NIE O TARJETA ESPAÑOLA DE EXTRANJEROS'),
('X', 'PERMISO DE RESIDENCIA DE ESTADO MIEMBRO DE LA UE'), ('', 'SELECCIONAR...'), ('D', 'DNI'),
('P', 'PASAPORTE'), ('C', 'PERMISO CONDUCIR ESPAÑOL'))
TIPO_ESPANA = (('', 'SELECCIONAR...'), ('D', 'DNI'), ('P', 'PASAPORTE'), ('C', 'PERMISO CONDUCIR ESPAÑOL'))
TIPO_UE = (('P', 'PASAPORTE'), ('I', 'CARTA DE IDENTIDAD EXTRANJERA'), ('N', 'NIE O TARJETA ESPAÑOLA DE EXTRANJEROS'),
('X', 'PERMISO DE RESIDENCIA DE ESTADO MIEMBRO DE LA UE'))
TIPO_OTRO = (('P', 'PASAPORTE'), ('I', 'CARTA DE IDENTIDAD EXTRANJERA'), ('N', 'NIE O TARJETA ESPAÑOLA DE EXTRANJEROS'))
p = (
'Alemania', 'Austria', 'Bulgaria', 'Bélgica', 'Chipre', 'Croacia', 'Dinamarca', 'Eslovaquia', 'Eslovenia', 'España',
'Estonia', '', 'Finlandia', 'Francia', 'Grecia', 'Hungria', 'Irlanda', 'Islandia', 'Italia', 'Letonia',
'Liechtenstein',
'Lituania', 'Luxemburgo', '', 'Malta', 'Noruega', 'Paises Bajos', 'Polonia', 'Portugal', 'Reino Unido',
'República Checa', 'Rumania', 'Suecia')
P = (
'ALEMANIA', 'AUSTRIA', 'BULGARIA', 'BELGICA', 'CHIPRE', 'CROACIA', 'DINAMARCA', 'ESLOVAQUIA', 'ESLOVENIA', 'ESPAÑA',
'ESTONIA', 'FINLANDIA', 'FRANCIA', 'GRECIA', 'HUNGRIA', 'IRLANDA', 'ISLANDIA', 'ITALIA', 'LETONIA', 'LIECHTENSTEIN',
'LITUANIA', 'LUXEMBURGO', 'MALTA', 'NORUEGA', 'PAISES BAJOS', 'POLONIA', 'PORTUGAL', 'REINO UNIDO',
'REPUBLICA CHECA', 'RUMANIA', 'SUECIA')
PAISES_EU = [('A9103AAAAA', 'ALEMANIA'), ('A9104AAAAA', 'AUSTRIA'), ('A9105AAAAA', 'BELGICA'),
('A9134AAAAA', 'BULGARIA'), ('A9107AAAAA', 'CHIPRE'), ('A9140AAAAA', 'CROACIA'),
('A9108AAAAA', 'DINAMARCA'), ('A9158AAAAA', 'ESLOVAQUIA'), ('A9141AAAAA', 'ESLOVENIA'),
('A9109AAAAA', 'ESPAÑA'), ('A9137AAAAA', 'ESTONIA'), ('A9110AAAAA', 'FINLANDIA'),
('A9111AAAAA', 'FRANCIA'), ('A9113AAAAA', 'GRECIA'), ('A9114AAAAA', 'HUNGRIA'), ('A9115AAAAA', 'IRLANDA'),
('A9116AAAAA', 'ISLANDIA'), ('A9117AAAAA', 'ITALIA'), ('A9138AAAAA', 'LETONIA'),
('A9118AAAAA', 'LIECHTENSTEIN'), ('A9139AAAAA', 'LITUANIA'), ('A9119AAAAA', 'LUXEMBURGO'),
('A9120AAAAA', 'MALTA'), ('A9122AAAAA', 'NORUEGA'), ('A9123AAA1A', 'PAISES BAJOS'),
('A9124AAAAA', 'POLONIA'), ('A9125AAAAA', 'PORTUGAL'), ('A9112AAA1A', 'REINO UNIDO'),
('A9157AAAAA', 'REPUBLICA CHECA'), ('A9127AAAAA', 'RUMANIA'), ('A9128AAAAA', 'SUECIA')]
PAISES_EU_CODES = ['A9103AAAAA', 'A9104AAAAA', 'A9105AAAAA', 'A9134AAAAA', 'A9107AAAAA', 'A9140AAAAA', 'A9108AAAAA',
'A9158AAAAA', 'A9141AAAAA', 'A9109AAAAA', 'A9137AAAAA', 'A9110AAAAA', 'A9111AAAAA', 'A9113AAAAA',
'A9114AAAAA', 'A9115AAAAA', 'A9116AAAAA', 'A9117AAAAA', 'A9138AAAAA', 'A9118AAAAA', 'A9139AAAAA',
'A9119AAAAA', 'A9120AAAAA', 'A9122AAAAA', 'A9123AAA1A', 'A9124AAAAA', 'A9125AAAAA', 'A9112AAA1A',
'A9157AAAAA', 'A9127AAAAA', 'A9128AAAAA']
|
N = int(input())
vals1 = [int(a) for a in input().split()]
vals2 = [int(a) for a in input().split()]
total = 0
for i in range(N):
h1, h2 = vals1[i], vals1[i + 1]
width = vals2[i]
h_dif = abs(h1 - h2)
min_h = min(h1, h2)
total += min_h * width
total += (h_dif * width) / 2
print(total)
|
WIDTH = 16
HEIGHT = 32
FIRST = 0
LAST = 255
_FONT = \
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x60\x06\x60\x06\xc0\x03\xc0\x03\xcc\x33\xcc\x33\xc0\x03\xc0\x03\xc0\x03\xc0\x03\xcf\xf3\xcf\xf3\xc3\xc3\xc3\xc3\xc0\x03\xc0\x03\x60\x06\x60\x06\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x7f\xfe\x7f\xfe\xff\xff\xff\xff\xf3\xcf\xf3\xcf\xff\xff\xff\xff\xff\xff\xff\xff\xf0\x0f\xf0\x0f\xfc\x3f\xfc\x3f\xff\xff\xff\xff\x7f\xfe\x7f\xfe\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x78\x1e\x78\x3f\xfc\x3f\xfc\x7f\xfe\x7f\xfe\x7f\xfe\x7f\xfe\x7f\xfe\x7f\xfe\x3f\xfc\x3f\xfc\x1f\xf8\x1f\xf8\x07\xe0\x07\xe0\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x80\x01\x80\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0f\xf0\x0f\xf0\x1f\xf8\x1f\xf8\x0f\xf0\x0f\xf0\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x03\xe0\x03\xe0\x03\xe0\x03\xe0\x1d\xdc\x1d\xdc\x3f\xfe\x3f\xfe\x3f\xfe\x3f\xfe\x1d\xdc\x1d\xdc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x1f\xfc\x1f\xfc\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x7f\xff\x1d\xdc\x1d\xdc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x0f\xf0\x0f\xf0\x0f\xf0\x0f\xf0\x03\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfc\x3f\xfc\x3f\xf0\x0f\xf0\x0f\xf0\x0f\xf0\x0f\xfc\x3f\xfc\x3f\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x3c\x3c\x3c\x3c\x30\x0c\x30\x0c\x30\x0c\x30\x0c\x3c\x3c\x3c\x3c\x0f\xf0\x0f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xf0\x0f\xf0\x0f\xc3\xc3\xc3\xc3\xcf\xf3\xcf\xf3\xcf\xf3\xcf\xf3\xc3\xc3\xc3\xc3\xf0\x0f\xf0\x0f\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f\x00\x7f\x00\x1f\x00\x1f\x00\x3b\x00\x3b\x00\x70\x00\x70\x07\xe0\x07\xe0\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x07\xe0\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x03\xe0\x0e\x38\x0e\x38\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x03\xe0\x03\xe0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1f\xfc\x1f\xfc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xff\x0f\xff\x0e\x07\x0e\x07\x0f\xff\x0f\xff\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x3e\x00\x3e\x00\x7e\x00\x7e\x00\x3c\x00\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfe\x1f\xfe\x1c\x0e\x1c\x0e\x1f\xfe\x1f\xfe\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x0e\x1c\x1e\x1c\x1e\x3c\x3e\x3c\x3e\x7c\x1c\x7c\x1c\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x39\xce\x39\xce\x1d\xdc\x1d\xdc\x0f\xf8\x0f\xf8\x7e\x3f\x7e\x3f\x0f\xf8\x0f\xf8\x1d\xdc\x1d\xdc\x39\xce\x39\xce\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\x30\x00\x3c\x00\x3c\x00\x3f\x00\x3f\x00\x3f\xc0\x3f\xc0\x3f\xf0\x3f\xf0\x3f\xfc\x3f\xfc\x3f\xf0\x3f\xf0\x3f\xc0\x3f\xc0\x3f\x00\x3f\x00\x3c\x00\x3c\x00\x30\x00\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x3c\x00\x3c\x00\xfc\x00\xfc\x03\xfc\x03\xfc\x0f\xfc\x0f\xfc\x3f\xfc\x3f\xfc\x0f\xfc\x0f\xfc\x03\xfc\x03\xfc\x00\xfc\x00\xfc\x00\x3c\x00\x3c\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x1d\xdc\x1d\xdc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1d\xdc\x1d\xdc\x07\xf0\x07\xf0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x00\x00\x00\x00\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xff\x1f\xff\x71\xce\x71\xce\x71\xce\x71\xce\x71\xce\x71\xce\x71\xce\x71\xce\x1f\xce\x1f\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x01\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x0e\x00\x0e\x00\x03\xe0\x03\xe0\x0e\x38\x0e\x38\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0e\x38\x0e\x38\x03\xe0\x03\xe0\x00\x38\x00\x38\x38\x0e\x38\x0e\x0f\xf8\x0f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xff\x3f\xff\x3f\xff\x3f\xff\x3f\xff\x3f\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x1d\xdc\x1d\xdc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1d\xdc\x1d\xdc\x07\xf0\x07\xf0\x01\xc0\x01\xc0\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x1d\xdc\x1d\xdc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1d\xdc\x1d\xdc\x07\xf0\x07\xf0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x00\x1c\x00\x1c\x3f\xff\x3f\xff\x00\x1c\x00\x1c\x00\x70\x00\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x0e\x00\x0e\x00\x3f\xff\x3f\xff\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xff\x3f\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x7f\xfe\x7f\xfe\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x80\x01\x80\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0f\xf0\x0f\xf0\x1f\xf8\x1f\xf8\x3f\xfc\x3f\xfc\x7f\xfe\x7f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f\xfe\x7f\xfe\x3f\xfc\x3f\xfc\x1f\xf8\x1f\xf8\x0f\xf0\x0f\xf0\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x7f\xfe\x7f\xfe\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x7f\xfe\x7f\xfe\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x01\x80\x01\x80\x0f\xf0\x0f\xf0\x39\x9c\x39\x9c\x71\x8e\x71\x8e\x71\x80\x71\x80\x39\x80\x39\x80\x0f\xf0\x0f\xf0\x01\x9c\x01\x9c\x01\x8e\x01\x8e\x71\x8e\x71\x8e\x39\x9c\x39\x9c\x0f\xf0\x0f\xf0\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x1c\x1e\x1c\x1e\x38\x1e\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x3c\x0e\x3c\x1c\x3c\x1c\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xc0\x07\xc0\x1c\x70\x1c\x70\x38\x38\x38\x38\x1c\x70\x1c\x70\x07\xc0\x07\xc0\x0f\xce\x0f\xce\x38\xfc\x38\xfc\x70\x78\x70\x78\x70\x78\x70\x78\x38\xfc\x38\xfc\x0f\xce\x0f\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x38\x0e\x38\x03\xe0\x03\xe0\x3f\xfe\x3f\xfe\x03\xe0\x03\xe0\x0e\x38\x0e\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x3f\xfe\x3f\xfe\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x03\xc0\x03\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x03\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x00\x1c\x00\x38\x00\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xe0\x07\xe0\x1c\x38\x1c\x38\x38\x3c\x38\x3c\x38\x7c\x38\x7c\x38\xdc\x38\xdc\x39\x9c\x39\x9c\x3b\x1c\x3b\x1c\x3e\x1c\x3e\x1c\x3c\x1c\x3c\x1c\x1c\x38\x1c\x38\x07\xe0\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x03\xc0\x03\xc0\x0f\xc0\x0f\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x1c\x38\x1c\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x00\x1c\x00\x38\x00\x38\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x1c\x38\x1c\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x01\xf0\x01\xf0\x00\x1c\x00\x1c\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x38\x1c\x38\x1c\x0f\xf0\x0f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x01\xf0\x03\xf0\x03\xf0\x07\x70\x07\x70\x0e\x70\x0e\x70\x1c\x70\x1c\x70\x38\x70\x38\x70\x3f\xfc\x3f\xfc\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xf0\x3f\xf0\x00\x1c\x00\x1c\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x38\x1c\x38\x1c\x0f\xf0\x0f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x00\x1c\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf8\x3f\xf8\x00\x38\x00\x38\x00\x38\x00\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x0e\x1c\x0e\x07\xfe\x07\xfe\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x0f\xf0\x0f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x07\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x00\x0e\x00\x0e\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\x70\x00\x70\x00\x38\x00\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xe0\x07\xe0\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x00\x38\x00\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x1c\x38\x1c\x70\x0e\x70\x0e\x71\xfe\x71\xfe\x73\x8e\x73\x8e\x73\x8e\x73\x8e\x73\x8e\x73\x8e\x71\xfc\x71\xfc\x70\x00\x70\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x3f\xfc\x3f\xfc\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xe0\x3f\xe0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xe0\x3f\xe0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x3e\x38\x3e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x00\x1c\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x03\xe0\x03\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x38\x1c\x38\x1c\x70\x1c\x70\x1c\xe0\x1c\xe0\x1d\xc0\x1d\xc0\x1f\x80\x1f\x80\x1f\x80\x1f\x80\x1d\xc0\x1d\xc0\x1c\xe0\x1c\xe0\x1c\x70\x1c\x70\x1c\x38\x1c\x38\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x78\x1e\x78\x1e\x7c\x3e\x7c\x3e\x7e\x7e\x7e\x7e\x77\xee\x77\xee\x73\xce\x73\xce\x71\x8e\x71\x8e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x3c\x0e\x3c\x0e\x3e\x0e\x3e\x0e\x3f\x0e\x3f\x0e\x3b\x8e\x3b\x8e\x39\xce\x39\xce\x38\xee\x38\xee\x38\x7e\x38\x7e\x38\x3e\x38\x3e\x38\x1e\x38\x1e\x38\x0e\x38\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\xee\x38\xee\x1c\x7c\x1c\x7c\x07\xf8\x07\xf8\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x38\xe0\x38\xe0\x38\x70\x38\x70\x38\x38\x38\x38\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x1c\x38\x1c\x70\x0e\x70\x0e\x70\x00\x70\x00\x38\x00\x38\x00\x0f\xf0\x0f\xf0\x00\x1c\x00\x1c\x00\x0e\x00\x0e\x70\x0e\x70\x0e\x38\x1c\x38\x1c\x0f\xf0\x0f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x0e\x70\x0e\x70\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x70\x0e\x71\x8e\x71\x8e\x73\xce\x73\xce\x77\xee\x77\xee\x3e\x7c\x3e\x7c\x1c\x38\x1c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x0e\x70\x0e\x70\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x07\x70\x07\x70\x03\xe0\x03\xe0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x1c\x00\x1c\x00\x38\x00\x38\x00\x70\x00\x70\x00\xe0\x00\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x00\x0e\x00\x1c\x00\x1c\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x00\x1c\x00\x0e\x00\x0e\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\x70\x00\x70\x00\x38\x00\x38\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x07\x00\x07\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xe0\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xf8\x3f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x0e\x38\x0e\x0f\xf8\x0f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x07\xfe\x07\xfe\x1c\x0e\x1c\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x0f\xf0\x0f\xf0\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x1f\xf8\x1f\xf8\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3b\xf8\x3b\xf8\x3c\x0e\x3c\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x00\x70\x00\x70\x00\x00\x00\x00\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\xe0\x00\xe0\x0f\x80\x0f\x80\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x38\x0e\x38\x0e\x70\x0e\x70\x0e\xe0\x0e\xe0\x0f\xc0\x0f\xc0\x0e\xe0\x0e\xe0\x0e\x70\x0e\x70\x0e\x38\x0e\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x78\x3e\x78\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x39\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xe0\x3f\xe0\x38\x38\x38\x38\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x1c\x38\x1c\x3f\xf0\x3f\xf0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xfe\x07\xfe\x1c\x0e\x1c\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x0e\x1c\x0e\x07\xfe\x07\xfe\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x38\x1c\x38\x1c\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xfc\x0f\xfc\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x00\x0e\x00\x0e\x1f\xf8\x1f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1f\xfc\x1f\xfc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x0e\x70\x0e\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x0e\x70\x0e\x70\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x39\xce\x39\xce\x3b\xee\x3b\xee\x1f\x7c\x1f\x7c\x0e\x38\x0e\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x38\x1c\x38\x0e\x70\x0e\x70\x07\xe0\x07\xe0\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x07\x70\x07\x70\x03\xe0\x03\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x00\x0e\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x1c\x00\x1c\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x00\x1c\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x01\xc0\x01\xc0\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x1e\x00\x1e\x00\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x01\xc0\x01\xc0\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x1f\x00\x03\x80\x03\x80\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x78\x00\x78\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x03\x80\x03\x80\x1f\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x9e\x07\x9e\x3c\xf0\x3c\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\x70\x07\x70\x1c\x1c\x1c\x1c\x70\x07\x70\x07\x70\x07\x70\x07\x7f\xff\x7f\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf8\x07\xf8\x1c\x0e\x1c\x0e\x38\x06\x38\x06\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x06\x38\x06\x1c\x0e\x1c\x0e\x07\xf8\x07\xf8\x00\x38\x00\x38\x00\x1c\x00\x1c\x0f\xf8\x0f\xf8\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\xe0\x00\xe0\x03\x80\x03\x80\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\x70\x07\x70\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x07\x00\x01\xc0\x01\xc0\x00\x70\x00\x70\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x03\xe0\x0e\x38\x0e\x38\x03\xe0\x03\xe0\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x1c\x38\x1c\x38\x00\x38\x00\x38\x00\x38\x00\x38\x1c\x38\x1c\x0f\xf0\x0f\xf0\x00\x70\x00\x70\x00\x38\x00\x38\x0f\xf0\x0f\xf0\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\x70\x07\x70\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x07\x00\x01\xc0\x01\xc0\x00\x70\x00\x70\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x00\x38\x00\x38\x00\x38\x00\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\x70\x07\x70\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\xe0\x00\xe0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x00\x00\x00\x00\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x3f\xfc\x3f\xfc\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x03\xc0\x03\xc0\x0e\x70\x0e\x70\x03\xc0\x03\xc0\x00\x00\x00\x00\x03\xc0\x03\xc0\x07\xe0\x07\xe0\x0e\x70\x0e\x70\x1c\x38\x1c\x38\x38\x1c\x38\x1c\x3f\xfc\x3f\xfc\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xe0\x3f\xe0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x7e\x3e\x7e\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x7f\xfe\x7f\xfe\xe3\xc0\xe3\xc0\xe3\xc0\xe3\xc0\x7f\xff\x7f\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x07\xff\x0e\xe0\x0e\xe0\x1c\xe0\x1c\xe0\x38\xe0\x38\xe0\x70\xe0\x70\xe0\x7f\xfe\x7f\xfe\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xff\x70\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x07\x70\x07\x70\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x07\x00\x01\xc0\x01\xc0\x00\x70\x00\x70\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x0e\x70\x0e\x70\x38\x1c\x38\x1c\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\xe0\x00\xe0\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x07\x70\x07\x70\x03\xe0\x03\xe0\x01\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x0e\x00\x0e\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x00\x00\x00\x00\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x1e\x38\x1e\x0f\xf8\x0f\xf8\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x01\xf0\x07\x1c\x07\x1c\x07\x00\x07\x00\x07\x00\x07\x00\x1f\xc0\x1f\xc0\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x3f\x0e\x3f\x0e\x3f\xf8\x3f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x07\x70\x07\x70\x03\xe0\x03\xe0\x3f\xfe\x3f\xfe\x01\xc0\x01\xc0\x3f\xfe\x3f\xfe\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x7f\x80\x7f\x80\x70\xe0\x70\xe0\x70\x70\x70\x70\x70\xe0\x70\xe0\x7f\x9c\x7f\x9c\x70\x1c\x70\x1c\x70\x7f\x70\x7f\x70\x1c\x70\x1c\x70\x1c\x70\x1c\x70\x1c\x70\x1c\x70\x1c\x70\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x00\x78\x01\xce\x01\xce\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x1f\xfc\x1f\xfc\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x39\xc0\x39\xc0\x0f\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x00\x0e\x00\x0e\x0f\xfe\x0f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x0f\xfe\x0f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x00\x00\x00\x00\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x9c\x07\x9c\x3c\xf0\x3c\xf0\x00\x00\x00\x00\x3f\xe0\x3f\xe0\x38\x38\x38\x38\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x07\x9e\x07\x9e\x3c\xf0\x3c\xf0\x00\x00\x00\x00\x3c\x0e\x3c\x0e\x3e\x0e\x3e\x0e\x3f\x0e\x3f\x0e\x3b\x8e\x3b\x8e\x39\xce\x39\xce\x38\xee\x38\xee\x38\x7e\x38\x7e\x38\x3e\x38\x3e\x38\x1e\x38\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf0\x0f\xf0\x38\x70\x38\x70\x38\x70\x38\x70\x0f\xfc\x0f\xfc\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xc0\x0f\xc0\x38\x70\x38\x70\x38\x70\x38\x70\x0f\xc0\x0f\xc0\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x00\x00\x00\x00\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80\x07\x00\x07\x00\x1c\x00\x1c\x00\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x07\xe0\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xff\x3f\xff\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xff\x3f\xff\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x78\x00\x78\x00\x38\x00\x38\x00\x38\x1c\x38\x1c\x38\x70\x38\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x7c\x1c\x7c\x70\x0e\x70\x0e\x00\x1c\x00\x1c\x00\x70\x00\x70\x00\xfe\x00\xfe\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x38\x00\x78\x00\x78\x00\x38\x00\x38\x00\x38\x1c\x38\x1c\x38\x70\x38\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x1c\x1c\x1c\x70\x7c\x70\x7c\x01\xdc\x01\xdc\x01\xfe\x01\xfe\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x8e\x03\x8e\x0e\x38\x0e\x38\x38\xe0\x38\xe0\x0e\x38\x0e\x38\x03\x8e\x03\x8e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\xe0\x38\xe0\x0e\x38\x0e\x38\x03\x8e\x03\x8e\x0e\x38\x0e\x38\x38\xe0\x38\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30\x03\x03\x03\x03\x30\x30\x30\x30'\
b'\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc\x33\x33\x33\x33\xcc\xcc\xcc\xcc'\
b'\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f\xf3\xf3\xf3\xf3\x3f\x3f\x3f\x3f'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\x38\xff\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf8\xff\xf8\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\x38\xff\x38\x00\x38\x00\x38\xff\x38\xff\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf8\xff\xf8\x00\x38\x00\x38\xff\x38\xff\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\x38\xff\x38\x00\x38\x00\x38\xff\xf8\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\xf8\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xff\x01\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xff\xff\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x3f\x07\x3f\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x3f\x07\x3f\x07\x00\x07\x00\x07\xff\x07\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x07\xff\x07\x00\x07\x00\x07\x3f\x07\x3f\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\x3f\xff\x3f\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\xff\x3f\xff\x3f\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x3f\x07\x3f\x07\x00\x07\x00\x07\x3f\x07\x3f\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\x3f\xff\x3f\x00\x00\x00\x00\xff\x3f\xff\x3f\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\xff\x07\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xff\x01\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x07\xff\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\xff\xff\xff\xff\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38\x07\x38'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xff\xff\xff\x01\xc0\x01\xc0\xff\xff\xff\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xff\x01\xff\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'\
b'\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00'\
b'\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff'\
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x0e\x0f\x0e\x39\xdc\x39\xdc\x70\xf8\x70\xf8\x70\xf0\x70\xf0\x70\xf8\x70\xf8\x39\xdc\x39\xdc\x0f\x0e\x0f\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x0f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xf8\x3f\xf8\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xf8\x3f\xf8\x38\x00\x38\x00\x38\x00\x38\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x38\x0e\x38\x0e\x38\x00\x38\x00\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\xe0\x00\xe0\x03\x80\x03\x80\x0e\x00\x0e\x00\x38\x00\x38\x00\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x07\xff\x1c\x38\x1c\x38\x38\x38\x38\x38\x38\x38\x38\x38\x38\x38\x38\x38\x1c\x70\x1c\x70\x07\xc0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x1c\x0e\x1c\x0f\xf0\x0f\xf0\x0e\x00\x0e\x00\x0e\x00\x0e\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x9e\x0f\x9e\x3c\xf8\x3c\xf8\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfc\x1f\xfc\x01\xc0\x01\xc0\x07\xf0\x07\xf0\x0e\x38\x0e\x38\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x07\xf0\x07\xf0\x01\xc0\x01\xc0\x1f\xfc\x1f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x3f\xfe\x3f\xfe\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x07\xf0\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x1c\x1c\x1c\x1c\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x3e\x3e\x3e\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xf0\x03\xf0\x0e\x38\x0e\x38\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\xe0\x00\xe0\x07\xf8\x07\xf8\x1c\x1c\x1c\x1c\x38\x1c\x38\x1c\x38\x1c\x38\x1c\x1c\x38\x1c\x38\x07\xe0\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x7c\x3e\x7c\x73\xce\x73\xce\x73\xce\x73\xce\x73\xce\x73\xce\x3e\x7c\x3e\x7c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x00\x1c\x00\x38\x00\x38\x0f\xf0\x0f\xf0\x38\xfc\x38\xfc\x71\xce\x71\xce\x73\x8e\x73\x8e\x3f\x1c\x3f\x1c\x0f\xf0\x0f\xf0\x1c\x00\x1c\x00\x38\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x03\xf0\x03\xf0\x0e\x00\x0e\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x3f\xf0\x3f\xf0\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x38\x00\x0e\x00\x0e\x00\x03\xf0\x03\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf0\x07\xf0\x1c\x1c\x1c\x1c\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x38\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x3f\xfe\x3f\xfe\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x0e\x00\x03\x80\x03\x80\x00\xe0\x00\xe0\x00\x38\x00\x38\x00\xe0\x00\xe0\x03\x80\x03\x80\x0e\x00\x0e\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x00\x70\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x00\x1c\x00\x07\x00\x07\x00\x01\xc0\x01\xc0\x00\x70\x00\x70\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7c\x00\x7c\x01\xc7\x01\xc7\x01\xc7\x01\xc7\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0'\
b'\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x71\xc0\x71\xc0\x71\xc0\x71\xc0\x1f\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfe\x3f\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x9e\x07\x9e\x3c\xf0\x3c\xf0\x00\x00\x00\x00\x07\x9e\x07\x9e\x3c\xf0\x3c\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x0f\xc0\x0f\xc0\x38\x70\x38\x70\x38\x70\x38\x70\x0f\xc0\x0f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xc0\x03\xc0\x03\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0\x01\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7f\x00\x7f\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\x00\x70\xf8\x70\xf8\x70\x1c\x70\x1c\x70\x07\x70\x07\x70\x01\xf0\x01\xf0\x00\x70\x00\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x7f\x80\x7f\x80\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x3f\x00\x3f\x00\xe1\xc0\xe1\xc0\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x00\x1c\x00\x70\x00\x70\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
FONT = memoryview(_FONT)
|
record_list=[]
y=int(input('Enter no.of records to be entered'))
for x in range(1,y+1,1):
name=input('Enter name: ')
roll_num=int(input("Enter roll number: "))
sub=input("Enter subject: ")
score=float(input("Enter score: "))
record_list.append([name,roll_num,sub,score])
print(record_list)
q=1
for p in record_list:
print('record',q)
print(p)
print('Name',p[0],sep='=')
print('Roll number',p[1],sep='=')
print('Subject',p[2],sep='=')
print('Score',p[3],sep='=',end='\n\n\n')
q=q+1
|
# Copyright 2020 The Monogon Project Authors.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_gazelle//:deps.bzl", "go_repository")
load(
"@io_bazel_rules_go//go:def.bzl",
"GoLibrary",
"go_context",
"go_library",
)
def _bindata_impl(ctx):
out = ctx.actions.declare_file("bindata.go")
arguments = ctx.actions.args()
arguments.add_all([
"-pkg",
ctx.attr.package,
"-prefix",
ctx.label.workspace_root,
"-o",
out,
])
arguments.add_all(ctx.files.srcs)
ctx.actions.run(
inputs = ctx.files.srcs,
outputs = [out],
executable = ctx.file.bindata,
arguments = [arguments],
)
go = go_context(ctx)
source_files = [out]
library = go.new_library(
go,
srcs = source_files,
)
source = go.library_to_source(go, None, library, False)
providers = [library, source]
output_groups = {
"go_generated_srcs": source_files,
}
return providers + [OutputGroupInfo(**output_groups)]
bindata = rule(
implementation = _bindata_impl,
attrs = {
"srcs": attr.label_list(
mandatory = True,
allow_files = True,
),
"package": attr.string(
mandatory = True,
),
"bindata": attr.label(
allow_single_file = True,
default = Label("@com_github_kevinburke_go_bindata//go-bindata"),
),
"_go_context_data": attr.label(
default = "@io_bazel_rules_go//:go_context_data",
),
},
toolchains = ["@io_bazel_rules_go//go:toolchain"],
)
|
names = [
'John',
'Mary',
'Joe',
'Matt',
'David',
'Matt',
'John'
]
results = []
for name in names:
if name in results:
continue
results.append(name)
print(results)
|
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'chromium',
'chromium_android',
'recipe_engine/path',
]
def RunSteps(api):
api.chromium.set_config('chromium')
api.chromium_android.stackwalker(
api.path['checkout'],
[api.chromium.output_dir.join('lib.unstripped', 'libchrome.so')])
def GenTests(api):
yield api.test('basic')
|
# For Keystone Engine. AUTO-GENERATED FILE, DO NOT EDIT [systemz_const.py]
KS_ERR_ASM_SYSTEMZ_INVALIDOPERAND = 512
KS_ERR_ASM_SYSTEMZ_MISSINGFEATURE = 513
KS_ERR_ASM_SYSTEMZ_MNEMONICFAIL = 514
|
#!/usr/bin/env python
NAME = 'Citrix NetScaler'
def is_waf(self):
"""
First checks if a cookie associated with Netscaler is present,
if not it will try to find if a "Cneonction" or "nnCoection" is returned
for any of the attacks sent
"""
# NSC_ and citrix_ns_id come from David S. Langlands <dsl 'at' surfstar.com>
if self.matchcookie('^(ns_af=|citrix_ns_id|NSC_)'):
return True
if self.matchheader(('Cneonction', 'close'), attack=True):
return True
if self.matchheader(('nnCoection', 'close'), attack=True):
return True
if self.matchheader(('Via', 'NS-CACHE'), attack=True):
return True
if self.matchheader(('x-client-ip', '.'), attack=True):
return True
if self.matchheader(('Location', '\/vpn\/index\.html')):
return True
if self.matchcookie('^pwcount'):
return True
return False
|
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# GYP file to build experimental directory.
{
'targets': [
{
'target_name': 'experimental',
'type': 'static_library',
'include_dirs': [
'../include/config',
'../include/core',
],
'sources': [
'../experimental/SkSetPoly3To3.cpp',
'../experimental/SkSetPoly3To3_A.cpp',
'../experimental/SkSetPoly3To3_D.cpp',
],
'direct_dependent_settings': {
'include_dirs': [
'../experimental',
],
},
},
],
}
|
class NodeCapacity:
def __init__(self, json):
self.cpu = json['cpu']
self.memory = self.__convert_mem_str_to_int__(json['memory'])
self.pods = json['pods']
def __convert_mem_str_to_int__(self, mem_str):
''' unit of retrurned value is Mi '''
value = float(mem_str[0:-2])
unit = mem_str[-2:]
if unit == 'Gi':
value = value * 1024.
if unit == 'Ki':
value = value / 1024.0
return value
class NodeSpec:
def __init__(self, json):
self.unschedulable = False
if 'unschedulable' in json:
self.unschedulable = json['unschedulable']
class NodeInfo:
def __init__(self, json):
self.kernel_version = json['kernelVersion']
self.container_runtime_version = json['containerRuntimeVersion']
self.kubelet_version = json['kubeletVersion']
self.kube_proxy_version = json['kubeProxyVersion']
class Node(object):
def __init__(self, json):
self.labels = json['metadata']['labels']
self.name = json['metadata']['name']
self.capacity = NodeCapacity(json['status']['capacity'])
self.node_info = NodeInfo(json['status']['nodeInfo'])
self.spec = NodeSpec(json['spec'])
self.conditions = json['status']['conditions']
self.pod_num = 0
self.mem_limit_used = 0.0
self.mem_request_used = 0.0
def is_ready(self):
for condition in self.conditions:
if condition['type'] == 'Ready' and condition['status'] == 'True':
return True
else:
return False
|
class nloptSolver( optwSolver ):
def solve( self ):
algorithm = solver[6:]
if( algorithm == "" or algorithm == "MMA" ):
#this is the default
opt = nlopt.opt( nlopt.LD_MMA, self.n )
elif( algorithm == "SLSQP" ):
opt = nlopt.opt( nlopt.LD_SLSQP, self.n )
elif( algorithm == "AUGLAG" ):
opt = nlopt.opt( nlopt.LD_AUGLAG, self.n )
else:
## other algorithms do not support vector constraints
## auglag does not support stopval
raise ValueError( "invalid solver" )
def objfcallback( x, grad ):
if( grad.size > 0 ):
grad[:] = self.objgrad(x)
return self.objf(x)
if( self.jacobian_style == "sparse" ):
def confcallback( res, x, grad ):
if( grad.size > 0 ):
conm = np.zeros( [ self.nconstraint, self.n ] )
A = self.congrad(x)
for p in range( 0, len(self.iG) ):
conm[ self.iG[p], self.jG[p] ] = A[p]
conm = np.asarray(conm)
grad[:] = np.append( -1*conm, conm, axis=0 )
conf = np.asarray( self.con(x) )
res[:] = np.append( self.Flow - conf, conf - self.Fupp )
else:
def confcallback( res, x, grad ):
if( grad.size > 0 ):
conm = np.asarray( self.congrad(x) )
grad[:] = np.append( -1*conm, conm, axis=0 )
conf = np.asarray( self.con(x) )
res[:] = np.append( self.Flow - conf, conf - self.Fupp )
if( self.maximize ):
opt.set_max_objective( objfcallback )
else:
opt.set_min_objective( objfcallback )
opt.add_inequality_mconstraint( confcallback,
np.ones( self.nconstraint*2 ) * self.solve_options["constraint_violation"] )
opt.set_lower_bounds( self.xlow )
opt.set_upper_bounds( self.xupp )
if( not self.stop_options["xtol"] == None ):
opt.set_xtol_rel( self.stop_options["xtol"] )
if( not self.stop_options["ftol"] == None ):
opt.set_ftol_rel( self.stop_options["ftol"] )
if( not self.stop_options["stopval"] == None ):
opt.set_stopval( self.stop_options["stopval"] )
if( not self.stop_options["maxeval"] == None ):
opt.set_maxeval( self.stop_options["maxeval"] )
if( not self.stop_options["maxtime"] == None ):
opt.set_maxtime( self.stop_options["maxtime"] )
finalX = opt.optimize( self.x )
answer = opt.last_optimum_value()
status = opt.last_optimize_result()
if( status == 1 ):
status = "generic success"
elif( status == 2 ):
status = "stopval reached"
elif( status == 3 ):
status = "ftol reached"
elif( status == 4 ):
status = "xtol reached"
elif( status == 5 ):
status = "maximum number of function evaluations exceeded"
elif( status == 6 ):
status = "timed out"
else:
#errors will be reported as thrown exceptions
status = "invalid return code"
return answer, finalX, status
|
class Solution:
def trap(self, height: List[int]) -> int:
res = 0
# build memos
max_height_left = [0] * len(height)
max_height_left[0] = height[0]
for i in range(1, len(height)):
max_height_left[i] = max(max_height_left[i-1], height[i])
max_height_right = [0] * len(height)
max_height_right[0] = height[-1]
for i in range(1, len(height)):
max_height_right[i] = max(max_height_right[i-1], height[-i-1])
for i in range(1, len(height) - 1):
l_max = max_height_left[i]
r_max = max_height_right[len(height) - i - 1]
res += min(l_max, r_max) - height[i]
return res
|
# Copyright esse.io 2016 All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
class Member(object):
"""Fabric Member object
A member is an entity that transacts on a chain.
Types of members include end users, peers, etc.
"""
def __init__(self, chain, **kwargs):
"""Constructor for a member.
:param chain (Chain): the chain instance that the member belong to
:param kwargs: includes name=,roles=,affiliation= ...
"""
self.name = ''
self.roles = []
self.affiliation = ''
if 'name' in kwargs:
self.name = kwargs['name']
elif 'enrollmentID' in kwargs:
self.name = kwargs['enrollmentID']
if 'roles' in kwargs:
self.roles = kwargs['roles']
else:
self.roles = ['fabric.user']
if 'affiliation' in kwargs:
self.affiliation = kwargs['affiliation']
self.chain = chain
self.keyValStore = chain.get_key_value_store()
self.keyValStoreName = toKeyValueStoreName(self.name)
self.tcertBatchSize = chain.get_tcert_batch_size()
self.enrollmentSecret = ''
self.enrollment = None
self.certGetterMap = {}
def get_name(self):
"""Get the member name
:return: The member name
"""
return self.name
def get_chain(self):
"""Get the chain.
:return: :class:`Chain` The chain instance
"""
return self.chain
def get_member_services(self):
"""Get the member services.
:return: The member services
"""
pass
def get_roles(self):
"""Get the roles.
:return: The roles.
"""
return self.roles
def set_roles(self, roles):
"""Set the roles.
:param roles: The roles.
"""
self.roles = roles
def get_affiliation(self):
"""Get the affiliation
:return: The affiliation
"""
return self.affiliation
def set_affiliation(self, affiliation):
"""Set the affiliation
:param affiliation: The affiliation
"""
self.affiliation = affiliation
def get_enrollment(self):
"""Get the enrollment info.
:return: The enrollment info
"""
return self.enrollment
def set_enrollment(self, enrollment):
"""Set the enrollment info.
:param enrollment: the enrollment instance
"""
self.enrollment = enrollment
def is_registered(self):
"""Determine if this member name has been registered.
:return: True if registered; otherwise, false
"""
pass
def is_enrolled(self):
"""Determine if this member has been enrolled.
:return: True if enrolled; otherwise, false
"""
pass
def register(self, reginfo):
"""Register the member.
:param reginfo: register user request
:return: the enrollment secrect
"""
pass
def enroll(self, enrollment_secret):
"""Enroll the member and return the enrollment results.
Exchange the enrollment secret (one-time password) for
enrollment certificate (ECert) and save it in the secure
key/value store.
:param enrollment_secret: user password
:return: enrollment
ECert is included in the enrollment instance.
"""
pass
def register_enroll(self, reginfo):
"""Register and enroll a user
Perform both registration and enrollment.
:param reginfo: user register request
:return: enrollment and enrollment secret
ECert is included in the enrollment instance.
"""
pass
def deploy(self, deploy_request):
"""Issue a deploy request on behalf of this member.
:param deploy_request: deploy request
:return: TransactionContext Emits 'submitted',
'complete', and 'error' events.
"""
pass
def send_transaction(self, trans_request):
"""Issue a transaction request on behalf of this member.
:param trans_request: transaction request
:return: TransactionContext Emits 'submitted',
'complete', and 'error' events.
"""
pass
def query(self, query_request):
"""Issue a query request on behalf of this member.
:param query_request: query request
:return: TransactionContext Emits 'submitted',
'complete', and 'error' events.
"""
pass
def to_json_string(self):
"""Save the current state of this member as a json string
:return: The state of this member as a json string
"""
pass
def from_json_string(self, json_str):
"""Get the current state of this member from a json string
:param json_str: The state of this member as a json string
"""
pass
def toKeyValueStoreName(name):
return 'member.' + name
|
'''
判断一个数字是否可以表示成三的幂的和
给你一个整数 n ,如果你可以将 n 表示成若干个不同的三的幂之和,请你返回 true ,否则请返回 false 。
对于一个整数 y ,如果存在整数 x 满足 y == 3x ,我们称这个整数 y 是三的幂。
提示:
1 <= n <= 107
'''
'''
思路:数学
对于一个整数x,如果是3的幂的和,说明x=y*3 or x= y*3+1
也就是x是3的整数倍或整数倍+1
不对,是3个不同的幂之和如果是21,3^2+3^2+3^1
TODO
'''
|
"""
Fosdick SDK configuration
"""
# Used for puling information
FOSDICK_API_USERNAME = '<YOUR_API_USERNAME>'
FOSDICK_API_PASSWORD = '<YOUR_API_PASSWORD>'
# Used for order posting.
CLIENT_CODE = '<YOUR_CLIENT_CODE>'
CLIENT_NAME = '<YOUR_CLIENT_NAME>'
# To denote test order.
TESTFLAG = 'y'
# Url's used for pulling information and placing the order.
URL = "https://www.customerstatus.com/fosdickapi/"
PLACE_ORDER_URL = 'https://www.unitycart.com/iPost/'
URL_MAP = \
{
"shipments": "shipments.json",
"inventory": "inventory.json",
"returns": "returns.json",
"shipmentdetail": "shipmentdetail.json",
"receipts": "receipts.json"
}
|
'''
*
***
*****
*******
*********
*******
*****
***
*
'''
n = int(input())
i = 0
while i < (n//2) + 1:
j = 1
while j <= (n//2) - i:
print(' ', end='')
j += 1
k = 0
while k <= i:
print('*', end='')
k += 1
l = i
while l >= 1:
print('*', end='')
l -= 1
print()
i += 1
i = 0
while i < (n//2):
j = 0
while j <= i:
print(' ', end='')
j += 1
k = 1
while k <= (n//2) - i:
print('*', end='')
k += 1
l = 0
while l < (n//2) - i - 1:
print('*', end='')
l += 1
print()
i += 1
|
# -*- coding: utf8 -*-
"""
Storage backend definition
Author: Romary Dupuis <romary@me.com>
Copyright (C) 2017 Romary Dupuis
"""
class Backend(object):
""" Basic backend class """
def __init__(self, prefix, secondary_indexes):
self._prefix = prefix
self._secondary_indexes = secondary_indexes
def prefixed(self, key):
""" build a prefixed key """
return '{}:{}'.format(self._prefix, key)
def get(self, key, sort_key):
raise NotImplementedError
def set(self, key, sort_key, value):
raise NotImplementedError
def delete(self, key, sort_key):
raise NotImplementedError
def history(self, key, _from='-', _to='+', _desc=True):
raise NotImplementedError
def find(self, index, value):
raise NotImplementedError
def latest(self, key):
raise NotImplementedError
|
def take_List(li,Qu_st):
r=[]
for i in range(len(li)):
if(Qu_st in li[i] ):
r.append(li[i])
print(r)
li=['sser','ser','song']
q='ss'
take_List(li,q)
|
_base_ = "./ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10_01_02MasterChefCan.py"
OUTPUT_DIR = "output/self6dpp/ssYCBV/ss_mlBCE_MaskFull_PredDouble_PBR05_woCenter_edgeLower_refinePM10/13_24Bowl"
DATASETS = dict(
TRAIN=("ycbv_024_bowl_train_real_aligned_Kuw",),
TRAIN2=("ycbv_024_bowl_train_pbr",),
)
MODEL = dict(
WEIGHTS="output/gdrn/ycbvPbrSO/resnest50d_AugCosyAAEGray_BG05_visib10_mlBCE_DoubleMask_ycbvPbr100e_SO/13_24Bowl/model_final_wo_optim-55b952fc.pth"
)
|
# scrapy shell variable, response is from each single jury page
# using this response >> jurors = response.css('h3::text').extract()
all_jurors = ['Charles de Dreuille', 'Edwin Tofslie', 'Felipe Medeiros', 'Gabriel Segura', 'Georgios Athanassiadis', 'Goksel Eryigit', 'Irene Demetri', 'Lea Verou', 'Loïc Dupasquier', 'Mark Unger', 'Nuno Trafaria', 'CreativePeople', 'Trent Walton', 'Lee Munroe', 'Brian Sugden', 'Rosa van Wyk', 'Juan Ciapessoni', 'Tomáš Silný', 'Rodesk', 'Paulo Bernini', 'Edwin Toh', 'Haraldur Thorleifsson', 'Marcus Stenbeck', 'Brian Hoff', 'Creative People', 'Alexey Abramov', 'Jacob', 'Damian Madray', 'ivan alekis', 'Klippoglim', 'Gonzalo Perez', 'Vadim Sherbakov', 'David Navarro', 'brushgunz', 'Ines Maria Gamler', 'Mathias Paumgarten', 'Aaron Powell', 'Leandro Puca', 'Helio Medeiros', 'Addy Osmani', 'Antón Molleda', 'Rolf Jensen', 'Jack Doud', 'Zack Bonebrake', 'Stevijn van Olst', 'Davy Rudolph', 'Fernando Ramirez', 'Julien Renau', 'Richard Boiteux', 'Jürgen Genser', 'Charlie Montagut', 'Du Haihang', 'Sebastiano Guerriero', 'Olga Shevchenko', 'Michael P. Pfeiffer', 'Jessica Travieso', 'Paul Boag', 'Aarron Walter', 'John Percival', 'Luke Finch', 'Stéphane Guigné', 'Emilie Salles', 'Anthony Du Pont', 'Bastien Leprince', 'Kuba Bogaczynski', 'Joe Hochgreve', 'Fred Paquet', 'Ralf Sohl', 'Neal Drasbeck', 'Guilherme Pangnotta', 'Xavier Cussó', 'Alexander Radsby', 'Bruno Ribeiro', 'Pablo Vio', 'Kamil Lehmann', 'Jeremie Werner', 'Michael Nilsson', 'Marie Benoist', 'Gilles Tossoukpé', 'Matthieu Kobler', 'Arthur Muchir', 'Dario Merz', 'Valentin Cervellera', 'Chris Biron', 'Agencia EGO', 'Anthony Dart', 'Antonio Lupetti', 'Ido Zemach', 'Bulent Shik', 'Fabio Sasso', 'Israel Pastrana', 'Jay Hollywood', 'JB Grasset', 'Jeff Toll', 'Mark Dearman', 'Sean Klassen', 'Shyam Soni', 'Simon Spreckley', 'Vicki Tourtouras', 'Aravind Ajith', 'Robert Podgorski', 'David Hellmann', 'Juan Mora', 'Tom Kershaw', 'Rich Brown', 'Ahmad Ktaech', 'Manoela Ilic', 'Juan Velasco', 'Blackmoon', 'Jean-Maxime Brais', 'Mert Gutav', 'James Noble', 'Fabio Merlin', 'Kenta Toshikura', 'Shawn Petersen', 'Claudio Guglieri', 'Franc Cheetham', 'Arek Romanski', 'Carlos Molina', 'Bjarne Christensen', 'Abigail Smith', 'Brave People', 'Robby Leonardi', 'Kiran Jonnalagadda', 'John Bristowe', 'Thomas Lempa', 'Izaias Cavalcanti', 'Luca Quattrin', 'Andreas Shabelnikov', 'Malte Gruhl', 'Bartek Drozdz', 'Aaron Gustafson', 'Jonathan Hills', 'Benoit Challand', 'Filippo Spiezia', 'Derek Boateng', 'Luke Li', 'Andy Thelander', 'James Monaghan', 'Joris Rigerl', 'Nathan Riley', 'Mathias Høst Normark', 'Michi Del Rosso', 'Iris Lješnjanin', 'Denise Jacobs', 'Michal Pasternak', 'Eran Zeevi', 'Vanessa Nunes', 'Aude Degrassat', 'Michele Gallina', 'Francesco Milanesio', 'Alice Mourou', 'Miguel Trias', 'Geovanny Panchame', 'Nemanja Ivanovic', 'Serkan Bayburtlu', 'Jack De Caluwe', 'Jacob Grubbe', 'Gregg Lawrence', 'Michael John', 'Marc Belle', 'Sue Murphy', 'Matthew Bayliss', 'Sylvain Theyssens', 'Jon Vlasach', 'Roman Trilo', 'Diego Quintana', 'Igor Suslov', 'Luisa Tatoli', 'Samuel Bismes', 'Arne Van Kauter', 'Gláuber Sampaio', 'Piotr Swierkowski', 'Baptiste Dumas', 'Joakim Norman', 'Klaus-Martin Michaelis', 'Julia Ammor', 'Dmitry Petrov', 'Mustafa Demirkent', 'Peter Coolen', 'Alessandro Risso', 'Oui Will', 'Julie Muckensturm', 'Priscilla Gomez', 'Thieb', 'Alessandro Rigobello', 'Antwan van der Mooren', 'Maxime Berthelot', 'Robert Bue', 'Hannah Purmort', 'Eyal Zuri', 'Marco Coppeto', 'Marissa Louie', 'Laura Geley', 'Fabricio Teixeira', 'Ryan Warrender', 'Leopat Magnus', 'inTacto Digital Partner', 'David Arias', 'Emil Gustafsson', 'Gopal Raju', 'Josh Hemsley', 'Joshua Long', 'Kevin Sweeney', 'Mark Hirst', 'Paul Mosig', 'Raffael Stüken', 'Ray Cheung', 'Rob Barwell', 'Ivan Aleksic', 'Patrick Kranzlmüller', 'Marcus Fuchs', 'Matt D. Smith', 'Ness Higson', '60fps', 'Basile Tournier', 'Lee Monroe', 'Lukas Majzlan', 'Cristian van_der_henst', 'Awwwards Users', 'Sarri Maxime', 'Lucas Nikitczuk', 'Jonas Lempa', 'Wesley ter Haar', 'Sun Law', 'Uli Schöberl', 'Jakob Stenqvist', 'Colin Lamberton', 'Murat Pak', 'Gary Paitre', 'Gabriel Shaoolian', 'Rachel Andrew', 'Javier Usobiaga', 'Aidan Huang', 'Bryan Saftler', 'Stephanie Troeth', 'Yaprak Gültay', 'Daan Klaver', 'Sam Dallyn', 'Antoine Arnoux', 'Clément Pavageau', 'Lionel Durimel', 'Daniel Schroermeyer', 'Harry Wu', 'George Kvasnikov', 'Barny Collis', 'Marek Suchanek', 'Kosmas Apatangelos', 'Jordi Romkema', 'Hrvoje Grubišić', 'Lukasz Gorka', 'Franco Bouly', 'Trouble', 'Paul Irish', 'Isaac Leon', 'Vito Salvatore', 'Douglas Hughmanick', 'Christin Malén Andreassen', 'Peter Kang', 'Greg Valvano', 'Burak Canpolat', 'Henrik Dreijer-Pedesen', 'Thomas Gorree', 'Bruno Porrio', 'Rob Trostle', 'Pascal van der Haar', 'Rosie Manning', 'Charles de Dreuille', 'Martijn van der Does', 'Xuan Pham', 'Roland Lösslein', 'Rob Martin', 'Nicolas Rajabaly', 'Sunny Bonnell', 'Alexis Malin', 'keeley laures', 'Louis Moncouyoux', 'Miro Koljanin', 'Corentin Fardeau', 'Fabian Irsara', 'Iván Soria', 'Julie Flogeac', 'Roman Stetskov', 'Alex Leduc', 'Carl Rosekilly', 'David Basso', 'Dries Van haver', 'Irena Zablotska', 'Kevin Wong', 'Mike Lane', 'Óscar Pérez.', 'Sebastian Deutsch', 'Stefano Scozzese', 'Wing Cheng', 'Rally', 'Damian Madray', 'Paul Andrew', 'Henry Daubrez', 'Le Graphoir', 'Sang Han', 'TRÜF', 'Alexander Kaiser', 'Aravind Ajith', 'Paul Andrew', 'Mike Kus', 'Alfredo Aponte', 'Simon Daufresne', 'Nick de Jardine', 'DOMANI Studios', 'Daniel Eckler', 'Corey Szopinski', 'Julio Spinetto', 'Matthias Mentasti', 'Simon Lindsay', 'Ulises Valencia', 'Elegant Seagulls', 'Brian Williams', 'Peter Cooper', 'Tomomi Imura', 'Dave Methvin', 'Matija Vujovic', 'Monika Kehrer', 'Sean Hobman', 'Steve Mahn', 'Peter Jupp', 'Paul Woods', 'Ronny Wieckardt', 'Fadi Shuman', 'Héctor Ayuso', 'Charlie Clark', 'Luciano Borromei', 'Julian Shapiro', 'Blake Carroll', 'Aral Balkan', 'Brad Frost', 'Enea Rossi', 'Matteo Rostagno', 'Pedro Burneiko', 'Melanie Daveid', 'Aleksandr Motin', 'Dorian Camilleri', 'Timothy Noah', 'Grzegorz Matyszewski', 'Sebastian Gram', 'Matt Sundstrom', 'Mark Goldstein', 'Matthias Mentasti', 'Soren Bo Bastian', 'Kenneth Graupner', 'Brendan Kearns', 'Garth Sykes', 'Louis Paquet', 'Tsukasa Toukura', 'Imran Sheikh', 'Ronaldo Jardim', 'Julien Vasseur', 'Lissy Lamoreaux', 'Alex Engzell', 'Tore Holmberg', 'Alessio Fasciolo', 'Frédéric Marchand', 'Samuel Honigstein', 'Julio Spinetto', 'Arnaud Desjardins', 'Art Tsymbal', 'Ellie Hardy', 'Jonas Emmertsen', 'Shunsuke Iseki', 'Thales Ribeiro', 'Nicholas Ruggeri', 'Rinat Magomedov', 'Ludmilla Maury', 'Mustafa Çelik', 'Jenny Gove', 'Brian Lovell', 'Drew Europeo', 'Florian Wögerer', 'Jason Hardy', 'Kamil Kaniuk', 'Michael Hinderling', 'Nikola Arežina', 'Pablo Zarate', 'Philip Winberg', 'Rehan Syed Muhammad', 'Romain Colin', 'Shaz Sedighzadeh', 'Siddharth Arun', 'Simon Foster', 'Juanma Teixidó', 'Tobias van Schneider', 'Gustav Espenes', 'Alexander Kaiser', 'Alexey Abramov', 'Umut Muhaddisoglu', 'Emmanuel Dumont', 'Paul Kotz', 'Tom Ajello', 'Danilo Figueiredo', 'Umut M.', 'Mohit Aneja', 'Sarah Camp', 'Rob Morris', 'SNOOP MEDIA', 'Trent Walton', 'Alexandre Gomes', 'Kenji Saito', 'Panagiotis Thomoglou', 'Karim Maaloul', 'Keitaro Suzuki', 'Tiago Varandas', 'Francesco Bertelli', 'Brijan', 'David Walsh', 'Eric Meyer', 'Karl Stanton', 'Jorge Castillo', 'Kris Hermansson', 'Michael Sevilla', 'Jamie Nicoll', 'Baptiste Briel', 'Ariadne Gomes', 'Dan Cederholm', 'Alejandro Lazos', 'Heiko Winter', 'Bojan Wilytsch', 'Roel Kok', 'Chryssa Gagosi', 'Natalie Brown', 'Michael Farley', 'Rich Stewart', 'Magnus Lowing Swahn', 'Samuel Kantala Delgado', 'Pim van Helten', 'Ruben Sanchez', 'Rick Dias', 'Ambroise Maupate', 'Younus Abdalla', 'Lu Yu', 'Jeremy Sutton', 'Jean Naudy', 'Anton Zykin', 'Mira Sestan', 'Anastasia Gorodetskaya', 'Anatoliy Gromov', 'Filip Nordin', 'Hernan Puente', 'Kai Brueckers', 'Michał Markowski', 'Tommy Treadway', 'Luigi De Rosa', 'Pablo Bacchetta', 'Petr Tichy', 'Warre Buysse', 'John Magas', 'Andreas Panagiotopoulos']
first_names = [i.split()[0] for i in all_jurors]
print(first_names)
|
# -*- coding: utf-8 -*-
class Pessoa:
def __init__(self, *filhos, nome =None, idade=33 ):
self.idade = idade
self.nome = nome
self.filhos = list(filhos)
def cumprimentar(self):
return f'Olá {id(self)}'
def nome_e_atributos_de_classe(cls):
return f'{cls} - olhos {cls.olhos}'
class Homem(Pessoa):
pass
if __name__ == '__main__':
p = Pessoa()
filho = Homem(nome='Emilio')
mae = Pessoa(filho, nome='Ivone')
# print(Pessoa.cumprimentar(p))
# print(id(p))
# print(p.cumprimentar())
p.nome = 'Emilio'
print(p.nome,p.idade)
for familia in mae.filhos:
print(familia.nome)
pessoa= Pessoa('Anonimo')
print(isinstance(pessoa,Pessoa))
print(isinstance(pessoa, Homem))
|
class Solution:
def isHappy(self, n: int) -> bool:
l = set()
while True:
s = 0
while n > 0:
s += (n % 10) ** 2
n = n // 10
if s == 1:
return True
if s in l:
return False
n = s
l.add(n)
|
toSort = [8, 1, 5, 15, 3, 20, 11, 7]
print("Tak wygląda tablica: ", toSort)
def mergeSort(tab):
if len(tab) > 1:
middle = len(tab) // 2
left = tab[:middle]
right = tab[middle:]
print("Podział na podtablice\nLewa:", left, "\nPrawa: ", right)
mergeSort(left)
mergeSort(right)
temp1 = 0
temp2 = 0
temp3 = 0
while temp1 < len(left) and temp2 < len(right):
if left[temp1] < right[temp2]:
tab[temp3] = left[temp1]
temp1 += 1
else:
tab[temp3] = right[temp2]
temp2 += 1
temp3 += 1
while temp1 < len(left):
tab[temp3] = left[temp1]
temp1 += 1
temp3 += 1
while temp2 < len(right):
tab[temp3] = right[temp2]
temp2 += 1
temp3 += 1
print("Po: ", tab)
mergeSort(toSort)
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Problem 076
Integers Come In All Sizes
Source : https://www.hackerrank.com/challenges/python-integers-come-in-all-sizes/problem
"""
a, b, c, d = (int(input()) for _ in range(4))
print(a**b + c**d)
|
try:
fd = file("/srv/www/htdocs/index.html")
_head = ""
buf = fd.readline()
while buf:
if buf.startswith("<!-- end header -->"):
break
_head += buf
buf = fd.readline()
except IOError:
_head="""<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>webdc</title></head><body>"""
query_head=_head
query_chunk1="""<hr style="width: 100%; height: 2px;">
<br>
<table
style="width: 85%; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="vertical-align: middle; text-align: left;">
<h3><font><font face="Arial, Helvetica, sans-serif">Get
information about or waveform data from a selected "real" or a
selfdefined "virtual" network...</font></font></h3>
</td>
</tr>
</tbody>
</table>
<div style="margin-left: 80px;">
<h3><font face="Arial, Helvetica, sans-serif"><font
face="Arial, Helvetica, sans-serif">Primary station selection:<br>
</font></font></h3>
</div>
<table
style="width: 85%; height: 60px; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="text-align: center;">
<form name="typesel"><b><font face="Arial, Helvetica, sans-serif"><b>1. Select group of networks:
<select
onchange="location.href=this.form.typesel.options[selectedIndex].value;"
name="typesel" size="1">"""
query_chunk2="""</select>
</b> </font></b><br>
</form>
</td>
</tr>
</tbody>
</table>
<br>
<table
style="width: 85%; height: 60px; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td
style="vertical-align: middle; width: 25%; text-align: center;">
<form name="netform"> <b><font
face="Arial, Helvetica, sans-serif"><b>2. Select network code:
<select
onchange="location.href=this.form.netsel.options[selectedIndex].value;"
name="netsel" size="1">"""
query_chunk3="""</select><br></b></b>
(* internal code for temporary networks)
</font> </form>
</td>
<td
style="vertical-align: middle; width: 25%; text-align: center;">
<form name="statform"> <b><font
face="Arial, Helvetica, sans-serif"><b>3. Select station
code:
<select
onchange="location.href=this.form.statsel.options[selectedIndex].value;"
name="statsel" size="1">"""
query_chunk4="""</select>
</b> </font></b> </form>
</td>
</tr>
</tbody>
</table>
<div style="margin-left: 80px;">
<font face="Arial, Helvetica, sans-serif"><h3>
4. Optional stations selections:
</b> (strongly recommended for virtual networks)</h3></font></div>
<form action="select"
method="get"> <font face="Arial, Helvetica, sans-serif"> <font
face="Arial, Helvetica, sans-serif">"""
query_tail="""<table
style="width: 85%; height: 60px; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<center><b>Sensor type:
<select name="sensor" size="1">
<option value="all" selected>all</option><option value="VBB+BB" >VBB+BB</option><option value="VBB" >VBB</option><option value="BB" >BB</option><option value="SP" >SP</option><option value="SM" >SM</option><option value="OBS" >OBS</option>
</select>
Location code: <input type="text" name="loc_id" size="2" value="*">
Stream: <input type="text" name="stream" size="3" value="*">
</b></font></b><b><font face="Arial, Helvetica, sans-serif"><b><br>
</b></font></b></center> </tr><tr>
<td
style="vertical-align: middle; width: 50%; text-align: center;">
<table style="width: 100%; text-align: left;">
<tbody>
<tr>
<td style="vertical-align: middle; text-align: center;"><font
face="Arial, Helvetica, sans-serif"><b>Geographical region: <input type="text"
name="latmin" value="-90" size="3"> <= Lat.
<= <input type="text" name="latmax" value="90" size="3"> | <input
type="text" name="lonmin" value="-180" size="3"> <= Lon.
<= <input type="text" name="lonmax" value="180" size="3"></b></font>
</td>
</tr>
<tr>
<td style="vertical-align: middle; text-align: center;"><font
face="Arial, Helvetica, sans-serif"><b>Operation time period of interest: <input type="text"
name="start_date" value="1990-01-01" size="10"> <= Date
<= <input type="text" name="end_date" value="2030-12-31" size="10"></b></font>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</font> </font>
<br><center><font face="Arial, Helvetica, sans-serif"><b><input type="submit"
src="request_files/request.html" value="Submit"
name="submit"></b></font></b></font></center>
</form>
<hr style="width: 100%; height: 2px;">
</b><font><br><br></html>"""
select_head=_head
select_chunk1="""<hr style="width: 100%; height: 2px;">
<br>
<table
style="width: 85%; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="vertical-align: middle; text-align: left;">
<h3><font><font face="Arial, Helvetica, sans-serif">
Select streams:
</font></font></h3>
</td>
</tr>
</tbody>
</table>
<form method="get" action="submit">
<center>
<table>
<tbody>"""
select_chunk2="""</tbody>
</table>
</center>"""
select_chunk3="""<br><HR WIDTH="100%">
<center>"""
select_tail="""</center>
<br><CENTER><FONT SIZE=+0>E-Mail (no dummy!)*: </FONT><INPUT type="text" value="" size=15 maxlength=60 min=6 name="user"></CENTER>
<br><CENTER><FONT SIZE=+0>Full name (no dummy!)*: </FONT><INPUT type="text" value="" size=15 maxlength=60 min=6 name="name"></CENTER>
<br><CENTER><FONT SIZE=+0>Name of institute*: </FONT><INPUT type="text" value="" size=20 maxlength=60 min=6 name="inst"></CENTER>
<br><CENTER><FONT SIZE=+0>Snail mail address: </FONT><INPUT type="text" value="" size=31 maxlength=60 min=6 name="mail"></CENTER>
<br><CENTER><FONT SIZE=+0>Primary ArcLink node:
<select name="arclink" size="1">
<option value="localhost:18001">localhost</option>
</select>
<br><center>* Mandatory input.<br>
<hr style="width: 100%; height: 2px;">
<h3><font><font face="Arial, Helvetica, sans-serif">
Select format:
</font></font></h3>
<center><font face="Arial, Helvetica, sans-serif">
<table style="text-align: left; width: 85%; height: 30px;">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;"><b>
Mini-SEED<input type="radio" name="format" value="MSEED" checked="checked">|
Full SEED <input type="radio" name="format" value="FSEED">|
Dataless SEED <input type="radio" name="format" value="DSEED">|
Inventory (XML) <input type="radio" name="format" value="INV">
</b></font></b></td>
</tr>
<tr>
<td style="text-align: center; vertical-align: middle;"><b>
<input type="checkbox" name="resp_dict" value="true" checked="checked">Use response dictionary (SEED blockettes 4x)
</b></font></b></td>
</tr>
</tbody>
</table>
<h3><font><font face="Arial, Helvetica, sans-serif">
Select compression:
</font></font></h3>
<center><font face="Arial, Helvetica, sans-serif">
<table style="text-align: left; width: 85%; height: 30px;">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;"><b>
bzip2<input type="radio" name="compression" value="bzip2" checked="checked">|
none <input type="radio" name="compression" value="none">
</b></font></b></td>
</tr>
</tbody>
</table>
<br>
<font face="Arial, Helvetica, sans-serif"><b><input type="submit"
src="request_files/request.html" value="Submit"
name="submit"></b></font></b></font></center>
</form>
<hr style="width: 100%; height: 2px;">
</html>"""
submit_head=_head + """<hr style="width: 100%; height: 2px;">
<br>
<table
style="width: 85%; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
</tbody>
</table>"""
submit_tail="""</html>"""
status_head=_head+"""<hr style="width: 100%; height: 2px;">
<br>
<table
style="width: 85%; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
</tbody>
</table>"""
status_tail="""</html>"""
|
DATABASE_ENGINE = 'sqlite3'
SECRET_KEY = 'abcd123'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': './example.db',
}
}
INSTALLED_APPS = (
'django_bouncy',
)
BOUNCY_TOPIC_ARN = ['arn:aws:sns:us-east-1:250214102493:Demo_App_Unsubscribes']
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--with-xunit',
'--nologcapture',
'--cover-package=django_bouncy',
]
|
while 1:
a = int(input("please input a: "))
b = int(input("please input b: "))
print(a+b)
|
n1=int(input('Um valor: '))
n2=int(input('Outro valor: '))
s=n1+n2
m=n1*n2
d=n1/n2
di=n1//n2
e=n1**n2
print('A soma vale: {}, \n o produto vale {}, \n e a divisão {:.2f} ' .format(s,m,d) ,end=' <<< >>> ')
print('divisão inteira {} e potencia {}'.format(di,e))
n=int(input('Informe um numero: '))
doub = n * 2
trip = n * 3
raiz = n**(1/2)
print('Esse é o dobro {}, o triplo {} e a raiz quadrada {}, do numero {} informado' .format(doub,trip,raiz,n))
|
name = 'Python'
age = 27
new_str = "我是" + name + "," + "今年" + str(age) + "岁了"
print(new_str)
new_str_1 = "我是%s,今年%d岁了" % (name, age)
print(new_str_1)
new_str_2 = "我是{name},今年{age}岁了".format(
name='aaaa', age='bbb'
)
print(new_str_2)
name1 = 'abc'
age1 = 30
new_str_3 = f"我是{name1},今年{age1}岁了"
print(new_str_3)
|
name = "pybah"
version = "5"
requires = ["python-2.5"]
|
def test_user_can_register_and_then_login_then_logout(simpy_test_container, firefox_browser):
# Edith has heard about a new app to help manage her invoices
# She opens a browser and navigates to the registration page
firefox_browser.get('http://127.0.0.1:5000/')
# She notices that the name of the app is call SimpyInvoice
assert 'SimpyInvoice' in firefox_browser.title
# and that she has been redirected to the login page
assert 'Login' in firefox_browser.title
# Because she does not yet have an account, she clicks on the register link
register_link = firefox_browser.find_element_by_id('register')
register_link.click()
assert 'Register' in firefox_browser.title
# She enters in her details into the registration form
first_name_input_elem = firefox_browser.find_element_by_id('first_name')
first_name_input_elem.send_keys('Edith')
last_name_input_elem = firefox_browser.find_element_by_id('last_name')
last_name_input_elem.send_keys('Jones')
username_input_elem = firefox_browser.find_element_by_id('username')
username_input_elem.send_keys('edith_jones')
email_input_elem = firefox_browser.find_element_by_id('email')
email_input_elem.send_keys('edith@jones.com')
password_input_elem = firefox_browser.find_element_by_id('password')
password_input_elem.send_keys('123456789')
confirm_password_input_elem = firefox_browser.find_element_by_id('password_2')
confirm_password_input_elem.send_keys('123456789')
# She hits the register button and is redirected to the login page
register_elem = firefox_browser.find_element_by_id('submit')
register_elem.click()
assert 'Login' in firefox_browser.title
# She logs into the website with her newly created account
email_input_elem = firefox_browser.find_element_by_id('email')
email_input_elem.send_keys('edith@jones.com')
password_input_elem = firefox_browser.find_element_by_id('password')
password_input_elem.send_keys('123456789')
register_elem = firefox_browser.find_element_by_id('submit')
register_elem.click()
welcome_header_elem = firefox_browser.find_element_by_id('welcome')
assert 'Welcome back Edith' in welcome_header_elem.text
logout_link = firefox_browser.find_element_by_id('logout')
logout_link.click()
assert 'Login' in firefox_browser.title
|
# -*- coding: utf-8 -*-
# Coded by Sungwook Kim
# 2020-12-14
# IDE: Jupyter Notebook
N = int(input())
def num(N):
b = N
while True:
if b >= 10:
b = b - 10
else:
break
return b
k = -1
res = 0
trig = False
while True:
if trig == False:
b = num(N)
a = int((N -b) / 10)
c = a + b
d = num(c)
k = b * 10 + d
trig = True
else:
if N == k:
break
else:
b = num(k)
a = int((k - b) / 10)
c = a + b
d = num(c)
k = b * 10 + d
res += 1
print(res)
|
d = {
0: ["a", "f", "g", "l", "q", "r", "w"],
2: ["b", "m", "x"],
6: ["h", "s"],
12: ["c", "n", "y"],
20: ["i", "t"],
30: ["d", "o", "z"],
42: ["j", "u"],
56: ["e", "p"],
72: ["k", "v"]
}
def dinf_cipher(inp):
inp = inp.split(".")
x = []
for i in inp:
x.append(i)
final = []
for i in x:
t = (int(i) // 125571)
final.append(t)
result = []
for i in final:
t = ''.join(d[i])
result.append(t)
return result
def einf_cipher(inp):
inp = inp.split(".")
inp = ''.join(inp)
res = []
for i in inp:
for j in d:
if i in d[j]:
res.append(j)
return res
|
"""
main.py
Algorithm
Created by Mohd Shoaib Rayeen on 31/07/18.
Copyright © 2018 Shoaib Rayeen. All rights reserved.
"""
def CeilIndex(A, l, r, key):
while (r - l > 1):
m = l + (r - l)//2
if (A[m] >= key):
r = m
else:
l = m
return r
def LongestIncreasingSubsequenceLength(A, size):
tailTable = [0 for i in range(size+1)]
len=0
tailTable[0] = A[0]
len = 1
for i in range(1, size):
if (A[i] < tailTable[0]):
tailTable[0] = A[i]
elif (A[i] > tailTable[len-1]):
tailTable[len] = A[i]
len+=1
else:
tailTable[CeilIndex(tailTable, -1, len-1, A[i])] = A[i]
return len
A = [ 2, 5, 3, 7, 11, 8, 10, 13, 6 ]
n =len(A)
print("Length of Longest Increasing Subsequence is ", LongestIncreasingSubsequenceLength(A, n))
|
[n, budget] = [int(x) for x in input().split()]
pow2 = [ [ [int(x) for x in input().split() ] for _ in range(n) ] ]
power = 0
while True:
power += 1
pow2.append( [ [ min(budget+1, min(pow2[power-1][i][k] + pow2[power-1][k][j] for k in range(n))) for j in range(n)] for i in range(n)] )
if min(pow2[power][0]) > budget:
break
ans = [ [ budget+1 for x in range(n) ] for y in range(n) ]
ans[0][0] = 0
the_answer = 0
for p in range(power, -1, -1):
tmp = [ [ min(budget+1, min(ans[i][k] + pow2[p][k][j] for k in range(n))) for j in range(n)] for i in range(n)]
if min(tmp[0]) <= budget:
ans = tmp
the_answer += pow(2, p)
print(the_answer)
|
def is_intersect(box1, box2):
len_x = abs((box1[0] + box1[2]) / 2 - (box2[0] + box2[2]) / 2)
len_y = abs((box1[1] + box1[3]) / 2 - (box2[1] + box2[3]) / 2)
box1_x = abs(box1[0] - box1[2])
box2_x = abs(box2[0] - box2[2])
box1_y = abs(box1[1] - box1[3])
box2_y = abs(box2[1] - box2[3])
if len_x <= (box1_x + box2_x) / 2 and len_y <= (box1_y + box2_y) / 2:
return True
else:
return False
def compute_iou(box1, box2):
if not is_intersect(box1, box2):
return 0
col = min(box1[2], box2[2]) - max(box1[0], box2[0])
row = min(box1[3], box2[3]) - max(box1[1], box2[1])
intersection = col * row
box1_area = (box1[2] - box1[0]) * (box1[3] - box1[1])
box2_area = (box2[2] - box2[0]) * (box2[3] - box2[1])
coincide = intersection / (box1_area + box2_area - intersection)
return coincide
|
#!/usr/bin/env pytest-3
"""
Understanding Functional Programming
Functional programming defines a computation using expressions and evaluation; often these are
encapsulated in function definitions. It de-emphasizes or avoids the complexity of state change
and mutable objects.
In an imperative language, such as Python, the state of the computation is reflected by the values
of the variables in the various namespaces; some kinds of statements make a well-defined change to
the state by adding or changing (or even removing) a variable. A language is imperative because
each statement is a command, which changes the state in some way.
In a functional language, we replace the state—the changing values of variables—with a simpler
notion of evaluating functions. Each function evaluation creates a new object or objects from
existing objects. Since a functional program is a composition of functions, we can design lower-
level functions that are easy to understand, and then design higher-level compositions that can
also be easier to visualize than a complex sequence of statements.
"""
# pylint:disable=missing-docstring
# Using the functional paradigm
def test_sum_range_imperative():
"""
Sum a range of numbers - imperative and procedural. It relies on variables to explicitly show
the state of the program. They rely on the assignment statements to change the values of the
variables and advance the computation toward completion.
"""
total = 0
for num in range(1, 10):
if num % 3 == 0 or num % 5 == 0:
total += num
assert total == 23
def sum_recursive(seq):
"""
The sum of a sequence has a simple, recursive definition. We've defined the sum of a sequence
in two cases:
- the base case states that the sum of a zero length sequence is 0
- the recursive case states that the sum of a sequence is the first value plus the sum of the
rest of the sequence.
Since the recursive definition depends on a shorter sequence, we can be sure that it will
(eventually) devolve to the base case.
"""
if not seq: # Empty seq is false
return 0
return seq[0] + sum_recursive(seq[1:])
def test_sum_recursive():
assert sum_recursive([1, 2, 3, 4]) == 10
def until(upper_bound, filter_func, value):
"""
Similarly, a sequence of values can have a simple, recursive definition. We compare a given
value against the upper bound. If the value reaches the upper bound, the resulting list must be
empty. This is the base case for the given recursion.
There are two more cases defined by the given filter_func() function:
- If the value is passed by the filter_func() function, we'll create a very small list,
containing one element, and append the remaining values of the until() function to this list.
- If the value is rejected by the filter_func() function, this value is ignored and the result
is simply defined by the remaining values of the until() function.
We can see that the value will increase from an initial value until it reaches the upper bound,
assuring us that we'll reach the base case soon.
"""
if value == upper_bound:
return []
if filter_func(value):
return [value] + until(upper_bound, filter_func, value + 1)
return until(upper_bound, filter_func, value + 1)
def test_sequence_recursive():
assert until(5, lambda val: isinstance(val, int), 1) == [1, 2, 3, 4]
assert until(10, lambda val: val % 3 == 0 or val % 5 == 0, 0) == [0, 3, 5, 6, 9]
def test_sum_sequence_functional():
"""
In a functional sense, the sum of the multiples of three and five can be defined in two parts:
1. A sequence of values that pass a simple test condition - multiples of three and five
2. The sum of a sequence of numbers
sum_recursive() and until() are defined as simple recursive functions. The values are computed
without resorting to using intermediate variables to store the state.
Note: Many functional programming language compilers can optimize these kinds of simple
recursive functions. Python can't do the same optimizations.
"""
assert sum_recursive(until(10, lambda val: val % 3 == 0 or val % 5 == 0, 0)) == 23
# Using a functional hybrid
def test_functional_hybrid_sum_range():
"""
Use nested generator expressions to iterate through a collection of values and compute the sum
of these values. The variable val is bound to each value, more as a way of expressing the
contents of the set than as an indicator of the state of the computation. It doesn't exist
outside the binding in the generator expression; it doesn't define the state of the computation.
List comprehension: conditional construction of list literals using for and if clauses:
[n for n in range(1, 10) if n % 3 == 0 or n % 5 == 0]
Generator expression: A high performance, memory efficient generalization of list
comprehensions and generators. Iterates over the elements one at a time without needing to have
a full list created in memory.
Sum using list comprehension - build a full list of squares in memory, iterate over those
values, and, when the reference is no longer needed, delete the list:
sum([x*x for x in range(10)])
Sum using generator expression:
sum(x*x for x in range(10))
"""
# sum() consumes the generator expression, creating a final object, 23
assert sum(val for val in range(1, 10) if val % 3 == 0 or val % 5 == 0) == 23
|
idadetotal = 0
médiaidade = 0
maioridadeM = 0
nomeH = ''
totmulher = 0
for p in range(1, 5):
print('----- {}ª PESSOA -----'.format(p))
nome = str(input('Nome: ')).strip()
idade = int(input('Idade: '))
sexo = str(input('Sexo [M/F]: ')).strip().upper()
idadetotal += idade
if p == 1 and sexo == 'M':
maioridadeM = idade
nomeH = nome
if idade > maioridadeM and sexo == 'M':
maioridadeM = idade
nomeH = nome
if idade < 20 and sexo == 'F':
totmulher += 1
médiaidade = idadetotal / 4
print('A média de idade do grupo é: {}'.format(médiaidade))
print('O homem mais velho tem {} anos e se chama {}'.format(maioridadeM, nomeH))
print('{} mulheres tem menos de 20 anos de idade'.format(totmulher))
|
#
# PySNMP MIB module CISCO-MMAIL-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-MMAIL-DIAL-CONTROL-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:07:42 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)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
cCallHistoryIndex, = mibBuilder.importSymbols("CISCO-DIAL-CONTROL-MIB", "cCallHistoryIndex")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
CvcGUid, = mibBuilder.importSymbols("CISCO-VOICE-COMMON-DIAL-CONTROL-MIB", "CvcGUid")
callActiveIndex, AbsoluteCounter32, callActiveSetupTime = mibBuilder.importSymbols("DIAL-CONTROL-MIB", "callActiveIndex", "AbsoluteCounter32", "callActiveSetupTime")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance")
IpAddress, Integer32, Counter32, Bits, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter64, ModuleIdentity, ObjectIdentity, Gauge32, iso, Unsigned32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Counter32", "Bits", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter64", "ModuleIdentity", "ObjectIdentity", "Gauge32", "iso", "Unsigned32", "TimeTicks")
TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "DisplayString")
ciscoMediaMailDialControlMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 102))
ciscoMediaMailDialControlMIB.setRevisions(('2002-02-25 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoMediaMailDialControlMIB.setRevisionsDescriptions(('Fix for CSCdu86743 and CSCdu86778. The change include: - DEFVAL for cmmIpPeerCfgDeliStatNotification - Add dsnMdn option for cmmIpCallActiveNotification and cmmIpCallHistoryNotification - Object descriptor name change due to length exceeding 32. These are : cmmIpPeerCfgDeliStatNotification cmmIpCallHistoryAcceptMimeTypes cmmIpCallHistoryDiscdMimeTypes - All the lines exceed length 72 are being rewitten ',))
if mibBuilder.loadTexts: ciscoMediaMailDialControlMIB.setLastUpdated('200202250000Z')
if mibBuilder.loadTexts: ciscoMediaMailDialControlMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoMediaMailDialControlMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W. Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-voice@cisco.com')
if mibBuilder.loadTexts: ciscoMediaMailDialControlMIB.setDescription('This MIB module enhances the IETF Dial Control MIB (RFC2128) for providing management of dial peers on both a circuit-switched telephony network, and a mail server on IP network. ')
class CmmImgResolution(TextualConvention, Integer32):
reference = 'RFC2301: Section 4.5.2 Encoding and Resolution.'
description = 'Represents possible image resolution in Media Mail. standard - standard resolution. fine - fine resolution. superFine - super fine resolution. '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(2, 3, 4))
namedValues = NamedValues(("standard", 2), ("fine", 3), ("superFine", 4))
class CmmImgResolutionOrTransparent(TextualConvention, Integer32):
reference = 'RFC2301: Section 4.5.2 Encoding and Resolution.'
description = 'Represents possible image resolution and transparent mode. transparent - pass through mode. standard - standard resolution. fine - fine resolution. superFine - super fine resolution. '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("transparent", 1), ("standard", 2), ("fine", 3), ("superFine", 4))
class CmmImgEncoding(TextualConvention, Integer32):
reference = 'RFC2301: Section 1.3 Overview of this draft. ITU-T Rec. T.4 (MH - Modified Huffman). ITU-T Rec. T.4 (MR - Modified READ). ITU-T Rec. T.6 (MRR - Modified MR). '
description = 'Represents possible image encoding types in Media Mail. modifiedHuffman - Modified Huffman (MH). modifiedREAD - Modified READ (MR). modifiedMR - Modified Modified READ (MMR). '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(2, 3, 4))
namedValues = NamedValues(("modifiedHuffman", 2), ("modifiedREAD", 3), ("modifiedMR", 4))
class CmmImgEncodingOrTransparent(TextualConvention, Integer32):
reference = 'RFC2301: Section 1.3 Overview of this draft. ITU-T Rec. T.4 (MH - Modified Huffman). ITU-T Rec. T.4 (MR - Modified READ). ITU-T Rec. T.6 (MRR - Modified MR). '
description = 'Represents possible image encoding types and transparent mode. transparent - pass through mode. modifiedHuffman - Modified Huffman (MH). modifiedREAD - Modified READ (MR). modifiedMR - Modified Modified READ (MMR). '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("transparent", 1), ("modifiedHuffman", 2), ("modifiedREAD", 3), ("modifiedMR", 4))
class CmmFaxHeadingString(DisplayString):
description = "The regular expression for the FAX heading at the top of cover page or text page. The regular expression syntax used in this object is the same as that used by the UNIX grep program. The embedded pattern substitutions are defined as follows: $p$ - translates to the page number as passed by FAX processing. $a$ - translates to human readable year-month-day that is defined in DateAndTime of SNMPv2-TC. $d$ - translates to the called party address. $s$ - translates to the calling party address. $t$ - translates to the time of transmission of the first FAX/image page. The human readable format is defined as year-month-day,hour:minutes:second in the DateAndTime of SNMPv2-TC. Example, 'Date:$a$' means replacing the heading of a FAX page with the the string and date substitution. 'From $s$ Broadcast Service' means replacing the heading of FAX page with the the string and calling party address substitution. 'Page:$p$' means replacing the heading of a FAX page with the string and page number substitution. "
status = 'current'
subtypeSpec = DisplayString.subtypeSpec + ValueSizeConstraint(0, 80)
cmmdcMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 1))
cmmPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1))
cmmCallActive = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2))
cmmCallHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3))
cmmFaxGeneralCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4))
cmmIpPeerCfgTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1), )
if mibBuilder.loadTexts: cmmIpPeerCfgTable.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgTable.setDescription('The table contains the Media mail peer specific information that is required to accept mail connection or to which it will connect them via IP network with the specified session protocol in cmmIpPeerCfgSessionProtocol. ')
cmmIpPeerCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: cmmIpPeerCfgEntry.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgEntry.setDescription("A single Media Mail specific Peer. One entry per media mail encapsulation. The entry is created when its associated 'mediaMailOverIp(139)' encapsulation ifEntry is created. This entry is deleted when its associated ifEntry is deleted. ")
cmmIpPeerCfgSessionProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("smtp", 1))).clone('smtp')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgSessionProtocol.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgSessionProtocol.setDescription('The object specifies the session protocol to be used for sending/receiving media mail between local and remote mail sever via IP network. smtp - Simple Mail Transfer Protocol. ')
cmmIpPeerCfgSessionTarget = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgSessionTarget.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgSessionTarget.setDescription('The object specifies the session target of the peer. Session Targets definitions: The session target has the syntax used by the IETF service location protocol. The syntax is as follows: mapping-type:type-specific-syntax The mapping-type specifies a scheme for mapping the matching dial string to a session target. The type-specific-syntax is exactly that, something that the particular mapping scheme can understand. For example, Session target mailto:+$d$@fax.cisco.com The valid Mapping type definitions for the peer are as follows: mailto - Syntax: mailto:w@x.y.z ')
cmmIpPeerCfgImgEncodingType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 3), CmmImgEncodingOrTransparent().clone('transparent')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgImgEncodingType.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgImgEncodingType.setDescription("This object specifies the image encoding conversion for outgoing mail connection to mail server. If the value of this object is transparent, it means 'pass through' without encoding conversion. ")
cmmIpPeerCfgImgResolution = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 4), CmmImgResolutionOrTransparent().clone('transparent')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgImgResolution.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgImgResolution.setDescription("This object specifies the image resolution conversion for outgoing mail connection to mail server. If the value of this object is transparent, it means 'pass through' without resolution conversion. ")
cmmIpPeerCfgMsgDispoNotification = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgMsgDispoNotification.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgMsgDispoNotification.setDescription('This object specifies the Request of Message Disposition Notification. true - Request Message Disposition Notification. false - No Message Disposition Notification. ')
cmmIpPeerCfgDeliStatNotification = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 1, 1, 1, 6), Bits().clone(namedValues=NamedValues(("success", 0), ("failure", 1), ("delayed", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmIpPeerCfgDeliStatNotification.setStatus('current')
if mibBuilder.loadTexts: cmmIpPeerCfgDeliStatNotification.setDescription('This object specifies the Request of Delivery Status Notification. success - Request Notification if the media mail is successfully delivered to the recipient. failure - Request Notification if the media mail is failed to deliver to the recipient. delayed - Request Notification if the media mail is delayed to deliver to the recipient. ')
cmmIpCallActiveTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1), )
if mibBuilder.loadTexts: cmmIpCallActiveTable.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveTable.setDescription('This table is the Media Mail over IP extension to the call active table of IETF Dial Control MIB. It contains Media Mail over IP call leg information. ')
cmmIpCallActiveEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1), ).setIndexNames((0, "DIAL-CONTROL-MIB", "callActiveSetupTime"), (0, "DIAL-CONTROL-MIB", "callActiveIndex"))
if mibBuilder.loadTexts: cmmIpCallActiveEntry.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveEntry.setDescription('The information regarding a single Media mail over IP call leg. The call leg entry is identified by using the same index objects that are used by Call Active table of IETF Dial Control MIB to identify the call. An entry of this table is created when its associated call active entry in the IETF Dial Control MIB is created and the call active entry contains information for the call establishment to the mail server peer on the IP network via a Media Mail over IP peer. The entry is deleted when its associated call active entry in the IETF Dial Control MIB is deleted. ')
cmmIpCallActiveConnectionId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 1), CvcGUid()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveConnectionId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveConnectionId.setDescription('The global call identifier for the gateway call.')
cmmIpCallActiveRemoteIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveRemoteIPAddress.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveRemoteIPAddress.setDescription('Remote mail server IP address for the Media mail call. ')
cmmIpCallActiveSessionProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("smtp", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveSessionProtocol.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveSessionProtocol.setDescription('The object specifies the session protocol to be used for the media mail call between local and remote mail server via IP network. ')
cmmIpCallActiveSessionTarget = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveSessionTarget.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveSessionTarget.setDescription('The object specifies the session target of the peer that is used for the call. This object is set with the information in the call associated cmmIpPeerCfgSessionTarget object when the media mail call is connected. ')
cmmIpCallActiveMessageId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveMessageId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveMessageId.setDescription('The global unique message identification of the Media mail. ')
cmmIpCallActiveAccountId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveAccountId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveAccountId.setDescription('The Account ID of Media mail.')
cmmIpCallActiveImgEncodingType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 7), CmmImgEncoding()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveImgEncodingType.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveImgEncodingType.setDescription('The image encoding type of Media mail.')
cmmIpCallActiveImgResolution = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 8), CmmImgResolution()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveImgResolution.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveImgResolution.setDescription('The image resolution of Media mail.')
cmmIpCallActiveAcceptMimeTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 9), AbsoluteCounter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveAcceptMimeTypes.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveAcceptMimeTypes.setDescription('The number of accepted MIME types for the Media mail call. ')
cmmIpCallActiveDiscdMimeTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 10), AbsoluteCounter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveDiscdMimeTypes.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveDiscdMimeTypes.setDescription('The number of discarded MIME types for the Media mail call. ')
cmmIpCallActiveNotification = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("mdn", 2), ("dsn", 3), ("dsnMdn", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallActiveNotification.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallActiveNotification.setDescription('The notification type of the Media mail call. none - No notification. mdn - Message Disposition notification. dsn - Delivery Status notification. dsnMdn - Both Delivery Status and Message Disposition notification ')
cmmIpCallHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1), )
if mibBuilder.loadTexts: cmmIpCallHistoryTable.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryTable.setDescription('This table is the Media Mail extension to the call history table of IETF Dial Control MIB. It contains Media Mail call leg information about specific Media mail gateway call. ')
cmmIpCallHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-DIAL-CONTROL-MIB", "cCallHistoryIndex"))
if mibBuilder.loadTexts: cmmIpCallHistoryEntry.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryEntry.setDescription('The information regarding a single Media Mail call leg. The call leg entry is identified by using the same index objects that are used by Call Active table of IETF Dial Control MIB to identify the call. An entry of this table is created when its associated call history entry in the IETF Dial Control MIB is created and the call history entry contains information for the call establishment to the mail server on the IP network via a Media Mail over IP peer. The entry is deleted when its associated call history entry in the IETF Dial Control MIB is deleted. ')
cmmIpCallHistoryConnectionId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 1), CvcGUid()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryConnectionId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryConnectionId.setDescription('The global call identifier for the gateway call.')
cmmIpCallHistoryRemoteIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryRemoteIPAddress.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryRemoteIPAddress.setDescription('Remote mail server IP address for the media mail call. ')
cmmIpCallHistorySessionProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("smtp", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistorySessionProtocol.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistorySessionProtocol.setDescription('The object specifies the session protocol to be used for the media mail call between local and remote mail server via IP network. ')
cmmIpCallHistorySessionTarget = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistorySessionTarget.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistorySessionTarget.setDescription('The object specifies the session target of the peer that is used for the call. This object is set with the information in the call associated cmmIpPeerCfgSessionTarget object when the media mail call is connected. ')
cmmIpCallHistoryMessageId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryMessageId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryMessageId.setDescription('The global unique message identification of the Media mail. ')
cmmIpCallHistoryAccountId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryAccountId.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryAccountId.setDescription('The Account ID of Media mail.')
cmmIpCallHistoryImgEncodingType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 7), CmmImgEncoding()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryImgEncodingType.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryImgEncodingType.setDescription('The image encoding type of Media mail.')
cmmIpCallHistoryImgResolution = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 8), CmmImgResolution()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryImgResolution.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryImgResolution.setDescription('The image resolution of Media mail.')
cmmIpCallHistoryAcceptMimeTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 9), AbsoluteCounter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryAcceptMimeTypes.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryAcceptMimeTypes.setDescription('The number of accepted MIME types for the Media mail call. ')
cmmIpCallHistoryDiscdMimeTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 10), AbsoluteCounter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryDiscdMimeTypes.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryDiscdMimeTypes.setDescription('The number of discarded MIME types for the Media mail call. ')
cmmIpCallHistoryNotification = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("mdn", 2), ("dsn", 3), ("dsnMdn", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cmmIpCallHistoryNotification.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallHistoryNotification.setDescription('The notification type of the Media mail call. none - No notification. mdn - Message Disposition notification. dsn - Delivery Status notification. dsnMdn - Both Delivery Status and Message Disposition notification ')
cmmFaxCfgCalledSubscriberId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgCalledSubscriberId.setReference('ITU-T T30: Section 5.3.6.2.4 CSI coding format. ')
if mibBuilder.loadTexts: cmmFaxCfgCalledSubscriberId.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgCalledSubscriberId.setDescription('The regular expression for the FAX called subscriber identification (CSI) coding format. $d$ in the regular expression substitute CSI with the destination number of the call. ')
cmmFaxCfgXmitSubscriberId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgXmitSubscriberId.setReference('ITU-T T30: Section 5.3.6.2.6 TSI coding format. ')
if mibBuilder.loadTexts: cmmFaxCfgXmitSubscriberId.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgXmitSubscriberId.setDescription('The regular expression for the FAX Transmitting subscriber identification (TSI) coding format. $s$ in the regular expression substitute TSI with the caller ID of the call. ')
cmmFaxCfgRightHeadingString = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 3), CmmFaxHeadingString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgRightHeadingString.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgRightHeadingString.setDescription('The regular expression for the FAX right heading at the top of cover page or text page. The default value of this object is an empty string. ')
cmmFaxCfgCenterHeadingString = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 4), CmmFaxHeadingString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgCenterHeadingString.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgCenterHeadingString.setDescription('The regular expression for the FAX center heading at the top of cover page or text page. The default value of this object is an empty string. ')
cmmFaxCfgLeftHeadingString = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 5), CmmFaxHeadingString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgLeftHeadingString.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgLeftHeadingString.setDescription('The regular expression for the FAX left heading at the top of cover page or text page. The default value of this object is an empty string. ')
cmmFaxCfgCovergPageControl = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 6), Bits().clone(namedValues=NamedValues(("coverPageEnable", 0), ("coverPageCtlByEmail", 1), ("coverPageDetailEnable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgCovergPageControl.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgCovergPageControl.setDescription('The object controls the generation of cover page of FAX. coverPageEnable - enable the managed system to generate the FAX cover page. coverPageCtlByEmail - allow email to control the FAX cover page generation. coverPageDetailEnable- enable the detailed mail header on the cover page. ')
cmmFaxCfgCovergPageComment = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgCovergPageComment.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgCovergPageComment.setDescription('The object contains the comment on the FAX cover page. ')
cmmFaxCfgFaxProfile = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 102, 1, 4, 8), Bits().clone(namedValues=NamedValues(("profileS", 0), ("profileF", 1), ("profileJ", 2), ("profileC", 3), ("profileL", 4), ("profileM", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cmmFaxCfgFaxProfile.setReference('RFC 2301: Section 2.2.4 New TIFF fields recommended for fax modes. ')
if mibBuilder.loadTexts: cmmFaxCfgFaxProfile.setStatus('current')
if mibBuilder.loadTexts: cmmFaxCfgFaxProfile.setDescription('The profile that applies to TIFF file for facsimile. The default value of this object is profileF. ')
cmmdcMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 3))
cmmdcMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 1))
cmmdcMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 2))
cmmdcMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 1, 1)).setObjects(("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmdcPeerCfgGroup"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallGeneralGroup"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallImageGroup"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cmmdcMIBCompliance = cmmdcMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: cmmdcMIBCompliance.setDescription('The compliance statement for entities which implement the CISCO MMAIL DIAL CONTROL MIB')
cmmdcPeerCfgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 2, 1)).setObjects(("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgSessionProtocol"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgSessionTarget"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgImgEncodingType"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgImgResolution"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgMsgDispoNotification"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpPeerCfgDeliStatNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cmmdcPeerCfgGroup = cmmdcPeerCfgGroup.setStatus('current')
if mibBuilder.loadTexts: cmmdcPeerCfgGroup.setDescription('A collection of objects providing the Media Mail Dial Control configuration capability. ')
cmmIpCallGeneralGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 2, 2)).setObjects(("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveConnectionId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveRemoteIPAddress"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveSessionProtocol"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveSessionTarget"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveMessageId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveAccountId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveAcceptMimeTypes"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveDiscdMimeTypes"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveNotification"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryConnectionId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryRemoteIPAddress"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistorySessionProtocol"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistorySessionTarget"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryMessageId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryAccountId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryAcceptMimeTypes"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryDiscdMimeTypes"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cmmIpCallGeneralGroup = cmmIpCallGeneralGroup.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallGeneralGroup.setDescription('A collection of objects providing the General Media Mail Call capability. ')
cmmIpCallImageGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 2, 3)).setObjects(("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveImgEncodingType"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallActiveImgResolution"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryImgEncodingType"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmIpCallHistoryImgResolution"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cmmIpCallImageGroup = cmmIpCallImageGroup.setStatus('current')
if mibBuilder.loadTexts: cmmIpCallImageGroup.setDescription('A collection of objects providing the Image related Media Mail Call capability. ')
cmmFaxGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 102, 3, 2, 4)).setObjects(("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgCalledSubscriberId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgXmitSubscriberId"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgRightHeadingString"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgCenterHeadingString"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgLeftHeadingString"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgCovergPageControl"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgCovergPageComment"), ("CISCO-MMAIL-DIAL-CONTROL-MIB", "cmmFaxCfgFaxProfile"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cmmFaxGroup = cmmFaxGroup.setStatus('current')
if mibBuilder.loadTexts: cmmFaxGroup.setDescription('A collection of objects providing the general FAX configuration capability. ')
mibBuilder.exportSymbols("CISCO-MMAIL-DIAL-CONTROL-MIB", cmmIpCallGeneralGroup=cmmIpCallGeneralGroup, cmmIpCallHistoryConnectionId=cmmIpCallHistoryConnectionId, cmmIpPeerCfgSessionProtocol=cmmIpPeerCfgSessionProtocol, cmmIpCallHistoryImgResolution=cmmIpCallHistoryImgResolution, cmmIpCallImageGroup=cmmIpCallImageGroup, cmmIpPeerCfgImgResolution=cmmIpPeerCfgImgResolution, cmmFaxCfgCalledSubscriberId=cmmFaxCfgCalledSubscriberId, cmmFaxCfgCenterHeadingString=cmmFaxCfgCenterHeadingString, cmmIpCallActiveSessionTarget=cmmIpCallActiveSessionTarget, cmmFaxGeneralCfg=cmmFaxGeneralCfg, cmmIpCallHistoryRemoteIPAddress=cmmIpCallHistoryRemoteIPAddress, cmmdcMIBObjects=cmmdcMIBObjects, cmmIpCallActiveDiscdMimeTypes=cmmIpCallActiveDiscdMimeTypes, CmmImgResolution=CmmImgResolution, cmmIpCallActiveNotification=cmmIpCallActiveNotification, cmmFaxGroup=cmmFaxGroup, cmmIpPeerCfgSessionTarget=cmmIpPeerCfgSessionTarget, cmmIpCallActiveImgEncodingType=cmmIpCallActiveImgEncodingType, cmmIpCallHistorySessionTarget=cmmIpCallHistorySessionTarget, cmmIpCallHistoryEntry=cmmIpCallHistoryEntry, cmmIpCallActiveAccountId=cmmIpCallActiveAccountId, cmmFaxCfgRightHeadingString=cmmFaxCfgRightHeadingString, cmmFaxCfgCovergPageComment=cmmFaxCfgCovergPageComment, ciscoMediaMailDialControlMIB=ciscoMediaMailDialControlMIB, PYSNMP_MODULE_ID=ciscoMediaMailDialControlMIB, cmmIpCallActiveRemoteIPAddress=cmmIpCallActiveRemoteIPAddress, cmmIpCallActiveEntry=cmmIpCallActiveEntry, cmmIpCallActiveSessionProtocol=cmmIpCallActiveSessionProtocol, cmmIpCallHistoryAcceptMimeTypes=cmmIpCallHistoryAcceptMimeTypes, cmmIpCallHistorySessionProtocol=cmmIpCallHistorySessionProtocol, cmmPeer=cmmPeer, cmmFaxCfgLeftHeadingString=cmmFaxCfgLeftHeadingString, cmmIpPeerCfgDeliStatNotification=cmmIpPeerCfgDeliStatNotification, cmmCallActive=cmmCallActive, cmmIpCallActiveAcceptMimeTypes=cmmIpCallActiveAcceptMimeTypes, cmmFaxCfgCovergPageControl=cmmFaxCfgCovergPageControl, cmmdcMIBConformance=cmmdcMIBConformance, CmmImgEncoding=CmmImgEncoding, cmmFaxCfgFaxProfile=cmmFaxCfgFaxProfile, cmmIpPeerCfgEntry=cmmIpPeerCfgEntry, cmmIpCallHistoryDiscdMimeTypes=cmmIpCallHistoryDiscdMimeTypes, cmmdcPeerCfgGroup=cmmdcPeerCfgGroup, CmmImgEncodingOrTransparent=CmmImgEncodingOrTransparent, cmmIpCallHistoryImgEncodingType=cmmIpCallHistoryImgEncodingType, cmmIpPeerCfgTable=cmmIpPeerCfgTable, cmmdcMIBCompliances=cmmdcMIBCompliances, cmmIpPeerCfgMsgDispoNotification=cmmIpPeerCfgMsgDispoNotification, cmmIpPeerCfgImgEncodingType=cmmIpPeerCfgImgEncodingType, cmmIpCallHistoryTable=cmmIpCallHistoryTable, CmmImgResolutionOrTransparent=CmmImgResolutionOrTransparent, cmmFaxCfgXmitSubscriberId=cmmFaxCfgXmitSubscriberId, cmmdcMIBCompliance=cmmdcMIBCompliance, cmmIpCallActiveImgResolution=cmmIpCallActiveImgResolution, cmmIpCallActiveMessageId=cmmIpCallActiveMessageId, cmmdcMIBGroups=cmmdcMIBGroups, cmmIpCallHistoryAccountId=cmmIpCallHistoryAccountId, cmmCallHistory=cmmCallHistory, cmmIpCallActiveTable=cmmIpCallActiveTable, cmmIpCallHistoryNotification=cmmIpCallHistoryNotification, cmmIpCallActiveConnectionId=cmmIpCallActiveConnectionId, CmmFaxHeadingString=CmmFaxHeadingString, cmmIpCallHistoryMessageId=cmmIpCallHistoryMessageId)
|
"""
File: anagram.py
Name: Jasmine Tsai
----------------------------------
This program recursively finds all the anagram(s)
for the word input by user and terminates when the
input string matches the EXIT constant defined
at line 19
If you correctly implement this program, you should see the
number of anagrams for each word listed below:
* arm -> 3 anagrams
* contains -> 5 anagrams
* stop -> 6 anagrams
* tesla -> 10 anagrams
* spear -> 12 anagrams
"""
# Constants
FILE = 'dictionary.txt' # This is the filename of an English dictionary
EXIT = '-1' # Controls when to stop the loop
dict_lst = []
counter = 0
found = []
def main():
read_dictionary()
print('Welcome to stanCode \" Anagram Generator\" (or -1 to quit/)')
while True:
inp = input(str('Find anagrams for: ')) # user input
inp = inp.lower()
if inp == EXIT:
break
find_anagrams(inp)
def read_dictionary():
with open(FILE, 'r') as f:
for line in f:
dict_lst.append(line.strip())
def find_anagrams(s):
"""
:param s: user input
:return: None
"""
global counter
print('Searching...')
helper(s, found, '', [])
print(f'{counter} anagrams: {found}')
def helper(s, current_lst, current_word, index):
global counter
if len(current_word) == len(s) and current_word in dict_lst: # if the word in dictionary and length is len(s)
if current_word not in current_lst: # if the word not in list append
current_lst.append(current_word)
print('Found: ' + current_word)
print('Searching...')
counter += 1
else:
for i in range(len(s)):
if i not in index:
# choose
current_word += s[i]
index.append(i)
# explore
if has_prefix(current_word):
helper(s, current_lst, current_word, index)
# un-choose
current_word = current_word[:-1]
index.pop()
def has_prefix(sub_s):
"""
:param sub_s: the un-check combination
:return: the combination is in the dictionary or not
"""
for ch in dict_lst:
if ch.startswith(sub_s):
return ch.startswith(sub_s)
if __name__ == '__main__':
main()
|
"""This modules provides strng formatting functions
prepare_data_for_db insert:
formatting data to be inserted in database table
concat_list:
concatenate list elements in a string w/wo separator
to_str:
transform value to str
is_str:
test if value is str
concat_key_value:
concatenate key values of a dictionnary
{key1: value1, key2: value2} --> ['key1 value1', 'key2 value2']
"""
def prepare_data_for_db_insert(data_list, primary_key=False):
"""Prepare data to be insert in a database
str elements are surrounded with quotes 'text'
primary_key allows to include first null value in the string
Parameters
----------
data_list: list
elements to include in the str
[val_int1, val_int2, ..., val_str_1]
primary_key: bool
include first Null value in the string (default: False)
Returns
-------
str
"(val_int1, val_int2, ..., 'val_str_1')"
or
"(Null, val_int1, val_int2, ..., 'val_str_1')"
"""
if primary_key:
return "(NULL, " + concat_list(data_list, ",", quote_str=True) + ")"
else:
return "(" + concat_list(data_list, ",", quote_str=True) + ")"
def concat_list(str_list, sep, quote_str=False):
"""Concat elements of a list into a string with a separator,
if quote_str is True, surround str elements with quotes 'text'
Parameters
----------
str_list: list
list of elements to concatenate
sep: str
separator
quote_str: bool
if True, surround str elements with quotes 'text' (default: False)
Returns
-------
str:
string of
"""
# First element from the list
first_element = to_str(str_list[0], quote_str)
concat_str = first_element
# If there are more than 1 element in the list, transform it to
# str if needed and concatenate it
if len(str_list) > 0:
for i in range(1, len(str_list)):
new_element = to_str(str_list[i], quote_str)
concat_str = concat_str + sep + new_element
return concat_str
def to_str(val, quote_str=False):
"""test if a value's type is str. It not, transform it to str
if quote_str is True, surround str elements with quotes 'text'
Parameters
----------
val: 1dim value
value to test and transform
quote_str: bool
if True, surround str elements with quotes 'text' (default: False)
Returns
-------
str:
processed value
"""
if is_str(val) and quote_str:
return "\'" + val + "\'"
elif is_str(val):
return val
else:
return str(val)
def is_str(txt):
"""test if a value's type is string
Parameters
----------
txt:
value to test
Returns
-------
bool:
True if txt is str, False otherwise
"""
return type(txt) == str
def concat_key_value(str_dict):
"""concat keys and values of dict containing strings elements
into a list
Parameters
----------
str_dict: dict
dict to process
{key1: value1, key2: value2}
Returns
-------
list
['key1 value1', 'key2 value2']
"""
return [key + ' ' + value for key, value in str_dict.items()]
|
class Solution:
def isPalindrome(self, x: int) -> bool:
if(x<0):
return False
elif(x==0):
return True
else:
reverse = 0
divi = x
while(divi!=0):
rem = divi%10
reverse = reverse*10 + rem
divi = divi//10
if(reverse==x):
return True
else:
return False
|
"""
Java dependencies
"""
load("@rules_jvm_external//:defs.bzl", "maven_install")
def maven_fetch_remote_artifacts():
"""
Fetch maven artifacts
"""
maven_install(
artifacts = [
"com.fasterxml.jackson.core:jackson-core:2.11.2",
"com.fasterxml.jackson.core:jackson-databind:2.11.2",
"org.apache.pdfbox:pdfbox:2.0.20",
"org.apache.kafka:kafka_2.13:2.6.0",
"org.apache.kafka:kafka-clients:2.6.0",
"org.grobid:grobid-core:0.6.1",
"org.yaml:snakeyaml:1.26",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
"https://dl.bintray.com/rookies/maven",
],
)
|
# -*- coding: utf-8 -*-
"""Main module."""
def hello_world():
"""Say hello to world.
:returns: Nothing
:rtype: NoneType
"""
print("Hello world")
|
#
# @lc app=leetcode.cn id=461 lang=python3
#
# [461] hamming-distance
#
None
# @lc code=end
|
lista= []
while True:
valor = int(input('Digite um valor: '))
if valor not in lista:
lista.append(valor)
print('Valor adicionado com sucesso...')
else:
print('Valor duplicado, impossível adicionar!')
opcao = input('Deseja continuar? [S/N] ')
while opcao not in 'SsNn':
opcao = input('Deseja continuar? [S/N] ')
if opcao in 'Nn':
break
print('-='*25)
if len(lista) > 1:
print('Voce digitou os valores ', end='')
print(*sorted(lista),sep=', ')
elif len(lista) == 1:
print(f'Você digitou o valor {valor}')
print('OBRIGADO POR PARTICIPAR!')
|
# Can you do it with a conditional statement (if / if-else) instead?
x1 = float(input("number? "))
x2 = float(input("number? "))
#if x1 > x2:
# mx = x1
#elif x2 > x1:
# mx = x2
#else:
# mx = x1
print("Maximum:", x1 if x1 > x2 else x2)
|
#!/usr/bin/env python3
'''
TITLE:
[2018-09-04] Challenge #367 [Easy] Subfactorials - Another Twist on Factorials
LINK:
https://www.reddit.com/r/dailyprogrammer/comments/9cvo0f/20180904_challenge_367_easy_subfactorials_another/
DERIVATION:
Start with n numbers 1...n, and n slots #1...#n. Take the number 1 and place it
in some slot #x, there are (n-1) possible choices for this. Now x can be placed
in any of the remaining free slots, including #1, since its own slot is already
occupied by the 1. There are !(n-1) possibilities where x never appears in slot
#1, and !(n-2) possibilities, where x is always in slot #1.
'''
def subfactorial(n):
if n <= 0 or n != int(n):
raise ValueError(f"n must be a positive integer! (input: n = {n})")
elif n == 1:
return 0
elif n == 2:
return 1
else:
return (n-1) * (subfactorial(n-1) + subfactorial(n-2))
# Test cases
assert(subfactorial(1) == 0)
assert(subfactorial(2) == 1)
assert(subfactorial(3) == 2)
assert(subfactorial(4) == 9)
assert(subfactorial(5) == 44)
# Challenge
assert(subfactorial(6) == 265)
assert(subfactorial(9) == 133496)
assert(subfactorial(14) == 32071101049)
# Final output
print("All tests passed!")
print(f"subfactorial(15) = {subfactorial(15)}")
print()
|
def run():
my_list = ["Hello", 1, True, 4.5]
my_dict = { "firstname": "Sebastian", "lastname": "Granda" }
super_list = [
{ "firstname": "Valentina", "lastname": "Mora" },
{ "firstname": "Sebastian", "lastname": "Granda" },
{ "firstname": "Isaac", "lastname": "Hincapie" },
{ "firstname": "Camilo", "lastname": "Romero" },
]
super_dict = {
"natural_nums": list(range(1,6)),
"integer_nums": list(range(-6, 6)),
"float_nums": [1.1, 0.89, 15.85, 33.22]
}
for key, value in super_dict.items():
print(f"{key} = {value}")
for person in super_list:
print(f"{person['firstname']} {person['lastname']}")
if __name__ == '__main__':
run()
|
# -*- coding: utf-8 -*-
{
"name": "WeCom HRM",
"author": "RStudio",
"sequence": 607,
"installable": True,
"application": True,
"auto_install": False,
"category": "WeCom/WeCom",
"website": "https://gitee.com/rainbowstudio/wecom",
"version": "15.0.0.1",
"summary": """
""",
"description": """
""",
"depends": [],
"data": [
# "security/ir.model.access.csv",
"data/ir_config_parameter.xml",
"data/hr_data.xml",
"wizard/employee_bind_wecom_views.xml",
"wizard/user_bind_wecom_views.xml",
"views/ir_ui_menu_views.xml",
"views/res_config_settings_views.xml",
"views/hr_department_view.xml",
"views/hr_employee_view.xml",
"views/hr_employee_category_views.xml",
"views/menu_views.xml",
],
"assets": {
"web.assets_backend": [
# SCSSS
# JS
"wecom_hrm/static/src/js/download_deps.js",
"wecom_hrm/static/src/js/download_staffs.js",
"wecom_hrm/static/src/js/download_tags.js",
],
"web.assets_qweb": ["wecom_hrm/static/src/xml/*.xml",],
},
"external_dependencies": {"python": [],},
"license": "LGPL-3",
}
|
#Reference for basic numerical operations and comparisons
x = 9
y = 3
#Arithmetic Operators
print(x+y) #Addition
print(x-y) #Subtraction
print(x*y) #Multiplication
print(x/y) #Division
print(x%y) #Modulus -- remainder after division
print(x**y) #Exponentiation
x = 9.191823
print(x//y) #Floor Division -- number of times y goes into x evenly
#Assignment Operators
x = 9 #set x = 9
x += 3 #set x = x + 3
print(x)
x = 9
x -= 3 #set x = x - 3
print(x)
x *= 3 #set x = x * 3
print(x)
x /= 3 # set x = x / 3
print(x)
x **= 3 #set x = x **3 -- x = x^3
print(x)
#Comparison Operators
x = 9
y = 3
print (x==y) #True if x equals y, False otherwise
print(x!=y) #True if x does not equal y, False otherwise
print(x>y) #True if x is greater than y, False otherwise
print(x<y) #True if x is less than y, False otherwise
print(x>=y) #True if x is greater than or equal to y, False otherwise
print(x<=y) #True if x is less than or equal to y, False otherwise
|
days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
months = ["January","February","March","April","May","June","July","August","September","October","November","December"]
def formatRange(dates):
#We first extract the calendar day of the range
startingDay = days[dates[0].weekday()]
endingDay = days[dates[1].weekday()]
#We then extract the month of the Range
startingMonth = months[dates[0].month-1]
endingMonth = months[dates[1].month -1]
#We then extract the date of the Range
startingDate = dates[0].day
endingDate = dates[1].day
#Next comes the Year
Year = dates[0].year
start = startingDay +", "+ str(startingDate)+ " " +startingMonth+ " "+ str(Year)
end = endingDay +", "+str(endingDate)+ " " +endingMonth+ " "+ str(Year)
return(start,end,dates[2])
|
class LoginError(Exception):
""" Could not login to the server. """
pass
class NotLoggedInError(Exception):
""" Cannot properly interact with Fur Affinity unless you are logged in. """
pass
class MaturityError(Exception):
""" Cannot access that submission on this account because of maturity filter. """
pass
class SubmissionNotFoundError(Exception):
""" Could not find that submission. It has either been taken down, or does not exist yet. """
pass
class AccessError(Exception):
""" For some unknown reason Fur Affinity would not allow access to a submission. Try again. """
pass
class SubmissionFileNotAccessible(Exception):
""" Could not find/download the submission file. """
pass
class IPBanError(Exception):
""" You appear to be IP banned. This is not good. """
pass
|
class EmptyObject:
pass
EMPTY = EmptyObject() # sentinel object to represent empty node output
def is_empty(obj):
return isinstance(obj, EmptyObject)
|
"""
Structural pattern :
Proxy
Examples :
1. use in orm
"""
class Db:
def work(self):
print('you are admin so you can work with database...')
class Proxy:
admin_password = 'secret'
def check_admin(self, password):
if password == self.admin_password:
d1 = Db()
d1.work()
else:
print('You are not admin so you cant work with database...')
p1 = Proxy()
p1.check_admin('secret')
|
'''
Input
The first line of the input file contains two integers N and M --- number of nodes and number of edges in the graph (0 < N <= 10000, 0 <= M <= 20000). Next M lines contain M edges of that graph --- Each line contains a pair (u, v) means there is an edge between node u and node v (1 <= u,v <= N).
Output
Print YES if the given graph is a tree, otherwise print NO.
Example
Input:
3 2
1 2
2 3
Output:
YES
'''
numbers = input().split()
num_of_nodes = int(numbers[0])
num_of_edges = int(numbers[1])
#check that the # of edges is at most greater # of nodes -1.
if num_of_nodes - 1 != num_of_edges:
print("NO")
#keep a set with each of the nodes visited. Each node will be unique with a unique number.
nodes_visited = set()
for _ in range(num_of_edges):
numbers = input().split()
a = numbers[0]
b = numbers[1]
#add the node into the set if not added
nodes_visited.add(a)
nodes_visited.add(b)
if len(nodes_visited) == num_of_nodes:
print("YES")
else:
print("NO")
|
# TODO: we will have to figure out a better way of generating this file
build_time_vars = {
"CC": "gcc -pthread",
"CXX": "g++ -pthread",
"OPT": "-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes",
"CFLAGS": "-fno-strict-aliasing -g -O3 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes",
"CCSHARED": "-fPIC",
"LDSHARED": "gcc -pthread -shared",
"SO": ".pyston.so",
"AR": "ar",
"ARFLAGS": "rc",
}
|
class Pizza:
def __init__(self, name, dough, toppings_capacity):
self.__name = name
self.__dough = dough
self.__toppings_capacity = toppings_capacity
self.__toppings = {}
@property
def name(self):
return self.__name
@name.setter
def name(self, new_name):
self.__name = new_name
@property
def dough(self):
return self.__dough
@dough.setter
def dough(self, new_dough):
self.__dough = new_dough
@property
def toppings(self):
return self.__toppings
@toppings.setter
def toppings(self, value):
self.__toppings = value
@property
def toppings_capacity(self):
return self.__toppings_capacity
@toppings_capacity.setter
def toppings_capacity(self, new_capacity):
self.__toppings_capacity = new_capacity
def add_topping(self, topping):
if len(self.toppings) == self.toppings_capacity:
raise ValueError("Not enough space for another topping")
if topping.topping_type not in self.toppings:
self.toppings[topping.topping_type] = topping.weight
else:
self.toppings[topping.topping_type] += topping.weight
def calculate_total_weight(self):
toppings_weight = sum([value for value in self.toppings.values()])
total_weight = self.__dough.weight + toppings_weight
return total_weight
|
class ParsedGame:
def __init__(self, parsed_data):
if len(parsed_data) == 5:
self.time_left = parsed_data[0]
self.away_team = parsed_data[1]
self.away_score = parsed_data[2]
self.home_team = parsed_data[3]
self.home_score = parsed_data[4]
else:
self.time_left = parsed_data[0]
self.away_team = parsed_data[1]
self.away_score = 0
self.home_team = parsed_data[2]
self.home_score = 0
if self.time_left == "FINAL OT":
self.time_left = "Final"
elif self.time_left == "FINAL":
self.time_left = "Final"
elif self.time_left == "HALFTIME":
self.time_left = "Halftime"
|
# Ex: 024 - Crie um programa que leia o nome de uma cidade e diga se ela começa
# ou não com o nome "SANTO".
print('''
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--Seja bem-vindo!
--Exercício 024
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
''')
cidade = input('Em que cidade você nasceu? ').replace('-', ' ').lower().split()
print(f'Sua cidade começa com "Santo"? {cidade[0] == "santo"}')
print('''
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--Obrigado pelo uso!
--Desenvolvido por Thalles Torres
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-''')
|
# id mapping
# ssdb : redis
# kv
# key= ${table_name}`${item_id}
# val= ${type}`${content}
# 1. type=raw
# 2. type=b64
# 3. type=url
# k hash
# key = table_name
# field = item_id
# value = val
# import redis
# https://blog.csdn.net/u012851870/article/details/44754509
# http://ssdb.io/docs/zh_cn/redis-to-ssdb.html
# http://ssdb.io/docs/zh_cn/php/
__all__ = [
"hset",
"hmget",
"del_table"
]
def hset(client, table, item_id, val):
client.hset(table, item_id, val)
def hget(client, table, item_id):
v = client.hget(table, item_id)
s = ""
if v:
s = v.decode('utf-8')
return s
# def hmset(client, table, item_id_val_map):
# client.multi_hset(table, item_id_val_map)
def hmget(client, table, item_id_arr):
"""
:return map{k,v}
"""
vs = client.hmget(table, item_id_arr)
kv_map = {}
for i in range(0, len(vs), 1):
k = item_id_arr[i]
v = vs[i].decode('utf-8')
kv_map[k] = v
return kv_map
def del_table(client, table):
client.delete(table)
|
# -*- coding: utf-8 -*-
# Classe carro: Implemente uma classe chamada Carro com as seguintes propriedades:
# a. Um veículo tem um certo consumo de combustível (medidos em km/litro) e
# uma certa quantidade de combustível no tanque.
# b. O consumo é especificado no construtor e o nível de combustível inicial é 0.
# c. Forneça um método andar() que simule o ato de dirigir o veículo por uma certa distância,
# reduzindo o nível de combustível no tanque de gasolina.
# d. Forneça um método obterGasolina(), que retorna o nível atual de combustível.
# e. Forneça um método adicionarGasolina(), para abastecer o tanque.
class Carro(object):
def __init__(self, combustivel, consumo):
self.combustivel = combustivel
self.consumo = consumo
def andar(self, km):
quantidade = km * self.consumo
if self.combustivel >= quantidade:
self.combustivel -= quantidade
else:
print('Combustível insuficiente')
def obter_gasolina(self):
return self.combustivel
def abastecer(self, litros):
self.combustivel += litros
def restante(self):
return round(self.combustivel / self.consumo, 2)
def __str__(self):
return """
╔═══════════╤═══════════════╤══════════════╗
║ Tanque(L) │ Consumo(Km/l) │ Restante(Km) ║
╟───────────┼───────────────┼──────────────╢
║ {:<9.2f} │ {:<13.2f} │ {:<12.2f} ║
╚═══════════╧═══════════════╧══════════════╝
""".format(self.combustivel, self.consumo, self.restante())
if __name__ == '__main__':
combustivel = float(input('Combustível inicial: '))
consumo = float(input('Consumo: '))
carro = Carro(combustivel, consumo)
print(carro)
|
class FlowException(Exception):
"""Internal exceptions for flow control etc.
Validation, config errors and such should use standard Python exception types"""
pass
class StopProcessing(FlowException):
"""Stop processing of single item without too much error logging"""
pass
|
#!/usr/bin/env python3
""" An attempt to solve Roaming Romans on Kattis """
MODERN_MILE_FEET = 5280.0
ROMAN_MILE_IN_FEET = 4854.0
miles = float(input().rstrip())
roman_paces = (1000 * (MODERN_MILE_FEET/ROMAN_MILE_IN_FEET)) * miles
print(round(roman_paces))
|
def adapt_to_ex(model):
self.conv_sections = conv_sections
self.glob_av_pool = torch.nn.AdaptiveAvgPool2d(output_size=1)
self.linear_sections = linear_sections
self.head = head
self.input_shape = input_shape
self.n_classes = head.out_elements
self.data_augment = DataAugmentation(n_classes=self.n_classes)
self.loss_func_CE_soft = CrossEntropyWithProbs().to(device)
self.loss_func_CE_hard = torch.nn.CrossEntropyLoss().to(device)
self.loss_func_MSE = torch.nn.MSELoss().to(device)
self.creation_time = datetime.now()
config = {}
config['n_conv_l'] = len(model.conv_sections)
config['n_conv_0'] = model.conv_sections[0].out_elements
config['n_conv_1'] = model.conv_sections[1].out_elements if len(model.conv_sections) > 1 else 16
config['n_conv_2'] = model.conv_sections[2].out_elements if len(model.conv_sections) > 2 else 16
# Dense
config['n_fc_l'] = len(model.linear_sections)
config['n_fc_0'] = model.linear_sections[0].out_elements
config['n_fc_1'] = model.linear_sections[1].out_elements if len(model.linear_sections) > 1 else 16
config['n_fc_2'] = model.linear_sections[2].out_elements if len(model.linear_sections) > 2 else 16
# Kernel Size
config['kernel_size'] = model.linear_sections[0].kernel_size
# Learning Rate
lr = RangeParameter('lr_init', ParameterType.FLOAT, 0.00001, 1.0, True)
# Use Batch Normalization
bn = ChoiceParameter('batch_norm', ParameterType.BOOL, values=[True, False])
# Batch size
bs = RangeParameter('batch_size', ParameterType.INT, 1, 512, True)
# Global Avg Pooling
ga = ChoiceParameter('global_avg_pooling', ParameterType.BOOL, values=[True, False])
b = FixedParameter('budget', ParameterType.INT, 25)
i = FixedParameter('id', ParameterType.STRING, 'dummy')
|
class TaskAlreadyExistsError(Exception):
pass
class NoSuchTaskError(Exception):
pass
|
# -*- coding: utf-8 -*-
"""
Event Module - Controllers
"""
module = request.controller
resourcename = request.function
# Options Menu (available in all Functions' Views)
shn_menu(module)
# -----------------------------------------------------------------------------
def index():
""" Module's Home Page """
module_name = deployment_settings.modules[module].name_nice
response.title = module_name
return dict(module_name=module_name)
# -----------------------------------------------------------------------------
def create():
""" Redirect to event/create """
redirect(URL(f="event", args="create"))
# =============================================================================
# Incidents
# =============================================================================
def incident():
""" RESTful CRUD controller """
tablename = "event_incident"
s3mgr.load(tablename)
return s3_rest_controller(module, resourcename)
# =============================================================================
# Events
# =============================================================================
def event():
"""
RESTful CRUD controller
An Event is an instantiation of a template
"""
tablename = "event_event"
s3mgr.load(tablename)
table = db[tablename]
if "req" in request.args:
s3mgr.load("req_req")
# Pre-process
def prep(r):
if r.interactive:
if r.component:
if r.component.name == "req":
if r.method != "update" and r.method != "read":
# Hide fields which don't make sense in a Create form
# inc list_create (list_fields over-rides)
response.s3.req_create_form_mods()
else:
s3.crud.submit_button = T("Add")
elif r.method != "update" and r.method != "read":
# Create or ListCreate
r.table.closed.writable = r.table.closed.readable = False
elif r.method == "update":
# Can't change details after event activation
r.table.exercise.writable = False
r.table.exercise.comment = None
r.table.zero_hour.writable = False
return True
response.s3.prep = prep
# Post-process
def postp(r, output):
if r.interactive:
if r.component:
if r.component.name == "asset":
update_url = "openPopup('%s');return false" % \
URL(f="asset",
args = "[id].plain",
# Open the linked record, not just the link table
vars = {"link" : "event"})
delete_url = URL(f="asset",
args=["[id]", "delete"])
response.s3.actions = [
dict(label=str(T("Details")), _class="action-btn",
_onclick=update_url),
dict(label=str(T("Remove")), _class="delete-btn",
url=delete_url),
]
elif r.component.name == "human_resource":
update_url = "openPopup('%s');return false" % \
URL(f="human_resource",
args = "[id].plain",
# Open the linked record, not just the link table
vars = {"link" : "event"})
delete_url = URL(f="human_resource",
args=["[id]", "delete"])
response.s3.actions = [
dict(label=str(T("Details")), _class="action-btn",
_onclick=update_url),
dict(label=str(T("Remove")), _class="delete-btn",
url=delete_url),
]
if "msg" in deployment_settings.modules:
response.s3.actions.append({
"url": URL(f="compose",
vars = {"hrm_id": "[id]"}),
"_class": "action-btn",
"label": str(T("Send Notification"))})
elif r.component.name == "site":
update_url = "openPopup('%s');return false" % \
URL(f="site",
args = "[id].plain",
# Open the linked record, not just the link table
vars = {"link" : "event"})
delete_url = URL(f="site",
args=["[id]", "delete"])
response.s3.actions = [
dict(label=str(T("Details")), _class="action-btn",
_onclick=update_url),
dict(label=str(T("Remove")), _class="delete-btn",
url=delete_url),
]
elif r.component.name == "task":
update_url = "openPopup('%s');return false" % \
URL(f="task",
args = "[id].plain",
# Open the linked record, not just the link table
vars = {"link" : "event"})
delete_url = URL(f="task",
args=["[id]", "delete"])
response.s3.actions = [
dict(label=str(T("Details")), _class="action-btn",
_onclick=update_url),
dict(label=str(T("Remove")), _class="delete-btn",
url=delete_url),
]
elif r.component.name == "activity":
update_url = "openPopup('%s');return false" % \
URL(f="activity",
args = "[id].plain",
# Open the linked record, not just the link table
vars = {"link" : "event"})
delete_url = URL(f="activity",
args=["[id]", "delete"])
response.s3.actions = [
dict(label=str(T("Details")), _class="action-btn",
_onclick=update_url),
dict(label=str(T("Remove")), _class="delete-btn",
url=delete_url),
]
elif r.method == "create":
# Redirect to update view to open tabs
r.next = r.url(method="update",
id=s3mgr.get_session("event", "event"))
return output
response.s3.postp = postp
tabs = [(T("Event Details"), None),
(T("Human Resources"), "human_resource"),
(T("Facilities"), "site"),
(T("Requests"), "req"),
]
if deployment_settings.has_module("project"):
tabs.append((T("Tasks"), "task"))
tabs.append((T("Activities"), "activity"))
tabs.append((T("Map Configuration"), "config"))
rheader = lambda r, tabs=tabs: event_rheader(r, tabs)
output = s3_rest_controller(module, resourcename,
rheader=rheader)
return output
# -----------------------------------------------------------------------------
# Components
# -----------------------------------------------------------------------------
def human_resource():
""" RESTful CRUD controller """
# Load the Models
s3mgr.load("event_event")
# Parse the Request
r = s3mgr.parse_request()
link = request.vars.get("link", None)
# Pre-Process
if r.id and link:
# Go back to the human_resource list of the event after removing the human_resource
s3mgr.configure(r.tablename,
delete_next=URL(link,
args=[r.record["%s_id" % link],
"human_resource"]))
edit_btn = None
if link:
if r.method in ("update", None) and r.id:
# Store the edit & delete buttons
edit_btn = A(T("Edit"),
_href=r.url(method="update",
representation="html"),
_target="_blank")
delete_btn=A(T("Remove this human resource from this event"),
_href=r.url(method="delete",
representation="html"),
_class="delete-btn")
# Switch to the other request
hrm_id = r.record.human_resource_id
r = s3base.S3Request(s3mgr,
c="hrm", f="human_resource",
args=[str(hrm_id)],
extension=auth.permission.format)
# Execute the request
output = r()
# Post-Process
s3_action_buttons(r)
# Restore the edit & delete buttons with the correct ID
if r.representation == "plain" and edit_btn:
output.update(edit_btn=edit_btn)
elif r.interactive and "delete_btn" in output:
output.update(delete_btn=delete_btn)
return output
# -----------------------------------------------------------------------------
def person():
""" Person controller for AddPersonWidget """
def prep(r):
if r.representation != "s3json":
# Do not serve other representations here
return False
else:
s3mgr.show_ids = True
return True
response.s3.prep = prep
return s3_rest_controller("pr", "person")
# -----------------------------------------------------------------------------
def site():
""" RESTful CRUD controller """
# Load the Models
s3mgr.load("event_event")
# Parse the Request
r = s3mgr.parse_request()
link = request.vars.get("link", None)
# Pre-Process
if r.id and link:
# Go back to the facility list of the event after removing the facility
s3mgr.configure(r.tablename,
delete_next=URL(link,
args=[r.record["%s_id" % link],
"site"]))
edit_btn = None
if link:
if r.method in ("update", None) and r.id:
# Store the edit & delete buttons
edit_btn = A(T("Edit"),
_href=r.url(method="update",
representation="html"),
_target="_blank")
delete_btn=A(T("Remove this facility from this event"),
_href=r.url(method="delete",
representation="html"),
_class="delete-btn")
# Switch to the other request
site_id = r.record.site_id
r = s3base.S3Request(s3mgr,
c="org", f="site",
args=[str(site_id)],
extension=auth.permission.format)
# Execute the request
output = r()
# Post-Process
s3_action_buttons(r)
# Restore the edit & delete buttons with the correct ID
if r.representation == "plain" and edit_btn:
output.update(edit_btn=edit_btn)
elif r.interactive and "delete_btn" in output:
output.update(delete_btn=delete_btn)
return output
# -----------------------------------------------------------------------------
def task():
""" RESTful CRUD controller """
# Load the Models
s3mgr.load("event_event")
# Parse the Request
r = s3mgr.parse_request()
link = request.vars.get("link", None)
# Pre-Process
if r.id and link:
# Go back to the task list of the event after removing the task
s3mgr.configure(r.tablename,
delete_next=URL(link,
args=[r.record["%s_id" % link],
"task"]))
edit_btn = None
if link:
if r.method in ("update", None) and r.id:
# Store the edit & delete buttons
edit_btn = A(T("Edit"),
_href=r.url(method="update",
representation="html"),
_target="_blank")
delete_btn=A(T("Remove this task from this event"),
_href=r.url(method="delete",
representation="html"),
_class="delete-btn")
# Switch to the other request
task_id = r.record.task_id
r = s3base.S3Request(s3mgr,
c="project", f="task",
args=[str(task_id)],
extension=auth.permission.format)
# Execute the request
output = r()
# Post-Process
s3_action_buttons(r)
# Restore the edit & delete buttons with the correct ID
if r.representation == "plain" and edit_btn:
output.update(edit_btn=edit_btn)
elif r.interactive and "delete_btn" in output:
output.update(delete_btn=delete_btn)
return output
# -----------------------------------------------------------------------------
def event_rheader(r, tabs=[]):
""" Resource headers for component views """
rheader = None
rheader_tabs = s3_rheader_tabs(r, tabs)
if r.representation == "html":
if r.name == "event":
# Event Controller
event = r.record
if event:
if event.exercise:
exercise = TH(T("EXERCISE"))
else:
exercise = TH()
if event.closed:
closed = TH(T("CLOSED"))
else:
closed = TH()
rheader = DIV(TABLE(TR(exercise),
TR(TH("%s: " % T("Name")),
event.name),
TH("%s: " % T("Comments")),
event.comments,
TR(TH("%s: " % T("Zero Hour")),
event.zero_hour),
TR(closed),
), rheader_tabs)
return rheader
# =============================================================================
# Messaging
# =============================================================================
def compose():
""" Send message to people/teams """
s3mgr.load("msg_outbox")
if "hrm_id" in request.vars:
id = request.vars.hrm_id
fieldname = "hrm_id"
table = db.pr_person
htable = db.hrm_human_resource
pe_id_query = (htable.id == id) & \
(htable.person_id == table.id)
title = T("Send a message to this person")
pe = db(pe_id_query).select(table.pe_id,
limitby=(0, 1)).first()
if not pe:
session.error = T("Record not found")
redirect(URL(f="index"))
pe_id = pe.pe_id
request.vars.pe_id = pe_id
# Get the individual's communications options & preference
table = db.pr_contact
contact = db(table.pe_id == pe_id).select(table.contact_method,
orderby="priority",
limitby=(0, 1)).first()
if contact:
db.msg_outbox.pr_message_method.default = contact.contact_method
else:
session.error = T("No contact method found")
redirect(URL(f="index"))
return response.s3.msg_compose(redirect_module = module,
redirect_function = "compose",
redirect_vars = {fieldname: id},
title_name = title)
# END =========================================================================
|
class NonTerminal:
def __init__(self, name, productions):
# Creates an instance of a NonTerminal that represents a set of
# grammar productions for a non-terminal.
#
# Keyword arguments:
# name -- the name of the non-terminal
# productions -- a list whose elements can be:
# 1. Lists of objects of type NTerm or str.
# The str elements represent terminal grammar symbols.
# 2. a str with space-separated words. These words represent grammar symbols (T and NT)
#
self.name = name
self.productions = [(x.split() if isinstance(x, str) else x) for x in productions]
def __repr__(self):
return 'NonTerminal(' + repr(self.name) + ')'
def __str__(self):
return self.name
def stringify(self, pretty=True):
title = '%s: ' % self.name
if pretty:
separator = '\n%s| ' % (' ' * len(self.name))
else:
separator = ' | '
def strprod(prod):
return ' '.join(str(sym) for sym in prod)
rules = separator.join(strprod(prod) for prod in self.productions)
return title + rules
class Grammar:
def __init__(self, nonterms, start_nonterminal=None):
# Grammar start symbol
if start_nonterminal is None or start_nonterminal not in nonterms:
start_nonterminal = nonterms[0]
# Tuple of non-terminals
self.nonterms = tuple([NonTerminal(START_SYMBOL, [[start_nonterminal.name]])] +
sorted(nonterms, key=lambda elem: elem.name))
# Tuple of terminals
self.terminals = ()
# Tuple of symbols (non-terminals + terminals)
self.symbols = ()
# Tuple of enumerated NT's productions
self.productions = ()
# Enumeration offset for a given NT
self.nonterm_offset = {}
# First sets for every grammar symbol
self.__first_sets = {}
# Update the references of each production and, while at it, recognize terminal symbols
self.nonterminal_by_name = {nt.name: nt for nt in self.nonterms}
for nt in self.nonterms:
for prod in nt.productions:
for idx in range(len(prod)):
symbol = prod[idx]
if isinstance(symbol, str):
if symbol in self.nonterminal_by_name:
prod[idx] = self.nonterminal_by_name[symbol]
else:
self.terminals += tuple([symbol])
elif isinstance(symbol, NonTerminal):
if symbol not in self.nonterms:
msg = 'Non-terminal %s is not in the grammar' % repr(symbol)
raise KeyError(msg)
else:
msg = "Unsupported type '%s' inside of production" % type(symbol).__name__
raise TypeError(msg)
self.terminals = tuple(sorted(set(self.terminals)))
self.symbols = self.nonterms + self.terminals
# Enumerate grammar productions
for nt in self.nonterms:
self.nonterm_offset[nt] = len(self.productions)
self.productions += tuple((nt.name, prod) for prod in nt.productions)
self.__build_first_sets()
def first_set(self, x):
result = set()
if isinstance(x, str):
result.add(x)
elif isinstance(x, NonTerminal):
result = self.__first_sets[x]
else:
skippable_symbols = 0
for sym in x:
fs = self.first_set(sym)
result.update(fs - {None})
if None in fs:
skippable_symbols += 1
else:
break
if skippable_symbols == len(x):
result.add(None)
return frozenset(result)
def __build_first_sets(self):
# Starting First sets values
for s in self.symbols:
if isinstance(s, str):
self.__first_sets[s] = {s}
else:
self.__first_sets[s] = set()
if [] in s.productions:
self.__first_sets[s].add(None)
# Update the sets iteratively (see Dragon Book, page 221)
repeat = True
while repeat:
repeat = False
for nt in self.nonterms:
curfs = self.__first_sets[nt]
curfs_len = len(curfs)
for prod in nt.productions:
skippable_symbols = 0
for sym in prod:
fs = self.__first_sets[sym]
curfs.update(fs - {None})
if None in fs:
skippable_symbols += 1
else:
break
if skippable_symbols == len(prod):
curfs.add(None)
if len(curfs) > curfs_len:
repeat = True
# Freeze the sets
self.__first_sets = {x: frozenset(y) for x, y in self.__first_sets.items()}
def stringify(self, indexes=True):
lines = '\n'.join(nt.stringify() for nt in self.nonterms)
if indexes:
lines = '\n'.join(RULE_INDEXING_PATTERN % (x, y)
for x, y in enumerate(lines.split('\n')))
return lines
def __str__(self):
return self.stringify()
RULE_INDEXING_PATTERN = '%-5d%s'
START_SYMBOL = '$accept'
EOF_SYMBOL = '$end'
FREE_SYMBOL = '$#'
|
# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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.
#
# NOTE: This class is auto generated by the jdcloud code generator program.
class InstanceAclSpec(object):
def __init__(self, blackListIds=None, whiteListIds=None, geoBlack=None):
"""
:param blackListIds: (Optional) 黑名单引用的 IP 黑白名单 ID 列表
:param whiteListIds: (Optional) 白名单引用的 IP 黑白名单 ID 列表
:param geoBlack: (Optional) geo 拦截地域编码列表. 查询 <a href="http://docs.jdcloud.com/anti-ddos-pro/api/describegeoareas">describeGeoAreas</a> 接口获取可设置的地域编码列表
"""
self.blackListIds = blackListIds
self.whiteListIds = whiteListIds
self.geoBlack = geoBlack
|
params_scenario = {
"n_agents_arrival": 1,
"p_split_threshold": int(1e10),
"r_t": 100,
"r_f": 100,
"gamma": 0, # 0
}
|
#
# PySNMP MIB module ENTERASYS-POLICY-PROFILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-POLICY-PROFILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort")
etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules")
StationAddressType, StationAddress = mibBuilder.importSymbols("ENTERASYS-UPN-TC-MIB", "StationAddressType", "StationAddress")
ifAlias, ifName = mibBuilder.importSymbols("IF-MIB", "ifAlias", "ifName")
EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus")
PortList, VlanIndex = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList", "VlanIndex")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibIdentifier, IpAddress, ObjectIdentity, Gauge32, Unsigned32, TimeTicks, ModuleIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Bits, Counter64, Integer32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "IpAddress", "ObjectIdentity", "Gauge32", "Unsigned32", "TimeTicks", "ModuleIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Bits", "Counter64", "Integer32", "iso")
DisplayString, RowStatus, TruthValue, StorageType, RowPointer, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TruthValue", "StorageType", "RowPointer", "TextualConvention")
etsysPolicyProfileMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6))
etsysPolicyProfileMIB.setRevisions(('2010-08-09 15:11', '2009-04-10 12:00', '2009-04-01 13:36', '2008-02-19 14:29', '2007-03-21 21:02', '2006-06-15 20:40', '2005-05-18 20:08', '2005-03-28 15:35', '2005-03-14 21:34', '2004-08-11 15:17', '2004-05-18 17:02', '2004-04-02 20:35', '2004-03-25 18:03', '2004-02-03 22:00', '2004-02-03 15:33', '2004-01-19 21:43', '2003-11-04 17:16', '2003-02-06 22:59', '2002-09-17 14:53', '2002-07-19 13:37', '2001-06-11 20:00', '2001-01-09 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: etsysPolicyProfileMIB.setRevisionsDescriptions(('Add controls for syslogEveryTime, profile visibility of syslog/trap statistics, egress-policy controls. ICMPv6 and ACL rule types added, tcp/udp rule types augmented to support IPv6 addresses.', 'Added tri-state textual convention and modified the etsysPolicyRules group to use this convention for actions which previously used EnabledStatus. Added syslog, trap, and disable-port actions to the etsysPolicyProfileTable.', 'Modified the capabilities group to support both OverwriteTci and Mirroring. A few other small corrections.', 'Capability has been added to define a packet mirroring index for frames matching a policy profile or policy rule. Further clarification is included in DESCRIPTION field of the etsysPolicyProfileMirrorIndex and etsysPolicyRuleMirrorIndex objects.', 'An additional scalar etsysPolicyRuleSylogExtendedFormat is added to configure enabling/disabling the addition of extended data to the rule-hit syslog messages. Further clarifications are included in DESCRIPTION field of the etsysPolicyRuleSylogExtendedFormat object.', 'Grammar and typographical corrections.', 'TEXTUAL-CONVENTION PolicyRFC3580MapRadiusResponseTC includes an additional option vlanTunnelAttributeWithPolicyProfile. An additional scalar etsysPolicyRFC3580MapInvalidMapping is added to detect EtsysPolicyRFC3580MapEntry discrepancies. Further clarifications are included in DESCRIPTION fields of the etsysPolicyRFC3580Map objects.', 'Additional branch etsysPolicyNotifications properly contains trap information.', 'etsysPolicyRuleStatsDroppedNotifications and etsysPolicyRuleSylogMachineReadableFormat now allow the managing entity to track missed syslog messages and to format the messages in hexadecimal. Additional capability table to detail policy rule type lengths in bits and bytes and the maximum number of rules of each rule type the agent supports. See the description of the PolicyClassificationRuleType textual convention for additional details relating to how rule-type-lengths are to be specified.', 'Updated the range for etsysPolicyProfilePriority to (0..4095). Added objects and groups related to mapping RFC3580 vlan-tunnel-attributes to PolicyProfiles. Added the etsysPolicyRuleAutoClearOnProfile, etsysPolicyRuleStatsAutoClearInterval, and etsysPolicyRuleStatsAutoClearPorts, objects. Added etsysPolicyEnabledTable to the capabilities section, in addition to reporting capabilities, it allows one to disable policy on a given port.', 'Added the etsysPolicyRuleStatsAutoClearOnLink leaf.', 'Added the etsysPolicyRuleOperPid leaf to etsysPolicyRuleTable.', 'Added capabilities objects, status for profile assignment override, dynamic profile summary list, and notification configuration for dynamic rules.', 'Replaced StationIdentifierType with StationAddressType and StationIdentifier with StationAddress to match new revision of ENTERASYS-UPN-TC-MIB.', 'Replaced StationIdentifierTypeTC with StationIdentifierType and moved it to the ENTERASYS-UPN-TC-MIB, and replaced InetAddress with StationIdentifier from the same MIB module.', 'Added PolicyClassificationRuleType TEXTUAL-CONVENTION. Added the etsysPolicyProfileOverwriteTCI and etsysPolicyProfileRulePrecedence leaves to the EtsysPolicyProfileEntry. Added the etsysPolicyRules group for accounting of policy usage. Additionally, the range syntax of several objects has been clarified. The etsysPolicyClassificationGroup and the etsysPortPolicyProfileTable have been deprecated, as they have been replaced by the etsysPolicyRulesGroup.', 'Added etsysPolicyMap object group in support of RFC 3580 and Enterasys Technical Standard TS-07.', 'Added etsysDevicePolicyProfileDefault to provide managed entities, that cannot support complete policies on a per port basis, a global policy to augment what policies they can provide on a per port basis. Added etsysPolicyCapabilities to provide management agents a straight forward method to ascertain the capabilities of the managed entity.', 'Added Port ID information in the Station table, for ease of cross reference.', 'This version incorporates enhancements to support Station based policy provisioning, as well as other UPN related enhancements.', 'This version modified the MODULE-IDENTITY statement to resolve an issue importing this MIB into some older MIB Tools. In the SEQUENCE for the etsysPortPolicyProfileTable the first object was incorrectly defined as etsysPortPolicyProfileIndex, this was corrected to read etsysPortPolicyProfileIndexType. Several misspelled words were corrected. Finally, the INDEX for the etsysPortPolicyProfileSummaryTable was corrected to index the table by policy index as well as the type of port for each entry in the table.', 'The initial version of this MIB module.',))
if mibBuilder.loadTexts: etsysPolicyProfileMIB.setLastUpdated('201008091511Z')
if mibBuilder.loadTexts: etsysPolicyProfileMIB.setOrganization('Enterasys Networks, Inc')
if mibBuilder.loadTexts: etsysPolicyProfileMIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: support@enterasys.com WWW: http://www.enterasys.com')
if mibBuilder.loadTexts: etsysPolicyProfileMIB.setDescription('This MIB module defines a portion of the SNMP enterprise MIBs under the Enterasys enterprise OID pertaining to the mapping of per user policy profiles for Enterasys network edge devices or access products.')
class PolicyProfileIDTC(TextualConvention, Integer32):
description = 'This textual convention maps out to the possible policyProfileIndex values. It also allows for a value of zero. A value of zero (0) indicates that the given port should not follow any policy profile.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), )
class PortPolicyProfileIndexTypeTC(TextualConvention, Integer32):
description = 'This textual convention maps out to the possible port types which can be used to populate the etsysPortPolicyProfileTable, and of port IDs used in the etsysStationPolicyProfileTable.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("ifIndex", 1), ("dot1dBasePort", 2))
class PolicyRFC3580MapRadiusResponseTC(TextualConvention, Integer32):
description = 'This textual convention maps out to the possible, pertinent, successful, responses which may be received from the RADIUS server after a dynamic authentication attempt. PolicyProfile(1) is returned as a proprietary filter-id and has historically been used to assign a policy profile to the authenticated entity. VlanTunnelAttribute(2) is the response defined in RFC3580 and upon which further controls are applied by the etsysPolicyRFC3580Map group. A value of - vlanTunnelAttributeWithPolicyProfile(3) is an indication that both attributes are to be used.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("policyProfile", 1), ("vlanTunnelAttribute", 2), ("vlanTunnelAttributeWithPolicyProfile", 3))
class VlanList(TextualConvention, OctetString):
description = "Each octet within this value specifies a set of eight VIDs, with the first octet specifying VID 1 through 8, the second octet specifying VID 9 through 16, etc. Within each octet, the most significant bit represents the lowest numbered VID, and the least significant bit represents the highest numbered VID. Thus, each VID is represented by a single bit within the value of this object. If that bit has a value of '1' then that VID is included in the set of VIDs; the VID is not included if its bit has a value of '0'. This OCTET STRING will always be 512 Octets in length to accommodate all possible VIDs between (1..4094). The default value of this object is a string of all zeros."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(512, 512)
fixedLength = 512
class PolicyClassificationRuleType(TextualConvention, Integer32):
description = 'Enumerates the possible types of classification rules which may be referenced in the etsysPolicyRuleTable. Each type has an implied length (in bytes) associated with it. Octet-strings defined as representing one of these types will be represented in Network-Byte-Order (Big Endian) if the native representation is other than octets. The managed entity MUST support sets in which the specified rule length is less than that specified by the value the entity reports in etsysPolicyRuleAttributeByteLength, so long as the associated etsysPolicyRulePrefixBits does not imply the existence of more etsysPolicyRuleData than is present (i.e. the specified length MUST be >= ((etsysPolicyRulePrefixBits+7)/8).) Additionally, the managed entity MUST return a PolicyClassificationRuleType which carries the number of octets specified by the associated etsysPolicyRuleAttributeByteLength, regardless of the number etsysPolicyRulePrefixBits. This yields a behavior in which, on some devices, a ip4Source rule may be supported with only 4 bytes of rule data (excluding the TCP/UDP source port information), while other devices may support the full syntax using all 6 bytes. macSource(1) The source MAC address in an Ethernet frame. Length is 6 bytes. macDestination(2) The destination MAC address in an Ethernet frame. Length is 6 bytes. ipxSource(3) The source address in an IPX header. Length is 4 bytes (Network prefix). ipxDestination(4) The destination address in an IPX header. Length is 4 bytes (Network prefix). ipxSourcePort(5) The source IPX port(socket) in an IPX header. Length is 2 bytes. ipxDestinationPort(6) The destination IPX port(socket) in an IPX header. Length is 2 bytes. ipxCos(7) The CoS(HopCount) field in an IPX header. Length is 1 byte. ipxType(8) The protocol type in an IPX header. Length is 1 byte. ip6Source(9) The source address in an IPv6 header, postfixed with the source port (for TCP/UDP frames). Length is 18 bytes for IPv6+TCP/UDP, or 16 bytes for IPv6. ip6Destination(10) The destination address in an IPv6 header, postfixed with the destination port (for TCP/UDP frames). Length is 18 bytes for IPv6+TCP/UDP, or 16 bytes for IPv6. ip6FlowLabel(11) The flow label field (traffic class and flow identifier) in an IPv6 header. Length is 3 bytes, as only the first 20 bits are valid and mask-able, only the data in the first 20 bits (the first five nibbles) is considered. ip4Source(12) The source address in an IPv4 header, postfixed with the source port (for TCP/UDP frames). Length is 6 bytes for IPv4+TCP/UDP, or 4 bytes for IPv4. ip4Destination(13) The destination address in an IPv4 header, postfixed with the destination port (for TCP/UDP frames). Length is 6 bytes for IPv4+TCP/UDP, or 4 bytes for IPv4. ipFragment(14) Truth value derived from the FLAGS and FRAGMENTATION_OFFSET fields of an IP header. If the MORE bit of the flags field is set, or the FRAGMENTATION_OFFSET is non-zero, the frame is fragmented. Length is 0 bytes (there is no data, only presence). udpSourcePort(15) The source UDP port(socket) in a UDP header, optionally postfixed with a source IP address. Length is 2 bytes for UDP, 6 bytes for UDP+IPv4, or 18 bytes for UDP+IPv6. udpDestinationPort(16) The destination UDP port(socket) in a UDP header, optionally postfixed with a destination IP address. Length is 2 bytes for UDP, 6 bytes for UDP+IPv4, or 18 bytes for UDP+IPv6. tcpSourcePort(17) The source TCP port(socket) in an TCP header, optionally postfixed with a source IPv4 address. Length is 2 bytes for TCP, 6 bytes for TCP+IPv4, or 18 bytes for TCP+IPv6. tcpDestinationPort(18) The destination TCP port(socket) in an TCP header, optionally postfixed with a destination IPv4 address. Length is 2 bytes for TCP, 6 bytes for TCP+IPv4, or 18 bytes for TCP+IPv6. icmpTypeCode(19) The Type and Code fields from an ICMP frame. These are encoded in 2 bytes, network-byte-order, Type in the first (left-most) byte, Code in the second byte. ipTtl(20) The TTL(HopCount) field in an IP header. Length is 1 byte. ipTos(21) The ToS(DSCP) field in an IP header. Length is 1 byte. ipType(22) The protocol type in an IP header. Length is 1 byte. icmpTypeCodeV6(23) The Type and Code fields from an ICMP frame. These are encoded in 2 bytes, network-byte-order, Type in the first (left-most) byte, Code in the second byte. For ICMPv6, which redefines the types and codes. etherType(25) The type field in an Ethernet II frame. Length is 2 bytes. llcDsapSsap(26) The DSAP/SSAP/CTRL field in an LLC encapsulated frame, includes SNAP encapsulated frames and the associated Ethernet II type field. Length is 5 bytes. vlanId(27) The 12 bit Virtual LAN ID field present in an 802.1D Tagged frame. Length is 2 bytes, the field is represented in the FIRST (left-most, big-endian) 12 bits of the 16 bit field. A vlanId of 1 would be encoded as 00-10, a vlanId of 4094 would be encoded as FF-E0, and a vlanId of 100 would be encoded as 06-40. ieee8021dTci(28) The entire 16 bit TCI field present in an 802.1D Tagged frame (include both VLAN ID and Priority bits. Length is 2 bytes. acl(30) A numbered ACL, represented by a 4 byte integer value. This is not maskable. bridgePort(31) The dot1dBasePort on which the frame was received. Length is 2 bytes.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 30, 31))
namedValues = NamedValues(("macSource", 1), ("macDestination", 2), ("ipxSource", 3), ("ipxDestination", 4), ("ipxSourcePort", 5), ("ipxDestinationPort", 6), ("ipxCos", 7), ("ipxType", 8), ("ip6Source", 9), ("ip6Destination", 10), ("ip6FlowLabel", 11), ("ip4Source", 12), ("ip4Destination", 13), ("ipFragment", 14), ("udpSourcePort", 15), ("udpDestinationPort", 16), ("tcpSourcePort", 17), ("tcpDestinationPort", 18), ("icmpTypeCode", 19), ("ipTtl", 20), ("ipTos", 21), ("ipType", 22), ("icmpTypeCodeV6", 23), ("etherType", 25), ("llcDsapSsap", 26), ("vlanId", 27), ("ieee8021dTci", 28), ("acl", 30), ("bridgePort", 31))
class PolicyRulesSupported(TextualConvention, Bits):
description = 'Enumerates the possible types of classification rules which may be supported. macSource(1) The source MAC address in an Ethernet frame. macDestination(2) The destination MAC address in an Ethernet frame. ipxSource(3) The source address in an IPX header. ipxDestination(4) The destination address in an IPX header. ipxSourcePort(5) The source IPX port(socket) in an IPX header. ipxDestinationPort(6) The destination IPX port(socket) in an IPX header. ipxCos(7) The CoS(HopCount) field in an IPX header. ipxType(8) The protocol type in an IPX header. ip6Source(9) The source address in an IPv6 header, postfixed with the source port (for TCP/UDP frames). ip6Destination(10) The destination address in an IPv6 header, postfixed with the destination port (for TCP/UDP frames). ip6FlowLabel(11) The flow label field (traffic class and flow identifier) in an IPv6 header. ip4Source(12) The source address in an IPv4 header, postfixed with the source port (for TCP/UDP frames). ip4Destination(13) The destination address in an IPv4 header, postfixed with the destination port (for TCP/UDP frames). ipFragment(14) Truth value derived from the FLAGS and FRAGMENTATION_OFFSET fields of an IP header. If the MORE bit of the flags field is set, or the FRAGMENTATION_OFFSET is non-zero, the frame is fragmented. udpSourcePort(15) The source UDP port(socket) in a UDP header. udpDestinationPort(16) The destination UDP port(socket) in a UDP header. tcpSourcePort(17) The source TCP port(socket) in an TCP header. tcpDestinationPort(18) The destination TCP port(socket) in an TCP header. icmpTypeCode(19) The Type and Code fields from an ICMP frame. ipTtl(20) The TTL(HopCount) field in an IP header. ipTos(21) The ToS(DSCP) field in an IP header. ipType(22) The protocol type in an IP header. icmpTypeCodeV6(23) The Type and Code fields from an ICMPv6 frame. etherType(25) The type field in an Ethernet II frame. llcDsapSsap(26) The DSAP/SSAP/CTRL field in an LLC encapsulated frame, includes SNAP encapsulated frames and the associated Ethernet II type field. vlanId(27) The 12 bit Virtual LAN ID field present in an 802.1D Tagged frame. ieee8021dTci(28) The entire 16 bit TCI field present in an 802.1D Tagged frame (include both VLAN ID and Priority bits. acl(30) A number ACL list to which the frame is applied. bridgePort(31) The dot1dBasePort on which the frame was received.'
status = 'current'
namedValues = NamedValues(("macSource", 1), ("macDestination", 2), ("ipxSource", 3), ("ipxDestination", 4), ("ipxSourcePort", 5), ("ipxDestinationPort", 6), ("ipxCos", 7), ("ipxType", 8), ("ip6Source", 9), ("ip6Destination", 10), ("ip6FlowLabel", 11), ("ip4Source", 12), ("ip4Destination", 13), ("ipFragment", 14), ("udpSourcePort", 15), ("udpDestinationPort", 16), ("tcpSourcePort", 17), ("tcpDestinationPort", 18), ("icmpTypeCode", 19), ("ipTtl", 20), ("ipTos", 21), ("ipType", 22), ("icmpTypeCodeV6", 23), ("etherType", 25), ("llcDsapSsap", 26), ("vlanId", 27), ("ieee8021dTci", 28), ("acl", 30), ("bridgePort", 31))
class TriStateStatus(TextualConvention, Integer32):
description = 'A simple status value for the object. enabled(1) indicates the action will occur disabled(2) indicates no action will be asserted prohibited(3) indicates the action will be prevented from occurring This is useful (over and above the standard EnabledStatus TC) in the context of hierachical decision trees, whereby a decision to prevent an action may revoke another, lower precedent decision to take the action.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("enabled", 1), ("disabled", 2), ("prohibited", 3))
etsysPolicyNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 0))
etsysPolicyProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1))
etsysPolicyClassification = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2))
etsysPortPolicyProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3))
etsysPolicyVlanEgress = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 4))
etsysStationPolicyProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5))
etsysInvalidPolicyPolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 6))
etsysDevicePolicyProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 8))
etsysPolicyCapability = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9))
etsysPolicyMap = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10))
etsysPolicyRules = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11))
etsysPolicyRFC3580Map = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12))
etsysPolicyRulePortHitNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 0, 1)).setObjects(("IF-MIB", "ifName"), ("IF-MIB", "ifAlias"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileName"))
if mibBuilder.loadTexts: etsysPolicyRulePortHitNotification.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortHitNotification.setDescription('This notification indicates that a policy rule has matched network traffic on a particular port.')
etsysPolicyProfileMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyProfileMaxEntries.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileMaxEntries.setDescription('The maximum number of entries allowed in the etsysPolicyProfileTable.')
etsysPolicyProfileNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyProfileNumEntries.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileNumEntries.setDescription('The current number of entries in the etsysPolicyProfileTable.')
etsysPolicyProfileLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyProfileLastChange.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileLastChange.setDescription('The sysUpTime at which the etsysPolicyProfileTable was last modified.')
etsysPolicyProfileTableNextAvailableIndex = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyProfileTableNextAvailableIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileTableNextAvailableIndex.setDescription('This object indicates the numerically lowest available index within this entity, which may be used for the value of etsysPolicyProfileIndex in the creation of a new entry in the etsysPolicyProfileTable. An index is considered available if the index value falls within the range of 1 to 65535 and is not being used to index an existing entry in the etsysPolicyProfileTable contained within this entity. This value should only be considered a guideline for management creation of etsysPolicyProfileEntries, there is no requirement on management to create entries based upon this index value.')
etsysPolicyProfileTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5), )
if mibBuilder.loadTexts: etsysPolicyProfileTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileTable.setDescription('A table containing policy profiles. A policy is a group of classification rules which may be applied on a per user basis, to ports or to stations.')
etsysPolicyProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileIndex"))
if mibBuilder.loadTexts: etsysPolicyProfileEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileEntry.setDescription('Conceptually defines a particular entry within the etsysPolicyProfileTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysPolicyProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: etsysPolicyProfileIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileIndex.setDescription('A unique arbitrary identifier for this Policy. Since a policy will be applied to a user regardless of his or her location in the network fabric policy names SHOULD be unique within the entire network fabric. Policy IDs and policy names MUST be unique within the scope of a single managed entity.')
etsysPolicyProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileName.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileName.setDescription("Administratively assigned textual description of this Policy. This object MUST NOT be modifiable while this entry's RowStatus is active(1).")
etsysPolicyProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileRowStatus.setReference('RFC2579 (Textual Conventions for SMIv2)')
if mibBuilder.loadTexts: etsysPolicyProfileRowStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileRowStatus.setDescription("This object allows for the dynamic creation and deletion of entries within the etsysPolicyProfileTable as well as the activation and deactivation of these entries. When this object's value is active(1) the corresponding row's etsysPolicyProfilePortVid, etsysPolicyProfilePriority, and all entries within the etsysPolicyClassificationTable indexed by this row's etsysPolicyProfileIndex are available to be applied to network access ports or stations on the managed entity. All ports corresponding to rows within the etsysPortPolicyProfileTable whose etsysPortPolicyProfileOperID is equal to the etsysPolicyProfileIndex, shall have the corresponding policy applied. Likewise, all stations corresponding to rows within the etsysStationPolicyProfileTable whose etsysStationPolicyProfileOperID is equal to the etsysPolicyProfileIndex, shall have the corresponding policy applied. The value of etsysPortPolicyProfileOperID for each such row in the etsysPortPolicyProfileTable will be equal to the etsysPortPolicyProfileAdminID, unless the authorization information from a source such as a RADIUS server indicates to the contrary. Refer to the specific objects within this MIB as well as well as RFC2674, the CTRON-PRIORITY-CLASSIFY-MIB, the CTRON-VLAN-CLASSIFY-MIB, and the CTRON-RATE-POLICING-MIB for a complete explanation of the application and behavior of these objects. When this object's value is set to notInService(2) this policy will not be applied to any rows within the etsysPortPolicyProfileTable. To allow policy profiles to be applied for security implementations, setting this object's value from active(1) to notInService(2) or destroy(6) SHALL fail if one or more instances of etsysPortPolicyProfileOperID or etsysStationPolicyProfileOperID currently reference this entry's associated policy due to a set by an underlying security protocol such as RADIUS. For network functionality and clarity, setting this object to destroy(6) SHALL fail if one or more instances of etsysPortPolicyProfileOperID or etsysStationPolicyProfileOperID currently references this entry's etsysPolicyProfileIndex. Refer to the RowStatus convention for further details on the behavior of this object.")
etsysPolicyProfilePortVidStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 4), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfilePortVidStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfilePortVidStatus.setDescription("This object defines whether a PVID override should be applied to ports which have this profile active. enabled(1) means that any port with this policy active will have this row's etsysPolicyProfilePortVid applied to untagged frames or priority-tagged frames received on this port. disabled(2) means that etsysPolicyProfilePortVid will not be applied. When this object is set to disabled(2) the value of etsysPolicyProfilePortVid has no meaning.")
etsysPolicyProfilePortVid = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 5), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4094), ValueRangeConstraint(4095, 4095), )).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfilePortVid.setReference('RFC2674 (Q-BRIDGE-MIB) - dot1qPortVlanTable')
if mibBuilder.loadTexts: etsysPolicyProfilePortVid.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfilePortVid.setDescription("This object defines the PVID of this profile. If a port has an active policy and the policy's etsysPolicyProfilePortVidStatus is set to enabled(1), the etsysPolicyProfilePortVid will be applied to all untagged frames arriving on the port that do not match any of the policy classification rules. Note that the 802.1Q PVID will still exist from a management view but will NEVER be applied to traffic arriving on a port that has an active policy and enabled etsysPolicyProfilePortVid defined, since policy is applied to traffic arriving on the port prior to the assignment of a VLAN using the 802.1Q PVID. The behavior of an enabled etsysPolicyProfilePortVid on any associated port SHALL be identical to the behavior of the dot1qPvid upon that port. Note that two special, otherwise illegal, values of the etsysPolicyProfilePortVid are used in defining the default forwarding actions, to be used in conjunction with policy classification rules, and do not result in packet tagging: 0 Indicates that the default forwarding action is to drop all packets that do not match an explicit rule. 4095 Indicates that the default forwarding action is to forward any packets not matching any explicit rules.")
etsysPolicyProfilePriorityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 6), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfilePriorityStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfilePriorityStatus.setDescription('This object defines whether a Class of Service should be applied to ports which have this profile active. enabled(1) means that any port with this policy active will have etsysPolicyProfilePriority applied to this port. disabled(2) means that etsysPolicyProfilePriority will not be applied. When this object is set to disabled(2) the value of etsysPolicyProfilePriority has no meaning.')
etsysPolicyProfilePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfilePriority.setReference('RFC2674 (P-BRIDGE-MIB) - dot1dPortPriorityTable')
if mibBuilder.loadTexts: etsysPolicyProfilePriority.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfilePriority.setDescription("This object defines the default ingress Class of Service of this profile. If a port has an active policy and the policy's etsysPolicyProfilePriorityStatus is set to enabled(1), the etsysPolicyProfilePriority will be applied to all packets arriving on the port that do not match any of the policy classification rules. Note that dot1dPortDefaultUserPriority will still exist from a management view but will NEVER be applied to traffic arriving on a port that has an active policy and enabled etsysPolicyProfilePriority defined, since policy is applied to traffic arriving on the port prior to the assignment of a priority using dot1dPortDefaultUserPriority. The behavior of an enabled etsysPolicyProfilePriority on any associated port SHALL be identical to the behavior of the dot1dPortDefaultUserPriority upon that port.")
etsysPolicyProfileEgressVlans = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 8), VlanList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileEgressVlans.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileEgressVlans.setDescription("The set of VLANs which are assigned by this policy to egress on ports for which this policy is active. Changes to a bit in this object affect the per-port per-VLAN Registrar control for Registration Fixed for the relevant GVRP state machine on each port for which this policy is active. A VLAN may not be added in this set if it is already a member of the set of VLANs in etsysPolicyProfileForbiddenVlans. This object is superseded on a per-port per-VLAN basis by any 'set' bits in dot1qVlanStaticEgressPorts and dot1qVlanForbiddenEgressPorts. The default value of this object is a string of zeros.")
etsysPolicyProfileForbiddenVlans = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 9), VlanList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileForbiddenVlans.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileForbiddenVlans.setDescription("The set of VLANs which are prohibited by this policy to egress on ports for which this policy is active. Changes to this object that cause a port to be included or excluded affect the per-port per-VLAN Registrar control for Registration Forbidden for the relevant GVRP state machine on each port for which this policy is active. A VLAN may not be added in this set if it is already a member of the set of VLANs in etsysPolicyProfileEgressVlans. This object is superseded on a per-port per-VLAN basis by any 'set' bits in the dot1qVlanStaticEgressPorts and dot1qVlanForbiddenEgressPorts. The default value of this object is a string of zeros.")
etsysPolicyProfileUntaggedVlans = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 10), VlanList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileUntaggedVlans.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileUntaggedVlans.setDescription("The set of VLANs which should transmit egress packets as untagged on ports for which this policy is active. This object is superseded on a per-port per-VLAN basis by any 'set' bits in dot1qVlanStaticUntaggedPorts.")
etsysPolicyProfileOverwriteTCI = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 11), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileOverwriteTCI.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileOverwriteTCI.setDescription('If set, the information contained within the TCI field of inbound, tagged packets will not be used by the device after the ingress classification stage of packet relay. The net effect will be that the TCI information may be used to classify the packet, but will be overwritten (and ignored) by subsequent stages of packet relay.')
etsysPolicyProfileRulePrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileRulePrecedence.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileRulePrecedence.setDescription('Each octet will contain a single value representing the rule type to be matched against, defined by the PolicyClassificationRuleType textual convention. When read, will return the currently operating rule matching precedence, ordered from first consulted (in the first octet) to last consulted (in the last octet). A set of a single octet of 0x00 will result in a reversion to the default precedence ordering. A set of any other values will result in the specified rule types being matched in the order specified, followed by the remaining rules, in default precedence order.')
etsysPolicyProfileVlanRFC3580Mappings = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 13), VlanList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyProfileVlanRFC3580Mappings.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileVlanRFC3580Mappings.setDescription('The set of VLANs which are currently being mapped onto this policy profile by the etsysPolicyRFC3580MapTable. This only refers to the mapping of vlan-tunnel-attributes returned from RADIUS in an RFC3580 context.')
etsysPolicyProfileMirrorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 255), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileMirrorIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileMirrorIndex.setDescription('A reference to a packet mirror destination (defined elsewhere). A value of (-1) indicates no mirror is specified, but a mirror is not explicitly prohibitted. A value of (0) indicates that mirroring is explicitly prohibitted, unless a high precedent source (a rule) has specified a mirror.')
etsysPolicyProfileAuditSyslogEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 15), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileAuditSyslogEnable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileAuditSyslogEnable.setDescription('Enables the sending of a syslog message if no rule bound to this profile has prohibited it.')
etsysPolicyProfileAuditTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 16), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileAuditTrapEnable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileAuditTrapEnable.setDescription('Enables the sending of a SNMP NOTIFICATION if no rule bound to this profile has prohibited it.')
etsysPolicyProfileDisablePort = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 17), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyProfileDisablePort.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileDisablePort.setDescription('Will set the ifOperStatus of the port, on which the frame which used this profile was received, to disable, if if no rule bound to this profile has prohibited it.')
etsysPolicyProfileUsageList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 1, 5, 1, 18), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyProfileUsageList.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileUsageList.setDescription("When read, a set bit indicates that this profile was used to send a syslog or trap message for corresponding port. When set, the native PortList will be bit-wise AND'ed with the set PortList, allowing the agent to clear the usage indication.")
etsysPolicyClassificationMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyClassificationMaxEntries.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationMaxEntries.setDescription('The maximum number of entries allowed in the etsysPolicyClassificationTable.')
etsysPolicyClassificationNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyClassificationNumEntries.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationNumEntries.setDescription('The current number of entries in the etsysPolicyClassificationTable.')
etsysPolicyClassificationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyClassificationLastChange.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationLastChange.setDescription('The sysUpTime at which the etsysPolicyClassificationTable was last modified.')
etsysPolicyClassificationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4), )
if mibBuilder.loadTexts: etsysPolicyClassificationTable.setReference('CTRON-PRIORITY-CLASSIFY-MIB, CTRON-VLAN-CLASSIFY-MIB, CTRON-RATE-POLICING-MIB')
if mibBuilder.loadTexts: etsysPolicyClassificationTable.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationTable.setDescription('A table containing reference OIDs to entries within the classification tables. These classification tables include but may not be limited to: ctPriClassifyTable ctVlanClassifyTable ctRatePolicyingConfigTable This table is used to map a list of classification rules to an instance of the etsysPolicyProfileTable.')
etsysPolicyClassificationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileIndex"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationIndex"))
if mibBuilder.loadTexts: etsysPolicyClassificationEntry.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationEntry.setDescription('Describes a particular entry within the etsysPolicyClassificationTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysPolicyClassificationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: etsysPolicyClassificationIndex.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationIndex.setDescription('Administratively assigned unique value, greater than zero. Each etsysPolicyClassificationIndex instance MUST be unique within the scope of its associated etsysPolicyProfileIndex.')
etsysPolicyClassificationOID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4, 1, 2), RowPointer()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyClassificationOID.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationOID.setDescription("This object follows the RowPointer textual convention and is an OID reference to a classification rule. This object MUST NOT be modifiable while this entry's etsysPolicyClassificationStatus object has a value of active(1).")
etsysPolicyClassificationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyClassificationRowStatus.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationRowStatus.setDescription("The status of this row. When set to active(1) this entry's classification rule, as referenced by etsysPolicyClassificationOID, becomes one of its associated policy's set of rules. When this entry's associated policy, as defined by etsysPolicyProfileIndex, is active and assigned to a port through the etsysPortPolicyProfileTable or to a station through the etsysStationPolicyProfileTabbe, this classification rule will be applied to the port or station. The exact behavior of this application depends upon the classification rule. When this object is set to notInService(2) or notReady(3) this entry is not considered one of its associated policy's set of rules and this classification rule will not be applied. An entry MAY NOT be set to active(1) unless this row's etsysPolicyClassificationOID is set to a valid classification rule.")
etsysPolicyClassificationIngressList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 2, 4, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyClassificationIngressList.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationIngressList.setDescription('The ports on which an active policy profile has defined this classification rule applies.')
etsysPortPolicyProfileLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 1), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPortPolicyProfileLastChange.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileLastChange.setDescription('sysUpTime at which the etsysPortPolicyProfileTable was last modified.')
etsysPortPolicyProfileTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2), )
if mibBuilder.loadTexts: etsysPortPolicyProfileTable.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileTable.setDescription('This table allows for a one to one mapping between a dot1dBasePort or an ifIndex and a Policy Profile.')
etsysPortPolicyProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileIndexType"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileIndex"))
if mibBuilder.loadTexts: etsysPortPolicyProfileEntry.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileEntry.setDescription('Describes a particular entry within the etsysPortPolicyProfileTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysPortPolicyProfileIndexType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2, 1, 1), PortPolicyProfileIndexTypeTC())
if mibBuilder.loadTexts: etsysPortPolicyProfileIndexType.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileIndexType.setDescription('This object defines the specific type of port this entry represents.')
etsysPortPolicyProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: etsysPortPolicyProfileIndex.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileIndex.setDescription("An index value which represents a unique port of the type defined by this entry's etsysPortPolicyProfileIndexType.")
etsysPortPolicyProfileAdminID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2, 1, 3), PolicyProfileIDTC()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPortPolicyProfileAdminID.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileAdminID.setDescription("This object represents the desired Policy Profile for this dot1dBasePort or this ifIndex. Setting this object to any value besides zero (0) should, if possible, immediately place this entry's dot1dBasePort or ifIndex into the given Policy Profile. This object and etsysPortPolicyProfileOperID may not be the same if this object is set to a Policy (i.e. an instance of the etsysPolicyProfileTable) which is not in an active state or if the etsysPortPolicyProfileOperID has been set by an underlying security protocol such as RADIUS.")
etsysPortPolicyProfileOperID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 2, 1, 4), PolicyProfileIDTC()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPortPolicyProfileOperID.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileOperID.setDescription("This object is the current policy which is being applied to this entry's dot1dBasePort. A value of zero(0) indicates there is no policy being applied to this dot1dBasePort or this ifIndex. If the value of this object has been set by an underlying security protocol such as RADIUS, sets to this entry's etsysPortPolicyProfileAdminID MUST NOT change the value of this object until such time as the security protocol releases this object by setting it to a value of zero (0).")
etsysPortPolicyProfileSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3), )
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryTable.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryTable.setDescription('This table provides aggregate port information on a per policy, per port type basis.')
etsysPortPolicyProfileSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileIndex"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryIndexType"))
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryEntry.setDescription('Conceptually defines a particular entry within the etsysPortPolicyProfileSummaryTable.')
etsysPortPolicyProfileSummaryIndexType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3, 1, 1), PortPolicyProfileIndexTypeTC())
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryIndexType.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryIndexType.setDescription('This object defines the specific type of port this entry represents.')
etsysPortPolicyProfileSummaryAdminID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3, 1, 2), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryAdminID.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryAdminID.setDescription('An aggregate list of all Ports currently supporting rules which assign this profileIndex through administrative means. Rules of this type have a valid etsysPolicyRuleResult2 action and a profileIndex of 0.')
etsysPortPolicyProfileSummaryOperID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryOperID.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryOperID.setDescription('An aggregate list of all Ports currently supporting rules which assign this profileIndex through either an administrative or dynamic means. The profileId which will be assigned operationally, as frames are handled are too be reported here.')
etsysPortPolicyProfileSummaryDynamicID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 3, 3, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryDynamicID.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileSummaryDynamicID.setDescription('An aggregate list of all Ports currently supporting rules which assign this profileIndex through a dynamic means. For example the profileIndex returned via a successful 802.1X supplicant authentication.')
etsysStationPolicyProfileMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfileMaxEntries.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileMaxEntries.setDescription('The maximum number of entries allowed in the etsysStationPolicyProfileTable. If this number is exceeded, based on stations connecting to the edge device, the oldest entries will be deleted.')
etsysStationPolicyProfileNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfileNumEntries.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileNumEntries.setDescription('The current number of entries in the etsysStationPolicyProfileTable.')
etsysStationPolicyProfileLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfileLastChange.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileLastChange.setDescription('sysUpTime at which the etsysStationPolicyProfileTable was last modified.')
etsysStationPolicyProfileTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4), )
if mibBuilder.loadTexts: etsysStationPolicyProfileTable.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileTable.setDescription("This table allows for a one to one mapping between a station's identifying address and a Policy Profile.")
etsysStationPolicyProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileIndex"))
if mibBuilder.loadTexts: etsysStationPolicyProfileEntry.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileEntry.setDescription('Describes a particular entry within the etsysStationPolicyProfileTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysStationPolicyProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: etsysStationPolicyProfileIndex.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileIndex.setDescription('An index value which represents a unique station entry.')
etsysStationIdentifierType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 3), StationAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationIdentifierType.setStatus('current')
if mibBuilder.loadTexts: etsysStationIdentifierType.setDescription('Indicates the type of station identifying address contained in etsysStationIdentifier.')
etsysStationIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 4), StationAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationIdentifier.setStatus('current')
if mibBuilder.loadTexts: etsysStationIdentifier.setDescription('A value which represents a unique MAC Address, IP Address, or other identifying address for a station, or other logical and authenticatable sub-entity within a station, connected to a port.')
etsysStationPolicyProfileOperID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 5), PolicyProfileIDTC()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfileOperID.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileOperID.setDescription("This object is the current policy which is being applied to this entry's MAC Address. A value of zero(0) indicates there is no policy being applied to this MAC Address. The value of this object reflects either the setting from an underlying AAA service such as RADIUS, or the default setting based on the etsysPortPolicyProfileAdminID for the port on which the station is connected. This object and the corresponding etsysPortPolicyProfileAdminID will not be the same if this object has been set by an underlying security protocol such as RADIUS.")
etsysStationPolicyProfilePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 6), PortPolicyProfileIndexTypeTC()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfilePortType.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfilePortType.setDescription('A textual convention that defines the specific type of port designator the corresponding entry represents.')
etsysStationPolicyProfilePortID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 5, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysStationPolicyProfilePortID.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfilePortID.setDescription("A value which represents the physical port, of the type defined by this entry's etsysStationPolicyProfilePortType, on which the associated station entity is connected. This object is for convenience in cross referencing stations to ports.")
etsysInvalidPolicyAction = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("applyDefaultPolicy", 1), ("dropPackets", 2), ("forwardPackets", 3))).clone('applyDefaultPolicy')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysInvalidPolicyAction.setStatus('current')
if mibBuilder.loadTexts: etsysInvalidPolicyAction.setDescription('Specifies the action that the edge device should take if asked to apply an invalid or unknown policy. applyDefaultPolicy(1) - Ignore the result and search for the next policy assignment rule. dropPackets(2) - Block traffic. forwardPackets(3) - Forward traffic, as if no policy had been assigned (via 802.1D/Q rules). Although dropPackets(2) is the most secure option, it may not always be desirable.')
etsysInvalidPolicyCount = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 6, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysInvalidPolicyCount.setStatus('current')
if mibBuilder.loadTexts: etsysInvalidPolicyCount.setDescription('Increments to indicate the number of times the device has detected an invalid/unknown policy.')
etsysDevicePolicyProfileDefault = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysDevicePolicyProfileDefault.setStatus('current')
if mibBuilder.loadTexts: etsysDevicePolicyProfileDefault.setDescription('If this value is non-zero, the value indicates the etsysPolicyProfileEntry (and its associated etsysPolicyClassificationTable entries) which should be used by the device if the device is incapable of using the profile (or specific parts of the profile) explicitly applied to an inbound frame. A value of zero indicates that no default profile is currently active.')
etsysPolicyCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 1), Bits().clone(namedValues=NamedValues(("supportsVLANForwarding", 0), ("supportsPriority", 1), ("supportsPermit", 2), ("supportsDeny", 3), ("supportsDeviceLevelPolicy", 4), ("supportsPrecedenceReordering", 5), ("supportsTciOverwrite", 6), ("supportsRulesTable", 7), ("supportsRuleUseAccounting", 8), ("supportsRuleUseNotification", 9), ("supportsCoSTable", 10), ("supportsLongestPrefixRules", 11), ("supportsPortDisableAction", 12), ("supportsRuleUseAutoClearOnLink", 13), ("supportsRuleUseAutoClearOnInterval", 14), ("supportsRuleUseAutoClearOnProfile", 15), ("supportsPolicyRFC3580MapTable", 16), ("supportsPolicyEnabledTable", 17), ("supportsMirror", 18), ("supportsEgressPolicy", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyCapabilities.setDescription('A list of capabilities related to policies. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyDynaPIDRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 2), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyDynaPIDRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyDynaPIDRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of dynamically assigning a profile to the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyAdminPIDRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 3), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyAdminPIDRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyAdminPIDRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of administratively assigning a profile to the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyVlanRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 4), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyVlanRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyVlanRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of assigning a VlanId to the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyCosRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 5), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyCosRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyCosRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of assigning a CoS to the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyDropRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 6), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyDropRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyDropRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of discarding the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyForwardRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 7), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyForwardRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyForwardRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of forwarding the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicySyslogRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 8), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicySyslogRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicySyslogRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of issuing syslog messages when the rule is used to identify the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyTrapRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 9), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyTrapRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyTrapRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of issuing an SNMP notify (trap) messages when the rule is used to identify the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyDisablePortRuleCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 10), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyDisablePortRuleCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyDisablePortRuleCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of disabling the ingress port identified when the rule matches the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicySupportedPortList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 11), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicySupportedPortList.setStatus('current')
if mibBuilder.loadTexts: etsysPolicySupportedPortList.setDescription('The list ports which support policy profile assignment (i.e. the ports which _do_ policy). This object may be useful to management entities which desire to scope action to only those ports which support policy. A port which appears in this list, must support, at minimum, the assignment of a policy profile to all traffic ingressing the port.')
etsysPolicyEnabledTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 12), )
if mibBuilder.loadTexts: etsysPolicyEnabledTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyEnabledTable.setDescription('This table allows for the configuration of policy profile assignment methods, per port, including the ability to disable policy profile assignment, per port. In addition, a ports capabilities, with respect to policy profile assignment are reported.')
etsysPolicyEnabledTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 12, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"))
if mibBuilder.loadTexts: etsysPolicyEnabledTableEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyEnabledTableEntry.setDescription('Describes a particular entry within the etsysPolicyEnabledTable.')
etsysPolicyEnabledSupportedRuleTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 12, 1, 1), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyEnabledSupportedRuleTypes.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyEnabledSupportedRuleTypes.setDescription('The list of rule types which the devices supports for the purpose of assigning policy profiles to network traffic ingressing this dot1dBasePort.')
etsysPolicyEnabledEnabledRuleTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 12, 1, 2), PolicyRulesSupported()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyEnabledEnabledRuleTypes.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyEnabledEnabledRuleTypes.setDescription('The list of rule types from which the device will assign policy profiles to network traffic ingressing this dot1dBasePort. Rules which have a type not enumerated here must not be used to assign policy profiles, but must still be used to interrogate the rule-set bound to the determined policy profile. A set of all cleared bits will effectively disable policy in the port.')
etsysPolicyEnabledEgressEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 12, 1, 3), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyEnabledEgressEnabled.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyEnabledEgressEnabled.setDescription('Controls the enabling and disabling the application of policy as packets egress the switching process on the dot1dBasePort specified in the indexing.')
etsysPolicyRuleAttributeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 13), )
if mibBuilder.loadTexts: etsysPolicyRuleAttributeTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAttributeTable.setDescription('This table details each supported rule type attribute for rule data length in bytes, rule data length in bits, and the maximum number of rules that may use that type.')
etsysPolicyRuleAttributeTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 13, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleType"))
if mibBuilder.loadTexts: etsysPolicyRuleAttributeTableEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAttributeTableEntry.setDescription('Describes a particular entry within the etsysPolicyRuleAttributeTable.')
etsysPolicyRuleAttributeByteLength = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 13, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleAttributeByteLength.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAttributeByteLength.setDescription("This rule type's maximum length, in bytes of the etsysPolicyRuleData. Devices supporting this object MUST allow sets for this rule data of any valid length up to and including the length value represented by this object. Management entities must also expect to read back the maximum data length for each type regardless of the length the data was set with.")
etsysPolicyRuleAttributeBitLength = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 13, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleAttributeBitLength.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAttributeBitLength.setDescription("This rule type's maximum bit length for traffic data. This value also represents the maximum mask that may be used for rule data. The mask MUST NOT exceed the rule data size. Masks that exceed the data size shall be considered invalid and result in an SNMP set failure.")
etsysPolicyRuleAttributeMaxCreatable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 13, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleAttributeMaxCreatable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAttributeMaxCreatable.setDescription('If this value is non-zero, the value indicates the maximum number of rules of this type the agent can support.')
etsysPolicyRuleTciOverwriteCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 14), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleTciOverwriteCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleTciOverwriteCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of overwriting the TCI in received packets described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyRuleMirrorCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 9, 15), PolicyRulesSupported()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleMirrorCapabilities.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleMirrorCapabilities.setDescription('A list of rule types which are supported by this device for the purpose of mirroring the network traffic described by the bit. A set bit, with the value 1, indicates support for the described functionality. A clear bit, with the value 0, indicates the described functionality is not supported.')
etsysPolicyMapMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyMapMaxEntries.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapMaxEntries.setDescription('This has been obsoleted.')
etsysPolicyMapNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyMapNumEntries.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapNumEntries.setDescription('This has been obsoleted.')
etsysPolicyMapLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyMapLastChange.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapLastChange.setDescription('This has been obsoleted.')
etsysPolicyMapPvidOverRide = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyMapPvidOverRide.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapPvidOverRide.setDescription('This has been obsoleted.')
etsysPolicyMapUnknownPvidPolicy = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("denyAccess", 1), ("applyDefaultPolicy", 2), ("applyPvid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyMapUnknownPvidPolicy.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapUnknownPvidPolicy.setDescription('This has been obsoleted.')
etsysPolicyMapTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6), )
if mibBuilder.loadTexts: etsysPolicyMapTable.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapTable.setDescription('This has been obsoleted.')
etsysPolicyMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapIndex"))
if mibBuilder.loadTexts: etsysPolicyMapEntry.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapEntry.setDescription('This has been obsoleted.')
etsysPolicyMapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: etsysPolicyMapIndex.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapIndex.setDescription('This has been obsoleted.')
etsysPolicyMapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyMapRowStatus.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapRowStatus.setDescription('This has been obsoleted.')
etsysPolicyMapStartVid = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyMapStartVid.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapStartVid.setDescription('This has been obsoleted.')
etsysPolicyMapEndVid = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyMapEndVid.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapEndVid.setDescription('This has been obsoleted.')
etsysPolicyMapPolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 10, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyMapPolicyIndex.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapPolicyIndex.setDescription('This has been obsoleted.')
etsysPolicyRulesMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRulesMaxEntries.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesMaxEntries.setDescription('The maximum number of entries allowed in the etsysPolicyRulesTable.')
etsysPolicyRulesNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRulesNumEntries.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesNumEntries.setDescription('The current number of entries in the etsysPolicyRulesTable.')
etsysPolicyRulesLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRulesLastChange.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesLastChange.setDescription('The sysUpTime at which the etsysPolicyRulesTable was last modified.')
etsysPolicyRulesAccountingEnable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 4), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRulesAccountingEnable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesAccountingEnable.setDescription('Controls the collection of rule usage statistics. If disabled, no usage statistics are gathered and no auditing messages will be sent. When enabled, rule will gather usage statistics, and auditing messages will be sent, if enabled for a given rule.')
etsysPolicyRulesPortDisabledList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 5), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRulesPortDisabledList.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesPortDisabledList.setDescription('A portlist containing bits representing the dot1dBridgePorts which have been disabled via the mechanism described in the etsysPolicyRuleDisablePort leaf. A set bit indicates a disabled port. Ports may be enabled by performing a set with the corresponding bit cleared. Bits which are set will be ignored during the set operation.')
etsysPolicyRuleTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6), )
if mibBuilder.loadTexts: etsysPolicyRuleTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleTable.setDescription('A table containing rules bound to individual policies. A Rule is comprised of three components, a unique description of the network traffic, an associated list of actions, and an associated list of accounting and auditing controls and information. The unique description of the network traffic, defined by a PolicyClassificationRuleType together with a length, matching data and a relevant bits field, port type, and port number (port number zero is reserved to mean any port), and scoped by a etsysPolicyProfileIndex, is used as the table index.')
etsysPolicyRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleProfileIndex"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleType"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleData"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePrefixBits"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortType"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePort"))
if mibBuilder.loadTexts: etsysPolicyRuleEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleEntry.setDescription('Describes a particular entry within the etsysPolicyRuleTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysPolicyRuleProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), )))
if mibBuilder.loadTexts: etsysPolicyRuleProfileIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleProfileIndex.setDescription('The etsysPolicyProfileIndex for which the rule is defined. A value of zero(0) has special meaning in that it scopes rules which are used to determine the Policy Profile to which the frame belongs. See the etsysPolicyRuleResult1 and etsysPolicyRuleResult2 descriptions for specifics of how the results of a rule hit differ when the etsysPolicyRuleProfileIndex is zero.')
etsysPolicyRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 2), PolicyClassificationRuleType())
if mibBuilder.loadTexts: etsysPolicyRuleType.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleType.setDescription('The type of network traffic reference by the etsysPolicyRuleData.')
etsysPolicyRuleData = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64)))
if mibBuilder.loadTexts: etsysPolicyRuleData.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleData.setDescription('The data pattern to match against, as defined by the etsysPolicyRuleType, encoded in network-byte order.')
etsysPolicyRulePrefixBits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2048), )))
if mibBuilder.loadTexts: etsysPolicyRulePrefixBits.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePrefixBits.setDescription('The relevant number of bits defined by the etsysPolicyRuleData, to be used when matching against a frame, relevant bits are specified in longest-prefix-first style (left to right). A value of zero carries the special meaning of all bits are relevant.')
etsysPolicyRulePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 5), PortPolicyProfileIndexTypeTC())
if mibBuilder.loadTexts: etsysPolicyRulePortType.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortType.setDescription('The port number on which the rule will be applied. Zero(0) is a special case, indicating that the rule should be applied to all ports.')
etsysPolicyRulePort = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), )))
if mibBuilder.loadTexts: etsysPolicyRulePort.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePort.setDescription('The port number on which the rule will be applied. Zero(0) is a special case, indicating that the rule should be applied to all ports.')
etsysPolicyRuleRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleRowStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleRowStatus.setDescription("The status of this row. When set to active(1) this entry's classification rule, as referenced by etsysPolicyRulesOID, becomes one of its associated policy's set of rules. When this entry's associated policy, as defined by etsysPolicyRuleProfileIndex, is active and assigned to a port through the etsysPortPolicyProfileTable or to a station through the etsysStationPolicyProfileTabbe, this classification rule will be applied to the port or station. The exact behavior of this application depends upon the classification rule. When this object is set to notInService(2) or notReady(3) this entry is not considered one of its associated policy's set of rules and this classification rule will not be applied.")
etsysPolicyRuleStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 8), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleStorageType.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStorageType.setDescription("The storage type of this row. When set to volatile(1) this entry's classification rule, as referenced by etsysPolicyRulesOID, will be removed (if present) from non-volatile storage. Rows created dynamically by the device will typically report this as their default storage type. When set to nonVolatile(1) this entry's classification rule, as referenced by etsysPolicyRulesOID, will be added to non- volatile storage. This is the default value for rows created as the result of external management. Values of other(0), permanent(4), and readOnly(5) may not be set, although they may be returned for rows created by the device.")
etsysPolicyRuleUsageList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 9), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleUsageList.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleUsageList.setDescription("When read, a set bit indicates that this rule was used to classify traffic on the corresponding port. When set, the native PortList will be bit-wise AND'ed with the set PortList, allowing the agent to clear the usage indication.")
etsysPolicyRuleResult1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 4094), ValueRangeConstraint(4095, 4095), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleResult1.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleResult1.setDescription('If the etsysPolicyRuleProfileIndex is 0 then this field is read-only and defines the profile ID which will assigned to frames matching this rule. This is the dynamically assigned value and may differ from the administratively configured value. If the etsysPolicyRuleProfileIndex is not 0 then this field is read-create and defines the VLAN ID with which to mark a frame matching this PolicyRule. Note that three special, otherwise illegal, values of the etsysPolicyRuleVlan are used in defining the forwarding action. -1 Indicates that no VLAN or forwarding behavior modification is desired. A rule will not be matched against for the purpose of determining a marking VID if this value is set. 0 Indicates that the default forwarding action is to drop the packets matching this rule. 4095 Indicates that the default forwarding action is to forward any packets matching this rule.')
etsysPolicyRuleResult2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 4095), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleResult2.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleResult2.setDescription('If the etsysPolicyRuleProfileIndex is 0 then this field is read-create and defines the profile ID which the managing entity desires assigned to frames matching this rule. This is the administrative value and may differ from the dynamically assigned active value. If the etsysPolicyRuleProfileIndex is not 0 then this field is The CoS with which to mark a frame matching this PolicyRule. Note that one special, otherwise illegal, values of the etsysPolicyRuleCoS are used in defining the forwarding action. -1 Indicates that no CoS or forwarding behavior modification is desired. A rule will not be matched against for the purpose of determining a CoS if this value is set.')
etsysPolicyRuleAuditSyslogEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 12), TriStateStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleAuditSyslogEnable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAuditSyslogEnable.setDescription('Controls the sending of a syslog message when a bit in the etsysPolicyRuleUsageList transitions from 0 to 1.')
etsysPolicyRuleAuditTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 13), TriStateStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleAuditTrapEnable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleAuditTrapEnable.setDescription('Controls the sending of an SNMP NOTIFICATION when a bit in the etsysPolicyRuleUsageList transitions from 0 to 1.')
etsysPolicyRuleDisablePort = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 14), TriStateStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleDisablePort.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleDisablePort.setDescription('Controls the disabling of a port (ifOperStatus of the corresponding ifIndex will be down) when a bit in the etsysPolicyRuleUsageList transitions from 0 to 1. When set to enabled, the corresponding ifIndex will be disabled upon the transition.')
etsysPolicyRuleOperPid = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 4095), )).clone(-1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleOperPid.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleOperPid.setDescription('If the etsysPolicyRuleProfileIndex is 0 then this field contains the currently applied profile ID for frames matching this rule. This may be either the administratively applied value or the dynamically applied value. If the etsysPolicyRuleProfileIndex is not 0, then this object does not exist and will not be returned. Note that one special, otherwise illegal, values of the etsysPolicyRuleCoS are used in defining the forwarding action. -1 Indicates that no profile ID is being applied by this rule.')
etsysPolicyRuleOverwriteTCI = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 16), TriStateStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleOverwriteTCI.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleOverwriteTCI.setDescription('If set, the information contained within the TCI field of inbound, tagged packets will not be used by the device after the ingress classification stage of packet relay. The net effect will be that the TCI information may be used to classify the packet, but will be overwritten (and ignored) by subsequent stages of packet relay.')
etsysPolicyRuleMirrorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 6, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 255), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysPolicyRuleMirrorIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleMirrorIndex.setDescription('A reference to a packet mirror destination (defined elsewhere). A value of (-1) indicates no mirror is specified, but a mirror is not explicitly prohibitted. A value of (0) indicates that mirroring is explicitly prohibitted, unless a high precedent rule has specified a mirror.')
etsysPolicyRulePortTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 7), )
if mibBuilder.loadTexts: etsysPolicyRulePortTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortTable.setDescription('The purpose of this table is to provide an agent the ability to easily determine which rules have been used on a given bridge port. A row will only be present when the rule which the instancing describes has been used. The agent may remove a row (and clear the used status) by setting the etsysPolicyRulePortHit leaf to False. PolicyClassificationRuleType together with a length, matching data and a relevant bits field, port type, and port number (port number zero is reserved to mean any port), scoped by a etsysPolicyRuleProfileIndex, and preceded by a dot1dBasePort is used as the table index.')
etsysPolicyRulePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 7, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleProfileIndex"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleType"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleData"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePrefixBits"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortType"), (0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePort"))
if mibBuilder.loadTexts: etsysPolicyRulePortEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortEntry.setDescription('.')
etsysPolicyRulePortHit = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 7, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRulePortHit.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortHit.setDescription('Every row will report a value of True, indicating that the Rule described by the instancing was used on the given port. An agent may be set this leaf to False to clear remove the row and clear the Rule Use bit for the specified Rule, on the given bridgePort.')
etsysPolicyRuleDynamicProfileAssignmentOverride = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 8), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleDynamicProfileAssignmentOverride.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleDynamicProfileAssignmentOverride.setDescription('If true, administratively assigned profile assignment rules override dynamically assigned profiles assignments for a given rule. If false, the dynamically assigned value (typically created by a successful authentication attempt) overrides the administratively configured value. The agent may optionally implement this leaf as read-only.')
etsysPolicyRuleDefaultDynamicSyslogStatus = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 9), TriStateStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleDefaultDynamicSyslogStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleDefaultDynamicSyslogStatus.setDescription('If enabled(1), rules dynamically created will set etsysPolicyRuleAuditSyslogEnable to enabled. If disabled(2) a dynamically created rule will have etsysPolicyRuleAuditSyslogEnable set to disabled. The agent may optionally implement this leaf as read-only.')
etsysPolicyRuleDefaultDynamicTrapStatus = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 10), TriStateStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleDefaultDynamicTrapStatus.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleDefaultDynamicTrapStatus.setDescription('If enabled(1), rules dynamically created will set etsysPolicyRuleAuditTrapEnable to enabled. If disabled(2) a dynamically created rule will have etsysPolicyRuleAuditTrapEnable set to disabled. The agent may optionally implement this leaf as read-only.')
etsysPolicyRuleStatsAutoClearOnLink = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 11), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearOnLink.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearOnLink.setDescription('If set to enabled(1), when operstatus up is detected on any port the agent will clear the rule usage information associated with that port. This ability is further scoped to the list of ports defined by etsysPolicyRuleStatsAutoClearPorts. This leaf is optional and will have no effect on an agent which has rule use accounting disabled or does not support rule use accounting. By default, the rule use accounting information will not be modified by operstatus transitions.')
etsysPolicyRuleStatsAutoClearInterval = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearInterval.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearInterval.setDescription('The interval at which the device will automatically clear rule usage statistics, in minutes. This ability is disabled (usage statistics will not be automatically cleared) if set to zero(0). This ability is further scoped to the list of ports defined by etsysPolicyRuleStatsAutoClearPorts. This leaf is optional and will have no effect on an agent which has rule use accounting disabled or does not support rule use accounting.')
etsysPolicyRuleStatsAutoClearPorts = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 13), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearPorts.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearPorts.setDescription("The list ports on which rule usage statistics will be cleared by one of the AutoClear actions (etsysPolicyRuleStatsAutoClearInterval, etsysPolicyRuleStatsAutoClearOnProfile, or etsysPolicyRuleStatsAutoClearOnLink). By default, no ports will be set in this list. This leaf is optional, unless the agent claims support for one of the other 'autoclear' objects, and will have no effect on an agent which has rule use accounting disabled or does not support rule use accounting.")
etsysPolicyRuleStatsAutoClearOnProfile = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 14), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearOnProfile.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStatsAutoClearOnProfile.setDescription('If set to enabled(1), when a rule assigning a PolicyProfile (whose etsysPolicyRuleProfileIndex is zero(0)) is activated, all the rule usage bits associated with the rules bound to the PolicyProfile specified by the etsysPolicyRuleOperPid and the port specified by the etsysPolicyRulePort are cleared (if there is no port specified or no valid etsysPolicyRuleProfileIndex specified, then no action follows). This ability is further scoped to the list of ports defined by etsysPolicyRuleStatsAutoClearPorts. This leaf is optional and will have no effect on an agent which has rule use accounting disabled or does not support rule use accounting. By default, the rule use accounting information will not be modified by the creation or activation of PolicyProfile assignment rules.')
etsysPolicyRuleStatsDroppedNotifications = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRuleStatsDroppedNotifications.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleStatsDroppedNotifications.setDescription("A count of the number of times the agent has dropped notification (syslog or trap) of a etsysPolicyRuleUsageList bit transition. A management entity might use this leaf as an indication to read the etsysPolicyRuleUsageList objects for important rules. This count should be kept to the best of the device's ability, and explicitly does not cover notifications discarded by the network.")
etsysPolicyRuleSylogMachineReadableFormat = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 16), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleSylogMachineReadableFormat.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleSylogMachineReadableFormat.setDescription('If enabled, the device should format rule usage messages so that they might be processed by a machine (scripting backend, etc). If disabled, the messages should be formatted for human consumption.')
etsysPolicyRuleSylogExtendedFormat = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 17), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleSylogExtendedFormat.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleSylogExtendedFormat.setDescription('If enabled, the device should provide additional information in rule-hit syslog messages. This information MAY include what actions may have been initiated by the rule (if any) or data mined from the packet which matched the rule.')
etsysPolicyRuleSylogEveryTime = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 11, 18), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRuleSylogEveryTime.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRuleSylogEveryTime.setDescription('If enabled, the device will syslog on every rule hit (or profile hit) which specifies SYSLOG as the action, instead of only when the associated bit in the etsysPolicyProfileUsageList or the etsysPolicyRuleUsageList is clear. It should be noted that this may cause MANY messages to be generated.')
etsysPolicyRFC3580MapResolveReponseConflict = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 1), PolicyRFC3580MapRadiusResponseTC().clone('policyProfile')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRFC3580MapResolveReponseConflict.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapResolveReponseConflict.setDescription('Indicates which field to use in the application of the RADIUS response in the event that both the proprietary filter-id indicating a policy profile and the standard (RFC3580) vlan- tunnel-attribute are present. If policyProfile(1) is selected, then the filter-id will be used, if vlanTunnelAttribute(2) is selected, then the vlan-tunnel-attribute will be used (and the policy-map will be applied, if present). A value of vlanTunnelAttributeWithPolicyProfile(3) indicates that both attributes should be applied, in the following manner: the policyProfile should be enforced, with the exception of the etsysPolicyProfilePortVid (if present), the returned vlan-tunnel-attribute will be used in its place. In this case, the policy-map will be ignored (as the policyProfile was explicitly assigned). VLAN classification rules will still be applied, as defined by the assigned policyProfile. Modifications of this value will not effect the current status of any users currently authenticated. The new state will be applied to new, successful authentications. The current status of current authentication may be modified through the individual agents or through the ENTERASYS-MULTI-AUTH-MIB, if supported.')
etsysPolicyRFC3580MapLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRFC3580MapLastChange.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapLastChange.setDescription('The value of sysUpTime when the etsysPolicyRFC3580MapTable was last modified.')
etsysPolicyRFC3580MapTableDefault = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRFC3580MapTableDefault.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapTableDefault.setDescription('If read as True, then the etsysPolicyRFC3580MapTable is in the default state (no mappings have been created), if False, then non-default mappings exist. If set to True, then the etsysPolicyRFC3580MapTable will be put into the default state (no mappings will exist). A set to False is not valid and MUST fail.')
etsysPolicyRFC3580MapTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 4), )
if mibBuilder.loadTexts: etsysPolicyRFC3580MapTable.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapTable.setDescription('A table containing VLAN ID to policy mappings. A policy is a group of classification rules which may be applied on a per user basis, to ports or to stations.')
etsysPolicyRFC3580MapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 4, 1), ).setIndexNames((0, "ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapVlanId"))
if mibBuilder.loadTexts: etsysPolicyRFC3580MapEntry.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapEntry.setDescription('Conceptually defines a particular entry within the etsysPolicyRFC3580MapTable. Entries within this table MUST be considered non-volatile and MUST be maintained across entity resets.')
etsysPolicyRFC3580MapVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 4, 1, 1), VlanIndex())
if mibBuilder.loadTexts: etsysPolicyRFC3580MapVlanId.setReference('IEEE 802.1X RADIUS Usage Guidelines (RFC 3580)')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapVlanId.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapVlanId.setDescription('The VlanIndex which will map to the policy profile specified by the etsysPolicyRFC3580MapPolicyIndex of this row. This will be used to map the VLAN returned by value from the Tunnel- Private-Group-ID RADIUS attribute.')
etsysPolicyRFC3580MapPolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 4, 1, 2), PolicyProfileIDTC().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65535), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysPolicyRFC3580MapPolicyIndex.setReference('IEEE 802.1X RADIUS Usage Guidelines (RFC 3580)')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapPolicyIndex.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapPolicyIndex.setDescription('The index of a Policy Profle as defined in the etsysPolicyProfileTable. A value of 0 indicates that the row is functionally non- operational (no mapping exists). Devices which support the ENTERASYS-VLAN-AUTHORIZATION-MIB, and for which the value of etsysVlanAuthorizationEnable is Enabled and the value of etsysVlanAuthorizationStatus is Enabled on the port referenced by the authorization request, should then use the VlanIndex provisioned (e.g. from the Tunnel-Private-Group-ID RADIUS attribute) as defined by RFC3580, otherwise, the device should treat the result as if no matching Policy Profile had been found (e.g. as a simple success). In the case where a Policy Profile is already being applied to the referenced station, but no mapping exists, the device MUST treat the Tunnel-Private-Group-ID as an override to the etsysPolicyProfilePortVid defined by that profile (any matched classification rules which explicit provision a VLAN MUST still override both the etsysPolicyProfilePortVid and the Tunnel-Private-Group-ID.) A non-zero value of this object indicates that the VlanIndex provisioned (e.g. from the Tunnel-Private-Group-ID RADIUS attribute) should be mapped to a Policy Profile as defined in the etsysPolicyProfileTable, and that policy applied as if the Policy name had been provisioned instead (e.g, in the Filter-ID RADIUS attribute). If the mapping references a non-existent row of the etsysPolicyProfileTable, or the referenced row has a etsysPolicyProfileRowStatus value other than Active, the device MUST behave as if the mapping did not exist (apply the vlan-tunnel-attribute). The etsysPolicyRFC3580MapInvalidMapping MUST then be incremented.')
etsysPolicyRFC3580MapInvalidMapping = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 12, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysPolicyRFC3580MapInvalidMapping.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapInvalidMapping.setDescription('Increments to indicate the number of times the device has detected an invalid/unknown EtsysPolicyRFC3580MapEntry (i.e. one that references an in-active or non-existent etsysPolicyProfile).')
etsysPolicyProfileConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7))
etsysPolicyProfileGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1))
etsysPolicyProfileCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2))
etsysPolicyProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 1)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileTableNextAvailableIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileName"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVidStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriorityStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriority"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileEgressVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileForbiddenVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileUntaggedVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileOverwriteTCI"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRulePrecedence"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileVlanRFC3580Mappings"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileGroup = etsysPolicyProfileGroup.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileGroup.setDescription('A collection of objects providing Policy Profile Creation.')
etsysPolicyClassificationGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 2)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationOID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationIngressList"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyClassificationGroup = etsysPolicyClassificationGroup.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyClassificationGroup.setDescription('A collection of objects providing a mapping between a set of Classification Rules and a Policy Profile.')
etsysPortPolicyProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 3)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileAdminID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileOperID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryAdminID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryOperID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPortPolicyProfileGroup = etsysPortPolicyProfileGroup.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPortPolicyProfileGroup.setDescription('A collection of objects providing a mapping from a specific port to a Policy Profile instance. Only the read-only portions of this group are now current. They are listed under etsysPortPolicyProfileGroup2.')
etsysStationPolicyProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 5)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationIdentifierType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationIdentifier"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileOperID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfilePortType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfilePortID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysStationPolicyProfileGroup = etsysStationPolicyProfileGroup.setStatus('current')
if mibBuilder.loadTexts: etsysStationPolicyProfileGroup.setDescription('A collection of objects providing a mapping from a specific station to a Policy Profile instance.')
etsysInvalidPolicyPolicyGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 6)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyAction"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysInvalidPolicyPolicyGroup = etsysInvalidPolicyPolicyGroup.setStatus('current')
if mibBuilder.loadTexts: etsysInvalidPolicyPolicyGroup.setDescription('A collection of objects that help to define a mapping from logical authorization services outcomes to access control and policy actions.')
etsysDevicePolicyProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 7)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileDefault"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysDevicePolicyProfileGroup = etsysDevicePolicyProfileGroup.setStatus('current')
if mibBuilder.loadTexts: etsysDevicePolicyProfileGroup.setDescription('An object that provides a device level supplemental policy for entities that are not able to apply portions of the profile definition uniquely on individual ports.')
etsysPolicyCapabilitiesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 8)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyVlanRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCosRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDropRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyForwardRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDynaPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyAdminPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySyslogRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyTrapRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDisablePortRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySupportedPortList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledSupportedRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledEnabledRuleTypes"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyCapabilitiesGroup = etsysPolicyCapabilitiesGroup.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyCapabilitiesGroup.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPolicyMapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 9)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapPvidOverRide"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapUnknownPvidPolicy"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapStartVid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapEndVid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyMapPolicyIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyMapGroup = etsysPolicyMapGroup.setStatus('obsolete')
if mibBuilder.loadTexts: etsysPolicyMapGroup.setDescription('This object group has been obsoleted.')
etsysPolicyRulesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 10)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesAccountingEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesPortDisabledList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStorageType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleUsageList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult1"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOperPid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDynamicProfileAssignmentOverride"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicSyslogStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicTrapStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnLink"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearInterval"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearPorts"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnProfile"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulesGroup = etsysPolicyRulesGroup.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyRulesGroup.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPortPolicyProfileGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 11)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryAdminID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryOperID"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileSummaryDynamicID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPortPolicyProfileGroup2 = etsysPortPolicyProfileGroup2.setStatus('current')
if mibBuilder.loadTexts: etsysPortPolicyProfileGroup2.setDescription('A collection of objects providing a mapping from a specific port to a Policy Profile instance.')
etsysPolicyRFC3580MapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 12)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapResolveReponseConflict"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapTableDefault"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapPolicyIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapInvalidMapping"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRFC3580MapGroup = etsysPolicyRFC3580MapGroup.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRFC3580MapGroup.setDescription('An object group that provides support for mapping between RFC 3580 style VLAN-policy and Enterasys UPN-policy based on named roles.')
etsysPolicyCapabilitiesGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 13)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyVlanRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCosRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDropRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyForwardRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDynaPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyAdminPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySyslogRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyTrapRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDisablePortRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySupportedPortList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledSupportedRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledEnabledRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeByteLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeBitLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeMaxCreatable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyCapabilitiesGroup2 = etsysPolicyCapabilitiesGroup2.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyCapabilitiesGroup2.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles and defines the characteristics of policy rule data by rule type.')
etsysPolicyRulesGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 14)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesAccountingEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesPortDisabledList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStorageType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleUsageList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult1"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOperPid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDynamicProfileAssignmentOverride"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicSyslogStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicTrapStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnLink"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearInterval"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearPorts"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnProfile"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsDroppedNotifications"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogMachineReadableFormat"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulesGroup2 = etsysPolicyRulesGroup2.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyRulesGroup2.setDescription('********* THIS GROUP IS DEPRECATED ********** An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPolicyRulePortHitNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 15)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHitNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulePortHitNotificationGroup = etsysPolicyRulePortHitNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulePortHitNotificationGroup.setDescription('An object group that provides support for traps sent from the etsysPolicyRulePortHit event.')
etsysPolicyRulesGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 16)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesAccountingEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesPortDisabledList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStorageType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleUsageList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult1"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOperPid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDynamicProfileAssignmentOverride"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicSyslogStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicTrapStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnLink"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearInterval"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearPorts"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnProfile"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsDroppedNotifications"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogMachineReadableFormat"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogExtendedFormat"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulesGroup3 = etsysPolicyRulesGroup3.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyRulesGroup3.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPolicyRulesGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 17)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesAccountingEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesPortDisabledList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStorageType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleUsageList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult1"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOperPid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDynamicProfileAssignmentOverride"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicSyslogStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicTrapStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnLink"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearInterval"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearPorts"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnProfile"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsDroppedNotifications"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogMachineReadableFormat"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogExtendedFormat"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOverwriteTCI"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleMirrorIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulesGroup4 = etsysPolicyRulesGroup4.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesGroup4.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPolicyCapabilitiesGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 18)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyVlanRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCosRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDropRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyForwardRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDynaPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyAdminPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySyslogRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyTrapRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDisablePortRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySupportedPortList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledSupportedRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledEnabledRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeByteLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeBitLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeMaxCreatable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleTciOverwriteCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleMirrorCapabilities"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyCapabilitiesGroup3 = etsysPolicyCapabilitiesGroup3.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyCapabilitiesGroup3.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles and defines the characteristics of policy rule data by rule type.')
etsysPolicyProfileGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 19)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileTableNextAvailableIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileName"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVidStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriorityStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriority"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileEgressVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileForbiddenVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileUntaggedVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileOverwriteTCI"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRulePrecedence"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileVlanRFC3580Mappings"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileMirrorIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileDisablePort"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileGroup2 = etsysPolicyProfileGroup2.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileGroup2.setDescription('A collection of objects providing Policy Profile Creation.')
etsysPolicyRulesGroup5 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 20)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesAccountingEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesPortDisabledList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStorageType"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleUsageList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult1"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleResult2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOperPid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHit"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDynamicProfileAssignmentOverride"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicSyslogStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleDefaultDynamicTrapStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnLink"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearInterval"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearPorts"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsAutoClearOnProfile"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleStatsDroppedNotifications"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogMachineReadableFormat"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogExtendedFormat"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleSylogEveryTime"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleOverwriteTCI"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleMirrorIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyRulesGroup5 = etsysPolicyRulesGroup5.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyRulesGroup5.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles.')
etsysPolicyCapabilitiesGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 21)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyVlanRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCosRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDropRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyForwardRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDynaPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyAdminPIDRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySyslogRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyTrapRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyDisablePortRuleCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicySupportedPortList"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledSupportedRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledEnabledRuleTypes"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyEnabledEgressEnabled"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeByteLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeBitLength"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleAttributeMaxCreatable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleTciOverwriteCapabilities"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRuleMirrorCapabilities"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyCapabilitiesGroup4 = etsysPolicyCapabilitiesGroup4.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyCapabilitiesGroup4.setDescription('An object that indicates the capabilities of the managed entity with respect to Policy Profiles and defines the characteristics of policy rule data by rule type.')
etsysPolicyProfileGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 1, 22)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileMaxEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileNumEntries"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileLastChange"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileTableNextAvailableIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileName"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRowStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVidStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePortVid"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriorityStatus"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfilePriority"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileEgressVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileForbiddenVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileUntaggedVlans"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileOverwriteTCI"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileRulePrecedence"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileVlanRFC3580Mappings"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileMirrorIndex"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileAuditSyslogEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileAuditTrapEnable"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileDisablePort"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileUsageList"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileGroup3 = etsysPolicyProfileGroup3.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileGroup3.setDescription('A collection of objects providing Policy Profile Creation.')
etsysPolicyProfileCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 1)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance = etsysPolicyProfileCompliance.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance.setDescription('The compliance statement for devices that support Policy Profiles. This compliance statement was deprecated to add mandatory support for the etsysPolicyCapabilitiesGroup and conditionally mandatory support for the etsysDevicePolicyProfileGroup.')
etsysPolicyProfileCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 2)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyClassificationGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance2 = etsysPolicyProfileCompliance2.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance2.setDescription('The compliance statement for devices that support Policy Profiles. This compliance state was deprecated to remove the conditional support of the etsysPolicyClassificationGroup, and add support for the etsysPolicyRFC3580MapGroup and the etsysPolicyRulesGroup.')
etsysPolicyProfileCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 3)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance3 = etsysPolicyProfileCompliance3.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance3.setDescription('The compliance statement for devices that support Policy Profiles.')
etsysPolicyProfileCompliance4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 4)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHitNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance4 = etsysPolicyProfileCompliance4.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance4.setDescription('The compliance statement for devices that support Policy Profiles.')
etsysPolicyProfileCompliance5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 5)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesGroup3"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHitNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance5 = etsysPolicyProfileCompliance5.setStatus('deprecated')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance5.setDescription('The compliance statement for devices that support Policy Profiles.')
etsysPolicyProfileCompliance6 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 6)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup3"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesGroup4"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHitNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance6 = etsysPolicyProfileCompliance6.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance6.setDescription('The compliance statement for devices that support Policy Profiles.')
etsysPolicyProfileCompliance7 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 6, 7, 2, 7)).setObjects(("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyProfileGroup3"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPortPolicyProfileGroup2"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyCapabilitiesGroup4"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysStationPolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysInvalidPolicyPolicyGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysDevicePolicyProfileGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRFC3580MapGroup"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulesGroup5"), ("ENTERASYS-POLICY-PROFILE-MIB", "etsysPolicyRulePortHitNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysPolicyProfileCompliance7 = etsysPolicyProfileCompliance7.setStatus('current')
if mibBuilder.loadTexts: etsysPolicyProfileCompliance7.setDescription('The compliance statement for devices that support Policy Profiles.')
mibBuilder.exportSymbols("ENTERASYS-POLICY-PROFILE-MIB", etsysPolicyProfileAuditTrapEnable=etsysPolicyProfileAuditTrapEnable, etsysPolicyRuleResult2=etsysPolicyRuleResult2, etsysPortPolicyProfileGroup2=etsysPortPolicyProfileGroup2, etsysPolicyRuleStatsAutoClearInterval=etsysPolicyRuleStatsAutoClearInterval, etsysPolicyRulesGroup5=etsysPolicyRulesGroup5, etsysPolicyProfileDisablePort=etsysPolicyProfileDisablePort, etsysPortPolicyProfileGroup=etsysPortPolicyProfileGroup, etsysStationIdentifier=etsysStationIdentifier, etsysPolicyDisablePortRuleCapabilities=etsysPolicyDisablePortRuleCapabilities, etsysPolicyDropRuleCapabilities=etsysPolicyDropRuleCapabilities, etsysPolicyRFC3580MapTableDefault=etsysPolicyRFC3580MapTableDefault, etsysPolicyMapNumEntries=etsysPolicyMapNumEntries, etsysPolicyProfileNumEntries=etsysPolicyProfileNumEntries, etsysPolicyRulesPortDisabledList=etsysPolicyRulesPortDisabledList, etsysPolicyRulePortHitNotificationGroup=etsysPolicyRulePortHitNotificationGroup, etsysPolicyRuleRowStatus=etsysPolicyRuleRowStatus, etsysPortPolicyProfileEntry=etsysPortPolicyProfileEntry, PYSNMP_MODULE_ID=etsysPolicyProfileMIB, etsysPolicyClassificationIngressList=etsysPolicyClassificationIngressList, etsysPolicyRuleEntry=etsysPolicyRuleEntry, etsysPolicyMapUnknownPvidPolicy=etsysPolicyMapUnknownPvidPolicy, etsysPolicyRFC3580MapResolveReponseConflict=etsysPolicyRFC3580MapResolveReponseConflict, etsysPolicyTrapRuleCapabilities=etsysPolicyTrapRuleCapabilities, etsysPolicyRulesGroup=etsysPolicyRulesGroup, etsysPolicyProfileUntaggedVlans=etsysPolicyProfileUntaggedVlans, etsysPolicyCapabilitiesGroup=etsysPolicyCapabilitiesGroup, etsysPolicyProfileUsageList=etsysPolicyProfileUsageList, etsysPortPolicyProfileSummaryIndexType=etsysPortPolicyProfileSummaryIndexType, etsysPolicyProfileForbiddenVlans=etsysPolicyProfileForbiddenVlans, etsysPolicyEnabledTableEntry=etsysPolicyEnabledTableEntry, etsysPolicyRFC3580MapGroup=etsysPolicyRFC3580MapGroup, etsysPolicyProfileConformance=etsysPolicyProfileConformance, etsysStationPolicyProfile=etsysStationPolicyProfile, etsysPolicyRuleStatsAutoClearPorts=etsysPolicyRuleStatsAutoClearPorts, etsysPolicyRuleAttributeMaxCreatable=etsysPolicyRuleAttributeMaxCreatable, etsysPolicyRuleResult1=etsysPolicyRuleResult1, etsysPolicyRuleAttributeTable=etsysPolicyRuleAttributeTable, etsysPolicyMapPvidOverRide=etsysPolicyMapPvidOverRide, etsysPolicyProfileVlanRFC3580Mappings=etsysPolicyProfileVlanRFC3580Mappings, etsysPolicyRuleDefaultDynamicSyslogStatus=etsysPolicyRuleDefaultDynamicSyslogStatus, etsysPolicyProfileName=etsysPolicyProfileName, PolicyRFC3580MapRadiusResponseTC=PolicyRFC3580MapRadiusResponseTC, etsysPolicyEnabledSupportedRuleTypes=etsysPolicyEnabledSupportedRuleTypes, etsysPolicyRuleOperPid=etsysPolicyRuleOperPid, etsysPolicyRuleStatsDroppedNotifications=etsysPolicyRuleStatsDroppedNotifications, etsysPolicyMapStartVid=etsysPolicyMapStartVid, etsysPolicyClassification=etsysPolicyClassification, etsysPolicyProfileLastChange=etsysPolicyProfileLastChange, etsysPolicyCapability=etsysPolicyCapability, etsysDevicePolicyProfileGroup=etsysDevicePolicyProfileGroup, etsysPolicyProfileMaxEntries=etsysPolicyProfileMaxEntries, etsysPolicyRulePortHitNotification=etsysPolicyRulePortHitNotification, etsysPolicyProfileGroup2=etsysPolicyProfileGroup2, etsysPolicySyslogRuleCapabilities=etsysPolicySyslogRuleCapabilities, etsysPolicyRuleStatsAutoClearOnLink=etsysPolicyRuleStatsAutoClearOnLink, etsysPolicyRuleMirrorIndex=etsysPolicyRuleMirrorIndex, etsysPolicyRuleMirrorCapabilities=etsysPolicyRuleMirrorCapabilities, etsysPolicyRuleDynamicProfileAssignmentOverride=etsysPolicyRuleDynamicProfileAssignmentOverride, etsysStationPolicyProfilePortID=etsysStationPolicyProfilePortID, etsysStationPolicyProfileGroup=etsysStationPolicyProfileGroup, etsysPolicySupportedPortList=etsysPolicySupportedPortList, etsysPolicyRuleAuditSyslogEnable=etsysPolicyRuleAuditSyslogEnable, etsysPolicyProfileCompliances=etsysPolicyProfileCompliances, etsysPortPolicyProfileSummaryTable=etsysPortPolicyProfileSummaryTable, etsysPolicyMapRowStatus=etsysPolicyMapRowStatus, etsysPolicyProfileGroups=etsysPolicyProfileGroups, etsysPolicyClassificationMaxEntries=etsysPolicyClassificationMaxEntries, etsysPolicyRulesNumEntries=etsysPolicyRulesNumEntries, etsysPolicyRules=etsysPolicyRules, etsysPolicyCapabilitiesGroup3=etsysPolicyCapabilitiesGroup3, etsysPolicyVlanEgress=etsysPolicyVlanEgress, etsysPolicyProfileGroup3=etsysPolicyProfileGroup3, etsysPolicyProfileCompliance2=etsysPolicyProfileCompliance2, etsysPolicyVlanRuleCapabilities=etsysPolicyVlanRuleCapabilities, etsysPolicyRuleSylogExtendedFormat=etsysPolicyRuleSylogExtendedFormat, PolicyRulesSupported=PolicyRulesSupported, etsysPolicyRuleAttributeByteLength=etsysPolicyRuleAttributeByteLength, etsysPolicyProfileGroup=etsysPolicyProfileGroup, etsysPolicyProfileCompliance3=etsysPolicyProfileCompliance3, etsysPolicyRuleStorageType=etsysPolicyRuleStorageType, etsysPolicyRFC3580MapLastChange=etsysPolicyRFC3580MapLastChange, etsysPolicyProfileMirrorIndex=etsysPolicyProfileMirrorIndex, etsysPolicyRulePortHit=etsysPolicyRulePortHit, etsysPolicyNotifications=etsysPolicyNotifications, etsysPolicyRFC3580MapTable=etsysPolicyRFC3580MapTable, etsysPolicyRuleDefaultDynamicTrapStatus=etsysPolicyRuleDefaultDynamicTrapStatus, etsysPolicyProfileEgressVlans=etsysPolicyProfileEgressVlans, etsysPolicyProfilePortVid=etsysPolicyProfilePortVid, etsysPolicyRFC3580MapEntry=etsysPolicyRFC3580MapEntry, etsysPolicyProfileOverwriteTCI=etsysPolicyProfileOverwriteTCI, etsysPolicyProfileEntry=etsysPolicyProfileEntry, etsysPortPolicyProfileSummaryAdminID=etsysPortPolicyProfileSummaryAdminID, etsysPolicyMap=etsysPolicyMap, etsysPolicyProfile=etsysPolicyProfile, PolicyClassificationRuleType=PolicyClassificationRuleType, etsysPolicyRuleAttributeTableEntry=etsysPolicyRuleAttributeTableEntry, etsysPolicyRuleTciOverwriteCapabilities=etsysPolicyRuleTciOverwriteCapabilities, etsysPolicyEnabledTable=etsysPolicyEnabledTable, etsysPolicyRuleTable=etsysPolicyRuleTable, etsysPortPolicyProfile=etsysPortPolicyProfile, etsysPolicyProfileTableNextAvailableIndex=etsysPolicyProfileTableNextAvailableIndex, etsysPolicyClassificationOID=etsysPolicyClassificationOID, etsysPolicyProfileRulePrecedence=etsysPolicyProfileRulePrecedence, etsysPolicyRulePrefixBits=etsysPolicyRulePrefixBits, etsysDevicePolicyProfileDefault=etsysDevicePolicyProfileDefault, etsysPolicyMapMaxEntries=etsysPolicyMapMaxEntries, etsysInvalidPolicyAction=etsysInvalidPolicyAction, etsysPolicyClassificationLastChange=etsysPolicyClassificationLastChange, etsysPolicyMapIndex=etsysPolicyMapIndex, etsysPolicyClassificationGroup=etsysPolicyClassificationGroup, etsysInvalidPolicyCount=etsysInvalidPolicyCount, etsysPolicyRulePortType=etsysPolicyRulePortType, etsysPolicyMapGroup=etsysPolicyMapGroup, etsysPortPolicyProfileLastChange=etsysPortPolicyProfileLastChange, etsysPolicyRulesGroup2=etsysPolicyRulesGroup2, etsysPolicyEnabledEgressEnabled=etsysPolicyEnabledEgressEnabled, etsysPolicyRulePort=etsysPolicyRulePort, PortPolicyProfileIndexTypeTC=PortPolicyProfileIndexTypeTC, etsysPolicyRuleType=etsysPolicyRuleType, etsysPolicyRulesGroup4=etsysPolicyRulesGroup4, etsysPolicyCapabilitiesGroup4=etsysPolicyCapabilitiesGroup4, etsysPolicyProfileCompliance5=etsysPolicyProfileCompliance5, etsysPolicyRFC3580MapVlanId=etsysPolicyRFC3580MapVlanId, etsysStationPolicyProfilePortType=etsysStationPolicyProfilePortType, etsysPolicyRulesGroup3=etsysPolicyRulesGroup3, etsysPolicyRuleSylogEveryTime=etsysPolicyRuleSylogEveryTime, etsysPolicyClassificationRowStatus=etsysPolicyClassificationRowStatus, etsysPortPolicyProfileSummaryOperID=etsysPortPolicyProfileSummaryOperID, etsysPolicyProfilePriorityStatus=etsysPolicyProfilePriorityStatus, etsysPolicyProfileMIB=etsysPolicyProfileMIB, etsysPolicyRFC3580MapInvalidMapping=etsysPolicyRFC3580MapInvalidMapping, etsysPolicyRFC3580Map=etsysPolicyRFC3580Map, etsysPolicyRuleOverwriteTCI=etsysPolicyRuleOverwriteTCI, etsysPolicyClassificationIndex=etsysPolicyClassificationIndex, etsysPolicyCapabilitiesGroup2=etsysPolicyCapabilitiesGroup2, etsysPolicyProfileCompliance7=etsysPolicyProfileCompliance7, etsysStationPolicyProfileEntry=etsysStationPolicyProfileEntry, etsysPolicyRuleProfileIndex=etsysPolicyRuleProfileIndex, etsysPortPolicyProfileAdminID=etsysPortPolicyProfileAdminID, etsysStationPolicyProfileIndex=etsysStationPolicyProfileIndex, etsysPolicyRulePortTable=etsysPolicyRulePortTable, etsysPolicyForwardRuleCapabilities=etsysPolicyForwardRuleCapabilities, etsysPolicyProfileIndex=etsysPolicyProfileIndex, etsysPolicyRuleDisablePort=etsysPolicyRuleDisablePort, etsysPolicyRuleAuditTrapEnable=etsysPolicyRuleAuditTrapEnable, etsysStationPolicyProfileNumEntries=etsysStationPolicyProfileNumEntries, etsysPolicyMapEndVid=etsysPolicyMapEndVid, etsysPolicyClassificationTable=etsysPolicyClassificationTable, etsysStationPolicyProfileLastChange=etsysStationPolicyProfileLastChange, etsysPolicyClassificationNumEntries=etsysPolicyClassificationNumEntries, etsysPolicyProfileCompliance4=etsysPolicyProfileCompliance4, etsysPolicyProfilePriority=etsysPolicyProfilePriority, etsysStationIdentifierType=etsysStationIdentifierType, etsysPolicyMapLastChange=etsysPolicyMapLastChange, etsysPolicyMapTable=etsysPolicyMapTable, etsysPolicyProfileCompliance6=etsysPolicyProfileCompliance6, etsysStationPolicyProfileTable=etsysStationPolicyProfileTable, etsysPolicyRulePortEntry=etsysPolicyRulePortEntry, etsysPolicyMapPolicyIndex=etsysPolicyMapPolicyIndex, etsysPolicyRuleSylogMachineReadableFormat=etsysPolicyRuleSylogMachineReadableFormat, etsysInvalidPolicyPolicyGroup=etsysInvalidPolicyPolicyGroup, etsysPolicyProfileAuditSyslogEnable=etsysPolicyProfileAuditSyslogEnable, etsysPolicyProfileCompliance=etsysPolicyProfileCompliance, etsysPolicyRuleData=etsysPolicyRuleData, TriStateStatus=TriStateStatus, etsysPolicyProfileTable=etsysPolicyProfileTable, etsysPolicyRuleUsageList=etsysPolicyRuleUsageList, etsysPolicyRuleAttributeBitLength=etsysPolicyRuleAttributeBitLength, etsysPolicyMapEntry=etsysPolicyMapEntry, etsysPolicyProfileRowStatus=etsysPolicyProfileRowStatus, etsysDevicePolicyProfile=etsysDevicePolicyProfile, etsysStationPolicyProfileMaxEntries=etsysStationPolicyProfileMaxEntries, etsysPolicyRulesAccountingEnable=etsysPolicyRulesAccountingEnable, etsysInvalidPolicyPolicy=etsysInvalidPolicyPolicy, etsysPolicyClassificationEntry=etsysPolicyClassificationEntry, PolicyProfileIDTC=PolicyProfileIDTC, etsysPolicyRulesLastChange=etsysPolicyRulesLastChange, etsysPolicyCapabilities=etsysPolicyCapabilities, etsysPortPolicyProfileTable=etsysPortPolicyProfileTable, etsysPortPolicyProfileSummaryEntry=etsysPortPolicyProfileSummaryEntry, etsysPolicyRulesMaxEntries=etsysPolicyRulesMaxEntries, etsysPolicyRuleStatsAutoClearOnProfile=etsysPolicyRuleStatsAutoClearOnProfile, etsysPortPolicyProfileOperID=etsysPortPolicyProfileOperID, etsysPolicyProfilePortVidStatus=etsysPolicyProfilePortVidStatus, etsysPortPolicyProfileIndex=etsysPortPolicyProfileIndex, etsysPortPolicyProfileIndexType=etsysPortPolicyProfileIndexType, etsysPolicyEnabledEnabledRuleTypes=etsysPolicyEnabledEnabledRuleTypes, VlanList=VlanList, etsysPortPolicyProfileSummaryDynamicID=etsysPortPolicyProfileSummaryDynamicID, etsysStationPolicyProfileOperID=etsysStationPolicyProfileOperID, etsysPolicyAdminPIDRuleCapabilities=etsysPolicyAdminPIDRuleCapabilities, etsysPolicyRFC3580MapPolicyIndex=etsysPolicyRFC3580MapPolicyIndex, etsysPolicyDynaPIDRuleCapabilities=etsysPolicyDynaPIDRuleCapabilities, etsysPolicyCosRuleCapabilities=etsysPolicyCosRuleCapabilities)
|
# -*- coding: utf-8 -*-
"""Top-level package for Scopes."""
__author__ = """Louis Garman"""
__email__ = 'louisgarman@gmail.com'
__version__ = '0.1.1'
|
"""
def generate_list_books(filename):
book_list = []
file_in = open(filename, encoding='utf-8', errors='replace')
file_in.readline()
for line in file_in:
line = line.strip().split(",")
line[2] = float(line[2])
line[3] = int(line[3])
line[4] = int(line[4])
line[5] = int(line[5])
book_list.append(line)
return book_list
#QUESTION #1
def print_books(list_of_books):
for book in list_of_books:
print(f' {book[0][0:30]:<30} by {book[1][0:20]:<20} {str(book[5]):<4} rated {str(book[2])[0:3]}')
#QUESTION #2
def print_detailed_book(list_of_books):
format = '-'
for book in list_of_books:
print(f' {book[0]}\n'
f' by: {book[1]}\n'
f' {book[5]}\n'
f' {format * len(book[0])}\n'
f' ${book[4]:.2f}\n\n'
f' {book[6]}\n'
f' rated {book[2]} for {book[3]} reviews\n\n\n')
def main():
main_book_list = generate_list_books("amazon_bestseller_books.csv")
#print(main_book_list[:10])
print_books(main_book_list)
print_detailed_book(main_book_list)
main()
"""
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
В данном упражнении вы должны написать программу, которая будет находить самое
длинное слово в файле. В качестве результата программа
должна выводить на экран длину самого длинного слова и все слова такой длины. Для
простоты принимайте за значимые буквы любые непробельные символы, включая цифры и
знаки препинания.
"""
if __name__ == "__main__":
with open("ind2.txt", "r", encoding='utf-8') as f:
words = []
count = 0
file = (f.read()).split(' ')
for w in file:
length = len(w)
if length > count:
count = length
for w in file:
if len(w) == count:
words.append(w)
print('Максимальная длина слова в файле: ', count)
print('Самые длинные слова в файле:', " ".join(words))
|
#First Example - try changing the value of phone_balance
phone_balance = 10
bank_balance = 50
if phone_balance < 10:
phone_balance += 10
bank_balance -= 10
print(phone_balance)
print(bank_balance)
#Second Example - try changing the value of number
number = 145
if number % 2 == 0:
print("Number " + str(number) + " is even.")
else:
print("Number " + str(number) + " is odd.")
#Third Example - try to change the value of age
age = 35
# Here are the age limits for bus fares
free_up_to_age = 4
child_up_to_age = 18
senior_from_age = 65
# These lines determine the bus fare prices
concession_ticket = 1.25
adult_ticket = 2.50
# Here is the logic for bus fare prices
if age <= free_up_to_age:
ticket_price = 0
elif age <= child_up_to_age:
ticket_price = concession_ticket
elif age >= senior_from_age:
ticket_price = concession_ticket
else:
ticket_price = adult_ticket
message = "Somebody who is {} years old will pay ${} to ride the bus.".format(age, ticket_price)
print(message)
"""
Practice: Which Prize
Write an if statement that lets a competitor know which of these prizes they won based on the number of points they scored, which is stored in the integer variable points.
Points Prize
1 - 50 wooden rabbit
51 - 150 no prize
151 - 180 wafer-thin mint
181 - 200 penguin
All of the lower and upper bounds here are inclusive, and points can only take on positive integer values up to 200.
In your if statement, assign the result variable to a string holding the appropriate message based on the value of points. If they've won a prize, the message should state "Congratulations! You won a [prize name]!" with the prize name. If there's no prize, the message should state "Oh dear, no prize this time."
Note: Feel free to test run your code with other inputs, but when you submit your answer, only use the original input of points = 174. You can hide your other inputs by commenting them out.
"""
points = 174
if points <= 50:
result = 'Congratulations! You won a wooden rabbit!'
elif points <= 150:
result = 'Oh dear, no prize this time.'
elif points <= 180:
result = 'Congratulations! You won a wafer-thin mint!'
else:
result = 'Congratulations! You won a penguin!'
print(result)
"""We use <= instead of the < operator, since it was stated that the upper bound is inclusive. Notice that in each condition, we check if points is in a prize bracket by checking if points is less than or equal to the upper bound; we didn't have to check if it was greater than the lower bound. Let's see why this is the case.
When points = 174, it first checks if points <= 50, which evaluates to False. We don't have to check if it is also greater than 0, since it is stated in the problem that points will always be a positive integer up to 200.
Since the first condition evaluates to False, it moves on to check the next condition, points <= 150. We don't need to check if it is also greater than 50 here! We already know this is the case because the first condition has to have evaluated to False in order to get to this point. If we know points <= 50 is False, then points > 50 must be True!
Finally, we check if points <= 180, which evaluates to True. We now know that points is in the 151 - 180 bracket.
The last prize bracket, 181-200, is caught in the else clause, since there is no other possible value of the prize after checking the previous conditions.
"""
"""Quiz: Guess My Number
You decide you want to play a game where you are hiding a number from someone. Store this number in a variable called 'answer'. Another user provides a number called 'guess'. By comparing guess to answer, you inform the user if their guess is too high or too low.
Fill in the conditionals below to inform the user about how their guess compares to the answer.
"""
answer = 35
guess = 30 # just a sample answer and guess
if guess < answer:
result = 'Oops! Your guess was too low.'
elif guess > answer:
result = 'Oops! Your guess was too high.'
elif guess == answer:
result = 'Nice! Your guess matched the answer!'
print(result)
"""Quiz: Tax Purchase
Depending on where an individual is from we need to tax them appropriately. The states of CA, MN, and NY have taxes of 7.5%, 9.5%, and 8.9% respectively. Use this information to take the amount of a purchase and the corresponding state to assure that they are taxed by the right amount.
"""
state = 'CA'
purchase_amount = 20.00 # a sample state and purchase amount
if state == 'CA':
tax_amount = .075
total_cost = purchase_amount*(1+tax_amount)
result = "Since you're from {}, your total cost is {}.".format(state, total_cost)
elif state == 'MN':
tax_amount = .095
total_cost = purchase_amount*(1+tax_amount)
result = "Since you're from {}, your total cost is {}.".format(state, total_cost)
elif state == 'NY':
tax_amount = .089
total_cost = purchase_amount*(1+tax_amount)
result = "Since you're from {}, your total cost is {}.".format(state, total_cost)
print(result)
|
#crie um programa que leia o nome de uma pessoa e diga
#se ela tem "SILVA" no nome.
n=str(input("Digite o seu nome completo: ")).strip()
n=n[0:].upper().count("SILVA")
print(n)
n=str(input("Digite o seu nome completo: ")).strip()
n=n.lower()
print("Seu nome tem \"Silva\"? {}".format("silva" in n))
n=str(input("Digite o seu nome completo: ")).strip()
print("Seu nome tem \"Silva\"? {}".format("silva" in n.lower()))
|
#
# MIT License
#
# Copyright (c) 2020 Pablo Rodriguez Nava, @pablintino
#
# 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.
#
class BraceMessage(object):
def __init__(self, fmt, *args, **kwargs):
self.fmt = fmt
self.args = args
self.kwargs = kwargs
def __str__(self):
return self.fmt.format(*self.args, **self.kwargs)
class CaseInsensitiveDict(dict):
@classmethod
def _k(cls, key):
return key.lower() if isinstance(key, str) else key
def __init__(self, *args, **kwargs):
super(CaseInsensitiveDict, self).__init__(*args, **kwargs)
self._convert_keys()
def __getitem__(self, key):
return super(CaseInsensitiveDict, self).__getitem__(self.__class__._k(key))
def __setitem__(self, key, value):
super(CaseInsensitiveDict, self).__setitem__(self.__class__._k(key), value)
def __delitem__(self, key):
return super(CaseInsensitiveDict, self).__delitem__(self.__class__._k(key))
def __contains__(self, key):
return super(CaseInsensitiveDict, self).__contains__(self.__class__._k(key))
def pop(self, key, *args, **kwargs):
return super(CaseInsensitiveDict, self).pop(self.__class__._k(key), *args, **kwargs)
def get(self, key, *args, **kwargs):
return super(CaseInsensitiveDict, self).get(self.__class__._k(key), *args, **kwargs)
def setdefault(self, key, *args, **kwargs):
return super(CaseInsensitiveDict, self).setdefault(self.__class__._k(key), *args, **kwargs)
def update(self, E={}, **F):
super(CaseInsensitiveDict, self).update(self.__class__(E))
super(CaseInsensitiveDict, self).update(self.__class__(**F))
def _convert_keys(self):
for k in list(self.keys()):
v = super(CaseInsensitiveDict, self).pop(k)
self.__setitem__(k, v)
def is_float(value):
try:
float(value)
return True
except ValueError:
return False
def is_int(x):
try:
a = float(x)
b = int(a)
except ValueError:
return False
else:
return a == b
|
{
"targets": [
{
"target_name": "tree_sitter_hack_binding",
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src"
],
"sources": [
"src/parser.c",
"bindings/node/binding.cc",
"src/scanner.cc"
],
"cflags_c": [
"-std=c99",
"-Wno-trigraphs"
],
"xcode_settings": {
# Augmented assignment coalesce ??= looks like a C trigraph. Ignore trigraphs.
"OTHER_CFLAGS": [
"-Wno-trigraphs"
]
}
}
]
}
|
# -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
|
# Day 2: Compound Event Probability
__author__ = "Sanju Sci"
__email__ = "sanju.sci9@gmail.com"
__copyright__ = "Copyright 2019"
"""
Objective
In this challenge, we practice calculating the probability of a compound
event. We recommend you review today's Probability Tutorial before
attempting this challenge.
Task
There are 3 urns labeled X, Y, and Z.
Urn X contains 4 red balls and 3 black balls.
Urn Y contains 5 red balls and 4 black balls.
Urn Z contains 4 red balls and 4 black balls.
One ball is drawn from each of the 3 urns. What is the probability that,
of the 3 balls drawn, 2 are red and 1 is black?
10 / 63
2 / 7
17 / 42 √
31 / 126
"""
|
print(f'{(x := "awesome")!r:20}', x)
class A:
locals = 555
print(f'{(y := 666)}')
print(y)
print(f'''L1 -> {f"""L2 -> {f'L3 -> {f"L4 -> {(z := chr(77))!r} <- L4"} <- L3'} <- L2"""} <- L1''')
print(z)
print(f'see -> {"header " + f"{(w := chr(88))}" + " footer"} <- see')
print(w)
print(locals)
print(globals().get('y'))
print(globals().get('z'))
print(globals().get('w'))
print(callable(locals))
|
"""Module to store EnforceTyping exceptions."""
class EnforcedTypingError(TypeError):
"""Class to raise errors relating to static typing decorator."""
|
#! /usr/bin/python
# Filename: beepExec.py by Geoffrey Sessums
# Purpose:
# Provides functions that execute BEEP source code.
# Usage:
# python3 beepDriver.py beepInput.txt
# python3 beepDriver.py beepInput.txt -v
# Input:
# lineM - array of lines read from BEEP source code.
# labelD - dictionary containing label names (keys) and line numbers (values)
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# switch - optional flag indicating verbose printing for debugging
# Output:
# In defalut mode (i.e. without optional -v) prints BEEP print commands
# In verbose mode prints every line executed with corresponding line numbers
# Prints the following exceptions:
# TooFewOperands – the various operations were given too few operands
# (e.g., only one operand for a greater than)
# VarNotDefined – a referenced variable is not defined
# LabelNotDefined – a referenced label is not defined
# InvalidExpression – other problems with expressions such as unknown
# operator
# InvalidValueType – an operation expecting an INT had a value which
# was of the wrong type
class TooFewOperands(Exception):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
class VarNotDefined(Exception):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
class LabelNotDefined(Exception):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
class InvalidExpression(Exception):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
class InvalidValueType(Exception):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
# Function: execute(lineM, labelD, varTypeD, varValueD, switch)
# Purpose:
# Executes BEEP soure code
# Parameters:
# lineM - array of lines read from BEEP source code.
# labelD - dictionary containing label names (keys) and line numbers (values)
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# switch - optional flag indicating verbose printing for debugging
# Returns:
# N/A
def execute(lineM, labelD, varTypeD, varValueD, switch):
# Execute BEEP source code
print("execution begins...")
lineNum = 0 # current line executed
counter = 0 # total of lines executed
# Loop through lineM containing lines of BEEP source code
while lineNum < len(lineM):
counter = counter + 1
# Tokenize input line
tokenM = lineM[lineNum].split()
# Limit line execution to 5,000
if (counter + 1) > 5000:
print("***Error: an infinite loop was most likely encountered")
break
# Print line number and line currently executing
if switch == "-v":
print("executing line %d: %s" % (lineNum + 1, lineM[lineNum]))
# If token array is empty (blank line), then skip it
if tokenM == []:
lineNum = lineNum + 1
continue
token = tokenM[0]
# If the first token is a label, then process following statement
if token[-1] == ':':
token = tokenM[1]
tokenM = tokenM[1:]
#print(token)
#print(tokenM)
try:
# Perform ASSIGN statement
if token == "ASSIGN":
# get variable name
varNm = tokenM[1]
# get expression
exprM = tokenM[2:]
execAssign(varNm, exprM, varTypeD, varValueD)
# Process IF statement
if token.upper() == "IF":
# get expression
exprM = tokenM[1:-1]
# get label which is the always last element of tokenM
label = tokenM[-1]
lineNum = execIf(exprM, label, labelD, varTypeD, varValueD, lineNum)
continue
# Process GOTO statement
if token == "GOTO":
# get label
label = tokenM[1]
lineNum = execGoTo(label, labelD)
continue
# Get PRINT statement
if token == "PRINT":
# pass varLiteral1 varLiteral2 ... varLiteralN
execPrint(tokenM[1:], varTypeD, varValueD)
except(InvalidValueType, TooFewOperands, VarNotDefined, LabelNotDefined, InvalidExpression) as e:
print ("*** line %d error detected ***" % (lineNum+1))
print("%-10s %d *** %s ***" % (" ", lineNum+1, str(e.args[1])))
break
except Exception as e:
print("*** line %d error detected ***" % (lineNum+1))
print(e)
break
except:
print("*** line %d error detected ***" % (lineNum+1))
traceback.print_exc()
break
lineNum = lineNum + 1
# Print total number of lines executed
print("execution ends, %d lines executed" % (counter))
# Function: execAssign
# Purpose:
# Assigns the value of the expression to the specified variable which must
# have been declared.
# Parameters:
# varNm- name of variable
# exprM - list of expression elements which is one of:
# varLiteral return the string value (without the ") for a string
# literal, the value of a numeric constant or return the
# value of a variable
# * varLiteral varNumber return a string with varLiteral replicated varNumber times
# + varNumber1 varNumber2 return the sum of the values
# - varNumber1 varNumber2 return the difference of the values (varNumber1 minus varNumber2)
# > varNumber1 varNumber2 return True if varNumber1 > varNumber2; this is a numeric comparison
# >= varNumber1 varNumber2 return True if varNumber1 >= varNumber2; this is a numeric comparison
# & varLiteral1 varLiteral2 return the concatenation of the two strings
#
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# Returns:
# N/A
def execAssign(varNm, exprM, varTypeD, varValueD):
# Is varNm defined?
if varTypeD.get(varNm, "NF") == "NF":
raise VarNotDefined("variable %s is not defined" % (varNm))
varValueD[varNm] = evalExpr(exprM, varTypeD, varValueD)
# Function: execIf
# Purpose:
# Executes BEEP if statements
# Parameters:
# exprM - list of expression elements which is one of:
# varLiteral return the string value (without the ") for a string
# literal, the value of a numeric constant or return the
# value of a variable
# * varLiteral varNumber return a string with varLiteral replicated varNumber times
# + varNumber1 varNumber2 return the sum of the values
# - varNumber1 varNumber2 return the difference of the values (varNumber1 minus varNumber2)
# > varNumber1 varNumber2 return True if varNumber1 > varNumber2; this is a numeric comparison
# >= varNumber1 varNumber2 return True if varNumber1 >= varNumber2; this is a numeric comparison
# & varLiteral1 varLiteral2 return the concatenation of the two strings
# label - label name
# label - dictionary containing label names (keys) and line numbers (values)
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# lineNum - current line of execution
# Returns:
# Line number of a label if jump is necessary
# Current line number if jump is unnecessary
def execIf(exprM, label, labelD, varTypeD, varValueD, lineNum):
boolean = evalExpr(exprM, varTypeD, varValueD)
# If condition is true perform a goto
if boolean == True:
return execGoTo(label, labelD)
return lineNum + 1
# Function: execPrint
# Purpose:
# Execute print statements
# Parameters:
# tokenM - list containing line tokens
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# Returns:
# N/A
def execPrint(tokenM, varTypeD, varValueD):
for token in tokenM:
var = evalVar(token, varTypeD, varValueD)
print(var, end=" ")
print()
# Function: execGoTo
# Purpose:
# Execute goto statements
# Parameters:
# label - label name
# label - dictionary containing label names (keys) and line numbers (values)
# Returns:
# Line number where the label is located
def execGoTo(label, labelD):
if labelD.get(label, "NF") == "NF":
raise LabelNotDefined("label '%s' is not defined" % (label))
return labelD[label] - 1
# Function: evalExpr
# Purpose:
# Evaluates expressions
# Parameters:
# exprM - list of expression elements which is one of:
# varLiteral return the string value (without the ") for a string
# literal, the value of a numeric constant or return the
# value of a variable
# * varLiteral varNumber return a string with varLiteral replicated varNumber times
# + varNumber1 varNumber2 return the sum of the values
# - varNumber1 varNumber2 return the difference of the values (varNumber1 minus varNumber2)
# > varNumber1 varNumber2 return True if varNumber1 > varNumber2; this is a numeric comparison
# >= varNumber1 varNumber2 return True if varNumber1 >= varNumber2; this is a numeric comparison
# & varLiteral1 varLiteral2 return the concatenation of the two strings
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# Returns:
# Evaluated value of expression
def evalExpr(exprM, varTypeD, varValueD):
# Evaluate single item expression
if len(exprM) == 1:
return evalVar(exprM[0], varTypeD, varValueD)
# Evaluate three item expressions by first getting operands
elif len(exprM) != 3:
raise TooFewOperands("expression '%s' has too few operands" % (exprM))
op1 = evalVar(exprM[1], varTypeD, varValueD)
op2 = evalVar(exprM[2], varTypeD, varValueD)
# Evaluate prefixed operator
if exprM[0] == '>':
return evalGreater(op1, op2)
if exprM[0] == ">=":
return evalGreaterEq(op1, op2)
if exprM[0] == '&':
return evalCat(op1, op2)
if exprM[0] == '*':
return evalRep(op1, op2)
if exprM[0] == '+':
return evalAdd(op1, op2)
if exprM[0] == '-':
return evalSub(op1, op2)
else:
raise InvalidExpression("unknown operator: %s " % (exprM[0]))
# Function: evalGreater
# Purpose:
# Evaluate a greater than expression
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# True if op1 is greater than op2
# False if op1 is NOT greater than op2
def evalGreater(op1, op2):
try:
iVal1 = int(op1)
except:
raise InvalidValueType("'%s' is not numeric" % (op1))
try:
iVal2 = int(op2)
except:
raise InvalidValueType("'%s' is not numeric" % (op2))
return iVal1 > iVal2
# Function: evalGreaterEq
# Purpose:
# Evaluate a greater than or equal expression
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# True if op1 is greater than or equal to op2
# False if op1 is NOT greater than or equal to op2
def evalGreaterEq(op1, op2):
try:
iVal1 = int(op1)
except:
raise InvalidValueType("'%s' is not numeric" % (op1))
try:
iVal2 = int(op2)
except:
raise InvalidValueType("'%s' is not numeric" % (op2))
return iVal1 >= iVal2
# Function: evalCat
# Purpose:
# Evaluate concantenation statement
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# The concatenation of two strings
def evalCat(op1, op2):
try:
str1 = str(op1)
except:
raise InvalidValueType("Operand is not a string")
try:
str2 = str(op2)
except:
raise InvalidValueType("Operand is not a string")
return str1 + str2
# Function: evalRep
# Purpose:
# Preforms string replication
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# Replicated string
def evalRep(op1, op2):
try:
str1 = str(op1)
except:
raise InvalidValueType("Operand is not a string")
try:
iVal = int(op2)
except:
raise InvalidValueType("'%s' is not numeric" % (op2))
return str1 * iVal
# Function: evalAdd
# Purpose:
# Performs addition of two operands
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# Sum of two operands
def evalAdd(op1, op2):
try:
iVal1 = int(op1)
except:
raise InvalidValueType("'%s' is not numeric" % (op1))
try:
iVal2 = int(op2)
except:
raise InvalidValueType("'%s' is not numeric" % (op2))
return iVal1 + iVal2
# Function: evalSub
# Purpose:
# Performs subtraction of two operands
# Parameters:
# op1 - first operand
# op2 - second operand
# Returns:
# Difference of two operands
def evalSub(op1, op2):
try:
iVal1 = int(op1)
except:
raise InvalidValueType("'%s' is not numeric" % (op1))
try:
iVal2 = int(op2)
except:
raise InvalidValueType("'%s' is not numeric" % (op2))
return iVal1 - iVal2
# Function: evalVar
# Purpose:
# Evaluate a single variable
# Parameters:
# op - operand is a variable
# varTypeD - dictionary containing variable names (keys) and types (values)
# varValueD - dictionary containing variable names (keys) and values (values)
# Returns:
# Value of the variable
def evalVar(op, varTypeD, varValueD):
# Return a stripped string
if op[0] == '"':
return op[1:-1]
# Return decimal
if op.isdecimal():
return op
value = varValueD.get(op, "NF")
# Return evaluated variable if defined
if value == "NF":
raise VarNotDefined("variable %s not defined" % (op))
return value
|
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def insertionSortList(self, head: ListNode) -> ListNode:
cur = head
node_list = []
while cur is not None:
node_list.append(cur)
cur = cur.next
for index in range(0, len(node_list)):
j = index
target = node_list[index].val
while j >= 0 and target < node_list[j - 1].val:
node_list[j].val = node_list[j - 1].val
j -= 1
node_list[j].val = target
node_list.clear()
return head
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.