content
stringlengths 7
1.05M
|
|---|
material = []
for i in range(int(input())):
material.append(int(input()))
srted = sorted(material)
if srted == material:
print("YES")
else:
print("NO")
|
PALETTE = (
'#51A351',
'#f89406',
'#7D1935',
'#4A96AD',
'#DE1B1B',
'#E9E581',
'#A2AB58',
'#FFE658',
'#118C4E',
'#193D4F',
)
LABELS = {
'cpu_user': 'CPU time spent in user mode, %',
'cpu_nice': 'CPU time spent in user mode with low priority (nice), %',
'cpu_sys': 'CPU time spent in system mode, %',
'cpu_idle': 'CPU time spent in the idle task, %',
'cpu_iowait': 'CPU time waiting for I/O to complete, %',
'mem_used': 'Total RAM in use (doesn\'t include buffers and cache)',
'mem_free': 'Amount of free RAM',
'mem_buff': 'Relatively temporary storage for raw disk blocks',
'mem_cache': 'In-memory cache for files read from the disk',
}
|
def alphabet_war(reinforces, airstrikes):
n=len(reinforces[0])
r=[]
for _ in range(n):
r.append([])
for reinforce in reinforces:
for i in range(n):
r[i].append(reinforce[i])
a=[]
for i in range(n):
a.append(r[i].pop(0))
for airstrike in airstrikes:
st=set()
for i in range(len(airstrike)):
if airstrike[i]=='*':
st.add(i)
if i>0: st.add(i-1)
if i<n-1: st.add(i+1)
for i in st:
if r[i]:
a[i]=r[i].pop(0)
else:
a[i]='_'
return ''.join(a)
|
class UnknownLogKind(ValueError):
"""Exception thrown when an unknown ``kind`` is passed."""
def __init__(self, value):
"""
Construct the exception.
:param value: The invalid kind value passed in.
"""
message = "Unknown log entry kind %r" % value
super(UnknownLogKind, self).__init__(message)
class NoExtraField(ValueError):
pass
|
'''
La función muestra como el código se ejecuta, qué espera y cuál es su salida. En caso de que
no coincida, la prueba fallará
'''
def multiply(a, b):
"""
>>> multiply(4, 3)
12
>>> multiply('a', 3)
'aaa'
"""
return a * b
|
# encoding: utf-8
"""
ordereddict.py
Created by Thomas Mangin on 2013-03-18.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
# ================================================================== OrderedDict
# This is only an hack until we drop support for python version < 2.7
class OrderedDict(dict):
def __init__(self, args):
dict.__init__(self, args)
self._order = [_ for _, __ in args]
def __setitem__(self, key, value):
dict.__setitem__(self, key, value)
if key in self._order:
self._order.remove(key)
self._order.append(key)
def __delitem__(self, key):
dict.__delitem__(self, key)
self._order.remove(key)
def keys(self):
return self._order
def __iter__(self):
return self.__next__()
def __next__(self):
for order in self._order:
yield order
if __name__ == '__main__':
d = OrderedDict(((10, 'ten'), (8, 'eight'), (6, 'six'), (4, 'four'), (2, 'two'), (0, 'boom')))
for k in d:
print(k)
|
# > \brief \b DROTMG
#
# =========== DOCUMENTATION ===========
#
# Online html documentation available at
# http://www.netlib.org/lapack/explore-html/
#
# Definition:
# ===========
#
# def DROTMG(DD1,DD2,DX1,DY1,DPARAM)
#
# .. Scalar Arguments ..
# DOUBLE PRECISION DD1,DD2,DX1,DY1
# ..
# .. Array Arguments ..
# DOUBLE PRECISION DPARAM(5)
# ..
#
#
# > \par Purpose:
# =============
# >
# > \verbatim
# >
# > CONSTRUCT THE MODIFIED GIVENS TRANSFORMATION MATRIX H WHICH ZEROS
# > THE SECOND COMPONENT OF THE 2-VECTOR (sqrt(DD1)*DX1,sqrt(DD2)*> DY2)**T.
# > WITH DPARAM(1)=DFLAG, H HAS ONE OF THE FOLLOWING FORMS..
# >
# > DFLAG=-1.D0 DFLAG=0.D0 DFLAG=1.D0 DFLAG=-2.D0
# >
# > (DH11 DH12) (1.D0 DH12) (DH11 1.D0) (1.D0 0.D0)
# > H=( ) ( ) ( ) ( )
# > (DH21 DH22), (DH21 1.D0), (-1.D0 DH22), (0.D0 1.D0).
# > LOCATIONS 2-4 OF DPARAM CONTAIN DH11, DH21, DH12, AND DH22
# > RESPECTIVELY. (VALUES OF 1.D0, -1.D0, OR 0.D0 IMPLIED BY THE
# > VALUE OF DPARAM(1) ARE NOT STORED IN DPARAM.)
# >
# > THE VALUES OF GAMSQ AND RGAMSQ SET IN THE DATA STATEMENT MAY BE
# > INEXACT. THIS IS OK AS THEY ARE ONLY USED FOR TESTING THE SIZE
# > OF DD1 AND DD2. ALL ACTUAL SCALING OF DATA IS DONE USING GAM.
# >
# > \endverbatim
#
# Arguments:
# ==========
#
# > \param[in,out] DD1
# > \verbatim
# > DD1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in,out] DD2
# > \verbatim
# > DD2 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in,out] DX1
# > \verbatim
# > DX1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in] DY1
# > \verbatim
# > DY1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[out] DPARAM
# > \verbatim
# > DPARAM is DOUBLE PRECISION array, dimension (5)
# > DPARAM(1)=DFLAG
# > DPARAM(2)=DH11
# > DPARAM(3)=DH21
# > DPARAM(4)=DH12
# > DPARAM(5)=DH22
# > \endverbatim
#
# Authors:
# ========
#
# > \author Univ. of Tennessee
# > \author Univ. of California Berkeley
# > \author Univ. of Colorado Denver
# > \author NAG Ltd.
#
# > \date November 2017
#
# > \ingroup double_blas_level1
#
# =====================================================================
def drotmg(DD1, DD2, DX1, DY1, DPARAM):
#
# -- Reference BLAS level1 routine (version 3.8.0) --
# -- Reference BLAS is a software package provided by Univ. of Tennessee, --
# -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
# November 2017
#
# .. Scalar Arguments ..
# DOUBLE PRECISION DD1,DD2,DX1,DY1
# ..
# .. Array Arguments ..
# DOUBLE PRECISION DPARAM(5)
# ..
#
# =====================================================================
#
# .. Local Scalars ..
# DOUBLE PRECISION DFLAG,DH11,DH12,DH21,DH22,DP1,DP2,DQ1,DQ2,DTEMP,
# $ DU,GAM,GAMSQ,ONE,RGAMSQ,TWO,ZERO
# ..
# .. Intrinsic Functions ..
# INTRINSIC DABS
# ..
# .. Data statements ..
#
# DATA ZERO,ONE,TWO/0.D0,1.D0,2.D0/
# DATA GAM,GAMSQ,RGAMSQ/4096.D0,16777216.D0,5.9604645D-8/
# ..
GAM = 4096
GAMSQ = 16777216
RGAMSQ = 5.9604645e-8
if DD1 < 0:
# GO ZERO-H-D-AND-DX1..
DFLAG = -1
DH11 = 0
DH12 = 0
DH21 = 0
DH22 = 0
#
DD1 = 0
DD2 = 0
DX1 = 0
else:
# CASE-DD1-NONNEGATIVE
DP2 = DD2 * DY1
if DP2 == 0:
DFLAG = -2
DPARAM[1] = DFLAG
return
# REGULAR-CASE..
DP1 = DD1 * DX1
DQ2 = DP2 * DY1
DQ1 = DP1 * DX1
#
if abs(DQ1) > abs(DQ2):
DH21 = -DY1 / DX1
DH12 = DP2 / DP1
#
DU = 1 - DH12 * DH21
#
if DU > 0:
DFLAG = 0
DD1 = DD1 / DU
DD2 = DD2 / DU
DX1 = DX1 * DU
else:
if DQ2 < 0:
# GO ZERO-H-D-AND-DX1..
DFLAG = -1
DH11 = 0
DH12 = 0
DH21 = 0
DH22 = 0
#
DD1 = 0
DD2 = 0
DX1 = 0
else:
DFLAG = 1
DH11 = DP1 / DP2
DH22 = DX1 / DY1
DU = 1 + DH11 * DH22
DTEMP = DD2 / DU
DD2 = DD1 / DU
DD1 = DTEMP
DX1 = DY1 * DU
# PROCEDURE..SCALE-CHECK
if DD1 != 0:
while (DD1 <= RGAMSQ) or (DD1 >= GAMSQ):
if DFLAG == 0:
DH11 = 1
DH22 = 1
DFLAG = -1
else:
DH21 = -1
DH12 = 1
DFLAG = -1
if DD1 <= RGAMSQ:
DD1 = DD1 * GAM ** 2
DX1 = DX1 / GAM
DH11 = DH11 / GAM
DH12 = DH12 / GAM
else:
DD1 = DD1 / GAM ** 2
DX1 = DX1 * GAM
DH11 = DH11 * GAM
DH12 = DH12 * GAM
if DD2 != 0:
while (abs(DD2) <= RGAMSQ) or (abs(DD2) >= GAMSQ):
if DFLAG == 0:
DH11 = 1
DH22 = 1
DFLAG = -1
else:
DH21 = -1
DH12 = 1
DFLAG = -1
if abs(DD2) <= RGAMSQ:
DD2 = DD2 * GAM ** 2
DH21 = DH21 / GAM
DH22 = DH22 / GAM
else:
DD2 = DD2 / GAM ** 2
DH21 = DH21 * GAM
DH22 = DH22 * GAM
if DFLAG < 0:
DPARAM[2] = DH11
DPARAM[3] = DH21
DPARAM[4] = DH12
DPARAM[5] = DH22
elif DFLAG == 0:
DPARAM[3] = DH21
DPARAM[4] = DH12
else:
DPARAM[2] = DH11
DPARAM[5] = DH22
DPARAM[1] = DFLAG
|
"""
10. Regular Expression Matching
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
Note:
s could be empty and contains only lowercase letters a-z.
p could be empty and contains only lowercase letters a-z, and characters like . or *.
Example 1:
Input:
s = "aa"
p = "a"
Output: false
Explanation: "a" does not match the entire string "aa".
Example 2:
Input:
s = "aa"
p = "a*"
Output: true
Explanation: '*' means zero or more of the preceding element, 'a'. Therefore, by repeating 'a' once, it becomes "aa".
Example 3:
Input:
s = "ab"
p = ".*"
Output: true
Explanation: ".*" means "zero or more (*) of any character (.)".
Example 4:
Input:
s = "aab"
p = "c*a*b"
Output: true
Explanation: c can be repeated 0 times, a can be repeated 1 time. Therefore, it matches "aab".
Example 5:
Input:
s = "mississippi"
p = "mis*is*p*."
Output: false
"""
# similar to decode ways II
# regular dp, just too many cases to be considered
# time complexity could reach O(n_s^2 * n_p)
# because the existence of ".*"
# i am dying...
# Runtime: 56 ms, faster than 52.42% of Python3 online submissions for Regular Expression Matching.
# Memory Usage: 12.7 MB, less than 100.00% of Python3 online submissions for Regular Expression Matching.
class Solution:
def isMatch(self, s: str, p: str) -> bool:
n_s, n_p = len(s), len(p)
if n_p == 0:
return n_s == 0
if n_p == 1:
if n_s == 1 and (s == p or p == "."):
return True
return False
dp = [[False for _ in range(n_p+1)] for _ in range(n_s+1)]
dp[0][0] = True
for i in range(2, n_p+1, 2):
if p[i-1] == "*":
dp[0][i] = dp[0][i-2]
for i in range(1, n_s+1):
# print(dp)
for j in range(1, n_p+1):
if p[j-1] == "*":
if p[j-2] != ".":
if s[i-1] == p[j-2]:
dp[i][j] = dp[i-1][j] or dp[i][j-2]
else:
dp[i][j] = dp[i][j-2]
else:
if j == 2:
dp[i][j] = True
else:
for row in range(i+1):
dp[i][j] = dp[i][j] or dp[row][j-2]
elif p[j-1] == ".":
dp[i][j] = dp[i-1][j-1]
else:
if s[i-1] == p[j-1]:
dp[i][j] = dp[i-1][j-1]
else:
dp[i][j] = False
return dp[-1][-1]
|
#!/usr/bin/env python
IRC_BASE = ["ircconnection", "irclib", "numerics", "baseircclient", "irctracker", "commandparser", "commands", "ircclient", "commandhistory", "nicknamevalidator", "ignorecontroller"]
PANES = ["connect", "embed", "options", "about", "url"]
UI_BASE = ["menuitems", "baseui", "baseuiwindow", "colour", "url", "theme", "notifications", "tabcompleter", "style", "xdomain"]
UI_BASE.extend(["panes/%s" % x for x in PANES])
DEBUG_BASE = ["qwebirc", "version", "qhash", "jslib", "crypto", "md5", ["irc/%s" % x for x in IRC_BASE], ["ui/%s" % x for x in UI_BASE], "qwebircinterface", "auth", "sound"]
BUILD_BASE = ["qwebirc"]
JS_DEBUG_BASE = ["mootools-1.2.5-core-nc", "mootools-1.2.5.1-more-nc", "debug/soundmanager_defer", "soundmanager2"]
JS_RAW_BASE = ["//ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js"]
JS_BASE = ["mootools-1.2.5.1-more-nc", "../../js/soundmanager_defer", "soundmanager2-nodebug-jsmin"]
JS_EXTRA = []
UIs = {
"qui": {
"class": "QUI",
"nocss": True,
"uifiles": ["qui"],
"doctype": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"" + "\n" \
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
}
}
def flatten(y):
for x in y:
if isinstance(x, list):
for x in flatten(x):
yield x
else:
yield x
DEBUG_BASE = list(flatten(DEBUG_BASE))
DEBUG = ["debug/%s" % x for x in DEBUG_BASE]
|
#Q2.Make a list of ten students in your class. Print the name of each student whose name ends with ‘a’.
word='a'
list=['akriti','aman','benisha','bipin','bipesh','carin','carol','cavin','janisha','jeevan']
for i in range(0,10):
if list[i][-1]==word:
print(list[i])
|
#!/usr/env python
class Queue:
def __init__(self, size=16):
self.queue = []
self.size = size
self.front = 0
self.rear = 0
def is_empty(self):
return self.rear == 0
def is_full(self):
if (self.front - self.rear + 1) == self.size:
return True
else:
return False
def first(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
return self.queue[self.front]
def last(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
return self.queue[self.rear]
def add(self, obj):
if self.is_full():
raise Exception("QueueOverFlow")
else:
self.queue.append(obj)
self.rear += 1
def delete(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
self.rear -= 1
return self.queue.pop(0)
def show(self):
print(self.queue)
if __name__ == "__main__":
q = Queue(3)
q.add(1)
q.add(2)
q.show()
q.delete()
q.show()
|
class FenwickTree:
data: []
def __init__(self, n: int):
self.data = [0] * (n + 1)
@staticmethod
def __parent__(i: int) -> int:
return i - (i & (-i))
def __str__(self):
return str(self.data)
|
namesList = ['유나', '지은', '스튜어트', '케빈']
sentence = '우리 강아지는 소파 위에서 잔다'
names = ';'.join(namesList)
print(type(names), ':', names)
wordList = sentence.split(' ')
print((type(wordList)), ':', wordList)
additionExample = '파이썬' + '파이썬' + '파이썬'
multiplicationExample = '파이썬' * 2
print('텍스트 덧셈 :', additionExample)
print('텍스트 곱셈 :', multiplicationExample)
str = 'Python NLTK'
print(str[1])
print(str[-3])
|
party_size = int(input())
days = int(input())
coins = 0
for i in range(1, days + 1):
coins += 50
if i % 10 == 0:
party_size -= 2
if i % 15 == 0:
party_size += 5
coins -= party_size * 2
if i % 3 == 0:
coins -= party_size * 3
if i % 5 == 0:
coins += party_size * 20
if i % 3 == 0:
coins -= party_size * 2
coins_per_person = coins // party_size
print(f"{party_size} companions received {coins_per_person} coins each.")
|
'''
Write a procedure called oddTuples, which takes a tuple as input, and returns a new tuple as output, where every other element of the input tuple is copied, starting with the first one. So if test is the tuple ('I', 'am', 'a', 'test', 'tuple'), then evaluating oddTuples on this input would return the tuple ('I', 'a', 'tuple').
'''
def oddTuples(aTup):
'''
aTup: a tuple
returns: tuple, every other element of aTup.
'''
tup_store = ()
for i in range(0,len(aTup),2):
tup_store = tup_store + (aTup[i],)
return tup_store
|
def random_board():
'''
Creates the dice which have letters on each side --> Array of length 6 per die
'''
self.cube_one = ["A","A","E","E","G","N"]
self.cube_two = ["A","O","O","T","T","W"]
self.cube_three = ["D","I","S","T","T","Y"]
self.cube_four = ["E","I","O","S","S","T"]
self.cube_five = ["A","B","B","J","O","O"]
self.cube_six = ["C","I","M","O","T","U"]
self.cube_seven = ["E","E","G","H","N","W"]
self.cube_eight = ["E","L","R","T","T","Y"]
self.cube_nine = ["A","C","H","O","P","S"]
self.cube_ten = ["D","E","I","L","R","X"]
self.cube_eleven = ["E","E","I","N","S","U"]
self.cube_twelve = ["H","I","M","N","QU","U"]
self.cube_thirteen = ["A","F","F","K","P","S"]
self.cube_fourteen = ["D","E","L","R","V","Y"]
self.cube_fifteen = ["E","H","R","T","V","W"]
self.cube_sixteen = ["H","L","N","N","R","Z"]
self.cubes=[self.cube_one, self.cube_two, self.cube_three, self.cube_four, self.cube_five, self.cube_six, self.cube_seven, self.cube_eight,
self.cube_nine, self.cube_ten, self.cube_eleven, self.cube_twelve, self.cube_thirteen, self.cube_fourteen, self.cube_fifteen, self.cube_sixteen]
self.cubes_temp = []
self.letters = []
for x in range (0, 16):
self.random_cube = random.choice(self.cubes)
self.cubes_temp.append(self.random_cube)
self.cubes.remove(self.random_cube)
self.random_letter = random.choice(self.random_cube)
self.letters.append(self.random_letter)
|
# Print N reverse
# https://www.acmicpc.net/problem/2742
print('\n'.join(list(map(str, [x for x in range(int(input()), 0, -1)]))))
|
class Camera:
def __init__(): #Need to have all information necessary to calibrate camera input into here as arguements
#Calibrate Camera - constant
#Locate Camera Relative to Centerpoint - constant
#Define GPIO pins for synchronization - constant
#Change camera settings - tunable
return None
|
# 33. Search in Rotated Sorted Array
class Solution:
def search(self, nums, target: int) -> int:
def binSearchPiv(l, r, target):
while l < r:
m = (l+r)//2
if nums[m] > nums[m+1]: return m+1
if nums[m] > target: l = m+1
else: r = m
return -1
def binSearch(l, r, target):
while l < r:
m = (l+r)//2
if nums[m] == target: return m
if nums[m] < target: l = m+1
else: r = m
return -1
n = len(nums)
if nums and nums[0] > nums[n-1]:
piv = binSearchPiv(0, n-1, nums[0])
left, right = binSearch(0, piv, target), binSearch(piv, n, target)
return left if left != -1 else right
return binSearch(0, n, target)
|
#
# PySNMP MIB module Juniper-System-Clock-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-System-Clock-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:53:45 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
juniMibs, = mibBuilder.importSymbols("Juniper-MIBs", "juniMibs")
JuniEnable, = mibBuilder.importSymbols("Juniper-TC", "JuniEnable")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Counter64, TimeTicks, ObjectIdentity, Unsigned32, Counter32, Integer32, IpAddress, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, MibIdentifier, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "TimeTicks", "ObjectIdentity", "Unsigned32", "Counter32", "Integer32", "IpAddress", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "MibIdentifier", "iso", "ModuleIdentity")
TextualConvention, TruthValue, RowStatus, DateAndTime, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "RowStatus", "DateAndTime", "DisplayString")
juniSysClockMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56))
juniSysClockMIB.setRevisions(('2007-03-22 14:00', '2005-12-14 14:01', '2003-09-15 14:01', '2003-09-12 13:37', '2002-04-04 14:56',))
if mibBuilder.loadTexts: juniSysClockMIB.setLastUpdated('200512141401Z')
if mibBuilder.loadTexts: juniSysClockMIB.setOrganization('Juniper Networks, Inc.')
class JuniSysClockMonth(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
namedValues = NamedValues(("january", 1), ("february", 2), ("march", 3), ("april", 4), ("may", 5), ("june", 6), ("july", 7), ("august", 8), ("september", 9), ("october", 10), ("november", 11), ("december", 12))
class JuniSysClockWeekOfTheMonth(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("weekFirst", 0), ("weekOne", 1), ("weekTwo", 2), ("weekThree", 3), ("weekFour", 4), ("weekFive", 5), ("weekLast", 6))
class JuniSysClockDayOfTheWeek(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("sunday", 0), ("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6))
class JuniSysClockHour(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 23)
class JuniSysClockMinute(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 59)
class JuniNtpTimeStamp(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 21)
class JuniNtpClockSignedTime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11)
class JuniNtpClockUnsignedTime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983"
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11)
juniSysClockObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1))
juniNtpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2))
juniSysClockTime = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1))
juniSysClockDst = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2))
juniSysClockDateAndTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 1), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDateAndTime.setStatus('current')
juniSysClockTimeZoneName = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockTimeZoneName.setStatus('current')
juniSysClockDstName = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstName.setStatus('current')
juniSysClockDstOffset = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1440)).clone(60)).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstOffset.setStatus('current')
juniSysClockDstStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("off", 0), ("recurrent", 1), ("absolute", 2), ("recognizedUS", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstStatus.setStatus('current')
juniSysClockDstAbsoluteStartTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 4), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstAbsoluteStartTime.setStatus('current')
juniSysClockDstAbsoluteStopTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 5), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstAbsoluteStopTime.setStatus('current')
juniSysClockDstRecurStartMonth = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 6), JuniSysClockMonth().clone('march')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartMonth.setStatus('current')
juniSysClockDstRecurStartWeek = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 7), JuniSysClockWeekOfTheMonth().clone('weekTwo')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartWeek.setStatus('current')
juniSysClockDstRecurStartDay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 8), JuniSysClockDayOfTheWeek().clone('sunday')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartDay.setStatus('current')
juniSysClockDstRecurStartHour = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 9), JuniSysClockHour().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartHour.setStatus('current')
juniSysClockDstRecurStartMinute = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 10), JuniSysClockMinute()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartMinute.setStatus('current')
juniSysClockDstRecurStopMonth = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 11), JuniSysClockMonth().clone('november')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopMonth.setStatus('current')
juniSysClockDstRecurStopWeek = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 12), JuniSysClockWeekOfTheMonth().clone('weekFirst')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopWeek.setStatus('current')
juniSysClockDstRecurStopDay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 13), JuniSysClockDayOfTheWeek().clone('sunday')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopDay.setStatus('current')
juniSysClockDstRecurStopHour = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 14), JuniSysClockHour().clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopHour.setStatus('current')
juniSysClockDstRecurStopMinute = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 15), JuniSysClockMinute()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopMinute.setStatus('current')
juniNtpSysClock = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1))
juniNtpClient = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2))
juniNtpServer = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3))
juniNtpPeers = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4))
juniNtpAccessGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5))
juniNtpSysClockState = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("neverFrequencyCalibrated", 0), ("frequencyCalibrated", 1), ("setToServerTime", 2), ("frequencyCalibrationIsGoingOn", 3), ("synchronized", 4), ("spikeDetected", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockState.setStatus('current')
juniNtpSysClockOffsetError = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 2), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockOffsetError.setStatus('deprecated')
juniNtpSysClockFrequencyError = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 3), Integer32()).setUnits('ppm').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockFrequencyError.setStatus('deprecated')
juniNtpSysClockRootDelay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 4), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockRootDelay.setStatus('current')
juniNtpSysClockRootDispersion = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 5), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockRootDispersion.setStatus('current')
juniNtpSysClockStratumNumber = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockStratumNumber.setStatus('current')
juniNtpSysClockLastUpdateTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 7), JuniNtpTimeStamp()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockLastUpdateTime.setStatus('current')
juniNtpSysClockLastUpdateServer = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 8), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockLastUpdateServer.setStatus('current')
juniNtpSysClockOffsetErrorNew = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 25))).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockOffsetErrorNew.setStatus('current')
juniNtpSysClockFrequencyErrorNew = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 25))).setUnits('ppm').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockFrequencyErrorNew.setStatus('current')
juniNtpClientAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 1), JuniEnable().clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientAdminStatus.setStatus('current')
juniNtpClientSystemRouterIndex = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpClientSystemRouterIndex.setStatus('current')
juniNtpClientPacketSourceIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientPacketSourceIfIndex.setStatus('current')
juniNtpClientBroadcastDelay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 999999)).clone(3000)).setUnits('microseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientBroadcastDelay.setStatus('current')
juniNtpClientIfTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5), )
if mibBuilder.loadTexts: juniNtpClientIfTable.setStatus('current')
juniNtpClientIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpClientIfIfIndex"))
if mibBuilder.loadTexts: juniNtpClientIfEntry.setStatus('current')
juniNtpClientIfRouterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 1), Unsigned32())
if mibBuilder.loadTexts: juniNtpClientIfRouterIndex.setStatus('current')
juniNtpClientIfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647)))
if mibBuilder.loadTexts: juniNtpClientIfIfIndex.setStatus('current')
juniNtpClientIfDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 3), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfDisable.setStatus('current')
juniNtpClientIfIsBroadcastClient = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 4), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastClient.setStatus('current')
juniNtpClientIfIsBroadcastServer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 5), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServer.setStatus('current')
juniNtpClientIfIsBroadcastServerVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServerVersion.setStatus('current')
juniNtpClientIfIsBroadcastServerDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 17)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServerDelay.setStatus('current')
juniNtpServerStratumNumber = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpServerStratumNumber.setStatus('current')
juniNtpServerAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 2), JuniEnable()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpServerAdminStatus.setStatus('current')
juniNtpPeerCfgTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1), )
if mibBuilder.loadTexts: juniNtpPeerCfgTable.setStatus('current')
juniNtpPeerCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"))
if mibBuilder.loadTexts: juniNtpPeerCfgEntry.setStatus('current')
juniNtpPeerCfgIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 1), IpAddress())
if mibBuilder.loadTexts: juniNtpPeerCfgIpAddress.setStatus('current')
juniNtpPeerCfgNtpVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgNtpVersion.setStatus('current')
juniNtpPeerCfgPacketSourceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgPacketSourceIfIndex.setStatus('current')
juniNtpPeerCfgIsPreferred = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 4), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgIsPreferred.setStatus('current')
juniNtpPeerCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgRowStatus.setStatus('current')
juniNtpPeerTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2), )
if mibBuilder.loadTexts: juniNtpPeerTable.setStatus('current')
juniNtpPeerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"))
if mibBuilder.loadTexts: juniNtpPeerEntry.setStatus('current')
juniNtpPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerState.setStatus('current')
juniNtpPeerStratumNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerStratumNumber.setStatus('current')
juniNtpPeerAssociationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("broacastServer", 0), ("multicastServer", 1), ("unicastServer", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerAssociationMode.setStatus('current')
juniNtpPeerBroadcastInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 4), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerBroadcastInterval.setStatus('current')
juniNtpPeerPolledInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 5), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPolledInterval.setStatus('current')
juniNtpPeerPollingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 6), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPollingInterval.setStatus('current')
juniNtpPeerDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 7), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerDelay.setStatus('current')
juniNtpPeerDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 8), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerDispersion.setStatus('current')
juniNtpPeerOffsetError = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 9), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerOffsetError.setStatus('current')
juniNtpPeerReachability = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerReachability.setStatus('current')
juniNtpPeerRootDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 11), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootDelay.setStatus('current')
juniNtpPeerRootDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 12), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootDispersion.setStatus('current')
juniNtpPeerRootSyncDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 13), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootSyncDistance.setStatus('current')
juniNtpPeerRootTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 14), JuniNtpTimeStamp()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootTime.setStatus('current')
juniNtpPeerRootTimeUpdateServer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootTimeUpdateServer.setStatus('current')
juniNtpPeerReceiveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 16), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerReceiveTime.setStatus('current')
juniNtpPeerTransmitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 17), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerTransmitTime.setStatus('current')
juniNtpPeerRequestTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 18), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRequestTime.setStatus('current')
juniNtpPeerPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 19), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPrecision.setStatus('current')
juniNtpPeerLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 20), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerLastUpdateTime.setStatus('current')
juniNtpPeerFilterRegisterTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3), )
if mibBuilder.loadTexts: juniNtpPeerFilterRegisterTable.setStatus('current')
juniNtpPeerFilterRegisterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerFilterIndex"))
if mibBuilder.loadTexts: juniNtpPeerFilterRegisterEntry.setStatus('current')
juniNtpPeerFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 1), Unsigned32())
if mibBuilder.loadTexts: juniNtpPeerFilterIndex.setStatus('current')
juniNtpPeerFilterOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 2), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterOffset.setStatus('current')
juniNtpPeerFilterDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 3), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterDelay.setStatus('current')
juniNtpPeerFilterDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 4), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterDispersion.setStatus('current')
juniNtpRouterAccessGroupPeer = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupPeer.setStatus('current')
juniNtpRouterAccessGroupServe = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupServe.setStatus('current')
juniNtpRouterAccessGroupServeOnly = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupServeOnly.setStatus('current')
juniNtpRouterAccessGroupQueryOnly = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupQueryOnly.setStatus('current')
juniNtpTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0))
juniNtpFrequencyCalibrationStart = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 1)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if mibBuilder.loadTexts: juniNtpFrequencyCalibrationStart.setStatus('current')
juniNtpFrequencyCalibrationEnd = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 2)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if mibBuilder.loadTexts: juniNtpFrequencyCalibrationEnd.setStatus('current')
juniNtpTimeSynUp = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 3))
if mibBuilder.loadTexts: juniNtpTimeSynUp.setStatus('current')
juniNtpTimeSynDown = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 4))
if mibBuilder.loadTexts: juniNtpTimeSynDown.setStatus('current')
juniNtpTimeServerSynUp = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 5)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"))
if mibBuilder.loadTexts: juniNtpTimeServerSynUp.setStatus('current')
juniNtpTimeServerSynDown = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 6)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"))
if mibBuilder.loadTexts: juniNtpTimeServerSynDown.setStatus('current')
juniNtpFirstSystemClockSet = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 7)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockState"))
if mibBuilder.loadTexts: juniNtpFirstSystemClockSet.setStatus('current')
juniNtpClockOffSetLimitCrossed = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 8)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockState"))
if mibBuilder.loadTexts: juniNtpClockOffSetLimitCrossed.setStatus('current')
juniSysClockConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3))
juniSysClockCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1))
juniSysClockGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2))
juniSysClockCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 1)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance = juniSysClockCompliance.setStatus('obsolete')
juniSysClockCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 2)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"), ("Juniper-System-Clock-MIB", "juniNtpNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance2 = juniSysClockCompliance2.setStatus('obsolete')
juniSysClockCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 3)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup2"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"), ("Juniper-System-Clock-MIB", "juniNtpNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance3 = juniSysClockCompliance3.setStatus('current')
juniSysClockTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 1)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockDateAndTime"), ("Juniper-System-Clock-MIB", "juniSysClockTimeZoneName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockTimeGroup = juniSysClockTimeGroup.setStatus('current')
juniSysClockDstGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 2)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockDstName"), ("Juniper-System-Clock-MIB", "juniSysClockDstOffset"), ("Juniper-System-Clock-MIB", "juniSysClockDstStatus"), ("Juniper-System-Clock-MIB", "juniSysClockDstAbsoluteStartTime"), ("Juniper-System-Clock-MIB", "juniSysClockDstAbsoluteStopTime"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartMonth"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartWeek"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartDay"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartHour"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartMinute"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopMonth"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopWeek"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopDay"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopHour"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopMinute"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockDstGroup = juniSysClockDstGroup.setStatus('current')
juniNtpSysClockGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 3)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockState"), ("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpSysClockStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateTime"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateServer"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockGroup = juniNtpSysClockGroup.setStatus('obsolete')
juniNtpClientGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 4)).setObjects(("Juniper-System-Clock-MIB", "juniNtpClientAdminStatus"), ("Juniper-System-Clock-MIB", "juniNtpClientSystemRouterIndex"), ("Juniper-System-Clock-MIB", "juniNtpClientPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpClientBroadcastDelay"), ("Juniper-System-Clock-MIB", "juniNtpClientIfDisable"), ("Juniper-System-Clock-MIB", "juniNtpClientIfIsBroadcastClient"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpClientGroup = juniNtpClientGroup.setStatus('current')
juniNtpServerGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 5)).setObjects(("Juniper-System-Clock-MIB", "juniNtpServerAdminStatus"), ("Juniper-System-Clock-MIB", "juniNtpServerStratumNumber"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpServerGroup = juniNtpServerGroup.setStatus('current')
juniNtpPeersGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 6)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerState"), ("Juniper-System-Clock-MIB", "juniNtpPeerStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpPeerAssociationMode"), ("Juniper-System-Clock-MIB", "juniNtpPeerBroadcastInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPolledInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPollingInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpPeerReachability"), ("Juniper-System-Clock-MIB", "juniNtpPeerPrecision"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootSyncDistance"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTimeUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpPeerReceiveTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerTransmitTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRequestTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterOffset"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgNtpVersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpPeersGroup = juniNtpPeersGroup.setStatus('obsolete')
juniNtpAccessGroupGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 7)).setObjects(("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupPeer"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupServe"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupServeOnly"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupQueryOnly"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpAccessGroupGroup = juniNtpAccessGroupGroup.setStatus('current')
juniNtpNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 8)).setObjects(("Juniper-System-Clock-MIB", "juniNtpFrequencyCalibrationStart"), ("Juniper-System-Clock-MIB", "juniNtpFrequencyCalibrationEnd"), ("Juniper-System-Clock-MIB", "juniNtpTimeSynUp"), ("Juniper-System-Clock-MIB", "juniNtpTimeSynDown"), ("Juniper-System-Clock-MIB", "juniNtpTimeServerSynUp"), ("Juniper-System-Clock-MIB", "juniNtpTimeServerSynDown"), ("Juniper-System-Clock-MIB", "juniNtpFirstSystemClockSet"), ("Juniper-System-Clock-MIB", "juniNtpClockOffSetLimitCrossed"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpNotificationGroup = juniNtpNotificationGroup.setStatus('current')
juniNtpSysClockGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 9)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockState"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpSysClockStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateTime"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetErrorNew"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyErrorNew"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockGroup2 = juniNtpSysClockGroup2.setStatus('current')
juniNtpSysClockDeprecatedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 10)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockDeprecatedGroup = juniNtpSysClockDeprecatedGroup.setStatus('deprecated')
juniNtpPeersGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 11)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerState"), ("Juniper-System-Clock-MIB", "juniNtpPeerStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpPeerAssociationMode"), ("Juniper-System-Clock-MIB", "juniNtpPeerBroadcastInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPolledInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPollingInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpPeerReachability"), ("Juniper-System-Clock-MIB", "juniNtpPeerPrecision"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootSyncDistance"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTimeUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpPeerReceiveTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerTransmitTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRequestTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterOffset"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgNtpVersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgRowStatus"), ("Juniper-System-Clock-MIB", "juniNtpPeerLastUpdateTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpPeersGroup1 = juniNtpPeersGroup1.setStatus('current')
mibBuilder.exportSymbols("Juniper-System-Clock-MIB", juniSysClockDstAbsoluteStartTime=juniSysClockDstAbsoluteStartTime, juniNtpPeerPrecision=juniNtpPeerPrecision, juniNtpClientIfEntry=juniNtpClientIfEntry, juniNtpPeerFilterIndex=juniNtpPeerFilterIndex, juniNtpClientGroup=juniNtpClientGroup, juniNtpPeerBroadcastInterval=juniNtpPeerBroadcastInterval, juniNtpClientIfDisable=juniNtpClientIfDisable, juniSysClockObjects=juniSysClockObjects, juniSysClockDstGroup=juniSysClockDstGroup, juniNtpSysClockGroup2=juniNtpSysClockGroup2, juniNtpPeerRootTimeUpdateServer=juniNtpPeerRootTimeUpdateServer, juniNtpTimeServerSynUp=juniNtpTimeServerSynUp, juniNtpSysClock=juniNtpSysClock, juniNtpClientAdminStatus=juniNtpClientAdminStatus, juniNtpTimeSynDown=juniNtpTimeSynDown, juniSysClockDstRecurStartHour=juniSysClockDstRecurStartHour, juniNtpPeerRootDelay=juniNtpPeerRootDelay, juniNtpSysClockState=juniNtpSysClockState, juniNtpServerStratumNumber=juniNtpServerStratumNumber, juniSysClockCompliance3=juniSysClockCompliance3, juniNtpPeerFilterDelay=juniNtpPeerFilterDelay, juniNtpServer=juniNtpServer, juniNtpPeerCfgIsPreferred=juniNtpPeerCfgIsPreferred, JuniSysClockMonth=JuniSysClockMonth, juniNtpPeerReachability=juniNtpPeerReachability, juniNtpPeersGroup1=juniNtpPeersGroup1, juniNtpPeerRootDispersion=juniNtpPeerRootDispersion, juniNtpClockOffSetLimitCrossed=juniNtpClockOffSetLimitCrossed, JuniSysClockWeekOfTheMonth=JuniSysClockWeekOfTheMonth, juniSysClockDstRecurStopMinute=juniSysClockDstRecurStopMinute, juniNtpPeerFilterDispersion=juniNtpPeerFilterDispersion, juniSysClockDstAbsoluteStopTime=juniSysClockDstAbsoluteStopTime, JuniNtpClockSignedTime=JuniNtpClockSignedTime, juniNtpClientIfIsBroadcastServerDelay=juniNtpClientIfIsBroadcastServerDelay, JuniNtpClockUnsignedTime=JuniNtpClockUnsignedTime, JuniSysClockHour=JuniSysClockHour, juniNtpPeerDispersion=juniNtpPeerDispersion, juniNtpPeerDelay=juniNtpPeerDelay, juniNtpPeerTransmitTime=juniNtpPeerTransmitTime, juniSysClockTimeGroup=juniSysClockTimeGroup, juniNtpPeerCfgRowStatus=juniNtpPeerCfgRowStatus, juniSysClockGroups=juniSysClockGroups, PYSNMP_MODULE_ID=juniSysClockMIB, juniNtpSysClockDeprecatedGroup=juniNtpSysClockDeprecatedGroup, juniNtpPeerFilterOffset=juniNtpPeerFilterOffset, juniNtpSysClockOffsetErrorNew=juniNtpSysClockOffsetErrorNew, juniNtpPeerCfgPacketSourceIfIndex=juniNtpPeerCfgPacketSourceIfIndex, juniSysClockCompliance2=juniSysClockCompliance2, juniSysClockDstName=juniSysClockDstName, juniNtpPeerCfgIpAddress=juniNtpPeerCfgIpAddress, juniSysClockDstRecurStopDay=juniSysClockDstRecurStopDay, juniNtpClientPacketSourceIfIndex=juniNtpClientPacketSourceIfIndex, juniSysClockDstOffset=juniSysClockDstOffset, juniSysClockDstRecurStartDay=juniSysClockDstRecurStartDay, juniNtpAccessGroup=juniNtpAccessGroup, juniNtpAccessGroupGroup=juniNtpAccessGroupGroup, juniNtpPeerPolledInterval=juniNtpPeerPolledInterval, juniNtpSysClockRootDelay=juniNtpSysClockRootDelay, juniNtpTimeSynUp=juniNtpTimeSynUp, juniSysClockMIB=juniSysClockMIB, juniSysClockDstRecurStartMinute=juniSysClockDstRecurStartMinute, juniNtpFrequencyCalibrationEnd=juniNtpFrequencyCalibrationEnd, juniNtpPeerRootSyncDistance=juniNtpPeerRootSyncDistance, juniNtpTraps=juniNtpTraps, juniNtpFrequencyCalibrationStart=juniNtpFrequencyCalibrationStart, juniSysClockDstRecurStartWeek=juniSysClockDstRecurStartWeek, juniNtpRouterAccessGroupQueryOnly=juniNtpRouterAccessGroupQueryOnly, juniNtpPeerAssociationMode=juniNtpPeerAssociationMode, juniNtpSysClockRootDispersion=juniNtpSysClockRootDispersion, juniNtpClientIfIfIndex=juniNtpClientIfIfIndex, juniNtpPeerReceiveTime=juniNtpPeerReceiveTime, juniSysClockDst=juniSysClockDst, juniNtpSysClockOffsetError=juniNtpSysClockOffsetError, juniSysClockDstRecurStopHour=juniSysClockDstRecurStopHour, juniNtpPeerRequestTime=juniNtpPeerRequestTime, juniNtpPeerStratumNumber=juniNtpPeerStratumNumber, juniNtpFirstSystemClockSet=juniNtpFirstSystemClockSet, juniNtpPeerTable=juniNtpPeerTable, juniNtpRouterAccessGroupServe=juniNtpRouterAccessGroupServe, juniNtpSysClockFrequencyError=juniNtpSysClockFrequencyError, juniSysClockDstRecurStopWeek=juniSysClockDstRecurStopWeek, juniNtpSysClockFrequencyErrorNew=juniNtpSysClockFrequencyErrorNew, juniSysClockDstRecurStartMonth=juniSysClockDstRecurStartMonth, juniNtpClientIfIsBroadcastServer=juniNtpClientIfIsBroadcastServer, juniNtpSysClockGroup=juniNtpSysClockGroup, JuniSysClockDayOfTheWeek=JuniSysClockDayOfTheWeek, juniNtpPeerCfgNtpVersion=juniNtpPeerCfgNtpVersion, juniNtpServerAdminStatus=juniNtpServerAdminStatus, juniSysClockTime=juniSysClockTime, juniNtpPeerCfgEntry=juniNtpPeerCfgEntry, juniNtpPeerFilterRegisterTable=juniNtpPeerFilterRegisterTable, juniNtpSysClockLastUpdateServer=juniNtpSysClockLastUpdateServer, juniSysClockCompliances=juniSysClockCompliances, JuniSysClockMinute=JuniSysClockMinute, juniSysClockTimeZoneName=juniSysClockTimeZoneName, juniNtpTimeServerSynDown=juniNtpTimeServerSynDown, juniNtpPeerFilterRegisterEntry=juniNtpPeerFilterRegisterEntry, juniNtpClientIfIsBroadcastServerVersion=juniNtpClientIfIsBroadcastServerVersion, juniNtpClientIfTable=juniNtpClientIfTable, juniNtpPeerRootTime=juniNtpPeerRootTime, juniNtpClientIfRouterIndex=juniNtpClientIfRouterIndex, juniNtpClientSystemRouterIndex=juniNtpClientSystemRouterIndex, juniSysClockDstStatus=juniSysClockDstStatus, juniNtpPeerOffsetError=juniNtpPeerOffsetError, juniNtpClientBroadcastDelay=juniNtpClientBroadcastDelay, juniNtpClient=juniNtpClient, juniNtpPeers=juniNtpPeers, juniNtpRouterAccessGroupPeer=juniNtpRouterAccessGroupPeer, juniNtpSysClockLastUpdateTime=juniNtpSysClockLastUpdateTime, juniNtpServerGroup=juniNtpServerGroup, juniNtpPeersGroup=juniNtpPeersGroup, juniNtpClientIfIsBroadcastClient=juniNtpClientIfIsBroadcastClient, juniNtpPeerCfgTable=juniNtpPeerCfgTable, juniNtpPeerLastUpdateTime=juniNtpPeerLastUpdateTime, juniSysClockDstRecurStopMonth=juniSysClockDstRecurStopMonth, juniNtpObjects=juniNtpObjects, juniNtpPeerState=juniNtpPeerState, JuniNtpTimeStamp=JuniNtpTimeStamp, juniNtpSysClockStratumNumber=juniNtpSysClockStratumNumber, juniNtpPeerPollingInterval=juniNtpPeerPollingInterval, juniSysClockConformance=juniSysClockConformance, juniNtpNotificationGroup=juniNtpNotificationGroup, juniNtpPeerEntry=juniNtpPeerEntry, juniSysClockCompliance=juniSysClockCompliance, juniNtpRouterAccessGroupServeOnly=juniNtpRouterAccessGroupServeOnly, juniSysClockDateAndTime=juniSysClockDateAndTime)
|
#
# PySNMP MIB module CTRON-SFPS-CALL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SFPS-CALL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:15:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
sfpsSapAPI, sfpsCallTableStats, sfpsSap, sfpsCallByTuple = mibBuilder.importSymbols("CTRON-SFPS-INCLUDE-MIB", "sfpsSapAPI", "sfpsCallTableStats", "sfpsSap", "sfpsCallByTuple")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, MibIdentifier, Gauge32, ModuleIdentity, IpAddress, TimeTicks, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, iso, Unsigned32, Counter64, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "Gauge32", "ModuleIdentity", "IpAddress", "TimeTicks", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "iso", "Unsigned32", "Counter64", "Bits")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class HexInteger(Integer32):
pass
sfpsSapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1), )
if mibBuilder.loadTexts: sfpsSapTable.setStatus('mandatory')
sfpsSapTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableTag"), (0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableHashIndex"))
if mibBuilder.loadTexts: sfpsSapTableEntry.setStatus('mandatory')
sfpsSapTableTag = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableTag.setStatus('mandatory')
sfpsSapTableHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableHash.setStatus('mandatory')
sfpsSapTableHashIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableHashIndex.setStatus('mandatory')
sfpsSapTableSourceCP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableSourceCP.setStatus('mandatory')
sfpsSapTableDestCP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableDestCP.setStatus('mandatory')
sfpsSapTableSAP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableSAP.setStatus('mandatory')
sfpsSapTableOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableOperStatus.setStatus('mandatory')
sfpsSapTableAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableAdminStatus.setStatus('mandatory')
sfpsSapTableStateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 9), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableStateTime.setStatus('mandatory')
sfpsSapTableDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableDescription.setStatus('mandatory')
sfpsSapTableNumAccepted = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNumAccepted.setStatus('mandatory')
sfpsSapTableNumDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNumDropped.setStatus('mandatory')
sfpsSapTableUnicastSap = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapTableUnicastSap.setStatus('mandatory')
sfpsSapTableNVStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("unset", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNVStatus.setStatus('mandatory')
sfpsSapAPIVerb = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("getStatus", 1), ("next", 2), ("first", 3), ("disable", 4), ("disableInNvram", 5), ("enable", 6), ("enableInNvram", 7), ("clearFromNvram", 8), ("clearAllNvram", 9), ("resetStats", 10), ("resetAllStats", 11)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPIVerb.setStatus('mandatory')
sfpsSapAPISourceCP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPISourceCP.setStatus('mandatory')
sfpsSapAPIDestCP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPIDestCP.setStatus('mandatory')
sfpsSapAPISAP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPISAP.setStatus('mandatory')
sfpsSapAPINVStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("unset", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINVStatus.setStatus('mandatory')
sfpsSapAPIAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIAdminStatus.setStatus('mandatory')
sfpsSapAPIOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIOperStatus.setStatus('mandatory')
sfpsSapAPINvSet = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINvSet.setStatus('mandatory')
sfpsSapAPINVTotal = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPINVTotal.setStatus('mandatory')
sfpsSapAPINumAccept = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINumAccept.setStatus('mandatory')
sfpsSapAPINvDiscard = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINvDiscard.setStatus('mandatory')
sfpsSapAPIDefaultStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIDefaultStatus.setStatus('mandatory')
sfpsCallByTupleTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1), )
if mibBuilder.loadTexts: sfpsCallByTupleTable.setStatus('mandatory')
sfpsCallByTupleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1), ).setIndexNames((0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleInPort"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleSrcHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleDstHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleHashIndex"))
if mibBuilder.loadTexts: sfpsCallByTupleEntry.setStatus('mandatory')
sfpsCallByTupleInPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleInPort.setStatus('mandatory')
sfpsCallByTupleSrcHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleSrcHash.setStatus('mandatory')
sfpsCallByTupleDstHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleDstHash.setStatus('mandatory')
sfpsCallByTupleHashIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleHashIndex.setStatus('mandatory')
sfpsCallByTupleBotSrcType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotSrcType.setStatus('mandatory')
sfpsCallByTupleBotSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotSrcAddress.setStatus('mandatory')
sfpsCallByTupleBotDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotDstType.setStatus('mandatory')
sfpsCallByTupleBotDstAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotDstAddress.setStatus('mandatory')
sfpsCallByTupleTopSrcType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopSrcType.setStatus('mandatory')
sfpsCallByTupleTopSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopSrcAddress.setStatus('mandatory')
sfpsCallByTupleTopDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopDstType.setStatus('mandatory')
sfpsCallByTupleTopDstAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopDstAddress.setStatus('mandatory')
sfpsCallByTupleCallProcName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallProcName.setStatus('mandatory')
sfpsCallByTupleCallTag = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 14), HexInteger()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallTag.setStatus('mandatory')
sfpsCallByTupleCallState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 15), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallState.setStatus('mandatory')
sfpsCallByTupleTimeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 16), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTimeRemaining.setStatus('mandatory')
sfpsCallTableStatsRam = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsRam.setStatus('mandatory')
sfpsCallTableStatsSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsSize.setStatus('mandatory')
sfpsCallTableStatsInUse = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsInUse.setStatus('mandatory')
sfpsCallTableStatsMax = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMax.setStatus('mandatory')
sfpsCallTableStatsTotMisses = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsTotMisses.setStatus('mandatory')
sfpsCallTableStatsMissStart = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 7), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMissStart.setStatus('mandatory')
sfpsCallTableStatsMissStop = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 8), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMissStop.setStatus('mandatory')
sfpsCallTableStatsLastMiss = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsCallTableStatsLastMiss.setStatus('mandatory')
mibBuilder.exportSymbols("CTRON-SFPS-CALL-MIB", sfpsSapTableDestCP=sfpsSapTableDestCP, sfpsCallTableStatsTotMisses=sfpsCallTableStatsTotMisses, sfpsSapTableEntry=sfpsSapTableEntry, sfpsCallByTupleInPort=sfpsCallByTupleInPort, sfpsCallByTupleTable=sfpsCallByTupleTable, sfpsCallByTupleBotSrcType=sfpsCallByTupleBotSrcType, sfpsCallByTupleBotSrcAddress=sfpsCallByTupleBotSrcAddress, sfpsSapTableAdminStatus=sfpsSapTableAdminStatus, sfpsSapTableUnicastSap=sfpsSapTableUnicastSap, sfpsSapAPIVerb=sfpsSapAPIVerb, sfpsSapAPISAP=sfpsSapAPISAP, sfpsSapTableSourceCP=sfpsSapTableSourceCP, sfpsSapAPINvSet=sfpsSapAPINvSet, sfpsSapAPINumAccept=sfpsSapAPINumAccept, sfpsCallByTupleTopSrcType=sfpsCallByTupleTopSrcType, sfpsSapTableStateTime=sfpsSapTableStateTime, sfpsCallByTupleBotDstAddress=sfpsCallByTupleBotDstAddress, sfpsCallByTupleTopSrcAddress=sfpsCallByTupleTopSrcAddress, sfpsCallByTupleTopDstType=sfpsCallByTupleTopDstType, sfpsSapAPIAdminStatus=sfpsSapAPIAdminStatus, sfpsCallByTupleEntry=sfpsCallByTupleEntry, sfpsCallByTupleTopDstAddress=sfpsCallByTupleTopDstAddress, sfpsSapAPINVTotal=sfpsSapAPINVTotal, sfpsCallTableStatsMax=sfpsCallTableStatsMax, sfpsCallTableStatsRam=sfpsCallTableStatsRam, sfpsCallTableStatsSize=sfpsCallTableStatsSize, sfpsSapTableHash=sfpsSapTableHash, sfpsSapTableNVStatus=sfpsSapTableNVStatus, sfpsCallByTupleCallTag=sfpsCallByTupleCallTag, sfpsSapAPINvDiscard=sfpsSapAPINvDiscard, sfpsCallByTupleTimeRemaining=sfpsCallByTupleTimeRemaining, sfpsSapTableDescription=sfpsSapTableDescription, HexInteger=HexInteger, sfpsSapTableNumDropped=sfpsSapTableNumDropped, sfpsSapAPIDefaultStatus=sfpsSapAPIDefaultStatus, sfpsSapTable=sfpsSapTable, sfpsCallByTupleSrcHash=sfpsCallByTupleSrcHash, sfpsSapAPIDestCP=sfpsSapAPIDestCP, sfpsSapTableTag=sfpsSapTableTag, sfpsCallByTupleDstHash=sfpsCallByTupleDstHash, sfpsSapAPIOperStatus=sfpsSapAPIOperStatus, sfpsSapAPINVStatus=sfpsSapAPINVStatus, sfpsCallTableStatsMissStart=sfpsCallTableStatsMissStart, sfpsCallByTupleBotDstType=sfpsCallByTupleBotDstType, sfpsCallByTupleCallState=sfpsCallByTupleCallState, sfpsCallByTupleCallProcName=sfpsCallByTupleCallProcName, sfpsSapTableHashIndex=sfpsSapTableHashIndex, sfpsSapTableSAP=sfpsSapTableSAP, sfpsSapTableNumAccepted=sfpsSapTableNumAccepted, sfpsCallByTupleHashIndex=sfpsCallByTupleHashIndex, sfpsSapTableOperStatus=sfpsSapTableOperStatus, sfpsCallTableStatsMissStop=sfpsCallTableStatsMissStop, sfpsCallTableStatsLastMiss=sfpsCallTableStatsLastMiss, sfpsCallTableStatsInUse=sfpsCallTableStatsInUse, sfpsSapAPISourceCP=sfpsSapAPISourceCP)
|
""" Tuple as Data Structure
"""
|
class RPMReqException(Exception):
msg_fmt = "An unknown error occurred"
def __init__(self, msg=None, **kwargs):
self.kwargs = kwargs
if not msg:
try:
msg = self.msg_fmt % kwargs
except Exception:
msg = self.msg_fmt
super(RPMReqException, self).__init__(msg)
class NotADirectory(RPMReqException):
msg_fmt = "Not a directory: %(path)s"
class RemoteFileFetchFailed(RPMReqException):
msg_fmt = "Failed to fetch remote file with status %(code)s: %(url)s"
class RepoMDParsingFailed(RPMReqException):
msg_fmt = "Failed to parse repository metadata :-/"
class InvalidUsage(RPMReqException):
msg_fmt = "Invalid usage: %(why)s"
|
# coding: utf-8
# In[43]:
alist = [54,26,93,17,77,31,44,55,20]
def bubbleSort(alist):
for passnum in range(len(alist)-1,0,-1):
for i in range(passnum):
if alist[i]>alist[i+1]:
temp = alist[i]
alist[i] = alist[i+1]
alist[i+1] = temp
return alist
print(bubbleSort(alist))
|
# Defining the Movie Class
# Creates an instance of a movie with related details
class Movie():
def __init__(self, movie_title, poster_image, trailer_id,
movie_year, movie_rating, movie_release_date, movie_imdb_rating):
self.title = movie_title
self.poster_image_url = poster_image
self.youtube_id = trailer_id
self.year = movie_year
self.rated = movie_rating
self.released = movie_release_date
self.rating = movie_imdb_rating
|
# -*- coding: utf-8 -*-
system_proxies = None;
disable_proxies = {'http': None, 'https': None};
proxies_protocol = "http";
proxies_protocol = "socks5";
defined_proxies = {
'http': proxies_protocol+'://127.0.0.1:8888',
'https': proxies_protocol+'://127.0.0.1:8888',
};
proxies = system_proxies;
if __name__ == '__main__':
pass;
#end
|
test = {
'name': 'multiples_3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
scm> (car multiples-of-three)
3
scm> (list? (cdr multiples-of-three)) ; Check to make sure variable contains a stream
#f
scm> (list? (cdr (cdr-stream multiples-of-three))) ; Check to make sure rest of stream is a stream
#f
scm> (equal? (first-k multiples-of-three 5) '(3 6 9 12 15))
#t
scm> (equal? (first-k multiples-of-three 10) '(3 6 9 12 15 18 21 24 27 30))
#t
scm> (length (first-k multiples-of-three 100))
100
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
scm> (load-all ".")
scm> (define (first-k s k) (if (or (null? s) (= k 0)) nil (cons (car s) (first-k (cdr-stream s) (- k 1)))))
scm> (define (length lst) (if (null? lst) 0 (+ 1 (length (cdr lst)))))
""",
'teardown': '',
'type': 'scheme'
}
]
}
|
#
# PySNMP MIB module NBS-OTNPM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-OTNPM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:17:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
InterfaceIndex, ifAlias = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifAlias")
nbs, WritableU64, Unsigned64 = mibBuilder.importSymbols("NBS-MIB", "nbs", "WritableU64", "Unsigned64")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Unsigned32, IpAddress, Bits, Counter64, ObjectIdentity, Counter32, iso, Integer32, MibIdentifier, TimeTicks, ModuleIdentity, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "Bits", "Counter64", "ObjectIdentity", "Counter32", "iso", "Integer32", "MibIdentifier", "TimeTicks", "ModuleIdentity", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
nbsOtnpmMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 629, 222))
if mibBuilder.loadTexts: nbsOtnpmMib.setLastUpdated('201401230000Z')
if mibBuilder.loadTexts: nbsOtnpmMib.setOrganization('NBS')
if mibBuilder.loadTexts: nbsOtnpmMib.setContactInfo('For technical support, please contact your service channel')
if mibBuilder.loadTexts: nbsOtnpmMib.setDescription('OTN Performance Monitoring and user-controlled statistics')
nbsOtnpmThresholdsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 1))
if mibBuilder.loadTexts: nbsOtnpmThresholdsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsGrp.setDescription('Maximum considered safe by user')
nbsOtnpmCurrentGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 2))
if mibBuilder.loadTexts: nbsOtnpmCurrentGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentGrp.setDescription('Subtotals and statistics for sample now underway')
nbsOtnpmHistoricGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 3))
if mibBuilder.loadTexts: nbsOtnpmHistoricGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricGrp.setDescription('Totals and final statistics for a previous sample')
nbsOtnpmRunningGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 4))
if mibBuilder.loadTexts: nbsOtnpmRunningGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningGrp.setDescription('Totals and statistics since (boot-up) protocol configuration')
nbsOtnAlarmsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 80))
if mibBuilder.loadTexts: nbsOtnAlarmsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsGrp.setDescription('OTN alarms')
nbsOtnStatsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 90))
if mibBuilder.loadTexts: nbsOtnStatsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsGrp.setDescription('User-controlled OTN alarms and statistics')
nbsOtnpmEventsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 100))
if mibBuilder.loadTexts: nbsOtnpmEventsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmEventsGrp.setDescription('Threshold crossing events')
nbsOtnpmTraps = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 100, 0))
if mibBuilder.loadTexts: nbsOtnpmTraps.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTraps.setDescription('Threshold crossing Traps or Notifications')
class NbsOtnAlarmId(TextualConvention, Integer32):
description = 'OTN alarm id, also used to identify a mask bit'
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, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53))
namedValues = NamedValues(("aLOS", 1), ("aLOF", 2), ("aOOF", 3), ("aLOM", 4), ("aOOM", 5), ("aRxLOL", 6), ("aTxLOL", 7), ("aOtuAIS", 8), ("aSectBDI", 9), ("aSectBIAE", 10), ("aSectIAE", 11), ("aSectTIM", 12), ("aOduAIS", 13), ("aOduOCI", 14), ("aOduLCK", 15), ("aPathBDI", 16), ("aPathTIM", 17), ("aTcm1BDI", 18), ("aTcm2BDI", 19), ("aTcm3BDI", 20), ("aTcm4BDI", 21), ("aTcm5BDI", 22), ("aTcm6BDI", 23), ("aTcm1BIAE", 24), ("aTcm2BIAE", 25), ("aTcm3BIAE", 26), ("aTcm4BIAE", 27), ("aTcm5BIAE", 28), ("aTcm6BIAE", 29), ("aTcm1IAE", 30), ("aTcm2IAE", 31), ("aTcm3IAE", 32), ("aTcm4IAE", 33), ("aTcm5IAE", 34), ("aTcm6IAE", 35), ("aTcm1LTC", 36), ("aTcm2LTC", 37), ("aTcm3LTC", 38), ("aTcm4LTC", 39), ("aTcm5LTC", 40), ("aTcm6LTC", 41), ("aTcm1TIM", 42), ("aTcm2TIM", 43), ("aTcm3TIM", 44), ("aTcm4TIM", 45), ("aTcm5TIM", 46), ("aTcm6TIM", 47), ("aFwdSF", 48), ("aFwdSD", 49), ("aBwdSF", 50), ("aBwdSD", 51), ("aPTM", 52), ("aCSF", 53))
class NbsOtnAlarmMask(TextualConvention, OctetString):
description = 'OTN alarm mask, encoded within an octet string. The bit assigned to a particular alarm (id from NbsOtnAlarmId) is calculated by: index = id/8; bit = id%8; where the leftmost bit (msb) is deemed as bit 0. The mask length is either full-size or zero if not supported.'
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 7)
nbsOtnpmThresholdsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 1, 1), )
if mibBuilder.loadTexts: nbsOtnpmThresholdsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsTable.setDescription('OTN Performance Monitoring thresholds')
nbsOtnpmThresholdsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsScope"))
if mibBuilder.loadTexts: nbsOtnpmThresholdsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEntry.setDescription('Performance monitoring thresholds for a particular interface')
nbsOtnpmThresholdsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmThresholdsInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsInterval.setDescription('Indicates the sampling period to which these thresholds apply')
nbsOtnpmThresholdsScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsScope.setDescription('This object specifies the network segment to which these thresholds apply.')
nbsOtnpmThresholdsEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 10), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEs.setDescription('Persistent. The number of Errored Seconds (ES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsEs event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrSig.setDescription('Persistent. The significand of the Errored Seconds Ratio (ESR) threshold, which is calculated by: nbsOtnpmThresholdsEsrSig x 10^nbsOtnpmThresholdsEsrExp An ESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsEsr event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrExp.setDescription('Persistent. The exponent of the Errored Seconds Ratio (ESR) threshold; see nbsOtnpmThresholdsEsrSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSes.setDescription('Persistent. The number of Severely Errored Seconds (SES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsSes event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrSig.setDescription('Persistent. The significand of the Severely Errored Seconds Ratio (SESR) threshold, which is calculated by: nbsOtnpmThresholdsSesrSig x 10^nbsOtnpmThresholdsSesrExp A SESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsSesr notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrExp.setDescription('Persistent. The exponent of the Severely Errored Seconds Ratio (SESR) threshold; see nbsOtnpmThresholdsSesrSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 16), WritableU64()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBbe.setDescription('Persistent. The number of Background Block Errors (BBE) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsBbe event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 17), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberSig.setDescription('Persistent. The significand of the Background Block Errors Ratio (BBER) threshold, which is calculated by: nbsOtnpmThresholdsBberSig x 10^nbsOtnpmThresholdsBberExp A BBER that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsBber notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberExp.setDescription('Persistent. The exponent of the Background Block Errors Ratio (BBER) threshold; see nbsOtnpmThresholdsBberSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 19), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsUas.setDescription('Persistent. The number of Unavailable Seconds (UAS) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsUas event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 20), WritableU64()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsFc.setDescription('Persistent. The number of Failure Counts (FC) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsFc event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 2, 3), )
if mibBuilder.loadTexts: nbsOtnpmCurrentTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentTable.setDescription('All OTN Performance Monitoring statistics for the nbsOtnpmCurrentInterval now underway.')
nbsOtnpmCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"))
if mibBuilder.loadTexts: nbsOtnpmCurrentEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmCurrentInterval.')
nbsOtnpmCurrentIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmCurrentInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentInterval.setDescription('Indicates the sampling period of statistic')
nbsOtnpmCurrentScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentScope.setDescription("Indicates statistic's network segment")
nbsOtnpmCurrentDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentDate.setDescription('The date (UTC) this interval began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmCurrentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentTime.setDescription('The time (UTC) this interval began, represented by a six digit decimal number: hhmmss')
nbsOtnpmCurrentEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEs.setDescription('The number of Errored Seconds (ES) in this interval so far.')
nbsOtnpmCurrentEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrSig.setDescription('The significand of the current Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmCurrentEsrSig x 10^nbsOtnpmCurrentEsrExp')
nbsOtnpmCurrentEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrExp.setDescription('The exponent of the current Errored Seconds Ratio (ESR); see nbsOtnpmCurrentEsrSig. Not supported value: 0x80000000')
nbsOtnpmCurrentSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSes.setDescription('The number of Severely Errored Seconds (SES) in this interval so far')
nbsOtnpmCurrentSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrSig.setDescription('The significand of the current Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmCurrentSesrSig x 10^nbsOtnpmCurrentSesrExp')
nbsOtnpmCurrentSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrExp.setDescription('The exponent of the current Severely Errored Seconds Ratio (SESR); see nbsOtnpmCurrentSesrSig. Not supported value: 0x80000000')
nbsOtnpmCurrentBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 16), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBbe.setDescription('The number of Background Block Errors (BBE) so far, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmCurrentBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBberSig.setDescription('The significand of the current Background Block Errors (BBER), which is calculated by: nbsOtnpmCurrentBberSig x 10^nbsOtnpmCurrentBberExp')
nbsOtnpmCurrentBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBberExp.setDescription('The exponent of the current Background Block Errors Ratio (BBER); see nbsOtnpmCurrentBberSig. Not supported value: 0x80000000')
nbsOtnpmCurrentUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentUas.setDescription('The number of Unavailable Seconds (UAS) so far')
nbsOtnpmCurrentFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 20), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentFc.setDescription('The number of Failure Counts (FC) so far, i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmCurrentAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnpmCurrentAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnpmCurrentAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsChanged.setDescription('The mask of OTN alarms that have changed so far, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmHistoricTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 3, 3), )
if mibBuilder.loadTexts: nbsOtnpmHistoricTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricTable.setDescription('All OTN Performance Monitoring statistics for past nbsOtnpmHistoricInterval periods.')
nbsOtnpmHistoricEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricScope"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricSample"))
if mibBuilder.loadTexts: nbsOtnpmHistoricEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmHistoricInterval.')
nbsOtnpmHistoricIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmHistoricInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2))))
if mibBuilder.loadTexts: nbsOtnpmHistoricInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricInterval.setDescription('Indicates the sampling period of statistic')
nbsOtnpmHistoricScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8))))
if mibBuilder.loadTexts: nbsOtnpmHistoricScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricScope.setDescription("Indicates statistic's network segment")
nbsOtnpmHistoricSample = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 4), Integer32())
if mibBuilder.loadTexts: nbsOtnpmHistoricSample.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSample.setDescription('Indicates the sample number of this statistic. The most recent sample is numbered 1, the next previous 2, and so on until the oldest sample.')
nbsOtnpmHistoricDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricDate.setDescription('The date (UTC) the interval began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmHistoricTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricTime.setDescription('The time (UTC) the interval began, represented by a six digit decimal number: hhmmss')
nbsOtnpmHistoricEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEs.setDescription('The final count of Errored Seconds (ES) for this interval')
nbsOtnpmHistoricEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrSig.setDescription('The significand of the final Errored Seconds Ratio (ESR) for this interval, which is calculated by: nbsOtnpmHistoricEsrSig x 10^nbsOtnpmHistoricEsrExp')
nbsOtnpmHistoricEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrExp.setDescription('The exponent of the final Errored Seconds Ratio (ESR) for this interval; see nbsOtnpmHistoricEsrSig. Not supported value: 0x80000000')
nbsOtnpmHistoricSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSes.setDescription('The final count of Severely Errored Seconds (SES) in this interval')
nbsOtnpmHistoricSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrSig.setDescription('The significand of the final Severely Errored Seconds Ratio (SESR) for this interval, which is calculated by: nbsOtnpmHistoricSesrSig x 10^nbsOtnpmHistoricSesrExp')
nbsOtnpmHistoricSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrExp.setDescription('The exponent of the final Severely Errored Seconds Ratio (SESR) for this interval; see nbsOtnpmHistoricSesrSig. Not supported value: 0x80000000')
nbsOtnpmHistoricBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 16), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBbe.setDescription('The final count of Background Block Errors (BBE), i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmHistoricBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBberSig.setDescription('The significand of the final Background Block Errors Ratio (BBER) for this interval, which is calculated by: nbsOtnpmHistoricBberSig x 10^nbsOtnpmHistoricBberExp)')
nbsOtnpmHistoricBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBberExp.setDescription('The exponent of the final Background Block Errors Ratio (BBER) for this interval; see nbsOtnpmHistoricBberSig. Not supported value: 0x80000000')
nbsOtnpmHistoricUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricUas.setDescription('The final count of Unavailable Seconds (UAS)')
nbsOtnpmHistoricFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 20), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricFc.setDescription('The final number of Failure Counts (FC), i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmHistoricAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsSupported.setDescription('The mask of OTN alarms that were supported.')
nbsOtnpmHistoricAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsRaised.setDescription('The mask of OTN alarms that were raised at the end of this interval.')
nbsOtnpmHistoricAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsChanged.setDescription('The mask of OTN alarms that changed in this interval, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmRunningTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 4, 3), )
if mibBuilder.loadTexts: nbsOtnpmRunningTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningTable.setDescription('All OTN Performance Monitoring statistics since (boot-up) protocol configuration.')
nbsOtnpmRunningEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmRunningIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmRunningScope"))
if mibBuilder.loadTexts: nbsOtnpmRunningEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface.')
nbsOtnpmRunningIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmRunningScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8))))
if mibBuilder.loadTexts: nbsOtnpmRunningScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningScope.setDescription("Indicates statistic's network segment")
nbsOtnpmRunningDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningDate.setDescription('The date (UTC) of protocol configuration, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmRunningTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningTime.setDescription('The time (UTC) of protocol configuration, represented by a six digit decimal number: hhmmss')
nbsOtnpmRunningEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEs.setDescription('The number of Errored Seconds (ES) since protocol configuration.')
nbsOtnpmRunningEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEsrSig.setDescription('The significand of the running Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmRunningEsrSig x 10^nbsOtnpmRunningEsrExp')
nbsOtnpmRunningEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEsrExp.setDescription('The exponent of the running Errored Seconds Ratio (ESR); see nbsOtnpmRunningEsrSig. Not supported value: 0x80000000')
nbsOtnpmRunningSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSes.setDescription('The number of Severely Errored Seconds (SES) since protocol configuration')
nbsOtnpmRunningSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSesrSig.setDescription('The significand of the running Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmRunningSesrSig x 10^nbsOtnpmRunningSesrExp')
nbsOtnpmRunningSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSesrExp.setDescription('The exponent of the running Severely Errored Seconds Ratio (SESR); see nbsOtnpmRunningSesrSig. Not supported value: 0x80000000')
nbsOtnpmRunningBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 16), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBbe.setDescription('The number of Background Block Errors (BBE) since protocol configuration, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmRunningBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBberSig.setDescription('The significand of the running Background Block Errors (BBER), which is calculated by: nbsOtnpmRunningBberSig x 10^nbsOtnpmRunningBberExp')
nbsOtnpmRunningBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBberExp.setDescription('The exponent of the running Background Block Errors Ratio (BBER); see nbsOtnpmRunningBberSig. Not supported value: 0x80000000')
nbsOtnpmRunningUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningUas.setDescription('The number of Unavailable Seconds (UAS) since protocol configuration')
nbsOtnpmRunningFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 20), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningFc.setDescription('The number of Failure Counts (FC) since protocol configuration, i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmRunningAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnpmRunningAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnpmRunningAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsChanged.setDescription('The mask of OTN alarms that changed since protocol configuration, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbsOtnAlarmsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 80, 3), )
if mibBuilder.loadTexts: nbsOtnAlarmsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsTable.setDescription('OTN alarm monitoring scoreboard, showing for each possible alarm if it is currently raised and if it has changed since monitoring began (or was cleared). The latter indicator may be cleared at anytime without affecting normal performance monitoring activity.')
nbsOtnAlarmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnAlarmsIfIndex"))
if mibBuilder.loadTexts: nbsOtnAlarmsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsEntry.setDescription('OTN alarm monitoring scoreboard for a specific port/interface.')
nbsOtnAlarmsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnAlarmsDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsDate.setDescription('The date (UTC) OTN alarm monitoring began (was cleared), represented by an eight digit decimal number: yyyymmdd')
nbsOtnAlarmsTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsTime.setDescription('The time (UTC) OTN alarm monitoring began (was cleared), represented by a six digit decimal number: hhmmss')
nbsOtnAlarmsSpan = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsSpan.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsSpan.setDescription('The amount of time (deci-sec) since nbsOtnAlarmsDate and nbsOtnAlarmsTime.')
nbsOtnAlarmsState = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("monitoring", 2), ("clearing", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnAlarmsState.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsState.setDescription("This object reads 'notSupported' if the port is not configured with an OTN protocol. Otherwise it reads 'monitoring' to indicate that supported OTN alarms are actively reported in nbsOtnAlarmsRaised and nbsOtnAlarmsChanged. Writing 'clearing' to this object clears nbsOtnAlarmsChanged.")
nbsOtnAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsSupported.setDescription('The mask of OTN alarms that are supported on this port.')
nbsOtnAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsChanged.setDescription('The mask of OTN alarms that have changed since nbsOtnAlarmsDate and AlarmsTime, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnAlarmsRcvdFTFL = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 110), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsRcvdFTFL.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsRcvdFTFL.setDescription('The current Fault Type Fault Location information received on the given port. The length will be zero when there is a no fault code in both the forward and backward fields. Otherwise, the full 256 bytes will be provided; see ITU-T G.709, section 15.8.2.5.')
nbsOtnStatsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 90, 3), )
if mibBuilder.loadTexts: nbsOtnStatsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsTable.setDescription('OTN alarms and statistics monitoring managed per user discretion. This monitoring may be started, stopped, and cleared as desired without affecting the normal performance monitoring activity.')
nbsOtnStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnStatsIfIndex"))
if mibBuilder.loadTexts: nbsOtnStatsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsEntry.setDescription('User-controlled OTN monitoring for a specific port/interface.')
nbsOtnStatsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnStatsDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsDate.setDescription('The date (UTC) OTN statistics collection began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnStatsTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsTime.setDescription('The time (UTC) OTN statistics collection began, represented by a six digit decimal number: hhmmss')
nbsOtnStatsSpan = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsSpan.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsSpan.setDescription('The amount of time (deci-sec) statistics collection has been underway since nbsOtnStatsDate and nbsOtnStatsTime, or if stopped, the duration of the prior collection.')
nbsOtnStatsState = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notSupported", 1), ("counting", 2), ("clearing", 3), ("stopped", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnStatsState.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsState.setDescription("Writing 'stopped' to this object stops (pauses) OTN statistics collection. Re-configuring this port to a non-OTN protocol sets this object to 'stopped' automatically. Writing 'counting' to this object starts (resumes) OTN statistics collection if this port is configured with an OTN protocol. Writing 'clearing' to this object clears all statistical counters.")
nbsOtnStatsErrCntSectBEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 21), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBEI.setDescription('The count of section Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntPathBEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 22), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBEI.setDescription('The count of path Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm1BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 23), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BEI.setDescription('The count of TCM1 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm2BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 24), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BEI.setDescription('The count of TCM2 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm3BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 25), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BEI.setDescription('The count of TCM3 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm4BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 26), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BEI.setDescription('The count of TCM4 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm5BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 27), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BEI.setDescription('The count of TCM5 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm6BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 28), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BEI.setDescription('The count of TCM6 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntSectBIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 31), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBIP8.setDescription('The count of section Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntPathBIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 32), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBIP8.setDescription('The count of path Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm1BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 33), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BIP8.setDescription('The count of TCM1 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm2BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 34), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BIP8.setDescription('The count of TCM2 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm3BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 35), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BIP8.setDescription('The count of TCM3 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm4BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 36), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BIP8.setDescription('The count of TCM4 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm5BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 37), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BIP8.setDescription('The count of TCM5 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm6BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 38), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BIP8.setDescription('The count of TCM6 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnStatsAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnStatsAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsChanged.setDescription('The mask of OTN alarms that have changed since OTN statistics collection began, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmTrapsEs = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 10)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEs"))
if mibBuilder.loadTexts: nbsOtnpmTrapsEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsEs.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEs is non-zero and less than or equal to nbsOtnpmCurrentEs.')
nbsOtnpmTrapsEsr = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 11)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEsrSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEsrExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsEsr.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsEsr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEsr is non-zero and less than or equal to nbsOtnpmCurrentEsr.')
nbsOtnpmTrapsSes = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 12)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSes"))
if mibBuilder.loadTexts: nbsOtnpmTrapsSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsSes.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSes is non-zero and less than or equal to nbsOtnpmCurrentSes.')
nbsOtnpmTrapsSesr = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 13)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSesrSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSesrExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsSesr.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsSesr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSesr is non-zero and less than or equal to nbsOtnpmCurrentSesr.')
nbsOtnpmTrapsBbe = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 14)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBbe"))
if mibBuilder.loadTexts: nbsOtnpmTrapsBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsBbe.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBbe is non-zero and less than or equal to nbsOtnpmCurrentBbe.')
nbsOtnpmTrapsBber = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 15)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBberSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBberExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsBber.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsBber.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBber is non-zero and less than or equal to nbsOtnpmCurrentBber.')
nbsOtnpmTrapsUas = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 16)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentUas"))
if mibBuilder.loadTexts: nbsOtnpmTrapsUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsUas.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsUas is non-zero and less than or equal to nbsOtnpmCurrentUas.')
nbsOtnpmTrapsFc = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 17)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentFc"))
if mibBuilder.loadTexts: nbsOtnpmTrapsFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsFc.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsFc is non-zero and less than or equal to nbsOtnpmCurrentFc.')
mibBuilder.exportSymbols("NBS-OTNPM-MIB", nbsOtnpmRunningIfIndex=nbsOtnpmRunningIfIndex, nbsOtnpmHistoricGrp=nbsOtnpmHistoricGrp, nbsOtnpmCurrentSes=nbsOtnpmCurrentSes, nbsOtnpmMib=nbsOtnpmMib, nbsOtnpmRunningTable=nbsOtnpmRunningTable, nbsOtnAlarmsRcvdFTFL=nbsOtnAlarmsRcvdFTFL, nbsOtnpmRunningGrp=nbsOtnpmRunningGrp, nbsOtnpmCurrentFc=nbsOtnpmCurrentFc, nbsOtnStatsErrCntTcm6BEI=nbsOtnStatsErrCntTcm6BEI, nbsOtnpmCurrentTime=nbsOtnpmCurrentTime, nbsOtnpmThresholdsTable=nbsOtnpmThresholdsTable, nbsOtnpmRunningBbe=nbsOtnpmRunningBbe, nbsOtnStatsErrCntTcm1BEI=nbsOtnStatsErrCntTcm1BEI, nbsOtnAlarmsTable=nbsOtnAlarmsTable, nbsOtnpmThresholdsSes=nbsOtnpmThresholdsSes, nbsOtnAlarmsTime=nbsOtnAlarmsTime, nbsOtnpmThresholdsEs=nbsOtnpmThresholdsEs, nbsOtnAlarmsDate=nbsOtnAlarmsDate, nbsOtnpmCurrentGrp=nbsOtnpmCurrentGrp, nbsOtnStatsGrp=nbsOtnStatsGrp, nbsOtnpmCurrentEs=nbsOtnpmCurrentEs, nbsOtnpmHistoricEsrSig=nbsOtnpmHistoricEsrSig, nbsOtnAlarmsState=nbsOtnAlarmsState, nbsOtnStatsErrCntTcm4BEI=nbsOtnStatsErrCntTcm4BEI, nbsOtnpmThresholdsIfIndex=nbsOtnpmThresholdsIfIndex, nbsOtnpmHistoricSes=nbsOtnpmHistoricSes, nbsOtnpmCurrentIfIndex=nbsOtnpmCurrentIfIndex, nbsOtnpmCurrentBbe=nbsOtnpmCurrentBbe, nbsOtnpmCurrentEntry=nbsOtnpmCurrentEntry, nbsOtnpmRunningEsrExp=nbsOtnpmRunningEsrExp, nbsOtnAlarmsSpan=nbsOtnAlarmsSpan, nbsOtnStatsErrCntTcm2BEI=nbsOtnStatsErrCntTcm2BEI, nbsOtnpmCurrentBberExp=nbsOtnpmCurrentBberExp, nbsOtnpmCurrentInterval=nbsOtnpmCurrentInterval, nbsOtnStatsAlarmsRaised=nbsOtnStatsAlarmsRaised, nbsOtnpmRunningDate=nbsOtnpmRunningDate, nbsOtnpmCurrentSesrSig=nbsOtnpmCurrentSesrSig, nbsOtnpmRunningAlarmsSupported=nbsOtnpmRunningAlarmsSupported, nbsOtnpmRunningUas=nbsOtnpmRunningUas, nbsOtnAlarmsRaised=nbsOtnAlarmsRaised, nbsOtnStatsErrCntTcm2BIP8=nbsOtnStatsErrCntTcm2BIP8, nbsOtnpmThresholdsSesrSig=nbsOtnpmThresholdsSesrSig, nbsOtnpmHistoricBbe=nbsOtnpmHistoricBbe, nbsOtnpmHistoricUas=nbsOtnpmHistoricUas, nbsOtnpmCurrentDate=nbsOtnpmCurrentDate, nbsOtnpmHistoricIfIndex=nbsOtnpmHistoricIfIndex, nbsOtnpmRunningFc=nbsOtnpmRunningFc, nbsOtnpmEventsGrp=nbsOtnpmEventsGrp, nbsOtnStatsErrCntSectBEI=nbsOtnStatsErrCntSectBEI, nbsOtnStatsErrCntTcm6BIP8=nbsOtnStatsErrCntTcm6BIP8, nbsOtnpmHistoricSesrExp=nbsOtnpmHistoricSesrExp, nbsOtnpmThresholdsInterval=nbsOtnpmThresholdsInterval, nbsOtnpmThresholdsFc=nbsOtnpmThresholdsFc, nbsOtnpmRunningAlarmsChanged=nbsOtnpmRunningAlarmsChanged, nbsOtnpmRunningEntry=nbsOtnpmRunningEntry, nbsOtnStatsAlarmsSupported=nbsOtnStatsAlarmsSupported, nbsOtnpmThresholdsBbe=nbsOtnpmThresholdsBbe, NbsOtnAlarmId=NbsOtnAlarmId, nbsOtnpmTrapsEs=nbsOtnpmTrapsEs, nbsOtnpmHistoricBberExp=nbsOtnpmHistoricBberExp, nbsOtnpmCurrentEsrExp=nbsOtnpmCurrentEsrExp, nbsOtnpmTrapsEsr=nbsOtnpmTrapsEsr, nbsOtnStatsEntry=nbsOtnStatsEntry, nbsOtnpmHistoricScope=nbsOtnpmHistoricScope, nbsOtnStatsErrCntTcm5BEI=nbsOtnStatsErrCntTcm5BEI, nbsOtnpmTrapsSesr=nbsOtnpmTrapsSesr, nbsOtnpmCurrentBberSig=nbsOtnpmCurrentBberSig, nbsOtnpmThresholdsGrp=nbsOtnpmThresholdsGrp, nbsOtnpmThresholdsSesrExp=nbsOtnpmThresholdsSesrExp, nbsOtnAlarmsEntry=nbsOtnAlarmsEntry, nbsOtnpmCurrentAlarmsSupported=nbsOtnpmCurrentAlarmsSupported, nbsOtnpmRunningTime=nbsOtnpmRunningTime, nbsOtnStatsState=nbsOtnStatsState, nbsOtnpmRunningEs=nbsOtnpmRunningEs, nbsOtnStatsErrCntTcm3BEI=nbsOtnStatsErrCntTcm3BEI, nbsOtnStatsErrCntSectBIP8=nbsOtnStatsErrCntSectBIP8, nbsOtnAlarmsIfIndex=nbsOtnAlarmsIfIndex, nbsOtnpmRunningBberSig=nbsOtnpmRunningBberSig, nbsOtnpmHistoricSample=nbsOtnpmHistoricSample, nbsOtnpmThresholdsEsrSig=nbsOtnpmThresholdsEsrSig, nbsOtnStatsErrCntTcm5BIP8=nbsOtnStatsErrCntTcm5BIP8, nbsOtnStatsErrCntTcm1BIP8=nbsOtnStatsErrCntTcm1BIP8, nbsOtnpmRunningBberExp=nbsOtnpmRunningBberExp, nbsOtnpmCurrentScope=nbsOtnpmCurrentScope, nbsOtnpmRunningEsrSig=nbsOtnpmRunningEsrSig, nbsOtnpmTrapsBbe=nbsOtnpmTrapsBbe, nbsOtnpmHistoricEsrExp=nbsOtnpmHistoricEsrExp, nbsOtnpmRunningSesrExp=nbsOtnpmRunningSesrExp, nbsOtnpmHistoricDate=nbsOtnpmHistoricDate, nbsOtnpmCurrentEsrSig=nbsOtnpmCurrentEsrSig, nbsOtnStatsErrCntTcm3BIP8=nbsOtnStatsErrCntTcm3BIP8, nbsOtnpmThresholdsBberSig=nbsOtnpmThresholdsBberSig, nbsOtnStatsTime=nbsOtnStatsTime, nbsOtnpmHistoricBberSig=nbsOtnpmHistoricBberSig, NbsOtnAlarmMask=NbsOtnAlarmMask, nbsOtnpmHistoricTable=nbsOtnpmHistoricTable, nbsOtnpmRunningSes=nbsOtnpmRunningSes, nbsOtnpmHistoricAlarmsRaised=nbsOtnpmHistoricAlarmsRaised, nbsOtnpmRunningSesrSig=nbsOtnpmRunningSesrSig, nbsOtnStatsIfIndex=nbsOtnStatsIfIndex, nbsOtnStatsSpan=nbsOtnStatsSpan, nbsOtnpmCurrentAlarmsRaised=nbsOtnpmCurrentAlarmsRaised, nbsOtnpmHistoricEs=nbsOtnpmHistoricEs, nbsOtnpmThresholdsEntry=nbsOtnpmThresholdsEntry, nbsOtnpmRunningAlarmsRaised=nbsOtnpmRunningAlarmsRaised, nbsOtnpmCurrentUas=nbsOtnpmCurrentUas, nbsOtnpmThresholdsScope=nbsOtnpmThresholdsScope, nbsOtnpmTrapsSes=nbsOtnpmTrapsSes, nbsOtnpmThresholdsEsrExp=nbsOtnpmThresholdsEsrExp, nbsOtnpmCurrentTable=nbsOtnpmCurrentTable, nbsOtnpmHistoricTime=nbsOtnpmHistoricTime, nbsOtnAlarmsGrp=nbsOtnAlarmsGrp, nbsOtnpmTrapsUas=nbsOtnpmTrapsUas, nbsOtnpmHistoricAlarmsSupported=nbsOtnpmHistoricAlarmsSupported, nbsOtnpmTraps=nbsOtnpmTraps, nbsOtnpmCurrentSesrExp=nbsOtnpmCurrentSesrExp, nbsOtnpmTrapsFc=nbsOtnpmTrapsFc, PYSNMP_MODULE_ID=nbsOtnpmMib, nbsOtnpmHistoricFc=nbsOtnpmHistoricFc, nbsOtnAlarmsSupported=nbsOtnAlarmsSupported, nbsOtnAlarmsChanged=nbsOtnAlarmsChanged, nbsOtnStatsTable=nbsOtnStatsTable, nbsOtnStatsErrCntPathBEI=nbsOtnStatsErrCntPathBEI, nbsOtnpmTrapsBber=nbsOtnpmTrapsBber, nbsOtnpmHistoricAlarmsChanged=nbsOtnpmHistoricAlarmsChanged, nbsOtnpmCurrentAlarmsChanged=nbsOtnpmCurrentAlarmsChanged, nbsOtnStatsErrCntPathBIP8=nbsOtnStatsErrCntPathBIP8, nbsOtnpmHistoricSesrSig=nbsOtnpmHistoricSesrSig, nbsOtnpmRunningScope=nbsOtnpmRunningScope, nbsOtnpmThresholdsBberExp=nbsOtnpmThresholdsBberExp, nbsOtnStatsDate=nbsOtnStatsDate, nbsOtnStatsErrCntTcm4BIP8=nbsOtnStatsErrCntTcm4BIP8, nbsOtnpmHistoricEntry=nbsOtnpmHistoricEntry, nbsOtnpmHistoricInterval=nbsOtnpmHistoricInterval, nbsOtnStatsAlarmsChanged=nbsOtnStatsAlarmsChanged, nbsOtnpmThresholdsUas=nbsOtnpmThresholdsUas)
|
# Collin Pearce 100%
# performance O(log(n))
# all states with less tables than the optimal are correct states
# all states with more tables than the optimal are incorrect states
# therefore, the state space can be binary searched
# mid represents the number of tables produced
# pockets available are total_pockets - tables (the unavailable pockets are holding tables)
# wood that needs to be stored in pockets is total_wood - (tables * table_cost)
# state is valid if all wood can be stored in available pockets
# pocket_space * pockets >= wood
# if the state is valid, the answer is current state or something larger, so left_bound is set to mid
# if the state is not valid, the answer is something smaller, so right_bound is set to mid - 1
# repeat until one value is left (the best one)
C, N, P, W = [int(x) for x in input().split()]
l, r = 0, W // C
while l != r:
mid = (1 + l + r) // 2
pockets = (N - mid)
wood = W - (mid * C)
if P * pockets >= wood:
l = mid
else:
r = mid - 1
print(l)
|
"""
Write a function that takes an unsigned integer and returns the number of 1 bits it has.
Example:
The 32-bit integer 11 has binary representation
00000000000000000000000000001011
so the function should return 3.
Note that since Java does not have unsigned int, use long for Java
"""
class Solution:
# @param A : integer
# @return an integer
def numSetBits(self, A):
num = 0
while A:
num += A & 1
A = A >> 1
return num
|
class Solution:
def countSubstrings(self, s: str) -> int:
count = 0
for center in range(len(s)*2 - 1):
left = center // 2
right = left + (center&1)
while left >= 0 and right < len(s) and s[left] == s[right]:
count += 1
left -= 1
right += 1
return count
class Solution2:
def countSubstrings(self, s: str) -> int:
T = '#'.join('^{}$'.format(s))
n = len(T)
P = [0] * n
C = R = 0
for i in range(1, n - 1):
if R > i:
P[i] = min(R - i, P[2*C - i])
while T[i + 1 + P[i]] == T[i - 1 - P[i]]:
P[i] += 1
if i + P[i] > R:
C, R = i, i + P[i]
return sum((l + 1) // 2 for l in P)
|
expected_output={
"interfaces": {
"Tunnel100": {
"autoroute_announce": "enabled",
"src_ip": "Loopback0",
"tunnel_bandwidth": 500,
"tunnel_dst": "2.2.2.2",
"tunnel_mode": "mpls traffic-eng",
"tunnel_path_option": {
"1": {
"path_type": "dynamic"
}
},
"tunnel_priority": [
"7 7"
]
}
}
}
|
def act(robot):
val = robot.ir_sensor.read()
if val == 1:
robot.forward(200)
if val == 2:
robot.forward_right(200)
if val == 3:
robot.reverse_right(200)
if val == 4 or val == 5:
robot.reverse(200)
if val == 6:
robot.reverse_left(200)
if val == 7:
robot.forward_left(200)
|
"""
Module for representing PredPatt and UDS graphs
This module represents PredPatt and UDS graphs using networkx. It
incorporates the dependency parse-based graphs from the syntax module
as subgraphs.
"""
|
"""{{ cookiecutter.package_name }} - {{ cookiecutter.package_description }}"""
__version__ = '{{ cookiecutter.package_version }}'
__author__ = '{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>'
__all__ = []
|
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def hasCycle(self, head: ListNode) -> bool:
while head:
if not hasattr(head, 'flag'):
head.flag = False
if not head.flag: # head flag is first visited
head.flag = True
else:
return True
head = head.next
return False
# hash_table = dict()
# while head:
# print(hash_table)
# if head in hash_table:
# return True
# hash_table.add(head)
# head = head.next
# return False
|
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : spanish.py
@Time : 2021/05/12
@Author : Frikilinux & JavierSC
@Version : 2.1
@Contact :
@Desc :
'''
class LangSpanish(object):
SETTING = "AJUSTES"
VALUE = "VALORES"
SETTING_DOWNLOAD_PATH = "Ruta de descarga"
SETTING_ONLY_M4A = "Convertir mp4 a m4a"
SETTING_ADD_EXPLICIT_TAG = "Agregar etiqueta de 'Contenido explícito'"
SETTING_ADD_HYPHEN = "Agregar guión"
SETTING_ADD_YEAR = "Agregar año en la carpeta del álbum"
SETTING_USE_TRACK_NUM = "Agregar número de la pista"
SETTING_AUDIO_QUALITY = "Calidad de audio"
SETTING_VIDEO_QUALITY = "Calidad de video"
SETTING_CHECK_EXIST = "Verificar si existe"
SETTING_ARTIST_BEFORE_TITLE = "Nombre del artista en el título de la pista"
SETTING_ALBUMID_BEFORE_FOLDER = "Añadir ID de la carpeta del álbum"
SETTING_INCLUDE_EP = "Incluir Sencillos y EPs"
SETTING_SAVE_COVERS = "Guardar carátulas"
SETTING_LANGUAGE = "Idioma"
SETTING_USE_PLAYLIST_FOLDER = "Usar directorio de la lista de reproducción"
SETTING_MULITHREAD_DOWNLOAD = "Descarga Multi-hilo"
SETTING_ALBUM_FOLDER_FORMAT = "Formato del nombre de carpeta del álbum"
SETTING_TRACK_FILE_FORMAT = "Formato del nombre de archivo de la pista"
SETTING_SHOW_PROGRESS = "Mostrar progreso"
SETTING_SAVE_ALBUMINFO = "Guardar AlbumInfo.txt"
SETTING_ADD_LYRICS = "Add lyrics"
SETTING_LYRICS_SERVER_PROXY = "Lyrics server proxy"
SETTING_PATH = "Ruta de ajustes"
CHOICE = "SELECCIÓN"
FUNCTION = "FUNCIÓN"
CHOICE_ENTER = "Ingresar"
CHOICE_ENTER_URLID = "Ingresar 'Url/ID':"
CHOICE_EXIT = "Salir"
CHOICE_LOGIN = "Verificar el token de acceso"
CHOICE_SETTINGS = "Ajustes"
CHOICE_SET_ACCESS_TOKEN = "Establecer AccessToken"
CHOICE_DOWNLOAD_BY_URL = "Descargar por Url o ID"
CHOICE_LOGOUT = "Cerrar sesión"
PRINT_ERR = "[ERROR]"
PRINT_INFO = "[INFO]"
PRINT_SUCCESS = "[ÉXITO]"
PRINT_ENTER_CHOICE = "Ingresar Selección:"
PRINT_LATEST_VERSION = "Última versión:"
#PRINT_USERNAME = "nombre de usuario:"
#PRINT_PASSWORD = "contraseña:"
CHANGE_START_SETTINGS = "¿Iniciar ajustes? ('0'-Volver,'1'-Sí):"
CHANGE_DOWNLOAD_PATH = "Ruta de descarga ('0' No modificar):"
CHANGE_AUDIO_QUALITY = "Calidad de audio ('0'-Normal,'1'-High,'2'-HiFi,'3'-Master):"
CHANGE_VIDEO_QUALITY = "Calidad de video (1080, 720, 480, 360):"
CHANGE_ONLYM4A = "¿Convertir mp4 a m4a? ('0'-No,'1'-Sí):"
CHANGE_ADD_EXPLICIT_TAG = "¿Agregar etiqueta de contenido explícito a los nombres de archivo? ('0'-No,'1'-Sí):"
CHANGE_ADD_HYPHEN = "¿Usar guiones en lugar de espacios en el nombre de los archivos? ('0'-No,'1'-Sí):"
CHANGE_ADD_YEAR = "¿Agregar año a el nombre de las carpetas del álbum? ('0'-No,'1'-Sí):"
CHANGE_USE_TRACK_NUM = "¿Agregar número de la pista? ('0'-No,'1'-Sí):"
CHANGE_CHECK_EXIST = "¿Verificar si el archivo existe antes de descargar la pista? ('0'-No,'1'-Sí):"
CHANGE_ARTIST_BEFORE_TITLE = "¿Añadir el nombre del artista en el título de la pista? ('0'-No,'1'-Sí):"
CHANGE_INCLUDE_EP = "¿Incluir Sencillos y EPs al descargar el álbum del artista? ('0'-No,'1'-Sí):"
CHANGE_ALBUMID_BEFORE_FOLDER = "¿Añadir ID de la carpeta del álbum? ('0'-No,'1'-Sí):"
CHANGE_SAVE_COVERS = "¿Guardar carátulas?('0'-No,'1'-Sí):"
CHANGE_LANGUAGE = "Seleccione el idioma"
CHANGE_ALBUM_FOLDER_FORMAT = "Formato del nombre de carpeta del álbum ('0' No modificar):"
CHANGE_TRACK_FILE_FORMAT = "Formato del nombre de archivo de la pista ('0' No modificar):"
CHANGE_SHOW_PROGRESS = "¿Mostrar progreso? ('0'-No,'1'-Sí):"
CHANGE_SAVE_ALBUM_INFO = "¿Guardar AlbumInfo.txt?('0'-No,'1'-Sí):"
CHANGE_ADD_LYRICS = "Add lyrics('0'-No,'1'-Yes):"
CHANGE_LYRICS_SERVER_PROXY = "Lyrics server proxy('0' not modify):"
# {} are required in these strings
AUTH_START_LOGIN = "Iniciando sesión..."
AUTH_LOGIN_CODE = "Su código para autorizar la sesión es {}"
AUTH_NEXT_STEP = "Diríjase a {} en los próximos {} para completar la autorización."
AUTH_WAITING = "Esperando la autorización..."
AUTH_TIMEOUT = "Se superó el tiempo de espera."
MSG_VALID_ACCESSTOKEN = "Token de acceso válido por {}."
MSG_INVAILD_ACCESSTOKEN = "El token de acceso ha expirado. Tratando de renovarlo."
MSG_PATH_ERR = "¡La ruta no es correcta!"
MSG_INPUT_ERR = "¡Error de entrada!"
MODEL_ALBUM_PROPERTY = "PROPIEDAD-DE-ÁLBUM"
MODEL_TRACK_PROPERTY = "PROPIEDAD-DE-PISTA"
MODEL_VIDEO_PROPERTY = "PROPIEDAD-DE-VIDEO"
MODEL_ARTIST_PROPERTY = "PROPIEDAD-DE-ARTISTA"
MODEL_PLAYLIST_PROPERTY = "PROPIEDAD-DE-PLAYLIST"
MODEL_TITLE = 'Título'
MODEL_TRACK_NUMBER = 'Numero de pistas'
MODEL_VIDEO_NUMBER = 'Numero de videos'
MODEL_RELEASE_DATE = 'Fecha de lanzamiento'
MODEL_VERSION = 'Versión'
MODEL_EXPLICIT = 'Explícito'
MODEL_ALBUM = 'Álbum'
MODEL_ID = 'ID'
MODEL_NAME = 'Nombre'
MODEL_TYPE = 'Tipo'
|
#!/usr/bin/env python
# encoding: utf-8
class Solution:
def singleNumber(self, nums: List[int]) -> int:
# 0001 XOR 0000 = 0001
# a XOR 0 = a
# a XOR a = 0
# a XOR b XOR a = a XOR a XOR b = b
a = 0
for num in nums:
a ^= num
return a
|
def remove_all(input_string,to_be_removed):
''' removes all instance of a substring from a string '''
while(to_be_removed in input_string):
input_string = ''.join(input_string.split(to_be_removed))
return(input_string)
if __name__ == '__main__':
print(remove_all('hello world','l'))
|
# 1. The format_address function separates out parts of the address string
# into new strings: house_number and street_name, and returns: "house
# number X on street named Y". The format of the input string is: numeric
# house number, followed by the street name which may contain numbers,
# but never by themselves, and could be several words long. For example,
# "123 Main Street", "1001 1st Ave", or "55 North Center Drive". Fill in the
# gaps to complete this function.
def format_address(address_string):
# Declare variables
street = []
number = ""
# Seperate the address string into parts
# Traverse through the address parts
for s in address_string.split():
# Determine if the address part is the
# house number or part of the street name
if s.isdigit():
number = s
else:
street.append(s)
# Does anything else need to be done
# before returning the result?
# Return the formatted string
return "house number {} on street named {}".format(number, ' '.join(street))
# print(format_address("123 Main Street"))
# Should print: "house number 123 on street named Main Street"
# print(format_address("1001 1st Ave"))
# Should print: "house number 1001 on street named 1st Ave"
# print(format_address("55 North Center Drive"))
# Should print "house number 55 on street named North Center Drive"
# 2. The highlight_word function changes the given word in a sentence to its
# upper-case version. For example, highlight_word("Have a nice day", "nice)
# returns "Have a NICE day". Ca you write this function in just one line?
def highlight_word(sentence, word):
return sentence.replace(word, word.upper())
# print(highlight_word("Have a nice day", "nice"))
# print(highlight_word("Shhh, don't be so loud!", "loud"))
# print(highlight_word("Automating with Python is fun", "fun"))
# 3. A professor with two assistants, Jamie and Drew, wants an attendance list
# of the students, in the order that they arrived in the classroom. Drew was
# the first one to note which students arrived, and then Jamie took over.
# After the class, they each entered their lists into the computer and
# emailed them to the professor, who needs to combine them into one, in
# the order of each student's arrival. Jamie emailed a follow-up, saying that
# heir list is in reverse order. Complete the steps to combine them into one
# list as follows: the contents of Drew's list, followed by Jamie's list in
# reverse order, to get an accurate list of the students as they arrived.
def combine_lists(list1, list2):
# Generate a new list containing the elements of list2
new_list = list2
# Followed by the elements of list1 in reverse order
list1.reverse()
new_list.extend(list1)
return new_list
Jamies_list = ["Alice", "Cindy", "Bobby", "Jan", "Peter"]
Drews_list = ["Mike", "Carol", "Greg", "Marcia"]
# print(combine_lists(Jamies_list, Drews_list))
# 4. Use a list comprehension to create a list of squared numbers(n * n). The
# function receives the variables start and end, and returns a list of squares
# of consecutive numbers between start and end inclusively.
# For example, squared(2, 3) should return [4, 9].
def squares(start, end):
return [x * x for x in range(start, end + 1)]
print(squares(2, 3)) # Should be [4, 9]
print(squares(1, 5)) # Should be [1, 4, 9, 16, 25]
print(squares(0, 10)) # Should be [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
# 5. Complete the code to iterate through the keys and values of the
# car_prices dictionary, printing out some information about each one.
def car_listing(car_prices):
result = ""
for name, price in car_prices.items():
result += "{} costs {} dollars".format(name, price) + "\n"
return result
print(car_listing({"Kia Soul":19000, "Lamborghini Diablo":55000, "Ford Fiesta":13000, "Toyota Prius":24000}))
# 6. Use a dictionary to count the frequency of letters in the input string. Only
# letters should be counted, not blank spaces, numbers or punctuation.
# Upper case should be considered the same as lower case. For example,
# count_letters("This is a sentence.") should return {'t':2, 'h':1, 'i':2, 's':3, 'a':
# 1, 'e':3, 'n':2, 'c':1}
def count_letters(text):
result = {}
# Go through each letter in the text
for letter in text:
# Check if the letter needs to be counted or not
if letter.isalpha():
if letter.lower() not in result:
result[letter.lower()] = 0
# Add or increment the value in the dictionary
result[letter.lower()] += 1
return result
print(count_letters("AaBbCc"))
# Should be {'a': 2, 'b': 2, 'c': 2}
print(count_letters("Math is fun! 2+2=4"))
# Should be {'m': 1, 'a': 1, 't': 1, 'h': 1, 'i': 1, 's': 1, 'f': 1, 'u': 1, 'n': 1}
print(count_letters("This is a sentence."))
# Should be {'t': 2, 'h': 1, 'i': 2, 's': 3, 'a': 1, 'e': 3, 'n': 2, 'c': 1}
animal = "Hippopotamus"
print(animal[3:6])
# opo
print(animal[-5])
# t
print(animal[10:])
# s
# 9. What doest the list "colors" contain after these commands are executed?
colors = ["red", "white", "blue"]
colors.insert(2, "yellow")
print(colors)
# 10. What do the following commands return?
host_addresses = {"router": "192.168.1.1", "localhost": "127.0.0.1", "google": "8.8.8.8"}
print(host_addresses.keys())
def combine_guests(guests1, guests2):
# guests1 is the one who will be added to guests2
#
for guest, number in guests1.items():
if guest not in guests2:
guests2[guest] = number
guests2[guest] += number
return guests2
Rorys_guests = { "Adam":2, "Brenda":3, "David":1, "Jose":3, "Charlotte":2, "Terry":1, "Robert":4}
Taylors_guests = { "David":4, "Nancy":1, "Robert":2, "Adam":1, "Samantha":3, "Chris":5}
print(combine_guests(Rorys_guests, Taylors_guests))
|
x=list(input())
y=list(input())
x.reverse()
y.reverse()
updi=False
a=max(x,y)
b=min(x,y)
out=[]
for i in range(len(a)):
tem1=int(a[i])
try:
tem2=int(b[i])
pass
except :
tem2=0
tem=tem1+tem2
tem= tem+1 if updi else tem
out.insert(0,str(tem%10))
updi= tem/10>=1
if updi and len(a)-1==i:
out.insert(0,str(1))
# print(out)
print("".join(out))
|
sns.catplot(data=density_mean, kind="bar",
x='Bacterial_genotype',
y='optical_density',
hue='Phage_t',
row="experiment_time_h",
sharey=False,
aspect=3, height=3,
palette="colorblind")
|
"""matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matriz[0][0])
print(matriz[0][1])
print(matriz[0][2])
print(matriz[1][0])
print(matriz[1][1])
print(matriz[1][2])
print(matriz[2][0])
print(matriz[2][1])
print(matriz[2][2])
print(matriz[0][0] + matriz[0][1] + matriz[0][2] + matriz[1][0] + matriz[1][1] + matriz[1][2] + matriz[2][0] + matriz[2][1] + matriz[2][2])"""
matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
soma = 0
for linha in range(3):
for coluna in range(3):
print(matriz[linha][coluna])
soma += matriz[linha][coluna]
print(soma)
|
# -*- coding:utf-8 -*-
"""This module is used to test call stack"""
# def greet(name):
# print(name)
# fun(name)
# print('bye bye !!!')
# bye()
#
#
# def fun(name):
# print('how are you', name)
#
#
# def bye():
# print('good bye')
#
#
# greet('feifei')
def fact(x):
if x == 1:
return 1
else:
return x * fact(x - 1)
print(fact(3))
|
# Copyright 2019 Google LLC
#
# 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.
"""Constants used acros google.cloud.storage modules."""
# Storage classes
STANDARD_STORAGE_CLASS = "STANDARD"
"""Storage class for objects accessed more than once per month.
See: https://cloud.google.com/storage/docs/storage-classes
"""
NEARLINE_STORAGE_CLASS = "NEARLINE"
"""Storage class for objects accessed at most once per month.
See: https://cloud.google.com/storage/docs/storage-classes
"""
COLDLINE_STORAGE_CLASS = "COLDLINE"
"""Storage class for objects accessed at most once per year.
See: https://cloud.google.com/storage/docs/storage-classes
"""
ARCHIVE_STORAGE_CLASS = "ARCHIVE"
"""Storage class for objects accessed less frequently than once per year.
See: https://cloud.google.com/storage/docs/storage-classes
"""
MULTI_REGIONAL_LEGACY_STORAGE_CLASS = "MULTI_REGIONAL"
"""Legacy storage class.
Alias for :attr:`STANDARD_STORAGE_CLASS`.
Can only be used for objects in buckets whose
:attr:`~google.cloud.storage.bucket.Bucket.location_type` is
:attr:`~google.cloud.storage.bucket.Bucket.MULTI_REGION_LOCATION_TYPE`.
See: https://cloud.google.com/storage/docs/storage-classes
"""
REGIONAL_LEGACY_STORAGE_CLASS = "REGIONAL"
"""Legacy storage class.
Alias for :attr:`STANDARD_STORAGE_CLASS`.
Can only be used for objects in buckets whose
:attr:`~google.cloud.storage.bucket.Bucket.location_type` is
:attr:`~google.cloud.storage.bucket.Bucket.REGION_LOCATION_TYPE`.
See: https://cloud.google.com/storage/docs/storage-classes
"""
DURABLE_REDUCED_AVAILABILITY_LEGACY_STORAGE_CLASS = "DURABLE_REDUCED_AVAILABILITY"
"""Legacy storage class.
Similar to :attr:`NEARLINE_STORAGE_CLASS`.
"""
# Location types
MULTI_REGION_LOCATION_TYPE = "multi-region"
"""Location type: data will be replicated across regions in a multi-region.
Provides highest availability across largest area.
"""
REGION_LOCATION_TYPE = "region"
"""Location type: data will be stored within a single region.
Provides lowest latency within a single region.
"""
DUAL_REGION_LOCATION_TYPE = "dual-region"
"""Location type: data will be stored within two primary regions.
Provides high availability and low latency across two regions.
"""
# Internal constants
_DEFAULT_TIMEOUT = 60 # in seconds
"""The default request timeout in seconds if a timeout is not explicitly given.
"""
# Public Access Prevention
PUBLIC_ACCESS_PREVENTION_ENFORCED = "enforced"
"""Enforced public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
PUBLIC_ACCESS_PREVENTION_UNSPECIFIED = "unspecified"
"""Unspecified public access prevention value.
DEPRECATED: Use 'PUBLIC_ACCESS_PREVENTION_INHERITED' instead.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
PUBLIC_ACCESS_PREVENTION_INHERITED = "inherited"
"""Inherited public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
RPO_ASYNC_TURBO = "ASYNC_TURBO"
"""Turbo Replication RPO
See: https://cloud.google.com/storage/docs/managing-turbo-replication
"""
RPO_DEFAULT = "DEFAULT"
"""Default RPO
See: https://cloud.google.com/storage/docs/managing-turbo-replication
"""
|
class WolphinException(Exception):
"""
Base class for wolphin related exceptions
"""
def __init__(self, message=None):
"""
WolphinException constructor
:param message: error message for the exception
"""
self.message = message
def __str__(self):
return self.message
class NoRunningInstances(WolphinException):
"""
Raised when a project has no running instances.
"""
pass
class EC2InstanceLimitExceeded(WolphinException):
"""
Raised when ec2 instance limit is exceeded.
"""
pass
class InvalidWolphinConfiguration(WolphinException):
"""
Raised when an invalid wolphin configuration is encountered.
"""
pass
class SSHTimeoutError(WolphinException):
"""
Raised when all of a project's instances could not be made ssh-ready.
"""
pass
|
def sub(
_str:str,
_from:int,
_to:int=None
) -> str:
_to = _from + 1 if _to == None else _to
return _str[_from:_to]
def tostr(
val,
_hex:bool=False
) -> str:
return str(val) if not _hex else str(hex(val))
def tonum(
_str:str
) -> float or int:
try:
return int(_str)
except ValueError:
return float(_str)
|
# Invert Binary Tree: https://leetcode.com/problems/invert-binary-tree/
# Given the root of a binary tree, invert the tree, and return its root.
# Okay this is another problem where we use a dfs solution except we should just be flipping as we go down
# Basic solution
class Solution:
def invertTree(self, root):
def dfs(root):
if root:
root.left, root.right = root.right, root.left
dfs(root.left)
dfs(root.right)
dfs(root)
return root
# Can we improve?
# we can probably remove the nested function and we can call the invert while we swap
# This was accepted and a little bit better
class Solution2:
def invertTree(self, root):
if root is None:
return None
root.left, root.right = self.invertTree(
root.right), self.invertTree(root.left)
return root
# Can we improve?
# we can probably remove the nested function and we can call the invert while we swap
# Also we could probably do this iteratively to reduce stack to a deque for improvements
# Score Card
# Did I need hints? Nope
# Did you finish within 30 min? Yup 10 min
# Was the solution optimal? Yes although I didn't write out the optimal version with the iterative but it is really the same thing
# Were there any bugs? Nope
# 5 5 5 5 = 5
|
class FloatMana:
def __init__(self, content):
pass
|
# Applied once at the beginning of the algorithm.
INITIAL_PERMUTATION = [
58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
61, 53, 45, 37, 29, 21, 13, 5,
63, 55, 47, 39, 31, 23, 15, 7,
]
# Inverse of INITIAL_PERMUTATION. Applied once at the end of the algorithm.
FINAL_PERMUTATION = [
40, 8, 48, 16, 56, 24, 64, 32,
39, 7, 47, 15, 55, 23, 63, 31,
38, 6, 46, 14, 54, 22, 62, 30,
37, 5, 45, 13, 53, 21, 61, 29,
36, 4, 44, 12, 52, 20, 60, 28,
35, 3, 43, 11, 51, 19, 59, 27,
34, 2, 42, 10, 50, 18, 58, 26,
33, 1, 41, 9, 49, 17, 57, 25,
]
# Applied to the half-block at the beginning of the Fiestel function.
EXPANSION = [
32, 1, 2, 3, 4, 5,
4, 5, 6, 7, 8, 9,
8, 9, 10, 11, 12, 13,
12, 13, 14, 15, 16, 17,
16, 17, 18, 19, 20, 21,
20, 21, 22, 23, 24, 25,
24, 25, 26, 27, 28, 29,
28, 29, 30, 31, 32, 1,
]
# Applied at the end of the Feistel function.
PERMUTATION = [
16, 7, 20, 21, 29, 12, 28, 17,
1, 15, 23, 26, 5, 18, 31, 10,
2, 8, 24, 14, 32, 27, 3, 9,
19, 13, 30, 6, 22, 11, 4, 25,
]
# Converts from full 64-bit key to two key halves: left and right. Only 48
# bits from the original key are used.
PERMUTED_CHOICE_1_LEFT = [
57, 49, 41, 33, 25, 17, 9,
1, 58, 50, 42, 34, 26, 18,
10, 2, 59, 51, 43, 35, 27,
19, 11, 3, 60, 52, 44, 36,
]
PERMUTED_CHOICE_1_RIGHT = [
63, 55, 47, 39, 31, 23, 15,
7, 62, 54, 46, 38, 30, 22,
14, 6, 61, 53, 45, 37, 29,
21, 13, 5, 28, 20, 12, 4,
]
# Converts the shifted right and left key halves (concatenated together) into
# the subkey for the round (input into Feistel function).
PERMUTED_CHOICE_2 = [
14, 17, 11, 24, 1, 5, 3, 28,
15, 6, 21, 10, 23, 19, 12, 4,
26, 8, 16, 7, 27, 20, 13, 2,
41, 52, 31, 37, 47, 55, 30, 40,
51, 45, 33, 48, 44, 49, 39, 56,
34, 53, 46, 42, 50, 36, 29, 32,
]
# S-Boxes
# SBOX[outer 2 bits][inner 4 bits]
# Each value represents 4 bits that the 6-bit input is mapped to.
SBOX_1 = [
[14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7],
[0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8],
[4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0],
[15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13],
]
SBOX_2 = [
[15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10],
[3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5],
[0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15],
[13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9],
]
SBOX_3 = [
[10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8],
[13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1],
[13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7],
[1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12],
]
SBOX_4 = [
[7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15],
[13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9],
[10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4],
[3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14],
]
SBOX_5 = [
[2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9],
[14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6],
[4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14],
[11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3],
]
SBOX_6 = [
[12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11],
[10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8],
[9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6],
[4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13],
]
SBOX_7 = [
[4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1],
[13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6],
[1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2],
[6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12],
]
SBOX_8 = [
[13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7],
[1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2],
[7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8],
[2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11],
]
SBOXES = [SBOX_1, SBOX_2, SBOX_3, SBOX_4, SBOX_5, SBOX_6, SBOX_7, SBOX_8]
# How much the left and right key halves are shifted every round.
KEY_SHIFT_AMOUNTS = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]
|
# -*- coding:utf-8 -*-
# coding=<utf8>
# Оперативная память
ROM_form_factors = (('SIMM', 'SIMM'), ('DIMM', 'DIMM'), ('FB-DIMM', 'FB-DIMM'), ('SODIMM', 'SODIMM'), ('MicroDIMM', 'MicroDIMM'), ('RIMM', 'RIMM'))
ROM_type=(('DDR', 'DDR'), ('DDR2', 'DDR2'), ('DDR3', 'DDR3'), ('RDRAM', 'RDRAM'), ('SDRAM', 'SDRAM'))
ROM_firms = (('Corsair', 'Corsair'), ('Crucial', 'Crucial'), ('Foxline', 'Foxline'), ('G.SKILL', 'G.SKILL'), ('HP', 'HP'), ('Hynix', 'Hynix'), ('Kingmax', 'Kingmax'), ('Kingston', 'Kingston'), ('Patriot Memory', 'Patriot Memory'), ('Samsung', 'Samsung'), ('Silicon Power', 'Silicon Power'), ('Transcend', 'Transcend'), ('Acer', 'Acer'), ('ADATA', 'ADATA'), ('AMD', 'AMD'), ('Apacer', 'Apacer'), ('Apple', 'Apple'), ('Ceon', 'Ceon'), ('Chaintech', 'Chaintech'), ('Cisco', 'Cisco'), ('DELL', 'DELL'), ('Digma', 'Digma'), ('Elixir', 'Elixir'), ('EUDAR', 'EUDAR'), ('Exceleram', 'Exceleram'), ('Fujitsu', 'Fujitsu'), ('Fujitsu-Siemens', 'Fujitsu-Siemens'), ('Geil', 'Geil'), ('GoodRAM', 'GoodRAM'), ('Lenovo', 'Lenovo'), ('Micron', 'Micron'), ('Mushkin', 'Mushkin'), ('Nanya', 'Nanya'), ('NCP', 'NCP'), ('OCZ', 'OCZ'), ('PQI', 'PQI'), ('Qumo', 'Qumo'), ('Sony', 'Sony'), ('Spectek', 'Spectek'), ('Sun Microsystems', 'Sun Microsystems'), ('Super Talent', 'Super Talent'), ('TakeMS', 'TakeMS'), ('Team Group', 'Team Group'), ('Toshiba', 'Toshiba'), ('TwinMOS', 'TwinMOS'))
ROM_V = (('128', '128'), ('512', '512'), ('1024', '1024'), ('2048', '2048'), ('4096', '4096'), ('8192', '8192'))
ROM_clock_frequency = (('100 MHz', '100 MHz'), ('1000 MHz', '1000 MHz'), ('1066 MHz', '1066 MHz'), ('1100 MHz', '1100 MHz'), ('1200 MHz', '1200 MHz'), ('133 MHz', '133 MHz'), ('1333 MHz', '1333 MHz'), ('1375 MHz', '1375 MHz'), ('1600 MHz', '1600 MHz'), ('1750 MHz', '1750 MHz'), ('1800 MHz', '1800 MHz'), ('1866 MHz', '1866 MHz'), ('200 MHz', '200 MHz'), ('2000 MHz', '2000 MHz'), ('2133 MHz', '2133 MHz'), ('2200 MHz', '2200 MHz'), ('2250 MHz', '2250 MHz'), ('2300 MHz', '2300 MHz'), ('2400 MHz', '2400 MHz'), ('2600 MHz', '2600 MHz'), ('266 MHz', '266 MHz'), ('2666 MHz', '2666 MHz'), ('2800 MHz', '2800 MHz'), ('333 MHz', '333 MHz'), ('400 MHz', '400 MHz'), ('500 MHz', '500 MHz'), ('533 MHz', '533 MHz'), ('66 MHz', '66 MHz'), ('667 MHz', '667 MHz'), ('750 MHz', '750 MHz'), ('800 MHz', '800 MHz'))
ROM_throughput = (("Don't Know","Don't Know"),('10600 \xd0\x9c\xd0\xb1/\xd1\x81', '10600 \xd0\x9c\xd0\xb1/\xd1\x81'), ('10660 \xd0\x9c\xd0\xb1/\xd1\x81', '10660 \xd0\x9c\xd0\xb1/\xd1\x81'), ('10666 \xd0\x9c\xd0\xb1/\xd1\x81', '10666 \xd0\x9c\xd0\xb1/\xd1\x81'), ('10700 \xd0\x9c\xd0\xb1/\xd1\x81', '10700 \xd0\x9c\xd0\xb1/\xd1\x81'), ('12800 \xd0\x9c\xd0\xb1/\xd1\x81', '12800 \xd0\x9c\xd0\xb1/\xd1\x81'), ('14000 \xd0\x9c\xd0\xb1/\xd1\x81', '14000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('14400 \xd0\x9c\xd0\xb1/\xd1\x81', '14400 \xd0\x9c\xd0\xb1/\xd1\x81'), ('14900 \xd0\x9c\xd0\xb1/\xd1\x81', '14900 \xd0\x9c\xd0\xb1/\xd1\x81'), ('15000 \xd0\x9c\xd0\xb1/\xd1\x81', '15000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('1600 \xd0\x9c\xd0\xb1/\xd1\x81', '1600 \xd0\x9c\xd0\xb1/\xd1\x81'), ('16000 \xd0\x9c\xd0\xb1/\xd1\x81', '16000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('17000 \xd0\x9c\xd0\xb1/\xd1\x81', '17000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('17066 \xd0\x9c\xd0\xb1/\xd1\x81', '17066 \xd0\x9c\xd0\xb1/\xd1\x81'), ('17600 \xd0\x9c\xd0\xb1/\xd1\x81', '17600 \xd0\x9c\xd0\xb1/\xd1\x81'), ('18000 \xd0\x9c\xd0\xb1/\xd1\x81', '18000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('18400 \xd0\x9c\xd0\xb1/\xd1\x81', '18400 \xd0\x9c\xd0\xb1/\xd1\x81'), ('19200 \xd0\x9c\xd0\xb1/\xd1\x81', '19200 \xd0\x9c\xd0\xb1/\xd1\x81'), ('20800 \xd0\x9c\xd0\xb1/\xd1\x81', '20800 \xd0\x9c\xd0\xb1/\xd1\x81'), ('2100 \xd0\x9c\xd0\xb1/\xd1\x81', '2100 \xd0\x9c\xd0\xb1/\xd1\x81'), ('21300 \xd0\x9c\xd0\xb1/\xd1\x81', '21300 \xd0\x9c\xd0\xb1/\xd1\x81'), ('21330 \xd0\x9c\xd0\xb1/\xd1\x81', '21330 \xd0\x9c\xd0\xb1/\xd1\x81'), ('22400 \xd0\x9c\xd0\xb1/\xd1\x81', '22400 \xd0\x9c\xd0\xb1/\xd1\x81'), ('2700 \xd0\x9c\xd0\xb1/\xd1\x81', '2700 \xd0\x9c\xd0\xb1/\xd1\x81'), ('3200 \xd0\x9c\xd0\xb1/\xd1\x81', '3200 \xd0\x9c\xd0\xb1/\xd1\x81'), ('4000 \xd0\x9c\xd0\xb1/\xd1\x81', '4000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('4200 \xd0\x9c\xd0\xb1/\xd1\x81', '4200 \xd0\x9c\xd0\xb1/\xd1\x81'), ('4300 \xd0\x9c\xd0\xb1/\xd1\x81', '4300 \xd0\x9c\xd0\xb1/\xd1\x81'), ('5300 \xd0\x9c\xd0\xb1/\xd1\x81', '5300 \xd0\x9c\xd0\xb1/\xd1\x81'), ('6000 \xd0\x9c\xd0\xb1/\xd1\x81', '6000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('6400 \xd0\x9c\xd0\xb1/\xd1\x81', '6400 \xd0\x9c\xd0\xb1/\xd1\x81'), ('8000 \xd0\x9c\xd0\xb1/\xd1\x81', '8000 \xd0\x9c\xd0\xb1/\xd1\x81'), ('8500 \xd0\x9c\xd0\xb1/\xd1\x81', '8500 \xd0\x9c\xd0\xb1/\xd1\x81'), ('8800 \xd0\x9c\xd0\xb1/\xd1\x81', '8800 \xd0\x9c\xd0\xb1/\xd1\x81'), ('9600 \xd0\x9c\xd0\xb1/\xd1\x81', '9600 \xd0\x9c\xd0\xb1/\xd1\x81'))
# Кулеры
Cooler_firms = (('Arctic Cooling', 'Arctic Cooling'), ('Cooler Master', 'Cooler Master'), ('Corsair', 'Corsair'), ('Deepcool', 'Deepcool'), ('GlacialTech', 'GlacialTech'), ('Ice Hammer', 'Ice Hammer'), ('Noctua', 'Noctua'), ('Scythe', 'Scythe'), ('Thermalright', 'Thermalright'), ('Thermaltake', 'Thermaltake'), ('Titan', 'Titan'), ('Zalman', 'Zalman'), ('@Lux', '@Lux'), ('AeroCool', 'AeroCool'), ('AIC', 'AIC'), ('Akasa', 'Akasa'), ('Alpenfoehn', 'Alpenfoehn'), ('Antec', 'Antec'), ('ASUS', 'ASUS'), ('Auras', 'Auras'), ('AVC', 'AVC'), ('be quiet!', 'be quiet!'), ('BitFenix', 'BitFenix'), ('Chieftec', 'Chieftec'), ('Coolcox', 'Coolcox'), ('Cooler Tech', 'Cooler Tech'), ('CoolerBoss', 'CoolerBoss'), ('CROWN', 'CROWN'), ('DELL', 'DELL'), ('DELTA', 'DELTA'), ('Dynatron', 'Dynatron'), ('Ebmpapst', 'Ebmpapst'), ('Enermax', 'Enermax'), ('Espada', 'Espada'), ('Evercool', 'Evercool'), ('Exegate', 'Exegate'), ('Floston', 'Floston'), ('Foxconn', 'Foxconn'), ('G.SKILL', 'G.SKILL'), ('GELID Solutions', 'GELID Solutions'), ('Gembird', 'Gembird'), ('GRAND', 'GRAND'), ('Gresso', 'Gresso'), ('Intel', 'Intel'), ('Jetart', 'Jetart'), ('Kinghun', 'Kinghun'), ('Koolance', 'Koolance'), ('larkooler', 'larkooler'), ('LEPA', 'LEPA'), ('LogicPower', 'LogicPower'), ('Manhattan', 'Manhattan'), ('Maxtron', 'Maxtron'), ('NANOXIA', 'NANOXIA'), ('Nexus', 'Nexus'), ('NOISEBLOCKER', 'NOISEBLOCKER'), ('NZXT', 'NZXT'), ('OCZ', 'OCZ'), ('Pangu', 'Pangu'), ('PCcooler', 'PCcooler'), ('Phanteks', 'Phanteks'), ('Prolimatech', 'Prolimatech'), ('Revoltec', 'Revoltec'), ('SilenX', 'SilenX'), ('SilverStone', 'SilverStone'), ('Speeze', 'Speeze'), ('Spire', 'Spire'), ('Spiriter', 'Spiriter'), ('STM', 'STM'), ('SUNON', 'SUNON'), ('Supermicro', 'Supermicro'), ('Sven', 'Sven'), ('ThermalFly', 'ThermalFly'), ('Vantec', 'Vantec'), ('Vizo', 'Vizo'), ('Xigmatek', 'Xigmatek'), ('Xilence', 'Xilence'), ('YATE LOON', 'YATE LOON'), ('ZAWARD', 'ZAWARD'), ('ZEROtherm', 'ZEROtherm'))
Cooler_destination = (('\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xb2\xd0\xb8\xd0\xb4\xd0\xb5\xd0\xbe\xd0\xba\xd0\xb0\xd1\x80\xd1\x82\xd1\x8b', '\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xb2\xd0\xb8\xd0\xb4\xd0\xb5\xd0\xbe\xd0\xba\xd0\xb0\xd1\x80\xd1\x82\xd1\x8b'), ('\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xb2\xd0\xb8\xd0\xbd\xd1\x87\xd0\xb5\xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb0', '\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xb2\xd0\xb8\xd0\xbd\xd1\x87\xd0\xb5\xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb0'), ('\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xba\xd0\xbe\xd1\x80\xd0\xbf\xd1\x83\xd1\x81\xd0\xb0', '\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xba\xd0\xbe\xd1\x80\xd0\xbf\xd1\x83\xd1\x81\xd0\xb0'), ('\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xbf\xd0\xb0\xd0\xbc\xd1\x8f\xd1\x82\xd0\xb8', '\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xbf\xd0\xb0\xd0\xbc\xd1\x8f\xd1\x82\xd0\xb8'), ('\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xbf\xd1\x80\xd0\xbe\xd1\x86\xd0\xb5\xd1\x81\xd1\x81\xd0\xbe\xd1\x80\xd0\xb0', '\xd0\xb4\xd0\xbb\xd1\x8f \xd0\xbf\xd1\x80\xd0\xbe\xd1\x86\xd0\xb5\xd1\x81\xd1\x81\xd0\xbe\xd1\x80\xd0\xb0'), ('\xd0\xb4\xd0\xbb\xd1\x8f \xd1\x87\xd0\xb8\xd0\xbf\xd1\x81\xd0\xb5\xd1\x82\xd0\xb0', '\xd0\xb4\xd0\xbb\xd1\x8f \xd1\x87\xd0\xb8\xd0\xbf\xd1\x81\xd0\xb5\xd1\x82\xd0\xb0'),("CPU fan","CPU fan"))
Cooler_sockets = (('Socket A(462)/370', 'Socket A(462)/370'), ('Socket AM2', 'Socket AM2'), ('Socket AM2+', 'Socket AM2+'), ('Socket AM3/AM3+/FM1', 'Socket AM3/AM3+/FM1'), ('Socket FM2', 'Socket FM2'), ('Socket F/\xd0\xa132', 'Socket F/\xd0\xa132'), ('Socket F+', 'Socket F+'), ('Socket G34', 'Socket G34'), ('Socket 754', 'Socket 754'), ('Socket 939', 'Socket 939'), ('Socket 940', 'Socket 940'), ('Socket 478', 'Socket 478'), ('Socket 775', 'Socket 775'), ('Socket 1155/1156', 'Socket 1155/1156'), ('Socket 1366', 'Socket 1366'), ('Socket 1567', 'Socket 1567'), ('Socket 2011', 'Socket 2011'), ('Socket 603', 'Socket 603'), ('Socket 604', 'Socket 604'), ('Socket 771', 'Socket 771'))
Cooler_connector = (('3-pin', '3-pin'), ('4-pin Molex', '4-pin Molex'), ('4-pin PWM', '4-pin PWM'))
# Хранилища данных
Storage_firms = (('ADATA', 'ADATA'), ('Hitachi', 'Hitachi'), ('Intel', 'Intel'), ('Kingston', 'Kingston'), ('OCZ', 'OCZ'), ('Plextor', 'Plextor'), ('Seagate', 'Seagate'), ('Silicon Power', 'Silicon Power'), ('Synology', 'Synology'), ('Toshiba', 'Toshiba'), ('Transcend', 'Transcend'), ('Western Digital', 'Western Digital'))
Storage_form_factor = (('1.8"', '1.8"'), ('2.5"', '2.5"'), ('3.5"', '3.5"'))
Storage_interfaces = (('SATA', 'SATA'), ('IDE', 'IDE'), ('USB', 'USB'), ('FireWire', 'FireWire'), ('PCI-E', 'PCI-E'), ('SCSI', 'SCSI'), ('SAS', 'SAS'), ('eSATA', 'eSATA'), ('FireWir e800', 'FireWir e800'), ('Fibre Channel', 'Fibre Channel'), ('Thunderbolt', 'Thunderbolt'), ('HSDL', 'HSDL'), ('mSata', 'mSata'), ('Ethernet', 'Ethernet'), ('ExpressCard/34', 'ExpressCard/34'), ('ZIF 40 pin', 'ZIF 40 pin'), ('mini PCI-E', 'mini PCI-E'))
Storage_rpm = (('3600 rpm', '3600 rpm'), ('4200 rpm', '4200 rpm'), ('5200 rpm', '5200 rpm'), ('5400 rpm', '5400 rpm'), ('5700 rpm', '5700 rpm'), ('5900 rpm', '5900 rpm'), ('7200 rpm', '7200 rpm'), ('10000 rpm', '10000 rpm'), ('10025 rpm', '10025 rpm'), ('10075 rpm', '10075 rpm'), ('10500 rpm', '10500 rpm'), ('15000 rpm', '15000 rpm'))
# Колонки и т.п.
Acoustics_firms = (('Creative', 'Creative'), ('Defender', 'Defender'), ('Dialog', 'Dialog'), ('Edifier', 'Edifier'), ('Genius', 'Genius'), ('Harman/Kardon', 'Harman/Kardon'), ('JBL', 'JBL'), ('JetBalance', 'JetBalance'), ('Logitech', 'Logitech'), ('Microlab', 'Microlab'), ('Sven', 'Sven'), ('TopDevice', 'TopDevice'), ('', ''), ('4U', '4U'), ('A4Tech', 'A4Tech'), ('ACME', 'ACME'), ('Acoustic Energy', 'Acoustic Energy'), ('AirTone', 'AirTone'), ('Altec Lansing', 'Altec Lansing'), ('Arctic', 'Arctic'), ('ASUS', 'ASUS'), ('AVE', 'AVE'), ('BBK', 'BBK'), ('Bliss', 'Bliss'), ('Bose', 'Bose'), ('Bowers & Wilkins', 'Bowers & Wilkins'), ('Canyon', 'Canyon'), ('CBR', 'CBR'), ('Cirkuit Planet', 'Cirkuit Planet'), ('Codegen SuperPower', 'Codegen SuperPower'), ('Comep', 'Comep'), ('Cooler Master', 'Cooler Master'), ('Corsair', 'Corsair'), ('CROWN', 'CROWN'), ('DELL', 'DELL'), ('Delux', 'Delux'), ('DeTech', 'DeTech'), ('DIGITUS', 'DIGITUS'), ('Divoom', 'Divoom'), ('DTS', 'DTS'), ('Easy Touch', 'Easy Touch'), ('ENDEVER', 'ENDEVER'), ('Enzatec', 'Enzatec'), ('Espada', 'Espada'), ('F&D', 'F&D'), ('Fujitsu', 'Fujitsu'), ('Fujitsu-Siemens', 'Fujitsu-Siemens'), ('Gear Head', 'Gear Head'), ('Gembird', 'Gembird'), ('Gemix', 'Gemix'), ('GIGABYTE', 'GIGABYTE'), ('GoldenField', 'GoldenField'), ('GRAND', 'GRAND'), ('Grundig', 'Grundig'), ('HAMA', 'HAMA'), ('Hardity', 'Hardity'), ('Hercules', 'Hercules'), ('HP', 'HP'), ('iLuv', 'iLuv'), ('Jet.A', 'Jet.A'), ('k-3', 'k-3'), ('Kinghun', 'Kinghun'), ('Klipsch', 'Klipsch'), ('KME', 'KME'), ('Konoos', 'Konoos'), ('Kreolz', 'Kreolz'), ('KWorld', 'KWorld'), ('Labtec', 'Labtec'), ('LOGICFOX', 'LOGICFOX'), ('Manhattan', 'Manhattan'), ('MB Sound', 'MB Sound'), ('Media-Tech', 'Media-Tech'), ('Mobiledata', 'Mobiledata'), ('Modecom', 'Modecom'), ('MSI', 'MSI'), ('NAKATOMI', 'NAKATOMI'), ('NeoDrive', 'NeoDrive'), ('ORIENT', 'ORIENT'), ('Ozaki', 'Ozaki'), ('Perfeo', 'Perfeo'), ('Philips', 'Philips'), ('Prestigio', 'Prestigio'), ('Ritmix', 'Ritmix'), ('Samsung', 'Samsung'), ('Sanyoo', 'Sanyoo'), ('Scythe', 'Scythe'), ('SmartTrack', 'SmartTrack'), ('SonicGear', 'SonicGear'), ('Sony', 'Sony'), ('Sound Pro', 'Sound Pro'), ('Soundtronix', 'Soundtronix'), ('SPEED', 'SPEED'), ('SPEEDLINK', 'SPEEDLINK'), ('Sweex', 'Sweex'), ('T&D', 'T&D'), ("T'nB", "T'nB"), ('Targa', 'Targa'), ('Titan', 'Titan'), ('Trust', 'Trust'), ('UNITY', 'UNITY'), ('Velton', 'Velton'), ('Vicsone', 'Vicsone'), ('VIGOOLE', 'VIGOOLE'), ('X5Tech', 'X5Tech'), ('XtremeMac', 'XtremeMac'), ('Yubz', 'Yubz'), ('Zalman', 'Zalman'))
Acoustics_type = (('1.0', '1.0'), ('2.0', '2.0'), ('2.1', '2.1'), ('4.1', '4.1'), ('5.0', '5.0'), ('5.1', '5.1'), ('6.1', '6.1'))
# Телефоны
Telephone_firms = (("'Senao", "'Senao"), ("'\\u0414\\u0438\\u0430\\u043b\\u043e\\u0433", "'\\u0414\\u0438\\u0430\\u043b\\u043e\\u0433"), ("'SUPRA", "'SUPRA"), ("'Voxtel", "'Voxtel"), ("'SwissVoice", "'SwissVoice"), ("'\\u041f\\u0430\\u043b\\u0438\\u0445\\u0430", "'\\u041f\\u0430\\u043b\\u0438\\u0445\\u0430"), ("'General Electric", "'General Electric"), ("'Horizont", "'Horizont"), ("'\\u041a\\u041e\\u041c\\u041c\\u0422\\u0415\\u041b", "'\\u041a\\u041e\\u041c\\u041c\\u0422\\u0415\\u041b"), ("'LG", "'LG"), ("'Goodwin", "'Goodwin"), ("'Akai", "'Akai"), ("'Bang & Olufsen", "'Bang & Olufsen"), ("'ALCOM", "'ALCOM"), ("'Plantronics", "'Plantronics"), ("'Siemens", "'Siemens"), ("'\\u041c\\u042d\\u041b\\u0422", "'\\u041c\\u042d\\u041b\\u0422"), ("'Komtel", "'Komtel"), ("'Ritmix", "'Ritmix"), ("'Philips", "'Philips"), ("'Motorola", "'Motorola"), ("'BBK", "'BBK"), ("'Alcatel", "'Alcatel"), ("'Intego", "'Intego"), ("'\\u0412\\u0435\\u043a\\u0442\\u043e\\u0440", "'\\u0412\\u0435\\u043a\\u0442\\u043e\\u0440"), ("'Rolsen", "'Rolsen"), ("'Gigaset", "'Gigaset"), ("'Sagem", "'Sagem"), ("'Euroline", "'Euroline"), ("'\\u0422\\u0435\\u043b\\u0444\\u043e\\u043d", "'\\u0422\\u0435\\u043b\\u0444\\u043e\\u043d"), ("'\\u0424\\u0430\\u044d\\u0442\\u043e\\u043d", "'\\u0424\\u0430\\u044d\\u0442\\u043e\\u043d"), ("'\\u041a\\u043e\\u043b\\u0438\\u0431\\u0440\\u0438", "'\\u041a\\u043e\\u043b\\u0438\\u0431\\u0440\\u0438"), ("'teleGEO", "'teleGEO"), ("'\\u0422\\u0435\\u043b\\u043b\\u0443\\u0440", "'\\u0422\\u0435\\u043b\\u043b\\u0443\\u0440"), ("'LG-Ericsson", "'LG-Ericsson"), ("'Switel", "'Switel"), ("'LG-Nortel", "'LG-Nortel"), ("'Binatone", "'Binatone"), ("'Soul Electronics", "'Soul Electronics"), ("'TeXet", "'TeXet"), ("'Premier", "'Premier"), ("'Unitel City", "'Unitel City"), ("'Orion", "'Orion"), ("'Rotex", "'Rotex"), ("'\\u0422\\u0435\\u043b\\u0442\\u0430", "'\\u0422\\u0435\\u043b\\u0442\\u0430"), ("'Shivaki", "'Shivaki"), ("'Panasonic", "'Panasonic"))
Telephone_frequency = (('1880-1900 MHz', '1880-1900 MHz'), ('240-390 MHz', '240-390 MHz'), ('307-343 MHz', '307-343 MHz'), ('31-40 MHz', '31-40 MHz'), ('900/2400 MHz', '900/2400 MHz'))
# Батарейки и аккумуляторы
Battery_firms = (('Energizer', 'Energizer'), ('Duracell', 'Duracell'))
Battery_type = (('AA', 'AA'), ('AAA', 'AAA'), ('C', 'C'), ('D', 'D'), ('PP3 (Krona)', 'PP3 (Krona)'))
Optical_Drive_firms = (('3Q', '3Q'), ('Apple', 'Apple'), ('ASUS', 'ASUS'), ('HP', 'HP'), ('Lenovo', 'Lenovo'), ('LG', 'LG'), ('LITE-ON', 'LITE-ON'), ('Pioneer', 'Pioneer'), ('Plextor', 'Plextor'), ('Sony NEC Optiarc', 'Sony NEC Optiarc'), ('Toshiba Samsung Storage Technology', 'Toshiba Samsung Storage Technology'), ('Transcend', 'Transcend'), ('Acer', 'Acer'), ('Buffalo', 'Buffalo'), ('Canyon', 'Canyon'), ('DELL', 'DELL'), ('Foxconn', 'Foxconn'), ('Fujitsu', 'Fujitsu'), ('Intel', 'Intel'), ('Iomega', 'Iomega'), ('Kreolz', 'Kreolz'), ('Lacie', 'Lacie'), ('NU', 'NU'), ('ONEXT', 'ONEXT'), ('Panasonic', 'Panasonic'), ('Rovermate', 'Rovermate'), ('Sun Microsystems', 'Sun Microsystems'), ('Supermicro', 'Supermicro'), ('TEAC', 'TEAC'))
Optical_Drive_type = (('BD-RE', 'BD-RE'), ('BD-ROM', 'BD-ROM'), ('BD-ROM/DVD RW', 'BD-ROM/DVD RW'), ('BD-ROM/HD DVD-ROM/DVD RW', 'BD-ROM/HD DVD-ROM/DVD RW'), ('CD-ROM', 'CD-ROM'), ('CD-RW', 'CD-RW'), ('DVD RW', 'DVD RW'), ('DVD RW DL', 'DVD RW DL'), ('DVD-ROM', 'DVD-ROM'), ('DVD/CD-RW', 'DVD/CD-RW'))
Optical_Drive_interfaces = (('eSATA/USB', 'eSATA/USB'), ('Ethernet/USB', 'Ethernet/USB'), ('FireWire', 'FireWire'), ('IDE', 'IDE'), ('SATA', 'SATA'), ('USB', 'USB'))
Network_equipment_firms = (("'Ubiquiti", "'Ubiquiti"), ("'", "'"), ("'Nano", "'Nano"), ("'SIVVA", "'SIVVA"), ("'3COM", "'3COM"), ("'Huawei", "'Huawei"), ("'Winstars", "'Winstars"), ("'CCK", "'CCK"), ("'HAMA", "'HAMA"), ("'Compex", "'Compex"), ("'Linkpro", "'Linkpro"), ("'Galaxy Innovations", "'Galaxy Innovations"), ("'Allied Telesyn", "'Allied Telesyn"), ("'S-iTECH", "'S-iTECH"), ("'Level One", "'Level One"), ("'Skylink", "'Skylink"), ("'Buro", "'Buro"), ("'SPEEDLINK", "'SPEEDLINK"), ("'GIGABYTE", "'GIGABYTE"), ("'DIGITUS", "'DIGITUS"), ("'Rovermate", "'Rovermate"), ("'GetNet", "'GetNet"), ("'Normann", "'Normann"), ("'Porto", "'Porto"), ("'EUSSO", "'EUSSO"), ("'LOGICFOX", "'LOGICFOX"), ("'Mobiledata", "'Mobiledata"), ("'Cisco", "'Cisco"), ("'2N", "'2N"), ("'Z-Com", "'Z-Com"), ("'Pentagram", "'Pentagram"), ("'Carelink", "'Carelink"), ("'Globo", "'Globo"), ("'Edimax", "'Edimax"), ("'TRENDnet", "'TRENDnet"), ("'Alwise", "'Alwise"), ("'Sweex", "'Sweex"), ("'CYBER", "'CYBER"), ("'QTECH", "'QTECH"), ("'Upvel", "'Upvel"), ("'Fortinet", "'Fortinet"), ("'Qbiq", "'Qbiq"), ("'Novatel Wireless", "'Novatel Wireless"), ("'eXtreme", "'eXtreme"), ("'Petatel", "'Petatel"), ("'\\u041c\\u0422\\u0421", "'\\u041c\\u0422\\u0421"), ("'HP", "'HP"), ("'Proxim", "'Proxim"), ("'Espada", "'Espada"), ("'DrayTek", "'DrayTek"), ("'Eye-Fi", "'Eye-Fi"), ("'Cyclone", "'Cyclone"), ("'Emtec", "'Emtec"), ("'Option", "'Option"), ("'STLab", "'STLab"), ("'Yota", "'Yota"), ("'AMX", "'AMX"), ("'X-Micro", "'X-Micro"), ("'Sony", "'Sony"), ("'Throw", "'Throw"), ("'EnGenius", "'EnGenius"), ("'Motorola", "'Motorola"), ("'Linksys", "'Linksys"), ("'Samsung", "'Samsung"), ("'D-link", "'D-link"), ("'U.S.Robotics", "'U.S.Robotics"), ("'Asotel", "'Asotel"), ("'Qumo", "'Qumo"), ("'Deppa", "'Deppa"), ("'NCENTRA", "'NCENTRA"), ("'Loopcomm", "'Loopcomm"), ("'Western Digital", "'Western Digital"), ("'Buffalo", "'Buffalo"), ("'ORIENT", "'ORIENT"), ("'Planet", "'Planet"), ("'MOXA", "'MOXA"), ("'Seowon Intech", "'Seowon Intech"), ("'SIYOTEAM", "'SIYOTEAM"), ("'Nortel", "'Nortel"), ("'CBR", "'CBR"), ("'Terminal Equipment", "'Terminal Equipment"), ("'LogicPower", "'LogicPower"), ("'ASUS", "'ASUS"), ("'BandRich", "'BandRich"), ("'Opticum", "'Opticum"), ("'\\u0422\\u041e\\u041d\\u041a", "'\\u0422\\u041e\\u041d\\u041a"), ("'Novacom Wireless", "'Novacom Wireless"), ("'Senao", "'Senao"), ("'EDUP", "'EDUP"), ("'Vertex", "'Vertex"), ("'Multico", "'Multico"), ("'Alfa Network", "'Alfa Network"), ("'Creative", "'Creative"), ("'Genius", "'Genius"), ("'NeoDrive", "'NeoDrive"), ("'C-net", "'C-net"), ("'SMC", "'SMC"), ("'X-NET", "'X-NET"), ("'Intellinet", "'Intellinet"), ("'Gemix", "'Gemix"), ("'Arctic", "'Arctic"), ("'OXO Electronics", "'OXO Electronics"), ("'Popcorn Hour", "'Popcorn Hour"), ("'3Q", "'3Q"), ("'Symanitron", "'Symanitron"), ("'BBK", "'BBK"), ("'Intel", "'Intel"), ("'ZTE", "'ZTE"), ("'Palmexx", "'Palmexx"), ("'Powchip", "'Powchip"), ("'Grand-X", "'Grand-X"), ("'Sparklan", "'Sparklan"), ("'Euroline", "'Euroline"), ("'TP-LINK", "'TP-LINK"), ("'Media-Tech", "'Media-Tech"), ("'Edge-Core", "'Edge-Core"), ("'x3", "'x3"), ("'MicroNet", "'MicroNet"), ("'Welltech", "'Welltech"), ("'DT-Link", "'DT-Link"), ("'Belkin", "'Belkin"), ("'Surecom", "'Surecom"), ("'Canyon", "'Canyon"), ("'NETGEAR", "'NETGEAR"), ("'Panasonic", "'Panasonic"), ("'Mobidick", "'Mobidick"), ("'Tenda", "'Tenda"), ("'MSI", "'MSI"), ("'Dynamode", "'Dynamode"), ("'LEXAND", "'LEXAND"), ("'Pheenet", "'Pheenet"), ("'Brickcom", "'Brickcom"), ("'CLiPtec", "'CLiPtec"), ("'AirTies", "'AirTies"), ("'ZyXEL", "'ZyXEL"), ("'SerteC", "'SerteC"), ("'LG", "'LG"), ("'Juniper", "'Juniper"), ("'Acorp", "'Acorp"), ("'Crestron", "'Crestron"), ("'Kreolz", "'Kreolz"), ("'AirLive", "'AirLive"), ("'eVidence", "'eVidence"), ("'REPOTEC", "'REPOTEC"), ("'Promate", "'Promate"), ("'Sandisk", "'Sandisk"), ("'Philips", "'Philips"), ("'InterStep", "'InterStep"), ("'Egreat", "'Egreat"), ("'Alcatel", "'Alcatel"), ("'BEWARD", "'BEWARD"), ("'DELL", "'DELL"), ("'AudioCodes", "'AudioCodes"), ("'Netis", "'Netis"), ("'Encore", "'Encore"), ("'Sitecom", "'Sitecom"), ("'ARC Wireless", "'ARC Wireless"), ("'Apple", "'Apple"), ("'Gemtek", "'Gemtek"), ("'EWEL", "'EWEL"), ("'Gembird", "'Gembird"), ("'Dynamix", "'Dynamix"), ("'MikroTik", "'MikroTik"), ("'Trust", "'Trust"))
Network_equipment_type = (('Router', 'Router'), ('Switch', 'Switch'), ('AP', 'AP'), ('Repeater', 'Repeater'), ('Smart Switch', 'Smart Switch'))
Network_equipment_WiFi_type = (('802.11a', '802.11a'), ('802.11a/b/g', '802.11a/b/g'), ('802.11ac', '802.11ac'), ('802.11b', '802.11b'), ('802.11g', '802.11g'), ('802.11n', '802.11n'))
Printer_firm = (('Brother', 'Brother'), ('Canon', 'Canon'), ('Epson', 'Epson'), ('HP', 'HP'), ('Kyocera', 'Kyocera'), ('Lexmark', 'Lexmark'), ('OKI', 'OKI'), ('Panasonic', 'Panasonic'), ('Ricoh', 'Ricoh'), ('Samsung', 'Samsung'), ('Toshiba', 'Toshiba'), ('Xerox', 'Xerox'), ('DELL', 'DELL'), ('Develop', 'Develop'), ('Flora', 'Flora'), ('Fujifilm', 'Fujifilm'), ('Gestetner', 'Gestetner'), ('HiTi', 'HiTi'), ('KIP', 'KIP'), ('Konica Minolta', 'Konica Minolta'), ('Lomond', 'Lomond'), ('MB', 'MB'), ('Mimaki', 'Mimaki'), ('Mitsubishi Electric', 'Mitsubishi Electric'), ('Mutoh', 'Mutoh'), ('Oce', 'Oce'), ('Pantum', 'Pantum'), ('Philips', 'Philips'), ('Polaroid', 'Polaroid'), ('Riso', 'Riso'), ('Roland', 'Roland'), ('ROWE', 'ROWE'), ('Seiko', 'Seiko'), ('Sharp', 'Sharp'), ('Shinco', 'Shinco'), ('Sony', 'Sony'))
Power_suply_firm = (('AeroCool', 'AeroCool'), ('Chieftec', 'Chieftec'), ('Cooler Master', 'Cooler Master'), ('Corsair', 'Corsair'), ('FSP Group', 'FSP Group'), ('HIPER', 'HIPER'), ('HIPRO', 'HIPRO'), ('IN WIN', 'IN WIN'), ('LinkWorld', 'LinkWorld'), ('OCZ', 'OCZ'), ('Sea Sonic Electronics', 'Sea Sonic Electronics'), ('Thermaltake', 'Thermaltake'), ('5bites', '5bites'), ('@Lux', '@Lux'), ('Antec', 'Antec'), ('Aopen', 'Aopen'), ('Ascot', 'Ascot'), ('AXES Line', 'AXES Line'), ('be quiet!', 'be quiet!'), ('Codegen SuperPower', 'Codegen SuperPower'), ('COUGAR', 'COUGAR'), ('CROWN', 'CROWN'), ('CWT', 'CWT'), ('DELTA ELECTRONICS', 'DELTA ELECTRONICS'), ('DeTech', 'DeTech'), ('DTS', 'DTS'), ('EMACS', 'EMACS'), ('Enermax', 'Enermax'), ('Enhance Electronics', 'Enhance Electronics'), ('Espada', 'Espada'), ('ETG', 'ETG'), ('Exegate', 'Exegate'), ('FinePower', 'FinePower'), ('Floston', 'Floston'), ('FOX', 'FOX'), ('Foxline', 'Foxline'), ('Fractal Design', 'Fractal Design'), ('Gembird', 'Gembird'), ('GIGABYTE', 'GIGABYTE'), ('GoldenField', 'GoldenField'), ('Gresso', 'Gresso'), ('HEC', 'HEC'), ('HIGH POWER', 'HIGH POWER'), ('HuntKey', 'HuntKey'), ('Ice Hammer', 'Ice Hammer'), ('Invenom', 'Invenom'), ('LEPA', 'LEPA'), ('LogicPower', 'LogicPower'), ('NaviPower', 'NaviPower'), ('Nexus', 'Nexus'), ('NZXT', 'NZXT'), ('Pangu', 'Pangu'), ('PC Power & Cooling', 'PC Power & Cooling'), ('PowerBox', 'PowerBox'), ('PowerColor', 'PowerColor'), ('PowerExpert', 'PowerExpert'), ('ProLogiX', 'ProLogiX'), ('RaidMAX', 'RaidMAX'), ('Scythe', 'Scythe'), ('SilverStone', 'SilverStone'), ('Spire', 'Spire'), ('STM', 'STM'), ('Velton', 'Velton'), ('Winard', 'Winard'), ('XFX', 'XFX'), ('Xigmatek', 'Xigmatek'), ('Xilence', 'Xilence'), ('Zalman', 'Zalman'))
Power_ATX_version = (('1.3', '1.3'), ('2.0', '2.0'), ('2.01', '2.01'), ('2.03', '2.03'), ('2.1', '2.1'), ('2.2', '2.2'), ('2.3', '2.3'))
Motherboard_firm = (('ASRock', 'ASRock'), ('ASUS', 'ASUS'), ('Biostar', 'Biostar'), ('ECS', 'ECS'), ('Foxconn', 'Foxconn'), ('GIGABYTE', 'GIGABYTE'), ('Intel', 'Intel'), ('MSI', 'MSI'), ('Pegatron', 'Pegatron'), ('Sapphire', 'Sapphire'), ('Supermicro', 'Supermicro'), ('ZOTAC', 'ZOTAC'), ('3Q', '3Q'), ('ABIT', 'ABIT'), ('EPoX', 'EPoX'), ('EVGA', 'EVGA'), ('Fujitsu', 'Fujitsu'), ('ITZR', 'ITZR'), ('Jetway', 'Jetway'), ('PCCHIPS', 'PCCHIPS'), ('Tyan', 'Tyan'), ('VIA', 'VIA'), ('Wibtek', 'Wibtek'))
Motherboard_chipset = (('AMD 480X CrossFire', 'AMD 480X CrossFire'), ('AMD 690G', 'AMD 690G'), ('AMD 740G', 'AMD 740G'), ('AMD 760 MPX', 'AMD 760 MPX'), ('AMD 760G', 'AMD 760G'), ('AMD 770', 'AMD 770'), ('AMD 780V', 'AMD 780V'), ('AMD 785G', 'AMD 785G'), ('AMD 790FX', 'AMD 790FX'), ('AMD 790GX', 'AMD 790GX'), ('AMD 790X', 'AMD 790X'), ('AMD 8111', 'AMD 8111'), ('AMD 8131', 'AMD 8131'), ('AMD 8151', 'AMD 8151'), ('AMD 870', 'AMD 870'), ('AMD 88X', 'AMD 88X'), ('AMD 880G', 'AMD 880G'), ('AMD 890FX', 'AMD 890FX'), ('AMD 890GX', 'AMD 890GX'), ('AMD 970', 'AMD 970'), ('AMD 990FX', 'AMD 990FX'), ('AMD 990X', 'AMD 990X'), ('AMD A45', 'AMD A45'), ('AMD A50M', 'AMD A50M'), ('AMD A55', 'AMD A55'), ('AMD A55E', 'AMD A55E'), ('AMD A68', 'AMD A68'), ('AMD A75', 'AMD A75'), ('AMD A85', 'AMD A85'), ('AMD A85X', 'AMD A85X'), ('AMD Hudson E1', 'AMD Hudson E1'), ('AMD Hudson-D1', 'AMD Hudson-D1'), ('AMD Hudson-D3', 'AMD Hudson-D3'), ('AMD M690E', 'AMD M690E'), ('AMD RS785', 'AMD RS785'), ('AMD RX881', 'AMD RX881'), ('AMD SR5650', 'AMD SR5650'), ('AMD SR5670', 'AMD SR5670'), ('AMD SR5690', 'AMD SR5690'), ('Broadcom HT1000', 'Broadcom HT1000'), ('Intel 3000', 'Intel 3000'), ('Intel 3200', 'Intel 3200'), ('Intel 3210', 'Intel 3210'), ('Intel 3400', 'Intel 3400'), ('Intel 3420', 'Intel 3420'), ('Intel 3450', 'Intel 3450'), ('Intel 5000P', 'Intel 5000P'), ('Intel 5000V', 'Intel 5000V'), ('Intel 5000X', 'Intel 5000X'), ('Intel 5100', 'Intel 5100'), ('Intel 5400', 'Intel 5400'), ('Intel 5500', 'Intel 5500'), ('Intel 5520', 'Intel 5520'), ('Intel 845', 'Intel 845'), ('Intel 845GV', 'Intel 845GV'), ('Intel 848P', 'Intel 848P'), ('Intel 865G', 'Intel 865G'), ('Intel 865GV', 'Intel 865GV'), ('Intel 915P', 'Intel 915P'), ('Intel 945GC', 'Intel 945GC'), ('Intel 945GM', 'Intel 945GM'), ('Intel 945GSE', 'Intel 945GSE'), ('Intel 955X', 'Intel 955X'), ('Intel B75', 'Intel B75'), ('Intel C202', 'Intel C202'), ('Intel C204', 'Intel C204'), ('Intel C206', 'Intel C206'), ('Intel C216', 'Intel C216'), ('Intel C600', 'Intel C600'), ('Intel C602', 'Intel C602'), ('Intel C602-A', 'Intel C602-A'), ('Intel C602J', 'Intel C602J'), ('Intel C604', 'Intel C604'), ('Intel C606', 'Intel C606'), ('Intel E7210', 'Intel E7210'), ('Intel E7221', 'Intel E7221'), ('Intel E7230', 'Intel E7230'), ('Intel E7320', 'Intel E7320'), ('Intel E7500', 'Intel E7500'), ('Intel E7501', 'Intel E7501'), ('Intel E7505', 'Intel E7505'), ('Intel E7520', 'Intel E7520'), ('Intel E7525', 'Intel E7525'), ('Intel G31', 'Intel G31'), ('Intel G41', 'Intel G41'), ('Intel G43', 'Intel G43'), ('Intel G45', 'Intel G45'), ('Intel G965', 'Intel G965'), ('Intel H55', 'Intel H55'), ('Intel H57 Express', 'Intel H57 Express'), ('Intel H61', 'Intel H61'), ('Intel H67', 'Intel H67'), ('Intel H77', 'Intel H77'), ('Intel HM70', 'Intel HM70'), ('Intel ICH8M', 'Intel ICH8M'), ('Intel ICH9', 'Intel ICH9'), ('Intel ICH9R', 'Intel ICH9R'), ('Intel NM10', 'Intel NM10'), ('Intel NM70', 'Intel NM70'), ('Intel P31 Express', 'Intel P31 Express'), ('Intel P43', 'Intel P43'), ('Intel P55', 'Intel P55'), ('Intel P67', 'Intel P67'), ('Intel P67(B3)', 'Intel P67(B3)'), ('Intel P965', 'Intel P965'), ('Intel Q43', 'Intel Q43'), ('Intel Q45', 'Intel Q45'), ('Intel Q57', 'Intel Q57'), ('Intel Q67', 'Intel Q67'), ('Intel Q77', 'Intel Q77'), ('Intel QM67', 'Intel QM67'), ('Intel QM77', 'Intel QM77'), ('Intel S1260', 'Intel S1260'), ('Intel X38', 'Intel X38'), ('Intel X48', 'Intel X48'), ('Intel X58', 'Intel X58'), ('Intel X79', 'Intel X79'), ('Intel Z68', 'Intel Z68'), ('Intel Z75', 'Intel Z75'), ('Intel Z77', 'Intel Z77'), ('Intel Z87', 'Intel Z87'), ('NVIDIA GeForce 6100', 'NVIDIA GeForce 6100'), ('NVIDIA GeForce 6150 SE', 'NVIDIA GeForce 6150 SE'), ('NVIDIA GeForce 7025', 'NVIDIA GeForce 7025'), ('NVIDIA MCP55 Pro', 'NVIDIA MCP55 Pro'), ('NVIDIA MCP61', 'NVIDIA MCP61'), ('NVIDIA MCP61P', 'NVIDIA MCP61P'), ('NVIDIA MCP68S', 'NVIDIA MCP68S'), ('NVIDIA MCP79', 'NVIDIA MCP79'), ('NVIDIA MCP7A-ION', 'NVIDIA MCP7A-ION'), ('NVIDIA nForce 520 LE', 'NVIDIA nForce 520 LE'), ('NVIDIA nForce 550', 'NVIDIA nForce 550'), ('NVIDIA nForce 570 Ultra', 'NVIDIA nForce 570 Ultra'), ('NVIDIA nForce 630a', 'NVIDIA nForce 630a'), ('NVIDIA nForce 680i SLI', 'NVIDIA nForce 680i SLI'), ('NVIDIA nForce 720D', 'NVIDIA nForce 720D'), ('NVIDIA nForce 750a SLI', 'NVIDIA nForce 750a SLI'), ('NVIDIA nForce 980a SLI', 'NVIDIA nForce 980a SLI'), ('NVIDIA nForce Professional 2200', 'NVIDIA nForce Professional 2200'), ('NVIDIA nForce Professional 3600', 'NVIDIA nForce Professional 3600'), ('NVIDIA nForce2', 'NVIDIA nForce2'), ('NVIDIA nForce3 250', 'NVIDIA nForce3 250'), ('NVIDIA nForce4', 'NVIDIA nForce4'), ('NVIDIA nForce4 SLI X16', 'NVIDIA nForce4 SLI X16'), ('NVIDIA nForce4 Ultra', 'NVIDIA nForce4 Ultra'), ('NVIDIA NFP3600', 'NVIDIA NFP3600'), ('ServerWorks BCM5785', 'ServerWorks BCM5785'), ('ServerWorks Grand Champion LE', 'ServerWorks Grand Champion LE'), ('ServerWorks HT1000', 'ServerWorks HT1000'), ('SiS 661GX', 'SiS 661GX'), ('SiS 662', 'SiS 662'), ('SiS 741GX', 'SiS 741GX'), ('ULi M1689', 'ULi M1689'), ('VIA CLE266', 'VIA CLE266'), ('VIA CN700', 'VIA CN700'), ('VIA CN896', 'VIA CN896'), ('VIA K8M800', 'VIA K8M800'), ('VIA K8T800', 'VIA K8T800'), ('VIA K8T800 Pro', 'VIA K8T800 Pro'), ('VIA P4M800', 'VIA P4M800'), ('VIA P4M890', 'VIA P4M890'), ('VIA P4M900', 'VIA P4M900'), ('VIA VX800', 'VIA VX800'), ('VIA VX900', 'VIA VX900'), ('VIA VX900H', 'VIA VX900H'))
Motherboard_rom_types = (('DDR DIMM', 'DDR DIMM'), ('DDR2 DIMM', 'DDR2 DIMM'), ('DDR2 FB-DIMM', 'DDR2 FB-DIMM'), ('DDR2 SO-DIMM', 'DDR2 SO-DIMM'), ('DDR2/DDR3 DIMM', 'DDR2/DDR3 DIMM'), ('DDR3 DIMM', 'DDR3 DIMM'), ('DDR3 RDIMM/UDIMM', 'DDR3 RDIMM/UDIMM'), ('DDR3 SO-DIMM', 'DDR3 SO-DIMM'))
Motherboard_pci_e_types = (('1.0', '1.0'), ('2.0', '2.0'), ('3.0', '3.0'))
Motherboard_integrated_graphics = (('False', 'False'), ('AMD Llano', 'AMD Llano'), ('AMD Radeon HD 6320', 'AMD Radeon HD 6320'), ('AMD Radeon HD 7340', 'AMD Radeon HD 7340'), ('AMD Zacate', 'AMD Zacate'), ('Aspeed AST1300', 'Aspeed AST1300'), ('Aspeed AST2050', 'Aspeed AST2050'), ('Aspeed AST2150', 'Aspeed AST2150'), ('Aspeed AST2300', 'Aspeed AST2300'), ('ATI ES1000', 'ATI ES1000'), ('ATI Radeon HD 4200', 'ATI Radeon HD 4200'), ('ATI Radeon HD 4250', 'ATI Radeon HD 4250'), ('ATI Radeon HD 4290', 'ATI Radeon HD 4290'), ('ATI Radeon HD 6290', 'ATI Radeon HD 6290'), ('ATI Radeon HD 6310', 'ATI Radeon HD 6310'), ('ATI Radeon HD2100', 'ATI Radeon HD2100'), ('ATI Radeon HD3000', 'ATI Radeon HD3000'), ('ATI Radeon HD3100', 'ATI Radeon HD3100'), ('ATI Radeon HD3300', 'ATI Radeon HD3300'), ('ATI Radeon HD6310', 'ATI Radeon HD6310'), ('ATI Radeon X1250', 'ATI Radeon X1250'), ('ATI Rage XL', 'ATI Rage XL'), ('ATI Rage XL PCI', 'ATI Rage XL PCI'), ('Intel Extreme Graphics 2', 'Intel Extreme Graphics 2'), ('Intel GMA 3000', 'Intel GMA 3000'), ('Intel GMA 3100', 'Intel GMA 3100'), ('Intel GMA 3150', 'Intel GMA 3150'), ('Intel GMA 4500', 'Intel GMA 4500'), ('Intel GMA 950', 'Intel GMA 950'), ('Intel GMA X4500', 'Intel GMA X4500'), ('Intel GMA3600', 'Intel GMA3600'), ('Intel GMA3650', 'Intel GMA3650'), ('Intel MCH', 'Intel MCH'), ('Intel PowerVR SGX545', 'Intel PowerVR SGX545'), ('Matrox G200', 'Matrox G200'), ('Matrox G200e', 'Matrox G200e'), ('Matrox G200eW', 'Matrox G200eW'), ('NVIDIA GeForce 6100', 'NVIDIA GeForce 6100'), ('NVIDIA GeForce 6150', 'NVIDIA GeForce 6150'), ('NVIDIA GeForce 7025', 'NVIDIA GeForce 7025'), ('NVIDIA GeForce 9400', 'NVIDIA GeForce 9400'), ('NVIDIA GeForce GT 520', 'NVIDIA GeForce GT 520'), ('SiS Mirage', 'SiS Mirage'), ('SiS Real256', 'SiS Real256'), ('VIA Chrome9', 'VIA Chrome9'), ('VIA UniChrome Pro', 'VIA UniChrome Pro'), ('XGI Volari Z7', 'XGI Volari Z7'), ('XGI Volari Z9s', 'XGI Volari Z9s'), ('XGI XG20', 'XGI XG20'))
Motherboard_form_factor = (('ATX', 'ATX'), ('DTX', 'DTX'), ('EATX', 'EATX'), ('Em-ITX', 'Em-ITX'), ('FlexATX', 'FlexATX'), ('HPTX', 'HPTX'), ('mBTX', 'mBTX'), ('mATX', 'mATX'),('microATX', 'microATX'), ('mini-DTX', 'mini-DTX'), ('mini-ITX', 'mini-ITX'), ('SSI CEB', 'SSI CEB'), ('SSI EEB', 'SSI EEB'), ('SSI MEB', 'SSI MEB'), ('SWTX', 'SWTX'), ('thin mini-ITX', 'thin mini-ITX'), ('XL-ATX', 'XL-ATX'), ('NonStandart', 'NonStandart'))
Motherboard_sata_raid = (('0', '0'), ('1', '1'), ('10', '10'), ('5', '5'), ('JBOD', 'JBOD'), ('', ''))
Motherboard_audio = (("AC'97", "AC'97"), ('EAX', 'EAX'), ('HDA', 'HDA'), ('', ''))
CPU_firm = (('AMD', 'AMD'), ('Intel', 'Intel'))
CPU_core = (("Don't Know","Don't Know"),('Abu Dhabi', 'Abu Dhabi'), ('Agena', 'Agena'), ('Allendale', 'Allendale'), ('Athens', 'Athens'), ('Banias', 'Banias'), ('Barcelona', 'Barcelona'), ('Beckton', 'Beckton'), ('Bloomfield', 'Bloomfield'), ('Brisbane', 'Brisbane'), ('Budapest', 'Budapest'), ('Callisto', 'Callisto'), ('Cedar Mill', 'Cedar Mill'), ('Clarkdale', 'Clarkdale'), ('Clovertown', 'Clovertown'), ('Conroe', 'Conroe'), ('Conroe-CL', 'Conroe-CL'), ('Conroe-L', 'Conroe-L'), ('Dempsey', 'Dempsey'), ('Deneb', 'Deneb'), ('Dothan', 'Dothan'), ('Dunnington', 'Dunnington'), ('Egypt', 'Egypt'), ('Gainestown', 'Gainestown'), ('Gallatin', 'Gallatin'), ('Gulftown', 'Gulftown'), ('Harpertown', 'Harpertown'), ('Heka', 'Heka'), ('Interlagos', 'Interlagos'), ('Irwindale', 'Irwindale'), ('Istanbul', 'Istanbul'), ('Italy', 'Italy'), ('Ivy Bridge', 'Ivy Bridge'), ('Ivy Bridge-H2', 'Ivy Bridge-H2'), ('Kentsfield', 'Kentsfield'), ('Lisbon', 'Lisbon'), ('Llano', 'Llano'), ('Lynnfield', 'Lynnfield'), ('Magny-Cours', 'Magny-Cours'), ('Merom', 'Merom'), ('Nocona', 'Nocona'), ('Northwood', 'Northwood'), ('Paxville', 'Paxville'), ('Penryn', 'Penryn'), ('Prescott', 'Prescott'), ('Presler', 'Presler'), ('Prestonia', 'Prestonia'), ('Propus', 'Propus'), ('Rana', 'Rana'), ('Regor', 'Regor'), ('Sandy Bridge', 'Sandy Bridge'), ('Sandy Bridge-E', 'Sandy Bridge-E'), ('Sandy Bridge-EN', 'Sandy Bridge-EN'), ('Sandy Bridge-EP', 'Sandy Bridge-EP'), ('Santa Ana', 'Santa Ana'), ('Santa Rosa', 'Santa Rosa'), ('Sargas', 'Sargas'), ('Seoul', 'Seoul'), ('Shanghai', 'Shanghai'), ('Sledgehammer', 'Sledgehammer'), ('Smithfield', 'Smithfield'), ('Sparta', 'Sparta'), ('Thuban', 'Thuban'), ('Tigerton', 'Tigerton'), ('Trinity', 'Trinity'), ('Troy', 'Troy'), ('Tulsa', 'Tulsa'), ('Valencia', 'Valencia'), ('Vishera', 'Vishera'), ('Westmere-EX', 'Westmere-EX'), ('Windsor', 'Windsor'), ('Wolfdale', 'Wolfdale'), ('Woodcrest', 'Woodcrest'), ('Yonah', 'Yonah'), ('Yorkfield', 'Yorkfield'), ('Zambezi', 'Zambezi'), ('Zosma', 'Zosma'))
CPU_L1 = (("Don't Know","Don't Know"),('8 Kb', '8 Kb'), ('16 Kb', '16 Kb'), ('48 Kb', '48 Kb'), ('64 Kb', '64 Kb'), ('128 Kb', '128 Kb'))
CPU_L2 = (("Don't Know","Don't Know"),('128 Kb', '128 Kb'), ('256 Kb', '256 Kb'), ('512 Kb', '512 Kb'), ('1024 Kb', '1024 Kb'), ('1536 Kb', '1536 Kb'), ('2048 Kb', '2048 Kb'), ('2560 Kb', '2560 Kb'), ('3072 Kb', '3072 Kb'), ('4096 Kb', '4096 Kb'), ('6144 Kb', '6144 Kb'), ('8192 Kb', '8192 Kb'), ('9216 Kb', '9216 Kb'), ('12288 Kb', '12288 Kb'), ('16384 Kb', '16384 Kb'))
CPU_L3 = (("Don't Know","Don't Know"),)
CPU_technology = (("Don't Know","Don't Know"),('130 nm', '130 nm'), ('22 nm', '22 nm'), ('32 nm', '32 nm'), ('45 nm', '45 nm'), ('65 nm', '65 nm'), ('90 nm', '90 nm'))
Case_firm = (('AeroCool', 'AeroCool'), ('Cooler Master', 'Cooler Master'), ('Corsair', 'Corsair'), ('Foxconn', 'Foxconn'), ('GIGABYTE', 'GIGABYTE'), ('IN WIN', 'IN WIN'), ('JSP-TECH', 'JSP-TECH'), ('SilverStone', 'SilverStone'), ('Storm', 'Storm'), ('Thermaltake', 'Thermaltake'), ('Winsis', 'Winsis'), ('Zalman', 'Zalman'), ('', ''), ('3Cott', '3Cott'), ('3Q', '3Q'), ('3R System', '3R System'), ('4U', '4U'), ('@Lux', '@Lux'), ('AIGO', 'AIGO'), ('AiO', 'AiO'), ('AirTone', 'AirTone'), ('Akasa', 'Akasa'), ('Antec', 'Antec'), ('Aopen', 'Aopen'), ('AplusCase', 'AplusCase'), ('Arctic Cooling', 'Arctic Cooling'), ('ARESZE', 'ARESZE'), ('Ascot', 'Ascot'), ('ASUS', 'ASUS'), ('Autograph', 'Autograph'), ('AXES Line', 'AXES Line'), ('AZZA', 'AZZA'), ('BitFenix', 'BitFenix'), ('Brightwins', 'Brightwins'), ('BTC', 'BTC'), ('CASECOM Technology', 'CASECOM Technology'), ('CasePoint', 'CasePoint'), ('CFI Group', 'CFI Group'), ('Chenbro', 'Chenbro'), ('Chieftec', 'Chieftec'), ('Classix', 'Classix'), ('Codegen SuperPower', 'Codegen SuperPower'), ('COLORSit', 'COLORSit'), ('COODMax', 'COODMax'), ('COUGAR', 'COUGAR'), ('Coupden', 'Coupden'), ('Credo', 'Credo'), ('CROWN', 'CROWN'), ('Delux', 'Delux'), ('DeTech', 'DeTech'), ('DTS', 'DTS'), ('DVQ', 'DVQ'), ('Enermax', 'Enermax'), ('ENlight', 'ENlight'), ('Espada', 'Espada'), ('ETG', 'ETG'), ('Eurocase', 'Eurocase'), ('Evolution', 'Evolution'), ('Exegate', 'Exegate'), ('Fast', 'Fast'), ('Floston', 'Floston'), ('FORUM Computers', 'FORUM Computers'), ('FOX', 'FOX'), ('Foxline', 'Foxline'), ('Fractal Design', 'Fractal Design'), ('FrimeCom', 'FrimeCom'), ('Frisby', 'Frisby'), ('Frontier', 'Frontier'), ('FSP Group', 'FSP Group'), ('FST', 'FST'), ('GameTiger', 'GameTiger'), ('Gembird', 'Gembird'), ('GMC', 'GMC'), ('GoldenField', 'GoldenField'), ('GRAND', 'GRAND'), ('Gresso', 'Gresso'), ('Griffon', 'Griffon'), ('HEDY', 'HEDY'), ('HKC', 'HKC'), ('HQ-Tech', 'HQ-Tech'), ('HuntKey', 'HuntKey'), ('iBOX', 'iBOX'), ('iCute', 'iCute'), ('IKONIK', 'IKONIK'), ('Impression', 'Impression'), ('Intel', 'Intel'), ('Inter-Tech', 'Inter-Tech'), ('Invenom', 'Invenom'), ('JCP', 'JCP'), ('JET', 'JET'), ('JNC', 'JNC'), ('KIMPRO', 'KIMPRO'), ('Kinghun', 'Kinghun'), ('KM Korea', 'KM Korea'), ('KME', 'KME'), ('Krauler', 'Krauler'), ('LanCool', 'LanCool'), ('Lct Technology Inc.', 'Lct Technology Inc.'), ('Lian Li', 'Lian Li'), ('LinkWorld', 'LinkWorld'), ('Logic Concept Technology', 'Logic Concept Technology'), ('LogicPower', 'LogicPower'), ('LOOP', 'LOOP'), ('MaxPoint', 'MaxPoint'), ('MEC', 'MEC'), ('Microlab', 'Microlab'), ('Microtech', 'Microtech'), ('Modecom', 'Modecom'), ('Moneual', 'Moneual'), ('Morex', 'Morex'), ('NANOXIA', 'NANOXIA'), ('NaviPower', 'NaviPower'), ('NTS', 'NTS'), ('NZXT', 'NZXT'), ('Optimum', 'Optimum'), ('Pangu', 'Pangu'), ('Point of View', 'Point of View'), ('PowerCase', 'PowerCase'), ('PowerExpert', 'PowerExpert'), ('ProLogiX', 'ProLogiX'), ('Prosource', 'Prosource'), ('RaidMAX', 'RaidMAX'), ('Scythe', 'Scythe'), ('SeulCase', 'SeulCase'), ('Sharkoon', 'Sharkoon'), ('Solarbox', 'Solarbox'), ('SOLIX', 'SOLIX'), ('SPEED', 'SPEED'), ('Spire', 'Spire'), ('Star Technology', 'Star Technology'), ('STC', 'STC'), ('Streacom', 'Streacom'), ('Supermicro', 'Supermicro'), ('Sven', 'Sven'), ('TACENS', 'TACENS'), ('Targa', 'Targa'), ('TEXCONN', 'TEXCONN'), ('Tracer', 'Tracer'), ('Trin', 'Trin'), ('Tsunami', 'Tsunami'), ('V-King', 'V-King'), ('V-Tech', 'V-Tech'), ('Velton', 'Velton'), ('ViewApple Group', 'ViewApple Group'), ('Winard', 'Winard'), ('Winstar', 'Winstar'), ('Xclio', 'Xclio'), ('Xigmatek', 'Xigmatek'), ('Xilence', 'Xilence'), ('Yeong Yang', 'Yeong Yang'), ('Yuhanhi Tec', 'Yuhanhi Tec'), ('Zignum', 'Zignum'))
Case_power_suply_place = (('top', 'top'), ('bottom', 'bottom'))
Case_form_factor = (('Full-Desktop', 'Full-Desktop'), ('Full-Tower', 'Full-Tower'), ('Micro-Tower', 'Micro-Tower'), ('Midi-Tower', 'Midi-Tower'), ('Mini-Tower', 'Mini-Tower'), ('Slim-Desktop', 'Slim-Desktop'), ('Super-Tower', 'Super-Tower'))
Sockets = (('AM2', 'AM2'), ('AM2+', 'AM2+'), ('AM3', 'AM3'), ('AM3+', 'AM3+'), ('BGA437', 'BGA437'), ('C32', 'C32'), ('FM1', 'FM1'), ('FM2', 'FM2'), ('FS1r2', 'FS1r2'), ('G2', 'G2'), ('G2 (rPGA 988B)', 'G2 (rPGA 988B)'), ('G34', 'G34'), ('LGA1150', 'LGA1150'), ('LGA1155', 'LGA1155'), ('LGA1156', 'LGA1156'), ('LGA1356', 'LGA1356'), ('LGA1366', 'LGA1366'), ('LGA2011', 'LGA2011'), ('LGA771', 'LGA771'), ('LGA775', 'LGA775'), ('M', 'M'), ('S1207 (Socket F)', 'S1207 (Socket F)'), ('S462', 'S462'), ('S478', 'S478'), ('S479', 'S479'), ('S603', 'S603'), ('S604', 'S604'), ('S754', 'S754'), ('S939', 'S939'), ('S940', 'S940'))
Ethernet_types = (('10 Mb/s', '10 Mb/s'), ('100 Mb/s', '100 Mb/s'), ('1 Gb/s', '1 Gb/s'), ('10 Gb/s', '10 Gb/s'), ('', ''))
WiFi_types = (('802.11a/b/g', '802.11a/b/g'), ('802.11n', '802.11n'), ('802.11ac', '802.11ac'), ('False', 'False'))
UPS_firm = (('3Cott', '3Cott'), ('APC by Schneider Electric', 'APC by Schneider Electric'), ('CyberPower', 'CyberPower'), ('FSP Group', 'FSP Group'), ('INELT', 'INELT'), ('Ippon', 'Ippon'), ('Powercom', 'Powercom'), ('Powerman', 'Powerman'), ('Powerware', 'Powerware'), ('Sven', 'Sven'), ('Tripp', 'Tripp'), ('Lite', 'Lite'), ('Ресанта', 'Ресанта'), ('AEG', 'AEG'), ('Apollo', 'Apollo'), ('Borri', 'Borri'), ('Codegen SuperPower', 'Codegen SuperPower'), ('CROWN', 'CROWN'), ('Delta ES', 'Delta ES'), ('DeTech', 'DeTech'), ('DNS', 'DNS'), ('Dyno', 'Dyno'), ('EAST', 'EAST'), ('ENEL', 'ENEL'), ('EneltPro', 'EneltPro'), ('Exegate', 'Exegate'), ('Gembird', 'Gembird'), ('Gemix', 'Gemix'), ('General Electric', 'General Electric'), ('Gewald Electric', 'Gewald Electric'), ('Gresso', 'Gresso'), ('Hardity', 'Hardity'), ('Helior', 'Helior'), ('HP', 'HP'), ('Inform', 'Inform'), ('INSAR', 'INSAR'), ('Krauler', 'Krauler'), ('Liebert', 'Liebert'), ('LogicPower', 'LogicPower'), ('Luxeon', 'Luxeon'), ('Mercury', 'Mercury'), ('MGE', 'MGE'), ('Mustek', 'Mustek'), ('N-Power', 'N-Power'), ('Orvaldi', 'Orvaldi'), ('P-Com', 'P-Com'), ('Pilot', 'Pilot'), ('Powerex', 'Powerex'), ('Powerwalker', 'Powerwalker'), ('ProLogiX', 'ProLogiX'), ('Riello', 'Riello'), ('RUCELF', 'RUCELF'), ('Santak', 'Santak'), ('Socomec', 'Socomec'), ('Solby', 'Solby'), ('SVC', 'SVC'), ('Trust', 'Trust'), ('Tuncmatik', 'Tuncmatik'), ('Uniel', 'Uniel'), ('VIR-ELECTRIC', 'VIR-ELECTRIC'), ('Vivaldi', 'Vivaldi'), ('VoltGuard', 'VoltGuard'), ('БАСТИОН', 'БАСТИОН'), ('Исток', 'Исток'))
UPS_types = (('Line-Interactive', 'Line-Interactive'), ('Standby', 'Standby'), ('Online', 'Online'))
# tuple(((b,b) for b in a.split(' ')))
|
ultimo = 10
fila = list(range(1,ultimo+1))
while True:
print(f"Existem {len(fila)} clientes na fila")
print(f"Fila atual: {fila}")
print("Digite F para adicionar um cliente ao final da fila. ")
print("ou A para realizar o atendimento. S para sair ")
operacao = input("Operação (F, A ou S): ")
if operacao == 'A' or operacao == 'a':
if len(fila) > 0:
atendimento = fila.pop(0)
print(f"Cliente {atendimento} atendido")
else:
print("Fila vazia! Ninguém para atender.")
elif operacao == 'F' or operacao == 'f':
ultimo += 1
fila.append(ultimo)
elif operacao == 'S' or operacao == 's':
print("\n Até mais... \n")
break
else:
print("Operação invalida! Digite apenas F, A ou S")
|
width = 5.3
height = 3.67
triangle_area = (width * height) / 2
print("Pole trójkąta wynosi {triangle_area} cm^2")
print(f"Pole trójkąta wynosi {triangle_area} cm^2")
print("Pole trójkąta wynosi", triangle_area, "cm^2")
|
# Ordered (indexing is allowed): List, Tuple
# Unordered (indexing is not allowed): Dictionary, and Set
# Mutable (can be changed after creation): List, Dictionary, and Set
# Immutable ((can not be changed after creation)): Tuple, and Frozen Set
# LIST: is a mutable data type i.e items can be added to list later after the list creation.
# it need not be always homogeneous i.e. a single list can contain strings, integers, as well as objects.
# Create empty
# var_list = list()
# var_list = []
# print(var_list)
# print(type(var_list))
# Create with values
var_list = ["hello", 100, 200, 500, "world", 123.30, 100]
print(var_list)
# Get (indexing)
item = var_list[1]
# print(item)
# Replace (indexing)
var_list[2] = 500
# List Methods
var_list.append("Python")
print(var_list)
|
# Style
# Uncomment the following code, then
# fix the style in this file so that it runs properly
# and there are comments explaining the program
"""
print("Hello World!")
print("This is a Python program")
age =
input("Enter your age: ")
print("Your age is " + age)
"""
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def isPalindrome(n):
return str(n) == str(n)[::-1]
ans = 0
for i in range(100, 1000):
for j in range(i, 1000):
if (isPalindrome(i * j)):
ans = max(ans, i * j)
print(ans)
|
# string/validacion.py
""" Validar que una cadena de texto {@param str} cumpla un mínimo de caracteres {@param min_length}
Ejemplo: validate_min_length("Hola mundo", 3) -> True
"""
def validate_min_length(str, min_length):
if str is None:
return False
return len(str)>=min_length
""" Validar que una cadena de texto {@param str} cumpla un máximo de caracteres {@param max_length}
Ejemplo: validate_max_length("Hola", 4) -> True
"""
def validate_max_length(str, max_length):
if str is None:
return False
return len(str)<=max_length
|
print('Me de um valor e eu te darei o seu dobro, triplo e sua raiz quadrada')
n = int(input('Digite um número'))
dob = n * 2
tri = n * 3
sr = pow(n, (1/2))
print('O dobro de {} é {} \nO triplo de {} é {} \nA raiz quadrada de {} é {:.6f}'.format(n, dob, n, tri, n, sr))
|
def initialize_3d_list(a, b, c):
"""
:param a:
:param b:
:param c:
:return:
"""
lst = [[[None for _ in range(c)] for _ in range(b)] for _ in range(a)]
return lst
|
def ld_env_arg_spec():
return dict(
environment_key=dict(type="str", required=True, aliases=["key"]),
color=dict(type="str"),
name=dict(type="str"),
default_ttl=dict(type="int"),
tags=dict(type="list", elements="str"),
confirm_changes=dict(type="bool"),
require_comments=dict(type="bool"),
default_track_events=dict(type="bool"),
)
def env_ld_builder(environments):
patches = []
for env in environments:
env_mapped = dict(
(launchdarkly_api.Environment.attribute_map[k], v)
for k, v in env.items()
if v is not None
)
patches.append(launchdarkly_api.EnvironmentPost(**env))
return patches
|
font24 = {
0xe6b094:
[0x00,0x00,0x00,0x00,0x80,0x70,0x3C,0x2C,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0xA0,0x20,0x30,0x20,0x00,0x00,0x00,0x00,0x08,0x04,0x03,0x01,0x08,0x08,0x09,
0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xFD,0x09,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0x1F,0x30,0x20,0x60,0x7C,0x00,0x00],#"气"
0xe58e8b:
[0x00,0x00,0x00,0x00,0xF8,0xF8,0x08,0x08,0x08,0x08,0x08,0x08,0xE8,0xE8,0x08,0x08,
0x08,0x08,0x08,0x0C,0x0C,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x3F,0x00,0x08,
0x08,0x08,0x08,0x08,0xFF,0xFF,0x08,0x08,0x48,0x88,0x08,0x08,0x00,0x00,0x00,0x00,
0x00,0x40,0x30,0x0C,0x03,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x1F,0x1F,0x20,0x20,
0x20,0x21,0x27,0x22,0x10,0x10,0x00,0x00],#"压"
0xe6b8a9:
[0x00,0x00,0x00,0x04,0x08,0x38,0x80,0x40,0x00,0xF8,0x88,0x88,0x88,0x88,0x88,0x88,
0x88,0x88,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x06,0x80,0x78,0x07,0x20,
0xC0,0x4F,0x48,0x48,0xC8,0x48,0x48,0xC8,0x48,0x48,0x4F,0xE0,0x40,0x00,0x00,0x00,
0x00,0x01,0x01,0x3F,0x3F,0x40,0x40,0x40,0x3F,0x40,0x40,0x40,0x3F,0x40,0x40,0x3F,
0x40,0x40,0x40,0x3F,0x40,0x20,0x20,0x00],#"温"
0xe5baa6:
[0x00,0x00,0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0x30,0xD0,0x52,0x1C,0x18,0x10,0x10,
0xD0,0x50,0x10,0x10,0x98,0x10,0x00,0x00,0x00,0x00,0x00,0xC0,0xFF,0x02,0x02,0x42,
0x42,0x42,0xDF,0x52,0x52,0x52,0x52,0x52,0xDF,0xC2,0x42,0x01,0x01,0x01,0x00,0x00,
0x00,0x60,0x18,0x07,0x00,0x40,0x40,0x40,0x40,0x20,0x21,0x12,0x14,0x08,0x1C,0x16,
0x33,0x20,0x20,0x60,0x60,0x20,0x20,0x00],#"度"
0xE58589:
[0x00,0x00,0x00,0x00,0x00,0x10,0x60,0xC0,0x80,0x00,0x00,0xFC,0xFC,0x00,0x00,0x00,
0xC0,0x70,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x09,
0xF9,0x78,0x08,0x07,0x07,0xF8,0xFC,0x0A,0x09,0x08,0x08,0x08,0x04,0x04,0x00,0x00,
0x00,0x00,0x40,0x40,0x20,0x10,0x18,0x0E,0x03,0x00,0x00,0x00,0x00,0x0F,0x3F,0x20,
0x60,0x60,0x60,0x60,0x60,0x3F,0x20,0x00],#"光"
0xE785A7:
[0x00,0x00,0x00,0xF8,0x08,0x08,0x08,0x08,0xFC,0x08,0x00,0x08,0x88,0xE8,0x38,0x08,
0x88,0x88,0x88,0xFC,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x42,0x42,0x42,0x42,
0xFF,0x00,0x04,0x02,0xFD,0xFC,0x84,0x84,0x84,0x85,0x85,0xFE,0x04,0x00,0x00,0x00,
0x00,0x00,0x20,0x39,0x1E,0x00,0x00,0x00,0x04,0x38,0x00,0x00,0x00,0x06,0x3C,0x38,
0x00,0x00,0x02,0x0C,0x38,0x30,0x00,0x00],#"照"
0xe28483:
[0x00,0x00,0x00,0x70,0x88,0x88,0x70,0x00,0x80,0xC0,0x60,0x30,0x10,0x10,0x10,0x10,
0x10,0x20,0x20,0xC0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x0C,0x08,0x18,0x10,0x10,0x10,
0x08,0x08,0x04,0x02,0x00,0x00,0x00,0x00],#"℃"
0x20:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00],#" "
0x2e:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,
0x00,0x00,0x00,0x00],#"."
0x3a:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0E,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,
0x00,0x00,0x00,0x00],#":"
0x30:
[0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,
0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,
0x0E,0x07,0x01,0x00],#"0"
0x31:
[0x00,0x00,0x80,0x80,0x80,0xC0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,
0x10,0x10,0x00,0x00],#"1"
0x32:
[0x00,0x80,0x40,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x03,0x03,0x00,
0x80,0x40,0x20,0x38,0x1F,0x07,0x00,0x00,0x00,0x1C,0x1A,0x19,0x18,0x18,0x18,0x18,
0x18,0x1F,0x00,0x00],#"2"
0x33:
[0x00,0x80,0xC0,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x03,0x03,0x00,
0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x10,0x10,0x18,
0x0F,0x07,0x00,0x00],#"3"
0x34:
[0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0x00,0x00,0x00,0x00,0xC0,0xB0,0x88,
0x86,0x81,0x80,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,
0x1F,0x10,0x10,0x00],#"4"
0x35:
[0x00,0x00,0xE0,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00,0x3F,0x10,
0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x00,0x07,0x0B,0x10,0x10,0x10,0x10,0x1C,
0x0F,0x03,0x00,0x00],#"5"
0x36:
[0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0xFC,0xFF,0x21,
0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x01,0x07,0x0C,0x18,0x10,0x10,0x10,
0x08,0x0F,0x03,0x00],#"6"
0x37:
[0x00,0x00,0xC0,0xE0,0x60,0x60,0x60,0x60,0x60,0xE0,0x60,0x00,0x00,0x00,0x03,0x00,
0x00,0x00,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x00,
0x00,0x00,0x00,0x00],#"7"
0x38:
[0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x87,0xEF,0x2C,
0x18,0x18,0x30,0x30,0x68,0xCF,0x83,0x00,0x00,0x07,0x0F,0x08,0x10,0x10,0x10,0x10,
0x18,0x0F,0x07,0x00],#"8"
0x39:
[0x00,0x00,0xC0,0xC0,0x20,0x20,0x20,0x20,0xC0,0x80,0x00,0x00,0x00,0x1F,0x3F,0x60,
0x40,0x40,0x40,0x20,0x10,0xFF,0xFE,0x00,0x00,0x00,0x0C,0x1C,0x10,0x10,0x10,0x08,
0x0F,0x03,0x00,0x00],#"9"
0x41:
[0x00,0x00,0x00,0x00,0x80,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7C,
0x43,0x40,0x47,0x7F,0xF8,0x80,0x00,0x00,0x10,0x18,0x1F,0x10,0x00,0x00,0x00,0x00,
0x13,0x1F,0x1C,0x10],#"A"
0x42:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x10,
0x10,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,
0x18,0x0F,0x07,0x00],#"B"
0x43:
[0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0x20,0x60,0xE0,0x00,0x00,0xFC,0xFF,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,
0x08,0x04,0x03,0x00],#"C"
0x44:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x40,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x00,
0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x18,0x08,
0x0E,0x07,0x01,0x00],#"D"
0x45:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,
0x10,0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,
0x10,0x18,0x06,0x00],#"E"
0x46:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,
0x10,0x10,0x10,0x7C,0x00,0x00,0x01,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00],#"F"
0x47:
[0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x40,0xE0,0x00,0x00,0x00,0xFC,0xFF,0x01,
0x00,0x00,0x40,0x40,0xC0,0xC1,0x40,0x40,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,
0x0F,0x0F,0x00,0x00],#"G"
0x48:
[0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x20,0xE0,0xE0,0x20,0x00,0xFF,0xFF,0x10,
0x10,0x10,0x10,0x10,0x10,0xFF,0xFF,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,
0x10,0x1F,0x1F,0x10],#"H"
0x49:
[0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,
0x10,0x10,0x00,0x00],#"I"
0x4a:
[0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x60,0xE0,0x80,0x80,0x80,0xC0,0x7F,
0x3F,0x00,0x00,0x00],#"J"
0x4b:
[0x20,0xE0,0xE0,0x20,0x00,0x00,0x20,0xA0,0x60,0x20,0x20,0x00,0x00,0xFF,0xFF,0x30,
0x18,0x7C,0xE3,0xC0,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x01,0x13,
0x1F,0x1C,0x18,0x10],#"K"
0x4c:
[0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,
0x10,0x18,0x06,0x00],#"L"
0x4d:
[0x20,0xE0,0xE0,0xE0,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0x20,0x00,0xFF,0x01,0x3F,
0xFE,0xC0,0xE0,0x1E,0x01,0xFF,0xFF,0x00,0x10,0x1F,0x10,0x00,0x03,0x1F,0x03,0x00,
0x10,0x1F,0x1F,0x10],#"M"
0x4e:
[0x20,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0x00,0x03,
0x07,0x1C,0x78,0xE0,0x80,0x00,0xFF,0x00,0x10,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,
0x03,0x0F,0x1F,0x00],#"N"
0x4f:
[0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,
0x0C,0x07,0x01,0x00],#"O"
0x50:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x20,
0x20,0x20,0x20,0x20,0x30,0x1F,0x0F,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00],#"P"
0x51:
[0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x11,0x11,0x13,0x3C,
0x7C,0x67,0x21,0x00],#"Q"
0x52:
[0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x10,
0x10,0x30,0xF0,0xD0,0x08,0x0F,0x07,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x03,
0x0F,0x1C,0x10,0x10],#"R"
0x53:
[0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x40,0x40,0xE0,0x00,0x00,0x07,0x0F,0x0C,
0x18,0x18,0x30,0x30,0x60,0xE0,0x81,0x00,0x00,0x1F,0x0C,0x08,0x10,0x10,0x10,0x10,
0x18,0x0F,0x07,0x00],#"S"
0x54:
[0x80,0x60,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x60,0x80,0x01,0x00,0x00,0x00,
0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,
0x00,0x00,0x00,0x00],#"T"
0x55:
[0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0xFF,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x10,0x10,
0x10,0x08,0x07,0x00],#"U"
0x56:
[0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x07,0x7F,
0xF8,0x80,0x00,0x80,0x7C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x1C,0x07,
0x00,0x00,0x00,0x00],#"V"
0x57:
[0x20,0xE0,0xE0,0x20,0x00,0xE0,0xE0,0x20,0x00,0x20,0xE0,0x20,0x00,0x07,0xFF,0xF8,
0xE0,0x1F,0xFF,0xFC,0xE0,0x1F,0x00,0x00,0x00,0x00,0x03,0x1F,0x03,0x00,0x01,0x1F,
0x03,0x00,0x00,0x00],#"W"
0x58:
[0x00,0x20,0x60,0xE0,0xA0,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x00,0x00,0x03,
0x8F,0x7C,0xF8,0xC6,0x01,0x00,0x00,0x00,0x00,0x10,0x18,0x1E,0x13,0x00,0x01,0x17,
0x1F,0x18,0x10,0x00],#"X"
0x59:
[0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x01,0x07,
0x3E,0xF8,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,
0x10,0x00,0x00,0x00],#"Y"
0x5a:
[0x00,0x80,0x60,0x20,0x20,0x20,0x20,0xA0,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,
0xC0,0xF0,0x3E,0x0F,0x03,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x10,0x10,0x10,
0x10,0x18,0x06,0x00],#"Z"
0x61:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x98,0xD8,
0x44,0x64,0x24,0x24,0xFC,0xF8,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x10,0x08,
0x1F,0x1F,0x10,0x18],#"a"
0x62:
[0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,
0x18,0x08,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x00,0x1F,0x0F,0x18,0x10,0x10,0x10,
0x18,0x0F,0x03,0x00],#"b"
0x63:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x18,
0x04,0x04,0x04,0x3C,0x38,0x00,0x00,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,
0x08,0x06,0x00,0x00],#"c"
0x64:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0xE0,0xF8,0x1C,
0x04,0x04,0x04,0x08,0xFF,0xFF,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x10,0x08,
0x1F,0x0F,0x08,0x00],#"d"
0x65:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,
0x48,0x44,0x44,0x44,0x4C,0x78,0x70,0x00,0x00,0x00,0x03,0x0F,0x0C,0x18,0x10,0x10,
0x10,0x08,0x04,0x00],#"e"
0x66:
[0x00,0x00,0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0xE0,0xC0,0x00,0x00,0x04,0x04,0x04,
0xFF,0xFF,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,
0x10,0x00,0x00,0x00],#"f"
0x67:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xF8,
0x8C,0x04,0x04,0x8C,0xF8,0x74,0x04,0x0C,0x00,0x70,0x76,0xCF,0x8D,0x8D,0x8D,0x89,
0xC8,0x78,0x70,0x00],#"g"
0x68:
[0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,
0x08,0x04,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,
0x1F,0x1F,0x10,0x00],#"h"
0x69:
[0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,
0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,
0x10,0x10,0x00,0x00],#"i"
0x6a:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,0x80,0xC0,0x7F,
0x3F,0x00,0x00,0x00],#"j"
0x6b:
[0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,
0x80,0xC0,0xF4,0x1C,0x04,0x04,0x00,0x00,0x00,0x10,0x1F,0x1F,0x11,0x00,0x03,0x1F,
0x1C,0x10,0x10,0x00],#"k"
0x6c:
[0x00,0x00,0x20,0x20,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,
0x10,0x10,0x00,0x00],#"l"
0x6d:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,
0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x00,0x10,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10,
0x00,0x1F,0x1F,0x10],#"m"
0x6e:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,
0x08,0x08,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,
0x1F,0x1F,0x10,0x00],#"n"
0x6f:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x18,
0x0C,0x04,0x04,0x0C,0x18,0xF0,0xE0,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,
0x0C,0x0F,0x03,0x00],#"o"
0x70:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,
0x08,0x04,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x80,0xFF,0xFF,0x88,0x90,0x10,0x10,
0x1C,0x0F,0x03,0x00],#"p"
0x71:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x1C,
0x04,0x04,0x04,0x08,0xF8,0xFC,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x90,0x88,
0xFF,0xFF,0x80,0x00],#"q"
0x72:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,
0xFC,0x10,0x08,0x04,0x04,0x0C,0x0C,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,
0x00,0x00,0x00,0x00],#"r"
0x73:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x78,
0xCC,0xC4,0x84,0x84,0x84,0x0C,0x1C,0x00,0x00,0x00,0x1E,0x18,0x10,0x10,0x10,0x11,
0x19,0x0F,0x06,0x00],#"s"
0x74:
[0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,
0xFF,0xFF,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,
0x10,0x0C,0x00,0x00],#"t"
0x75:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFE,
0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x08,
0x1F,0x0F,0x08,0x00],#"u"
0x76:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,
0xFC,0xC4,0x00,0x00,0xC4,0x3C,0x0C,0x04,0x00,0x00,0x00,0x00,0x01,0x0F,0x1E,0x0E,
0x01,0x00,0x00,0x00],#"v"
0x77:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x3C,0xFC,0xC4,
0x00,0xE4,0x7C,0xFC,0x84,0x80,0x7C,0x04,0x00,0x00,0x07,0x1F,0x07,0x00,0x00,0x07,
0x1F,0x07,0x00,0x00],#"w"
0x78:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x1C,
0x7C,0xE4,0xC0,0x34,0x1C,0x04,0x04,0x00,0x00,0x10,0x10,0x1C,0x16,0x01,0x13,0x1F,
0x1C,0x18,0x10,0x00],#"x"
0x79:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,
0xFC,0xC4,0x00,0xC4,0x3C,0x04,0x04,0x00,0x00,0x00,0xC0,0x80,0xC1,0x37,0x0E,0x01,
0x00,0x00,0x00,0x00],#"y"
0x7a:
[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x04,
0x04,0xC4,0xF4,0x7C,0x1C,0x04,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x11,0x10,
0x10,0x18,0x0E,0x00]#"z"
}
|
# Link : https://leetcode.com/problems/valid-palindrome-ii/submissions/
# Two pointer approach
# TC : O(n)
class Solution(object):
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
# Use two pointers at the start and end of the string
# To iterate over the string from the left
a_pointer = 0
# To iterate over the string from the right
b_pointer = len(s) - 1
while(a_pointer <= b_pointer):
# Condition for palindrome is that the charachters must be same when read reverse
# Find the index where the charachters dont match for a_pointer and b_pointer
if(s[a_pointer] != s[b_pointer]):
# Skip the index where the charachters dont match
s1 = s[ : a_pointer] + s[a_pointer + 1 : ]
s2 = s[ : b_pointer] + s[b_pointer + 1 : ]
# Return True if the string is a palindrome after removing one charachter , else false
return (s1 == s1[ : :-1] or s2 == s2[ : :-1])
# Towards right
a_pointer += 1
# Towards left
b_pointer -= 1
return True
|
#!/usr/bin/env python
# encoding: utf-8
"""
search_in_rotated_array_ii.py
Created by Shengwei on 2014-07-24.
"""
# https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/
# tags: medium / hard, array, search, rotated, edge cases
"""
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the array.
"""
"""
General approach for searching in rotated sorted array:
1. determine which side is sorted by comparing A[left] with A[mid]
2. if target is in the sorted range, continue searching in that range;
otherwise, searching in another half
"""
class Solution:
# @param A a list of integers
# @param target an integer
# @return a boolean
def search(self, A, target):
left, right = 0, len(A)
while left < right:
mid = (left + right) / 2
if A[mid] == target:
return True
if A[left] < A[mid]:
# left half is sorted
if A[left] <= target and target < A[mid]:
right = mid
else:
left = mid + 1
elif A[left] > A[mid]:
# right half is sorted
if A[mid] < target and target <= A[right-1]:
left = mid + 1
else:
right = mid
else:
# cannot decide which side is sorted;
# this essentially equals:
# 1. move left cursor to the right by 1;
# 2. move left and mid cursor to the right by 1;
# 3. continue until it can make a decison.
# the worst case, left meets mid and right, O(n)
left += 1
return False
|
# the Node class - contains value and address to next node
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
def get_data(self):
return self.val
def set_data(self, val):
self.val = val
def get_next(self):
return self.next
def set_next(self, next):
self.next = next
# the LinkedList class
class LinkedList(object):
def __init__(self, head=None):
self.head = head
self.count = 0
def get_count(self):
return self.count
def insert(self, data):
new_node = Node(data)
new_node.set_next(self.head)
self.head = new_node
self.count += 1
def find(self, val):
item = self.head
while (item != None):
if item.get_data() == val:
return item
else:
item = item.get_next()
return None
def deleteAt(self, idx):
if idx > self.count:
return
if self.head == None:
return
else:
tempIdx = 0
node = self.head
while tempIdx < idx-1:
node = node.get_next()
tempIdx += 1
node.set_next(node.get_next().get_next())
self.count -= 1
def printList(self):
tempnode = self.head
while (tempnode != None):
print("Node: ", tempnode.get_data())
tempnode = tempnode.get_next()
def sumList(self):
tempnode = self.head
self.sum = 0
while (tempnode != None):
self.sum += tempnode.get_data()
tempnode = tempnode.get_next()
print('Sum of list:', self.sum)
if __name__ == "__main__":
# create a linked list and insert some items
itemlist = LinkedList()
itemlist.insert(3)
itemlist.insert(10)
itemlist.insert(1)
itemlist.insert(5)
itemlist.insert(6)
#Print the List
itemlist.printList()
#GEt sum
itemlist.sumList()
|
def color(val):
if val < 60:
r = 0
g = 255
b = 0
if val >= 60:
r = ((val - 60) / 20) * 255
g = 255
b = 120
if val >= 80:
r = 255
g = 255 - (((val - 80) / 20) * 255)
b = 120 - (((val - 80) / 20) * 120)
return 'rgb({},{},{})'.format(r, g, b)
|
class Music:
def __init__(self):
self._ch0 = []
self._ch1 = []
self._ch2 = []
self._ch3 = []
@property
def ch0(self):
return self._ch0
@property
def ch1(self):
return self._ch1
@property
def ch2(self):
return self._ch2
@property
def ch3(self):
return self._ch3
def set(self, ch0, ch1, ch2, ch3):
self.set_ch0(ch0)
self.set_ch1(ch1)
self.set_ch2(ch2)
self.set_ch3(ch3)
def set_ch0(self, data):
self._ch0[:] = data
def set_ch1(self, data):
self._ch1[:] = data
def set_ch2(self, data):
self._ch2[:] = data
def set_ch3(self, data):
self._ch3[:] = data
|
def regularized_MSE_loss(output, target, weights=None, L2_penalty=0, L1_penalty=0):
"""loss function for MSE
Args:
output (torch.Tensor): output of network
target (torch.Tensor): neural response network is trying to predict
weights (torch.Tensor): fully-connected layer weights of network (net.out_layer.weight)
L2_penalty : scaling factor of sum of squared weights
L1_penalty : scalaing factor for sum of absolute weights
Returns:
(torch.Tensor) mean-squared error with L1 and L2 penalties added
"""
loss_fn = nn.MSELoss()
loss = loss_fn(output, target)
if weights is not None:
L2 = L2_penalty * torch.square(weights).sum()
L1 = L1_penalty * torch.abs(weights).sum()
loss += L1 + L2
return loss
# Initialize network
net = ConvFC(n_neurons)
# Train network
train_loss, test_loss = train(net, regularized_MSE_loss, stim_binary, resp_train,
test_data=stim_binary, test_labels=resp_test,
learning_rate=10, n_iter=500,
L2_penalty=1e-4, L1_penalty=1e-6)
# Plot the training loss over iterations of GD
with plt.xkcd():
plot_training_curves(train_loss, test_loss)
|
"""
An Autoencoder accepts input, compresses it, and recreates it. On the other hand,
VAEs assume that the source data has some underlying distribution and attempts
to find the distribution parameters. So, VAEs are similar to GANs
(but note that GANs work differently, as we will see in the next tutorials).
""";
|
"""
Hill Pattern
"""
print("")
n = 5
# Method 1
print("Method 1")
for a in range(n):
for b in range(a, n):
print(" ", end="")
for c in range(a + 1):
print(" * ", end="")
for d in range(a):
print(" * ", end="")
print("")
print("\n*~*~*~*~*~*~*~*~*~*~*~*\n")
# Method 2
print("Method 2")
for a in range(n):
print(" " * (n - a), end="")
print(" * " * (a + 1), end="")
print(" * " * a)
print("")
"""
Author: Jovan De Guia
Github Username: jxmked
"""
|
n,m = map(int, input().split())
width = m
msg = "WELCOME"
design = ".|."
#upper piece
lines = int((n-1)/2)
count = 1
for i in range(1,lines+1):
a = design*count
print(a.center(width,'-'))
count += 2
#center piece
print(msg.center(width,'-'))
#bottom piece
count = n-2
for i in range(1,lines+1):
a = design*count
print(a.center(width,'-'))
count -= 2
|
class Animal:
def __init__(self, nombre, tamaño):
self.nombre = nombre
self.tamaño = tamaño
def get_nombre(self):
return self.nombre
def set_nombre(self, a):
self.nombre = a
|
def lambda_curry2(func):
"""
Returns a Curried version of a two-argument function FUNC.
>>> from operator import add
>>> curried_add = lambda_curry2(add)
>>> add_three = curried_add(3)
>>> add_three(5)
8
"""
"*** YOUR CODE HERE ***"
return ______
def compose1(f, g):
"""Return the composition function which given x, computes f(g(x)).
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> a1 = compose1(square, add_one) # (x + 1)^2
>>> a1(4)
25
>>> mul_three = lambda x: x * 3 # multiplies 3 to x
>>> a2 = compose1(mul_three, a1) # ((x + 1)^2) * 3
>>> a2(4)
75
>>> a2(5)
108
"""
return lambda x: f(g(x))
def composite_identity(f, g):
"""
Return a function with one parameter x that returns True if f(g(x)) is
equal to g(f(x)). You can assume the result of g(x) is a valid input for f
and vice versa.
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> b1 = composite_identity(square, add_one)
>>> b1(0) # (0 + 1)^2 == 0^2 + 1
True
>>> b1(4) # (4 + 1)^2 != 4^2 + 1
False
"""
"*** YOUR CODE HERE ***"
|
def percent_str( expected, received ):
received = received*100
output = int(received/expected)
return str(output) + "%"
def modsendall( to_socket, content, expected_msg_bytes):
record = 0
single_attempt_size = 1024
while True:
try:
ret = to_socket.send( content[record:record+single_attempt_size] )
except:
print("Send failure. Bad connection.")
return False
record += ret
if record >= expected_msg_bytes:
break
print("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", end='', flush=True)
print(percent_str(expected_msg_bytes,record)+" -- ", end='', flush=True)
print("100%",flush=True)
return True
|
def hey(phrase):
phrase = phrase.strip()
if not phrase:
return "Fine. Be that way!"
elif phrase.isupper():
return "Whoa, chill out!"
elif phrase.endswith("?"):
return "Sure."
else:
return 'Whatever.'
|
# -*- coding: utf-8 -*-
config = [
{
'id': 1,
'rpcusername': "testuser",
'rpcpassword': "testnet",
'rpchost': "localhost",
'rpcport': "7000",
'name': 'Bitcoin (BTC)',
'symbol': "฿",
'currency': 'BTC',
},
{
'id': 2,
'rpcusername': "testuser",
'rpcpassword': "testnet",
'rpchost': "localhost",
'rpcport': "7001",
'name': 'Litecoin (LTC)',
'symbol': "Ł",
'currency': 'LTC',
},
{
'id': 3,
'rpcusername': "testuser",
'rpcpassword': "testnet",
'rpchost': "localhost",
'rpcport': "7002",
'name': 'Namecoin (NMC)',
'symbol': "ℕ",
'currency': 'NMC',
},
{
'id': 4,
'rpcusername': "testuser",
'rpcpassword': "testnet",
'rpchost': "localhost",
'rpcport': "7003",
'name': 'PPcoin (PPC)',
'symbol': "Ᵽ",
'currency': 'PPC',
},
{
'id': 5,
'rpcusername': "testuser",
'rpcpassword': "testnet",
'rpchost': "localhost",
'rpcport': "7003",
'name': 'Feathercoin (FTC)',
'symbol': "ƒ",
'currency': 'FTC',
},
]
|
# Created by MechAviv
# High Noon Damage Skin | (2438671)
if sm.addDamageSkin(2438671):
sm.chat("'High Noon Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem()
|
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file 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 ResourceLoadException(Exception):
pass
class NoVersionFound(Exception):
pass
class RetriesExceededError(Exception):
def __init__(self, last_exception, msg='Max Retries Exceeded'):
super(RetriesExceededError, self).__init__(msg)
self.last_exception = last_exception
class S3TransferFailedError(Exception):
pass
class S3UploadFailedError(Exception):
pass
class DynamoDBOperationNotSupportedError(Exception):
"""Raised for operantions that are not supported for an operand"""
def __init__(self, operation, value):
msg = (
'%s operation cannot be applied to value %s of type %s directly. '
'Must use AttributeBase object methods (i.e. Attr().eq()). to '
'generate ConditionBase instances first.' %
(operation, value, type(value)))
Exception.__init__(self, msg)
# FIXME: Backward compatibility
DynanmoDBOperationNotSupportedError = DynamoDBOperationNotSupportedError
class DynamoDBNeedsConditionError(Exception):
"""Raised when input is not a condition"""
def __init__(self, value):
msg = (
'Expecting a ConditionBase object. Got %s of type %s. '
'Use AttributeBase object methods (i.e. Attr().eq()). to '
'generate ConditionBase instances.' % (value, type(value)))
Exception.__init__(self, msg)
class DynamoDBNeedsKeyConditionError(Exception):
pass
|
async def is_guild_admin(self, guildid, userid):
settings = self.database.get_settings(guildid)
guild = await self.fetch_guild(guildid)
user = await guild.fetch_member(userid)
if user.id == 110838934644211712:
return True # This is so i can test and help without server admin /shrug
for role in user.roles:
if role.id == settings["AdminRole"]:
return True
return False
async def is_section_admin(self, guildid, userid, section):
section = self.database.get_section(guildid, section)
if section is None:
return False
for slot in section["Structure"]:
if slot["ID"] == userid and slot["Access"]:
return True
return False
|
# game settings:
RENDER_MODE = True
REF_W = 24*2
REF_H = REF_W
REF_U = 1.5 # ground height
REF_WALL_WIDTH = 1.0 # wall width
REF_WALL_HEIGHT = 5
PLAYER_SPEED_X = 10*1.75
PLAYER_SPEED_Y = 10*1.35
MAX_BALL_SPEED = 15*1.5
TIMESTEP = 1/30.
NUDGE = 0.1
FRICTION = 1.0 # 1 means no FRICTION, less means FRICTION
INIT_DELAY_FRAMES = 30
GRAVITY = -9.8*2*1.5
MAXLIVES = 5 # game ends when one agent loses this many games
WINDOW_WIDTH = 1200
WINDOW_HEIGHT = 500
FACTOR = WINDOW_WIDTH / REF_W
# if set to true, renders using cv2 directly on numpy array
# (otherwise uses pyglet / opengl -> much smoother for human player)
PIXEL_MODE = False
PIXEL_SCALE = 4 # first render at multiple of Pixel Obs resolution, then downscale. Looks better.
PIXEL_WIDTH = 84*2*1
PIXEL_HEIGHT = 84*1
|
distancia = int(input('qual a distância da sua viagem em km?: '))
if distancia <= 200:
valor = distancia * 0.50
else:
valor = distancia * 0.45
print('você esta preste a iniciar uma viagem de {}Km.'.format(distancia))
print('e o preço de sua viagem sera de {}'.format(valor))
|
class Generator:
def __init__(self):
self.buffer = ""
self.ident = 0
def push_ident(self):
self.ident = self.ident + 1
def pop_ident(self):
self.ident = self.ident - 1
def emit(self, *code):
if (''.join(code) == ""):
self.buffer += "\n"
else:
self.buffer += ' ' * self.ident + ''.join(code) + '\n'
def emit_section(self, title):
self.buffer += ' ' * self.ident + "/* --- " + title + " " + \
"-" * (69 - len(title) - 4 * self.ident) + " */\n\n" # nice
def finalize(self):
return self.buffer
|
"""
Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3,5,6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below N.
"""
def solution(n):
"""Returns the sum of all the multiples of 3 or 5 below n.
>>> solution(3)
0
>>> solution(4)
3
>>> solution(10)
23
>>> solution(600)
83700
"""
a = 3
result = 0
while a < n:
if a % 3 == 0 or a % 5 == 0:
result += a
elif a % 15 == 0:
result -= a
a += 1
return result
if __name__ == "__main__":
print(solution(int(input().strip())))
|
'''
Explain the operation of Lists and basic operations of lists
'''
l = [5, 6, 7, 8]
print(l)
#prints the element in position 1, remembering that it starts 0
print(l[2])
# List size use len () function
print(len(l))
l.append(10)
print("New list after adding 10 at the end = " + str(l))
position, value = 0, 20
l.insert(position,value)
print("New list after adding the 20 in the first position = " + str(l))
#Delete item 5 from the list
l.remove(5)
print("List without element 5 = " + str(l))
print("Position of element 8 in the List = " + str(l.index(8)))
#To sort a list use the sort command
l.sort()
print("List sorted from smallest to largest = " + str(l))
l.reverse()
print("List sorted from largest to smallest = " + str(l))
|
# encoding: utf-8
# module _symtable
# from (built-in)
# by generator 1.145
# no doc
# no imports
# Variables with simple values
CELL = 5
DEF_BOUND = 134
DEF_FREE = 32
DEF_FREE_CLASS = 64
DEF_GLOBAL = 1
DEF_IMPORT = 128
DEF_LOCAL = 2
DEF_PARAM = 4
FREE = 4
GLOBAL_EXPLICIT = 2
GLOBAL_IMPLICIT = 3
LOCAL = 1
SCOPE_MASK = 15
SCOPE_OFF = 11
TYPE_CLASS = 1
TYPE_FUNCTION = 0
TYPE_MODULE = 2
USE = 16
# functions
def symtable(*args, **kwargs): # real signature unknown
""" Return symbol and scope dictionaries used internally by compiler. """
pass
# classes
class __loader__(object):
"""
Meta path import for built-in modules.
All methods are either class or static methods to avoid the need to
instantiate the class.
"""
@classmethod
def create_module(cls, *args, **kwargs): # real signature unknown
""" Create a built-in module """
pass
@classmethod
def exec_module(cls, *args, **kwargs): # real signature unknown
""" Exec a built-in module """
pass
@classmethod
def find_module(cls, *args, **kwargs): # real signature unknown
"""
Find the built-in module.
If 'path' is ever specified then the search is considered a failure.
This method is deprecated. Use find_spec() instead.
"""
pass
@classmethod
def find_spec(cls, *args, **kwargs): # real signature unknown
pass
@classmethod
def get_code(cls, *args, **kwargs): # real signature unknown
""" Return None as built-in modules do not have code objects. """
pass
@classmethod
def get_source(cls, *args, **kwargs): # real signature unknown
""" Return None as built-in modules do not have source code. """
pass
@classmethod
def is_package(cls, *args, **kwargs): # real signature unknown
""" Return False as built-in modules are never packages. """
pass
@classmethod
def load_module(cls, *args, **kwargs): # real signature unknown
"""
Load the specified module into sys.modules and return it.
This method is deprecated. Use loader.exec_module instead.
"""
pass
def module_repr(module): # reliably restored by inspect
"""
Return repr for the module.
The method is deprecated. The import machinery does the job itself.
"""
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""list of weak references to the object (if defined)"""
__dict__ = None # (!) real value is ''
# variables with complex values
__spec__ = None # (!) real value is ''
|
# Write a function that takes in a graph
# represented as a list of tuples
# and return a list of nodes that
# you would follow on an Eulerian Tour
#
# For example, if the input graph was
# [(1, 2), (2, 3), (3, 1)]
# A possible Eulerian tour would be [1, 2, 3, 1]
def find_eulerian_tour(graph):
a = 0
graph2 = graph
tour = []
tour2 = []
while len(graph2) > 0:
[tour, graph2] = onetour(graph2, a)
for b in range(0, len(tour2)):
if tour2[b] == tour[0]:
tour2[b:b+1] = tour
tour = [-1]
if len(tour2) == 0:
tour2 = tour
return tour2
def onetour(graph, a):
tour = []
tour.append(graph[a][0])
lstnode = graph[a][1]
graph.remove(graph[a])
tour.append(lstnode)
while a != -1:
[a, lstnode] = nextnode(graph, lstnode, tour)
if a != -1:
tour.append(lstnode)
if len(graph) > 0:
graph.remove(graph[a])
return [tour, graph]
def nextnode(graph, lstnode, tour):
lstnodet = lstnode
at = 0
for a in range(0, len(graph)):
if graph[a][0] == lstnode:
at = a
lstnodet = graph[a][1]
elif graph[a][1] == lstnode:
at = a
lstnodet = graph[a][0]
if(lstnodet not in tour):
return [at, lstnodet]
if lstnodet != lstnode:
return [at, lstnodet]
return [-1, lstnode]
graph = [
(0, 1), (1, 5), (1, 7), (4, 5),
(4, 8), (1, 6), (3, 7), (5, 9),
(2, 4), (0, 4), (2, 5), (3, 6), (8, 9)
]
print(find_eulerian_tour(graph))
|
load("@io_bazel_rules_dotnet//dotnet/private:rules/nuget.bzl", "nuget_package")
def dotnet_repositories_nunit():
### Generated by the tool
nuget_package(
name = "nunit",
package = "nunit",
version = "3.12.0",
sha256 = "62b67516a08951a20b12b02e5d20b5045edbb687c3aabe9170286ec5bb9000a1",
core_lib = {
"netcoreapp2.0": "lib/netstandard2.0/nunit.framework.dll",
"netcoreapp2.1": "lib/netstandard2.0/nunit.framework.dll",
},
net_lib = {
"net45": "lib/net45/nunit.framework.dll",
"net451": "lib/net45/nunit.framework.dll",
"net452": "lib/net45/nunit.framework.dll",
"net46": "lib/net45/nunit.framework.dll",
"net461": "lib/net45/nunit.framework.dll",
"net462": "lib/net45/nunit.framework.dll",
"net47": "lib/net45/nunit.framework.dll",
"net471": "lib/net45/nunit.framework.dll",
"net472": "lib/net45/nunit.framework.dll",
"netstandard1.4": "lib/netstandard1.4/nunit.framework.dll",
"netstandard1.5": "lib/netstandard1.4/nunit.framework.dll",
"netstandard1.6": "lib/netstandard1.4/nunit.framework.dll",
"netstandard2.0": "lib/netstandard2.0/nunit.framework.dll",
},
mono_lib = "lib/net45/nunit.framework.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
"netcoreapp2.1": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
},
net_files = {
"net45": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net451": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net452": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net46": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net461": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net462": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net47": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net471": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net472": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"netstandard1.4": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard1.5": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard1.6": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard2.0": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
},
mono_files = [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
)
nuget_package(
name = "nunit.consolerunner",
package = "nunit.consolerunner",
version = "3.10.0",
sha256 = "e852dad9a2ec1bd3ee48f3a6be68c7e2322582eaee710c439092c32087f49e84",
core_lib = {
"netcoreapp2.0": "tools/Mono.Cecil.dll",
"netcoreapp2.1": "tools/Mono.Cecil.dll",
},
net_lib = {
"net45": "tools/Mono.Cecil.dll",
"net451": "tools/Mono.Cecil.dll",
"net452": "tools/Mono.Cecil.dll",
"net46": "tools/Mono.Cecil.dll",
"net461": "tools/Mono.Cecil.dll",
"net462": "tools/Mono.Cecil.dll",
"net47": "tools/Mono.Cecil.dll",
"net471": "tools/Mono.Cecil.dll",
"net472": "tools/Mono.Cecil.dll",
"netstandard1.0": "tools/Mono.Cecil.dll",
"netstandard1.1": "tools/Mono.Cecil.dll",
"netstandard1.2": "tools/Mono.Cecil.dll",
"netstandard1.3": "tools/Mono.Cecil.dll",
"netstandard1.4": "tools/Mono.Cecil.dll",
"netstandard1.5": "tools/Mono.Cecil.dll",
"netstandard1.6": "tools/Mono.Cecil.dll",
"netstandard2.0": "tools/Mono.Cecil.dll",
},
mono_lib = "tools/Mono.Cecil.dll",
core_tool = {
"netcoreapp2.0": "tools/nunit3-console.exe",
"netcoreapp2.1": "tools/nunit3-console.exe",
},
net_tool = {
"net45": "tools/nunit3-console.exe",
"net451": "tools/nunit3-console.exe",
"net452": "tools/nunit3-console.exe",
"net46": "tools/nunit3-console.exe",
"net461": "tools/nunit3-console.exe",
"net462": "tools/nunit3-console.exe",
"net47": "tools/nunit3-console.exe",
"net471": "tools/nunit3-console.exe",
"net472": "tools/nunit3-console.exe",
"netstandard1.0": "tools/nunit3-console.exe",
"netstandard1.1": "tools/nunit3-console.exe",
"netstandard1.2": "tools/nunit3-console.exe",
"netstandard1.3": "tools/nunit3-console.exe",
"netstandard1.4": "tools/nunit3-console.exe",
"netstandard1.5": "tools/nunit3-console.exe",
"netstandard1.6": "tools/nunit3-console.exe",
"netstandard2.0": "tools/nunit3-console.exe",
},
mono_tool = "tools/nunit3-console.exe",
core_files = {
"netcoreapp2.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netcoreapp2.1": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
},
net_files = {
"net45": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net451": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net452": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net46": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net461": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net462": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net47": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net471": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net472": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.1": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.2": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.3": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.4": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.5": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.6": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard2.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
},
mono_files = [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
)
### End of generated by the tool
return
|
target_num = int(input())
sum_nums = 0
while sum_nums < target_num:
input_num = int(input())
sum_nums += input_num
print(sum_nums)
|
class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
if len(grid) <= 0 or grid is None:
return 0
rows = len(grid)
cols = len(grid[0])
for r in range(rows):
for c in range(cols):
if r==0 and c==0:
continue
if r-1<0:
grid[r][c] = grid[r][c] + grid[r][c-1]
elif c-1<0:
grid[r][c] = grid[r][c] + grid[r-1][c]
else:
grid[r][c] = grid[r][c] + min(grid[r-1][c], grid[r][c-1])
return grid[rows-1][cols-1]
|
def extractNovelsJapan(item):
"""
'Novels Japan'
"""
if item['title'].endswith(' (Sponsored)'):
item['title'] = item['title'][:-1 * len(' (Sponsored)')]
if item['title'].endswith(' and Announcement'):
item['title'] = item['title'][:-1 * len(' and Announcement')]
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
if item['title'].lower().endswith('loner dungeon'):
return buildReleaseMessageWithType(item, 'I who is a Loner, Using cheats adapts to the Dungeon', vol, chp, frag=frag, postfix=postfix)
if item['title'].lower().endswith('vending machine'):
return buildReleaseMessageWithType(item, 'I was Reborn as a Vending Machine, Wandering in the Dungeon', vol, chp, frag=frag, postfix=postfix)
if item['title'].lower().endswith('login bonus'):
return buildReleaseMessageWithType(item, 'Skill Up with Login Bonus', vol, chp, frag=frag, postfix=postfix)
if item['title'].lower().endswith('lv2 cheat') or item['title'].lower().endswith(
'ex-hero candidate’s, who turned out to be a cheat from lv2, laid-back life in another world') or 'Lv2 Cheat' in item['tags']:
return buildReleaseMessageWithType(item, "Ex-Hero Candidate's, Who Turned Out To Be A Cheat From Lv2, Laid-back Life In Another World", vol, chp, frag=frag, postfix=postfix)
if 'Second Earth' in item['tags']:
return buildReleaseMessageWithType(item, 'Second Earth', vol, chp, frag=frag, postfix=postfix)
if 'Strongest Revolution' in item['tags']:
return buildReleaseMessageWithType(item, 'The Fierce Revolution ~ The Strongest Organism Which Can Kill the Devil and the Hero', vol, chp, frag=frag, postfix=postfix)
if 'Loner Dungeon' in item['tags']:
return buildReleaseMessageWithType(item, 'I who is a Loner, Using cheats adapts to the Dungeon', vol, chp, frag=frag, postfix=postfix)
if 'Skill Up' in item['tags']:
return buildReleaseMessageWithType(item, 'Skill Up with Login Bonus', vol, chp, frag=frag, postfix=postfix)
if 'Isobe Isobee' in item['tags']:
return buildReleaseMessageWithType(item, 'Isobe Isobee', vol, chp, frag=frag, postfix=postfix)
if 'Ex-hero' in item['tags']:
return buildReleaseMessageWithType(item, "Ex-Hero Candidate's, Who Turned Out To Be A Cheat From Lv2, Laid-back Life In Another World", vol, chp, frag=frag, postfix=postfix)
return False
|
""" Asked by: Amazon [Medium]
Given a string s and an integer k, break up the string into multiple lines such that each line has a length of k or less.
You must break it up so that words don't break across lines.
Each line has to have the maximum possible amount of words.
If there's no way to break the text up, then return null.
You can assume that there are no spaces at the ends of the string
and that there is exactly one space between each word.
For example, given the string "the quick brown fox jumps over the lazy dog" and k = 10,
you should return: ["the quick", "brown fox", "jumps over", "the lazy", "dog"].
No string in the list has a length of more than 10.
"""
|
n1=input()
def OddEvenSum(n1):
listNum=[]
for j in range(0,len(n1)):
listNum.append(int(n1[j]))
oddSum=0; evenSum=0
for k in range(0,len(listNum)):
if listNum[k]%2==0:
evenSum+=listNum[k]
else:
oddSum+=listNum[k]
print(f"Odd sum = {oddSum}, Even sum = {evenSum}")
OddEvenSum(n1)
|
# -*- coding: utf-8 -*-
'''
Created on Aug-31-19 10:07:28
@author: hustcc/webhookit
'''
# This means:
# When get a webhook request from `repo_name` on branch `branch_name`,
# will exec SCRIPT on servers config in the array.
WEBHOOKIT_CONFIGURE = {
# a web hook request can trigger multiple servers.
'repo_name/branch_name': [{
# if exec shell on local server, keep empty.
'HOST': '', # will exec shell on which server.
'PORT': '', # ssh port, default is 22.
'USER': '', # linux user name
'PWD': '', # user password or private key.
# The webhook shell script path.
'SCRIPT': '/home/hustcc/exec_hook_shell.sh'
}]
}
|
"""
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Resource base classes.
"""
__docformat__ = "reStructuredText en"
__all__ = ['RELATION_BASE_URL',
]
RELATION_BASE_URL = 'http://relations.thelma.org'
|
test = {
'name': 'FooBar',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
>>> class Foo:
... def print_one(self):
... print('foo')
... def print_two():
... print('foofoo')
>>> f = Foo()
>>> f.print_one()
foo
>>> f.print_two()
Error
>>> Foo.print_two()
foofoo
>>> class Bar(Foo):
... def print_one(self):
... print('bar')
>>> b = Bar()
>>> b.print_one()
bar
>>> Bar.print_two()
foofoo
>>> Bar.print_one = lambda x: print('new bar')
>>> b.print_one()
new bar
""",
'hidden': False,
'locked': False
}
],
'scored': False,
'type': 'wwpp'
}
]
}
|
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraFeedback.msg"
services_str = ""
pkg_name = "fetchit_challenge"
dependencies_str = "actionlib_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "fetchit_challenge;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg;actionlib_msgs;/opt/ros/melodic/share/actionlib_msgs/cmake/../msg;std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
|
'''
Lab 0, Task 2. Archakov Vsevolod
GitHub link: https://github.com/SevkavTV/Lab0_Task2.git
'''
def validate_lst(element: list) -> bool:
'''
Return True if element is valid and False in other case
>>> validate_lst([1, 1])
False
'''
for item in range(1, 10):
if element.count(item) > 1:
return False
return True
def valid_row_column(board: list) -> bool:
'''
Return True if all rows and columns are valid and False in other case
>>> valid_row_column([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
for row in range(9):
row_lst = []
column_lst = []
# iterate both through all columns and rows
for column in range(9):
if board[row][column] != '*' and board[row][column] != ' ':
row_lst.append(int(board[row][column]))
if board[column][row] != '*' and board[column][row] != ' ':
column_lst.append(int(board[column][row]))
# validate lists (column, row) with values
if not validate_lst(row_lst) or not validate_lst(column_lst):
return False
return True
def valid_angle(board: list) -> bool:
'''
Return True if all colors are valid and False in other case
>>> valid_angle([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
True
>>> valid_angle([ \
"**** ****", \
"***11****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
for row in range(4, -1, -1):
angle = []
# iterate through each color in a column
for column in range(4 - row, 9 - row):
if board[column][row] != '*' and board[column][row] != ' ':
angle.append(int(board[column][row]))
# iterate through each color in a row
for column in range(row + 1, row + 5):
if board[8 - row][column] != '*' and board[8 - row][column] != ' ':
angle.append(int(board[8 - row][column]))
if not validate_lst(angle):
return False
return True
def validate_board(board: list) -> bool:
'''
Return True if board is valid and False in other case
>>> validate_board([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
if not valid_row_column(board) or not valid_angle(board):
return False
return True
|
print('-='*10)
print('{:=^20}'.format('Desafio 1 - BOOTCAMP'))
print('-='*10)
#idade
idade=int(input('Qual a sua idade:'))
n_id=idade+1
print('No ano que vem você terá {} anos. '.format(n_id))
print('-='*20)
#area do triangulo
lado_a=35
lado_b=14.333333
area=(lado_a)*(lado_b)
print('O retângulo de lado A =%f e lado B = %.2f é %.3f\n'%(lado_a,lado_b,area))
print('-='*20)
#lista
lista_1=[1,2,'IGTI']
lista_2=[2,3,'Bootcamp']
lista_3=lista_1+lista_2 #concatena as listas
print(lista_3)
print('-='*20)
#chute
chute=int(input('Escolha um número entre 0 e 30: '))
adv=[5,6,10,14,16,20,30]
if chute in adv:
print('Você acertou um dos números que eu pensei. ')
if chute>15:
print('\nEsse número é maior que 15')
if chute<20:
print('\nEsse número é menor do que 20')
print('Você é fera')
else:
print('Que pena, você errou. Tente novamente!\nObrigado por jogar!')
#lista
frutas=["maças","banana","uva","goiaba"]
for x in frutas:
if x == "uva":
break
print(x)
#6
n=5
while n>0:
n-=1
print(n)
|
si, sj = map(int, input().split())
T = []
for i in range(50):
t = list(map(int, input().split()))
T.append(t)
P = []
for i in range(50):
p = list(map(int, input().split()))
P.append(p)
chack = [[0] * 50 for i in range(50)]
chack[si][sj] = -1
move = [(1, 0), (-1, 0), (0, 1), (0, -1)]
for i, j in move:
if si+i != -1 and si+i != 50 and sj+j != -1 and sj+j != 50:
if T[si+i][sj+j] == T[si][sj]:
chack[si+i][sj+j] = -1
break
ans = [""]*1250
move_s = ["D", "U", "R", "L"]
cnt = 0
move_r = [(1, 0), (-1, 0), (0, 1000), (0, -1)]
move_l = [(1, 0), (-1, 0), (0, 1), (0, -1000)]
rl = 0
while True:
if sj == 0:
rl = 1
elif sj == 49:
rl = 0
koho = -1
mx = -1
koho_i = -1
koho_j = -1
for m in range(4):
if rl == 0:
i, j = move_r[m]
else:
i, j = move_l[m]
if si+i > -1 and si+i < 50 and sj+j > -1 and sj+j < 50:
if chack[si+i][sj+j] != -1:
if P[si+i][sj+j] > mx:
koho = m
mx = P[si+i][sj+j]
koho_i = i
koho_j = j
if koho == -1:
break
si += koho_i
sj += koho_j
ans[cnt] = move_s[koho]
chack[si][sj] = -1
cnt += 1
for i, j in move:
if si+i > -1 and si+i < 50 and sj+j > -1 and sj+j < 50:
if T[si+i][sj+j] == T[si][sj]:
chack[si+i][sj+j] = -1
break
print(''.join(ans))
|
num = int(input('Digite um número: '))
dobro = num * 2
triplo = num * 3
raiz = num ** (1/2)
print('O dobro de {} é igual a {}.'.format(num, dobro))
print('O triplo de {} é igual a {}.'.format(num, triplo))
print('A raiz quadrada de {} é igual a {:.2f}.'.format(num, raiz))
|
"""
error models for pybugsnag
"""
class PyBugsnagException(Exception):
"""base pybugsnag exception class"""
def __init__(self, *args, **kwargs):
extra = ""
if args:
extra = '\n| extra info: "{extra}"'.format(extra=args[0])
print(
"[{exception}]: {doc}{extra}".format(
exception=self.__class__.__name__, doc=self.__doc__, extra=extra
)
)
Exception.__init__(self, *args, **kwargs)
class RateLimited(PyBugsnagException):
"""request received a 429 - you are currently rate limited"""
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.