content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
description = 'TOF counter devices'
group = 'lowlevel'
devices = dict(
monitor = device('nicos.devices.generic.VirtualCounter',
description = 'TOFTOF monitor',
fmtstr = '%d',
type = 'monitor',
lowlevel = True,
pollinterval = None,
),
timer = device('nicos.devices.generic.VirtualTimer',
description = 'TOFTOF timer',
fmtstr = '%.2f',
unit = 's',
lowlevel = True,
pollinterval = None,
),
image = device('nicos_mlz.toftof.devices.virtual.VirtualImage',
description = 'Image data device',
fmtstr = '%d',
pollinterval = None,
lowlevel = True,
numinputs = 1006,
size = (1024, 1024),
datafile = 'nicos_demo/vtoftof/data/test/data.npz',
),
det = device('nicos_mlz.toftof.devices.detector.Detector',
description = 'The TOFTOF detector device',
timers = ['timer'],
monitors = ['monitor'],
images = ['image'],
rc = 'rc',
chopper = 'ch',
chdelay = 'chdelay',
maxage = 3,
pollinterval = None,
liveinterval = 10.0,
saveintervals = [30.],
detinfofile = 'nicos_demo/vtoftof/detinfo.dat',
),
)
| description = 'TOF counter devices'
group = 'lowlevel'
devices = dict(monitor=device('nicos.devices.generic.VirtualCounter', description='TOFTOF monitor', fmtstr='%d', type='monitor', lowlevel=True, pollinterval=None), timer=device('nicos.devices.generic.VirtualTimer', description='TOFTOF timer', fmtstr='%.2f', unit='s', lowlevel=True, pollinterval=None), image=device('nicos_mlz.toftof.devices.virtual.VirtualImage', description='Image data device', fmtstr='%d', pollinterval=None, lowlevel=True, numinputs=1006, size=(1024, 1024), datafile='nicos_demo/vtoftof/data/test/data.npz'), det=device('nicos_mlz.toftof.devices.detector.Detector', description='The TOFTOF detector device', timers=['timer'], monitors=['monitor'], images=['image'], rc='rc', chopper='ch', chdelay='chdelay', maxage=3, pollinterval=None, liveinterval=10.0, saveintervals=[30.0], detinfofile='nicos_demo/vtoftof/detinfo.dat')) |
# -*- coding: utf-8 -*-
# @Time : 2020/12/20 17:54:58
# @Author : ddvv
# @Site : https://ddvvmmzz.github.io
# @File : filetypes.py
# @Software: Visual Studio Code
FILE_TYPE_MAPPING = {
'eml': 'eml',
'html': 'html',
'zip': 'zip',
'doc': 'ole',
'docx': 'zip',
'xls': 'ole',
'xlsx': 'zip',
'ppt': 'ole',
'pptx': 'zip',
'rtf': 'rtf',
'vba': 'vba',
'exe': 'exe',
'pdf': 'pdf',
'ole': 'ole',
'lnk': 'lnk',
}
OTHER_LIST = ['vba', 'exe', 'pdf', 'bat']
def get_support_file_type(ext):
return FILE_TYPE_MAPPING.get(ext, 'other')
| file_type_mapping = {'eml': 'eml', 'html': 'html', 'zip': 'zip', 'doc': 'ole', 'docx': 'zip', 'xls': 'ole', 'xlsx': 'zip', 'ppt': 'ole', 'pptx': 'zip', 'rtf': 'rtf', 'vba': 'vba', 'exe': 'exe', 'pdf': 'pdf', 'ole': 'ole', 'lnk': 'lnk'}
other_list = ['vba', 'exe', 'pdf', 'bat']
def get_support_file_type(ext):
return FILE_TYPE_MAPPING.get(ext, 'other') |
#!/usr/bin/python3
"""
Given:
Return:
"""
def main():
# Parse in.txt
with open('./in.txt') as f:
for i, line in enumerate(f):
print(i, line)
if __name__ == '__main__':
main()
| """
Given:
Return:
"""
def main():
with open('./in.txt') as f:
for (i, line) in enumerate(f):
print(i, line)
if __name__ == '__main__':
main() |
# Enter your code here. Read input from STDIN. Print output to STDOUT
NumOfLines = int(input()) # taking first input 2
for j in range(NumOfLines): # makes sure we take all the lines as n
s = input() # taking 1st and 2nd line
evens, odds = '',''
for i in range(len(s)):
if i % 2 == 0:
evens += s[i]
else:
odds += s[i]
print(evens, odds)
| num_of_lines = int(input())
for j in range(NumOfLines):
s = input()
(evens, odds) = ('', '')
for i in range(len(s)):
if i % 2 == 0:
evens += s[i]
else:
odds += s[i]
print(evens, odds) |
class MyMessage:
"""
message type definition
"""
# message to neighbor
MSG_TYPE_INIT = 1
MSG_TYPE_SEND_MSG_TO_NEIGHBOR = 2
MSG_TYPE_METRICS = 3
MSG_ARG_KEY_TYPE = "msg_type"
MSG_ARG_KEY_SENDER = "sender"
MSG_ARG_KEY_RECEIVER = "receiver"
"""
message payload keywords definition
"""
MSG_ARG_KEY_NUM_SAMPLES = "num_samples"
MSG_ARG_KEY_MODEL_PARAMS = "model_params"
MSG_ARG_KEY_CLIENT_INDEX = "client_idx"
| class Mymessage:
"""
message type definition
"""
msg_type_init = 1
msg_type_send_msg_to_neighbor = 2
msg_type_metrics = 3
msg_arg_key_type = 'msg_type'
msg_arg_key_sender = 'sender'
msg_arg_key_receiver = 'receiver'
'\n message payload keywords definition\n '
msg_arg_key_num_samples = 'num_samples'
msg_arg_key_model_params = 'model_params'
msg_arg_key_client_index = 'client_idx' |
def add_feature(training_df):
training_df["bin_label"] = training_df.label.apply(lambda l: "O" if l == "O" else "I")
training_df["token_num"] = training_df.token.apply(lambda t: len(t.doc))
training_df["loc"] = training_df.token.apply(lambda t: t.i)
training_df["len"] = training_df.token.apply(lambda t: len(t.text))
training_df["pos"] = training_df.token.apply(lambda t: t.pos_)
training_df["lemma"] = training_df.token.apply(lambda t: t.lemma_)
training_df["like_num"] = training_df.token.apply(lambda t: t.like_num)
training_df["is_quote"] = training_df.token.apply(lambda t: t.is_quote)
training_df["is_head"] = training_df.token.apply(lambda t: t.head.text == t.text)
training_df["is_digit"] = training_df.token.apply(lambda t: t.is_digit)
training_df["is_upper"] = training_df.token.apply(lambda t: len([c for c in t.text if c.isupper()]) != 0)
training_df["is_punct"] = training_df.token.apply(lambda t: t.is_punct)
training_df["is_start"] = training_df.token.apply(lambda t: t.i == 0)
return training_df
| def add_feature(training_df):
training_df['bin_label'] = training_df.label.apply(lambda l: 'O' if l == 'O' else 'I')
training_df['token_num'] = training_df.token.apply(lambda t: len(t.doc))
training_df['loc'] = training_df.token.apply(lambda t: t.i)
training_df['len'] = training_df.token.apply(lambda t: len(t.text))
training_df['pos'] = training_df.token.apply(lambda t: t.pos_)
training_df['lemma'] = training_df.token.apply(lambda t: t.lemma_)
training_df['like_num'] = training_df.token.apply(lambda t: t.like_num)
training_df['is_quote'] = training_df.token.apply(lambda t: t.is_quote)
training_df['is_head'] = training_df.token.apply(lambda t: t.head.text == t.text)
training_df['is_digit'] = training_df.token.apply(lambda t: t.is_digit)
training_df['is_upper'] = training_df.token.apply(lambda t: len([c for c in t.text if c.isupper()]) != 0)
training_df['is_punct'] = training_df.token.apply(lambda t: t.is_punct)
training_df['is_start'] = training_df.token.apply(lambda t: t.i == 0)
return training_df |
"""
1. Clarification
2. Possible solutions
- Sorting
- One pointer
- Two pointers v1
- Two pointers v2
3. Coding
4. Tests
"""
# T=O(nlgn), S=O(n)
class Solution:
def sortColors(self, nums: List[int]) -> None:
nums.sort()
# T=O(n), S=O(1)
class Solution:
def sortColors(self, nums: List[int]) -> None:
n = len(nums)
ptr = 0
for i in range(n):
if nums[i] == 0:
nums[i], nums[ptr] = nums[ptr], nums[i]
ptr += 1
for i in range(ptr, n):
if nums[i] == 1:
nums[i], nums[ptr] = nums[ptr], nums[i]
ptr += 1
# T=O(n), S=O(1)
class Solution:
def sortColors(self, nums: List[int]) -> None:
n = len(nums)
p0 = p1 = 0
for i in range(n):
if nums[i] == 1:
nums[i], nums[p1] = nums[p1], nums[i]
p1 += 1
elif nums[i] == 0:
nums[i], nums[p0] = nums[p0], nums[i]
if p0 < p1:
nums[i], nums[p1] = nums[p1], nums[i]
p0 += 1
p1 += 1
# T=O(n), S=O(1)
class Solution:
def sortColors(self, nums: List[int]) -> None:
n = len(nums)
p0, p2 = 0, n - 1
i = 0
while i <= p2:
while i <= p2 and nums[i] == 2:
nums[i], nums[p2] = nums[p2], nums[i]
p2 -= 1
if nums[i] == 0:
nums[i], nums[p0] = nums[p0], nums[i]
p0 += 1
i += 1
| """
1. Clarification
2. Possible solutions
- Sorting
- One pointer
- Two pointers v1
- Two pointers v2
3. Coding
4. Tests
"""
class Solution:
def sort_colors(self, nums: List[int]) -> None:
nums.sort()
class Solution:
def sort_colors(self, nums: List[int]) -> None:
n = len(nums)
ptr = 0
for i in range(n):
if nums[i] == 0:
(nums[i], nums[ptr]) = (nums[ptr], nums[i])
ptr += 1
for i in range(ptr, n):
if nums[i] == 1:
(nums[i], nums[ptr]) = (nums[ptr], nums[i])
ptr += 1
class Solution:
def sort_colors(self, nums: List[int]) -> None:
n = len(nums)
p0 = p1 = 0
for i in range(n):
if nums[i] == 1:
(nums[i], nums[p1]) = (nums[p1], nums[i])
p1 += 1
elif nums[i] == 0:
(nums[i], nums[p0]) = (nums[p0], nums[i])
if p0 < p1:
(nums[i], nums[p1]) = (nums[p1], nums[i])
p0 += 1
p1 += 1
class Solution:
def sort_colors(self, nums: List[int]) -> None:
n = len(nums)
(p0, p2) = (0, n - 1)
i = 0
while i <= p2:
while i <= p2 and nums[i] == 2:
(nums[i], nums[p2]) = (nums[p2], nums[i])
p2 -= 1
if nums[i] == 0:
(nums[i], nums[p0]) = (nums[p0], nums[i])
p0 += 1
i += 1 |
'''
@Author: CSY
@Date: 2020-01-28 09:55:04
@LastEditors : CSY
@LastEditTime : 2020-01-28 09:55:17
'''
a=5%2==1
print(a) | """
@Author: CSY
@Date: 2020-01-28 09:55:04
@LastEditors : CSY
@LastEditTime : 2020-01-28 09:55:17
"""
a = 5 % 2 == 1
print(a) |
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 20 11:39:22 2020.
@author: Mark
"""
#%%
class VamasHeader:
"""Class for handling headers in Vamas files."""
def __init__(self):
"""
Define default values for some parameters in the header.
Returns
-------
None.
"""
self.formatID = (
"VAMAS Surface Chemical Analysis Standard "
"Data Transfer Format 1988 May 4"
)
self.instituteID = "Not Specified"
self.instriumentModelID = "Not Specified"
self.operatorID = "Not Specified"
self.experimentID = "Not Specified"
self.noCommentLines = "2"
self.commentLines = "Casa Info Follows CasaXPS Version 2.3.22PR1.0\n0"
self.expMode = "NORM"
self.scanMode = "REGULAR"
self.nrRegions = "0"
self.nrExpVar = "1"
self.expVarLabel = "Exp Variable"
self.expVarUnit = "d"
self.unknown3 = "0"
self.unknown4 = "0"
self.unknown5 = "0"
self.unknown6 = "0"
self.noBlocks = "1"
class Block:
"""Class for handling blocks in Vamas files."""
def __init__(self):
"""
Define default values for some parameters of a block.
Returns
-------
None.
"""
self.blockID = ""
self.sampleID = ""
self.year = ""
self.month = ""
self.day = ""
self.hour = ""
self.minute = ""
self.second = ""
self.noHrsInAdvanceOfGMT = "0"
self.noCommentLines = ""
# This list should contain one element per
# for each line in the comment block.
self.commentLines = ""
self.technique = ""
self.expVarValue = ""
self.sourceLabel = ""
self.sourceEnergy = ""
self.unknown1 = "0"
self.unknown2 = "0"
self.unknown3 = "0"
self.sourceAnalyzerAngle = ""
self.unknown4 = "180"
self.analyzerMode = ""
self.resolution = ""
self.magnification = "1"
self.workFunction = ""
self.targetBias = "0"
self.analyzerWidthX = "0"
self.analyzerWidthY = "0"
self.analyzerTakeOffPolarAngle = "0"
self.analyzerAzimuth = "0"
self.speciesLabel = ""
self.transitionLabel = ""
self.particleCharge = "-1"
self.abscissaLabel = "kinetic energy"
self.abscissaUnits = "eV"
self.abscissaStart = ""
self.abscissaStep = ""
self.noVariables = "2"
self.variableLabel1 = "counts"
self.variableUnits1 = "d"
self.variableLabel2 = "Transmission"
self.variableUnits2 = "d"
self.signalMode = "pulse counting"
self.dwellTime = ""
self.noScans = ""
self.timeCorrection = "0"
self.sampleAngleTilt = "0"
self.sampleTiltAzimuth = "0"
self.sampleRotation = "0"
self.noAdditionalParams = "2"
self.paramLabel1 = "ESCAPE DEPTH TYPE"
self.paramUnit1 = "d"
self.paramValue1 = "0"
self.paramLabel2 = "MFP Exponent"
self.paramUnit2 = "d"
self.paramValue2 = "0"
self.numOrdValues = ""
self.minOrdValue1 = ""
self.maxOrdValue1 = ""
self.minOrdValue2 = ""
self.maxOrdValue2 = ""
self.dataString = ""
| """
Created on Mon Jul 20 11:39:22 2020.
@author: Mark
"""
class Vamasheader:
"""Class for handling headers in Vamas files."""
def __init__(self):
"""
Define default values for some parameters in the header.
Returns
-------
None.
"""
self.formatID = 'VAMAS Surface Chemical Analysis Standard Data Transfer Format 1988 May 4'
self.instituteID = 'Not Specified'
self.instriumentModelID = 'Not Specified'
self.operatorID = 'Not Specified'
self.experimentID = 'Not Specified'
self.noCommentLines = '2'
self.commentLines = 'Casa Info Follows CasaXPS Version 2.3.22PR1.0\n0'
self.expMode = 'NORM'
self.scanMode = 'REGULAR'
self.nrRegions = '0'
self.nrExpVar = '1'
self.expVarLabel = 'Exp Variable'
self.expVarUnit = 'd'
self.unknown3 = '0'
self.unknown4 = '0'
self.unknown5 = '0'
self.unknown6 = '0'
self.noBlocks = '1'
class Block:
"""Class for handling blocks in Vamas files."""
def __init__(self):
"""
Define default values for some parameters of a block.
Returns
-------
None.
"""
self.blockID = ''
self.sampleID = ''
self.year = ''
self.month = ''
self.day = ''
self.hour = ''
self.minute = ''
self.second = ''
self.noHrsInAdvanceOfGMT = '0'
self.noCommentLines = ''
self.commentLines = ''
self.technique = ''
self.expVarValue = ''
self.sourceLabel = ''
self.sourceEnergy = ''
self.unknown1 = '0'
self.unknown2 = '0'
self.unknown3 = '0'
self.sourceAnalyzerAngle = ''
self.unknown4 = '180'
self.analyzerMode = ''
self.resolution = ''
self.magnification = '1'
self.workFunction = ''
self.targetBias = '0'
self.analyzerWidthX = '0'
self.analyzerWidthY = '0'
self.analyzerTakeOffPolarAngle = '0'
self.analyzerAzimuth = '0'
self.speciesLabel = ''
self.transitionLabel = ''
self.particleCharge = '-1'
self.abscissaLabel = 'kinetic energy'
self.abscissaUnits = 'eV'
self.abscissaStart = ''
self.abscissaStep = ''
self.noVariables = '2'
self.variableLabel1 = 'counts'
self.variableUnits1 = 'd'
self.variableLabel2 = 'Transmission'
self.variableUnits2 = 'd'
self.signalMode = 'pulse counting'
self.dwellTime = ''
self.noScans = ''
self.timeCorrection = '0'
self.sampleAngleTilt = '0'
self.sampleTiltAzimuth = '0'
self.sampleRotation = '0'
self.noAdditionalParams = '2'
self.paramLabel1 = 'ESCAPE DEPTH TYPE'
self.paramUnit1 = 'd'
self.paramValue1 = '0'
self.paramLabel2 = 'MFP Exponent'
self.paramUnit2 = 'd'
self.paramValue2 = '0'
self.numOrdValues = ''
self.minOrdValue1 = ''
self.maxOrdValue1 = ''
self.minOrdValue2 = ''
self.maxOrdValue2 = ''
self.dataString = '' |
# sum of n to n verbose 1
print('sum of n to n')
number1 = int(input('input number1: '))
number2 = int(input('input number2: '))
if number1 > number2:
number1, number2 = number2, number1
sum = 0
for i in range(number1, number2 + 1):
if i < number2:
print(f'{i} + ', end='')
else:
print(f'{i} = ', end='')
sum += i
print(sum) | print('sum of n to n')
number1 = int(input('input number1: '))
number2 = int(input('input number2: '))
if number1 > number2:
(number1, number2) = (number2, number1)
sum = 0
for i in range(number1, number2 + 1):
if i < number2:
print(f'{i} + ', end='')
else:
print(f'{i} = ', end='')
sum += i
print(sum) |
#!/usr/bin/python3
# Read the file in to an array
input = []
f = open("input.txt", "r")
for l in f:
input.append(l)
def find_search_bit(position, input_list):
v = ""
for i in input_list:
v = v + i[position]
if v.count('1') == v.count('0'):
return 1
elif v.count('1') > v.count('0'):
return 1
else:
return 0
def filter_list(position, filter, input_list):
out_list = []
if position > len(input_list[0]):
print("Error: search position is longer than input string length")
for i in input_list:
if str(i[position]) == str(filter):
out_list.append(i)
return out_list
o2_list = input.copy()
co2_list = input.copy()
for i in range(0, len(input[0])-1):
o2_search_bit = find_search_bit(i, o2_list)
o2_list = filter_list(i, o2_search_bit, o2_list)
if len(o2_list) < 2:
break
print(f"O2 List = {o2_list}")
for i in range(0, len(input[0])-1):
co2_search_bit = find_search_bit(i, co2_list)
if co2_search_bit == 1:
co2_search_bit = 0
else:
co2_search_bit = 1
co2_list = filter_list(i, co2_search_bit, co2_list)
if len(co2_list) < 2:
break
print(f"CO2 List = {o2_list}")
print(f"result = {int(o2_list[0],2) * int(co2_list[0],2)}")
| input = []
f = open('input.txt', 'r')
for l in f:
input.append(l)
def find_search_bit(position, input_list):
v = ''
for i in input_list:
v = v + i[position]
if v.count('1') == v.count('0'):
return 1
elif v.count('1') > v.count('0'):
return 1
else:
return 0
def filter_list(position, filter, input_list):
out_list = []
if position > len(input_list[0]):
print('Error: search position is longer than input string length')
for i in input_list:
if str(i[position]) == str(filter):
out_list.append(i)
return out_list
o2_list = input.copy()
co2_list = input.copy()
for i in range(0, len(input[0]) - 1):
o2_search_bit = find_search_bit(i, o2_list)
o2_list = filter_list(i, o2_search_bit, o2_list)
if len(o2_list) < 2:
break
print(f'O2 List = {o2_list}')
for i in range(0, len(input[0]) - 1):
co2_search_bit = find_search_bit(i, co2_list)
if co2_search_bit == 1:
co2_search_bit = 0
else:
co2_search_bit = 1
co2_list = filter_list(i, co2_search_bit, co2_list)
if len(co2_list) < 2:
break
print(f'CO2 List = {o2_list}')
print(f'result = {int(o2_list[0], 2) * int(co2_list[0], 2)}') |
class SudokuGrid :
def __init__(self,grid=[]) :
if grid :
i = iter(grid)
j = len(next(i))
if j == 9 and all(len(l) == j for l in i):
self.grid = grid
return
self.grid = [[0 for i in range(9)] for j in range(9)]
def show(self) :
print('-------------------------',end='\n')
for i in range(9) :
for j in range(9) :
if j==0 :
print('|',end=(' '))
print(self.grid[i][j],end=(' '))
if j in [2,5] :
print('|',end=(' '))
if j==8 :
print('|',end=('\n'))
if ((i+1)%3==0 and j==8) :
print('-------------------------',end='\n')
def test(self,x,y,n) :
for i in range(9) :
if self.grid[i][y] == n : return False
for i in range(9) :
if self.grid[x][i] == n : return False
x0 = (x//3)*3
y0 = (y//3)*3
for i in range(3) :
for j in range(3) :
if self.grid[x0+i][y0+j] == n : return False
return True
def solve(self) :
for i in range(9) :
for j in range(9) :
if self.grid[i][j] == 0 :
for n in range(1,10) :
if self.test(i,j,n) :
self.grid[i][j] = n
self.solve()
self.grid[i][j] = 0
return
self.show()
return | class Sudokugrid:
def __init__(self, grid=[]):
if grid:
i = iter(grid)
j = len(next(i))
if j == 9 and all((len(l) == j for l in i)):
self.grid = grid
return
self.grid = [[0 for i in range(9)] for j in range(9)]
def show(self):
print('-------------------------', end='\n')
for i in range(9):
for j in range(9):
if j == 0:
print('|', end=' ')
print(self.grid[i][j], end=' ')
if j in [2, 5]:
print('|', end=' ')
if j == 8:
print('|', end='\n')
if (i + 1) % 3 == 0 and j == 8:
print('-------------------------', end='\n')
def test(self, x, y, n):
for i in range(9):
if self.grid[i][y] == n:
return False
for i in range(9):
if self.grid[x][i] == n:
return False
x0 = x // 3 * 3
y0 = y // 3 * 3
for i in range(3):
for j in range(3):
if self.grid[x0 + i][y0 + j] == n:
return False
return True
def solve(self):
for i in range(9):
for j in range(9):
if self.grid[i][j] == 0:
for n in range(1, 10):
if self.test(i, j, n):
self.grid[i][j] = n
self.solve()
self.grid[i][j] = 0
return
self.show()
return |
def get_initializer(initializer, is_bias=False):
"""
get caffe initializer method.
:param initializer: DLMDL weight/bias initializer declaration. Dictionary
:param is_bias: whether bias or not
:return: weight/bias initializer dictinary
"""
def get_value(key, default=None):
"""
get attributes in initializer
:param key: key value for parsing
:param default: default value of attribute
:return: value
"""
value = initializer.get(key)
if value is None:
return default
return value
# get initializer type
# default: weights - 'normal', bias - 'constant'
type = get_value('type', default='constant' if is_bias else 'normal')
# find initializer
if type == 'constant': # constant value initializer
value = get_value('value', default=None)
if value is None:
raise Exception('[DLMDL ERROR]: {0} in uniform initializer must be declared.'.format('value'))
init = {'type': type, 'value': value}
elif type == 'uniform': # uniform random initializer
max = get_value('max', default=None)
if max is None:
raise Exception('[DLMDL ERROR]: {0} in uniform initializer must be declared.'.format('max'))
min = get_value('min', default=0.0)
init = {'type': type, 'min': min, 'max': max}
elif type == 'normal': # gaussian initializer
mean = get_value('mean', default=0.0)
std = get_value('std', default=0.01)
init = {'type': 'gaussian', 'mean': mean, 'std': std}
elif type == 'xavier': # xavier(glorot) initializer
mode = get_value('mode', default='IN')
if mode == 'IN': #FAN_IN
mode = 0
elif mode == 'OUT': #FAN_OUT
mode = 1
elif mode == 'AVG': #AVERAGE
mode == 2
init = {'type': type, 'variance_norm': mode}
elif type == 'msra': # delving deep into rectifiers(MSRA) initializer
mode = get_value('mode', default='IN')
if mode == 'IN':
mode = 0
elif mode == 'OUT':
mode = 1
elif mode == 'AVG':
mode == 2
init = {'type': type, 'variance_norm': mode}
elif type == 'bilinear': # bilinear initializer
init = {'type': type}
elif type == 'positive_unitball': # positive unitball initializer
init = {'type': type}
else: # TODO: error control
init = None
return init
| def get_initializer(initializer, is_bias=False):
"""
get caffe initializer method.
:param initializer: DLMDL weight/bias initializer declaration. Dictionary
:param is_bias: whether bias or not
:return: weight/bias initializer dictinary
"""
def get_value(key, default=None):
"""
get attributes in initializer
:param key: key value for parsing
:param default: default value of attribute
:return: value
"""
value = initializer.get(key)
if value is None:
return default
return value
type = get_value('type', default='constant' if is_bias else 'normal')
if type == 'constant':
value = get_value('value', default=None)
if value is None:
raise exception('[DLMDL ERROR]: {0} in uniform initializer must be declared.'.format('value'))
init = {'type': type, 'value': value}
elif type == 'uniform':
max = get_value('max', default=None)
if max is None:
raise exception('[DLMDL ERROR]: {0} in uniform initializer must be declared.'.format('max'))
min = get_value('min', default=0.0)
init = {'type': type, 'min': min, 'max': max}
elif type == 'normal':
mean = get_value('mean', default=0.0)
std = get_value('std', default=0.01)
init = {'type': 'gaussian', 'mean': mean, 'std': std}
elif type == 'xavier':
mode = get_value('mode', default='IN')
if mode == 'IN':
mode = 0
elif mode == 'OUT':
mode = 1
elif mode == 'AVG':
mode == 2
init = {'type': type, 'variance_norm': mode}
elif type == 'msra':
mode = get_value('mode', default='IN')
if mode == 'IN':
mode = 0
elif mode == 'OUT':
mode = 1
elif mode == 'AVG':
mode == 2
init = {'type': type, 'variance_norm': mode}
elif type == 'bilinear':
init = {'type': type}
elif type == 'positive_unitball':
init = {'type': type}
else:
init = None
return init |
class Heapsort:
def sort(self, arr):
self.__build_max_heap(arr)
size = len(arr) - 1
for i in range(size, -1, -1):
self.__max_heapify(arr, 0, i)
# swap last index with first index already sorted
arr[0], arr[i] = arr[i], arr[0]
def __build_max_heap(self, arr):
size = len(arr) - 1
for i in range(int(size / 2), -1, -1):
self.__max_heapify(arr, i, size)
def __max_heapify(self, arr, root_index, size):
'''
Heapify subtree rooted at index root_index
Parameters
----------
arr: list
List of values
root_index: int
Root index
size: int
Index of the last valid element of the list (Heap size)
----------
'''
# Initialize largest as root
largest = root_index
# Set index of left and right children
left = (2 * root_index) + 1
right = left + 1
# See if left child of root exists and is greater than root
if(left <= size and arr[left] > arr[largest]):
largest = left
# See if right child of root exists and is greater than root
if(right <= size and arr[right] > arr[largest]):
largest = right
# Change root, if needed
if largest != root_index:
# swap
arr[root_index], arr[largest] = arr[largest], arr[root_index]
# Heapify the new root.
self.__max_heapify(arr, largest, size)
if __name__ == "__main__":
arr = [4, 1, 3, 2, 16, 9, 10, 14, 8, 7]
Heapsort().sort(arr)
print(arr) | class Heapsort:
def sort(self, arr):
self.__build_max_heap(arr)
size = len(arr) - 1
for i in range(size, -1, -1):
self.__max_heapify(arr, 0, i)
(arr[0], arr[i]) = (arr[i], arr[0])
def __build_max_heap(self, arr):
size = len(arr) - 1
for i in range(int(size / 2), -1, -1):
self.__max_heapify(arr, i, size)
def __max_heapify(self, arr, root_index, size):
"""
Heapify subtree rooted at index root_index
Parameters
----------
arr: list
List of values
root_index: int
Root index
size: int
Index of the last valid element of the list (Heap size)
----------
"""
largest = root_index
left = 2 * root_index + 1
right = left + 1
if left <= size and arr[left] > arr[largest]:
largest = left
if right <= size and arr[right] > arr[largest]:
largest = right
if largest != root_index:
(arr[root_index], arr[largest]) = (arr[largest], arr[root_index])
self.__max_heapify(arr, largest, size)
if __name__ == '__main__':
arr = [4, 1, 3, 2, 16, 9, 10, 14, 8, 7]
heapsort().sort(arr)
print(arr) |
# Copyright Hybrid Logic Ltd. See LICENSE file for details.
"""
Admin scripts and modules which should not be shipped with Flocker.
Since :module:`admin.release` is imported from setup.py, we need to ensure that
this only imports things from the stdlib.
"""
| """
Admin scripts and modules which should not be shipped with Flocker.
Since :module:`admin.release` is imported from setup.py, we need to ensure that
this only imports things from the stdlib.
""" |
#
# PySNMP MIB module ADTRAN-AOS-VQM (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-AOS-VQM
# Produced by pysmi-0.3.4 at Mon Apr 29 16:58:58 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)
#
adGenAOSVoice, adGenAOSConformance = mibBuilder.importSymbols("ADTRAN-AOS", "adGenAOSVoice", "adGenAOSConformance")
adIdentity, = mibBuilder.importSymbols("ADTRAN-MIB", "adIdentity")
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
MibIdentifier, Counter32, ObjectIdentity, TimeTicks, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, IpAddress, Integer32, Bits, iso, Counter64, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter32", "ObjectIdentity", "TimeTicks", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "IpAddress", "Integer32", "Bits", "iso", "Counter64", "ModuleIdentity")
TextualConvention, DateAndTime, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DateAndTime", "DisplayString", "TruthValue")
adGenAOSVQMMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 5, 3))
if mibBuilder.loadTexts: adGenAOSVQMMib.setLastUpdated('200901060000Z')
if mibBuilder.loadTexts: adGenAOSVQMMib.setOrganization('ADTRAN, Inc.')
adVQM = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3))
adVQMTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0))
adVQMTrapControl = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1))
adVQMCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2))
adVQMThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3))
adVQMSysPerf = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4))
adVQMInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5))
adVQMEndPoint = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6))
adVQMHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7))
adVQMActive = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8))
class MOSvalue(TextualConvention, Integer32):
status = 'current'
displayHint = 'd'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(100, 1000), ValueRangeConstraint(65535, 65535), )
class Percentage(TextualConvention, Integer32):
status = 'current'
displayHint = 'd'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 1000), ValueRangeConstraint(65535, 65535), )
class MsecValue(TextualConvention, Integer32):
status = 'current'
displayHint = 'd'
adVQMEndOfCallTrap = NotificationType((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0, 1)).setObjects(("ADTRAN-AOS-VQM", "adVqmTrapEventType"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosPq"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvAverageMs"))
if mibBuilder.loadTexts: adVQMEndOfCallTrap.setStatus('current')
adVqmTrapState = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adVqmTrapState.setStatus('current')
adVqmTrapCfgSeverityLevel = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("error", 1), ("warning", 2), ("notice", 3), ("info", 4))).clone('warning')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adVqmTrapCfgSeverityLevel.setStatus('current')
adVqmTrapEventType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 3), Bits().clone(namedValues=NamedValues(("lQMos", 0), ("pQMos", 1), ("loss", 2), ("outOfOrder", 3), ("jitter", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmTrapEventType.setStatus('current')
adVqmCfgEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgEnable.setStatus('current')
adVqmCfgSipEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgSipEnable.setStatus('current')
adVqmCfgUdpEnable = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgUdpEnable.setStatus('current')
adVqmCfgInternationalCode = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5))).clone(namedValues=NamedValues(("none", 1), ("japan", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgInternationalCode.setStatus('current')
adVqmCfgJitterBufferType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("jitterBufferFixed", 1), ("jitterBufferAdaptive", 2), ("jitterBufferUnknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferType.setStatus('current')
adVqmCfgJitterBufferAdaptiveMin = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMin.setStatus('current')
adVqmCfgJitterBufferAdaptiveNominal = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveNominal.setStatus('current')
adVqmCfgJitterBufferAdaptiveMax = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferAdaptiveMax.setStatus('current')
adVqmCfgJitterBufferFixedNominal = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedNominal.setStatus('current')
adVqmCfgJitterBufferFixedSize = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferFixedSize.setStatus('current')
adVqmCfgJitterBufferThresholdEarlyMs = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdEarlyMs.setStatus('current')
adVqmCfgJitterBufferThresholdLateMs = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgJitterBufferThresholdLateMs.setStatus('current')
adVqmCfgRoundTripPingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgRoundTripPingEnabled.setStatus('current')
adVqmCfgRoundTripPingType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ping", 1), ("timestamp", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgRoundTripPingType.setStatus('current')
adVqmCfgCallHistorySize = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgCallHistorySize.setStatus('current')
adVqmCfgHistoryThresholdLqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 16), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLqmos.setStatus('current')
adVqmCfgHistoryThresholdCqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 17), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdCqmos.setStatus('current')
adVqmCfgHistoryThresholdPqmos = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 18), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdPqmos.setStatus('current')
adVqmCfgHistoryThresholdLoss = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdLoss.setStatus('current')
adVqmCfgHistoryThresholdOutOfOrder = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 20), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdOutOfOrder.setStatus('current')
adVqmCfgHistoryThresholdJitter = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 21), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCfgHistoryThresholdJitter.setStatus('current')
adVqmCfgClear = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adVqmCfgClear.setStatus('current')
adVqmCfgClearCallHistory = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adVqmCfgClearCallHistory.setStatus('current')
adVqmThresholdLqmosInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 1), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLqmosInfo.setStatus('current')
adVqmThresholdLqmosNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 2), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLqmosNotice.setStatus('current')
adVqmThresholdLqmosWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 3), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLqmosWarning.setStatus('current')
adVqmThresholdLqmosError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 4), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLqmosError.setStatus('current')
adVqmThresholdPqmosInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 5), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdPqmosInfo.setStatus('current')
adVqmThresholdPqmosNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 6), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdPqmosNotice.setStatus('current')
adVqmThresholdPqmosWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 7), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdPqmosWarning.setStatus('current')
adVqmThresholdPqmosError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 8), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdPqmosError.setStatus('current')
adVqmThresholdOutOfOrderInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdOutOfOrderInfo.setStatus('current')
adVqmThresholdOutOfOrderNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdOutOfOrderNotice.setStatus('current')
adVqmThresholdOutOfOrderWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdOutOfOrderWarning.setStatus('current')
adVqmThresholdOutOfOrderError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdOutOfOrderError.setStatus('current')
adVqmThresholdLossInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLossInfo.setStatus('current')
adVqmThresholdLossNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 14), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLossNotice.setStatus('current')
adVqmThresholdLossWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLossWarning.setStatus('current')
adVqmThresholdLossError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdLossError.setStatus('current')
adVqmThresholdJitterInfo = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 17), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdJitterInfo.setStatus('current')
adVqmThresholdJitterNotice = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 18), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdJitterNotice.setStatus('current')
adVqmThresholdJitterWarning = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdJitterWarning.setStatus('current')
adVqmThresholdJitterError = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 20), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmThresholdJitterError.setStatus('current')
adVqmSysActiveCalls = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysActiveCalls.setStatus('current')
adVqmSysActiveExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysActiveExcellent.setStatus('current')
adVqmSysActiveGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysActiveGood.setStatus('current')
adVqmSysActiveFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysActiveFair.setStatus('current')
adVqmSysActivePoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysActivePoor.setStatus('current')
adVqmSysCallHistoryCalls = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysCallHistoryCalls.setStatus('current')
adVqmSysCallHistoryExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysCallHistoryExcellent.setStatus('current')
adVqmSysCallHistoryGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysCallHistoryGood.setStatus('current')
adVqmSysCallHistoryFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysCallHistoryFair.setStatus('current')
adVqmSysCallHistoryPoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysCallHistoryPoor.setStatus('current')
adVqmSysAllCallsExcellent = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysAllCallsExcellent.setStatus('current')
adVqmSysAllCallsGood = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysAllCallsGood.setStatus('current')
adVqmSysAllCallsFair = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysAllCallsFair.setStatus('current')
adVqmSysAllCallsPoor = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmSysAllCallsPoor.setStatus('current')
adVQMInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1), )
if mibBuilder.loadTexts: adVQMInterfaceTable.setStatus('current')
adVQMInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmIfcId"))
if mibBuilder.loadTexts: adVQMInterfaceEntry.setStatus('current')
adVqmIfcId = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcId.setStatus('current')
adVqmIfcName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcName.setStatus('current')
adVqmIfcPktsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPktsRx.setStatus('current')
adVqmIfcPktsLost = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPktsLost.setStatus('current')
adVqmIfcPktsOoo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPktsOoo.setStatus('current')
adVqmIfcPktsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPktsDiscarded.setStatus('current')
adVqmIfcNumberActiveCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcNumberActiveCalls.setStatus('current')
adVqmIfcTerminatedCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcTerminatedCalls.setStatus('current')
adVqmIfcRLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRLqMinimum.setStatus('current')
adVqmIfcRLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRLqAverage.setStatus('current')
adVqmIfcRLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRLqMaximum.setStatus('current')
adVqmIfcRCqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRCqMinimum.setStatus('current')
adVqmIfcRCqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRCqAverage.setStatus('current')
adVqmIfcRCqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 14), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRCqMaximum.setStatus('current')
adVqmIfcRG107Minimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRG107Minimum.setStatus('current')
adVqmIfcRG107Average = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRG107Average.setStatus('current')
adVqmIfcRG107Maximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 17), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcRG107Maximum.setStatus('current')
adVqmIfcMosLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 18), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosLqMinimum.setStatus('current')
adVqmIfcMosLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 19), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosLqAverage.setStatus('current')
adVqmIfcMosLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 20), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosLqMaximum.setStatus('current')
adVqmIfcMosCqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 21), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosCqMinimum.setStatus('current')
adVqmIfcMosCqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 22), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosCqAverage.setStatus('current')
adVqmIfcMosCqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 23), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosCqMaximum.setStatus('current')
adVqmIfcMosPqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 24), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosPqMinimum.setStatus('current')
adVqmIfcMosPqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 25), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosPqAverage.setStatus('current')
adVqmIfcMosPqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 26), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcMosPqMaximum.setStatus('current')
adVqmIfcLossMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 27), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcLossMinimum.setStatus('current')
adVqmIfcLossAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 28), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcLossAverage.setStatus('current')
adVqmIfcLossMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 29), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcLossMaximum.setStatus('current')
adVqmIfcDiscardsMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 30), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDiscardsMinimum.setStatus('current')
adVqmIfcDiscardsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 31), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDiscardsAverage.setStatus('current')
adVqmIfcDiscardsMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 32), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDiscardsMaximum.setStatus('current')
adVqmIfcPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 33), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPdvAverageMs.setStatus('current')
adVqmIfcPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 34), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcPdvMaximumMs.setStatus('current')
adVqmIfcDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 35), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDelayMinMsec.setStatus('current')
adVqmIfcDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 36), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDelayAvgMsec.setStatus('current')
adVqmIfcDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 37), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcDelayMaxMsec.setStatus('current')
adVqmIfcNumberStreamsExcellent = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcNumberStreamsExcellent.setStatus('current')
adVqmIfcNumberStreamsGood = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 39), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcNumberStreamsGood.setStatus('current')
adVqmIfcNumberStreamsFair = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 40), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcNumberStreamsFair.setStatus('current')
adVqmIfcNumberStreamsPoor = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmIfcNumberStreamsPoor.setStatus('current')
adVqmIfcClear = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: adVqmIfcClear.setStatus('current')
adVQMEndPointTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1), )
if mibBuilder.loadTexts: adVQMEndPointTable.setStatus('current')
adVQMEndPointEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmEndPointRtpSourceIp"))
if mibBuilder.loadTexts: adVQMEndPointEntry.setStatus('current')
adVqmEndPointRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointRtpSourceIp.setStatus('current')
adVqmEndPointNumberCompletedCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointNumberCompletedCalls.setStatus('current')
adVqmEndPointInterfaceId = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointInterfaceId.setStatus('current')
adVqmEndPointInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointInterfaceName.setStatus('current')
adVqmEndPointMosLqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 5), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosLqMinimum.setStatus('current')
adVqmEndPointMosLqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 6), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosLqAverage.setStatus('current')
adVqmEndPointMosLqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 7), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosLqMaximum.setStatus('current')
adVqmEndPointMosPqMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 8), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosPqMinimum.setStatus('current')
adVqmEndPointMosPqAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 9), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosPqAverage.setStatus('current')
adVqmEndPointMosPqMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 10), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointMosPqMaximum.setStatus('current')
adVqmEndPointPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointPktsLostTotal.setStatus('current')
adVqmEndPointPktsOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointPktsOutOfOrder.setStatus('current')
adVqmEndPointJitterMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointJitterMaximum.setStatus('current')
adVqmEndPointNumberStreamsExcellent = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointNumberStreamsExcellent.setStatus('current')
adVqmEndPointNumberStreamsGood = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointNumberStreamsGood.setStatus('current')
adVqmEndPointNumberStreamsFair = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointNumberStreamsFair.setStatus('current')
adVqmEndPointNumberStreamsPoor = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmEndPointNumberStreamsPoor.setStatus('current')
adVQMCallHistoryTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1), )
if mibBuilder.loadTexts: adVQMCallHistoryTable.setStatus('current')
adVQMCallHistoryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceIp"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpSourcePort"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpDestIp"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistRtpDestPort"), (0, "ADTRAN-AOS-VQM", "adVqmCallHistSsrcid"))
if mibBuilder.loadTexts: adVQMCallHistoryEntry.setStatus('current')
adVqmCallHistRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtpSourceIp.setStatus('current')
adVqmCallHistRtpSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtpSourcePort.setStatus('current')
adVqmCallHistRtpDestIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtpDestIp.setStatus('current')
adVqmCallHistRtpDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtpDestPort.setStatus('current')
adVqmCallHistSsrcid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistSsrcid.setStatus('current')
adVqmCallHistTo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistTo.setStatus('current')
adVqmCallHistFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistFrom.setStatus('current')
adVqmCallHistRtpSourceUri = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtpSourceUri.setStatus('current')
adVqmCallHistCallid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCallid.setStatus('current')
adVqmCallHistCcmid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCcmid.setStatus('current')
adVqmCallHistSourceIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistSourceIntName.setStatus('current')
adVqmCallHistDestIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDestIntName.setStatus('current')
adVqmCallHistSourceIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistSourceIntDescription.setStatus('current')
adVqmCallHistDestIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 14), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDestIntDescription.setStatus('current')
adVqmCallHistCallStart = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 15), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCallStart.setStatus('current')
adVqmCallHistCallDurationMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCallDurationMs.setStatus('current')
adVqmCallHistCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=NamedValues(("unknown", 1), ("g711U", 2), ("g711UPLC", 3), ("g723153K", 4), ("deprecated1", 5), ("g723163K", 6), ("deprecated2", 7), ("g728", 8), ("deprecated3", 9), ("g729", 10), ("deprecated4", 11), ("g729A", 12), ("deprecated5", 13), ("user1", 14), ("user2", 15), ("user3", 16), ("user4", 17), ("gsmfr", 18), ("reservedgsmhr", 19), ("gsmefr", 20), ("sx7300", 21), ("sx9600", 22), ("g711A", 23), ("g711APLC", 24), ("deprecated6", 25), ("g72616K", 26), ("g72624K", 27), ("g72632K", 28), ("g72640K", 29), ("gipse711U", 30), ("gipse711A", 31), ("gipsilbc", 32), ("gipsisac", 33), ("gipsipcmwb", 34), ("g729E8K0", 35), ("g729E11k8", 36), ("wblinearpcm", 37), ("wblinearpcmPlc", 38), ("g722at64k", 39), ("g722at56k", 40), ("g722at48k", 41), ("g7221at32k", 42), ("g7221at24k", 43), ("g7222at23k85", 44), ("g7222at23k05", 45), ("g7222at19k85", 46), ("g7222at18k25", 47), ("g7222at15k85", 48), ("g7222at14k25", 49), ("g7222at12k85", 50), ("g7222at8k85", 51), ("g7222at6k6", 52), ("qcelp8", 53), ("qcelp13", 54), ("evrc", 55), ("smv812", 56), ("smv579", 57), ("smv444", 58), ("smv395", 59), ("amrnb12k2", 60), ("amrnb10k2", 61), ("amrnb7k95", 62), ("amrnb7k4", 63), ("amrnb6k7", 64), ("amrnb5k9", 65), ("amrnb5k15", 66), ("amrnb4k75", 67), ("ilbc13k3", 68), ("ilbc15k2", 69), ("g711u56k", 70), ("g711uPLC56k", 71), ("g711A56k", 72), ("g711APLC56k", 73), ("g7231C", 74), ("speex2k15", 75), ("speex5k95", 76), ("speeX8k", 77), ("speeX11k", 78), ("speeX15k", 79), ("speeX18k2", 80), ("speeX24k6", 81), ("speeX3k95", 82), ("speeX12k8", 83), ("speeX16k8", 84), ("speeX20k6", 85), ("speeX23k8", 86), ("speeX27k8", 87), ("speeX34k2", 88), ("speeX42k2", 89)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCodec.setStatus('current')
adVqmCallHistCodecClass = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("wideband", 1), ("other", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistCodecClass.setStatus('current')
adVqmCallHistDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDscp.setStatus('current')
adVqmCallHistPktsRcvdTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPktsRcvdTotal.setStatus('current')
adVqmCallHistPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPktsLostTotal.setStatus('current')
adVqmCallHistPktsDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPktsDiscardedTotal.setStatus('current')
adVqmCallHistOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOutOfOrder.setStatus('current')
adVqmCallHistPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 24), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPdvAverageMs.setStatus('current')
adVqmCallHistPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 25), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPdvMaximumMs.setStatus('current')
adVqmCallHistRtDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 26), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtDelayInst.setStatus('current')
adVqmCallHistRtDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 27), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtDelayAverage.setStatus('current')
adVqmCallHistRtDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 28), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRtDelayMaximum.setStatus('current')
adVqmCallHistOnewayDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 29), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOnewayDelayInst.setStatus('current')
adVqmCallHistOnewayDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 30), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOnewayDelayAverage.setStatus('current')
adVqmCallHistOnewayDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 31), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOnewayDelayMaximum.setStatus('current')
adVqmCallHistOrigDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 32), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOrigDelayInst.setStatus('current')
adVqmCallHistOrigDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 33), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOrigDelayAverage.setStatus('current')
adVqmCallHistOrigDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 34), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOrigDelayMaximum.setStatus('current')
adVqmCallHistTermDelayMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 35), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistTermDelayMinimum.setStatus('current')
adVqmCallHistTermDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 36), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistTermDelayAverage.setStatus('current')
adVqmCallHistTermDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 37), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistTermDelayMaximum.setStatus('current')
adVqmCallHistRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 38), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRLq.setStatus('current')
adVqmCallHistRCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 39), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRCq.setStatus('current')
adVqmCallHistRNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 40), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRNominal.setStatus('current')
adVqmCallHistRG107 = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 41), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistRG107.setStatus('current')
adVqmCallHistMosLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 42), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistMosLq.setStatus('current')
adVqmCallHistMosCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 43), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistMosCq.setStatus('current')
adVqmCallHistMosPq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 44), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistMosPq.setStatus('current')
adVqmCallHistMosNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 45), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistMosNominal.setStatus('current')
adVqmCallHistDegLoss = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 46), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegLoss.setStatus('current')
adVqmCallHistDegDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 47), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegDiscard.setStatus('current')
adVqmCallHistDegVocoder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 48), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegVocoder.setStatus('current')
adVqmCallHistDegRecency = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 49), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegRecency.setStatus('current')
adVqmCallHistDegDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 50), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegDelay.setStatus('current')
adVqmCallHistDegSiglvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 51), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegSiglvl.setStatus('current')
adVqmCallHistDegNoiselvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 52), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegNoiselvl.setStatus('current')
adVqmCallHistDegEcholvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 53), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDegEcholvl.setStatus('current')
adVqmCallHistBurstRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 54), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBurstRLq.setStatus('current')
adVqmCallHistBurstCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 55), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBurstCount.setStatus('current')
adVqmCallHistBurstRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 56), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBurstRateAvg.setStatus('current')
adVqmCallHistBurstLenAvgPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 57), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgPkts.setStatus('current')
adVqmCallHistBurstLenAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 58), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBurstLenAvgMsec.setStatus('current')
adVqmCallHistGapR = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 59), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistGapR.setStatus('current')
adVqmCallHistGapCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 60), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistGapCount.setStatus('current')
adVqmCallHistGapLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 61), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistGapLossRateAvg.setStatus('current')
adVqmCallHistGapLenPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 62), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistGapLenPkts.setStatus('current')
adVqmCallHistGapLenMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 63), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistGapLenMsec.setStatus('current')
adVqmCallHistLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 64), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLossRateAvg.setStatus('current')
adVqmCallHistNetworkLossAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 65), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistNetworkLossAvg.setStatus('current')
adVqmCallHistDiscardRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 66), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDiscardRateAvg.setStatus('current')
adVqmCallHistExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 67), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExcessBurst.setStatus('current')
adVqmCallHistExcessGap = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 68), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExcessGap.setStatus('current')
adVqmCallHistPpdvMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 69), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistPpdvMsec.setStatus('current')
adVqmCallHistLateThresholdMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 70), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLateThresholdMs.setStatus('current')
adVqmCallHistLateThresholdPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 71), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLateThresholdPc.setStatus('current')
adVqmCallHistLateUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLateUnderThresh.setStatus('current')
adVqmCallHistLateTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLateTotalCount.setStatus('current')
adVqmCallHistLatePeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 74), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLatePeakJitterMs.setStatus('current')
adVqmCallHistEarlyThreshMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 75), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyThreshMs.setStatus('current')
adVqmCallHistEarlyThreshPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 76), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyThreshPc.setStatus('current')
adVqmCallHistEarlyUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 77), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyUnderThresh.setStatus('current')
adVqmCallHistEarlyTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 78), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyTotalCount.setStatus('current')
adVqmCallHistEarlyPeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 79), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyPeakJitterMs.setStatus('current')
adVqmCallHistDelayIncreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 80), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayIncreaseCount.setStatus('current')
adVqmCallHistDelayDecreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 81), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayDecreaseCount.setStatus('current')
adVqmCallHistResyncCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 82), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistResyncCount.setStatus('current')
adVqmCallHistJitterBufferType = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fixed", 1), ("adaptive", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistJitterBufferType.setStatus('current')
adVqmCallHistJbCfgMin = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 84), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistJbCfgMin.setStatus('current')
adVqmCallHistJbCfgNom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 85), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistJbCfgNom.setStatus('current')
adVqmCallHistJbCfgMax = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 86), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistJbCfgMax.setStatus('current')
adVqmCallHistDuplicatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 87), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDuplicatePkts.setStatus('current')
adVqmCallHistEarlyPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 88), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistEarlyPkts.setStatus('current')
adVqmCallHistLatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 89), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistLatePkts.setStatus('current')
adVqmCallHistOverrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 90), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistOverrunDiscardPkts.setStatus('current')
adVqmCallHistUnderrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 91), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistUnderrunDiscardPkts.setStatus('current')
adVqmCallHistDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 92), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayMinMsec.setStatus('current')
adVqmCallHistDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 93), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayAvgMsec.setStatus('current')
adVqmCallHistDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 94), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayMaxMsec.setStatus('current')
adVqmCallHistDelayCurrentMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 95), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistDelayCurrentMsec.setStatus('current')
adVqmCallHistExtRLqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 96), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExtRLqIn.setStatus('current')
adVqmCallHistExtRLqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 97), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExtRLqOut.setStatus('current')
adVqmCallHistExtRCqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 98), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExtRCqIn.setStatus('current')
adVqmCallHistExtRCqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 99), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistExtRCqOut.setStatus('current')
adVqmCallHistThroughPutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 100), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistThroughPutIndex.setStatus('current')
adVqmCallHistReliabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 101), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistReliabilityIndex.setStatus('current')
adVqmCallHistBitrate = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 102), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmCallHistBitrate.setStatus('current')
adVQMActiveCallTable = MibTable((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1), )
if mibBuilder.loadTexts: adVQMActiveCallTable.setStatus('current')
adVQMActiveCallEntry = MibTableRow((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1), ).setIndexNames((0, "ADTRAN-AOS-VQM", "adVqmActCallRtpSourceIp"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpSourcePort"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpDestIp"), (0, "ADTRAN-AOS-VQM", "adVqmActCallRtpDestPort"), (0, "ADTRAN-AOS-VQM", "adVqmActCallSsrcid"))
if mibBuilder.loadTexts: adVQMActiveCallEntry.setStatus('current')
adVqmActCallRtpSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtpSourceIp.setStatus('current')
adVqmActCallRtpSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtpSourcePort.setStatus('current')
adVqmActCallRtpDestIp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtpDestIp.setStatus('current')
adVqmActCallRtpDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtpDestPort.setStatus('current')
adVqmActCallSsrcid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallSsrcid.setStatus('current')
adVqmActCallTo = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallTo.setStatus('current')
adVqmActCallFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallFrom.setStatus('current')
adVqmActCallRtpSourceUri = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtpSourceUri.setStatus('current')
adVqmActCallCallid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCallid.setStatus('current')
adVqmActCallCcmid = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCcmid.setStatus('current')
adVqmActCallSourceIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallSourceIntName.setStatus('current')
adVqmActCallDestIntName = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDestIntName.setStatus('current')
adVqmActCallSourceIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallSourceIntDescription.setStatus('current')
adVqmActCallDestIntDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 14), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDestIntDescription.setStatus('current')
adVqmActCallCallStart = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 15), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCallStart.setStatus('current')
adVqmActCallCallDurationMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCallDurationMs.setStatus('current')
adVqmActCallCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=NamedValues(("unknown", 1), ("g711U", 2), ("g711UPLC", 3), ("g723153K", 4), ("deprecated1", 5), ("g723163K", 6), ("deprecated2", 7), ("g728", 8), ("deprecated3", 9), ("g729", 10), ("deprecated4", 11), ("g729A", 12), ("deprecated5", 13), ("user1", 14), ("user2", 15), ("user3", 16), ("user4", 17), ("gsmfr", 18), ("reservedgsmhr", 19), ("gsmefr", 20), ("sx7300", 21), ("sx9600", 22), ("g711A", 23), ("g711APLC", 24), ("deprecated6", 25), ("g72616K", 26), ("g72624K", 27), ("g72632K", 28), ("g72640K", 29), ("gipse711U", 30), ("gipse711A", 31), ("gipsilbc", 32), ("gipsisac", 33), ("gipsipcmwb", 34), ("g729E8K0", 35), ("g729E11k8", 36), ("wblinearpcm", 37), ("wblinearpcmPlc", 38), ("g722at64k", 39), ("g722at56k", 40), ("g722at48k", 41), ("g7221at32k", 42), ("g7221at24k", 43), ("g7222at23k85", 44), ("g7222at23k05", 45), ("g7222at19k85", 46), ("g7222at18k25", 47), ("g7222at15k85", 48), ("g7222at14k25", 49), ("g7222at12k85", 50), ("g7222at8k85", 51), ("g7222at6k6", 52), ("qcelp8", 53), ("qcelp13", 54), ("evrc", 55), ("smv812", 56), ("smv579", 57), ("smv444", 58), ("smv395", 59), ("amrnb12k2", 60), ("amrnb10k2", 61), ("amrnb7k95", 62), ("amrnb7k4", 63), ("amrnb6k7", 64), ("amrnb5k9", 65), ("amrnb5k15", 66), ("amrnb4k75", 67), ("ilbc13k3", 68), ("ilbc15k2", 69), ("g711u56k", 70), ("g711uPLC56k", 71), ("g711A56k", 72), ("g711APLC56k", 73), ("g7231C", 74), ("speex2k15", 75), ("speex5k95", 76), ("speeX8k", 77), ("speeX11k", 78), ("speeX15k", 79), ("speeX18k2", 80), ("speeX24k6", 81), ("speeX3k95", 82), ("speeX12k8", 83), ("speeX16k8", 84), ("speeX20k6", 85), ("speeX23k8", 86), ("speeX27k8", 87), ("speeX34k2", 88), ("speeX42k2", 89)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCodec.setStatus('current')
adVqmActCallCodecClass = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("wideband", 1), ("other", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallCodecClass.setStatus('current')
adVqmActCallDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDscp.setStatus('current')
adVqmActCallPktsRcvdTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPktsRcvdTotal.setStatus('current')
adVqmActCallPktsLostTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPktsLostTotal.setStatus('current')
adVqmActCallPktsDiscardedTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPktsDiscardedTotal.setStatus('current')
adVqmActCallOutOfOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOutOfOrder.setStatus('current')
adVqmActCallPdvAverageMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 24), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPdvAverageMs.setStatus('current')
adVqmActCallPdvMaximumMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 25), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPdvMaximumMs.setStatus('current')
adVqmActCallRtDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 26), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtDelayInst.setStatus('current')
adVqmActCallRtDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 27), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtDelayAverage.setStatus('current')
adVqmActCallRtDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 28), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRtDelayMaximum.setStatus('current')
adVqmActCallOnewayDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 29), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOnewayDelayInst.setStatus('current')
adVqmActCallOnewayDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 30), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOnewayDelayAverage.setStatus('current')
adVqmActCallOnewayDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 31), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOnewayDelayMaximum.setStatus('current')
adVqmActCallOrigDelayInst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 32), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOrigDelayInst.setStatus('current')
adVqmActCallOrigDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 33), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOrigDelayAverage.setStatus('current')
adVqmActCallOrigDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 34), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOrigDelayMaximum.setStatus('current')
adVqmActCallTermDelayMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 35), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallTermDelayMinimum.setStatus('current')
adVqmActCallTermDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 36), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallTermDelayAverage.setStatus('current')
adVqmActCallTermDelayMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 37), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallTermDelayMaximum.setStatus('current')
adVqmActCallRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 38), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRLq.setStatus('current')
adVqmActCallRCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 39), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRCq.setStatus('current')
adVqmActCallRNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 40), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRNominal.setStatus('current')
adVqmActCallRG107 = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 41), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallRG107.setStatus('current')
adVqmActCallMosLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 42), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallMosLq.setStatus('current')
adVqmActCallMosCq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 43), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallMosCq.setStatus('current')
adVqmActCallMosPq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 44), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallMosPq.setStatus('current')
adVqmActCallMosNominal = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 45), MOSvalue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallMosNominal.setStatus('current')
adVqmActCallDegLoss = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 46), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegLoss.setStatus('current')
adVqmActCallDegDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 47), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegDiscard.setStatus('current')
adVqmActCallDegVocoder = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 48), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegVocoder.setStatus('current')
adVqmActCallDegRecency = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 49), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegRecency.setStatus('current')
adVqmActCallDegDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 50), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegDelay.setStatus('current')
adVqmActCallDegSiglvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 51), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegSiglvl.setStatus('current')
adVqmActCallDegNoiselvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 52), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegNoiselvl.setStatus('current')
adVqmActCallDegEcholvl = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 53), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDegEcholvl.setStatus('current')
adVqmActCallBurstRLq = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 54), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBurstRLq.setStatus('current')
adVqmActCallBurstCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 55), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBurstCount.setStatus('current')
adVqmActCallBurstRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 56), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBurstRateAvg.setStatus('current')
adVqmActCallBurstLenAvgPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 57), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBurstLenAvgPkts.setStatus('current')
adVqmActCallBurstLenAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 58), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBurstLenAvgMsec.setStatus('current')
adVqmActCallGapR = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 59), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallGapR.setStatus('current')
adVqmActCallGapCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 60), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallGapCount.setStatus('current')
adVqmActCallGapLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 61), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallGapLossRateAvg.setStatus('current')
adVqmActCallGapLenPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 62), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallGapLenPkts.setStatus('current')
adVqmActCallGapLenMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 63), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallGapLenMsec.setStatus('current')
adVqmActCallLossRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 64), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLossRateAvg.setStatus('current')
adVqmActCallNetworkLossAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 65), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallNetworkLossAvg.setStatus('current')
adVqmActCallDiscardRateAvg = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 66), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDiscardRateAvg.setStatus('current')
adVqmActCallExcessBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 67), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExcessBurst.setStatus('current')
adVqmActCallExcessGap = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 68), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExcessGap.setStatus('current')
adVqmActCallPpdvMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 69), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallPpdvMsec.setStatus('current')
adVqmActCallLateThresholdMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 70), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLateThresholdMs.setStatus('current')
adVqmActCallLateThresholdPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 71), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLateThresholdPc.setStatus('current')
adVqmActCallLateUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLateUnderThresh.setStatus('current')
adVqmActCallLateTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLateTotalCount.setStatus('current')
adVqmActCallLatePeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 74), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLatePeakJitterMs.setStatus('current')
adVqmActCallEarlyThreshMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 75), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyThreshMs.setStatus('current')
adVqmActCallEarlyThreshPc = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 76), Percentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyThreshPc.setStatus('current')
adVqmActCallEarlyUnderThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 77), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyUnderThresh.setStatus('current')
adVqmActCallEarlyTotalCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 78), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyTotalCount.setStatus('current')
adVqmActCallEarlyPeakJitterMs = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 79), MsecValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyPeakJitterMs.setStatus('current')
adVqmActCallDelayIncreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 80), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayIncreaseCount.setStatus('current')
adVqmActCallDelayDecreaseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 81), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayDecreaseCount.setStatus('current')
adVqmActCallResyncCount = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 82), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallResyncCount.setStatus('current')
adVqmActCallJitterBufferType = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fixed", 1), ("adaptive", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallJitterBufferType.setStatus('current')
adVqmActCallJbCfgMin = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 84), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallJbCfgMin.setStatus('current')
adVqmActCallJbCfgNom = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 85), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallJbCfgNom.setStatus('current')
adVqmActCallJbCfgMax = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 86), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallJbCfgMax.setStatus('current')
adVqmActCallDuplicatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 87), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDuplicatePkts.setStatus('current')
adVqmActCallEarlyPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 88), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallEarlyPkts.setStatus('current')
adVqmActCallLatePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 89), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallLatePkts.setStatus('current')
adVqmActCallOverrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 90), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallOverrunDiscardPkts.setStatus('current')
adVqmActCallUnderrunDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 91), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallUnderrunDiscardPkts.setStatus('current')
adVqmActCallDelayMinMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 92), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayMinMsec.setStatus('current')
adVqmActCallDelayAvgMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 93), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayAvgMsec.setStatus('current')
adVqmActCallDelayMaxMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 94), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayMaxMsec.setStatus('current')
adVqmActCallDelayCurrentMsec = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 95), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallDelayCurrentMsec.setStatus('current')
adVqmActCallExtRLqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 96), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExtRLqIn.setStatus('current')
adVqmActCallExtRLqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 97), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExtRLqOut.setStatus('current')
adVqmActCallExtRCqIn = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 98), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExtRCqIn.setStatus('current')
adVqmActCallExtRCqOut = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 99), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallExtRCqOut.setStatus('current')
adVqmActCallThroughPutIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 100), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallThroughPutIndex.setStatus('current')
adVqmActCallReliabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 101), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallReliabilityIndex.setStatus('current')
adVqmActCallBitrate = MibTableColumn((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 102), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adVqmActCallBitrate.setStatus('current')
adGenAOSVqmConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10))
adGenAOSVqmGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1))
adGenAOSVqmCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2))
adGenAOSVqmFullCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2, 1)).setObjects(("ADTRAN-AOS-VQM", "adVQMCfgGroup"), ("ADTRAN-AOS-VQM", "adVQMThresholdGroup"), ("ADTRAN-AOS-VQM", "adVQMSysPerfGroup"), ("ADTRAN-AOS-VQM", "adVQMInterfaceGroup"), ("ADTRAN-AOS-VQM", "adVQMEndPointGroup"), ("ADTRAN-AOS-VQM", "adVQMCallHistoryGroup"), ("ADTRAN-AOS-VQM", "adVQMActiveCallGroup"), ("ADTRAN-AOS-VQM", "adVQMTrapGroup"), ("ADTRAN-AOS-VQM", "adVQMNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adGenAOSVqmFullCompliance = adGenAOSVqmFullCompliance.setStatus('current')
adVQMCfgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 1)).setObjects(("ADTRAN-AOS-VQM", "adVqmCfgEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgSipEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgUdpEnable"), ("ADTRAN-AOS-VQM", "adVqmCfgInternationalCode"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveMin"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveNominal"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferAdaptiveMax"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferFixedNominal"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferFixedSize"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferThresholdEarlyMs"), ("ADTRAN-AOS-VQM", "adVqmCfgJitterBufferThresholdLateMs"), ("ADTRAN-AOS-VQM", "adVqmCfgRoundTripPingEnabled"), ("ADTRAN-AOS-VQM", "adVqmCfgRoundTripPingType"), ("ADTRAN-AOS-VQM", "adVqmCfgCallHistorySize"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdLqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdCqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdPqmos"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdLoss"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCfgHistoryThresholdJitter"), ("ADTRAN-AOS-VQM", "adVqmCfgClear"), ("ADTRAN-AOS-VQM", "adVqmCfgClearCallHistory"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMCfgGroup = adVQMCfgGroup.setStatus('current')
adVQMThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 2)).setObjects(("ADTRAN-AOS-VQM", "adVqmThresholdLqmosInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdLqmosError"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdPqmosError"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdOutOfOrderError"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdLossError"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterInfo"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterNotice"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterWarning"), ("ADTRAN-AOS-VQM", "adVqmThresholdJitterError"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMThresholdGroup = adVQMThresholdGroup.setStatus('current')
adVQMSysPerfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 3)).setObjects(("ADTRAN-AOS-VQM", "adVqmSysActiveCalls"), ("ADTRAN-AOS-VQM", "adVqmSysActiveExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysActiveGood"), ("ADTRAN-AOS-VQM", "adVqmSysActiveFair"), ("ADTRAN-AOS-VQM", "adVqmSysActivePoor"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryCalls"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryGood"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryFair"), ("ADTRAN-AOS-VQM", "adVqmSysCallHistoryPoor"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsExcellent"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsGood"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsFair"), ("ADTRAN-AOS-VQM", "adVqmSysAllCallsPoor"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMSysPerfGroup = adVQMSysPerfGroup.setStatus('current')
adVQMInterfaceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 4)).setObjects(("ADTRAN-AOS-VQM", "adVqmIfcId"), ("ADTRAN-AOS-VQM", "adVqmIfcName"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsRx"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsLost"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsOoo"), ("ADTRAN-AOS-VQM", "adVqmIfcPktsDiscarded"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberActiveCalls"), ("ADTRAN-AOS-VQM", "adVqmIfcTerminatedCalls"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcRLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcRCqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Minimum"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Average"), ("ADTRAN-AOS-VQM", "adVqmIfcRG107Maximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosCqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcMosPqMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcLossMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcLossAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcLossMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsMinimum"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsAverage"), ("ADTRAN-AOS-VQM", "adVqmIfcDiscardsMaximum"), ("ADTRAN-AOS-VQM", "adVqmIfcPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmIfcPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsExcellent"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsGood"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsFair"), ("ADTRAN-AOS-VQM", "adVqmIfcNumberStreamsPoor"), ("ADTRAN-AOS-VQM", "adVqmIfcClear"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMInterfaceGroup = adVQMInterfaceGroup.setStatus('current')
adVQMEndPointGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 5)).setObjects(("ADTRAN-AOS-VQM", "adVqmEndPointRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberCompletedCalls"), ("ADTRAN-AOS-VQM", "adVqmEndPointInterfaceId"), ("ADTRAN-AOS-VQM", "adVqmEndPointInterfaceName"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqMinimum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqAverage"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosLqMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqMinimum"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqAverage"), ("ADTRAN-AOS-VQM", "adVqmEndPointMosPqMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmEndPointPktsOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmEndPointJitterMaximum"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsExcellent"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsGood"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsFair"), ("ADTRAN-AOS-VQM", "adVqmEndPointNumberStreamsPoor"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMEndPointGroup = adVQMEndPointGroup.setStatus('current')
adVQMCallHistoryGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 6)).setObjects(("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourcePort"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpDestIp"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpDestPort"), ("ADTRAN-AOS-VQM", "adVqmCallHistSsrcid"), ("ADTRAN-AOS-VQM", "adVqmCallHistTo"), ("ADTRAN-AOS-VQM", "adVqmCallHistFrom"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtpSourceUri"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallid"), ("ADTRAN-AOS-VQM", "adVqmCallHistCcmid"), ("ADTRAN-AOS-VQM", "adVqmCallHistSourceIntName"), ("ADTRAN-AOS-VQM", "adVqmCallHistDestIntName"), ("ADTRAN-AOS-VQM", "adVqmCallHistSourceIntDescription"), ("ADTRAN-AOS-VQM", "adVqmCallHistDestIntDescription"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallStart"), ("ADTRAN-AOS-VQM", "adVqmCallHistCallDurationMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistCodec"), ("ADTRAN-AOS-VQM", "adVqmCallHistCodecClass"), ("ADTRAN-AOS-VQM", "adVqmCallHistDscp"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsRcvdTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistPktsDiscardedTotal"), ("ADTRAN-AOS-VQM", "adVqmCallHistOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistRtDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistOnewayDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayInst"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistOrigDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayMinimum"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmCallHistTermDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmCallHistRLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistRCq"), ("ADTRAN-AOS-VQM", "adVqmCallHistRNominal"), ("ADTRAN-AOS-VQM", "adVqmCallHistRG107"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosCq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosPq"), ("ADTRAN-AOS-VQM", "adVqmCallHistMosNominal"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegLoss"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegDiscard"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegVocoder"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegRecency"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegDelay"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegSiglvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegNoiselvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistDegEcholvl"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstRLq"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstLenAvgPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistBurstLenAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapR"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLenPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistGapLenMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistNetworkLossAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistDiscardRateAvg"), ("ADTRAN-AOS-VQM", "adVqmCallHistExcessBurst"), ("ADTRAN-AOS-VQM", "adVqmCallHistExcessGap"), ("ADTRAN-AOS-VQM", "adVqmCallHistPpdvMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateThresholdMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateThresholdPc"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmCallHistLateTotalCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistLatePeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyThreshMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyThreshPc"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyTotalCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyPeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayIncreaseCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayDecreaseCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistResyncCount"), ("ADTRAN-AOS-VQM", "adVqmCallHistJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgMin"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgNom"), ("ADTRAN-AOS-VQM", "adVqmCallHistJbCfgMax"), ("ADTRAN-AOS-VQM", "adVqmCallHistDuplicatePkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistEarlyPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistLatePkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistOverrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistUnderrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistDelayCurrentMsec"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRLqIn"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRLqOut"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRCqIn"), ("ADTRAN-AOS-VQM", "adVqmCallHistExtRCqOut"), ("ADTRAN-AOS-VQM", "adVqmCallHistThroughPutIndex"), ("ADTRAN-AOS-VQM", "adVqmCallHistReliabilityIndex"), ("ADTRAN-AOS-VQM", "adVqmCallHistBitrate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMCallHistoryGroup = adVQMCallHistoryGroup.setStatus('current')
adVQMActiveCallGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 7)).setObjects(("ADTRAN-AOS-VQM", "adVqmActCallRtpSourceIp"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpSourcePort"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpDestIp"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpDestPort"), ("ADTRAN-AOS-VQM", "adVqmActCallSsrcid"), ("ADTRAN-AOS-VQM", "adVqmActCallTo"), ("ADTRAN-AOS-VQM", "adVqmActCallFrom"), ("ADTRAN-AOS-VQM", "adVqmActCallRtpSourceUri"), ("ADTRAN-AOS-VQM", "adVqmActCallCallid"), ("ADTRAN-AOS-VQM", "adVqmActCallCcmid"), ("ADTRAN-AOS-VQM", "adVqmActCallSourceIntName"), ("ADTRAN-AOS-VQM", "adVqmActCallDestIntName"), ("ADTRAN-AOS-VQM", "adVqmActCallSourceIntDescription"), ("ADTRAN-AOS-VQM", "adVqmActCallDestIntDescription"), ("ADTRAN-AOS-VQM", "adVqmActCallCallStart"), ("ADTRAN-AOS-VQM", "adVqmActCallCallDurationMs"), ("ADTRAN-AOS-VQM", "adVqmActCallCodec"), ("ADTRAN-AOS-VQM", "adVqmActCallCodecClass"), ("ADTRAN-AOS-VQM", "adVqmActCallDscp"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsRcvdTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsLostTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallPktsDiscardedTotal"), ("ADTRAN-AOS-VQM", "adVqmActCallOutOfOrder"), ("ADTRAN-AOS-VQM", "adVqmActCallPdvAverageMs"), ("ADTRAN-AOS-VQM", "adVqmActCallPdvMaximumMs"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallRtDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallOnewayDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayInst"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallOrigDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayMinimum"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayAverage"), ("ADTRAN-AOS-VQM", "adVqmActCallTermDelayMaximum"), ("ADTRAN-AOS-VQM", "adVqmActCallRLq"), ("ADTRAN-AOS-VQM", "adVqmActCallRCq"), ("ADTRAN-AOS-VQM", "adVqmActCallRNominal"), ("ADTRAN-AOS-VQM", "adVqmActCallRG107"), ("ADTRAN-AOS-VQM", "adVqmActCallMosLq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosCq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosPq"), ("ADTRAN-AOS-VQM", "adVqmActCallMosNominal"), ("ADTRAN-AOS-VQM", "adVqmActCallDegLoss"), ("ADTRAN-AOS-VQM", "adVqmActCallDegDiscard"), ("ADTRAN-AOS-VQM", "adVqmActCallDegVocoder"), ("ADTRAN-AOS-VQM", "adVqmActCallDegRecency"), ("ADTRAN-AOS-VQM", "adVqmActCallDegDelay"), ("ADTRAN-AOS-VQM", "adVqmActCallDegSiglvl"), ("ADTRAN-AOS-VQM", "adVqmActCallDegNoiselvl"), ("ADTRAN-AOS-VQM", "adVqmActCallDegEcholvl"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstRLq"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstCount"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstLenAvgPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallBurstLenAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallGapR"), ("ADTRAN-AOS-VQM", "adVqmActCallGapCount"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLenPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallGapLenMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallLossRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallNetworkLossAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallDiscardRateAvg"), ("ADTRAN-AOS-VQM", "adVqmActCallExcessBurst"), ("ADTRAN-AOS-VQM", "adVqmActCallExcessGap"), ("ADTRAN-AOS-VQM", "adVqmActCallPpdvMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallLateThresholdMs"), ("ADTRAN-AOS-VQM", "adVqmActCallLateThresholdPc"), ("ADTRAN-AOS-VQM", "adVqmActCallLateUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmActCallLateTotalCount"), ("ADTRAN-AOS-VQM", "adVqmActCallLatePeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyThreshMs"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyThreshPc"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyUnderThresh"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyTotalCount"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyPeakJitterMs"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayIncreaseCount"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayDecreaseCount"), ("ADTRAN-AOS-VQM", "adVqmActCallResyncCount"), ("ADTRAN-AOS-VQM", "adVqmActCallJitterBufferType"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgMin"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgNom"), ("ADTRAN-AOS-VQM", "adVqmActCallJbCfgMax"), ("ADTRAN-AOS-VQM", "adVqmActCallDuplicatePkts"), ("ADTRAN-AOS-VQM", "adVqmActCallEarlyPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallLatePkts"), ("ADTRAN-AOS-VQM", "adVqmActCallOverrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallUnderrunDiscardPkts"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayMinMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayAvgMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayMaxMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallDelayCurrentMsec"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRLqIn"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRLqOut"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRCqIn"), ("ADTRAN-AOS-VQM", "adVqmActCallExtRCqOut"), ("ADTRAN-AOS-VQM", "adVqmActCallThroughPutIndex"), ("ADTRAN-AOS-VQM", "adVqmActCallReliabilityIndex"), ("ADTRAN-AOS-VQM", "adVqmActCallBitrate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMActiveCallGroup = adVQMActiveCallGroup.setStatus('current')
adVQMTrapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 8)).setObjects(("ADTRAN-AOS-VQM", "adVqmTrapState"), ("ADTRAN-AOS-VQM", "adVqmTrapCfgSeverityLevel"), ("ADTRAN-AOS-VQM", "adVqmTrapEventType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMTrapGroup = adVQMTrapGroup.setStatus('current')
adVQMNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 9)).setObjects(("ADTRAN-AOS-VQM", "adVQMEndOfCallTrap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adVQMNotificationGroup = adVQMNotificationGroup.setStatus('current')
mibBuilder.exportSymbols("ADTRAN-AOS-VQM", adVqmActCallDegNoiselvl=adVqmActCallDegNoiselvl, adVqmActCallCallStart=adVqmActCallCallStart, adVQMCallHistoryTable=adVQMCallHistoryTable, adVqmCfgJitterBufferFixedNominal=adVqmCfgJitterBufferFixedNominal, adVqmSysActiveFair=adVqmSysActiveFair, adVqmCallHistRtpDestIp=adVqmCallHistRtpDestIp, adVqmActCallLatePeakJitterMs=adVqmActCallLatePeakJitterMs, adVQMTrapControl=adVQMTrapControl, adVqmCallHistMosCq=adVqmCallHistMosCq, adVQMActiveCallEntry=adVQMActiveCallEntry, adVqmCallHistDiscardRateAvg=adVqmCallHistDiscardRateAvg, adVqmCallHistRLq=adVqmCallHistRLq, adVqmCallHistOnewayDelayAverage=adVqmCallHistOnewayDelayAverage, adVqmCallHistDelayIncreaseCount=adVqmCallHistDelayIncreaseCount, adVqmIfcDiscardsMinimum=adVqmIfcDiscardsMinimum, adVqmCfgSipEnable=adVqmCfgSipEnable, adVqmThresholdLossError=adVqmThresholdLossError, adVqmActCallMosPq=adVqmActCallMosPq, adVqmCallHistCallDurationMs=adVqmCallHistCallDurationMs, adVQMInterfaceGroup=adVQMInterfaceGroup, adVqmCallHistDegDelay=adVqmCallHistDegDelay, adVqmActCallJbCfgNom=adVqmActCallJbCfgNom, adVqmCfgHistoryThresholdPqmos=adVqmCfgHistoryThresholdPqmos, adVqmActCallDegEcholvl=adVqmActCallDegEcholvl, adVQMInterfaceTable=adVQMInterfaceTable, adVqmCfgHistoryThresholdLoss=adVqmCfgHistoryThresholdLoss, adVqmEndPointMosLqMaximum=adVqmEndPointMosLqMaximum, adVqmTrapCfgSeverityLevel=adVqmTrapCfgSeverityLevel, adVqmEndPointMosLqMinimum=adVqmEndPointMosLqMinimum, adVqmCallHistCodecClass=adVqmCallHistCodecClass, adVqmActCallDegLoss=adVqmActCallDegLoss, adVqmIfcRLqMaximum=adVqmIfcRLqMaximum, adVqmActCallDelayDecreaseCount=adVqmActCallDelayDecreaseCount, adVqmCallHistDegNoiselvl=adVqmCallHistDegNoiselvl, adVqmSysActiveGood=adVqmSysActiveGood, adVqmCallHistMosNominal=adVqmCallHistMosNominal, adVQMThresholdGroup=adVQMThresholdGroup, adVqmActCallTermDelayMinimum=adVqmActCallTermDelayMinimum, adVqmActCallDelayAvgMsec=adVqmActCallDelayAvgMsec, adVqmCfgUdpEnable=adVqmCfgUdpEnable, adVqmCallHistDelayMinMsec=adVqmCallHistDelayMinMsec, adVqmThresholdLqmosWarning=adVqmThresholdLqmosWarning, adVqmCallHistExcessGap=adVqmCallHistExcessGap, adVqmActCallBurstRateAvg=adVqmActCallBurstRateAvg, adVqmCallHistEarlyThreshMs=adVqmCallHistEarlyThreshMs, adVqmCallHistPktsDiscardedTotal=adVqmCallHistPktsDiscardedTotal, adVqmCallHistOrigDelayAverage=adVqmCallHistOrigDelayAverage, adVqmActCallGapLenMsec=adVqmActCallGapLenMsec, adVqmEndPointNumberStreamsPoor=adVqmEndPointNumberStreamsPoor, adVqmCallHistDestIntName=adVqmCallHistDestIntName, adVqmActCallDiscardRateAvg=adVqmActCallDiscardRateAvg, adVqmActCallExcessGap=adVqmActCallExcessGap, adVqmActCallExtRCqOut=adVqmActCallExtRCqOut, adVqmActCallLateUnderThresh=adVqmActCallLateUnderThresh, adVqmCallHistJitterBufferType=adVqmCallHistJitterBufferType, adVqmCallHistRtpSourceUri=adVqmCallHistRtpSourceUri, adVqmCallHistLossRateAvg=adVqmCallHistLossRateAvg, adVqmCallHistLateThresholdMs=adVqmCallHistLateThresholdMs, adVqmCallHistBurstLenAvgMsec=adVqmCallHistBurstLenAvgMsec, adVqmCallHistReliabilityIndex=adVqmCallHistReliabilityIndex, adVqmThresholdLqmosInfo=adVqmThresholdLqmosInfo, adVqmActCallDscp=adVqmActCallDscp, adVqmIfcLossAverage=adVqmIfcLossAverage, adVqmActCallTermDelayAverage=adVqmActCallTermDelayAverage, adVqmActCallLatePkts=adVqmActCallLatePkts, adVqmActCallEarlyThreshMs=adVqmActCallEarlyThreshMs, adVqmActCallEarlyThreshPc=adVqmActCallEarlyThreshPc, adVQMEndOfCallTrap=adVQMEndOfCallTrap, adVqmThresholdLossInfo=adVqmThresholdLossInfo, adVQMCfgGroup=adVQMCfgGroup, adVqmIfcRCqMinimum=adVqmIfcRCqMinimum, adVqmActCallRtpDestIp=adVqmActCallRtpDestIp, adVqmActCallEarlyUnderThresh=adVqmActCallEarlyUnderThresh, adVqmCallHistMosLq=adVqmCallHistMosLq, adVqmCallHistMosPq=adVqmCallHistMosPq, adVqmEndPointJitterMaximum=adVqmEndPointJitterMaximum, adVqmIfcPktsRx=adVqmIfcPktsRx, adVqmThresholdOutOfOrderNotice=adVqmThresholdOutOfOrderNotice, adVqmCallHistGapLenPkts=adVqmCallHistGapLenPkts, adVqmActCallRtDelayInst=adVqmActCallRtDelayInst, adVqmThresholdJitterWarning=adVqmThresholdJitterWarning, adVqmSysCallHistoryExcellent=adVqmSysCallHistoryExcellent, adVqmEndPointInterfaceName=adVqmEndPointInterfaceName, adVqmActCallOnewayDelayAverage=adVqmActCallOnewayDelayAverage, adVqmIfcRCqMaximum=adVqmIfcRCqMaximum, adVqmActCallRtpSourcePort=adVqmActCallRtpSourcePort, adVqmThresholdLqmosError=adVqmThresholdLqmosError, adVqmActCallCcmid=adVqmActCallCcmid, adGenAOSVqmCompliances=adGenAOSVqmCompliances, adVqmCallHistDegSiglvl=adVqmCallHistDegSiglvl, adVqmIfcDelayMaxMsec=adVqmIfcDelayMaxMsec, adVqmIfcMosLqMaximum=adVqmIfcMosLqMaximum, adVQMTrap=adVQMTrap, adVqmCallHistEarlyThreshPc=adVqmCallHistEarlyThreshPc, adVqmCallHistExtRCqOut=adVqmCallHistExtRCqOut, adVqmThresholdOutOfOrderInfo=adVqmThresholdOutOfOrderInfo, adVqmActCallExtRCqIn=adVqmActCallExtRCqIn, adVQMEndPointEntry=adVQMEndPointEntry, adVqmCallHistDscp=adVqmCallHistDscp, MOSvalue=MOSvalue, adVqmCallHistJbCfgNom=adVqmCallHistJbCfgNom, adVqmActCallFrom=adVqmActCallFrom, adVqmSysCallHistoryGood=adVqmSysCallHistoryGood, adVqmEndPointNumberCompletedCalls=adVqmEndPointNumberCompletedCalls, adVqmSysCallHistoryFair=adVqmSysCallHistoryFair, adVqmThresholdLossNotice=adVqmThresholdLossNotice, adVqmCallHistBurstLenAvgPkts=adVqmCallHistBurstLenAvgPkts, adVqmSysActivePoor=adVqmSysActivePoor, adVqmActCallLateThresholdPc=adVqmActCallLateThresholdPc, adVqmActCallSsrcid=adVqmActCallSsrcid, adVqmIfcMosLqMinimum=adVqmIfcMosLqMinimum, adVqmCallHistRG107=adVqmCallHistRG107, adVqmCallHistRtDelayMaximum=adVqmCallHistRtDelayMaximum, adVqmActCallDegVocoder=adVqmActCallDegVocoder, adVqmIfcRG107Maximum=adVqmIfcRG107Maximum, adVqmEndPointInterfaceId=adVqmEndPointInterfaceId, adVqmCallHistTermDelayMinimum=adVqmCallHistTermDelayMinimum, adVQMEndPoint=adVQMEndPoint, adVqmCallHistPpdvMsec=adVqmCallHistPpdvMsec, adVqmCfgJitterBufferFixedSize=adVqmCfgJitterBufferFixedSize, adVqmActCallDegDelay=adVqmActCallDegDelay, adGenAOSVqmFullCompliance=adGenAOSVqmFullCompliance, adVqmIfcMosCqMaximum=adVqmIfcMosCqMaximum, adVqmActCallGapLenPkts=adVqmActCallGapLenPkts, adVqmActCallOutOfOrder=adVqmActCallOutOfOrder, adVqmActCallExtRLqIn=adVqmActCallExtRLqIn, adVqmCallHistFrom=adVqmCallHistFrom, adVQMActive=adVQMActive, adVqmCallHistTermDelayAverage=adVqmCallHistTermDelayAverage, adVqmIfcMosCqAverage=adVqmIfcMosCqAverage, adVqmCfgEnable=adVqmCfgEnable, adVqmActCallJbCfgMin=adVqmActCallJbCfgMin, adVqmActCallPktsLostTotal=adVqmActCallPktsLostTotal, adVqmActCallExcessBurst=adVqmActCallExcessBurst, adVqmCfgJitterBufferThresholdEarlyMs=adVqmCfgJitterBufferThresholdEarlyMs, MsecValue=MsecValue, adVqmActCallRLq=adVqmActCallRLq, adVqmActCallMosLq=adVqmActCallMosLq, adVqmThresholdJitterInfo=adVqmThresholdJitterInfo, adVqmCallHistTo=adVqmCallHistTo, adVqmCfgJitterBufferAdaptiveMin=adVqmCfgJitterBufferAdaptiveMin, adVqmSysActiveExcellent=adVqmSysActiveExcellent, adVqmActCallPdvMaximumMs=adVqmActCallPdvMaximumMs, adVqmActCallDelayCurrentMsec=adVqmActCallDelayCurrentMsec, adVqmCallHistDelayDecreaseCount=adVqmCallHistDelayDecreaseCount, adVqmCallHistEarlyPkts=adVqmCallHistEarlyPkts, adVqmActCallOrigDelayMaximum=adVqmActCallOrigDelayMaximum, adVQMCfg=adVQMCfg, adVqmCfgJitterBufferAdaptiveNominal=adVqmCfgJitterBufferAdaptiveNominal, adVqmIfcRG107Minimum=adVqmIfcRG107Minimum, adVqmIfcRG107Average=adVqmIfcRG107Average, adVqmActCallJitterBufferType=adVqmActCallJitterBufferType, adVqmCallHistRtDelayInst=adVqmCallHistRtDelayInst, adVqmEndPointNumberStreamsExcellent=adVqmEndPointNumberStreamsExcellent, adGenAOSVQMMib=adGenAOSVQMMib, adVqmActCallGapLossRateAvg=adVqmActCallGapLossRateAvg, adVqmThresholdPqmosWarning=adVqmThresholdPqmosWarning, adVqmCallHistBitrate=adVqmCallHistBitrate, adVqmCallHistExcessBurst=adVqmCallHistExcessBurst, adVqmCallHistOrigDelayMaximum=adVqmCallHistOrigDelayMaximum, adVqmCallHistLateUnderThresh=adVqmCallHistLateUnderThresh, adVqmCallHistDegVocoder=adVqmCallHistDegVocoder, adVqmActCallBurstLenAvgPkts=adVqmActCallBurstLenAvgPkts, adVqmActCallCodec=adVqmActCallCodec, adVqmActCallRNominal=adVqmActCallRNominal, adVqmActCallCallid=adVqmActCallCallid, adVqmCallHistDelayAvgMsec=adVqmCallHistDelayAvgMsec, adVqmThresholdPqmosError=adVqmThresholdPqmosError, adVQMInterface=adVQMInterface, adVqmActCallResyncCount=adVqmActCallResyncCount, adVqmActCallLateThresholdMs=adVqmActCallLateThresholdMs, adVqmActCallOverrunDiscardPkts=adVqmActCallOverrunDiscardPkts, adVqmActCallTermDelayMaximum=adVqmActCallTermDelayMaximum, adVqmCallHistRtpSourceIp=adVqmCallHistRtpSourceIp, adVqmCallHistRtDelayAverage=adVqmCallHistRtDelayAverage, adVqmCallHistBurstRLq=adVqmCallHistBurstRLq, adVqmTrapEventType=adVqmTrapEventType, adVqmActCallDegRecency=adVqmActCallDegRecency, adVqmActCallMosNominal=adVqmActCallMosNominal, adVqmActCallDelayIncreaseCount=adVqmActCallDelayIncreaseCount, adVqmCallHistSsrcid=adVqmCallHistSsrcid, adVqmThresholdPqmosNotice=adVqmThresholdPqmosNotice, adVqmActCallSourceIntDescription=adVqmActCallSourceIntDescription, adVqmActCallBurstRLq=adVqmActCallBurstRLq, adVqmCallHistThroughPutIndex=adVqmCallHistThroughPutIndex, adVqmActCallRCq=adVqmActCallRCq, adVqmCallHistDegRecency=adVqmCallHistDegRecency, adVqmActCallOrigDelayAverage=adVqmActCallOrigDelayAverage, adVqmIfcDelayMinMsec=adVqmIfcDelayMinMsec, adVqmCfgClearCallHistory=adVqmCfgClearCallHistory, adVqmThresholdJitterNotice=adVqmThresholdJitterNotice, adVqmActCallPktsRcvdTotal=adVqmActCallPktsRcvdTotal, adVqmCallHistCallStart=adVqmCallHistCallStart, adVqmActCallPpdvMsec=adVqmActCallPpdvMsec, adVqmIfcDiscardsMaximum=adVqmIfcDiscardsMaximum, adVqmCallHistPktsLostTotal=adVqmCallHistPktsLostTotal, adVqmActCallDelayMinMsec=adVqmActCallDelayMinMsec, adVqmCallHistSourceIntName=adVqmCallHistSourceIntName, adVqmActCallJbCfgMax=adVqmActCallJbCfgMax, adVqmCfgHistoryThresholdJitter=adVqmCfgHistoryThresholdJitter, adVqmCfgCallHistorySize=adVqmCfgCallHistorySize, adVqmSysCallHistoryCalls=adVqmSysCallHistoryCalls, adVqmCallHistExtRLqOut=adVqmCallHistExtRLqOut, adVqmCallHistBurstCount=adVqmCallHistBurstCount, adVqmCfgHistoryThresholdLqmos=adVqmCfgHistoryThresholdLqmos, adVQMActiveCallGroup=adVQMActiveCallGroup, adVqmThresholdOutOfOrderWarning=adVqmThresholdOutOfOrderWarning, adVqmCallHistEarlyPeakJitterMs=adVqmCallHistEarlyPeakJitterMs, adVqmCallHistDelayMaxMsec=adVqmCallHistDelayMaxMsec, adVqmIfcTerminatedCalls=adVqmIfcTerminatedCalls, adVqmCfgJitterBufferType=adVqmCfgJitterBufferType, adVqmThresholdPqmosInfo=adVqmThresholdPqmosInfo, adVqmCallHistPdvMaximumMs=adVqmCallHistPdvMaximumMs, adVqmActCallDestIntName=adVqmActCallDestIntName, adVqmSysAllCallsPoor=adVqmSysAllCallsPoor, adVqmActCallDegSiglvl=adVqmActCallDegSiglvl, adVqmIfcPktsLost=adVqmIfcPktsLost, adVqmCallHistPktsRcvdTotal=adVqmCallHistPktsRcvdTotal, adVqmActCallReliabilityIndex=adVqmActCallReliabilityIndex, adVqmThresholdOutOfOrderError=adVqmThresholdOutOfOrderError, adVqmCallHistOnewayDelayMaximum=adVqmCallHistOnewayDelayMaximum, adVqmCallHistLateThresholdPc=adVqmCallHistLateThresholdPc, adVqmIfcRLqAverage=adVqmIfcRLqAverage, adVqmCallHistDegEcholvl=adVqmCallHistDegEcholvl, adVqmActCallSourceIntName=adVqmActCallSourceIntName, adVqmIfcDiscardsAverage=adVqmIfcDiscardsAverage, adVqmIfcMosPqMaximum=adVqmIfcMosPqMaximum, adVqmCallHistUnderrunDiscardPkts=adVqmCallHistUnderrunDiscardPkts, adVQMSysPerf=adVQMSysPerf, adVQM=adVQM, adVqmActCallBitrate=adVqmActCallBitrate, adVqmCfgJitterBufferThresholdLateMs=adVqmCfgJitterBufferThresholdLateMs, adVqmActCallOrigDelayInst=adVqmActCallOrigDelayInst, adVqmEndPointMosLqAverage=adVqmEndPointMosLqAverage, adVqmActCallRtDelayMaximum=adVqmActCallRtDelayMaximum, adVqmActCallOnewayDelayInst=adVqmActCallOnewayDelayInst, adVqmIfcPdvMaximumMs=adVqmIfcPdvMaximumMs, adVqmIfcNumberStreamsFair=adVqmIfcNumberStreamsFair, adVqmActCallUnderrunDiscardPkts=adVqmActCallUnderrunDiscardPkts, adVqmActCallDegDiscard=adVqmActCallDegDiscard, adVqmActCallTo=adVqmActCallTo, adVqmActCallPdvAverageMs=adVqmActCallPdvAverageMs, adVqmCallHistTermDelayMaximum=adVqmCallHistTermDelayMaximum, adVqmEndPointMosPqAverage=adVqmEndPointMosPqAverage, adGenAOSVqmConformance=adGenAOSVqmConformance, adVqmIfcMosLqAverage=adVqmIfcMosLqAverage, adVqmSysCallHistoryPoor=adVqmSysCallHistoryPoor, adVqmIfcMosPqMinimum=adVqmIfcMosPqMinimum, adVqmActCallGapR=adVqmActCallGapR, adVqmCallHistRtpSourcePort=adVqmCallHistRtpSourcePort, adVqmIfcLossMaximum=adVqmIfcLossMaximum, adVqmIfcRCqAverage=adVqmIfcRCqAverage, adVqmCallHistGapCount=adVqmCallHistGapCount, adVqmActCallRG107=adVqmActCallRG107)
mibBuilder.exportSymbols("ADTRAN-AOS-VQM", adVqmCallHistDegDiscard=adVqmCallHistDegDiscard, adVqmCallHistBurstRateAvg=adVqmCallHistBurstRateAvg, adVqmIfcName=adVqmIfcName, adVqmCallHistOnewayDelayInst=adVqmCallHistOnewayDelayInst, adVQMActiveCallTable=adVQMActiveCallTable, adVqmCallHistOrigDelayInst=adVqmCallHistOrigDelayInst, adVqmIfcNumberStreamsPoor=adVqmIfcNumberStreamsPoor, adVQMTrapGroup=adVQMTrapGroup, adVqmEndPointMosPqMinimum=adVqmEndPointMosPqMinimum, adVQMEndPointGroup=adVQMEndPointGroup, adVqmEndPointRtpSourceIp=adVqmEndPointRtpSourceIp, adVqmActCallRtpSourceUri=adVqmActCallRtpSourceUri, adVqmCallHistEarlyUnderThresh=adVqmCallHistEarlyUnderThresh, adVqmIfcNumberStreamsGood=adVqmIfcNumberStreamsGood, adVqmCallHistLateTotalCount=adVqmCallHistLateTotalCount, adVqmCallHistDestIntDescription=adVqmCallHistDestIntDescription, adVqmCfgHistoryThresholdCqmos=adVqmCfgHistoryThresholdCqmos, adVqmCfgInternationalCode=adVqmCfgInternationalCode, adVqmCfgJitterBufferAdaptiveMax=adVqmCfgJitterBufferAdaptiveMax, adVqmCallHistOutOfOrder=adVqmCallHistOutOfOrder, adVqmCallHistRNominal=adVqmCallHistRNominal, adVqmCallHistJbCfgMax=adVqmCallHistJbCfgMax, adVqmCfgHistoryThresholdOutOfOrder=adVqmCfgHistoryThresholdOutOfOrder, adVqmActCallDelayMaxMsec=adVqmActCallDelayMaxMsec, adVqmActCallCallDurationMs=adVqmActCallCallDurationMs, adVqmIfcPktsDiscarded=adVqmIfcPktsDiscarded, adVQMNotificationGroup=adVQMNotificationGroup, adVqmActCallRtpDestPort=adVqmActCallRtpDestPort, adVQMHistory=adVQMHistory, adVqmIfcDelayAvgMsec=adVqmIfcDelayAvgMsec, adVqmActCallLateTotalCount=adVqmActCallLateTotalCount, adVqmActCallCodecClass=adVqmActCallCodecClass, adVQMThreshold=adVQMThreshold, adVqmIfcPktsOoo=adVqmIfcPktsOoo, adVqmActCallBurstLenAvgMsec=adVqmActCallBurstLenAvgMsec, adVqmActCallBurstCount=adVqmActCallBurstCount, adVqmSysAllCallsFair=adVqmSysAllCallsFair, adVqmIfcId=adVqmIfcId, adVqmTrapState=adVqmTrapState, adVqmCallHistRCq=adVqmCallHistRCq, Percentage=Percentage, adVqmIfcNumberStreamsExcellent=adVqmIfcNumberStreamsExcellent, adVqmActCallOnewayDelayMaximum=adVqmActCallOnewayDelayMaximum, adVqmActCallPktsDiscardedTotal=adVqmActCallPktsDiscardedTotal, adVqmCallHistSourceIntDescription=adVqmCallHistSourceIntDescription, adVqmIfcMosCqMinimum=adVqmIfcMosCqMinimum, adVqmCallHistDuplicatePkts=adVqmCallHistDuplicatePkts, PYSNMP_MODULE_ID=adGenAOSVQMMib, adVqmCallHistLatePkts=adVqmCallHistLatePkts, adVqmCallHistOverrunDiscardPkts=adVqmCallHistOverrunDiscardPkts, adVqmActCallDuplicatePkts=adVqmActCallDuplicatePkts, adVqmCfgRoundTripPingEnabled=adVqmCfgRoundTripPingEnabled, adVQMCallHistoryGroup=adVQMCallHistoryGroup, adVqmActCallExtRLqOut=adVqmActCallExtRLqOut, adVqmCallHistExtRCqIn=adVqmCallHistExtRCqIn, adVqmIfcPdvAverageMs=adVqmIfcPdvAverageMs, adVqmIfcClear=adVqmIfcClear, adVqmIfcRLqMinimum=adVqmIfcRLqMinimum, adVqmEndPointPktsLostTotal=adVqmEndPointPktsLostTotal, adVqmThresholdLossWarning=adVqmThresholdLossWarning, adVqmIfcMosPqAverage=adVqmIfcMosPqAverage, adVqmActCallLossRateAvg=adVqmActCallLossRateAvg, adVqmIfcNumberActiveCalls=adVqmIfcNumberActiveCalls, adVqmEndPointMosPqMaximum=adVqmEndPointMosPqMaximum, adVqmCallHistExtRLqIn=adVqmCallHistExtRLqIn, adVqmCallHistDegLoss=adVqmCallHistDegLoss, adVqmCallHistGapR=adVqmCallHistGapR, adVqmEndPointNumberStreamsGood=adVqmEndPointNumberStreamsGood, adVqmActCallRtDelayAverage=adVqmActCallRtDelayAverage, adVqmSysAllCallsGood=adVqmSysAllCallsGood, adVqmEndPointPktsOutOfOrder=adVqmEndPointPktsOutOfOrder, adVqmActCallGapCount=adVqmActCallGapCount, adVqmCallHistGapLenMsec=adVqmCallHistGapLenMsec, adVQMSysPerfGroup=adVQMSysPerfGroup, adVqmActCallDestIntDescription=adVqmActCallDestIntDescription, adVqmActCallMosCq=adVqmActCallMosCq, adVqmActCallNetworkLossAvg=adVqmActCallNetworkLossAvg, adVqmActCallThroughPutIndex=adVqmActCallThroughPutIndex, adVqmActCallEarlyPkts=adVqmActCallEarlyPkts, adVqmCallHistCallid=adVqmCallHistCallid, adVqmEndPointNumberStreamsFair=adVqmEndPointNumberStreamsFair, adVqmCallHistResyncCount=adVqmCallHistResyncCount, adVqmCallHistDelayCurrentMsec=adVqmCallHistDelayCurrentMsec, adVqmCallHistRtpDestPort=adVqmCallHistRtpDestPort, adVqmActCallEarlyPeakJitterMs=adVqmActCallEarlyPeakJitterMs, adVQMEndPointTable=adVQMEndPointTable, adVqmActCallRtpSourceIp=adVqmActCallRtpSourceIp, adVqmActCallEarlyTotalCount=adVqmActCallEarlyTotalCount, adGenAOSVqmGroups=adGenAOSVqmGroups, adVqmThresholdLqmosNotice=adVqmThresholdLqmosNotice, adVqmSysActiveCalls=adVqmSysActiveCalls, adVqmSysAllCallsExcellent=adVqmSysAllCallsExcellent, adVqmThresholdJitterError=adVqmThresholdJitterError, adVqmCfgClear=adVqmCfgClear, adVqmCallHistEarlyTotalCount=adVqmCallHistEarlyTotalCount, adVQMInterfaceEntry=adVQMInterfaceEntry, adVqmCallHistPdvAverageMs=adVqmCallHistPdvAverageMs, adVqmCallHistNetworkLossAvg=adVqmCallHistNetworkLossAvg, adVqmCallHistLatePeakJitterMs=adVqmCallHistLatePeakJitterMs, adVqmIfcLossMinimum=adVqmIfcLossMinimum, adVqmCallHistCodec=adVqmCallHistCodec, adVqmCallHistCcmid=adVqmCallHistCcmid, adVqmCallHistJbCfgMin=adVqmCallHistJbCfgMin, adVqmCfgRoundTripPingType=adVqmCfgRoundTripPingType, adVqmCallHistGapLossRateAvg=adVqmCallHistGapLossRateAvg, adVQMCallHistoryEntry=adVQMCallHistoryEntry)
| (ad_gen_aos_voice, ad_gen_aos_conformance) = mibBuilder.importSymbols('ADTRAN-AOS', 'adGenAOSVoice', 'adGenAOSConformance')
(ad_identity,) = mibBuilder.importSymbols('ADTRAN-MIB', 'adIdentity')
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(mib_identifier, counter32, object_identity, time_ticks, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, ip_address, integer32, bits, iso, counter64, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter32', 'ObjectIdentity', 'TimeTicks', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'IpAddress', 'Integer32', 'Bits', 'iso', 'Counter64', 'ModuleIdentity')
(textual_convention, date_and_time, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DateAndTime', 'DisplayString', 'TruthValue')
ad_gen_aosvqm_mib = module_identity((1, 3, 6, 1, 4, 1, 664, 6, 10000, 53, 5, 3))
if mibBuilder.loadTexts:
adGenAOSVQMMib.setLastUpdated('200901060000Z')
if mibBuilder.loadTexts:
adGenAOSVQMMib.setOrganization('ADTRAN, Inc.')
ad_vqm = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3))
ad_vqm_trap = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0))
ad_vqm_trap_control = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1))
ad_vqm_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2))
ad_vqm_threshold = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3))
ad_vqm_sys_perf = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4))
ad_vqm_interface = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5))
ad_vqm_end_point = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6))
ad_vqm_history = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7))
ad_vqm_active = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8))
class Mosvalue(TextualConvention, Integer32):
status = 'current'
display_hint = 'd'
subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(100, 1000), value_range_constraint(65535, 65535))
class Percentage(TextualConvention, Integer32):
status = 'current'
display_hint = 'd'
subtype_spec = Integer32.subtypeSpec + constraints_union(value_range_constraint(0, 1000), value_range_constraint(65535, 65535))
class Msecvalue(TextualConvention, Integer32):
status = 'current'
display_hint = 'd'
ad_vqm_end_of_call_trap = notification_type((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 0, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVqmTrapEventType'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosPq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvAverageMs'))
if mibBuilder.loadTexts:
adVQMEndOfCallTrap.setStatus('current')
ad_vqm_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adVqmTrapState.setStatus('current')
ad_vqm_trap_cfg_severity_level = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('error', 1), ('warning', 2), ('notice', 3), ('info', 4))).clone('warning')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adVqmTrapCfgSeverityLevel.setStatus('current')
ad_vqm_trap_event_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 1, 3), bits().clone(namedValues=named_values(('lQMos', 0), ('pQMos', 1), ('loss', 2), ('outOfOrder', 3), ('jitter', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmTrapEventType.setStatus('current')
ad_vqm_cfg_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgEnable.setStatus('current')
ad_vqm_cfg_sip_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgSipEnable.setStatus('current')
ad_vqm_cfg_udp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgUdpEnable.setStatus('current')
ad_vqm_cfg_international_code = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 5))).clone(namedValues=named_values(('none', 1), ('japan', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgInternationalCode.setStatus('current')
ad_vqm_cfg_jitter_buffer_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('jitterBufferFixed', 1), ('jitterBufferAdaptive', 2), ('jitterBufferUnknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferType.setStatus('current')
ad_vqm_cfg_jitter_buffer_adaptive_min = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferAdaptiveMin.setStatus('current')
ad_vqm_cfg_jitter_buffer_adaptive_nominal = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferAdaptiveNominal.setStatus('current')
ad_vqm_cfg_jitter_buffer_adaptive_max = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferAdaptiveMax.setStatus('current')
ad_vqm_cfg_jitter_buffer_fixed_nominal = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferFixedNominal.setStatus('current')
ad_vqm_cfg_jitter_buffer_fixed_size = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferFixedSize.setStatus('current')
ad_vqm_cfg_jitter_buffer_threshold_early_ms = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferThresholdEarlyMs.setStatus('current')
ad_vqm_cfg_jitter_buffer_threshold_late_ms = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgJitterBufferThresholdLateMs.setStatus('current')
ad_vqm_cfg_round_trip_ping_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgRoundTripPingEnabled.setStatus('current')
ad_vqm_cfg_round_trip_ping_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ping', 1), ('timestamp', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgRoundTripPingType.setStatus('current')
ad_vqm_cfg_call_history_size = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgCallHistorySize.setStatus('current')
ad_vqm_cfg_history_threshold_lqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 16), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdLqmos.setStatus('current')
ad_vqm_cfg_history_threshold_cqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 17), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdCqmos.setStatus('current')
ad_vqm_cfg_history_threshold_pqmos = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 18), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdPqmos.setStatus('current')
ad_vqm_cfg_history_threshold_loss = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdLoss.setStatus('current')
ad_vqm_cfg_history_threshold_out_of_order = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 20), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdOutOfOrder.setStatus('current')
ad_vqm_cfg_history_threshold_jitter = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 21), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCfgHistoryThresholdJitter.setStatus('current')
ad_vqm_cfg_clear = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adVqmCfgClear.setStatus('current')
ad_vqm_cfg_clear_call_history = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 2, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adVqmCfgClearCallHistory.setStatus('current')
ad_vqm_threshold_lqmos_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 1), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLqmosInfo.setStatus('current')
ad_vqm_threshold_lqmos_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 2), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLqmosNotice.setStatus('current')
ad_vqm_threshold_lqmos_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 3), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLqmosWarning.setStatus('current')
ad_vqm_threshold_lqmos_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 4), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLqmosError.setStatus('current')
ad_vqm_threshold_pqmos_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 5), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdPqmosInfo.setStatus('current')
ad_vqm_threshold_pqmos_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 6), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdPqmosNotice.setStatus('current')
ad_vqm_threshold_pqmos_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 7), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdPqmosWarning.setStatus('current')
ad_vqm_threshold_pqmos_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 8), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdPqmosError.setStatus('current')
ad_vqm_threshold_out_of_order_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdOutOfOrderInfo.setStatus('current')
ad_vqm_threshold_out_of_order_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdOutOfOrderNotice.setStatus('current')
ad_vqm_threshold_out_of_order_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdOutOfOrderWarning.setStatus('current')
ad_vqm_threshold_out_of_order_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdOutOfOrderError.setStatus('current')
ad_vqm_threshold_loss_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 13), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLossInfo.setStatus('current')
ad_vqm_threshold_loss_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 14), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLossNotice.setStatus('current')
ad_vqm_threshold_loss_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLossWarning.setStatus('current')
ad_vqm_threshold_loss_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdLossError.setStatus('current')
ad_vqm_threshold_jitter_info = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 17), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdJitterInfo.setStatus('current')
ad_vqm_threshold_jitter_notice = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 18), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdJitterNotice.setStatus('current')
ad_vqm_threshold_jitter_warning = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdJitterWarning.setStatus('current')
ad_vqm_threshold_jitter_error = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 3, 20), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmThresholdJitterError.setStatus('current')
ad_vqm_sys_active_calls = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysActiveCalls.setStatus('current')
ad_vqm_sys_active_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysActiveExcellent.setStatus('current')
ad_vqm_sys_active_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysActiveGood.setStatus('current')
ad_vqm_sys_active_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysActiveFair.setStatus('current')
ad_vqm_sys_active_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysActivePoor.setStatus('current')
ad_vqm_sys_call_history_calls = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysCallHistoryCalls.setStatus('current')
ad_vqm_sys_call_history_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysCallHistoryExcellent.setStatus('current')
ad_vqm_sys_call_history_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysCallHistoryGood.setStatus('current')
ad_vqm_sys_call_history_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysCallHistoryFair.setStatus('current')
ad_vqm_sys_call_history_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysCallHistoryPoor.setStatus('current')
ad_vqm_sys_all_calls_excellent = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysAllCallsExcellent.setStatus('current')
ad_vqm_sys_all_calls_good = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysAllCallsGood.setStatus('current')
ad_vqm_sys_all_calls_fair = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysAllCallsFair.setStatus('current')
ad_vqm_sys_all_calls_poor = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 4, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmSysAllCallsPoor.setStatus('current')
ad_vqm_interface_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1))
if mibBuilder.loadTexts:
adVQMInterfaceTable.setStatus('current')
ad_vqm_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmIfcId'))
if mibBuilder.loadTexts:
adVQMInterfaceEntry.setStatus('current')
ad_vqm_ifc_id = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcId.setStatus('current')
ad_vqm_ifc_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcName.setStatus('current')
ad_vqm_ifc_pkts_rx = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPktsRx.setStatus('current')
ad_vqm_ifc_pkts_lost = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPktsLost.setStatus('current')
ad_vqm_ifc_pkts_ooo = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPktsOoo.setStatus('current')
ad_vqm_ifc_pkts_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPktsDiscarded.setStatus('current')
ad_vqm_ifc_number_active_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcNumberActiveCalls.setStatus('current')
ad_vqm_ifc_terminated_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcTerminatedCalls.setStatus('current')
ad_vqm_ifc_r_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRLqMinimum.setStatus('current')
ad_vqm_ifc_r_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRLqAverage.setStatus('current')
ad_vqm_ifc_r_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRLqMaximum.setStatus('current')
ad_vqm_ifc_r_cq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRCqMinimum.setStatus('current')
ad_vqm_ifc_r_cq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 13), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRCqAverage.setStatus('current')
ad_vqm_ifc_r_cq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 14), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRCqMaximum.setStatus('current')
ad_vqm_ifc_rg107_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRG107Minimum.setStatus('current')
ad_vqm_ifc_rg107_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRG107Average.setStatus('current')
ad_vqm_ifc_rg107_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 17), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcRG107Maximum.setStatus('current')
ad_vqm_ifc_mos_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 18), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosLqMinimum.setStatus('current')
ad_vqm_ifc_mos_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 19), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosLqAverage.setStatus('current')
ad_vqm_ifc_mos_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 20), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosLqMaximum.setStatus('current')
ad_vqm_ifc_mos_cq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 21), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosCqMinimum.setStatus('current')
ad_vqm_ifc_mos_cq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 22), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosCqAverage.setStatus('current')
ad_vqm_ifc_mos_cq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 23), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosCqMaximum.setStatus('current')
ad_vqm_ifc_mos_pq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 24), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosPqMinimum.setStatus('current')
ad_vqm_ifc_mos_pq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 25), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosPqAverage.setStatus('current')
ad_vqm_ifc_mos_pq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 26), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcMosPqMaximum.setStatus('current')
ad_vqm_ifc_loss_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 27), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcLossMinimum.setStatus('current')
ad_vqm_ifc_loss_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 28), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcLossAverage.setStatus('current')
ad_vqm_ifc_loss_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 29), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcLossMaximum.setStatus('current')
ad_vqm_ifc_discards_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 30), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDiscardsMinimum.setStatus('current')
ad_vqm_ifc_discards_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 31), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDiscardsAverage.setStatus('current')
ad_vqm_ifc_discards_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 32), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDiscardsMaximum.setStatus('current')
ad_vqm_ifc_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 33), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPdvAverageMs.setStatus('current')
ad_vqm_ifc_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 34), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcPdvMaximumMs.setStatus('current')
ad_vqm_ifc_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 35), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDelayMinMsec.setStatus('current')
ad_vqm_ifc_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 36), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDelayAvgMsec.setStatus('current')
ad_vqm_ifc_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 37), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcDelayMaxMsec.setStatus('current')
ad_vqm_ifc_number_streams_excellent = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 38), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcNumberStreamsExcellent.setStatus('current')
ad_vqm_ifc_number_streams_good = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 39), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcNumberStreamsGood.setStatus('current')
ad_vqm_ifc_number_streams_fair = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 40), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcNumberStreamsFair.setStatus('current')
ad_vqm_ifc_number_streams_poor = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmIfcNumberStreamsPoor.setStatus('current')
ad_vqm_ifc_clear = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 5, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
adVqmIfcClear.setStatus('current')
ad_vqm_end_point_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1))
if mibBuilder.loadTexts:
adVQMEndPointTable.setStatus('current')
ad_vqm_end_point_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmEndPointRtpSourceIp'))
if mibBuilder.loadTexts:
adVQMEndPointEntry.setStatus('current')
ad_vqm_end_point_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointRtpSourceIp.setStatus('current')
ad_vqm_end_point_number_completed_calls = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointNumberCompletedCalls.setStatus('current')
ad_vqm_end_point_interface_id = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointInterfaceId.setStatus('current')
ad_vqm_end_point_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointInterfaceName.setStatus('current')
ad_vqm_end_point_mos_lq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 5), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosLqMinimum.setStatus('current')
ad_vqm_end_point_mos_lq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 6), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosLqAverage.setStatus('current')
ad_vqm_end_point_mos_lq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 7), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosLqMaximum.setStatus('current')
ad_vqm_end_point_mos_pq_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 8), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosPqMinimum.setStatus('current')
ad_vqm_end_point_mos_pq_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 9), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosPqAverage.setStatus('current')
ad_vqm_end_point_mos_pq_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 10), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointMosPqMaximum.setStatus('current')
ad_vqm_end_point_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointPktsLostTotal.setStatus('current')
ad_vqm_end_point_pkts_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointPktsOutOfOrder.setStatus('current')
ad_vqm_end_point_jitter_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 13), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointJitterMaximum.setStatus('current')
ad_vqm_end_point_number_streams_excellent = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointNumberStreamsExcellent.setStatus('current')
ad_vqm_end_point_number_streams_good = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointNumberStreamsGood.setStatus('current')
ad_vqm_end_point_number_streams_fair = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointNumberStreamsFair.setStatus('current')
ad_vqm_end_point_number_streams_poor = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 6, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmEndPointNumberStreamsPoor.setStatus('current')
ad_vqm_call_history_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1))
if mibBuilder.loadTexts:
adVQMCallHistoryTable.setStatus('current')
ad_vqm_call_history_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourcePort'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestPort'), (0, 'ADTRAN-AOS-VQM', 'adVqmCallHistSsrcid'))
if mibBuilder.loadTexts:
adVQMCallHistoryEntry.setStatus('current')
ad_vqm_call_hist_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtpSourceIp.setStatus('current')
ad_vqm_call_hist_rtp_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtpSourcePort.setStatus('current')
ad_vqm_call_hist_rtp_dest_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtpDestIp.setStatus('current')
ad_vqm_call_hist_rtp_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtpDestPort.setStatus('current')
ad_vqm_call_hist_ssrcid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistSsrcid.setStatus('current')
ad_vqm_call_hist_to = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistTo.setStatus('current')
ad_vqm_call_hist_from = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistFrom.setStatus('current')
ad_vqm_call_hist_rtp_source_uri = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtpSourceUri.setStatus('current')
ad_vqm_call_hist_callid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCallid.setStatus('current')
ad_vqm_call_hist_ccmid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCcmid.setStatus('current')
ad_vqm_call_hist_source_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistSourceIntName.setStatus('current')
ad_vqm_call_hist_dest_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 12), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDestIntName.setStatus('current')
ad_vqm_call_hist_source_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 13), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistSourceIntDescription.setStatus('current')
ad_vqm_call_hist_dest_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 14), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDestIntDescription.setStatus('current')
ad_vqm_call_hist_call_start = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 15), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCallStart.setStatus('current')
ad_vqm_call_hist_call_duration_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCallDurationMs.setStatus('current')
ad_vqm_call_hist_codec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(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, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=named_values(('unknown', 1), ('g711U', 2), ('g711UPLC', 3), ('g723153K', 4), ('deprecated1', 5), ('g723163K', 6), ('deprecated2', 7), ('g728', 8), ('deprecated3', 9), ('g729', 10), ('deprecated4', 11), ('g729A', 12), ('deprecated5', 13), ('user1', 14), ('user2', 15), ('user3', 16), ('user4', 17), ('gsmfr', 18), ('reservedgsmhr', 19), ('gsmefr', 20), ('sx7300', 21), ('sx9600', 22), ('g711A', 23), ('g711APLC', 24), ('deprecated6', 25), ('g72616K', 26), ('g72624K', 27), ('g72632K', 28), ('g72640K', 29), ('gipse711U', 30), ('gipse711A', 31), ('gipsilbc', 32), ('gipsisac', 33), ('gipsipcmwb', 34), ('g729E8K0', 35), ('g729E11k8', 36), ('wblinearpcm', 37), ('wblinearpcmPlc', 38), ('g722at64k', 39), ('g722at56k', 40), ('g722at48k', 41), ('g7221at32k', 42), ('g7221at24k', 43), ('g7222at23k85', 44), ('g7222at23k05', 45), ('g7222at19k85', 46), ('g7222at18k25', 47), ('g7222at15k85', 48), ('g7222at14k25', 49), ('g7222at12k85', 50), ('g7222at8k85', 51), ('g7222at6k6', 52), ('qcelp8', 53), ('qcelp13', 54), ('evrc', 55), ('smv812', 56), ('smv579', 57), ('smv444', 58), ('smv395', 59), ('amrnb12k2', 60), ('amrnb10k2', 61), ('amrnb7k95', 62), ('amrnb7k4', 63), ('amrnb6k7', 64), ('amrnb5k9', 65), ('amrnb5k15', 66), ('amrnb4k75', 67), ('ilbc13k3', 68), ('ilbc15k2', 69), ('g711u56k', 70), ('g711uPLC56k', 71), ('g711A56k', 72), ('g711APLC56k', 73), ('g7231C', 74), ('speex2k15', 75), ('speex5k95', 76), ('speeX8k', 77), ('speeX11k', 78), ('speeX15k', 79), ('speeX18k2', 80), ('speeX24k6', 81), ('speeX3k95', 82), ('speeX12k8', 83), ('speeX16k8', 84), ('speeX20k6', 85), ('speeX23k8', 86), ('speeX27k8', 87), ('speeX34k2', 88), ('speeX42k2', 89)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCodec.setStatus('current')
ad_vqm_call_hist_codec_class = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('wideband', 1), ('other', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistCodecClass.setStatus('current')
ad_vqm_call_hist_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDscp.setStatus('current')
ad_vqm_call_hist_pkts_rcvd_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPktsRcvdTotal.setStatus('current')
ad_vqm_call_hist_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPktsLostTotal.setStatus('current')
ad_vqm_call_hist_pkts_discarded_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPktsDiscardedTotal.setStatus('current')
ad_vqm_call_hist_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOutOfOrder.setStatus('current')
ad_vqm_call_hist_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 24), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPdvAverageMs.setStatus('current')
ad_vqm_call_hist_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 25), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPdvMaximumMs.setStatus('current')
ad_vqm_call_hist_rt_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 26), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtDelayInst.setStatus('current')
ad_vqm_call_hist_rt_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 27), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtDelayAverage.setStatus('current')
ad_vqm_call_hist_rt_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 28), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRtDelayMaximum.setStatus('current')
ad_vqm_call_hist_oneway_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 29), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOnewayDelayInst.setStatus('current')
ad_vqm_call_hist_oneway_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 30), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOnewayDelayAverage.setStatus('current')
ad_vqm_call_hist_oneway_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 31), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOnewayDelayMaximum.setStatus('current')
ad_vqm_call_hist_orig_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 32), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOrigDelayInst.setStatus('current')
ad_vqm_call_hist_orig_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 33), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOrigDelayAverage.setStatus('current')
ad_vqm_call_hist_orig_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 34), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOrigDelayMaximum.setStatus('current')
ad_vqm_call_hist_term_delay_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 35), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistTermDelayMinimum.setStatus('current')
ad_vqm_call_hist_term_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 36), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistTermDelayAverage.setStatus('current')
ad_vqm_call_hist_term_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 37), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistTermDelayMaximum.setStatus('current')
ad_vqm_call_hist_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 38), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRLq.setStatus('current')
ad_vqm_call_hist_r_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 39), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRCq.setStatus('current')
ad_vqm_call_hist_r_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 40), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRNominal.setStatus('current')
ad_vqm_call_hist_rg107 = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 41), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistRG107.setStatus('current')
ad_vqm_call_hist_mos_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 42), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistMosLq.setStatus('current')
ad_vqm_call_hist_mos_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 43), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistMosCq.setStatus('current')
ad_vqm_call_hist_mos_pq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 44), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistMosPq.setStatus('current')
ad_vqm_call_hist_mos_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 45), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistMosNominal.setStatus('current')
ad_vqm_call_hist_deg_loss = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 46), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegLoss.setStatus('current')
ad_vqm_call_hist_deg_discard = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 47), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegDiscard.setStatus('current')
ad_vqm_call_hist_deg_vocoder = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 48), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegVocoder.setStatus('current')
ad_vqm_call_hist_deg_recency = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 49), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegRecency.setStatus('current')
ad_vqm_call_hist_deg_delay = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 50), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegDelay.setStatus('current')
ad_vqm_call_hist_deg_siglvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 51), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegSiglvl.setStatus('current')
ad_vqm_call_hist_deg_noiselvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 52), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegNoiselvl.setStatus('current')
ad_vqm_call_hist_deg_echolvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 53), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDegEcholvl.setStatus('current')
ad_vqm_call_hist_burst_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 54), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBurstRLq.setStatus('current')
ad_vqm_call_hist_burst_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 55), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBurstCount.setStatus('current')
ad_vqm_call_hist_burst_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 56), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBurstRateAvg.setStatus('current')
ad_vqm_call_hist_burst_len_avg_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 57), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBurstLenAvgPkts.setStatus('current')
ad_vqm_call_hist_burst_len_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 58), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBurstLenAvgMsec.setStatus('current')
ad_vqm_call_hist_gap_r = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 59), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistGapR.setStatus('current')
ad_vqm_call_hist_gap_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 60), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistGapCount.setStatus('current')
ad_vqm_call_hist_gap_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 61), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistGapLossRateAvg.setStatus('current')
ad_vqm_call_hist_gap_len_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 62), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistGapLenPkts.setStatus('current')
ad_vqm_call_hist_gap_len_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 63), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistGapLenMsec.setStatus('current')
ad_vqm_call_hist_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 64), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLossRateAvg.setStatus('current')
ad_vqm_call_hist_network_loss_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 65), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistNetworkLossAvg.setStatus('current')
ad_vqm_call_hist_discard_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 66), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDiscardRateAvg.setStatus('current')
ad_vqm_call_hist_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 67), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExcessBurst.setStatus('current')
ad_vqm_call_hist_excess_gap = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 68), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExcessGap.setStatus('current')
ad_vqm_call_hist_ppdv_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 69), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistPpdvMsec.setStatus('current')
ad_vqm_call_hist_late_threshold_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 70), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLateThresholdMs.setStatus('current')
ad_vqm_call_hist_late_threshold_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 71), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLateThresholdPc.setStatus('current')
ad_vqm_call_hist_late_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 72), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLateUnderThresh.setStatus('current')
ad_vqm_call_hist_late_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 73), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLateTotalCount.setStatus('current')
ad_vqm_call_hist_late_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 74), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLatePeakJitterMs.setStatus('current')
ad_vqm_call_hist_early_thresh_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 75), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyThreshMs.setStatus('current')
ad_vqm_call_hist_early_thresh_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 76), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyThreshPc.setStatus('current')
ad_vqm_call_hist_early_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 77), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyUnderThresh.setStatus('current')
ad_vqm_call_hist_early_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 78), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyTotalCount.setStatus('current')
ad_vqm_call_hist_early_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 79), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyPeakJitterMs.setStatus('current')
ad_vqm_call_hist_delay_increase_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 80), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayIncreaseCount.setStatus('current')
ad_vqm_call_hist_delay_decrease_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 81), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayDecreaseCount.setStatus('current')
ad_vqm_call_hist_resync_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 82), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistResyncCount.setStatus('current')
ad_vqm_call_hist_jitter_buffer_type = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fixed', 1), ('adaptive', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistJitterBufferType.setStatus('current')
ad_vqm_call_hist_jb_cfg_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 84), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistJbCfgMin.setStatus('current')
ad_vqm_call_hist_jb_cfg_nom = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 85), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistJbCfgNom.setStatus('current')
ad_vqm_call_hist_jb_cfg_max = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 86), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistJbCfgMax.setStatus('current')
ad_vqm_call_hist_duplicate_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 87), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDuplicatePkts.setStatus('current')
ad_vqm_call_hist_early_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 88), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistEarlyPkts.setStatus('current')
ad_vqm_call_hist_late_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 89), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistLatePkts.setStatus('current')
ad_vqm_call_hist_overrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 90), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistOverrunDiscardPkts.setStatus('current')
ad_vqm_call_hist_underrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 91), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistUnderrunDiscardPkts.setStatus('current')
ad_vqm_call_hist_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 92), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayMinMsec.setStatus('current')
ad_vqm_call_hist_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 93), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayAvgMsec.setStatus('current')
ad_vqm_call_hist_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 94), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayMaxMsec.setStatus('current')
ad_vqm_call_hist_delay_current_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 95), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistDelayCurrentMsec.setStatus('current')
ad_vqm_call_hist_ext_r_lq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 96), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExtRLqIn.setStatus('current')
ad_vqm_call_hist_ext_r_lq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 97), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExtRLqOut.setStatus('current')
ad_vqm_call_hist_ext_r_cq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 98), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExtRCqIn.setStatus('current')
ad_vqm_call_hist_ext_r_cq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 99), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistExtRCqOut.setStatus('current')
ad_vqm_call_hist_through_put_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 100), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistThroughPutIndex.setStatus('current')
ad_vqm_call_hist_reliability_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 101), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistReliabilityIndex.setStatus('current')
ad_vqm_call_hist_bitrate = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 7, 1, 1, 102), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmCallHistBitrate.setStatus('current')
ad_vqm_active_call_table = mib_table((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1))
if mibBuilder.loadTexts:
adVQMActiveCallTable.setStatus('current')
ad_vqm_active_call_entry = mib_table_row((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1)).setIndexNames((0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpSourcePort'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpDestIp'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallRtpDestPort'), (0, 'ADTRAN-AOS-VQM', 'adVqmActCallSsrcid'))
if mibBuilder.loadTexts:
adVQMActiveCallEntry.setStatus('current')
ad_vqm_act_call_rtp_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtpSourceIp.setStatus('current')
ad_vqm_act_call_rtp_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtpSourcePort.setStatus('current')
ad_vqm_act_call_rtp_dest_ip = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtpDestIp.setStatus('current')
ad_vqm_act_call_rtp_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtpDestPort.setStatus('current')
ad_vqm_act_call_ssrcid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallSsrcid.setStatus('current')
ad_vqm_act_call_to = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallTo.setStatus('current')
ad_vqm_act_call_from = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallFrom.setStatus('current')
ad_vqm_act_call_rtp_source_uri = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtpSourceUri.setStatus('current')
ad_vqm_act_call_callid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCallid.setStatus('current')
ad_vqm_act_call_ccmid = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCcmid.setStatus('current')
ad_vqm_act_call_source_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallSourceIntName.setStatus('current')
ad_vqm_act_call_dest_int_name = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 12), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDestIntName.setStatus('current')
ad_vqm_act_call_source_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 13), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallSourceIntDescription.setStatus('current')
ad_vqm_act_call_dest_int_description = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 14), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDestIntDescription.setStatus('current')
ad_vqm_act_call_call_start = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 15), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCallStart.setStatus('current')
ad_vqm_act_call_call_duration_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCallDurationMs.setStatus('current')
ad_vqm_act_call_codec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(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, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89))).clone(namedValues=named_values(('unknown', 1), ('g711U', 2), ('g711UPLC', 3), ('g723153K', 4), ('deprecated1', 5), ('g723163K', 6), ('deprecated2', 7), ('g728', 8), ('deprecated3', 9), ('g729', 10), ('deprecated4', 11), ('g729A', 12), ('deprecated5', 13), ('user1', 14), ('user2', 15), ('user3', 16), ('user4', 17), ('gsmfr', 18), ('reservedgsmhr', 19), ('gsmefr', 20), ('sx7300', 21), ('sx9600', 22), ('g711A', 23), ('g711APLC', 24), ('deprecated6', 25), ('g72616K', 26), ('g72624K', 27), ('g72632K', 28), ('g72640K', 29), ('gipse711U', 30), ('gipse711A', 31), ('gipsilbc', 32), ('gipsisac', 33), ('gipsipcmwb', 34), ('g729E8K0', 35), ('g729E11k8', 36), ('wblinearpcm', 37), ('wblinearpcmPlc', 38), ('g722at64k', 39), ('g722at56k', 40), ('g722at48k', 41), ('g7221at32k', 42), ('g7221at24k', 43), ('g7222at23k85', 44), ('g7222at23k05', 45), ('g7222at19k85', 46), ('g7222at18k25', 47), ('g7222at15k85', 48), ('g7222at14k25', 49), ('g7222at12k85', 50), ('g7222at8k85', 51), ('g7222at6k6', 52), ('qcelp8', 53), ('qcelp13', 54), ('evrc', 55), ('smv812', 56), ('smv579', 57), ('smv444', 58), ('smv395', 59), ('amrnb12k2', 60), ('amrnb10k2', 61), ('amrnb7k95', 62), ('amrnb7k4', 63), ('amrnb6k7', 64), ('amrnb5k9', 65), ('amrnb5k15', 66), ('amrnb4k75', 67), ('ilbc13k3', 68), ('ilbc15k2', 69), ('g711u56k', 70), ('g711uPLC56k', 71), ('g711A56k', 72), ('g711APLC56k', 73), ('g7231C', 74), ('speex2k15', 75), ('speex5k95', 76), ('speeX8k', 77), ('speeX11k', 78), ('speeX15k', 79), ('speeX18k2', 80), ('speeX24k6', 81), ('speeX3k95', 82), ('speeX12k8', 83), ('speeX16k8', 84), ('speeX20k6', 85), ('speeX23k8', 86), ('speeX27k8', 87), ('speeX34k2', 88), ('speeX42k2', 89)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCodec.setStatus('current')
ad_vqm_act_call_codec_class = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('wideband', 1), ('other', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallCodecClass.setStatus('current')
ad_vqm_act_call_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDscp.setStatus('current')
ad_vqm_act_call_pkts_rcvd_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPktsRcvdTotal.setStatus('current')
ad_vqm_act_call_pkts_lost_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPktsLostTotal.setStatus('current')
ad_vqm_act_call_pkts_discarded_total = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPktsDiscardedTotal.setStatus('current')
ad_vqm_act_call_out_of_order = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOutOfOrder.setStatus('current')
ad_vqm_act_call_pdv_average_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 24), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPdvAverageMs.setStatus('current')
ad_vqm_act_call_pdv_maximum_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 25), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPdvMaximumMs.setStatus('current')
ad_vqm_act_call_rt_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 26), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtDelayInst.setStatus('current')
ad_vqm_act_call_rt_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 27), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtDelayAverage.setStatus('current')
ad_vqm_act_call_rt_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 28), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRtDelayMaximum.setStatus('current')
ad_vqm_act_call_oneway_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 29), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOnewayDelayInst.setStatus('current')
ad_vqm_act_call_oneway_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 30), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOnewayDelayAverage.setStatus('current')
ad_vqm_act_call_oneway_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 31), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOnewayDelayMaximum.setStatus('current')
ad_vqm_act_call_orig_delay_inst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 32), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOrigDelayInst.setStatus('current')
ad_vqm_act_call_orig_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 33), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOrigDelayAverage.setStatus('current')
ad_vqm_act_call_orig_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 34), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOrigDelayMaximum.setStatus('current')
ad_vqm_act_call_term_delay_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 35), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallTermDelayMinimum.setStatus('current')
ad_vqm_act_call_term_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 36), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallTermDelayAverage.setStatus('current')
ad_vqm_act_call_term_delay_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 37), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallTermDelayMaximum.setStatus('current')
ad_vqm_act_call_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 38), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRLq.setStatus('current')
ad_vqm_act_call_r_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 39), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRCq.setStatus('current')
ad_vqm_act_call_r_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 40), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRNominal.setStatus('current')
ad_vqm_act_call_rg107 = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 41), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallRG107.setStatus('current')
ad_vqm_act_call_mos_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 42), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallMosLq.setStatus('current')
ad_vqm_act_call_mos_cq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 43), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallMosCq.setStatus('current')
ad_vqm_act_call_mos_pq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 44), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallMosPq.setStatus('current')
ad_vqm_act_call_mos_nominal = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 45), mo_svalue()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallMosNominal.setStatus('current')
ad_vqm_act_call_deg_loss = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 46), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegLoss.setStatus('current')
ad_vqm_act_call_deg_discard = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 47), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegDiscard.setStatus('current')
ad_vqm_act_call_deg_vocoder = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 48), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegVocoder.setStatus('current')
ad_vqm_act_call_deg_recency = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 49), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegRecency.setStatus('current')
ad_vqm_act_call_deg_delay = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 50), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegDelay.setStatus('current')
ad_vqm_act_call_deg_siglvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 51), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegSiglvl.setStatus('current')
ad_vqm_act_call_deg_noiselvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 52), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegNoiselvl.setStatus('current')
ad_vqm_act_call_deg_echolvl = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 53), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDegEcholvl.setStatus('current')
ad_vqm_act_call_burst_r_lq = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 54), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBurstRLq.setStatus('current')
ad_vqm_act_call_burst_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 55), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBurstCount.setStatus('current')
ad_vqm_act_call_burst_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 56), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBurstRateAvg.setStatus('current')
ad_vqm_act_call_burst_len_avg_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 57), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBurstLenAvgPkts.setStatus('current')
ad_vqm_act_call_burst_len_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 58), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBurstLenAvgMsec.setStatus('current')
ad_vqm_act_call_gap_r = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 59), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallGapR.setStatus('current')
ad_vqm_act_call_gap_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 60), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallGapCount.setStatus('current')
ad_vqm_act_call_gap_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 61), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallGapLossRateAvg.setStatus('current')
ad_vqm_act_call_gap_len_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 62), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallGapLenPkts.setStatus('current')
ad_vqm_act_call_gap_len_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 63), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallGapLenMsec.setStatus('current')
ad_vqm_act_call_loss_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 64), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLossRateAvg.setStatus('current')
ad_vqm_act_call_network_loss_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 65), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallNetworkLossAvg.setStatus('current')
ad_vqm_act_call_discard_rate_avg = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 66), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDiscardRateAvg.setStatus('current')
ad_vqm_act_call_excess_burst = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 67), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExcessBurst.setStatus('current')
ad_vqm_act_call_excess_gap = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 68), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExcessGap.setStatus('current')
ad_vqm_act_call_ppdv_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 69), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallPpdvMsec.setStatus('current')
ad_vqm_act_call_late_threshold_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 70), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLateThresholdMs.setStatus('current')
ad_vqm_act_call_late_threshold_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 71), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLateThresholdPc.setStatus('current')
ad_vqm_act_call_late_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 72), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLateUnderThresh.setStatus('current')
ad_vqm_act_call_late_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 73), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLateTotalCount.setStatus('current')
ad_vqm_act_call_late_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 74), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLatePeakJitterMs.setStatus('current')
ad_vqm_act_call_early_thresh_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 75), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyThreshMs.setStatus('current')
ad_vqm_act_call_early_thresh_pc = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 76), percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyThreshPc.setStatus('current')
ad_vqm_act_call_early_under_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 77), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyUnderThresh.setStatus('current')
ad_vqm_act_call_early_total_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 78), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyTotalCount.setStatus('current')
ad_vqm_act_call_early_peak_jitter_ms = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 79), msec_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyPeakJitterMs.setStatus('current')
ad_vqm_act_call_delay_increase_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 80), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayIncreaseCount.setStatus('current')
ad_vqm_act_call_delay_decrease_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 81), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayDecreaseCount.setStatus('current')
ad_vqm_act_call_resync_count = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 82), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallResyncCount.setStatus('current')
ad_vqm_act_call_jitter_buffer_type = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fixed', 1), ('adaptive', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallJitterBufferType.setStatus('current')
ad_vqm_act_call_jb_cfg_min = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 84), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallJbCfgMin.setStatus('current')
ad_vqm_act_call_jb_cfg_nom = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 85), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallJbCfgNom.setStatus('current')
ad_vqm_act_call_jb_cfg_max = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 86), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallJbCfgMax.setStatus('current')
ad_vqm_act_call_duplicate_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 87), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDuplicatePkts.setStatus('current')
ad_vqm_act_call_early_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 88), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallEarlyPkts.setStatus('current')
ad_vqm_act_call_late_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 89), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallLatePkts.setStatus('current')
ad_vqm_act_call_overrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 90), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallOverrunDiscardPkts.setStatus('current')
ad_vqm_act_call_underrun_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 91), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallUnderrunDiscardPkts.setStatus('current')
ad_vqm_act_call_delay_min_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 92), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayMinMsec.setStatus('current')
ad_vqm_act_call_delay_avg_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 93), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayAvgMsec.setStatus('current')
ad_vqm_act_call_delay_max_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 94), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayMaxMsec.setStatus('current')
ad_vqm_act_call_delay_current_msec = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 95), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallDelayCurrentMsec.setStatus('current')
ad_vqm_act_call_ext_r_lq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 96), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExtRLqIn.setStatus('current')
ad_vqm_act_call_ext_r_lq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 97), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExtRLqOut.setStatus('current')
ad_vqm_act_call_ext_r_cq_in = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 98), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExtRCqIn.setStatus('current')
ad_vqm_act_call_ext_r_cq_out = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 99), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallExtRCqOut.setStatus('current')
ad_vqm_act_call_through_put_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 100), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallThroughPutIndex.setStatus('current')
ad_vqm_act_call_reliability_index = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 101), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallReliabilityIndex.setStatus('current')
ad_vqm_act_call_bitrate = mib_table_column((1, 3, 6, 1, 4, 1, 664, 5, 53, 5, 3, 8, 1, 1, 102), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adVqmActCallBitrate.setStatus('current')
ad_gen_aos_vqm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10))
ad_gen_aos_vqm_groups = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1))
ad_gen_aos_vqm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2))
ad_gen_aos_vqm_full_compliance = module_compliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 2, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVQMCfgGroup'), ('ADTRAN-AOS-VQM', 'adVQMThresholdGroup'), ('ADTRAN-AOS-VQM', 'adVQMSysPerfGroup'), ('ADTRAN-AOS-VQM', 'adVQMInterfaceGroup'), ('ADTRAN-AOS-VQM', 'adVQMEndPointGroup'), ('ADTRAN-AOS-VQM', 'adVQMCallHistoryGroup'), ('ADTRAN-AOS-VQM', 'adVQMActiveCallGroup'), ('ADTRAN-AOS-VQM', 'adVQMTrapGroup'), ('ADTRAN-AOS-VQM', 'adVQMNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_gen_aos_vqm_full_compliance = adGenAOSVqmFullCompliance.setStatus('current')
ad_vqm_cfg_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 1)).setObjects(('ADTRAN-AOS-VQM', 'adVqmCfgEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgSipEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgUdpEnable'), ('ADTRAN-AOS-VQM', 'adVqmCfgInternationalCode'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveMin'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveNominal'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferAdaptiveMax'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferFixedNominal'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferFixedSize'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferThresholdEarlyMs'), ('ADTRAN-AOS-VQM', 'adVqmCfgJitterBufferThresholdLateMs'), ('ADTRAN-AOS-VQM', 'adVqmCfgRoundTripPingEnabled'), ('ADTRAN-AOS-VQM', 'adVqmCfgRoundTripPingType'), ('ADTRAN-AOS-VQM', 'adVqmCfgCallHistorySize'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdLqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdCqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdPqmos'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdLoss'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCfgHistoryThresholdJitter'), ('ADTRAN-AOS-VQM', 'adVqmCfgClear'), ('ADTRAN-AOS-VQM', 'adVqmCfgClearCallHistory'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_cfg_group = adVQMCfgGroup.setStatus('current')
ad_vqm_threshold_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 2)).setObjects(('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLqmosError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdPqmosError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdOutOfOrderError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdLossError'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterInfo'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterNotice'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterWarning'), ('ADTRAN-AOS-VQM', 'adVqmThresholdJitterError'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_threshold_group = adVQMThresholdGroup.setStatus('current')
ad_vqm_sys_perf_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 3)).setObjects(('ADTRAN-AOS-VQM', 'adVqmSysActiveCalls'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveGood'), ('ADTRAN-AOS-VQM', 'adVqmSysActiveFair'), ('ADTRAN-AOS-VQM', 'adVqmSysActivePoor'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryCalls'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryGood'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryFair'), ('ADTRAN-AOS-VQM', 'adVqmSysCallHistoryPoor'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsGood'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsFair'), ('ADTRAN-AOS-VQM', 'adVqmSysAllCallsPoor'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_sys_perf_group = adVQMSysPerfGroup.setStatus('current')
ad_vqm_interface_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 4)).setObjects(('ADTRAN-AOS-VQM', 'adVqmIfcId'), ('ADTRAN-AOS-VQM', 'adVqmIfcName'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsRx'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsLost'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsOoo'), ('ADTRAN-AOS-VQM', 'adVqmIfcPktsDiscarded'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberActiveCalls'), ('ADTRAN-AOS-VQM', 'adVqmIfcTerminatedCalls'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcRLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcRCqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Minimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Average'), ('ADTRAN-AOS-VQM', 'adVqmIfcRG107Maximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosCqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcMosPqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcLossMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsMinimum'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsAverage'), ('ADTRAN-AOS-VQM', 'adVqmIfcDiscardsMaximum'), ('ADTRAN-AOS-VQM', 'adVqmIfcPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmIfcPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsGood'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsFair'), ('ADTRAN-AOS-VQM', 'adVqmIfcNumberStreamsPoor'), ('ADTRAN-AOS-VQM', 'adVqmIfcClear'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_interface_group = adVQMInterfaceGroup.setStatus('current')
ad_vqm_end_point_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 5)).setObjects(('ADTRAN-AOS-VQM', 'adVqmEndPointRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberCompletedCalls'), ('ADTRAN-AOS-VQM', 'adVqmEndPointInterfaceId'), ('ADTRAN-AOS-VQM', 'adVqmEndPointInterfaceName'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqAverage'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosLqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqMinimum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqAverage'), ('ADTRAN-AOS-VQM', 'adVqmEndPointMosPqMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmEndPointPktsOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmEndPointJitterMaximum'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsExcellent'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsGood'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsFair'), ('ADTRAN-AOS-VQM', 'adVqmEndPointNumberStreamsPoor'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_end_point_group = adVQMEndPointGroup.setStatus('current')
ad_vqm_call_history_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 6)).setObjects(('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourcePort'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestIp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpDestPort'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSsrcid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTo'), ('ADTRAN-AOS-VQM', 'adVqmCallHistFrom'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtpSourceUri'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCcmid'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSourceIntName'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDestIntName'), ('ADTRAN-AOS-VQM', 'adVqmCallHistSourceIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDestIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallStart'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCallDurationMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCodec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistCodecClass'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDscp'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsRcvdTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPktsDiscardedTotal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRtDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOnewayDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOrigDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayMinimum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmCallHistTermDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRCq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRNominal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistRG107'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosCq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosPq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistMosNominal'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegLoss'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegDiscard'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegVocoder'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegRecency'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegDelay'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegSiglvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegNoiselvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDegEcholvl'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstRLq'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstLenAvgPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBurstLenAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapR'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLenPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistGapLenMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistNetworkLossAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDiscardRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExcessBurst'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExcessGap'), ('ADTRAN-AOS-VQM', 'adVqmCallHistPpdvMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateThresholdMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateThresholdPc'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLateTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLatePeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyThreshMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyThreshPc'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyPeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayIncreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayDecreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistResyncCount'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgMin'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgNom'), ('ADTRAN-AOS-VQM', 'adVqmCallHistJbCfgMax'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDuplicatePkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistEarlyPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistLatePkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistOverrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistUnderrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistDelayCurrentMsec'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRLqIn'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRLqOut'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRCqIn'), ('ADTRAN-AOS-VQM', 'adVqmCallHistExtRCqOut'), ('ADTRAN-AOS-VQM', 'adVqmCallHistThroughPutIndex'), ('ADTRAN-AOS-VQM', 'adVqmCallHistReliabilityIndex'), ('ADTRAN-AOS-VQM', 'adVqmCallHistBitrate'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_call_history_group = adVQMCallHistoryGroup.setStatus('current')
ad_vqm_active_call_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 7)).setObjects(('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceIp'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourcePort'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpDestIp'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpDestPort'), ('ADTRAN-AOS-VQM', 'adVqmActCallSsrcid'), ('ADTRAN-AOS-VQM', 'adVqmActCallTo'), ('ADTRAN-AOS-VQM', 'adVqmActCallFrom'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtpSourceUri'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallid'), ('ADTRAN-AOS-VQM', 'adVqmActCallCcmid'), ('ADTRAN-AOS-VQM', 'adVqmActCallSourceIntName'), ('ADTRAN-AOS-VQM', 'adVqmActCallDestIntName'), ('ADTRAN-AOS-VQM', 'adVqmActCallSourceIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmActCallDestIntDescription'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallStart'), ('ADTRAN-AOS-VQM', 'adVqmActCallCallDurationMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallCodec'), ('ADTRAN-AOS-VQM', 'adVqmActCallCodecClass'), ('ADTRAN-AOS-VQM', 'adVqmActCallDscp'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsRcvdTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsLostTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallPktsDiscardedTotal'), ('ADTRAN-AOS-VQM', 'adVqmActCallOutOfOrder'), ('ADTRAN-AOS-VQM', 'adVqmActCallPdvAverageMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallPdvMaximumMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallRtDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallOnewayDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayInst'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallOrigDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayMinimum'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayAverage'), ('ADTRAN-AOS-VQM', 'adVqmActCallTermDelayMaximum'), ('ADTRAN-AOS-VQM', 'adVqmActCallRLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallRCq'), ('ADTRAN-AOS-VQM', 'adVqmActCallRNominal'), ('ADTRAN-AOS-VQM', 'adVqmActCallRG107'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosCq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosPq'), ('ADTRAN-AOS-VQM', 'adVqmActCallMosNominal'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegLoss'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegDiscard'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegVocoder'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegRecency'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegDelay'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegSiglvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegNoiselvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallDegEcholvl'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstRLq'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstLenAvgPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallBurstLenAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapR'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLenPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallGapLenMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallLossRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallNetworkLossAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallDiscardRateAvg'), ('ADTRAN-AOS-VQM', 'adVqmActCallExcessBurst'), ('ADTRAN-AOS-VQM', 'adVqmActCallExcessGap'), ('ADTRAN-AOS-VQM', 'adVqmActCallPpdvMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateThresholdMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateThresholdPc'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmActCallLateTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallLatePeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyThreshMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyThreshPc'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyUnderThresh'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyTotalCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyPeakJitterMs'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayIncreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayDecreaseCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallResyncCount'), ('ADTRAN-AOS-VQM', 'adVqmActCallJitterBufferType'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgMin'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgNom'), ('ADTRAN-AOS-VQM', 'adVqmActCallJbCfgMax'), ('ADTRAN-AOS-VQM', 'adVqmActCallDuplicatePkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallEarlyPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallLatePkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallOverrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallUnderrunDiscardPkts'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayMinMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayAvgMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayMaxMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallDelayCurrentMsec'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRLqIn'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRLqOut'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRCqIn'), ('ADTRAN-AOS-VQM', 'adVqmActCallExtRCqOut'), ('ADTRAN-AOS-VQM', 'adVqmActCallThroughPutIndex'), ('ADTRAN-AOS-VQM', 'adVqmActCallReliabilityIndex'), ('ADTRAN-AOS-VQM', 'adVqmActCallBitrate'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_active_call_group = adVQMActiveCallGroup.setStatus('current')
ad_vqm_trap_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 8)).setObjects(('ADTRAN-AOS-VQM', 'adVqmTrapState'), ('ADTRAN-AOS-VQM', 'adVqmTrapCfgSeverityLevel'), ('ADTRAN-AOS-VQM', 'adVqmTrapEventType'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_trap_group = adVQMTrapGroup.setStatus('current')
ad_vqm_notification_group = notification_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 10, 1, 9)).setObjects(('ADTRAN-AOS-VQM', 'adVQMEndOfCallTrap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_vqm_notification_group = adVQMNotificationGroup.setStatus('current')
mibBuilder.exportSymbols('ADTRAN-AOS-VQM', adVqmActCallDegNoiselvl=adVqmActCallDegNoiselvl, adVqmActCallCallStart=adVqmActCallCallStart, adVQMCallHistoryTable=adVQMCallHistoryTable, adVqmCfgJitterBufferFixedNominal=adVqmCfgJitterBufferFixedNominal, adVqmSysActiveFair=adVqmSysActiveFair, adVqmCallHistRtpDestIp=adVqmCallHistRtpDestIp, adVqmActCallLatePeakJitterMs=adVqmActCallLatePeakJitterMs, adVQMTrapControl=adVQMTrapControl, adVqmCallHistMosCq=adVqmCallHistMosCq, adVQMActiveCallEntry=adVQMActiveCallEntry, adVqmCallHistDiscardRateAvg=adVqmCallHistDiscardRateAvg, adVqmCallHistRLq=adVqmCallHistRLq, adVqmCallHistOnewayDelayAverage=adVqmCallHistOnewayDelayAverage, adVqmCallHistDelayIncreaseCount=adVqmCallHistDelayIncreaseCount, adVqmIfcDiscardsMinimum=adVqmIfcDiscardsMinimum, adVqmCfgSipEnable=adVqmCfgSipEnable, adVqmThresholdLossError=adVqmThresholdLossError, adVqmActCallMosPq=adVqmActCallMosPq, adVqmCallHistCallDurationMs=adVqmCallHistCallDurationMs, adVQMInterfaceGroup=adVQMInterfaceGroup, adVqmCallHistDegDelay=adVqmCallHistDegDelay, adVqmActCallJbCfgNom=adVqmActCallJbCfgNom, adVqmCfgHistoryThresholdPqmos=adVqmCfgHistoryThresholdPqmos, adVqmActCallDegEcholvl=adVqmActCallDegEcholvl, adVQMInterfaceTable=adVQMInterfaceTable, adVqmCfgHistoryThresholdLoss=adVqmCfgHistoryThresholdLoss, adVqmEndPointMosLqMaximum=adVqmEndPointMosLqMaximum, adVqmTrapCfgSeverityLevel=adVqmTrapCfgSeverityLevel, adVqmEndPointMosLqMinimum=adVqmEndPointMosLqMinimum, adVqmCallHistCodecClass=adVqmCallHistCodecClass, adVqmActCallDegLoss=adVqmActCallDegLoss, adVqmIfcRLqMaximum=adVqmIfcRLqMaximum, adVqmActCallDelayDecreaseCount=adVqmActCallDelayDecreaseCount, adVqmCallHistDegNoiselvl=adVqmCallHistDegNoiselvl, adVqmSysActiveGood=adVqmSysActiveGood, adVqmCallHistMosNominal=adVqmCallHistMosNominal, adVQMThresholdGroup=adVQMThresholdGroup, adVqmActCallTermDelayMinimum=adVqmActCallTermDelayMinimum, adVqmActCallDelayAvgMsec=adVqmActCallDelayAvgMsec, adVqmCfgUdpEnable=adVqmCfgUdpEnable, adVqmCallHistDelayMinMsec=adVqmCallHistDelayMinMsec, adVqmThresholdLqmosWarning=adVqmThresholdLqmosWarning, adVqmCallHistExcessGap=adVqmCallHistExcessGap, adVqmActCallBurstRateAvg=adVqmActCallBurstRateAvg, adVqmCallHistEarlyThreshMs=adVqmCallHistEarlyThreshMs, adVqmCallHistPktsDiscardedTotal=adVqmCallHistPktsDiscardedTotal, adVqmCallHistOrigDelayAverage=adVqmCallHistOrigDelayAverage, adVqmActCallGapLenMsec=adVqmActCallGapLenMsec, adVqmEndPointNumberStreamsPoor=adVqmEndPointNumberStreamsPoor, adVqmCallHistDestIntName=adVqmCallHistDestIntName, adVqmActCallDiscardRateAvg=adVqmActCallDiscardRateAvg, adVqmActCallExcessGap=adVqmActCallExcessGap, adVqmActCallExtRCqOut=adVqmActCallExtRCqOut, adVqmActCallLateUnderThresh=adVqmActCallLateUnderThresh, adVqmCallHistJitterBufferType=adVqmCallHistJitterBufferType, adVqmCallHistRtpSourceUri=adVqmCallHistRtpSourceUri, adVqmCallHistLossRateAvg=adVqmCallHistLossRateAvg, adVqmCallHistLateThresholdMs=adVqmCallHistLateThresholdMs, adVqmCallHistBurstLenAvgMsec=adVqmCallHistBurstLenAvgMsec, adVqmCallHistReliabilityIndex=adVqmCallHistReliabilityIndex, adVqmThresholdLqmosInfo=adVqmThresholdLqmosInfo, adVqmActCallDscp=adVqmActCallDscp, adVqmIfcLossAverage=adVqmIfcLossAverage, adVqmActCallTermDelayAverage=adVqmActCallTermDelayAverage, adVqmActCallLatePkts=adVqmActCallLatePkts, adVqmActCallEarlyThreshMs=adVqmActCallEarlyThreshMs, adVqmActCallEarlyThreshPc=adVqmActCallEarlyThreshPc, adVQMEndOfCallTrap=adVQMEndOfCallTrap, adVqmThresholdLossInfo=adVqmThresholdLossInfo, adVQMCfgGroup=adVQMCfgGroup, adVqmIfcRCqMinimum=adVqmIfcRCqMinimum, adVqmActCallRtpDestIp=adVqmActCallRtpDestIp, adVqmActCallEarlyUnderThresh=adVqmActCallEarlyUnderThresh, adVqmCallHistMosLq=adVqmCallHistMosLq, adVqmCallHistMosPq=adVqmCallHistMosPq, adVqmEndPointJitterMaximum=adVqmEndPointJitterMaximum, adVqmIfcPktsRx=adVqmIfcPktsRx, adVqmThresholdOutOfOrderNotice=adVqmThresholdOutOfOrderNotice, adVqmCallHistGapLenPkts=adVqmCallHistGapLenPkts, adVqmActCallRtDelayInst=adVqmActCallRtDelayInst, adVqmThresholdJitterWarning=adVqmThresholdJitterWarning, adVqmSysCallHistoryExcellent=adVqmSysCallHistoryExcellent, adVqmEndPointInterfaceName=adVqmEndPointInterfaceName, adVqmActCallOnewayDelayAverage=adVqmActCallOnewayDelayAverage, adVqmIfcRCqMaximum=adVqmIfcRCqMaximum, adVqmActCallRtpSourcePort=adVqmActCallRtpSourcePort, adVqmThresholdLqmosError=adVqmThresholdLqmosError, adVqmActCallCcmid=adVqmActCallCcmid, adGenAOSVqmCompliances=adGenAOSVqmCompliances, adVqmCallHistDegSiglvl=adVqmCallHistDegSiglvl, adVqmIfcDelayMaxMsec=adVqmIfcDelayMaxMsec, adVqmIfcMosLqMaximum=adVqmIfcMosLqMaximum, adVQMTrap=adVQMTrap, adVqmCallHistEarlyThreshPc=adVqmCallHistEarlyThreshPc, adVqmCallHistExtRCqOut=adVqmCallHistExtRCqOut, adVqmThresholdOutOfOrderInfo=adVqmThresholdOutOfOrderInfo, adVqmActCallExtRCqIn=adVqmActCallExtRCqIn, adVQMEndPointEntry=adVQMEndPointEntry, adVqmCallHistDscp=adVqmCallHistDscp, MOSvalue=MOSvalue, adVqmCallHistJbCfgNom=adVqmCallHistJbCfgNom, adVqmActCallFrom=adVqmActCallFrom, adVqmSysCallHistoryGood=adVqmSysCallHistoryGood, adVqmEndPointNumberCompletedCalls=adVqmEndPointNumberCompletedCalls, adVqmSysCallHistoryFair=adVqmSysCallHistoryFair, adVqmThresholdLossNotice=adVqmThresholdLossNotice, adVqmCallHistBurstLenAvgPkts=adVqmCallHistBurstLenAvgPkts, adVqmSysActivePoor=adVqmSysActivePoor, adVqmActCallLateThresholdPc=adVqmActCallLateThresholdPc, adVqmActCallSsrcid=adVqmActCallSsrcid, adVqmIfcMosLqMinimum=adVqmIfcMosLqMinimum, adVqmCallHistRG107=adVqmCallHistRG107, adVqmCallHistRtDelayMaximum=adVqmCallHistRtDelayMaximum, adVqmActCallDegVocoder=adVqmActCallDegVocoder, adVqmIfcRG107Maximum=adVqmIfcRG107Maximum, adVqmEndPointInterfaceId=adVqmEndPointInterfaceId, adVqmCallHistTermDelayMinimum=adVqmCallHistTermDelayMinimum, adVQMEndPoint=adVQMEndPoint, adVqmCallHistPpdvMsec=adVqmCallHistPpdvMsec, adVqmCfgJitterBufferFixedSize=adVqmCfgJitterBufferFixedSize, adVqmActCallDegDelay=adVqmActCallDegDelay, adGenAOSVqmFullCompliance=adGenAOSVqmFullCompliance, adVqmIfcMosCqMaximum=adVqmIfcMosCqMaximum, adVqmActCallGapLenPkts=adVqmActCallGapLenPkts, adVqmActCallOutOfOrder=adVqmActCallOutOfOrder, adVqmActCallExtRLqIn=adVqmActCallExtRLqIn, adVqmCallHistFrom=adVqmCallHistFrom, adVQMActive=adVQMActive, adVqmCallHistTermDelayAverage=adVqmCallHistTermDelayAverage, adVqmIfcMosCqAverage=adVqmIfcMosCqAverage, adVqmCfgEnable=adVqmCfgEnable, adVqmActCallJbCfgMin=adVqmActCallJbCfgMin, adVqmActCallPktsLostTotal=adVqmActCallPktsLostTotal, adVqmActCallExcessBurst=adVqmActCallExcessBurst, adVqmCfgJitterBufferThresholdEarlyMs=adVqmCfgJitterBufferThresholdEarlyMs, MsecValue=MsecValue, adVqmActCallRLq=adVqmActCallRLq, adVqmActCallMosLq=adVqmActCallMosLq, adVqmThresholdJitterInfo=adVqmThresholdJitterInfo, adVqmCallHistTo=adVqmCallHistTo, adVqmCfgJitterBufferAdaptiveMin=adVqmCfgJitterBufferAdaptiveMin, adVqmSysActiveExcellent=adVqmSysActiveExcellent, adVqmActCallPdvMaximumMs=adVqmActCallPdvMaximumMs, adVqmActCallDelayCurrentMsec=adVqmActCallDelayCurrentMsec, adVqmCallHistDelayDecreaseCount=adVqmCallHistDelayDecreaseCount, adVqmCallHistEarlyPkts=adVqmCallHistEarlyPkts, adVqmActCallOrigDelayMaximum=adVqmActCallOrigDelayMaximum, adVQMCfg=adVQMCfg, adVqmCfgJitterBufferAdaptiveNominal=adVqmCfgJitterBufferAdaptiveNominal, adVqmIfcRG107Minimum=adVqmIfcRG107Minimum, adVqmIfcRG107Average=adVqmIfcRG107Average, adVqmActCallJitterBufferType=adVqmActCallJitterBufferType, adVqmCallHistRtDelayInst=adVqmCallHistRtDelayInst, adVqmEndPointNumberStreamsExcellent=adVqmEndPointNumberStreamsExcellent, adGenAOSVQMMib=adGenAOSVQMMib, adVqmActCallGapLossRateAvg=adVqmActCallGapLossRateAvg, adVqmThresholdPqmosWarning=adVqmThresholdPqmosWarning, adVqmCallHistBitrate=adVqmCallHistBitrate, adVqmCallHistExcessBurst=adVqmCallHistExcessBurst, adVqmCallHistOrigDelayMaximum=adVqmCallHistOrigDelayMaximum, adVqmCallHistLateUnderThresh=adVqmCallHistLateUnderThresh, adVqmCallHistDegVocoder=adVqmCallHistDegVocoder, adVqmActCallBurstLenAvgPkts=adVqmActCallBurstLenAvgPkts, adVqmActCallCodec=adVqmActCallCodec, adVqmActCallRNominal=adVqmActCallRNominal, adVqmActCallCallid=adVqmActCallCallid, adVqmCallHistDelayAvgMsec=adVqmCallHistDelayAvgMsec, adVqmThresholdPqmosError=adVqmThresholdPqmosError, adVQMInterface=adVQMInterface, adVqmActCallResyncCount=adVqmActCallResyncCount, adVqmActCallLateThresholdMs=adVqmActCallLateThresholdMs, adVqmActCallOverrunDiscardPkts=adVqmActCallOverrunDiscardPkts, adVqmActCallTermDelayMaximum=adVqmActCallTermDelayMaximum, adVqmCallHistRtpSourceIp=adVqmCallHistRtpSourceIp, adVqmCallHistRtDelayAverage=adVqmCallHistRtDelayAverage, adVqmCallHistBurstRLq=adVqmCallHistBurstRLq, adVqmTrapEventType=adVqmTrapEventType, adVqmActCallDegRecency=adVqmActCallDegRecency, adVqmActCallMosNominal=adVqmActCallMosNominal, adVqmActCallDelayIncreaseCount=adVqmActCallDelayIncreaseCount, adVqmCallHistSsrcid=adVqmCallHistSsrcid, adVqmThresholdPqmosNotice=adVqmThresholdPqmosNotice, adVqmActCallSourceIntDescription=adVqmActCallSourceIntDescription, adVqmActCallBurstRLq=adVqmActCallBurstRLq, adVqmCallHistThroughPutIndex=adVqmCallHistThroughPutIndex, adVqmActCallRCq=adVqmActCallRCq, adVqmCallHistDegRecency=adVqmCallHistDegRecency, adVqmActCallOrigDelayAverage=adVqmActCallOrigDelayAverage, adVqmIfcDelayMinMsec=adVqmIfcDelayMinMsec, adVqmCfgClearCallHistory=adVqmCfgClearCallHistory, adVqmThresholdJitterNotice=adVqmThresholdJitterNotice, adVqmActCallPktsRcvdTotal=adVqmActCallPktsRcvdTotal, adVqmCallHistCallStart=adVqmCallHistCallStart, adVqmActCallPpdvMsec=adVqmActCallPpdvMsec, adVqmIfcDiscardsMaximum=adVqmIfcDiscardsMaximum, adVqmCallHistPktsLostTotal=adVqmCallHistPktsLostTotal, adVqmActCallDelayMinMsec=adVqmActCallDelayMinMsec, adVqmCallHistSourceIntName=adVqmCallHistSourceIntName, adVqmActCallJbCfgMax=adVqmActCallJbCfgMax, adVqmCfgHistoryThresholdJitter=adVqmCfgHistoryThresholdJitter, adVqmCfgCallHistorySize=adVqmCfgCallHistorySize, adVqmSysCallHistoryCalls=adVqmSysCallHistoryCalls, adVqmCallHistExtRLqOut=adVqmCallHistExtRLqOut, adVqmCallHistBurstCount=adVqmCallHistBurstCount, adVqmCfgHistoryThresholdLqmos=adVqmCfgHistoryThresholdLqmos, adVQMActiveCallGroup=adVQMActiveCallGroup, adVqmThresholdOutOfOrderWarning=adVqmThresholdOutOfOrderWarning, adVqmCallHistEarlyPeakJitterMs=adVqmCallHistEarlyPeakJitterMs, adVqmCallHistDelayMaxMsec=adVqmCallHistDelayMaxMsec, adVqmIfcTerminatedCalls=adVqmIfcTerminatedCalls, adVqmCfgJitterBufferType=adVqmCfgJitterBufferType, adVqmThresholdPqmosInfo=adVqmThresholdPqmosInfo, adVqmCallHistPdvMaximumMs=adVqmCallHistPdvMaximumMs, adVqmActCallDestIntName=adVqmActCallDestIntName, adVqmSysAllCallsPoor=adVqmSysAllCallsPoor, adVqmActCallDegSiglvl=adVqmActCallDegSiglvl, adVqmIfcPktsLost=adVqmIfcPktsLost, adVqmCallHistPktsRcvdTotal=adVqmCallHistPktsRcvdTotal, adVqmActCallReliabilityIndex=adVqmActCallReliabilityIndex, adVqmThresholdOutOfOrderError=adVqmThresholdOutOfOrderError, adVqmCallHistOnewayDelayMaximum=adVqmCallHistOnewayDelayMaximum, adVqmCallHistLateThresholdPc=adVqmCallHistLateThresholdPc, adVqmIfcRLqAverage=adVqmIfcRLqAverage, adVqmCallHistDegEcholvl=adVqmCallHistDegEcholvl, adVqmActCallSourceIntName=adVqmActCallSourceIntName, adVqmIfcDiscardsAverage=adVqmIfcDiscardsAverage, adVqmIfcMosPqMaximum=adVqmIfcMosPqMaximum, adVqmCallHistUnderrunDiscardPkts=adVqmCallHistUnderrunDiscardPkts, adVQMSysPerf=adVQMSysPerf, adVQM=adVQM, adVqmActCallBitrate=adVqmActCallBitrate, adVqmCfgJitterBufferThresholdLateMs=adVqmCfgJitterBufferThresholdLateMs, adVqmActCallOrigDelayInst=adVqmActCallOrigDelayInst, adVqmEndPointMosLqAverage=adVqmEndPointMosLqAverage, adVqmActCallRtDelayMaximum=adVqmActCallRtDelayMaximum, adVqmActCallOnewayDelayInst=adVqmActCallOnewayDelayInst, adVqmIfcPdvMaximumMs=adVqmIfcPdvMaximumMs, adVqmIfcNumberStreamsFair=adVqmIfcNumberStreamsFair, adVqmActCallUnderrunDiscardPkts=adVqmActCallUnderrunDiscardPkts, adVqmActCallDegDiscard=adVqmActCallDegDiscard, adVqmActCallTo=adVqmActCallTo, adVqmActCallPdvAverageMs=adVqmActCallPdvAverageMs, adVqmCallHistTermDelayMaximum=adVqmCallHistTermDelayMaximum, adVqmEndPointMosPqAverage=adVqmEndPointMosPqAverage, adGenAOSVqmConformance=adGenAOSVqmConformance, adVqmIfcMosLqAverage=adVqmIfcMosLqAverage, adVqmSysCallHistoryPoor=adVqmSysCallHistoryPoor, adVqmIfcMosPqMinimum=adVqmIfcMosPqMinimum, adVqmActCallGapR=adVqmActCallGapR, adVqmCallHistRtpSourcePort=adVqmCallHistRtpSourcePort, adVqmIfcLossMaximum=adVqmIfcLossMaximum, adVqmIfcRCqAverage=adVqmIfcRCqAverage, adVqmCallHistGapCount=adVqmCallHistGapCount, adVqmActCallRG107=adVqmActCallRG107)
mibBuilder.exportSymbols('ADTRAN-AOS-VQM', adVqmCallHistDegDiscard=adVqmCallHistDegDiscard, adVqmCallHistBurstRateAvg=adVqmCallHistBurstRateAvg, adVqmIfcName=adVqmIfcName, adVqmCallHistOnewayDelayInst=adVqmCallHistOnewayDelayInst, adVQMActiveCallTable=adVQMActiveCallTable, adVqmCallHistOrigDelayInst=adVqmCallHistOrigDelayInst, adVqmIfcNumberStreamsPoor=adVqmIfcNumberStreamsPoor, adVQMTrapGroup=adVQMTrapGroup, adVqmEndPointMosPqMinimum=adVqmEndPointMosPqMinimum, adVQMEndPointGroup=adVQMEndPointGroup, adVqmEndPointRtpSourceIp=adVqmEndPointRtpSourceIp, adVqmActCallRtpSourceUri=adVqmActCallRtpSourceUri, adVqmCallHistEarlyUnderThresh=adVqmCallHistEarlyUnderThresh, adVqmIfcNumberStreamsGood=adVqmIfcNumberStreamsGood, adVqmCallHistLateTotalCount=adVqmCallHistLateTotalCount, adVqmCallHistDestIntDescription=adVqmCallHistDestIntDescription, adVqmCfgHistoryThresholdCqmos=adVqmCfgHistoryThresholdCqmos, adVqmCfgInternationalCode=adVqmCfgInternationalCode, adVqmCfgJitterBufferAdaptiveMax=adVqmCfgJitterBufferAdaptiveMax, adVqmCallHistOutOfOrder=adVqmCallHistOutOfOrder, adVqmCallHistRNominal=adVqmCallHistRNominal, adVqmCallHistJbCfgMax=adVqmCallHistJbCfgMax, adVqmCfgHistoryThresholdOutOfOrder=adVqmCfgHistoryThresholdOutOfOrder, adVqmActCallDelayMaxMsec=adVqmActCallDelayMaxMsec, adVqmActCallCallDurationMs=adVqmActCallCallDurationMs, adVqmIfcPktsDiscarded=adVqmIfcPktsDiscarded, adVQMNotificationGroup=adVQMNotificationGroup, adVqmActCallRtpDestPort=adVqmActCallRtpDestPort, adVQMHistory=adVQMHistory, adVqmIfcDelayAvgMsec=adVqmIfcDelayAvgMsec, adVqmActCallLateTotalCount=adVqmActCallLateTotalCount, adVqmActCallCodecClass=adVqmActCallCodecClass, adVQMThreshold=adVQMThreshold, adVqmIfcPktsOoo=adVqmIfcPktsOoo, adVqmActCallBurstLenAvgMsec=adVqmActCallBurstLenAvgMsec, adVqmActCallBurstCount=adVqmActCallBurstCount, adVqmSysAllCallsFair=adVqmSysAllCallsFair, adVqmIfcId=adVqmIfcId, adVqmTrapState=adVqmTrapState, adVqmCallHistRCq=adVqmCallHistRCq, Percentage=Percentage, adVqmIfcNumberStreamsExcellent=adVqmIfcNumberStreamsExcellent, adVqmActCallOnewayDelayMaximum=adVqmActCallOnewayDelayMaximum, adVqmActCallPktsDiscardedTotal=adVqmActCallPktsDiscardedTotal, adVqmCallHistSourceIntDescription=adVqmCallHistSourceIntDescription, adVqmIfcMosCqMinimum=adVqmIfcMosCqMinimum, adVqmCallHistDuplicatePkts=adVqmCallHistDuplicatePkts, PYSNMP_MODULE_ID=adGenAOSVQMMib, adVqmCallHistLatePkts=adVqmCallHistLatePkts, adVqmCallHistOverrunDiscardPkts=adVqmCallHistOverrunDiscardPkts, adVqmActCallDuplicatePkts=adVqmActCallDuplicatePkts, adVqmCfgRoundTripPingEnabled=adVqmCfgRoundTripPingEnabled, adVQMCallHistoryGroup=adVQMCallHistoryGroup, adVqmActCallExtRLqOut=adVqmActCallExtRLqOut, adVqmCallHistExtRCqIn=adVqmCallHistExtRCqIn, adVqmIfcPdvAverageMs=adVqmIfcPdvAverageMs, adVqmIfcClear=adVqmIfcClear, adVqmIfcRLqMinimum=adVqmIfcRLqMinimum, adVqmEndPointPktsLostTotal=adVqmEndPointPktsLostTotal, adVqmThresholdLossWarning=adVqmThresholdLossWarning, adVqmIfcMosPqAverage=adVqmIfcMosPqAverage, adVqmActCallLossRateAvg=adVqmActCallLossRateAvg, adVqmIfcNumberActiveCalls=adVqmIfcNumberActiveCalls, adVqmEndPointMosPqMaximum=adVqmEndPointMosPqMaximum, adVqmCallHistExtRLqIn=adVqmCallHistExtRLqIn, adVqmCallHistDegLoss=adVqmCallHistDegLoss, adVqmCallHistGapR=adVqmCallHistGapR, adVqmEndPointNumberStreamsGood=adVqmEndPointNumberStreamsGood, adVqmActCallRtDelayAverage=adVqmActCallRtDelayAverage, adVqmSysAllCallsGood=adVqmSysAllCallsGood, adVqmEndPointPktsOutOfOrder=adVqmEndPointPktsOutOfOrder, adVqmActCallGapCount=adVqmActCallGapCount, adVqmCallHistGapLenMsec=adVqmCallHistGapLenMsec, adVQMSysPerfGroup=adVQMSysPerfGroup, adVqmActCallDestIntDescription=adVqmActCallDestIntDescription, adVqmActCallMosCq=adVqmActCallMosCq, adVqmActCallNetworkLossAvg=adVqmActCallNetworkLossAvg, adVqmActCallThroughPutIndex=adVqmActCallThroughPutIndex, adVqmActCallEarlyPkts=adVqmActCallEarlyPkts, adVqmCallHistCallid=adVqmCallHistCallid, adVqmEndPointNumberStreamsFair=adVqmEndPointNumberStreamsFair, adVqmCallHistResyncCount=adVqmCallHistResyncCount, adVqmCallHistDelayCurrentMsec=adVqmCallHistDelayCurrentMsec, adVqmCallHistRtpDestPort=adVqmCallHistRtpDestPort, adVqmActCallEarlyPeakJitterMs=adVqmActCallEarlyPeakJitterMs, adVQMEndPointTable=adVQMEndPointTable, adVqmActCallRtpSourceIp=adVqmActCallRtpSourceIp, adVqmActCallEarlyTotalCount=adVqmActCallEarlyTotalCount, adGenAOSVqmGroups=adGenAOSVqmGroups, adVqmThresholdLqmosNotice=adVqmThresholdLqmosNotice, adVqmSysActiveCalls=adVqmSysActiveCalls, adVqmSysAllCallsExcellent=adVqmSysAllCallsExcellent, adVqmThresholdJitterError=adVqmThresholdJitterError, adVqmCfgClear=adVqmCfgClear, adVqmCallHistEarlyTotalCount=adVqmCallHistEarlyTotalCount, adVQMInterfaceEntry=adVQMInterfaceEntry, adVqmCallHistPdvAverageMs=adVqmCallHistPdvAverageMs, adVqmCallHistNetworkLossAvg=adVqmCallHistNetworkLossAvg, adVqmCallHistLatePeakJitterMs=adVqmCallHistLatePeakJitterMs, adVqmIfcLossMinimum=adVqmIfcLossMinimum, adVqmCallHistCodec=adVqmCallHistCodec, adVqmCallHistCcmid=adVqmCallHistCcmid, adVqmCallHistJbCfgMin=adVqmCallHistJbCfgMin, adVqmCfgRoundTripPingType=adVqmCfgRoundTripPingType, adVqmCallHistGapLossRateAvg=adVqmCallHistGapLossRateAvg, adVQMCallHistoryEntry=adVQMCallHistoryEntry) |
def fahrenheit(T):
return (float(9.0) / 5) * T + 32
print(fahrenheit(0))
temp = [0, 22.5, 40, 100]
print(map(fahrenheit, temp)) # ?????????????? <map object at 0x00000214D009E080>
c = map(lambda T: (9.0 / 5) * T + 32, temp)
print(c) # <map object at 0x00000214D009E080>
print(lambda x, y: x + y)
a = [1, 2, 3]
b = [4, 5, 6]
c = [7, 8, 9]
print(map(lambda x, y: x + y, a, b))
print(map(lambda num: num *- 1,a))
| def fahrenheit(T):
return float(9.0) / 5 * T + 32
print(fahrenheit(0))
temp = [0, 22.5, 40, 100]
print(map(fahrenheit, temp))
c = map(lambda T: 9.0 / 5 * T + 32, temp)
print(c)
print(lambda x, y: x + y)
a = [1, 2, 3]
b = [4, 5, 6]
c = [7, 8, 9]
print(map(lambda x, y: x + y, a, b))
print(map(lambda num: num * -1, a)) |
def j(n, k):
p, i, seq = list(range(n)), 0, []
while p:
i = (i+k-1) % len(p)
seq.append(p.pop(i))
return 'Prisoner killing order: %s.\nSurvivor: %i' % (', '.join(str(i) for i in seq[:-1]), seq[-1])
print(j(5, 2))
print(j(41, 3))
| def j(n, k):
(p, i, seq) = (list(range(n)), 0, [])
while p:
i = (i + k - 1) % len(p)
seq.append(p.pop(i))
return 'Prisoner killing order: %s.\nSurvivor: %i' % (', '.join((str(i) for i in seq[:-1])), seq[-1])
print(j(5, 2))
print(j(41, 3)) |
rfile = open("dictionary.txt", "r")
wfile = open("dict-5.txt","w")
for line in rfile:
if len(line) == 6:
wfile.write(line) | rfile = open('dictionary.txt', 'r')
wfile = open('dict-5.txt', 'w')
for line in rfile:
if len(line) == 6:
wfile.write(line) |
"""Functions for prediction table creation and operations."""
def format_data():
pass
def create_table(db, prediction_data):
pass
def insert():
pass
| """Functions for prediction table creation and operations."""
def format_data():
pass
def create_table(db, prediction_data):
pass
def insert():
pass |
class Solution:
def solve(self, matrix):
leaders = {(r,c):(r,c) for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1}
followers = {(r,c):[(r,c)] for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1}
for r in range(len(matrix)):
latest = None
for c in range(len(matrix[0])):
if matrix[r][c] == 0:
continue
if latest is None:
latest = (r,c)
continue
new_leader = leaders[latest]
old_leader = leaders[r,c]
latest = (r,c)
if new_leader == old_leader:
continue
if len(followers[new_leader]) < len(followers[old_leader]):
new_leader, old_leader = old_leader, new_leader
for follower in followers[old_leader]:
leaders[follower] = new_leader
followers[new_leader].append(follower)
followers[old_leader] = []
for c in range(len(matrix[0])):
latest = None
for r in range(len(matrix)):
if matrix[r][c] == 0:
continue
if latest is None:
latest = (r,c)
continue
new_leader = leaders[latest]
old_leader = leaders[r,c]
latest = (r,c)
if new_leader == old_leader:
continue
if len(followers[new_leader]) < len(followers[old_leader]):
new_leader, old_leader = old_leader, new_leader
for follower in followers[old_leader]:
leaders[follower] = new_leader
followers[new_leader].append(follower)
followers[old_leader] = []
return len(set(leaders.values()))
| class Solution:
def solve(self, matrix):
leaders = {(r, c): (r, c) for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1}
followers = {(r, c): [(r, c)] for r in range(len(matrix)) for c in range(len(matrix[0])) if matrix[r][c] == 1}
for r in range(len(matrix)):
latest = None
for c in range(len(matrix[0])):
if matrix[r][c] == 0:
continue
if latest is None:
latest = (r, c)
continue
new_leader = leaders[latest]
old_leader = leaders[r, c]
latest = (r, c)
if new_leader == old_leader:
continue
if len(followers[new_leader]) < len(followers[old_leader]):
(new_leader, old_leader) = (old_leader, new_leader)
for follower in followers[old_leader]:
leaders[follower] = new_leader
followers[new_leader].append(follower)
followers[old_leader] = []
for c in range(len(matrix[0])):
latest = None
for r in range(len(matrix)):
if matrix[r][c] == 0:
continue
if latest is None:
latest = (r, c)
continue
new_leader = leaders[latest]
old_leader = leaders[r, c]
latest = (r, c)
if new_leader == old_leader:
continue
if len(followers[new_leader]) < len(followers[old_leader]):
(new_leader, old_leader) = (old_leader, new_leader)
for follower in followers[old_leader]:
leaders[follower] = new_leader
followers[new_leader].append(follower)
followers[old_leader] = []
return len(set(leaders.values())) |
def countValues(values):
resultSet = {-1:0, 0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, 10:0, 11:0}
for value in values:
i = 0
valuesList = list(value)
while i < len(valuesList):
resultSet[i] += int(valuesList[i])
i += 1
resultSet[-1] += 1
return resultSet
def selectByPos(values, pos, selector):
newValues = []
for value in values:
if list(value)[pos] is selector:
newValues.append(value)
if len(newValues) is 0:
return values
else:
return newValues
file = open('data/day3.txt', 'r')
values = []
for line in file.readlines():
values.append(line.rstrip("\n"))
resultSet = countValues(values)
i = 0
oxList = values.copy()
while i < len(oxList[0]):
counter = countValues(oxList)
selector = "1"
if counter[i] < (counter[-1]/2):
selector = "0"
oxList = selectByPos(oxList, i, selector)
i += 1
oxygen = int(oxList[0], 2)
i = 0
co2List = values.copy()
while i < len(co2List[0]):
counter = countValues(co2List)
selector = "0"
if counter[i] < (counter[-1]/2):
selector = "1"
co2List = selectByPos(co2List, i, selector)
i += 1
co2 = int(co2List[0], 2)
gammaRate = ""
epsilonRate = ""
i = 0
while i < 12:
if resultSet[i] > (resultSet[-1]/2):
gammaRate += "1"
epsilonRate += "0"
else:
gammaRate += "0"
epsilonRate += "1"
i += 1
gammaRateInt = int(gammaRate, 2)
epsilonRateInt = int(epsilonRate, 2)
print("Gamma:" + str(gammaRateInt) + "\nEpsilon:" + str(epsilonRateInt) + "\nOxigen" + str(oxygen) + "\nco2:" + str(co2) + "\nPowerConsumption: " + str(gammaRateInt * epsilonRateInt) + "\nLifeSupport Rating:" + str(co2 * oxygen)) | def count_values(values):
result_set = {-1: 0, 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0}
for value in values:
i = 0
values_list = list(value)
while i < len(valuesList):
resultSet[i] += int(valuesList[i])
i += 1
resultSet[-1] += 1
return resultSet
def select_by_pos(values, pos, selector):
new_values = []
for value in values:
if list(value)[pos] is selector:
newValues.append(value)
if len(newValues) is 0:
return values
else:
return newValues
file = open('data/day3.txt', 'r')
values = []
for line in file.readlines():
values.append(line.rstrip('\n'))
result_set = count_values(values)
i = 0
ox_list = values.copy()
while i < len(oxList[0]):
counter = count_values(oxList)
selector = '1'
if counter[i] < counter[-1] / 2:
selector = '0'
ox_list = select_by_pos(oxList, i, selector)
i += 1
oxygen = int(oxList[0], 2)
i = 0
co2_list = values.copy()
while i < len(co2List[0]):
counter = count_values(co2List)
selector = '0'
if counter[i] < counter[-1] / 2:
selector = '1'
co2_list = select_by_pos(co2List, i, selector)
i += 1
co2 = int(co2List[0], 2)
gamma_rate = ''
epsilon_rate = ''
i = 0
while i < 12:
if resultSet[i] > resultSet[-1] / 2:
gamma_rate += '1'
epsilon_rate += '0'
else:
gamma_rate += '0'
epsilon_rate += '1'
i += 1
gamma_rate_int = int(gammaRate, 2)
epsilon_rate_int = int(epsilonRate, 2)
print('Gamma:' + str(gammaRateInt) + '\nEpsilon:' + str(epsilonRateInt) + '\nOxigen' + str(oxygen) + '\nco2:' + str(co2) + '\nPowerConsumption: ' + str(gammaRateInt * epsilonRateInt) + '\nLifeSupport Rating:' + str(co2 * oxygen)) |
expected_output = {
"flow_drop": {
"inspect-fail": 67870,
"last_clearing": "10:43:33 EDT Mar 27 2019 by genie",
"nat-failed": 528,
"ssl-received-close-alert": 9,
},
"frame_drop": {
"acl-drop": 29,
"l2_acl": 35,
"last_clearing": "10:43:33 EDT Mar 27 2019 by genie",
"no-mcast-intrf": 31,
"rpf-violated": 23,
"sp-security-failed": 11,
},
}
| expected_output = {'flow_drop': {'inspect-fail': 67870, 'last_clearing': '10:43:33 EDT Mar 27 2019 by genie', 'nat-failed': 528, 'ssl-received-close-alert': 9}, 'frame_drop': {'acl-drop': 29, 'l2_acl': 35, 'last_clearing': '10:43:33 EDT Mar 27 2019 by genie', 'no-mcast-intrf': 31, 'rpf-violated': 23, 'sp-security-failed': 11}} |
#O(n^2) Time / O(n) Space
def threeNumberSum(arr,targetSum):
triplets=[]
arr.sort()
for i in range(len(arr)-2):
left=i+1
right=len(arr)-1
while(left<right):
currentSum=arr[i]+arr[left]+arr[right]
if currentSum==targetSum:
triplets.append([arr[i],arr[left],arr[right]])
left+=1
right-=1
elif currentSum<targetSum:
left+=1
else:
right-=1
return triplets
| def three_number_sum(arr, targetSum):
triplets = []
arr.sort()
for i in range(len(arr) - 2):
left = i + 1
right = len(arr) - 1
while left < right:
current_sum = arr[i] + arr[left] + arr[right]
if currentSum == targetSum:
triplets.append([arr[i], arr[left], arr[right]])
left += 1
right -= 1
elif currentSum < targetSum:
left += 1
else:
right -= 1
return triplets |
Space = " "
class Solution:
def lengthOfLastWord(self, s: str) -> int:
found_word = False
word_length = 0
for i in range(len(s) - 1, -1, -1):
letter = s[i]
if letter == Space:
if found_word:
break
else:
continue
else:
found_word = True
word_length += 1
return word_length
| space = ' '
class Solution:
def length_of_last_word(self, s: str) -> int:
found_word = False
word_length = 0
for i in range(len(s) - 1, -1, -1):
letter = s[i]
if letter == Space:
if found_word:
break
else:
continue
else:
found_word = True
word_length += 1
return word_length |
action_space={'11':0,'12':1,'13':2,'14':3,'15':4,'21':5,'22':6,'23':7,'24':8,'25':9,'31':10,'32':11,'33':12,'34':13,'35':14,'41':15,'42':16,'43':17,'44':18,'45':19,'51':20,'52':21,'53':22,'54':23,'55':24,'1112':25,'1121':26,'1122':27,'1113':28,'1131':29,'1133':30,'1213':31,'1211':32,'1222':33,'1232':34,'1214':35,'1312':36,'1314':37,'1323':38,'1322':39,'1324':40,'1333':41,'1331':42,'1315':43,'1311':44,'1335':45,'1415':46,'1413':47,'1424':48,'1412':49,'1434':50,'1525':51,'1524':52,'1514':53,'1513':54,'1533':55,'1535':56,'2131':57,'2111':58,'2122':59,'2141':60,'2123':61,'2212':62,'2232':63,'2213':64,'2233':65,'2231':66,'2221':67,'2223':68,'2211':69,'2242':70,'2244':71,'2224':72,'2324':73,'2313':74,'2333':75,'2322':76,'2325':77,'2321':78,'2343':79,'2413':80,'2433':81,'2414':82,'2415':83,'2423':84,'2425':85,'2434':86,'2435':87,'2442':88,'2444':89,'2422':90,'2515':91,'2524':92,'2535':93,'2545':94,'2523':95,'3132':96,'3121':97,'3122':98,'3142':99,'3141':100,'3113':101,'3133':102,'3151':103,'3111':104,'3153':105,'3242':106,'3231':107,'3233':108,'3222':109,'3212':110,'3234':111,'3252':112,'3332':113,'3344':114,'3323':115,'3343':116,'3322':117,'3342':118,'3334':119,'3324':120,'3313':121,'3355':122,'3331':123,'3315':124,'3353':125,'3351':126,'3311':127,'3335':128,'3424':129,'3444':130,'3433':131,'3435':132,'3454':133,'3432':134,'3414':135,'3545':136,'3544':137,'3525':138,'3534':139,'3524':140,'3513':141,'3555':142,'3533':143,'3515':144,'3553':145,'4142':146,'4151':147,'4131':148,'4143':149,'4121':150,'4232':151,'4241':152,'4233':153,'4231':154,'4243':155,'4251':156,'4252':157,'4253':158,'4244':159,'4224':160,'4222':161,'4342':162,'4344':163,'4333':164,'4353':165,'4345':166,'4341':167,'4323':168,'4454':169,'4433':170,'4455':171,'4445':172,'4443':173,'4453':174,'4434':175,'4435':176,'4442':177,'4424':178,'4422':179,'4544':180,'4555':181,'4535':182,'4525':183,'4543':184,'5142':185,'5141':186,'5152':187,'5131':188,'5133':189,'5153':190,'5242':191,'5251':192,'5253':193,'5254':194,'5232':195,'5354':196,'5344':197,'5343':198,'5342':199,'5352':200,'5355':201,'5333':202,'5331':203,'5351':204,'5335':205,'5444':206,'5455':207,'5453':208,'5434':209,'5452':210,'5545':211,'5554':212,'5544':213,'5535':214,'5533':215,'5553':216}
reversed_action_space={v:k for k,v in action_space.items()}
action_list=list(action_space.keys())
bagh_moves_dict={(1,1):{(1,3),(3,1),(3,3)},(1,2):{(3,2),(1,4)},(1,3):{(3,3),(3,1),(1,5),(1,1),(3,5)},(1,4):{(1,2),(3,4)},(1,5):{(1,3),(3,3),(3,5)},(2,1):{(4,1),(2,3)},(2,2):{(4,2),(4,4),(2,4)},(2,3):{(2,5),(2,1),(4,3)},(2,4):{(4,2),(4,4),(2,2)},(2,5):{(4,5),(2,3)},(3,1):{(1,3),(3,3),(5,1),(1,1),(5,3)},(3,2):{(1,2),(3,4),(5,2)},(3,3):{(1,3),(5,5),(3,1),(1,5),(5,3),(5,1),(1,1),(3,5)},(3,4):{(5,4),(3,2),(1,4)},(3,5):{(1,3),(5,5),(3,3),(1,5),(5,3)},(4,1):{(4,3),(2,1)},(4,2):{(4,4),(2,4),(2,2)},(4,3):{(4,5),(4,1),(2,3)},(4,4):{(4,2),(2,4),(2,2)},(4,5):{(2,5),(4,3)},(5,1):{(3,1),(3,3),(5,3)},(5,2):{(5,4),(3,2)},(5,3):{(5,5),(3,3),(3,1),(5,1),(3,5)},(5,4):{(3,4),(5,2)},(5,5):{(3,5),(3,3),(5,3)}}
connected_points_dict={(1,1):{(1,2),(2,1),(2,2)},(1,2):{(1,3),(1,1),(2,2)},(1,3):{(1,2),(1,4),(2,3),(2,2),(2,4)},(1,4):{(1,5),(1,3),(2,4)},(1,5):{(2,5),(2,4),(1,4)},(2,1):{(3,1),(1,1),(2,2)},(2,2):{(1,2),(3,2),(1,3),(3,3),(3,1),(2,1),(2,3),(1,1)},(2,3):{(2,4),(1,3),(3,3),(2,2)},(2,4):{(1,3),(3,3),(1,4),(1,5),(2,3),(2,5),(3,4),(3,5)},(2,5):{(1,5),(2,4),(3,5)},(3,1):{(3,2),(2,1),(2,2),(4,2),(4,1)},(3,2):{(4,2),(3,1),(3,3),(2,2)},(3,3):{(3,2),(4,4),(2,3),(4,3),(2,2),(4,2),(3,4),(2,4)},(3,4):{(2,4),(4,4),(3,3),(3,5)},(3,5):{(4,5),(4,4),(2,5),(3,4),(2,4)},(4,1):{(4,2),(5,1),(3,1)},(4,2):{(3,2),(4,1),(3,3),(3,1),(4,3),(5,1),(5,2),(5,3)},(4,3):{(4,2),(4,4),(3,3),(5,3)},(4,4):{(5,4),(3,3),(5,5),(4,5),(4,3),(5,3),(3,4),(3,5)},(4,5):{(4,4),(5,5),(3,5)},(5,1):{(4,2),(4,1),(5,2)},(5,2):{(4,2),(5,1),(5,3)},(5,3):{(5,4),(4,4),(4,3),(4,2),(5,2)},(5,4):{(4,4),(5,5),(5,3)},(5,5):{(4,5),(5,4),(4,4)}} | action_space = {'11': 0, '12': 1, '13': 2, '14': 3, '15': 4, '21': 5, '22': 6, '23': 7, '24': 8, '25': 9, '31': 10, '32': 11, '33': 12, '34': 13, '35': 14, '41': 15, '42': 16, '43': 17, '44': 18, '45': 19, '51': 20, '52': 21, '53': 22, '54': 23, '55': 24, '1112': 25, '1121': 26, '1122': 27, '1113': 28, '1131': 29, '1133': 30, '1213': 31, '1211': 32, '1222': 33, '1232': 34, '1214': 35, '1312': 36, '1314': 37, '1323': 38, '1322': 39, '1324': 40, '1333': 41, '1331': 42, '1315': 43, '1311': 44, '1335': 45, '1415': 46, '1413': 47, '1424': 48, '1412': 49, '1434': 50, '1525': 51, '1524': 52, '1514': 53, '1513': 54, '1533': 55, '1535': 56, '2131': 57, '2111': 58, '2122': 59, '2141': 60, '2123': 61, '2212': 62, '2232': 63, '2213': 64, '2233': 65, '2231': 66, '2221': 67, '2223': 68, '2211': 69, '2242': 70, '2244': 71, '2224': 72, '2324': 73, '2313': 74, '2333': 75, '2322': 76, '2325': 77, '2321': 78, '2343': 79, '2413': 80, '2433': 81, '2414': 82, '2415': 83, '2423': 84, '2425': 85, '2434': 86, '2435': 87, '2442': 88, '2444': 89, '2422': 90, '2515': 91, '2524': 92, '2535': 93, '2545': 94, '2523': 95, '3132': 96, '3121': 97, '3122': 98, '3142': 99, '3141': 100, '3113': 101, '3133': 102, '3151': 103, '3111': 104, '3153': 105, '3242': 106, '3231': 107, '3233': 108, '3222': 109, '3212': 110, '3234': 111, '3252': 112, '3332': 113, '3344': 114, '3323': 115, '3343': 116, '3322': 117, '3342': 118, '3334': 119, '3324': 120, '3313': 121, '3355': 122, '3331': 123, '3315': 124, '3353': 125, '3351': 126, '3311': 127, '3335': 128, '3424': 129, '3444': 130, '3433': 131, '3435': 132, '3454': 133, '3432': 134, '3414': 135, '3545': 136, '3544': 137, '3525': 138, '3534': 139, '3524': 140, '3513': 141, '3555': 142, '3533': 143, '3515': 144, '3553': 145, '4142': 146, '4151': 147, '4131': 148, '4143': 149, '4121': 150, '4232': 151, '4241': 152, '4233': 153, '4231': 154, '4243': 155, '4251': 156, '4252': 157, '4253': 158, '4244': 159, '4224': 160, '4222': 161, '4342': 162, '4344': 163, '4333': 164, '4353': 165, '4345': 166, '4341': 167, '4323': 168, '4454': 169, '4433': 170, '4455': 171, '4445': 172, '4443': 173, '4453': 174, '4434': 175, '4435': 176, '4442': 177, '4424': 178, '4422': 179, '4544': 180, '4555': 181, '4535': 182, '4525': 183, '4543': 184, '5142': 185, '5141': 186, '5152': 187, '5131': 188, '5133': 189, '5153': 190, '5242': 191, '5251': 192, '5253': 193, '5254': 194, '5232': 195, '5354': 196, '5344': 197, '5343': 198, '5342': 199, '5352': 200, '5355': 201, '5333': 202, '5331': 203, '5351': 204, '5335': 205, '5444': 206, '5455': 207, '5453': 208, '5434': 209, '5452': 210, '5545': 211, '5554': 212, '5544': 213, '5535': 214, '5533': 215, '5553': 216}
reversed_action_space = {v: k for (k, v) in action_space.items()}
action_list = list(action_space.keys())
bagh_moves_dict = {(1, 1): {(1, 3), (3, 1), (3, 3)}, (1, 2): {(3, 2), (1, 4)}, (1, 3): {(3, 3), (3, 1), (1, 5), (1, 1), (3, 5)}, (1, 4): {(1, 2), (3, 4)}, (1, 5): {(1, 3), (3, 3), (3, 5)}, (2, 1): {(4, 1), (2, 3)}, (2, 2): {(4, 2), (4, 4), (2, 4)}, (2, 3): {(2, 5), (2, 1), (4, 3)}, (2, 4): {(4, 2), (4, 4), (2, 2)}, (2, 5): {(4, 5), (2, 3)}, (3, 1): {(1, 3), (3, 3), (5, 1), (1, 1), (5, 3)}, (3, 2): {(1, 2), (3, 4), (5, 2)}, (3, 3): {(1, 3), (5, 5), (3, 1), (1, 5), (5, 3), (5, 1), (1, 1), (3, 5)}, (3, 4): {(5, 4), (3, 2), (1, 4)}, (3, 5): {(1, 3), (5, 5), (3, 3), (1, 5), (5, 3)}, (4, 1): {(4, 3), (2, 1)}, (4, 2): {(4, 4), (2, 4), (2, 2)}, (4, 3): {(4, 5), (4, 1), (2, 3)}, (4, 4): {(4, 2), (2, 4), (2, 2)}, (4, 5): {(2, 5), (4, 3)}, (5, 1): {(3, 1), (3, 3), (5, 3)}, (5, 2): {(5, 4), (3, 2)}, (5, 3): {(5, 5), (3, 3), (3, 1), (5, 1), (3, 5)}, (5, 4): {(3, 4), (5, 2)}, (5, 5): {(3, 5), (3, 3), (5, 3)}}
connected_points_dict = {(1, 1): {(1, 2), (2, 1), (2, 2)}, (1, 2): {(1, 3), (1, 1), (2, 2)}, (1, 3): {(1, 2), (1, 4), (2, 3), (2, 2), (2, 4)}, (1, 4): {(1, 5), (1, 3), (2, 4)}, (1, 5): {(2, 5), (2, 4), (1, 4)}, (2, 1): {(3, 1), (1, 1), (2, 2)}, (2, 2): {(1, 2), (3, 2), (1, 3), (3, 3), (3, 1), (2, 1), (2, 3), (1, 1)}, (2, 3): {(2, 4), (1, 3), (3, 3), (2, 2)}, (2, 4): {(1, 3), (3, 3), (1, 4), (1, 5), (2, 3), (2, 5), (3, 4), (3, 5)}, (2, 5): {(1, 5), (2, 4), (3, 5)}, (3, 1): {(3, 2), (2, 1), (2, 2), (4, 2), (4, 1)}, (3, 2): {(4, 2), (3, 1), (3, 3), (2, 2)}, (3, 3): {(3, 2), (4, 4), (2, 3), (4, 3), (2, 2), (4, 2), (3, 4), (2, 4)}, (3, 4): {(2, 4), (4, 4), (3, 3), (3, 5)}, (3, 5): {(4, 5), (4, 4), (2, 5), (3, 4), (2, 4)}, (4, 1): {(4, 2), (5, 1), (3, 1)}, (4, 2): {(3, 2), (4, 1), (3, 3), (3, 1), (4, 3), (5, 1), (5, 2), (5, 3)}, (4, 3): {(4, 2), (4, 4), (3, 3), (5, 3)}, (4, 4): {(5, 4), (3, 3), (5, 5), (4, 5), (4, 3), (5, 3), (3, 4), (3, 5)}, (4, 5): {(4, 4), (5, 5), (3, 5)}, (5, 1): {(4, 2), (4, 1), (5, 2)}, (5, 2): {(4, 2), (5, 1), (5, 3)}, (5, 3): {(5, 4), (4, 4), (4, 3), (4, 2), (5, 2)}, (5, 4): {(4, 4), (5, 5), (5, 3)}, (5, 5): {(4, 5), (5, 4), (4, 4)}} |
#
# PySNMP MIB module Juniper-Fractional-T1-CONF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-Fractional-T1-CONF
# Produced by pysmi-0.3.4 at Mon Apr 29 19:51:59 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, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint")
juniAgents, = mibBuilder.importSymbols("Juniper-Agents", "juniAgents")
AgentCapabilities, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "AgentCapabilities", "ModuleCompliance", "NotificationGroup")
Unsigned32, Bits, iso, TimeTicks, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, MibIdentifier, Counter32, IpAddress, Counter64, Integer32, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Bits", "iso", "TimeTicks", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "MibIdentifier", "Counter32", "IpAddress", "Counter64", "Integer32", "ModuleIdentity")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
juniFractionalT1Agent = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16))
juniFractionalT1Agent.setRevisions(('2002-09-06 16:54', '2001-03-29 22:03',))
if mibBuilder.loadTexts: juniFractionalT1Agent.setLastUpdated('200209061654Z')
if mibBuilder.loadTexts: juniFractionalT1Agent.setOrganization('Juniper Networks, Inc.')
juniFractionalT1AgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniFractionalT1AgentV1 = juniFractionalT1AgentV1.setProductRelease('Version 1 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component was supported in JUNOSe 1.0\n system release.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniFractionalT1AgentV1 = juniFractionalT1AgentV1.setStatus('obsolete')
juniFractionalT1AgentV2 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniFractionalT1AgentV2 = juniFractionalT1AgentV2.setProductRelease('Version 2 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component is supported in JUNOSe 1.1\n and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniFractionalT1AgentV2 = juniFractionalT1AgentV2.setStatus('current')
mibBuilder.exportSymbols("Juniper-Fractional-T1-CONF", PYSNMP_MODULE_ID=juniFractionalT1Agent, juniFractionalT1AgentV2=juniFractionalT1AgentV2, juniFractionalT1Agent=juniFractionalT1Agent, juniFractionalT1AgentV1=juniFractionalT1AgentV1)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_size_constraint, constraints_intersection, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint')
(juni_agents,) = mibBuilder.importSymbols('Juniper-Agents', 'juniAgents')
(agent_capabilities, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'AgentCapabilities', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, bits, iso, time_ticks, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, object_identity, mib_identifier, counter32, ip_address, counter64, integer32, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Bits', 'iso', 'TimeTicks', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ObjectIdentity', 'MibIdentifier', 'Counter32', 'IpAddress', 'Counter64', 'Integer32', 'ModuleIdentity')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
juni_fractional_t1_agent = module_identity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16))
juniFractionalT1Agent.setRevisions(('2002-09-06 16:54', '2001-03-29 22:03'))
if mibBuilder.loadTexts:
juniFractionalT1Agent.setLastUpdated('200209061654Z')
if mibBuilder.loadTexts:
juniFractionalT1Agent.setOrganization('Juniper Networks, Inc.')
juni_fractional_t1_agent_v1 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_fractional_t1_agent_v1 = juniFractionalT1AgentV1.setProductRelease('Version 1 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component was supported in JUNOSe 1.0\n system release.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_fractional_t1_agent_v1 = juniFractionalT1AgentV1.setStatus('obsolete')
juni_fractional_t1_agent_v2 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 16, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_fractional_t1_agent_v2 = juniFractionalT1AgentV2.setProductRelease('Version 2 of the Fractional T1 component of the JUNOSe SNMP agent.\n This version of the Fractional T1 component is supported in JUNOSe 1.1\n and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_fractional_t1_agent_v2 = juniFractionalT1AgentV2.setStatus('current')
mibBuilder.exportSymbols('Juniper-Fractional-T1-CONF', PYSNMP_MODULE_ID=juniFractionalT1Agent, juniFractionalT1AgentV2=juniFractionalT1AgentV2, juniFractionalT1Agent=juniFractionalT1Agent, juniFractionalT1AgentV1=juniFractionalT1AgentV1) |
class Solution(object):
# def singleNumber(self, nums):
# """
# :type nums: List[int]
# :rtype: int
# """
# # hash
# dic = {}
# for num in nums:
# try:
# dic[num] += 1
# except KeyError:
# dic[num] = 1
# for num in nums:
# if dic[num] == 1:
# return num
# def singleNumber(self, nums):
# # set
# s = set()
# for num in nums:
# if num in s:
# s.remove(num)
# else:
# s.add(num)
# return s.pop()
def singleNumber(self, nums):
# xor
res = 0
for num in nums:
res ^= num
return res | class Solution(object):
def single_number(self, nums):
res = 0
for num in nums:
res ^= num
return res |
'''
QUESTION:
455. Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number.
Note:
You may assume the greed factor is always positive.
You cannot assign more than one cookie to one child.
Example 1:
Input: [1,2,3], [1,1]
Output: 1
Explanation: You have 3 children and 2 cookies. The greed factors of 3 children are 1, 2, 3.
And even though you have 2 cookies, since their size is both 1, you could only make the child whose greed factor is 1 content.
You need to output 1.
Example 2:
Input: [1,2], [1,2,3]
Output: 2
Explanation: You have 2 children and 3 cookies. The greed factors of 2 children are 1, 2.
You have 3 cookies and their sizes are big enough to gratify all of the children,
You need to output 2.
'''
class Solution(object):
def findContentChildren(self, g, s):
count = 0
s.sort()
g.sort()
while s and g:
if s[-1] < g[-1]:
g.pop()
elif s[-1] >= g[-1]:
count += 1
s.pop()
g.pop()
return count
'''
Ideas/thoughts:
initially sort the lists.
we can go with way of , keeping continuously checking the last element and removing the last element if satified the condition. popping it and
returningn count.
Time complexity: O(nlogn)
''' | """
QUESTION:
455. Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number.
Note:
You may assume the greed factor is always positive.
You cannot assign more than one cookie to one child.
Example 1:
Input: [1,2,3], [1,1]
Output: 1
Explanation: You have 3 children and 2 cookies. The greed factors of 3 children are 1, 2, 3.
And even though you have 2 cookies, since their size is both 1, you could only make the child whose greed factor is 1 content.
You need to output 1.
Example 2:
Input: [1,2], [1,2,3]
Output: 2
Explanation: You have 2 children and 3 cookies. The greed factors of 2 children are 1, 2.
You have 3 cookies and their sizes are big enough to gratify all of the children,
You need to output 2.
"""
class Solution(object):
def find_content_children(self, g, s):
count = 0
s.sort()
g.sort()
while s and g:
if s[-1] < g[-1]:
g.pop()
elif s[-1] >= g[-1]:
count += 1
s.pop()
g.pop()
return count
'\nIdeas/thoughts:\ninitially sort the lists.\nwe can go with way of , keeping continuously checking the last element and removing the last element if satified the condition. popping it and \nreturningn count.\nTime complexity: O(nlogn)\n\n' |
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def preorderTraversal(self, root: TreeNode) -> List[int]:
if root is None:
return []
val = root.val
left_list = self.preorderTraversal(root.left)
right_list = self.preorderTraversal(root.right)
return [val] + left_list + right_list
def inorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if root is None:
return []
left_list = self.inorderTraversal(root.left)
val = root.val
right_list = self.inorderTraversal(root.right)
return left_list + [val] + right_list
def postorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if root is None:
return []
left_list = self.postorderTraversal(root.left)
right_lift = self.postorderTraversal(root.right)
val = root.val
return left_list + right_lift + [val]
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if root == None:
return []
ans = []
bfs_q = []
bfs_q.append(root)
while bfs_q:
level_items = []
len_q = len(bfs_q)
for i in range(len_q):
pop_node = bfs_q.pop(0)
level_items.append(pop_node.val)
if pop_node.left:
bfs_q.append(pop_node.left)
if pop_node.right:
bfs_q.append(pop_node.right)
ans.append(level_items)
return ans
def maxDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if root == None:
return 0
left_depth = self.maxDepth(root.left)
right_depth = self.maxDepth(root.right)
return max(left_depth, right_depth) + 1
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
def checkSymmetry(left_sub_tree, right_sub_tree):
if left_sub_tree == None and right_sub_tree == None:
return True
elif right_sub_tree is not None and left_sub_tree is not None:
if (left_sub_tree.val == right_sub_tree.val) and checkSymmetry(left_sub_tree.left,
right_sub_tree.right) and checkSymmetry(
left_sub_tree.right, right_sub_tree.left):
return True
return False
if root is None:
return True
return checkSymmetry(root.left, root.right)
def hasPathSum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: bool
"""
if root is None:
return (sum == 0)
else:
subtracted_sum = sum - root.val
if subtracted_sum == 0 and root.left == None and root.right == None:
return True
if root.left is not None:
self.hasPathSum(root.left, subtracted_sum)
if root.right is not None:
self.hasPathSum(root.right, subtracted_sum)
return False
def hasPathSumWithPath(self, root: TreeNode, sum: int) -> bool:
if not root:
return None
stack = []
stack.append((root, 0, []))
while stack:
node, cur_sum, path = stack.pop()
path.append(node)
cur_sum += node.val
if not node.left and not node.right:
if cur_sum == sum:
return True
if node.left:
stack.append((node.left, cur_sum, path[:]))
if node.right:
stack.append((node.right, cur_sum, path[:]))
return False | class Treenode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def preorder_traversal(self, root: TreeNode) -> List[int]:
if root is None:
return []
val = root.val
left_list = self.preorderTraversal(root.left)
right_list = self.preorderTraversal(root.right)
return [val] + left_list + right_list
def inorder_traversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if root is None:
return []
left_list = self.inorderTraversal(root.left)
val = root.val
right_list = self.inorderTraversal(root.right)
return left_list + [val] + right_list
def postorder_traversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if root is None:
return []
left_list = self.postorderTraversal(root.left)
right_lift = self.postorderTraversal(root.right)
val = root.val
return left_list + right_lift + [val]
def level_order(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if root == None:
return []
ans = []
bfs_q = []
bfs_q.append(root)
while bfs_q:
level_items = []
len_q = len(bfs_q)
for i in range(len_q):
pop_node = bfs_q.pop(0)
level_items.append(pop_node.val)
if pop_node.left:
bfs_q.append(pop_node.left)
if pop_node.right:
bfs_q.append(pop_node.right)
ans.append(level_items)
return ans
def max_depth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if root == None:
return 0
left_depth = self.maxDepth(root.left)
right_depth = self.maxDepth(root.right)
return max(left_depth, right_depth) + 1
def is_symmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
def check_symmetry(left_sub_tree, right_sub_tree):
if left_sub_tree == None and right_sub_tree == None:
return True
elif right_sub_tree is not None and left_sub_tree is not None:
if left_sub_tree.val == right_sub_tree.val and check_symmetry(left_sub_tree.left, right_sub_tree.right) and check_symmetry(left_sub_tree.right, right_sub_tree.left):
return True
return False
if root is None:
return True
return check_symmetry(root.left, root.right)
def has_path_sum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: bool
"""
if root is None:
return sum == 0
else:
subtracted_sum = sum - root.val
if subtracted_sum == 0 and root.left == None and (root.right == None):
return True
if root.left is not None:
self.hasPathSum(root.left, subtracted_sum)
if root.right is not None:
self.hasPathSum(root.right, subtracted_sum)
return False
def has_path_sum_with_path(self, root: TreeNode, sum: int) -> bool:
if not root:
return None
stack = []
stack.append((root, 0, []))
while stack:
(node, cur_sum, path) = stack.pop()
path.append(node)
cur_sum += node.val
if not node.left and (not node.right):
if cur_sum == sum:
return True
if node.left:
stack.append((node.left, cur_sum, path[:]))
if node.right:
stack.append((node.right, cur_sum, path[:]))
return False |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]:
trees = defaultdict()
trees.default_factory = trees.__len__
count = Counter()
result = []
def lookup(node):
if node:
uid = trees[node.val, lookup(node.left), lookup(node.right)]
count[uid] += 1
if count[uid] == 2:
result.append(node)
return uid
lookup(root)
return result | class Solution:
def find_duplicate_subtrees(self, root: TreeNode) -> List[TreeNode]:
trees = defaultdict()
trees.default_factory = trees.__len__
count = counter()
result = []
def lookup(node):
if node:
uid = trees[node.val, lookup(node.left), lookup(node.right)]
count[uid] += 1
if count[uid] == 2:
result.append(node)
return uid
lookup(root)
return result |
# Copyright 2017, Optimizely
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class UserProfile(object):
""" Class encapsulating information representing a user's profile.
user_id: User's identifier.
experiment_bucket_map: Dict mapping experiment ID to dict consisting of the
variation ID identifying the variation for the user.
"""
USER_ID_KEY = 'user_id'
EXPERIMENT_BUCKET_MAP_KEY = 'experiment_bucket_map'
VARIATION_ID_KEY = 'variation_id'
def __init__(self, user_id, experiment_bucket_map=None, **kwargs):
self.user_id = user_id
self.experiment_bucket_map = experiment_bucket_map or {}
def __eq__(self, other):
return self.__dict__ == other.__dict__
def get_variation_for_experiment(self, experiment_id):
""" Helper method to retrieve variation ID for given experiment.
Args:
experiment_id: ID for experiment for which variation needs to be looked up for.
Returns:
Variation ID corresponding to the experiment. None if no decision available.
"""
return self.experiment_bucket_map.get(experiment_id, {self.VARIATION_ID_KEY: None}).get(self.VARIATION_ID_KEY)
def save_variation_for_experiment(self, experiment_id, variation_id):
""" Helper method to save new experiment/variation as part of the user's profile.
Args:
experiment_id: ID for experiment for which the decision is to be stored.
variation_id: ID for variation that the user saw.
"""
self.experiment_bucket_map.update({
experiment_id: {
self.VARIATION_ID_KEY: variation_id
}
})
class UserProfileService(object):
""" Class encapsulating user profile service functionality.
Override with your own implementation for storing and retrieving the user profile. """
def lookup(self, user_id):
""" Fetch the user profile dict corresponding to the user ID.
Args:
user_id: ID for user whose profile needs to be retrieved.
Returns:
Dict representing the user's profile.
"""
return UserProfile(user_id).__dict__
def save(self, user_profile):
""" Save the user profile dict sent to this method.
Args:
user_profile: Dict representing the user's profile.
"""
pass
| class Userprofile(object):
""" Class encapsulating information representing a user's profile.
user_id: User's identifier.
experiment_bucket_map: Dict mapping experiment ID to dict consisting of the
variation ID identifying the variation for the user.
"""
user_id_key = 'user_id'
experiment_bucket_map_key = 'experiment_bucket_map'
variation_id_key = 'variation_id'
def __init__(self, user_id, experiment_bucket_map=None, **kwargs):
self.user_id = user_id
self.experiment_bucket_map = experiment_bucket_map or {}
def __eq__(self, other):
return self.__dict__ == other.__dict__
def get_variation_for_experiment(self, experiment_id):
""" Helper method to retrieve variation ID for given experiment.
Args:
experiment_id: ID for experiment for which variation needs to be looked up for.
Returns:
Variation ID corresponding to the experiment. None if no decision available.
"""
return self.experiment_bucket_map.get(experiment_id, {self.VARIATION_ID_KEY: None}).get(self.VARIATION_ID_KEY)
def save_variation_for_experiment(self, experiment_id, variation_id):
""" Helper method to save new experiment/variation as part of the user's profile.
Args:
experiment_id: ID for experiment for which the decision is to be stored.
variation_id: ID for variation that the user saw.
"""
self.experiment_bucket_map.update({experiment_id: {self.VARIATION_ID_KEY: variation_id}})
class Userprofileservice(object):
""" Class encapsulating user profile service functionality.
Override with your own implementation for storing and retrieving the user profile. """
def lookup(self, user_id):
""" Fetch the user profile dict corresponding to the user ID.
Args:
user_id: ID for user whose profile needs to be retrieved.
Returns:
Dict representing the user's profile.
"""
return user_profile(user_id).__dict__
def save(self, user_profile):
""" Save the user profile dict sent to this method.
Args:
user_profile: Dict representing the user's profile.
"""
pass |
#!/bin/python3
'''
Generate a vector of length m with exactkly n ones
'''
def generate_vec_binary(n, m):
res = []
lower = sum(2**i for i in range(m-4))
upper = sum(2**i for i in range(m-4, m))+1
for i in range(lower, upper):
val = bin(i)[2:].zfill(8)
if sum([int(i) for i in val]) == 4:
res.append(val)
return res
if __name__ == '__main__':
n,m = 4, 8
print(generate_vec_binary(n,m))
| """
Generate a vector of length m with exactkly n ones
"""
def generate_vec_binary(n, m):
res = []
lower = sum((2 ** i for i in range(m - 4)))
upper = sum((2 ** i for i in range(m - 4, m))) + 1
for i in range(lower, upper):
val = bin(i)[2:].zfill(8)
if sum([int(i) for i in val]) == 4:
res.append(val)
return res
if __name__ == '__main__':
(n, m) = (4, 8)
print(generate_vec_binary(n, m)) |
def mutate_string(string, position, character):
# method_#1
#str_list = list( string )
#str_list[position] = character
#str_modified = ''.join(str_list)
str_modified = mutate_string_method2( string, position, character)
return str_modified
# method_#2
def mutate_string_method2(string, position, character):
str_modified = string[:position] + character + string[position+1:]
return str_modified
if __name__ == '__main__':
s = input()
i, c = input().split()
s_new = mutate_string(s, int(i), c)
print(s_new) | def mutate_string(string, position, character):
str_modified = mutate_string_method2(string, position, character)
return str_modified
def mutate_string_method2(string, position, character):
str_modified = string[:position] + character + string[position + 1:]
return str_modified
if __name__ == '__main__':
s = input()
(i, c) = input().split()
s_new = mutate_string(s, int(i), c)
print(s_new) |
# line intersection detection
# line1: (x1, y1) to (x2, y2)
# line2: (x3, y3) to (x4, y4)
def Intercept(x1, y1, x2, y2, x3, y3, x4, y4, d):
denom = ((y4-y3) * (x2-x1)) - ((x4-x3) * (y2-y1))
if (denom != 0):
ua = (((x4-x3) * (y1-y3)) - ((y4-y3) * (x1-x3))) / denom
if ((ua >= 0) and (ua <= 1)):
ub = (((x2-x1) * (y1-y3)) - ((y2-y1) * (x1-x3))) / denom
if ((ub >= 0) and (ub <= 1)):
x = x1 + (ua * (x2-x1))
y = y1 + (ua * (y2-y1))
#print("interception detected")
return (x, y, d)
return None
def sign(x):
if x < 0:
return -1
elif x > 0:
return 1
else:
return 0
| def intercept(x1, y1, x2, y2, x3, y3, x4, y4, d):
denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1)
if denom != 0:
ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denom
if ua >= 0 and ua <= 1:
ub = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / denom
if ub >= 0 and ub <= 1:
x = x1 + ua * (x2 - x1)
y = y1 + ua * (y2 - y1)
return (x, y, d)
return None
def sign(x):
if x < 0:
return -1
elif x > 0:
return 1
else:
return 0 |
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "dotnet_nuget_new", "nuget_package")
dotnet_nuget_new(
name = "npgsql",
package="Npgsql",
version="3.2.7",
sha256="683bbe42cd585f28beb23822a113db5731bce44020fd0af2ac827e642fe7e301",
build_file_content="""
package(default_visibility = [ "//visibility:public" ])
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "dotnet_import_library")
dotnet_import_library(
name = "lib",
src = "lib/net451/Npgsql.dll"
)
"""
)
dotnet_nuget_new(
name = "commandlineparser",
package="commandlineparser",
version="2.3.0",
build_file_content="""
package(default_visibility = [ "//visibility:public" ])
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "dotnet_import_library")
dotnet_import_library(
name = "lib",
src = "lib/net45/CommandLine.dll"
)
"""
)
nuget_package(
name = "nuget.frameworks",
package = "nuget.frameworks",
version = "4.8.0",
sha256 = "0228601ad2becf5ec3825882f556fdd821e2f470e504a659acdeabc908ce9060",
core_lib = "lib/netstandard1.6/NuGet.Frameworks.dll",
net_lib = "lib/net46/NuGet.Frameworks.dll",
mono_lib = "lib/net46/NuGet.Frameworks.dll",
core_deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.library.dll",
],
net_deps = [
],
mono_deps = [
],
core_files = [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
net_files = [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
mono_files = [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
)
nuget_package(
name = "nuget.common",
package = "nuget.common",
version = "4.8.0",
core_lib = "lib/netstandard1.6/NuGet.Common.dll",
net_lib = "lib/net46/NuGet.Common.dll",
mono_lib = "lib/net46/NuGet.Common.dll",
core_deps = [
"@nuget.frameworks//:core",
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.library.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.core:system.diagnostics.process.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.core:system.threading.thread.dll",
],
net_deps = [
"@nuget.frameworks//:net",
],
mono_deps = [
"@nuget.frameworks//:mono",
],
core_files = [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
net_files = [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
mono_files = [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
)
| load('@io_bazel_rules_dotnet//dotnet:defs.bzl', 'dotnet_nuget_new', 'nuget_package')
dotnet_nuget_new(name='npgsql', package='Npgsql', version='3.2.7', sha256='683bbe42cd585f28beb23822a113db5731bce44020fd0af2ac827e642fe7e301', build_file_content='\npackage(default_visibility = [ "//visibility:public" ])\nload("@io_bazel_rules_dotnet//dotnet:defs.bzl", "dotnet_import_library")\n\ndotnet_import_library(\n name = "lib",\n src = "lib/net451/Npgsql.dll"\n)\n')
dotnet_nuget_new(name='commandlineparser', package='commandlineparser', version='2.3.0', build_file_content='\npackage(default_visibility = [ "//visibility:public" ])\nload("@io_bazel_rules_dotnet//dotnet:defs.bzl", "dotnet_import_library")\n\ndotnet_import_library(\n name = "lib",\n src = "lib/net45/CommandLine.dll"\n)\n')
nuget_package(name='nuget.frameworks', package='nuget.frameworks', version='4.8.0', sha256='0228601ad2becf5ec3825882f556fdd821e2f470e504a659acdeabc908ce9060', core_lib='lib/netstandard1.6/NuGet.Frameworks.dll', net_lib='lib/net46/NuGet.Frameworks.dll', mono_lib='lib/net46/NuGet.Frameworks.dll', core_deps=['@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.library.dll'], net_deps=[], mono_deps=[], core_files=['lib/netstandard1.6/NuGet.Frameworks.dll', 'lib/netstandard1.6/NuGet.Frameworks.xml'], net_files=['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], mono_files=['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'])
nuget_package(name='nuget.common', package='nuget.common', version='4.8.0', core_lib='lib/netstandard1.6/NuGet.Common.dll', net_lib='lib/net46/NuGet.Common.dll', mono_lib='lib/net46/NuGet.Common.dll', core_deps=['@nuget.frameworks//:core', '@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.library.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.core:system.diagnostics.process.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.core:system.threading.thread.dll'], net_deps=['@nuget.frameworks//:net'], mono_deps=['@nuget.frameworks//:mono'], core_files=['lib/netstandard1.6/NuGet.Common.dll', 'lib/netstandard1.6/NuGet.Common.xml'], net_files=['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], mono_files=['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml']) |
# Copyright 2020 Pax Syriana Foundation. Licensed under the Apache License, Version 2.0
#
class Error:
"""
A very simple class to hold error messages.
This class is used for concatenating succession of errors that don't stop the
flow.
"""
def __init__(self):
# prev_frame = inspect.currentframe().f_back
# try:
# self.class_name = prev_frame.f_locals["self"].__class__.__name__
# except KeyError:
# # it is a global function
# self.class_name = '<module>'
# self.function_name = prev_frame.f_code.co_name
# # TODO
self._msg = []
def __add__(self, other):
# prev_frame = inspect.currentframe().f_back
# try:
# class_name = prev_frame.f_locals["self"].__class__.__name__
# except KeyError:
# # it is a global function
# class_name = '<module>'
# function_name = prev_frame.f_code.co_name
res = Error()
# res.class_name = class_name
# res.function_name = function_name
res._msg.extend(self._msg)
res._msg.extend(other._msg)
return res
def __str__(self):
if self._msg:
return '||'.join(self._msg)
# if self._msg
return ''
def __bool__(self):
return bool(self._msg)
def __eq__(self, other):
if self.__str__() == str(other):
return True
return False
def add(self, message):
if message:
self._msg.append(message)
def msg(self):
return self.__str__()
def render(self, prefix='||'):
return '{}'.format(prefix).join(self._msg)
def do_raise(self, type: Exception = RuntimeError):
raise type(str(self))
| class Error:
"""
A very simple class to hold error messages.
This class is used for concatenating succession of errors that don't stop the
flow.
"""
def __init__(self):
self._msg = []
def __add__(self, other):
res = error()
res._msg.extend(self._msg)
res._msg.extend(other._msg)
return res
def __str__(self):
if self._msg:
return '||'.join(self._msg)
return ''
def __bool__(self):
return bool(self._msg)
def __eq__(self, other):
if self.__str__() == str(other):
return True
return False
def add(self, message):
if message:
self._msg.append(message)
def msg(self):
return self.__str__()
def render(self, prefix='||'):
return '{}'.format(prefix).join(self._msg)
def do_raise(self, type: Exception=RuntimeError):
raise type(str(self)) |
def dominantIndex(self, nums):
i = nums.index(max(nums))
l = nums[i]
del nums[i]
if not nums: return 0
return i if l >= 2 * max(nums) else -1 | def dominant_index(self, nums):
i = nums.index(max(nums))
l = nums[i]
del nums[i]
if not nums:
return 0
return i if l >= 2 * max(nums) else -1 |
def parse_index_file(filename):
"""Parse index file."""
index = []
for line in open(filename):
index.append(int(line.strip()))
return index
def get_data_from_file(file_text, file_pos):
first_line = True
with open(file_text, encoding="utf8") as f1, open(file_pos, encoding="utf8") as f2:
# first_line = f1.readline()
# f2.write(first_line)
lines = f1.readlines()
pos_lines = f2.readlines()
last = -1
for i, line in enumerate(lines):
if i <= last:
continue
num_line = line.split("\t")[1]
file_name = line.split("\t")[0]
# f3.write(line.split("\t")[0])
width = pos_lines[i].split("\t")[1]
height = pos_lines[i].split("\t")[2]
# print(line, num_line)
data = []
arr_node = []
arr_adj = []
arr_line = []
for j in range(i + 1, i + int(num_line) + 1):
temp_str = lines[j].split("\t")
temp_str[-1] = temp_str[-1][0:-1]
str_pre = ""
for s in temp_str:
if str_pre == "":
str_pre += s
else:
str_pre += " " + s
data.append(str_pre)
last = j
######## read file pos
temp_line = pos_lines[j].split(";")
tl_x, tl_y, br_x, br_y = 10000, 10000, 0, 0
for k in range(len(temp_line)):
a = temp_line[k].split(" ")
b = []
for h in range(len(a)):
b.append(int(a[h]))
tl_x = min(tl_x, b[0], b[2], b[4], b[6])
tl_y = min(tl_y, b[1], b[3], b[5], b[7])
br_x = max(br_x, b[0], b[2], b[4], b[6])
br_y = max(br_y, b[1], b[3], b[5], b[7])
x_input = (br_x - tl_x) / 2
y_input = (br_y - tl_y) / 2
arr_line.append([tl_x, tl_y, br_x, br_y])
arr_node.append([x_input,y_input])
return (arr_node)
| def parse_index_file(filename):
"""Parse index file."""
index = []
for line in open(filename):
index.append(int(line.strip()))
return index
def get_data_from_file(file_text, file_pos):
first_line = True
with open(file_text, encoding='utf8') as f1, open(file_pos, encoding='utf8') as f2:
lines = f1.readlines()
pos_lines = f2.readlines()
last = -1
for (i, line) in enumerate(lines):
if i <= last:
continue
num_line = line.split('\t')[1]
file_name = line.split('\t')[0]
width = pos_lines[i].split('\t')[1]
height = pos_lines[i].split('\t')[2]
data = []
arr_node = []
arr_adj = []
arr_line = []
for j in range(i + 1, i + int(num_line) + 1):
temp_str = lines[j].split('\t')
temp_str[-1] = temp_str[-1][0:-1]
str_pre = ''
for s in temp_str:
if str_pre == '':
str_pre += s
else:
str_pre += ' ' + s
data.append(str_pre)
last = j
temp_line = pos_lines[j].split(';')
(tl_x, tl_y, br_x, br_y) = (10000, 10000, 0, 0)
for k in range(len(temp_line)):
a = temp_line[k].split(' ')
b = []
for h in range(len(a)):
b.append(int(a[h]))
tl_x = min(tl_x, b[0], b[2], b[4], b[6])
tl_y = min(tl_y, b[1], b[3], b[5], b[7])
br_x = max(br_x, b[0], b[2], b[4], b[6])
br_y = max(br_y, b[1], b[3], b[5], b[7])
x_input = (br_x - tl_x) / 2
y_input = (br_y - tl_y) / 2
arr_line.append([tl_x, tl_y, br_x, br_y])
arr_node.append([x_input, y_input])
return arr_node |
text = 'i love to count words'
count = 0
for char in text:
if char == ' ':
count = count + 1
#must add one extra line for the last word
count = count + 1
print(count) | text = 'i love to count words'
count = 0
for char in text:
if char == ' ':
count = count + 1
count = count + 1
print(count) |
class Solution(object):
def isValid(self, s):
"""
:type s: str
:rtype: bool
"""
if len(s) == 0:
return True
if len(s) == 1:
return False
left = []
right = []
for i in range(len(s)):
c = s[i]
if c == '(' or c == '{' or c == '[':
left.append(c)
if c == ')':
if len(left) == 0 or left[-1] != '(':
return False
else:
left.pop()
if c == '}':
if len(left) == 0 or left[-1] != '{':
return False
else:
left.pop()
if c == ']' :
if len(left) == 0 or left[-1] != '[':
return False
else:
left.pop()
if len(left) == 0:
return True
else:
return False | class Solution(object):
def is_valid(self, s):
"""
:type s: str
:rtype: bool
"""
if len(s) == 0:
return True
if len(s) == 1:
return False
left = []
right = []
for i in range(len(s)):
c = s[i]
if c == '(' or c == '{' or c == '[':
left.append(c)
if c == ')':
if len(left) == 0 or left[-1] != '(':
return False
else:
left.pop()
if c == '}':
if len(left) == 0 or left[-1] != '{':
return False
else:
left.pop()
if c == ']':
if len(left) == 0 or left[-1] != '[':
return False
else:
left.pop()
if len(left) == 0:
return True
else:
return False |
def construct_error_response(context, api_request_id):
"""
Construct error response dict
:param context: AWS Context object, containing properties about the invocation, function, and execution environment.
:param api_request_id:
:return: dict, a dict object containing information about the aws loggroup name, stream name and lambda request id
:rtype:
"""
error_response = {
"statusCode": 500,
"lambda_function_name": context.function_name,
"log_group_name": context.log_group_name,
"log_stream_name": context.log_stream_name,
"api_request_id": api_request_id,
"lambda_request_id": context.aws_request_id
}
return error_response
| def construct_error_response(context, api_request_id):
"""
Construct error response dict
:param context: AWS Context object, containing properties about the invocation, function, and execution environment.
:param api_request_id:
:return: dict, a dict object containing information about the aws loggroup name, stream name and lambda request id
:rtype:
"""
error_response = {'statusCode': 500, 'lambda_function_name': context.function_name, 'log_group_name': context.log_group_name, 'log_stream_name': context.log_stream_name, 'api_request_id': api_request_id, 'lambda_request_id': context.aws_request_id}
return error_response |
r"""
Introduction
Sage has a wide support for 3D graphics, from basic shapes to implicit and
parametric plots.
The following graphics functions are supported:
- :func:`~plot3d` - plot a 3d function
- :func:`~sage.plot.plot3d.parametric_plot3d.parametric_plot3d` - a parametric three-dimensional space curve or surface
- :func:`~sage.plot.plot3d.revolution_plot3d.revolution_plot3d` - a plot of a revolved curve
- :func:`~sage.plot.plot3d.plot_field3d.plot_vector_field3d` - a plot of a 3d vector field
- :func:`~sage.plot.plot3d.implicit_plot3d.implicit_plot3d` - a plot of an isosurface of a function
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d`- a 3-dimensional plot of a surface defined by a list of points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_matrix` - a 3-dimensional plot of a surface defined by a matrix defining points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_array_of_arrays`- A 3-dimensional plot of a surface defined by a list of lists defining points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_tuples` - a 3-dimensional plot of a surface defined by a list of points in 3-dimensional space
The following classes for basic shapes are supported:
- :class:`~sage.plot.plot3d.shapes.Box` - a box given its three magnitudes
- :class:`~sage.plot.plot3d.shapes.Cone` - a cone, with base in the xy-plane pointing up the z-axis
- :class:`~sage.plot.plot3d.shapes.Cylinder` - a cylinder, with base in the xy-plane pointing up the z-axis
- :class:`~sage.plot.plot3d.shapes2.Line` - a 3d line joining a sequence of points
- :class:`~sage.plot.plot3d.shapes.Sphere` - a sphere centered at the origin
- :class:`~sage.plot.plot3d.shapes.Text` - a text label attached to a point in 3d space
- :class:`~sage.plot.plot3d.shapes.Torus` - a 3d torus
- :class:`~sage.plot.plot3d.shapes2.Point` - a position in 3d, represented by a sphere of fixed size
The following plotting functions for basic shapes are supported
- :func:`~sage.plot.plot3d.shapes.ColorCube` - a cube with given size and sides with given colors
- :func:`~sage.plot.plot3d.shapes.LineSegment` - a line segment, which is drawn as a cylinder from start to end with given radius
- :func:`~sage.plot.plot3d.shapes2.line3d` - a 3d line joining a sequence of points
- :func:`~sage.plot.plot3d.shapes.arrow3d` - a 3d arrow
- :func:`~sage.plot.plot3d.shapes2.point3d` - a point or list of points in 3d space
- :func:`~sage.plot.plot3d.shapes2.bezier3d` - a 3d bezier path
- :func:`~sage.plot.plot3d.shapes2.frame3d` - a frame in 3d
- :func:`~sage.plot.plot3d.shapes2.frame_labels` - labels for a given frame in 3d
- :func:`~sage.plot.plot3d.shapes2.polygon3d` - draw a polygon in 3d
- :func:`~sage.plot.plot3d.shapes2.polygons3d` - draw the union of several polygons in 3d
- :func:`~sage.plot.plot3d.shapes2.ruler` - draw a ruler in 3d, with major and minor ticks
- :func:`~sage.plot.plot3d.shapes2.ruler_frame` - draw a frame made of 3d rulers, with major and minor ticks
- :func:`~sage.plot.plot3d.shapes2.sphere` - plot of a sphere given center and radius
- :func:`~sage.plot.plot3d.shapes2.text3d` - 3d text
Sage also supports platonic solids with the following functions:
- :func:`~sage.plot.plot3d.platonic.tetrahedron`
- :func:`~sage.plot.plot3d.platonic.cube`
- :func:`~sage.plot.plot3d.platonic.octahedron`
- :func:`~sage.plot.plot3d.platonic.dodecahedron`
- :func:`~sage.plot.plot3d.platonic.icosahedron`
Different viewers are supported: jmol, a web-based interactive viewer
using the Three.js JavaScript library and a raytraced representation.
The viewer is invoked by adding the keyword argument
``viewer='jmol'`` (respectively ``'tachyon'`` or ``'threejs'``)
to the command ``show()`` on any three-dimensional graphic
- :class:`~sage.plot.plot3d.tachyon.Tachyon` - create a scene the can be rendered using the Tachyon ray tracer
- :class:`~sage.plot.plot3d.tachyon.Axis_aligned_box` - box with axis-aligned edges with the given min and max coordinates
- :class:`~sage.plot.plot3d.tachyon.Cylinder` - an infinite cylinder
- :class:`~sage.plot.plot3d.tachyon.FCylinder` - a finite cylinder
- :class:`~sage.plot.plot3d.tachyon.FractalLandscape`- axis-aligned fractal landscape
- :class:`~sage.plot.plot3d.tachyon.Light` - represents lighting objects
- :class:`~sage.plot.plot3d.tachyon.ParametricPlot` - parametric plot routines
- :class:`~sage.plot.plot3d.tachyon.Plane` - an infinite plane
- :class:`~sage.plot.plot3d.tachyon.Ring` - an annulus of zero thickness
- :class:`~sage.plot.plot3d.tachyon.Sphere`- a sphere
- :class:`~sage.plot.plot3d.tachyon.TachyonSmoothTriangle` - a triangle along with a normal vector, which is used for smoothing
- :class:`~sage.plot.plot3d.tachyon.TachyonTriangle` - basic triangle class
- :class:`~sage.plot.plot3d.tachyon.TachyonTriangleFactory` - class to produce triangles of various rendering types
- :class:`~sage.plot.plot3d.tachyon.Texfunc` - creates a texture function
- :class:`~sage.plot.plot3d.tachyon.Texture` - stores texture information
- :func:`~sage.plot.plot3d.tachyon.tostr` - converts vector information to a space-separated string
"""
| """
Introduction
Sage has a wide support for 3D graphics, from basic shapes to implicit and
parametric plots.
The following graphics functions are supported:
- :func:`~plot3d` - plot a 3d function
- :func:`~sage.plot.plot3d.parametric_plot3d.parametric_plot3d` - a parametric three-dimensional space curve or surface
- :func:`~sage.plot.plot3d.revolution_plot3d.revolution_plot3d` - a plot of a revolved curve
- :func:`~sage.plot.plot3d.plot_field3d.plot_vector_field3d` - a plot of a 3d vector field
- :func:`~sage.plot.plot3d.implicit_plot3d.implicit_plot3d` - a plot of an isosurface of a function
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d`- a 3-dimensional plot of a surface defined by a list of points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_matrix` - a 3-dimensional plot of a surface defined by a matrix defining points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_array_of_arrays`- A 3-dimensional plot of a surface defined by a list of lists defining points in 3-dimensional space
- :func:`~sage.plot.plot3d.list_plot3d.list_plot3d_tuples` - a 3-dimensional plot of a surface defined by a list of points in 3-dimensional space
The following classes for basic shapes are supported:
- :class:`~sage.plot.plot3d.shapes.Box` - a box given its three magnitudes
- :class:`~sage.plot.plot3d.shapes.Cone` - a cone, with base in the xy-plane pointing up the z-axis
- :class:`~sage.plot.plot3d.shapes.Cylinder` - a cylinder, with base in the xy-plane pointing up the z-axis
- :class:`~sage.plot.plot3d.shapes2.Line` - a 3d line joining a sequence of points
- :class:`~sage.plot.plot3d.shapes.Sphere` - a sphere centered at the origin
- :class:`~sage.plot.plot3d.shapes.Text` - a text label attached to a point in 3d space
- :class:`~sage.plot.plot3d.shapes.Torus` - a 3d torus
- :class:`~sage.plot.plot3d.shapes2.Point` - a position in 3d, represented by a sphere of fixed size
The following plotting functions for basic shapes are supported
- :func:`~sage.plot.plot3d.shapes.ColorCube` - a cube with given size and sides with given colors
- :func:`~sage.plot.plot3d.shapes.LineSegment` - a line segment, which is drawn as a cylinder from start to end with given radius
- :func:`~sage.plot.plot3d.shapes2.line3d` - a 3d line joining a sequence of points
- :func:`~sage.plot.plot3d.shapes.arrow3d` - a 3d arrow
- :func:`~sage.plot.plot3d.shapes2.point3d` - a point or list of points in 3d space
- :func:`~sage.plot.plot3d.shapes2.bezier3d` - a 3d bezier path
- :func:`~sage.plot.plot3d.shapes2.frame3d` - a frame in 3d
- :func:`~sage.plot.plot3d.shapes2.frame_labels` - labels for a given frame in 3d
- :func:`~sage.plot.plot3d.shapes2.polygon3d` - draw a polygon in 3d
- :func:`~sage.plot.plot3d.shapes2.polygons3d` - draw the union of several polygons in 3d
- :func:`~sage.plot.plot3d.shapes2.ruler` - draw a ruler in 3d, with major and minor ticks
- :func:`~sage.plot.plot3d.shapes2.ruler_frame` - draw a frame made of 3d rulers, with major and minor ticks
- :func:`~sage.plot.plot3d.shapes2.sphere` - plot of a sphere given center and radius
- :func:`~sage.plot.plot3d.shapes2.text3d` - 3d text
Sage also supports platonic solids with the following functions:
- :func:`~sage.plot.plot3d.platonic.tetrahedron`
- :func:`~sage.plot.plot3d.platonic.cube`
- :func:`~sage.plot.plot3d.platonic.octahedron`
- :func:`~sage.plot.plot3d.platonic.dodecahedron`
- :func:`~sage.plot.plot3d.platonic.icosahedron`
Different viewers are supported: jmol, a web-based interactive viewer
using the Three.js JavaScript library and a raytraced representation.
The viewer is invoked by adding the keyword argument
``viewer='jmol'`` (respectively ``'tachyon'`` or ``'threejs'``)
to the command ``show()`` on any three-dimensional graphic
- :class:`~sage.plot.plot3d.tachyon.Tachyon` - create a scene the can be rendered using the Tachyon ray tracer
- :class:`~sage.plot.plot3d.tachyon.Axis_aligned_box` - box with axis-aligned edges with the given min and max coordinates
- :class:`~sage.plot.plot3d.tachyon.Cylinder` - an infinite cylinder
- :class:`~sage.plot.plot3d.tachyon.FCylinder` - a finite cylinder
- :class:`~sage.plot.plot3d.tachyon.FractalLandscape`- axis-aligned fractal landscape
- :class:`~sage.plot.plot3d.tachyon.Light` - represents lighting objects
- :class:`~sage.plot.plot3d.tachyon.ParametricPlot` - parametric plot routines
- :class:`~sage.plot.plot3d.tachyon.Plane` - an infinite plane
- :class:`~sage.plot.plot3d.tachyon.Ring` - an annulus of zero thickness
- :class:`~sage.plot.plot3d.tachyon.Sphere`- a sphere
- :class:`~sage.plot.plot3d.tachyon.TachyonSmoothTriangle` - a triangle along with a normal vector, which is used for smoothing
- :class:`~sage.plot.plot3d.tachyon.TachyonTriangle` - basic triangle class
- :class:`~sage.plot.plot3d.tachyon.TachyonTriangleFactory` - class to produce triangles of various rendering types
- :class:`~sage.plot.plot3d.tachyon.Texfunc` - creates a texture function
- :class:`~sage.plot.plot3d.tachyon.Texture` - stores texture information
- :func:`~sage.plot.plot3d.tachyon.tostr` - converts vector information to a space-separated string
""" |
def sum100():
total = 0;
for i in range(101):
total += i
return total
print(sum100())
| def sum100():
total = 0
for i in range(101):
total += i
return total
print(sum100()) |
'''
Now You Code 3: Amazon Deals
Create a program that downloads and prints Today's Deals from amazon.com (https://www.amazon.com/gp/goldbox)
Hint: You will need to use selenium to scrape this page, it is loaded with JavaScript!
Example Run:
Here are Amazon.com deals!
1.) Shower Hose 79 inch (6.5 Ft.) for Hand Held Showerhead $8.72
2.) Streamlight 88851 PolyTac LED Flashlight with Lithium Battery $30.52
....
....
....
Start out your program by writing your TODO list of steps
you'll need to solve the problem!
'''
# TODO: Write Todo list then beneath write your code
# Write code here
| """
Now You Code 3: Amazon Deals
Create a program that downloads and prints Today's Deals from amazon.com (https://www.amazon.com/gp/goldbox)
Hint: You will need to use selenium to scrape this page, it is loaded with JavaScript!
Example Run:
Here are Amazon.com deals!
1.) Shower Hose 79 inch (6.5 Ft.) for Hand Held Showerhead $8.72
2.) Streamlight 88851 PolyTac LED Flashlight with Lithium Battery $30.52
....
....
....
Start out your program by writing your TODO list of steps
you'll need to solve the problem!
""" |
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit tests for android_webview/javatests/
Runs various style checks before upload.
"""
def CheckChangeOnUpload(input_api, output_api):
results = []
results.extend(_CheckAwJUnitTestRunner(input_api, output_api))
results.extend(_CheckNoSkipCommandLineAnnotation(input_api, output_api))
results.extend(_CheckNoSandboxedRendererSwitch(input_api, output_api))
return results
def _CheckAwJUnitTestRunner(input_api, output_api):
"""Checks that new tests use the AwJUnit4ClassRunner instead of some other
test runner. This is because WebView has special logic in the
AwJUnit4ClassRunner.
"""
run_with_pattern = input_api.re.compile(
r'^@RunWith\((.*)\)$')
correct_runner = 'AwJUnit4ClassRunner.class'
errors = []
def _FilterFile(affected_file):
return input_api.FilterSourceFile(
affected_file,
black_list=input_api.DEFAULT_BLACK_LIST,
white_list=[r'.*\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for line_num, line in f.ChangedContents():
match = run_with_pattern.search(line)
if match and match.group(1) != correct_runner:
errors.append("%s:%d" % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning("""
android_webview/javatests/ should use the AwJUnit4ClassRunner test runner, not
any other test runner (e.g., BaseJUnit4ClassRunner).
""", errors))
return results
def _CheckNoSkipCommandLineAnnotation(input_api, output_api):
"""Checks that tests do not add @SkipCommandLineParameterization annotation.
This was previously used to run the test in single-process-mode only (or,
multi-process-mode only if used with
@CommandLineFlags.Add(AwSwitches.WEBVIEW_SANDBOXED_RENDERER)). This is
obsolete because we have dedicated annotations (@OnlyRunInSingleProcessMode
and @OnlyRunInMultiProcessMode).
"""
skip_command_line_annotation = input_api.re.compile(
r'^\s*@SkipCommandLineParameterization.*$')
errors = []
def _FilterFile(affected_file):
return input_api.FilterSourceFile(
affected_file,
black_list=input_api.DEFAULT_BLACK_LIST,
white_list=[r'.*\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for line_num, line in f.ChangedContents():
match = skip_command_line_annotation.search(line)
if match:
errors.append("%s:%d" % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning("""
android_webview/javatests/ should not use @SkipCommandLineParameterization to
run in either multi-process or single-process only. Instead, use @OnlyRunIn.
""", errors))
return results
def _CheckNoSandboxedRendererSwitch(input_api, output_api):
"""Checks that tests do not add the AwSwitches.WEBVIEW_SANDBOXED_RENDERER
command line flag. Tests should instead use @OnlyRunIn(MULTI_PROCESS).
"""
# This will not catch multi-line annotations (which are valid if adding
# multiple switches), but is better than nothing (and avoids false positives).
sandboxed_renderer_pattern = input_api.re.compile(
r'^\s*@CommandLineFlags\.Add\(.*'
r'\bAwSwitches\.WEBVIEW_SANDBOXED_RENDERER\b.*\)$')
errors = []
def _FilterFile(affected_file):
return input_api.FilterSourceFile(
affected_file,
black_list=input_api.DEFAULT_BLACK_LIST,
white_list=[r'.*\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for line_num, line in f.ChangedContents():
match = sandboxed_renderer_pattern.search(line)
if match:
errors.append("%s:%d" % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning("""
android_webview/javatests/ should not use AwSwitches.WEBVIEW_SANDBOXED_RENDERER
to run in multi-process only. Instead, use @OnlyRunIn(MULTI_PROCESS).
""", errors))
return results
| """Presubmit tests for android_webview/javatests/
Runs various style checks before upload.
"""
def check_change_on_upload(input_api, output_api):
results = []
results.extend(__check_aw_j_unit_test_runner(input_api, output_api))
results.extend(__check_no_skip_command_line_annotation(input_api, output_api))
results.extend(__check_no_sandboxed_renderer_switch(input_api, output_api))
return results
def __check_aw_j_unit_test_runner(input_api, output_api):
"""Checks that new tests use the AwJUnit4ClassRunner instead of some other
test runner. This is because WebView has special logic in the
AwJUnit4ClassRunner.
"""
run_with_pattern = input_api.re.compile('^@RunWith\\((.*)\\)$')
correct_runner = 'AwJUnit4ClassRunner.class'
errors = []
def __filter_file(affected_file):
return input_api.FilterSourceFile(affected_file, black_list=input_api.DEFAULT_BLACK_LIST, white_list=['.*\\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for (line_num, line) in f.ChangedContents():
match = run_with_pattern.search(line)
if match and match.group(1) != correct_runner:
errors.append('%s:%d' % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning('\nandroid_webview/javatests/ should use the AwJUnit4ClassRunner test runner, not\nany other test runner (e.g., BaseJUnit4ClassRunner).\n', errors))
return results
def __check_no_skip_command_line_annotation(input_api, output_api):
"""Checks that tests do not add @SkipCommandLineParameterization annotation.
This was previously used to run the test in single-process-mode only (or,
multi-process-mode only if used with
@CommandLineFlags.Add(AwSwitches.WEBVIEW_SANDBOXED_RENDERER)). This is
obsolete because we have dedicated annotations (@OnlyRunInSingleProcessMode
and @OnlyRunInMultiProcessMode).
"""
skip_command_line_annotation = input_api.re.compile('^\\s*@SkipCommandLineParameterization.*$')
errors = []
def __filter_file(affected_file):
return input_api.FilterSourceFile(affected_file, black_list=input_api.DEFAULT_BLACK_LIST, white_list=['.*\\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for (line_num, line) in f.ChangedContents():
match = skip_command_line_annotation.search(line)
if match:
errors.append('%s:%d' % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning('\nandroid_webview/javatests/ should not use @SkipCommandLineParameterization to\nrun in either multi-process or single-process only. Instead, use @OnlyRunIn.\n', errors))
return results
def __check_no_sandboxed_renderer_switch(input_api, output_api):
"""Checks that tests do not add the AwSwitches.WEBVIEW_SANDBOXED_RENDERER
command line flag. Tests should instead use @OnlyRunIn(MULTI_PROCESS).
"""
sandboxed_renderer_pattern = input_api.re.compile('^\\s*@CommandLineFlags\\.Add\\(.*\\bAwSwitches\\.WEBVIEW_SANDBOXED_RENDERER\\b.*\\)$')
errors = []
def __filter_file(affected_file):
return input_api.FilterSourceFile(affected_file, black_list=input_api.DEFAULT_BLACK_LIST, white_list=['.*\\.java$'])
for f in input_api.AffectedSourceFiles(_FilterFile):
for (line_num, line) in f.ChangedContents():
match = sandboxed_renderer_pattern.search(line)
if match:
errors.append('%s:%d' % (f.LocalPath(), line_num))
results = []
if errors:
results.append(output_api.PresubmitPromptWarning('\nandroid_webview/javatests/ should not use AwSwitches.WEBVIEW_SANDBOXED_RENDERER\nto run in multi-process only. Instead, use @OnlyRunIn(MULTI_PROCESS).\n', errors))
return results |
class Solution(object):
def isValidSudoku(self, board):
rows = [{} for i in range(9) ]
cols = [{} for i in range(9) ]
squares = [ {} for i in range(9)]
for i in range(9):
for j in range(9):
#print("iter", i, j, board[i][j])
#print(rows)
#print(cols)
#print(squares)
# Get current board value and disregard blanks
cur_val = board[i][j]
if cur_val == ".":
continue
# Check row hashmap
if cur_val in rows[i]:
return False
rows[i][cur_val] = True
# Check columns hashmap
if cur_val in cols[j]:
return False
cols[j][cur_val] = True
# Check Squares hashmap
square_col = int(i/3) + int(j/3)*3
if cur_val in squares[square_col]:
return False
squares[square_col][cur_val] = True
return True
board = [
["8","3",".",".","7",".",".",".","."],
["6",".",".","1","9","5",".",".","."],
[".","9","8",".",".",".",".","6","."],
["8",".",".",".","6",".",".",".","3"],
["4",".",".","8",".","3",".",".","1"],
["7",".",".",".","2",".",".",".","6"],
[".","6",".",".",".",".","2","8","."],
[".",".",".","4","1","9",".",".","5"],
[".",".",".",".","8",".",".","7","9"]
]
z = Solution()
print(z.isValidSudoku(board))
| class Solution(object):
def is_valid_sudoku(self, board):
rows = [{} for i in range(9)]
cols = [{} for i in range(9)]
squares = [{} for i in range(9)]
for i in range(9):
for j in range(9):
cur_val = board[i][j]
if cur_val == '.':
continue
if cur_val in rows[i]:
return False
rows[i][cur_val] = True
if cur_val in cols[j]:
return False
cols[j][cur_val] = True
square_col = int(i / 3) + int(j / 3) * 3
if cur_val in squares[square_col]:
return False
squares[square_col][cur_val] = True
return True
board = [['8', '3', '.', '.', '7', '.', '.', '.', '.'], ['6', '.', '.', '1', '9', '5', '.', '.', '.'], ['.', '9', '8', '.', '.', '.', '.', '6', '.'], ['8', '.', '.', '.', '6', '.', '.', '.', '3'], ['4', '.', '.', '8', '.', '3', '.', '.', '1'], ['7', '.', '.', '.', '2', '.', '.', '.', '6'], ['.', '6', '.', '.', '.', '.', '2', '8', '.'], ['.', '.', '.', '4', '1', '9', '.', '.', '5'], ['.', '.', '.', '.', '8', '.', '.', '7', '9']]
z = solution()
print(z.isValidSudoku(board)) |
def insertion_sort(A):
"""Sort list of comparable elements into nondecreasing order."""
for k in range(1, len(A)):
curr = A[k]
j = k
while j>0 and A[j-1] > curr:
A[j] = A[j-1]
j -= 1
A[j] = curr
return A
print(insertion_sort([234,3,4,3,45,3,3,5,32,3]))
| def insertion_sort(A):
"""Sort list of comparable elements into nondecreasing order."""
for k in range(1, len(A)):
curr = A[k]
j = k
while j > 0 and A[j - 1] > curr:
A[j] = A[j - 1]
j -= 1
A[j] = curr
return A
print(insertion_sort([234, 3, 4, 3, 45, 3, 3, 5, 32, 3])) |
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
{
'variables': {
'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
'conditions': [
['use_libjpeg_turbo==1', {
'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg_turbo', ],
}, {
'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg', ],
}],
],
},
'includes': ['../build/common.gypi'],
'targets': [
{
'target_name': 'common_video',
'type': 'static_library',
'include_dirs': [
'<(webrtc_root)/modules/interface/',
'interface',
'jpeg/include',
'libyuv/include',
],
'direct_dependent_settings': {
'include_dirs': [
'interface',
'jpeg/include',
'libyuv/include',
],
},
'conditions': [
['build_libjpeg==1', {
'dependencies': ['<(libjpeg_gyp_path):libjpeg',],
}, {
# Need to add a directory normally exported by libjpeg.gyp.
'include_dirs': ['<(libjpeg_include_dir)'],
}],
['build_libyuv==1', {
'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
}, {
# Need to add a directory normally exported by libyuv.gyp.
'include_dirs': ['<(libyuv_dir)/include',],
}],
],
'sources': [
'interface/i420_video_frame.h',
'i420_video_frame.cc',
'jpeg/include/jpeg.h',
'jpeg/data_manager.cc',
'jpeg/data_manager.h',
'jpeg/jpeg.cc',
'libyuv/include/webrtc_libyuv.h',
'libyuv/include/scaler.h',
'libyuv/webrtc_libyuv.cc',
'libyuv/scaler.cc',
'plane.h',
'plane.cc',
],
},
], # targets
'conditions': [
['include_tests==1', {
'targets': [
{
'target_name': 'common_video_unittests',
'type': 'executable',
'dependencies': [
'common_video',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main',
],
'sources': [
'i420_video_frame_unittest.cc',
'jpeg/jpeg_unittest.cc',
'libyuv/libyuv_unittest.cc',
'libyuv/scaler_unittest.cc',
'plane_unittest.cc',
],
},
], # targets
}], # include_tests
],
} | {'variables': {'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 'conditions': [['use_libjpeg_turbo==1', {'libjpeg_include_dir%': ['<(DEPTH)/third_party/libjpeg_turbo']}, {'libjpeg_include_dir%': ['<(DEPTH)/third_party/libjpeg']}]]}, 'includes': ['../build/common.gypi'], 'targets': [{'target_name': 'common_video', 'type': 'static_library', 'include_dirs': ['<(webrtc_root)/modules/interface/', 'interface', 'jpeg/include', 'libyuv/include'], 'direct_dependent_settings': {'include_dirs': ['interface', 'jpeg/include', 'libyuv/include']}, 'conditions': [['build_libjpeg==1', {'dependencies': ['<(libjpeg_gyp_path):libjpeg']}, {'include_dirs': ['<(libjpeg_include_dir)']}], ['build_libyuv==1', {'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv']}, {'include_dirs': ['<(libyuv_dir)/include']}]], 'sources': ['interface/i420_video_frame.h', 'i420_video_frame.cc', 'jpeg/include/jpeg.h', 'jpeg/data_manager.cc', 'jpeg/data_manager.h', 'jpeg/jpeg.cc', 'libyuv/include/webrtc_libyuv.h', 'libyuv/include/scaler.h', 'libyuv/webrtc_libyuv.cc', 'libyuv/scaler.cc', 'plane.h', 'plane.cc']}], 'conditions': [['include_tests==1', {'targets': [{'target_name': 'common_video_unittests', 'type': 'executable', 'dependencies': ['common_video', '<(DEPTH)/testing/gtest.gyp:gtest', '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/test/test.gyp:test_support_main'], 'sources': ['i420_video_frame_unittest.cc', 'jpeg/jpeg_unittest.cc', 'libyuv/libyuv_unittest.cc', 'libyuv/scaler_unittest.cc', 'plane_unittest.cc']}]}]]} |
def portrayCell(cell):
'''
This function is registered with the visualization server to be called
each tick to indicate how to draw the cell in its current state.
:param cell: the cell in the simulation
:return: the portrayal dictionary.
'''
assert cell is not None
return {
"Shape": "hex",
"r": 1,
"Filled": "true",
"Layer": 0,
"x": cell.x,
"y": cell.y,
"Color": "black" if cell.isAlive else "white"
}
| def portray_cell(cell):
"""
This function is registered with the visualization server to be called
each tick to indicate how to draw the cell in its current state.
:param cell: the cell in the simulation
:return: the portrayal dictionary.
"""
assert cell is not None
return {'Shape': 'hex', 'r': 1, 'Filled': 'true', 'Layer': 0, 'x': cell.x, 'y': cell.y, 'Color': 'black' if cell.isAlive else 'white'} |
# -*- coding: utf-8 -*-
class User_stopword(object):
user_stop = ['html','head','title','base','link','meta','style','body','article','section','nav','aside','header','footer','address','p','hr','pre','blockquote','ol','ul','li','dl','dt','dd','figure','figcaption','div','main','a','em','strong','small','s','cite','q','dfn','abbr','data','time','code','var','samp','kbd','i','b','u','mark','ruby','rb','rt','rtc','rp','bdi','bdo','span','br','wbr','ins','del','img','iframe','embed','object','param','video','audio','source','track','map','area','table','caption','colgroup','col','tbody','thead','tfoot','tr','td','th','form','label','input','button','select','datalist','optgroup','option','textarea','keygen','output','progress','meter','fieldset','legend','details','summary','dialog','script','noscript','template','canvas','quot','amp','lt','gt','nbsp','iexcl','cent','pound','curren','yen','brvbar','sect','uml','copy','ordf','laquo','not','shy','reg','macr','deg','plusmn','sup2','sup3','acute','micro','para','middot','cedil','sup1','ordm','raquo','frac14','frac12','frac34','iquest','agrave','aacute','acirc','atilde','auml','aring','aelig','ccedil','egrave','eacute','ecirc','euml','igrave','iacute','icirc','iuml','eth','ntilde','ograve','oacute','ocirc','otilde','ouml','times','oslash','ugrave','uacute','ucirc','uuml','yacute','thorn','szlig','agrave','aacute','acirc','atilde','auml','aring','aelig','ccedil','egrave','eacute','ecirc','euml','igrave','iacute','icirc','iuml','eth','ntilde','ograve','oacute','ocirc','otilde','ouml','divide','oslash','ugrave','uacute','ucirc','uuml','yacute','thorn','yuml','oelig','oelig','scaron','scaron','yuml','fnof','circ','tilde','alpha','beta','gamma','delta','epsilon','zeta','eta','theta','iota','kappa','lambda','mu','nu','xi','omicron','pi','rho','sigma','tau','upsilon','phi','chi','psi','omega','alpha','beta','gamma','delta','epsilon','zeta','eta','theta','iota','kappa','lambda','mu','nu','xi','omicron','pi','rho','sigmaf','sigma','tau','upsilon','phi','chi','psi','omega','thetasym','upsih','piv','bull','hellip','prime','prime','oline','frasl','weierp','image','real','trade','alefsym','larr','uarr','rarr','darr','harr','crarr','larr','uarr','rarr','darr','harr','forall','part','exist','empty','nabla','isin','notin','ni','prod','sum','minus','lowast','radic','prop','infin','ang','and','or','cap','cup','int','there4','sim','cong','asymp','ne','equiv','le','ge','sub','sup','nsub','sube','supe','oplus','otimes','perp','sdot','lceil','rceil','lfloor','rfloor','lang','rang','loz','spades','clubs','hearts','diams','ensp','emsp','thinsp','zwnj','zwj','lrm','rlm','ndash','mdash','lsquo','rsquo','sbquo','ldquo','rdquo','bdquo','dagger','dagger','permil','lsaquo']
user_stop_utf = [u'html',u'head',u'title',u'base',u'link',u'meta',u'style',u'body',u'article',u'section',u'nav',u'aside',u'header',u'footer',u'address',u'p',u'hr',u'pre',u'blockquote',u'ol',u'ul',u'li',u'dl',u'dt',u'dd',u'figure',u'figcaption',u'div',u'main',u'a',u'em',u'strong',u'small',u's',u'cite',u'q',u'dfn',u'abbr',u'data',u'time',u'code',u'var',u'samp',u'kbd',u'i',u'b',u'u',u'mark',u'ruby',u'rb',u'rt',u'rtc',u'rp',u'bdi',u'bdo',u'span',u'br',u'wbr',u'ins',u'del',u'img',u'iframe',u'embed',u'object',u'param',u'video',u'audio',u'source',u'track',u'map',u'area',u'table',u'caption',u'colgroup',u'col',u'tbody',u'thead',u'tfoot',u'tr',u'td',u'th',u'form',u'label',u'input',u'button',u'select',u'datalist',u'optgroup',u'option',u'textarea',u'keygen',u'output',u'progress',u'meter',u'fieldset',u'legend',u'details',u'summary',u'dialog',u'script',u'noscript',u'template',u'canvas',u'quot',u'amp',u'lt',u'gt',u'nbsp',u'iexcl',u'cent',u'pound',u'curren',u'yen',u'brvbar',u'sect',u'uml',u'copy',u'ordf',u'laquo',u'not',u'shy',u'reg',u'macr',u'deg',u'plusmn',u'sup2',u'sup3',u'acute',u'micro',u'para',u'middot',u'cedil',u'sup1',u'ordm',u'raquo',u'frac14',u'frac12',u'frac34',u'iquest',u'Agrave',u'Aacute',u'Acirc',u'Atilde',u'Auml',u'Aring',u'AElig',u'Ccedil',u'Egrave',u'Eacute',u'Ecirc',u'Euml',u'Igrave',u'Iacute',u'Icirc',u'Iuml',u'ETH',u'Ntilde',u'Ograve',u'Oacute',u'Ocirc',u'Otilde',u'Ouml',u'times',u'Oslash',u'Ugrave',u'Uacute',u'Ucirc',u'Uuml',u'Yacute',u'THORN',u'szlig',u'agrave',u'aacute',u'acirc',u'atilde',u'auml',u'aring',u'aelig',u'ccedil',u'egrave',u'eacute',u'ecirc',u'euml',u'igrave',u'iacute',u'icirc',u'iuml',u'eth',u'ntilde',u'ograve',u'oacute',u'ocirc',u'otilde',u'ouml',u'divide',u'oslash',u'ugrave',u'uacute',u'ucirc',u'uuml',u'yacute',u'thorn',u'yuml',u'OElig',u'oelig',u'Scaron',u'scaron',u'Yuml',u'fnof',u'circ',u'tilde',u'Alpha',u'Beta',u'Gamma',u'Delta',u'Epsilon',u'Zeta',u'Eta',u'Theta',u'Iota',u'Kappa',u'Lambda',u'Mu',u'Nu',u'Xi',u'Omicron',u'Pi',u'Rho',u'Sigma',u'Tau',u'Upsilon',u'Phi',u'Chi',u'Psi',u'Omega',u'alpha',u'beta',u'gamma',u'delta',u'epsilon',u'zeta',u'eta',u'theta',u'iota',u'kappa',u'lambda',u'mu',u'nu',u'xi',u'omicron',u'pi',u'rho',u'sigmaf',u'sigma',u'tau',u'upsilon',u'phi',u'chi',u'psi',u'omega',u'thetasym',u'upsih',u'piv',u'bull',u'hellip',u'prime',u'Prime',u'oline',u'frasl',u'weierp',u'image',u'real',u'trade',u'alefsym',u'larr',u'uarr',u'rarr',u'darr',u'harr',u'crarr',u'lArr',u'uArr',u'rArr',u'dArr',u'hArr',u'forall',u'part',u'exist',u'empty',u'nabla',u'isin',u'notin',u'ni',u'prod',u'sum',u'minus',u'lowast',u'radic',u'prop',u'infin',u'ang',u'and',u'or',u'cap',u'cup',u'int',u'there4',u'sim',u'cong',u'asymp',u'ne',u'equiv',u'le',u'ge',u'sub',u'sup',u'nsub',u'sube',u'supe',u'oplus',u'otimes',u'perp',u'sdot',u'lceil',u'rceil',u'lfloor',u'rfloor',u'lang',u'rang',u'loz',u'spades',u'clubs',u'hearts',u'diams',u'ensp',u'emsp',u'thinsp',u'zwnj',u'zwj',u'lrm',u'rlm',u'ndash',u'mdash',u'lsquo',u'rsquo',u'sbquo',u'ldquo',u'rdquo',u'bdquo',u'dagger',u'Dagger',u'permil',u'lsaquo']
| class User_Stopword(object):
user_stop = ['html', 'head', 'title', 'base', 'link', 'meta', 'style', 'body', 'article', 'section', 'nav', 'aside', 'header', 'footer', 'address', 'p', 'hr', 'pre', 'blockquote', 'ol', 'ul', 'li', 'dl', 'dt', 'dd', 'figure', 'figcaption', 'div', 'main', 'a', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'data', 'time', 'code', 'var', 'samp', 'kbd', 'i', 'b', 'u', 'mark', 'ruby', 'rb', 'rt', 'rtc', 'rp', 'bdi', 'bdo', 'span', 'br', 'wbr', 'ins', 'del', 'img', 'iframe', 'embed', 'object', 'param', 'video', 'audio', 'source', 'track', 'map', 'area', 'table', 'caption', 'colgroup', 'col', 'tbody', 'thead', 'tfoot', 'tr', 'td', 'th', 'form', 'label', 'input', 'button', 'select', 'datalist', 'optgroup', 'option', 'textarea', 'keygen', 'output', 'progress', 'meter', 'fieldset', 'legend', 'details', 'summary', 'dialog', 'script', 'noscript', 'template', 'canvas', 'quot', 'amp', 'lt', 'gt', 'nbsp', 'iexcl', 'cent', 'pound', 'curren', 'yen', 'brvbar', 'sect', 'uml', 'copy', 'ordf', 'laquo', 'not', 'shy', 'reg', 'macr', 'deg', 'plusmn', 'sup2', 'sup3', 'acute', 'micro', 'para', 'middot', 'cedil', 'sup1', 'ordm', 'raquo', 'frac14', 'frac12', 'frac34', 'iquest', 'agrave', 'aacute', 'acirc', 'atilde', 'auml', 'aring', 'aelig', 'ccedil', 'egrave', 'eacute', 'ecirc', 'euml', 'igrave', 'iacute', 'icirc', 'iuml', 'eth', 'ntilde', 'ograve', 'oacute', 'ocirc', 'otilde', 'ouml', 'times', 'oslash', 'ugrave', 'uacute', 'ucirc', 'uuml', 'yacute', 'thorn', 'szlig', 'agrave', 'aacute', 'acirc', 'atilde', 'auml', 'aring', 'aelig', 'ccedil', 'egrave', 'eacute', 'ecirc', 'euml', 'igrave', 'iacute', 'icirc', 'iuml', 'eth', 'ntilde', 'ograve', 'oacute', 'ocirc', 'otilde', 'ouml', 'divide', 'oslash', 'ugrave', 'uacute', 'ucirc', 'uuml', 'yacute', 'thorn', 'yuml', 'oelig', 'oelig', 'scaron', 'scaron', 'yuml', 'fnof', 'circ', 'tilde', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lambda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigma', 'tau', 'upsilon', 'phi', 'chi', 'psi', 'omega', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lambda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigmaf', 'sigma', 'tau', 'upsilon', 'phi', 'chi', 'psi', 'omega', 'thetasym', 'upsih', 'piv', 'bull', 'hellip', 'prime', 'prime', 'oline', 'frasl', 'weierp', 'image', 'real', 'trade', 'alefsym', 'larr', 'uarr', 'rarr', 'darr', 'harr', 'crarr', 'larr', 'uarr', 'rarr', 'darr', 'harr', 'forall', 'part', 'exist', 'empty', 'nabla', 'isin', 'notin', 'ni', 'prod', 'sum', 'minus', 'lowast', 'radic', 'prop', 'infin', 'ang', 'and', 'or', 'cap', 'cup', 'int', 'there4', 'sim', 'cong', 'asymp', 'ne', 'equiv', 'le', 'ge', 'sub', 'sup', 'nsub', 'sube', 'supe', 'oplus', 'otimes', 'perp', 'sdot', 'lceil', 'rceil', 'lfloor', 'rfloor', 'lang', 'rang', 'loz', 'spades', 'clubs', 'hearts', 'diams', 'ensp', 'emsp', 'thinsp', 'zwnj', 'zwj', 'lrm', 'rlm', 'ndash', 'mdash', 'lsquo', 'rsquo', 'sbquo', 'ldquo', 'rdquo', 'bdquo', 'dagger', 'dagger', 'permil', 'lsaquo']
user_stop_utf = [u'html', u'head', u'title', u'base', u'link', u'meta', u'style', u'body', u'article', u'section', u'nav', u'aside', u'header', u'footer', u'address', u'p', u'hr', u'pre', u'blockquote', u'ol', u'ul', u'li', u'dl', u'dt', u'dd', u'figure', u'figcaption', u'div', u'main', u'a', u'em', u'strong', u'small', u's', u'cite', u'q', u'dfn', u'abbr', u'data', u'time', u'code', u'var', u'samp', u'kbd', u'i', u'b', u'u', u'mark', u'ruby', u'rb', u'rt', u'rtc', u'rp', u'bdi', u'bdo', u'span', u'br', u'wbr', u'ins', u'del', u'img', u'iframe', u'embed', u'object', u'param', u'video', u'audio', u'source', u'track', u'map', u'area', u'table', u'caption', u'colgroup', u'col', u'tbody', u'thead', u'tfoot', u'tr', u'td', u'th', u'form', u'label', u'input', u'button', u'select', u'datalist', u'optgroup', u'option', u'textarea', u'keygen', u'output', u'progress', u'meter', u'fieldset', u'legend', u'details', u'summary', u'dialog', u'script', u'noscript', u'template', u'canvas', u'quot', u'amp', u'lt', u'gt', u'nbsp', u'iexcl', u'cent', u'pound', u'curren', u'yen', u'brvbar', u'sect', u'uml', u'copy', u'ordf', u'laquo', u'not', u'shy', u'reg', u'macr', u'deg', u'plusmn', u'sup2', u'sup3', u'acute', u'micro', u'para', u'middot', u'cedil', u'sup1', u'ordm', u'raquo', u'frac14', u'frac12', u'frac34', u'iquest', u'Agrave', u'Aacute', u'Acirc', u'Atilde', u'Auml', u'Aring', u'AElig', u'Ccedil', u'Egrave', u'Eacute', u'Ecirc', u'Euml', u'Igrave', u'Iacute', u'Icirc', u'Iuml', u'ETH', u'Ntilde', u'Ograve', u'Oacute', u'Ocirc', u'Otilde', u'Ouml', u'times', u'Oslash', u'Ugrave', u'Uacute', u'Ucirc', u'Uuml', u'Yacute', u'THORN', u'szlig', u'agrave', u'aacute', u'acirc', u'atilde', u'auml', u'aring', u'aelig', u'ccedil', u'egrave', u'eacute', u'ecirc', u'euml', u'igrave', u'iacute', u'icirc', u'iuml', u'eth', u'ntilde', u'ograve', u'oacute', u'ocirc', u'otilde', u'ouml', u'divide', u'oslash', u'ugrave', u'uacute', u'ucirc', u'uuml', u'yacute', u'thorn', u'yuml', u'OElig', u'oelig', u'Scaron', u'scaron', u'Yuml', u'fnof', u'circ', u'tilde', u'Alpha', u'Beta', u'Gamma', u'Delta', u'Epsilon', u'Zeta', u'Eta', u'Theta', u'Iota', u'Kappa', u'Lambda', u'Mu', u'Nu', u'Xi', u'Omicron', u'Pi', u'Rho', u'Sigma', u'Tau', u'Upsilon', u'Phi', u'Chi', u'Psi', u'Omega', u'alpha', u'beta', u'gamma', u'delta', u'epsilon', u'zeta', u'eta', u'theta', u'iota', u'kappa', u'lambda', u'mu', u'nu', u'xi', u'omicron', u'pi', u'rho', u'sigmaf', u'sigma', u'tau', u'upsilon', u'phi', u'chi', u'psi', u'omega', u'thetasym', u'upsih', u'piv', u'bull', u'hellip', u'prime', u'Prime', u'oline', u'frasl', u'weierp', u'image', u'real', u'trade', u'alefsym', u'larr', u'uarr', u'rarr', u'darr', u'harr', u'crarr', u'lArr', u'uArr', u'rArr', u'dArr', u'hArr', u'forall', u'part', u'exist', u'empty', u'nabla', u'isin', u'notin', u'ni', u'prod', u'sum', u'minus', u'lowast', u'radic', u'prop', u'infin', u'ang', u'and', u'or', u'cap', u'cup', u'int', u'there4', u'sim', u'cong', u'asymp', u'ne', u'equiv', u'le', u'ge', u'sub', u'sup', u'nsub', u'sube', u'supe', u'oplus', u'otimes', u'perp', u'sdot', u'lceil', u'rceil', u'lfloor', u'rfloor', u'lang', u'rang', u'loz', u'spades', u'clubs', u'hearts', u'diams', u'ensp', u'emsp', u'thinsp', u'zwnj', u'zwj', u'lrm', u'rlm', u'ndash', u'mdash', u'lsquo', u'rsquo', u'sbquo', u'ldquo', u'rdquo', u'bdquo', u'dagger', u'Dagger', u'permil', u'lsaquo'] |
def clojure_binary_impl(ctx):
toolchain = ctx.toolchains["@rules_clojure//:toolchain"]
deps = depset(
direct = toolchain.files.runtime,
transitive = [dep[JavaInfo].transitive_runtime_deps for dep in ctx.attr.deps],
)
executable = ctx.actions.declare_file(ctx.label.name)
ctx.actions.write(
output = executable,
content = "{java} -cp {classpath} clojure.main -m {main} $@".format(
java = toolchain.java_runfiles,
classpath = ":".join([f.short_path for f in deps.to_list()]),
main = ctx.attr.main,
),
)
return DefaultInfo(
executable = executable,
runfiles = ctx.runfiles(
files = toolchain.files.scripts + toolchain.files.jdk,
transitive_files = deps,
),
)
| def clojure_binary_impl(ctx):
toolchain = ctx.toolchains['@rules_clojure//:toolchain']
deps = depset(direct=toolchain.files.runtime, transitive=[dep[JavaInfo].transitive_runtime_deps for dep in ctx.attr.deps])
executable = ctx.actions.declare_file(ctx.label.name)
ctx.actions.write(output=executable, content='{java} -cp {classpath} clojure.main -m {main} $@'.format(java=toolchain.java_runfiles, classpath=':'.join([f.short_path for f in deps.to_list()]), main=ctx.attr.main))
return default_info(executable=executable, runfiles=ctx.runfiles(files=toolchain.files.scripts + toolchain.files.jdk, transitive_files=deps)) |
#
# PySNMP MIB module CHIPNET-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHIPNET-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:31:30 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion")
DisplayString, = mibBuilder.importSymbols("RFC1155-SMI", "DisplayString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Unsigned32, MibIdentifier, NotificationType, ModuleIdentity, ObjectIdentity, Counter32, Integer32, Counter64, Gauge32, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, enterprises, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibIdentifier", "NotificationType", "ModuleIdentity", "ObjectIdentity", "Counter32", "Integer32", "Counter64", "Gauge32", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "enterprises", "iso")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
chipcom = MibIdentifier((1, 3, 6, 1, 4, 1, 49))
chipmib02 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2))
chipGen = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 1))
chipEcho = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 2))
chipProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3))
chipExperiment = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4))
chipTTY = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 5))
chipTFTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 6))
chipDownload = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 7))
online = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1))
oebm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2))
midnight = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3))
workGroupHub = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4))
emm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5))
chipBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6))
trmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7))
fmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8))
focus1 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9))
oeim = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10))
chipExpTokenRing = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1))
dot1dBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14))
dot5 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1))
olAgents = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1))
olConc = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2))
olEnv = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3))
olModules = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4))
olNets = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5))
olGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6))
olAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7))
olSpecMods = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4))
ol50nnMCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3))
ol51nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4))
ol51nnMFIB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5))
ol51nnMUTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6))
ol51nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7))
ol51nnMBNC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8))
ol51nnBEE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9))
ol51nnRES = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10))
ol51nnREE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11))
ol51nnMAUIF = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12))
ol51nnMAUIM = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13))
ol5208MTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14))
ol51nnMFP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15))
ol51nnMFBP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16))
ol51nnMTPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17))
ol51nnMTPPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18))
ol52nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19))
ol52nnMFR = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20))
ol51nnMTS = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21))
ol51nnMFL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22))
ol50nnMRCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23))
ol51nnMFB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24))
ol53nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25))
ol53nnMFBMIC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26))
ol53nnMFIBST = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27))
ol53nnMSTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28))
ol51nnMTPCL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29))
ol52nnBTT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30))
ol51nnIx = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31))
ol52nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32))
ol50nnMHCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33))
olNet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1))
olEnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2))
olTRnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3))
olFDDInet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4))
hubSysGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1))
hardwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2))
softwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3))
hubGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4))
boardGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5))
portGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6))
alarmGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7))
olThresh = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1))
olThreshControl = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1))
class MacAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
olNetDPTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1), )
if mibBuilder.loadTexts: olNetDPTable.setStatus('mandatory')
olNetDPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1), ).setIndexNames((0, "CHIPNET-MIB", "olNetDPDataPath"))
if mibBuilder.loadTexts: olNetDPEntry.setStatus('mandatory')
olNetDPDataPath = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(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))).clone(namedValues=NamedValues(("ethernet-path-1", 6), ("ethernet-path-2", 7), ("ethernet-path-3", 8), ("token-ring-path-1", 9), ("token-ring-path-2", 10), ("token-ring-path-3", 11), ("token-ring-path-4", 12), ("token-ring-path-5", 13), ("token-ring-path-6", 14), ("token-ring-path-7", 15), ("token-ring-path-8", 16), ("token-ring-path-9", 17), ("token-ring-path-10", 18), ("token-ring-path-11", 19), ("token-ring-path-12", 20), ("token-ring-path-13", 21), ("token-ring-path-14", 22), ("token-ring-path-15", 23), ("fddi-path-1", 24), ("fddi-path-2", 25), ("fddi-path-3", 26), ("fddi-path-4", 27), ("fddi-path-5", 28), ("fddi-path-6", 29), ("fddi-path-7", 30), ("fddi-path-8", 31)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: olNetDPDataPath.setStatus('mandatory')
olNetDPNetID = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("notUsed", 1), ("otherProto", 2), ("ethernet-1", 6), ("ethernet-2", 7), ("ethernet-3", 8), ("token-ring-1", 9), ("token-ring-2", 10), ("token-ring-3", 11), ("token-ring-4", 12), ("token-ring-5", 13), ("token-ring-6", 14), ("token-ring-7", 15), ("fddi-1", 16), ("fddi-2", 17), ("fddi-3", 18), ("fddi-4", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: olNetDPNetID.setStatus('mandatory')
olNetSecurityMACTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2), )
if mibBuilder.loadTexts: olNetSecurityMACTable.setStatus('mandatory')
olNetSecurityMACEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1), ).setIndexNames((0, "CHIPNET-MIB", "olNetSecurityMACSlotIndex"), (0, "CHIPNET-MIB", "olNetSecurityMACPortIndex"), (0, "CHIPNET-MIB", "olNetSecurityMACAddress"))
if mibBuilder.loadTexts: olNetSecurityMACEntry.setStatus('mandatory')
olNetSecurityMACSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: olNetSecurityMACSlotIndex.setStatus('mandatory')
olNetSecurityMACPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: olNetSecurityMACPortIndex.setStatus('mandatory')
olNetSecurityMACAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 3), MacAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: olNetSecurityMACAddress.setStatus('mandatory')
olNetSecurityMACMode = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: olNetSecurityMACMode.setStatus('mandatory')
olNetSecurityMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: olNetSecurityMACStatus.setStatus('mandatory')
mibBuilder.exportSymbols("CHIPNET-MIB", olNetDPDataPath=olNetDPDataPath, oebm=oebm, olNetSecurityMACAddress=olNetSecurityMACAddress, olNetDPNetID=olNetDPNetID, olNetDPEntry=olNetDPEntry, softwareGroup=softwareGroup, ol51nnMTP=ol51nnMTP, focus1=focus1, ol51nnMUTP=ol51nnMUTP, olEnv=olEnv, olFDDInet=olFDDInet, boardGroup=boardGroup, hubSysGroup=hubSysGroup, ol51nnMTPCL=ol51nnMTPCL, ol51nnMAUIM=ol51nnMAUIM, ol51nnMFIB=ol51nnMFIB, ol53nnMFBMIC=ol53nnMFBMIC, olNetSecurityMACPortIndex=olNetSecurityMACPortIndex, ol51nnMTS=ol51nnMTS, olNetSecurityMACStatus=olNetSecurityMACStatus, chipExperiment=chipExperiment, emm=emm, ol51nnMTPL=ol51nnMTPL, olConc=olConc, chipBridge=chipBridge, olNetDPTable=olNetDPTable, chipTFTP=chipTFTP, oeim=oeim, ol51nnMMGT=ol51nnMMGT, olSpecMods=olSpecMods, alarmGroup=alarmGroup, ol50nnMHCTL=ol50nnMHCTL, ol51nnMBNC=ol51nnMBNC, MacAddress=MacAddress, olGroups=olGroups, dot1dBridge=dot1dBridge, chipEcho=chipEcho, chipDownload=chipDownload, ol53nnMMGT=ol53nnMMGT, ol52nnMFR=ol52nnMFR, ol51nnREE=ol51nnREE, ol50nnMRCTL=ol50nnMRCTL, ol52nnMMGT=ol52nnMMGT, ol50nnMCTL=ol50nnMCTL, ol53nnMSTP=ol53nnMSTP, olNets=olNets, ol51nnMAUIF=ol51nnMAUIF, ol51nnMFBP=ol51nnMFBP, chipGen=chipGen, chipcom=chipcom, chipmib02=chipmib02, olAlarm=olAlarm, ol51nnRES=ol51nnRES, olThresh=olThresh, olNetSecurityMACSlotIndex=olNetSecurityMACSlotIndex, olAgents=olAgents, midnight=midnight, ol51nnIx=ol51nnIx, ol51nnMFB=ol51nnMFB, olEnet=olEnet, online=online, ol52nnMTP=ol52nnMTP, trmm=trmm, chipTTY=chipTTY, olModules=olModules, ol53nnMFIBST=ol53nnMFIBST, chipExpTokenRing=chipExpTokenRing, ol5208MTP=ol5208MTP, ol51nnMFP=ol51nnMFP, hubGroup=hubGroup, hardwareGroup=hardwareGroup, olNetSecurityMACMode=olNetSecurityMACMode, ol51nnMTPPL=ol51nnMTPPL, ol51nnBEE=ol51nnBEE, ol51nnMFL=ol51nnMFL, ol52nnBTT=ol52nnBTT, olNet=olNet, olTRnet=olTRnet, fmm=fmm, olNetSecurityMACTable=olNetSecurityMACTable, portGroup=portGroup, dot5=dot5, chipProducts=chipProducts, olNetSecurityMACEntry=olNetSecurityMACEntry, workGroupHub=workGroupHub, olThreshControl=olThreshControl)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion')
(display_string,) = mibBuilder.importSymbols('RFC1155-SMI', 'DisplayString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, mib_identifier, notification_type, module_identity, object_identity, counter32, integer32, counter64, gauge32, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, enterprises, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'MibIdentifier', 'NotificationType', 'ModuleIdentity', 'ObjectIdentity', 'Counter32', 'Integer32', 'Counter64', 'Gauge32', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'enterprises', 'iso')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
chipcom = mib_identifier((1, 3, 6, 1, 4, 1, 49))
chipmib02 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2))
chip_gen = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 1))
chip_echo = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 2))
chip_products = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3))
chip_experiment = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4))
chip_tty = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 5))
chip_tftp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 6))
chip_download = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 7))
online = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1))
oebm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2))
midnight = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3))
work_group_hub = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4))
emm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5))
chip_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6))
trmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7))
fmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8))
focus1 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9))
oeim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10))
chip_exp_token_ring = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1))
dot1d_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14))
dot5 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1))
ol_agents = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1))
ol_conc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2))
ol_env = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3))
ol_modules = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4))
ol_nets = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5))
ol_groups = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6))
ol_alarm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7))
ol_spec_mods = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4))
ol50nn_mctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3))
ol51nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4))
ol51nn_mfib = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5))
ol51nn_mutp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6))
ol51nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7))
ol51nn_mbnc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8))
ol51nn_bee = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9))
ol51nn_res = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10))
ol51nn_ree = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11))
ol51nn_mauif = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12))
ol51nn_mauim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13))
ol5208_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14))
ol51nn_mfp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15))
ol51nn_mfbp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16))
ol51nn_mtpl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17))
ol51nn_mtppl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18))
ol52nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19))
ol52nn_mfr = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20))
ol51nn_mts = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21))
ol51nn_mfl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22))
ol50nn_mrctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23))
ol51nn_mfb = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24))
ol53nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25))
ol53nn_mfbmic = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26))
ol53nn_mfibst = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27))
ol53nn_mstp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28))
ol51nn_mtpcl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29))
ol52nn_btt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30))
ol51nn_ix = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31))
ol52nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32))
ol50nn_mhctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33))
ol_net = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1))
ol_enet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2))
ol_t_rnet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3))
ol_fdd_inet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4))
hub_sys_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1))
hardware_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2))
software_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3))
hub_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4))
board_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5))
port_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6))
alarm_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7))
ol_thresh = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1))
ol_thresh_control = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1))
class Macaddress(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6)
fixed_length = 6
ol_net_dp_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1))
if mibBuilder.loadTexts:
olNetDPTable.setStatus('mandatory')
ol_net_dp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1)).setIndexNames((0, 'CHIPNET-MIB', 'olNetDPDataPath'))
if mibBuilder.loadTexts:
olNetDPEntry.setStatus('mandatory')
ol_net_dp_data_path = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(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))).clone(namedValues=named_values(('ethernet-path-1', 6), ('ethernet-path-2', 7), ('ethernet-path-3', 8), ('token-ring-path-1', 9), ('token-ring-path-2', 10), ('token-ring-path-3', 11), ('token-ring-path-4', 12), ('token-ring-path-5', 13), ('token-ring-path-6', 14), ('token-ring-path-7', 15), ('token-ring-path-8', 16), ('token-ring-path-9', 17), ('token-ring-path-10', 18), ('token-ring-path-11', 19), ('token-ring-path-12', 20), ('token-ring-path-13', 21), ('token-ring-path-14', 22), ('token-ring-path-15', 23), ('fddi-path-1', 24), ('fddi-path-2', 25), ('fddi-path-3', 26), ('fddi-path-4', 27), ('fddi-path-5', 28), ('fddi-path-6', 29), ('fddi-path-7', 30), ('fddi-path-8', 31)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
olNetDPDataPath.setStatus('mandatory')
ol_net_dp_net_id = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('notUsed', 1), ('otherProto', 2), ('ethernet-1', 6), ('ethernet-2', 7), ('ethernet-3', 8), ('token-ring-1', 9), ('token-ring-2', 10), ('token-ring-3', 11), ('token-ring-4', 12), ('token-ring-5', 13), ('token-ring-6', 14), ('token-ring-7', 15), ('fddi-1', 16), ('fddi-2', 17), ('fddi-3', 18), ('fddi-4', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
olNetDPNetID.setStatus('mandatory')
ol_net_security_mac_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2))
if mibBuilder.loadTexts:
olNetSecurityMACTable.setStatus('mandatory')
ol_net_security_mac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1)).setIndexNames((0, 'CHIPNET-MIB', 'olNetSecurityMACSlotIndex'), (0, 'CHIPNET-MIB', 'olNetSecurityMACPortIndex'), (0, 'CHIPNET-MIB', 'olNetSecurityMACAddress'))
if mibBuilder.loadTexts:
olNetSecurityMACEntry.setStatus('mandatory')
ol_net_security_mac_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
olNetSecurityMACSlotIndex.setStatus('mandatory')
ol_net_security_mac_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
olNetSecurityMACPortIndex.setStatus('mandatory')
ol_net_security_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 3), mac_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
olNetSecurityMACAddress.setStatus('mandatory')
ol_net_security_mac_mode = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
olNetSecurityMACMode.setStatus('mandatory')
ol_net_security_mac_status = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
olNetSecurityMACStatus.setStatus('mandatory')
mibBuilder.exportSymbols('CHIPNET-MIB', olNetDPDataPath=olNetDPDataPath, oebm=oebm, olNetSecurityMACAddress=olNetSecurityMACAddress, olNetDPNetID=olNetDPNetID, olNetDPEntry=olNetDPEntry, softwareGroup=softwareGroup, ol51nnMTP=ol51nnMTP, focus1=focus1, ol51nnMUTP=ol51nnMUTP, olEnv=olEnv, olFDDInet=olFDDInet, boardGroup=boardGroup, hubSysGroup=hubSysGroup, ol51nnMTPCL=ol51nnMTPCL, ol51nnMAUIM=ol51nnMAUIM, ol51nnMFIB=ol51nnMFIB, ol53nnMFBMIC=ol53nnMFBMIC, olNetSecurityMACPortIndex=olNetSecurityMACPortIndex, ol51nnMTS=ol51nnMTS, olNetSecurityMACStatus=olNetSecurityMACStatus, chipExperiment=chipExperiment, emm=emm, ol51nnMTPL=ol51nnMTPL, olConc=olConc, chipBridge=chipBridge, olNetDPTable=olNetDPTable, chipTFTP=chipTFTP, oeim=oeim, ol51nnMMGT=ol51nnMMGT, olSpecMods=olSpecMods, alarmGroup=alarmGroup, ol50nnMHCTL=ol50nnMHCTL, ol51nnMBNC=ol51nnMBNC, MacAddress=MacAddress, olGroups=olGroups, dot1dBridge=dot1dBridge, chipEcho=chipEcho, chipDownload=chipDownload, ol53nnMMGT=ol53nnMMGT, ol52nnMFR=ol52nnMFR, ol51nnREE=ol51nnREE, ol50nnMRCTL=ol50nnMRCTL, ol52nnMMGT=ol52nnMMGT, ol50nnMCTL=ol50nnMCTL, ol53nnMSTP=ol53nnMSTP, olNets=olNets, ol51nnMAUIF=ol51nnMAUIF, ol51nnMFBP=ol51nnMFBP, chipGen=chipGen, chipcom=chipcom, chipmib02=chipmib02, olAlarm=olAlarm, ol51nnRES=ol51nnRES, olThresh=olThresh, olNetSecurityMACSlotIndex=olNetSecurityMACSlotIndex, olAgents=olAgents, midnight=midnight, ol51nnIx=ol51nnIx, ol51nnMFB=ol51nnMFB, olEnet=olEnet, online=online, ol52nnMTP=ol52nnMTP, trmm=trmm, chipTTY=chipTTY, olModules=olModules, ol53nnMFIBST=ol53nnMFIBST, chipExpTokenRing=chipExpTokenRing, ol5208MTP=ol5208MTP, ol51nnMFP=ol51nnMFP, hubGroup=hubGroup, hardwareGroup=hardwareGroup, olNetSecurityMACMode=olNetSecurityMACMode, ol51nnMTPPL=ol51nnMTPPL, ol51nnBEE=ol51nnBEE, ol51nnMFL=ol51nnMFL, ol52nnBTT=ol52nnBTT, olNet=olNet, olTRnet=olTRnet, fmm=fmm, olNetSecurityMACTable=olNetSecurityMACTable, portGroup=portGroup, dot5=dot5, chipProducts=chipProducts, olNetSecurityMACEntry=olNetSecurityMACEntry, workGroupHub=workGroupHub, olThreshControl=olThreshControl) |
"""Constants for the Radio Thermostat integration."""
DOMAIN = "radiotherm"
TIMEOUT = 25
| """Constants for the Radio Thermostat integration."""
domain = 'radiotherm'
timeout = 25 |
electricity_bill = 0
water_bill = 20
internet_bill = 15
other_bills = 0
number_of_months = int(input())
total_el = 0
total_water = number_of_months * water_bill
total_net = number_of_months * internet_bill
total_other_bills = 0
for i in range (number_of_months):
electricity_bill = float(input())
other_bills = water_bill + internet_bill + electricity_bill + ((water_bill + internet_bill + electricity_bill) * 20 /100)
total_el +=electricity_bill
total_other_bills += other_bills
all_expenses = total_net + total_water + total_el + total_other_bills
average = all_expenses / number_of_months
print(f"Electricity: {total_el:.2f} lv")
print(f"Water: {total_water:.2f} lv")
print(f"Internet: {total_net:.2f} lv")
print(f"Other: {total_other_bills:.2f} lv")
print(f"Average: {average:.2f} lv")
| electricity_bill = 0
water_bill = 20
internet_bill = 15
other_bills = 0
number_of_months = int(input())
total_el = 0
total_water = number_of_months * water_bill
total_net = number_of_months * internet_bill
total_other_bills = 0
for i in range(number_of_months):
electricity_bill = float(input())
other_bills = water_bill + internet_bill + electricity_bill + (water_bill + internet_bill + electricity_bill) * 20 / 100
total_el += electricity_bill
total_other_bills += other_bills
all_expenses = total_net + total_water + total_el + total_other_bills
average = all_expenses / number_of_months
print(f'Electricity: {total_el:.2f} lv')
print(f'Water: {total_water:.2f} lv')
print(f'Internet: {total_net:.2f} lv')
print(f'Other: {total_other_bills:.2f} lv')
print(f'Average: {average:.2f} lv') |
"""
This module generates ANSI character codes to printing colors to terminals.
See: http://en.wikipedia.org/wiki/ANSI_escape_code
"""
CSI = '\033['
def code_to_chars(code):
return CSI + str(code) + 'm'
class AnsiCodes(object):
def __init__(self, codes):
for name in dir(codes):
if not name.startswith('_'):
value = getattr(codes, name)
setattr(self, name, code_to_chars(value))
class AnsiFore:
BLACK = 30
RED = 31
GREEN = 32
YELLOW = 33
BLUE = 34
MAGENTA = 35
CYAN = 36
WHITE = 37
RESET = 39
class AnsiBack:
BLACK = 40
RED = 41
GREEN = 42
YELLOW = 43
BLUE = 44
MAGENTA = 45
CYAN = 46
WHITE = 47
RESET = 49
class AnsiStyle:
BRIGHT = 1
DIM = 2
NORMAL = 22
RESET_ALL = 0
Fore = AnsiCodes(AnsiFore)
Back = AnsiCodes(AnsiBack)
Style = AnsiCodes(AnsiStyle)
| """
This module generates ANSI character codes to printing colors to terminals.
See: http://en.wikipedia.org/wiki/ANSI_escape_code
"""
csi = '\x1b['
def code_to_chars(code):
return CSI + str(code) + 'm'
class Ansicodes(object):
def __init__(self, codes):
for name in dir(codes):
if not name.startswith('_'):
value = getattr(codes, name)
setattr(self, name, code_to_chars(value))
class Ansifore:
black = 30
red = 31
green = 32
yellow = 33
blue = 34
magenta = 35
cyan = 36
white = 37
reset = 39
class Ansiback:
black = 40
red = 41
green = 42
yellow = 43
blue = 44
magenta = 45
cyan = 46
white = 47
reset = 49
class Ansistyle:
bright = 1
dim = 2
normal = 22
reset_all = 0
fore = ansi_codes(AnsiFore)
back = ansi_codes(AnsiBack)
style = ansi_codes(AnsiStyle) |
def test_errors_404(survey_runner):
response = survey_runner.test_client().get('/hfjdskahfjdkashfsa')
assert response.status_code == 404
assert '<title>Error</title' in response.get_data(True)
| def test_errors_404(survey_runner):
response = survey_runner.test_client().get('/hfjdskahfjdkashfsa')
assert response.status_code == 404
assert '<title>Error</title' in response.get_data(True) |
#from cStringIO import StringIO
class Message(object):
'''
Represents an AMQP message.
'''
def __init__(self, body=None, delivery_info=None, **properties):
if isinstance(body, unicode):
if properties.get('content_encoding', None) is None:
properties['content_encoding'] = 'utf-8'
body = body.encode(properties['content_encoding'])
self._body = body
self._delivery_info = delivery_info
self._properties = properties
@property
def body(self):
return self._body
def __len__(self):
return len( self._body )
def __nonzero__(self):
'''Have to define this because length is defined.'''
return True
def __eq__(self, other):
if isinstance(other,Message):
return self._properties == other._properties and \
self._body == other._body
return False
@property
def delivery_info(self):
return self._delivery_info
@property
def properties(self):
return self._properties
def __str__(self):
return "Message[body: %s, delivery_info: %s, properties: %s]"%\
( str(self._body).encode('string_escape'), self._delivery_info, self._properties )
| class Message(object):
"""
Represents an AMQP message.
"""
def __init__(self, body=None, delivery_info=None, **properties):
if isinstance(body, unicode):
if properties.get('content_encoding', None) is None:
properties['content_encoding'] = 'utf-8'
body = body.encode(properties['content_encoding'])
self._body = body
self._delivery_info = delivery_info
self._properties = properties
@property
def body(self):
return self._body
def __len__(self):
return len(self._body)
def __nonzero__(self):
"""Have to define this because length is defined."""
return True
def __eq__(self, other):
if isinstance(other, Message):
return self._properties == other._properties and self._body == other._body
return False
@property
def delivery_info(self):
return self._delivery_info
@property
def properties(self):
return self._properties
def __str__(self):
return 'Message[body: %s, delivery_info: %s, properties: %s]' % (str(self._body).encode('string_escape'), self._delivery_info, self._properties) |
class Solution:
def lengthOfLIS(self, nums) -> int:
# dp=[0 for i in range(len(nums))]
# res=1
# dp[0]=1
# for i in range(1,len(nums)):
# if nums[i]>nums[i-1]:
# dp[i]=dp[i-1]+1
# else:
# dp[i]=1
# res=max(res,dp[i])
# return res
dp = [[] for i in nums]
res = 1
dp[0] = [nums[0]]
for i in range(1, len(nums)):
res = max(res, self.dfs([], nums[:i + 1], res))
return res
def dfs(self,track, nums, res):
if not nums or len(nums) == 0:
res = max(res, len(track))
return res
for i in range(0, len(nums) - 1):
if i < nums[-1]:
track.append(i)
self.dfs(track, nums[:i], res)
track.pop()
if __name__ == '__main__':
sol=Solution()
sol.lengthOfLIS([10,9,2,5,3,7,101,18]) | class Solution:
def length_of_lis(self, nums) -> int:
dp = [[] for i in nums]
res = 1
dp[0] = [nums[0]]
for i in range(1, len(nums)):
res = max(res, self.dfs([], nums[:i + 1], res))
return res
def dfs(self, track, nums, res):
if not nums or len(nums) == 0:
res = max(res, len(track))
return res
for i in range(0, len(nums) - 1):
if i < nums[-1]:
track.append(i)
self.dfs(track, nums[:i], res)
track.pop()
if __name__ == '__main__':
sol = solution()
sol.lengthOfLIS([10, 9, 2, 5, 3, 7, 101, 18]) |
destinations = input()
command = input()
while not command == "Travel":
command = command.split(":")
if command[0] == "Add Stop":
index = int(command[1])
stop = command[2]
if index in range(len(destinations)):
destinations = destinations[:index] + stop + destinations[index:]
elif command[0] == 'Remove Stop':
start_index = int(command[1])
end_index = int(command[2])
if start_index in range(len(destinations)) and end_index in range(len(destinations)):
destinations = destinations[:start_index] + destinations[end_index+1:]
elif command[0] == 'Switch':
old_string = command[1]
new_string = command[2]
if old_string in destinations:
destinations = destinations.replace(old_string,new_string)
print(destinations)
command = input()
print(f"Ready for world tour! Planned stops: {destinations}") | destinations = input()
command = input()
while not command == 'Travel':
command = command.split(':')
if command[0] == 'Add Stop':
index = int(command[1])
stop = command[2]
if index in range(len(destinations)):
destinations = destinations[:index] + stop + destinations[index:]
elif command[0] == 'Remove Stop':
start_index = int(command[1])
end_index = int(command[2])
if start_index in range(len(destinations)) and end_index in range(len(destinations)):
destinations = destinations[:start_index] + destinations[end_index + 1:]
elif command[0] == 'Switch':
old_string = command[1]
new_string = command[2]
if old_string in destinations:
destinations = destinations.replace(old_string, new_string)
print(destinations)
command = input()
print(f'Ready for world tour! Planned stops: {destinations}') |
# Storage for table names to remove
tables_to_remove = [
'The Barbarian',
'The Bard',
'The Cleric',
'The Druid',
'The Fighter',
'The Monk',
'The Paladin',
'The Ranger',
'The Rogue',
'The Sorcerer',
'The Warlock',
'The Wizard',
'Character Advancement',
'Multiclass Spellcaster: Spell Slots per Spell Level',
'Standard Exchange Rates',
'Ability Scores and Modifiers',
'Animated Object Statistics',
'Precipitation',
'Temperature',
'Wind',
'Damage Severity by Level',
'Trap Save DCs and Attack Bonuses',
'Apparatus of the Crab Levers',
('Armor (light, medium, or heavy), rare (requires attunement) You have ',
'resistance to one type of damage while you wear this armor. The GM ',
'chooses the type or determines it randomly from the options below.'),
'Gray Bag of Tricks',
'Rust Bag of Tricks',
'Tan Bag of Tricks',
'Hit Dice by Size',
'Proficiency Bonus by Challenge Rating',
'Experience Points by Challenge Rating',
]
| tables_to_remove = ['The Barbarian', 'The Bard', 'The Cleric', 'The Druid', 'The Fighter', 'The Monk', 'The Paladin', 'The Ranger', 'The Rogue', 'The Sorcerer', 'The Warlock', 'The Wizard', 'Character Advancement', 'Multiclass Spellcaster: Spell Slots per Spell Level', 'Standard Exchange Rates', 'Ability Scores and Modifiers', 'Animated Object Statistics', 'Precipitation', 'Temperature', 'Wind', 'Damage Severity by Level', 'Trap Save DCs and Attack Bonuses', 'Apparatus of the Crab Levers', ('Armor (light, medium, or heavy), rare (requires attunement) You have ', 'resistance to one type of damage while you wear this armor. The GM ', 'chooses the type or determines it randomly from the options below.'), 'Gray Bag of Tricks', 'Rust Bag of Tricks', 'Tan Bag of Tricks', 'Hit Dice by Size', 'Proficiency Bonus by Challenge Rating', 'Experience Points by Challenge Rating'] |
# -*- coding: utf-8 -*-
"""
@author: yuan_xin
@contact: yuanxin9997@qq.com
@file: tabu_search_pdptw.py
@time: 2020/10/19 16:57
@description:
"""
| """
@author: yuan_xin
@contact: yuanxin9997@qq.com
@file: tabu_search_pdptw.py
@time: 2020/10/19 16:57
@description:
""" |
class Handler:
"""
The handler is responsible for running special events based on an instance.
Typical use-cases: Feed updates, email and push notifications.
Implement the handle_{action} function in order to execute code.
Default actions: create, update, delete
"""
model = None
def run(self, instance, action, **kwargs):
func = getattr(self, f"handle_{action}", None)
if func:
return func(instance, **kwargs)
raise ValueError("Action handler called with nn invalid action")
def handle_create(self, instance, **kwargs):
pass
def handle_update(self, instance, **kwargs):
pass
def handle_delete(self, instance, **kwargs):
pass
| class Handler:
"""
The handler is responsible for running special events based on an instance.
Typical use-cases: Feed updates, email and push notifications.
Implement the handle_{action} function in order to execute code.
Default actions: create, update, delete
"""
model = None
def run(self, instance, action, **kwargs):
func = getattr(self, f'handle_{action}', None)
if func:
return func(instance, **kwargs)
raise value_error('Action handler called with nn invalid action')
def handle_create(self, instance, **kwargs):
pass
def handle_update(self, instance, **kwargs):
pass
def handle_delete(self, instance, **kwargs):
pass |
#program to find maximum and the minimum value in a set.
#Create a set
seta = set([5, 10, 3, 15, 2, 20])
#Find maximum value
print(max(seta))
#Find minimum value
print(min(seta))
| seta = set([5, 10, 3, 15, 2, 20])
print(max(seta))
print(min(seta)) |
"""
Second test case of example xml files to parse and compare with each other.
Differences between form_xml_case_1 and form_xml_case_1_after:
- Rename 'name' to 'your_name'
- Add 'mood' field
XML of Surevey instance (answer to xform)
"""
DEFAULT_MOOD = 'good'
FIELDS_2 = [
'name', 'age', 'picture', 'has_children', 'gps', 'web_browsers'
]
form_xml_case_2 = '''<?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>tutorial</h:title>
<model>
<instance>
<tutorial id="tutorial">
<formhub>
<uuid/>
</formhub>
<name/>
<age/>
<picture/>
<has_children/>
<gps/>
<web_browsers/>
<meta>
<instanceID/>
</meta>
</tutorial>
</instance>
<bind nodeset="/tutorial/name" type="string"/>
<bind nodeset="/tutorial/age" type="int"/>
<bind nodeset="/tutorial/picture" type="binary"/>
<bind nodeset="/tutorial/has_children" type="select1"/>
<bind nodeset="/tutorial/gps" type="geopoint"/>
<bind nodeset="/tutorial/web_browsers" type="select"/>
<bind calculate="concat(\'uuid:\', uuid())" nodeset="/tutorial/meta/instanceID" readonly="true()" type="string"/>
<bind calculate="\'a842eee12a774ff5b688c7b77c5ba467\'" nodeset="/tutorial/formhub/uuid" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/tutorial/name">
<label>1. What is your name?</label>
</input>
<input ref="/tutorial/age">
<label>2. How old are you?</label>
</input>
<upload mediatype="image/*" ref="/tutorial/picture">
<label>3. May I take your picture?</label>
</upload>
<select1 ref="/tutorial/has_children">
<label>4. Do you have any children?</label>
<item>
<label>no</label>
<value>0</value>
</item>
<item>
<label>yes</label>
<value>1</value>
</item>
</select1>
<input ref="/tutorial/gps">
<label>5. Record your GPS coordinates.</label>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<select ref="/tutorial/web_browsers">
<label>6. What web browsers do you use?</label>
<item>
<label>Mozilla Firefox</label>
<value>firefox</value>
</item>
<item>
<label>Google Chrome</label>
<value>chrome</value>
</item>
<item>
<label>Internet Explorer</label>
<value>ie</value>
</item>
<item>
<label>Safari</label>
<value>safari</value>
</item>
</select>
</h:body>
</h:html>
'''
form_xml_case_2_after = '''<?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>tutorial2</h:title>
<model>
<instance>
<tutorial2 id="tutorial2">
<formhub>
<uuid/>
</formhub>
<your_name/>
<age/>
<picture/>
<has_children/>
<gps/>
<web_browsers/>
<mood/>
<meta>
<instanceID/>
</meta>
</tutorial2>
</instance>
<bind nodeset="/tutorial2/your_name" type="string"/>
<bind nodeset="/tutorial2/age" type="int"/>
<bind nodeset="/tutorial2/picture" type="binary"/>
<bind nodeset="/tutorial2/has_children" type="select1"/>
<bind nodeset="/tutorial2/gps" type="geopoint"/>
<bind nodeset="/tutorial2/web_browsers" type="select"/>
<bind nodeset="/tutorial2/mood" type="string"/>
<bind calculate="concat(\'uuid:\', uuid())" nodeset="/tutorial2/meta/instanceID" readonly="true()" type="string"/>
<bind calculate="\'a842eee12a774ff5b688c7b77c5ba467\'" nodeset="/tutorial2/formhub/uuid" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/tutorial2/your_name">
<label>1. What is your name?</label>
</input>
<input ref="/tutorial2/age">
<label>2. How old are you?</label>
</input>
<upload mediatype="image/*" ref="/tutorial2/picture">
<label>3. May I take your picture?</label>
</upload>
<select1 ref="/tutorial2/has_children">
<label>4. Do you have any children?</label>
<item>
<label>no</label>
<value>0</value>
</item>
<item>
<label>yes</label>
<value>1</value>
</item>
</select1>
<input ref="/tutorial2/gps">
<label>5. Record your GPS coordinates.</label>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<select ref="/tutorial2/web_browsers">
<label>6. What web browsers do you use?</label>
<item>
<label>Mozilla Firefox</label>
<value>firefox</value>
</item>
<item>
<label>Google Chrome</label>
<value>chrome</value>
</item>
<item>
<label>Internet Explorer</label>
<value>ie</value>
</item>
<item>
<label>Safari</label>
<value>safari</value>
</item>
</select>
<input ref="/tutorial2/mood">
<label>7. How are you today?</label>
</input>
</h:body>
</h:html>
'''
survey_xml_2 = '''<tutorial2 xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" id="tutorial2">
<formhub>
<uuid>a842eee12a774ff5b688c7b77c5ba467</uuid>
</formhub>
<name>Alfred Tarski</name>
<age>20</age>
<picture/>
<has_children>0</has_children>
<gps>0.000001 0.000001 0 0</gps>
<web_browsers>chrome</web_browsers>
<meta>
<instanceID>uuid:fc9eebf7-49f2-4857-b51f-bf0e385a53f5</instanceID>
</meta>
</tutorial2>
'''
survey_2_after_migration = '''<tutorial2 xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" id="tutorial2">
<formhub>
<uuid>a842eee12a774ff5b688c7b77c5ba467</uuid>
</formhub>
<your_name>Alfred Tarski</your_name>
<age>20</age>
<picture/>
<has_children>0</has_children>
<gps>0.000001 0.000001 0 0</gps>
<web_browsers>chrome</web_browsers>
<mood>good</mood>
<meta>
<instanceID>uuid:fc9eebf7-49f2-4857-b51f-bf0e385a53f5</instanceID>
</meta>
</tutorial2>
'''
append_extra_data_2 = lambda survey, data: survey.replace('</tutorial2>', data + '</tutorial2>')
| """
Second test case of example xml files to parse and compare with each other.
Differences between form_xml_case_1 and form_xml_case_1_after:
- Rename 'name' to 'your_name'
- Add 'mood' field
XML of Surevey instance (answer to xform)
"""
default_mood = 'good'
fields_2 = ['name', 'age', 'picture', 'has_children', 'gps', 'web_browsers']
form_xml_case_2 = '<?xml version="1.0" encoding="utf-8"?>\n<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">\n <h:head>\n <h:title>tutorial</h:title>\n <model>\n <instance>\n <tutorial id="tutorial">\n <formhub>\n <uuid/>\n </formhub>\n <name/>\n <age/>\n <picture/>\n <has_children/>\n <gps/>\n <web_browsers/>\n <meta>\n <instanceID/>\n </meta>\n </tutorial>\n </instance>\n <bind nodeset="/tutorial/name" type="string"/>\n <bind nodeset="/tutorial/age" type="int"/>\n <bind nodeset="/tutorial/picture" type="binary"/>\n <bind nodeset="/tutorial/has_children" type="select1"/>\n <bind nodeset="/tutorial/gps" type="geopoint"/>\n <bind nodeset="/tutorial/web_browsers" type="select"/>\n <bind calculate="concat(\'uuid:\', uuid())" nodeset="/tutorial/meta/instanceID" readonly="true()" type="string"/>\n <bind calculate="\'a842eee12a774ff5b688c7b77c5ba467\'" nodeset="/tutorial/formhub/uuid" type="string"/>\n </model>\n </h:head>\n <h:body>\n <input ref="/tutorial/name">\n <label>1. What is your name?</label>\n </input>\n <input ref="/tutorial/age">\n <label>2. How old are you?</label>\n </input>\n <upload mediatype="image/*" ref="/tutorial/picture">\n <label>3. May I take your picture?</label>\n </upload>\n <select1 ref="/tutorial/has_children">\n <label>4. Do you have any children?</label>\n <item>\n <label>no</label>\n <value>0</value>\n </item>\n <item>\n <label>yes</label>\n <value>1</value>\n </item>\n </select1>\n <input ref="/tutorial/gps">\n <label>5. Record your GPS coordinates.</label>\n <hint>GPS coordinates can only be collected when outside.</hint>\n </input>\n <select ref="/tutorial/web_browsers">\n <label>6. What web browsers do you use?</label>\n <item>\n <label>Mozilla Firefox</label>\n <value>firefox</value>\n </item>\n <item>\n <label>Google Chrome</label>\n <value>chrome</value>\n </item>\n <item>\n <label>Internet Explorer</label>\n <value>ie</value>\n </item>\n <item>\n <label>Safari</label>\n <value>safari</value>\n </item>\n </select>\n </h:body>\n</h:html>\n'
form_xml_case_2_after = '<?xml version="1.0" encoding="utf-8"?>\n<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">\n <h:head>\n <h:title>tutorial2</h:title>\n <model>\n <instance>\n <tutorial2 id="tutorial2">\n <formhub>\n <uuid/>\n </formhub>\n <your_name/>\n <age/>\n <picture/>\n <has_children/>\n <gps/>\n <web_browsers/>\n <mood/>\n <meta>\n <instanceID/>\n </meta>\n </tutorial2>\n </instance>\n <bind nodeset="/tutorial2/your_name" type="string"/>\n <bind nodeset="/tutorial2/age" type="int"/>\n <bind nodeset="/tutorial2/picture" type="binary"/>\n <bind nodeset="/tutorial2/has_children" type="select1"/>\n <bind nodeset="/tutorial2/gps" type="geopoint"/>\n <bind nodeset="/tutorial2/web_browsers" type="select"/>\n <bind nodeset="/tutorial2/mood" type="string"/>\n <bind calculate="concat(\'uuid:\', uuid())" nodeset="/tutorial2/meta/instanceID" readonly="true()" type="string"/>\n <bind calculate="\'a842eee12a774ff5b688c7b77c5ba467\'" nodeset="/tutorial2/formhub/uuid" type="string"/>\n </model>\n </h:head>\n <h:body>\n <input ref="/tutorial2/your_name">\n <label>1. What is your name?</label>\n </input>\n <input ref="/tutorial2/age">\n <label>2. How old are you?</label>\n </input>\n <upload mediatype="image/*" ref="/tutorial2/picture">\n <label>3. May I take your picture?</label>\n </upload>\n <select1 ref="/tutorial2/has_children">\n <label>4. Do you have any children?</label>\n <item>\n <label>no</label>\n <value>0</value>\n </item>\n <item>\n <label>yes</label>\n <value>1</value>\n </item>\n </select1>\n <input ref="/tutorial2/gps">\n <label>5. Record your GPS coordinates.</label>\n <hint>GPS coordinates can only be collected when outside.</hint>\n </input>\n <select ref="/tutorial2/web_browsers">\n <label>6. What web browsers do you use?</label>\n <item>\n <label>Mozilla Firefox</label>\n <value>firefox</value>\n </item>\n <item>\n <label>Google Chrome</label>\n <value>chrome</value>\n </item>\n <item>\n <label>Internet Explorer</label>\n <value>ie</value>\n </item>\n <item>\n <label>Safari</label>\n <value>safari</value>\n </item>\n </select>\n <input ref="/tutorial2/mood">\n <label>7. How are you today?</label>\n </input>\n </h:body>\n</h:html>\n'
survey_xml_2 = '<tutorial2 xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" id="tutorial2">\n <formhub>\n <uuid>a842eee12a774ff5b688c7b77c5ba467</uuid>\n </formhub>\n <name>Alfred Tarski</name>\n <age>20</age>\n <picture/>\n <has_children>0</has_children>\n <gps>0.000001 0.000001 0 0</gps>\n <web_browsers>chrome</web_browsers>\n <meta>\n <instanceID>uuid:fc9eebf7-49f2-4857-b51f-bf0e385a53f5</instanceID>\n </meta>\n</tutorial2>\n'
survey_2_after_migration = '<tutorial2 xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" id="tutorial2">\n <formhub>\n <uuid>a842eee12a774ff5b688c7b77c5ba467</uuid>\n </formhub>\n <your_name>Alfred Tarski</your_name>\n <age>20</age>\n <picture/>\n <has_children>0</has_children>\n <gps>0.000001 0.000001 0 0</gps>\n <web_browsers>chrome</web_browsers>\n <mood>good</mood>\n <meta>\n <instanceID>uuid:fc9eebf7-49f2-4857-b51f-bf0e385a53f5</instanceID>\n </meta>\n</tutorial2>\n'
append_extra_data_2 = lambda survey, data: survey.replace('</tutorial2>', data + '</tutorial2>') |
n=input("enter the enumber:")
length=len(n)
org=int(n)
sum=0
n1=int(n)
while(n1!=0):
rem=n1%10
sum+=(rem**length)
n1=n1//10
if(sum==org):
print("it is a armstrong number")
else:
print("it is not an armstrong number")
| n = input('enter the enumber:')
length = len(n)
org = int(n)
sum = 0
n1 = int(n)
while n1 != 0:
rem = n1 % 10
sum += rem ** length
n1 = n1 // 10
if sum == org:
print('it is a armstrong number')
else:
print('it is not an armstrong number') |
"""BVP Solvers."""
# class BVPFilter:
# def __init__(dynamics_model, measurement_model, initrv):
# self.kalman = MyKalman(
# dynamics_model=bridge_prior, measurement_model=measmod, initrv=initrv
# )
# def single_solve(dataset, times):
# kalman_posterior = kalman.iterated_filtsmooth(
# dataset=data, times=grid, stopcrit=stopcrit_ieks
# )
| """BVP Solvers.""" |
# https://leetcode.com/problems/simplify-path
class Solution:
def simplifyPath(self, path: str) -> str:
stack = []
for i in path.split('/'):
if stack and i == "..":
stack.pop()
elif i not in [".", "", ".."]:
stack.append(i)
return '/' + '/'.join(stack)
| class Solution:
def simplify_path(self, path: str) -> str:
stack = []
for i in path.split('/'):
if stack and i == '..':
stack.pop()
elif i not in ['.', '', '..']:
stack.append(i)
return '/' + '/'.join(stack) |
result=("0")
number1=int(input("Enter first number: "))
number2=int(input("Enter second number: "))
operator=str(input("""Choose from: 'addition', 'subtraction', 'multiplication' or 'division':
"""))
operator = operator.lower()
if operator == "addition":
result=str((number1+number2))
print("The result is " + result)
elif operator == "subtraction":
result=str((number1-number2))
print("The result is " + result)
elif operator == "multiplication":
result=str((number1*number2))
print("The result is " + result)
elif operator == "division":
result=str((number1/number2))
print("The result is " + result)
| result = '0'
number1 = int(input('Enter first number: '))
number2 = int(input('Enter second number: '))
operator = str(input("Choose from: 'addition', 'subtraction', 'multiplication' or 'division': \n"))
operator = operator.lower()
if operator == 'addition':
result = str(number1 + number2)
print('The result is ' + result)
elif operator == 'subtraction':
result = str(number1 - number2)
print('The result is ' + result)
elif operator == 'multiplication':
result = str(number1 * number2)
print('The result is ' + result)
elif operator == 'division':
result = str(number1 / number2)
print('The result is ' + result) |
#!/usr/bin/python
'''!
Program to compute the odds for the game of Baccarat.
@author <a href="email:fulkgl@gmail.com">George L Fulk</a>
'''
def bacc_value(num1, num2):
'''!
Compute the baccarat value with 2 inputed integer rank values (0..12).
'''
if num1 > 9:
num1 = 0
if num2 > 9:
num2 = 0
num1 += num2
if num1 > 9:
num1 -= 10
return num1
def comma(number):
'''!
Convert an integer to comma seperated string.
'''
str_int = ""
sign = ""
quo = number
if number < 0:
sign = '-'
quo = -number
while quo > 999:
rem = quo % 1000
str_int = ",%03d%s" % (rem, str_int)
quo = quo // 1000
return "%s%d%s" % (sign, quo, str_int)
class ComputeBaccaratOdds(object):
'''!
Compute the odds for the game of Baccarat.
'''
def __init__(self, number_decks=8):
'''!
Compute Baccarat odds for the given number of decks of cards.
The range of valid number of decks is limited to 12. The 12 limit
is an attempt to prevent attacks or bad coding using up resources.
@param numberDecks Number of decks to initialized the odds.
The range of valid value is 1 at a minimum up to 12.
@throws java.lang.IllegalArgumentException
Input arguement numberDecks is not valid.
'''
# validate args
if not isinstance(number_decks, int) or \
(number_decks < 0) or (number_decks > 12):
raise ValueError("number_decks(%s) not a legal value" %
str(number_decks))
# create the shoe
self.saved_shoe = 13 * [4 * number_decks]
# save the dragon table
self.dragon_pay_table = 3 * [None]
self.dragon_natural_win = 10
self.dragon_natural_tie = 11
# 0, 1, 2, 3, 4, 5, 6, 7, 8 , 9,nat,nT
self.dragon_pay_table[1-1] = [-1, -1, -1, -1, 1, 2, 4, 6, 10, 30, 1, 0]
self.dragon_pay_table[2-1] = [-1, -1, -1, -1, 1, 3, 4, 7, 8, 20, 1, 0]
self.dragon_pay_table[3-1] = [-1, -1, -1, -1, 2, 2, 4, 4, 10, 30, 1, 0]
# ^ ^
# Number of hand combinations that result in Banker,Player,Tie wins.
self.count_banker = 0
self.count_player = 0
self.count_tie = 0
self.count_naturals = 0
self.count_pair = 0
self.count_nonpair = 0
self.count_banker_3card7 = 0
self.count_player_3card8 = 0
self.count_banker_dragon = [0, 0, 0]
self.freq_banker_dragon = [0, 0, 0]
self.count_player_dragon = [0, 0, 0]
self.freq_player_dragon = [0, 0, 0]
# perform the math computation
self.recompute(self.saved_shoe)
def record(self, value_banker, value_player, count,
is_naturals=True,
is_banker_3cards=False,
is_player_3cards=False):
'''!
Record the results of a hand combination.
'''
diff = value_banker - value_player
if value_player < value_banker:
# Banker wins
self.count_banker += count
if is_banker_3cards and value_banker == 7:
self.count_banker_3card7 += count
if is_naturals: # and not a tie
diff = self.dragon_natural_win
for table_num in range(3): # various dragon tables
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_banker_dragon[table_num] += count * dragon_pays
if dragon_pays >= 0:
self.freq_banker_dragon[table_num] += count
self.count_player_dragon[table_num] += -count
elif value_player > value_banker:
# Player wins
self.count_player += count
if is_player_3cards and value_player == 8:
self.count_player_3card8 += count
diff = -diff
if is_naturals: # and not a tie
diff = self.dragon_natural_win
for table_num in range(3): # various dragon tables
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_player_dragon[table_num] += count * dragon_pays
if dragon_pays >= 0:
self.freq_player_dragon[table_num] += count
self.count_banker_dragon[table_num] += -count
else:
# Tie wins
self.count_tie += count
if is_naturals:
diff = self.dragon_natural_tie
# special case, table 3 counts the pushes
self.freq_banker_dragon[3 - 1] += count
self.freq_player_dragon[3 - 1] += count
for table_num in range(3): # various dragon tables
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_player_dragon[table_num] += count * dragon_pays
self.count_banker_dragon[table_num] += count * dragon_pays
def not_naturals(self, value_p, value_b, shoe_size, shoe, count4):
'''!
Handle the not a naturals situation. Look for a third player and
third banker situation.
'''
# = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13]
draw_table = [3, 4, 4, 5, 5, 6, 6, 2, 3, 3, 3, 3, 3, 3]
if value_p <= 5:
# Player hits
for p3 in range(len(shoe)):
if shoe[p3] != 0:
if value_b <= draw_table[p3]:
# Banker hits
value_p3 = bacc_value(value_p, 1 + p3)
count5 = count4 * shoe[p3]
shoe[p3] -= 1
for b3 in range(len(shoe)):
if shoe[b3] != 0:
count6 = count5 * shoe[b3]
value_b3 = bacc_value(value_b, 1 + b3)
self.record(value_b3, value_p3, count6,
False, # not natural
True, # 3 card banker
True) # 3 card player
shoe[p3] += 1
else:
# Banker stands
count6 = count4 * shoe[p3] * (shoe_size - 1)
value_p3 = bacc_value(value_p, 1 + p3)
self.record(value_b, value_p3, count6,
False, # not natural
False, # not 3 card banker
True) # player 3 cards
else:
# Player stands
if value_b <= 5:
# Banker hits
for b3 in range(len(shoe)):
if shoe[b3] != 0:
value_b3 = bacc_value(value_b, 1 + b3)
count6 = count4 * shoe[b3] * (shoe_size - 1)
self.record(value_b3, value_p, count6,
False, # not natural
True, # 3 card banker
False) # no 3 card player
else:
# Banker stands
count6 = count4 * shoe_size * (shoe_size - 1)
self.record(value_b, value_p, count6, False) # False=!natural
def recompute(self, shoe):
'''!
Recompute the math for the given shoe contents.
The 13 indexed values will represent the number of each of the 13
cards in a suit. The shoe[0] is the number of aces, shoe[1] is the
number of twos, et cetera. Up to shoe[12] is the number of Kings.
@param shoe integer array of length 13
'''
# validate shoe and compute it's size
if not isinstance(shoe, list) or (len(shoe) != 13):
raise ValueError("int[13] required")
shoe_size = 0
for i in shoe:
if not isinstance(i, int) or (i < 0) or (i > 50):
raise ValueError("shoe does not contain valid values")
shoe_size += i
# init the counts
self.count_banker = 0
self.count_player = 0
self.count_tie = 0
self.count_naturals = 0
self.count_pair = 0
self.count_nonpair = 0
self.count_banker_3card7 = 0
self.count_player_3card8 = 0
self.count_banker_dragon = [0, 0, 0]
self.count_player_dragon = [0, 0, 0]
self.freq_banker_dragon = [0, 0, 0]
self.freq_player_dragon = [0, 0, 0]
# Loop through all possible card combinations
for p1 in range(len(shoe)):
if shoe[p1] > 0:
count1 = shoe[p1]
shoe[p1] -= 1
shoe_size -= 1
for b1 in range(len(shoe)):
if shoe[b1] != 0:
count2 = count1 * shoe[b1]
shoe[b1] -= 1
shoe_size -= 1
for p2 in range(len(shoe)):
if shoe[p2] != 0:
count3 = count2 * shoe[p2]
shoe[p2] -= 1
shoe_size -= 1
for b2 in range(len(shoe)):
if shoe[b2] != 0:
count4 = count3 * shoe[b2]
shoe[b2] -= 1
shoe_size -= 1
# -----
# First 2 cards dealt to each side.
#
# count the pair side bet
if p1 == p2:
self.count_pair += count4
else:
self.count_nonpair += count4
#
value_p = bacc_value(1 + p1, 1 + p2)
value_b = bacc_value(1 + b1, 1 + b2)
if (value_p >= 8) or (value_b >= 8):
count6 = count4 * shoe_size * \
(shoe_size - 1)
self.record(value_b, value_p,
count6)
self.count_naturals += count6
else: # not natural
self.not_naturals(value_p, value_b,
shoe_size, shoe,
count4)
# -----
shoe_size += 1
shoe[b2] += 1
# if b2
# for b2=
shoe_size += 1
shoe[p2] += 1
# if p2
# for p2=
shoe_size += 1
shoe[b1] += 1
# if b1
# for b1=
shoe_size += 1
shoe[p1] += 1
# if p1
# for p1=
def __str__(self):
'''!
Return the string representation of this object.
@return String
'''
output = []
total = self.count_banker + self.count_player + self.count_tie
line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % (
'B', comma(self.count_banker),
self.count_banker * 100.0 / total,
self.count_banker * 100.0 / (self.count_banker + self.count_player),
(self.count_banker * 0.95 - self.count_player) * 100.0 / total)
output.append(line)
line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % (
'P', comma(self.count_player),
self.count_player * 100.0 / total,
self.count_player * 100.0 / (self.count_banker + self.count_player),
(self.count_player - self.count_banker) * 100.0 / total)
output.append(line)
line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % (
'T', comma(self.count_tie),
self.count_tie * 100.0 / total,
total * 1.0 / self.count_tie,
(self.count_tie * 8.0 - self.count_banker - self.count_player) *
100.0 / total)
output.append(line)
line = "total=%22s" % comma(total)
output.append(line)
line = " #nat=%22s%8.4f%% T9x%+6.3f%%" % (
comma(self.count_naturals),
self.count_naturals * 100.0 / total,
100.0 * (self.count_tie * (2 + 8.0) - total) / total)
output.append(line)
line = "%5s=%22s%8.4f%%%8.4f%%%+9.4f%%" % (
'EZ-B', comma(self.count_banker - self.count_banker_3card7),
(self.count_banker - self.count_banker_3card7) * 100.0 / total,
(self.count_banker - self.count_banker_3card7) * 100.0 /
(self.count_banker + self.count_player),
(self.count_banker - self.count_banker_3card7 - self.count_player) *
100.0 / total)
output.append(line)
line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % (
'B3C7', comma(self.count_banker_3card7),
self.count_banker_3card7 * 100.0 / total,
total * 1.0 / self.count_banker_3card7,
(self.count_banker_3card7 * (1 + 40.0) - total) * 100.0 / total)
output.append(line)
line = "%5s=%22s%8.4f%%%8.4fx%+9.4f%%" % (
'P3C8', comma(self.count_player_3card8),
self.count_player_3card8 * 100.0 / total,
total * 1.0 / self.count_player_3card8,
(self.count_player_3card8 * (1 + 25.0) - total) * 100.0 / total)
output.append(line)
for table_num in range(3): # various dragon tables
comment = ""
if table_num == 2:
comment = "w/T"
line = "%5s=%22s%8.4f%% %3s %+9.4f%%" % (
"DB%d" % (1 + table_num),
comma(self.count_banker_dragon[table_num]),
self.freq_banker_dragon[table_num] * 100.0 / total,
comment,
self.count_banker_dragon[table_num] * 100.0 / total)
output.append(line)
for table_num in range(3): # various dragon tables
comment = ""
if table_num == 2:
comment = "w/T"
line = "%5s=%22s%8.4f%% %3s %+9.4f%%" % (
"DP%d" % (1 + table_num),
comma(self.count_player_dragon[table_num]),
self.freq_player_dragon[table_num] * 100.0 / total,
comment,
self.count_player_dragon[table_num] * 100.0 / total)
output.append(line)
output.append("%5s=%14s /%15s%8.4fx%+9.4f%%" % (
'pair', comma(self.count_pair),
comma(self.count_pair + self.count_nonpair),
self.count_nonpair * 1.0 / self.count_pair,
(self.count_pair * 11.0 - self.count_nonpair) * 100.0 /
(self.count_pair + self.count_nonpair)))
return "\n".join(output)
if __name__ == "__main__":
# command line entry point
ODDS = ComputeBaccaratOdds()
print(ODDS)
| """!
Program to compute the odds for the game of Baccarat.
@author <a href="email:fulkgl@gmail.com">George L Fulk</a>
"""
def bacc_value(num1, num2):
"""!
Compute the baccarat value with 2 inputed integer rank values (0..12).
"""
if num1 > 9:
num1 = 0
if num2 > 9:
num2 = 0
num1 += num2
if num1 > 9:
num1 -= 10
return num1
def comma(number):
"""!
Convert an integer to comma seperated string.
"""
str_int = ''
sign = ''
quo = number
if number < 0:
sign = '-'
quo = -number
while quo > 999:
rem = quo % 1000
str_int = ',%03d%s' % (rem, str_int)
quo = quo // 1000
return '%s%d%s' % (sign, quo, str_int)
class Computebaccaratodds(object):
"""!
Compute the odds for the game of Baccarat.
"""
def __init__(self, number_decks=8):
"""!
Compute Baccarat odds for the given number of decks of cards.
The range of valid number of decks is limited to 12. The 12 limit
is an attempt to prevent attacks or bad coding using up resources.
@param numberDecks Number of decks to initialized the odds.
The range of valid value is 1 at a minimum up to 12.
@throws java.lang.IllegalArgumentException
Input arguement numberDecks is not valid.
"""
if not isinstance(number_decks, int) or number_decks < 0 or number_decks > 12:
raise value_error('number_decks(%s) not a legal value' % str(number_decks))
self.saved_shoe = 13 * [4 * number_decks]
self.dragon_pay_table = 3 * [None]
self.dragon_natural_win = 10
self.dragon_natural_tie = 11
self.dragon_pay_table[1 - 1] = [-1, -1, -1, -1, 1, 2, 4, 6, 10, 30, 1, 0]
self.dragon_pay_table[2 - 1] = [-1, -1, -1, -1, 1, 3, 4, 7, 8, 20, 1, 0]
self.dragon_pay_table[3 - 1] = [-1, -1, -1, -1, 2, 2, 4, 4, 10, 30, 1, 0]
self.count_banker = 0
self.count_player = 0
self.count_tie = 0
self.count_naturals = 0
self.count_pair = 0
self.count_nonpair = 0
self.count_banker_3card7 = 0
self.count_player_3card8 = 0
self.count_banker_dragon = [0, 0, 0]
self.freq_banker_dragon = [0, 0, 0]
self.count_player_dragon = [0, 0, 0]
self.freq_player_dragon = [0, 0, 0]
self.recompute(self.saved_shoe)
def record(self, value_banker, value_player, count, is_naturals=True, is_banker_3cards=False, is_player_3cards=False):
"""!
Record the results of a hand combination.
"""
diff = value_banker - value_player
if value_player < value_banker:
self.count_banker += count
if is_banker_3cards and value_banker == 7:
self.count_banker_3card7 += count
if is_naturals:
diff = self.dragon_natural_win
for table_num in range(3):
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_banker_dragon[table_num] += count * dragon_pays
if dragon_pays >= 0:
self.freq_banker_dragon[table_num] += count
self.count_player_dragon[table_num] += -count
elif value_player > value_banker:
self.count_player += count
if is_player_3cards and value_player == 8:
self.count_player_3card8 += count
diff = -diff
if is_naturals:
diff = self.dragon_natural_win
for table_num in range(3):
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_player_dragon[table_num] += count * dragon_pays
if dragon_pays >= 0:
self.freq_player_dragon[table_num] += count
self.count_banker_dragon[table_num] += -count
else:
self.count_tie += count
if is_naturals:
diff = self.dragon_natural_tie
self.freq_banker_dragon[3 - 1] += count
self.freq_player_dragon[3 - 1] += count
for table_num in range(3):
dragon_pays = self.dragon_pay_table[table_num][diff]
self.count_player_dragon[table_num] += count * dragon_pays
self.count_banker_dragon[table_num] += count * dragon_pays
def not_naturals(self, value_p, value_b, shoe_size, shoe, count4):
"""!
Handle the not a naturals situation. Look for a third player and
third banker situation.
"""
draw_table = [3, 4, 4, 5, 5, 6, 6, 2, 3, 3, 3, 3, 3, 3]
if value_p <= 5:
for p3 in range(len(shoe)):
if shoe[p3] != 0:
if value_b <= draw_table[p3]:
value_p3 = bacc_value(value_p, 1 + p3)
count5 = count4 * shoe[p3]
shoe[p3] -= 1
for b3 in range(len(shoe)):
if shoe[b3] != 0:
count6 = count5 * shoe[b3]
value_b3 = bacc_value(value_b, 1 + b3)
self.record(value_b3, value_p3, count6, False, True, True)
shoe[p3] += 1
else:
count6 = count4 * shoe[p3] * (shoe_size - 1)
value_p3 = bacc_value(value_p, 1 + p3)
self.record(value_b, value_p3, count6, False, False, True)
elif value_b <= 5:
for b3 in range(len(shoe)):
if shoe[b3] != 0:
value_b3 = bacc_value(value_b, 1 + b3)
count6 = count4 * shoe[b3] * (shoe_size - 1)
self.record(value_b3, value_p, count6, False, True, False)
else:
count6 = count4 * shoe_size * (shoe_size - 1)
self.record(value_b, value_p, count6, False)
def recompute(self, shoe):
"""!
Recompute the math for the given shoe contents.
The 13 indexed values will represent the number of each of the 13
cards in a suit. The shoe[0] is the number of aces, shoe[1] is the
number of twos, et cetera. Up to shoe[12] is the number of Kings.
@param shoe integer array of length 13
"""
if not isinstance(shoe, list) or len(shoe) != 13:
raise value_error('int[13] required')
shoe_size = 0
for i in shoe:
if not isinstance(i, int) or i < 0 or i > 50:
raise value_error('shoe does not contain valid values')
shoe_size += i
self.count_banker = 0
self.count_player = 0
self.count_tie = 0
self.count_naturals = 0
self.count_pair = 0
self.count_nonpair = 0
self.count_banker_3card7 = 0
self.count_player_3card8 = 0
self.count_banker_dragon = [0, 0, 0]
self.count_player_dragon = [0, 0, 0]
self.freq_banker_dragon = [0, 0, 0]
self.freq_player_dragon = [0, 0, 0]
for p1 in range(len(shoe)):
if shoe[p1] > 0:
count1 = shoe[p1]
shoe[p1] -= 1
shoe_size -= 1
for b1 in range(len(shoe)):
if shoe[b1] != 0:
count2 = count1 * shoe[b1]
shoe[b1] -= 1
shoe_size -= 1
for p2 in range(len(shoe)):
if shoe[p2] != 0:
count3 = count2 * shoe[p2]
shoe[p2] -= 1
shoe_size -= 1
for b2 in range(len(shoe)):
if shoe[b2] != 0:
count4 = count3 * shoe[b2]
shoe[b2] -= 1
shoe_size -= 1
if p1 == p2:
self.count_pair += count4
else:
self.count_nonpair += count4
value_p = bacc_value(1 + p1, 1 + p2)
value_b = bacc_value(1 + b1, 1 + b2)
if value_p >= 8 or value_b >= 8:
count6 = count4 * shoe_size * (shoe_size - 1)
self.record(value_b, value_p, count6)
self.count_naturals += count6
else:
self.not_naturals(value_p, value_b, shoe_size, shoe, count4)
shoe_size += 1
shoe[b2] += 1
shoe_size += 1
shoe[p2] += 1
shoe_size += 1
shoe[b1] += 1
shoe_size += 1
shoe[p1] += 1
def __str__(self):
"""!
Return the string representation of this object.
@return String
"""
output = []
total = self.count_banker + self.count_player + self.count_tie
line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('B', comma(self.count_banker), self.count_banker * 100.0 / total, self.count_banker * 100.0 / (self.count_banker + self.count_player), (self.count_banker * 0.95 - self.count_player) * 100.0 / total)
output.append(line)
line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('P', comma(self.count_player), self.count_player * 100.0 / total, self.count_player * 100.0 / (self.count_banker + self.count_player), (self.count_player - self.count_banker) * 100.0 / total)
output.append(line)
line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('T', comma(self.count_tie), self.count_tie * 100.0 / total, total * 1.0 / self.count_tie, (self.count_tie * 8.0 - self.count_banker - self.count_player) * 100.0 / total)
output.append(line)
line = 'total=%22s' % comma(total)
output.append(line)
line = ' #nat=%22s%8.4f%% T9x%+6.3f%%' % (comma(self.count_naturals), self.count_naturals * 100.0 / total, 100.0 * (self.count_tie * (2 + 8.0) - total) / total)
output.append(line)
line = '%5s=%22s%8.4f%%%8.4f%%%+9.4f%%' % ('EZ-B', comma(self.count_banker - self.count_banker_3card7), (self.count_banker - self.count_banker_3card7) * 100.0 / total, (self.count_banker - self.count_banker_3card7) * 100.0 / (self.count_banker + self.count_player), (self.count_banker - self.count_banker_3card7 - self.count_player) * 100.0 / total)
output.append(line)
line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('B3C7', comma(self.count_banker_3card7), self.count_banker_3card7 * 100.0 / total, total * 1.0 / self.count_banker_3card7, (self.count_banker_3card7 * (1 + 40.0) - total) * 100.0 / total)
output.append(line)
line = '%5s=%22s%8.4f%%%8.4fx%+9.4f%%' % ('P3C8', comma(self.count_player_3card8), self.count_player_3card8 * 100.0 / total, total * 1.0 / self.count_player_3card8, (self.count_player_3card8 * (1 + 25.0) - total) * 100.0 / total)
output.append(line)
for table_num in range(3):
comment = ''
if table_num == 2:
comment = 'w/T'
line = '%5s=%22s%8.4f%% %3s %+9.4f%%' % ('DB%d' % (1 + table_num), comma(self.count_banker_dragon[table_num]), self.freq_banker_dragon[table_num] * 100.0 / total, comment, self.count_banker_dragon[table_num] * 100.0 / total)
output.append(line)
for table_num in range(3):
comment = ''
if table_num == 2:
comment = 'w/T'
line = '%5s=%22s%8.4f%% %3s %+9.4f%%' % ('DP%d' % (1 + table_num), comma(self.count_player_dragon[table_num]), self.freq_player_dragon[table_num] * 100.0 / total, comment, self.count_player_dragon[table_num] * 100.0 / total)
output.append(line)
output.append('%5s=%14s /%15s%8.4fx%+9.4f%%' % ('pair', comma(self.count_pair), comma(self.count_pair + self.count_nonpair), self.count_nonpair * 1.0 / self.count_pair, (self.count_pair * 11.0 - self.count_nonpair) * 100.0 / (self.count_pair + self.count_nonpair)))
return '\n'.join(output)
if __name__ == '__main__':
odds = compute_baccarat_odds()
print(ODDS) |
def hashify(string):
dict={}
res=string+string[0]
for i,j in enumerate(string):
if dict.get(j, None):
if isinstance(dict[j], str):
dict[j]=list(dict[j])+[res[i+1]]
else:
dict[j].append(res[i+1])
else:
dict[j]=res[i+1]
return dict | def hashify(string):
dict = {}
res = string + string[0]
for (i, j) in enumerate(string):
if dict.get(j, None):
if isinstance(dict[j], str):
dict[j] = list(dict[j]) + [res[i + 1]]
else:
dict[j].append(res[i + 1])
else:
dict[j] = res[i + 1]
return dict |
"""
in this module, I define a obj change, which record the change infomation of a video in a timestamp.
"""
# coding:utf-8
class Tempor:
"""
obj
"""
def __init__(self, video_id, time, views, likes, dislikes, comments):
self.video_id = video_id
self.time = time
self.views = views
self.likes = likes
self.dislikes = dislikes
self.comments = comments
def dump(self):
"""for insert a Change obj to database."""
return (self.video_id, self.time, self.views, self.likes, self.dislikes, self.comments)
| """
in this module, I define a obj change, which record the change infomation of a video in a timestamp.
"""
class Tempor:
"""
obj
"""
def __init__(self, video_id, time, views, likes, dislikes, comments):
self.video_id = video_id
self.time = time
self.views = views
self.likes = likes
self.dislikes = dislikes
self.comments = comments
def dump(self):
"""for insert a Change obj to database."""
return (self.video_id, self.time, self.views, self.likes, self.dislikes, self.comments) |
def Tux(thoughts, eyes, eye, tongue):
return f"""
{thoughts}
{thoughts}
.--.
|{eye}_{eye} |
|:_/ |
// \\ \\
(| | )
/'\\_ _/\`\\
\\___)=(___/
""" | def tux(thoughts, eyes, eye, tongue):
return f"\n {thoughts}\n {thoughts}\n .--.\n |{eye}_{eye} |\n |:_/ |\n // \\ \\\n (| | )\n /'\\_ _/\\`\\\n \\___)=(___/\n\n" |
# https://github.com/ycm-core/YouCompleteMe/blob/321700e848595af129d5d75afac92d0060d3cdf9/README.md#configuring-through-vim-options
def Settings( **kwargs ):
client_data = kwargs[ 'client_data' ]
return {
'interpreter_path': client_data[ 'g:ycm_python_interpreter_path' ],
'sys_path': client_data[ 'g:ycm_python_sys_path' ]
}
| def settings(**kwargs):
client_data = kwargs['client_data']
return {'interpreter_path': client_data['g:ycm_python_interpreter_path'], 'sys_path': client_data['g:ycm_python_sys_path']} |
# https://leetcode.com/problems/number-of-1-bits/
class Solution(object):
# Runtime: 46 ms, faster than 5.64% of Python online submissions for Number of 1 Bits.
# Memory Usage: 13.4 MB, less than 34.23% of Python online submissions for Number of 1 Bits.
def hammingWeight(self, n):
"""
:type n: int
:rtype: int
"""
count =0
while n :
if n&1:count +=1
n=n>>1
return count
"""
There are a lot of different ways to solve this problem, starting from transforming number to string and count number of ones. However there is a classical bit manipulation trick you should think about when you have bits problem.
If we have number n, then n&(n-1) will remove the rightmost in binary representation of n. For example if n = 10110100, then n & (n-1) = 10110100 & 10110011 = 10110000, where & means bitwize operation and. Very convinient, is it not? What we need to do now, just repeat this operation until we have n = 0 and count number of steps.
Complexity It is O(1) for sure, because we need to make no more than 32 operations here, but it is quite vague: all methods will be O(1), why this one is better than others? In fact it has complexity O(m), where m is number of 1-bits in our number. In average it will be 16 bits, so it is more like 16 operations, not 32 here, which gives us 2-times gain. Space complexity is O(1)
class Solution:
def hammingWeight(self, n):
ans = 0
while n:
n &= (n-1)
ans += 1
return ans
""" | class Solution(object):
def hamming_weight(self, n):
"""
:type n: int
:rtype: int
"""
count = 0
while n:
if n & 1:
count += 1
n = n >> 1
return count
'\nThere are a lot of different ways to solve this problem, starting from transforming number to string and count number of ones. However there is a classical bit manipulation trick you should think about when you have bits problem.\n\nIf we have number n, then n&(n-1) will remove the rightmost in binary representation of n. For example if n = 10110100, then n & (n-1) = 10110100 & 10110011 = 10110000, where & means bitwize operation and. Very convinient, is it not? What we need to do now, just repeat this operation until we have n = 0 and count number of steps.\n\nComplexity It is O(1) for sure, because we need to make no more than 32 operations here, but it is quite vague: all methods will be O(1), why this one is better than others? In fact it has complexity O(m), where m is number of 1-bits in our number. In average it will be 16 bits, so it is more like 16 operations, not 32 here, which gives us 2-times gain. Space complexity is O(1)\n\nclass Solution:\n def hammingWeight(self, n):\n ans = 0\n while n:\n n &= (n-1)\n ans += 1\n return ans\n' |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class PyobsException(Exception):
pass
class ConnectionFailure(PyobsException):
pass
class MessageTimeout(PyobsException):
pass
class ObjectError(PyobsException):
pass
| class Pyobsexception(Exception):
pass
class Connectionfailure(PyobsException):
pass
class Messagetimeout(PyobsException):
pass
class Objecterror(PyobsException):
pass |
class Student:
cname='DurgaSoft' #static variable
def __init__(self,name,rollno):
self.name=name #instance variable
self.rollno=rollno
s1=Student('durga',101)
s2=Student('pawan',102)
print(s1.name,s1.rollno,s1.cname)
print(s2.name,s2.rollno,s2.cname)
| class Student:
cname = 'DurgaSoft'
def __init__(self, name, rollno):
self.name = name
self.rollno = rollno
s1 = student('durga', 101)
s2 = student('pawan', 102)
print(s1.name, s1.rollno, s1.cname)
print(s2.name, s2.rollno, s2.cname) |
"""
https://zhuanlan.zhihu.com/p/50804195
"""
def test_args(first, *args):
"""
output:
Required argument: 1
<class 'tuple'>
Optional argument: 2
Optional argument: 3
Optional argument: 4
"""
print('Required argument: ', first)
print(type(args)) # <class 'tuple'>
for v in args:
print('Optional argument: ', v)
def test_kwargs(first, *args, **kwargs):
"""
<class 'dict'>
Optional argument (args): 2
Optional argument (args): 3
Optional argument (args): 4
Optional argument k1 (kwargs): 5
Optional argument k2 (kwargs): 6
"""
print('Required argument: ', first)
print(type(kwargs))
for v in args:
print('Optional argument (args): ', v)
for k, v in kwargs.items():
print('Optional argument %s (kwargs): %s' % (k, v))
if __name__ == '__main__':
test_args(1, 2, 3, 4)
test_kwargs(1, 2, 3, 4, k1=5, k2=6)
| """
https://zhuanlan.zhihu.com/p/50804195
"""
def test_args(first, *args):
"""
output:
Required argument: 1
<class 'tuple'>
Optional argument: 2
Optional argument: 3
Optional argument: 4
"""
print('Required argument: ', first)
print(type(args))
for v in args:
print('Optional argument: ', v)
def test_kwargs(first, *args, **kwargs):
"""
<class 'dict'>
Optional argument (args): 2
Optional argument (args): 3
Optional argument (args): 4
Optional argument k1 (kwargs): 5
Optional argument k2 (kwargs): 6
"""
print('Required argument: ', first)
print(type(kwargs))
for v in args:
print('Optional argument (args): ', v)
for (k, v) in kwargs.items():
print('Optional argument %s (kwargs): %s' % (k, v))
if __name__ == '__main__':
test_args(1, 2, 3, 4)
test_kwargs(1, 2, 3, 4, k1=5, k2=6) |
a = [[1, 2, 3], [1, 2, 3], [1, 2, 3]]
b = [4, 5, 6]
c = [0, 0, 0]
def t():
for j in range(len(a)):
for [A1, A2, A3] in [[1, 2, 3], [1, 2, 3], [1, 2, 3]]:
for B in b:
c[A1-1] = B + A1*2
c[A2-1] = B + A2*2
c[A3-1] = B + A3*2
t()
print(c)
| a = [[1, 2, 3], [1, 2, 3], [1, 2, 3]]
b = [4, 5, 6]
c = [0, 0, 0]
def t():
for j in range(len(a)):
for [a1, a2, a3] in [[1, 2, 3], [1, 2, 3], [1, 2, 3]]:
for b in b:
c[A1 - 1] = B + A1 * 2
c[A2 - 1] = B + A2 * 2
c[A3 - 1] = B + A3 * 2
t()
print(c) |
class Item:
def __init__(self, profit, weight):
self.profit = profit
self.weight = weight
def zeroKnapsack(items, capacity, currentIndex):
if capacity <= 0 or currentIndex < 0 or currentIndex>=len(items):
return 0
elif items[currentIndex].weight <= capacity:
profit1 = items[currentIndex].profit + zeroKnapsack(items, capacity-items[currentIndex].weight, currentIndex+1)
profit2 = zeroKnapsack(items, capacity, currentIndex+1)
return max(profit1, profit2)
else:
return 0
| class Item:
def __init__(self, profit, weight):
self.profit = profit
self.weight = weight
def zero_knapsack(items, capacity, currentIndex):
if capacity <= 0 or currentIndex < 0 or currentIndex >= len(items):
return 0
elif items[currentIndex].weight <= capacity:
profit1 = items[currentIndex].profit + zero_knapsack(items, capacity - items[currentIndex].weight, currentIndex + 1)
profit2 = zero_knapsack(items, capacity, currentIndex + 1)
return max(profit1, profit2)
else:
return 0 |
#
# PySNMP MIB module WL400-SNMPGEN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WL400-SNMPGEN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:36:41 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion")
ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance")
MibIdentifier, IpAddress, Unsigned32, NotificationType, ObjectIdentity, iso, ModuleIdentity, TimeTicks, Counter32, Counter64, Integer32, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "IpAddress", "Unsigned32", "NotificationType", "ObjectIdentity", "iso", "ModuleIdentity", "TimeTicks", "Counter32", "Counter64", "Integer32", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention")
wl400Generic, wl400Modules = mibBuilder.importSymbols("WL400-GLOBAL-REG", "wl400Generic", "wl400Modules")
snmpGenMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 232, 143, 1, 3))
if mibBuilder.loadTexts: snmpGenMIBModule.setLastUpdated('9905260000Z')
if mibBuilder.loadTexts: snmpGenMIBModule.setOrganization('Compaq Computer Corporation')
if mibBuilder.loadTexts: snmpGenMIBModule.setContactInfo(' Name: Compaq Computer Corporation Address: 20555 SH 249 Zip: 77070 City: Houston Country: USA Phone: Fax: e-mail: ')
if mibBuilder.loadTexts: snmpGenMIBModule.setDescription('The Compaq WL400 SNMP General MIB Module.')
snmpGenMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1))
snmpGenConf = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1))
snmpGenGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1))
snmpGenCompl = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2))
snmpGenObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 2))
snmpGenReadCommunityString = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpGenReadCommunityString.setStatus('current')
if mibBuilder.loadTexts: snmpGenReadCommunityString.setDescription('The community string to use for SNMP communication with this entity when the SNMP operation is a read operation.')
snmpGenWriteCommunityString = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpGenWriteCommunityString.setStatus('current')
if mibBuilder.loadTexts: snmpGenWriteCommunityString.setDescription("The community string to use for SNMP communication with this entity when the SNMP operation is a SET Request. When read, this object has an undefined value. When written, subsequent SNMP SET operations must use the new community string to be accepted as authentic. When the reset button is pressed on the Access Point, this variable is reset to 'private'. This is also the default manufacturer value. ")
snmpGenTrapDstMaxTableLength = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstMaxTableLength.setDescription('The maximum number of entries in the Trap Destination Table.')
snmpGenTrapDstTable = MibTable((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4), )
if mibBuilder.loadTexts: snmpGenTrapDstTable.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstTable.setDescription('The table containing management targets where notifications (SNMP traps) must be sent to. Syslog messages also use this table.')
snmpGenTrapDstEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1), ).setIndexNames((0, "WL400-SNMPGEN-MIB", "snmpGenTrapDstIndex"))
if mibBuilder.loadTexts: snmpGenTrapDstEntry.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstEntry.setDescription('An entry in the Trap Destination table.')
snmpGenTrapDstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256)))
if mibBuilder.loadTexts: snmpGenTrapDstIndex.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstIndex.setDescription('An index into the Trap Destination table.')
snmpGenTrapDstIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 2), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstIpAddress.setDescription('The IP address of a management station to send traps to.')
snmpGenTrapDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("trapOnly", 1), ("syslogOnly", 2), ("trapAndSyslog", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: snmpGenTrapDstType.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstType.setDescription('The type indicates what kind of notification is sent. When set to trapOnly(1), only SNMP traps are sent to the IP address. When set to syslogOnly(2), only syslog messages are sent and when set to trapAndSyslog(3), both a trap and a syslog message will be sent.')
snmpGenTrapDstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setStatus('current')
if mibBuilder.loadTexts: snmpGenTrapDstRowStatus.setDescription('The status value for creating and deleting rows in this table.')
snmpGenLockStatus = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("locked", 1), ("unlocked", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpGenLockStatus.setStatus('current')
if mibBuilder.loadTexts: snmpGenLockStatus.setDescription("This object can be used to lock the SNMP agent. When locked, the agent becomes read-only, i.e. no objects can be written any more. This is useful in a relatively insecure SNMPv1 environment when the network administrator has configured the device and does not intend to change it. This variable can only be set to locked(1). When pressing the reset button on the Access Point, this variable is reset to unlocked(2) and the snmpGenWriteCommunityString is reset to 'private'.")
snmpGenChangeIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(18, 18)).setFixedLength(18)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpGenChangeIPAddress.setStatus('current')
if mibBuilder.loadTexts: snmpGenChangeIPAddress.setDescription("This object is used to change the fixed or 'remembered' IP address of an Access Point. When there is a DHCP/BOOTP server on the network, this variable is not needed. When there is no DHCP/BOOTP server for the IP subnet, the Access Point will try to use the IP address gotten from a previous BOOTP reply (which gives an infinite lease) or an infinite DHCP lease. When there was no previous BOOTP reply, the Access Point can be given an IP address using this variable. Also when the current IP address of the Access Point is invalid for the current IP subnet, this variable can be set by sending an SNMP SET request to the multicast address 224.0.1.43. The MAC address included here ensures that only the right Access Point will accept the SET Request. The IP address given through this variable is considered an infinite lease by the Access Point. The format of this variable is as follows: MAC Address: 6 octets IP Address: 4 octets (network byte order) IP Subnet Mask: 4 octets (network byte order) IP Default Router: 4 octets (network byte order)")
snmpGenUseDHCP = MibScalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("always", 1), ("smart", 2), ("never", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpGenUseDHCP.setStatus('current')
if mibBuilder.loadTexts: snmpGenUseDHCP.setDescription('This object controls DHCP operation. When set to always(1), the Access Point will not assume an infinite lease it was given but continue trying to obtain an IP address using DHCP. The Access Point can only see the difference between an infinite lease and a finite lease because there is no clock running when the device is shut down. When set to smart(2), the Access Point will use DHCP when it does not have an infinite lease. When it does have an infinite lease, it quickly tries to contact a DHCP server (because it may now be in a new IP subnet) using one DHCPREQUEST and one DHCPDISCOVER. If no replies are received, it will automatically assume its given (infinite) address within a few seconds after reboot. When set to never(3), the Access Point will not use DHCP if it has an infinite address. It will immediately assume that address after a reboot. Note that the Access Point requires a valid (not NULL) IP address for this object to be set to never(3).')
snmpGenBasicGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1, 1)).setObjects(("WL400-SNMPGEN-MIB", "snmpGenReadCommunityString"), ("WL400-SNMPGEN-MIB", "snmpGenWriteCommunityString"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstMaxTableLength"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstIpAddress"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstType"), ("WL400-SNMPGEN-MIB", "snmpGenTrapDstRowStatus"), ("WL400-SNMPGEN-MIB", "snmpGenLockStatus"), ("WL400-SNMPGEN-MIB", "snmpGenChangeIPAddress"), ("WL400-SNMPGEN-MIB", "snmpGenUseDHCP"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
snmpGenBasicGroup = snmpGenBasicGroup.setStatus('current')
if mibBuilder.loadTexts: snmpGenBasicGroup.setDescription('The snmp general group.')
snmpGenBasicCompl = ModuleCompliance((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2, 1)).setObjects(("WL400-SNMPGEN-MIB", "snmpGenBasicGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
snmpGenBasicCompl = snmpGenBasicCompl.setStatus('current')
if mibBuilder.loadTexts: snmpGenBasicCompl.setDescription('The implementation requirements for an IEEE 802.11 Station.')
mibBuilder.exportSymbols("WL400-SNMPGEN-MIB", snmpGenBasicCompl=snmpGenBasicCompl, snmpGenTrapDstType=snmpGenTrapDstType, snmpGenGroups=snmpGenGroups, snmpGenTrapDstMaxTableLength=snmpGenTrapDstMaxTableLength, snmpGenTrapDstIpAddress=snmpGenTrapDstIpAddress, PYSNMP_MODULE_ID=snmpGenMIBModule, snmpGenBasicGroup=snmpGenBasicGroup, snmpGenTrapDstTable=snmpGenTrapDstTable, snmpGenObjs=snmpGenObjs, snmpGenLockStatus=snmpGenLockStatus, snmpGenReadCommunityString=snmpGenReadCommunityString, snmpGenTrapDstEntry=snmpGenTrapDstEntry, snmpGenChangeIPAddress=snmpGenChangeIPAddress, snmpGenTrapDstIndex=snmpGenTrapDstIndex, snmpGenCompl=snmpGenCompl, snmpGenWriteCommunityString=snmpGenWriteCommunityString, snmpGenMIB=snmpGenMIB, snmpGenMIBModule=snmpGenMIBModule, snmpGenUseDHCP=snmpGenUseDHCP, snmpGenTrapDstRowStatus=snmpGenTrapDstRowStatus, snmpGenConf=snmpGenConf)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion')
(object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance')
(mib_identifier, ip_address, unsigned32, notification_type, object_identity, iso, module_identity, time_ticks, counter32, counter64, integer32, gauge32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'IpAddress', 'Unsigned32', 'NotificationType', 'ObjectIdentity', 'iso', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'Counter64', 'Integer32', 'Gauge32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention')
(wl400_generic, wl400_modules) = mibBuilder.importSymbols('WL400-GLOBAL-REG', 'wl400Generic', 'wl400Modules')
snmp_gen_mib_module = module_identity((1, 3, 6, 1, 4, 1, 232, 143, 1, 3))
if mibBuilder.loadTexts:
snmpGenMIBModule.setLastUpdated('9905260000Z')
if mibBuilder.loadTexts:
snmpGenMIBModule.setOrganization('Compaq Computer Corporation')
if mibBuilder.loadTexts:
snmpGenMIBModule.setContactInfo(' Name: Compaq Computer Corporation Address: 20555 SH 249 Zip: 77070 City: Houston Country: USA Phone: Fax: e-mail: ')
if mibBuilder.loadTexts:
snmpGenMIBModule.setDescription('The Compaq WL400 SNMP General MIB Module.')
snmp_gen_mib = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1))
snmp_gen_conf = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1))
snmp_gen_groups = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1))
snmp_gen_compl = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2))
snmp_gen_objs = mib_identifier((1, 3, 6, 1, 4, 1, 232, 144, 1, 2))
snmp_gen_read_community_string = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpGenReadCommunityString.setStatus('current')
if mibBuilder.loadTexts:
snmpGenReadCommunityString.setDescription('The community string to use for SNMP communication with this entity when the SNMP operation is a read operation.')
snmp_gen_write_community_string = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpGenWriteCommunityString.setStatus('current')
if mibBuilder.loadTexts:
snmpGenWriteCommunityString.setDescription("The community string to use for SNMP communication with this entity when the SNMP operation is a SET Request. When read, this object has an undefined value. When written, subsequent SNMP SET operations must use the new community string to be accepted as authentic. When the reset button is pressed on the Access Point, this variable is reset to 'private'. This is also the default manufacturer value. ")
snmp_gen_trap_dst_max_table_length = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
snmpGenTrapDstMaxTableLength.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstMaxTableLength.setDescription('The maximum number of entries in the Trap Destination Table.')
snmp_gen_trap_dst_table = mib_table((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4))
if mibBuilder.loadTexts:
snmpGenTrapDstTable.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstTable.setDescription('The table containing management targets where notifications (SNMP traps) must be sent to. Syslog messages also use this table.')
snmp_gen_trap_dst_entry = mib_table_row((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1)).setIndexNames((0, 'WL400-SNMPGEN-MIB', 'snmpGenTrapDstIndex'))
if mibBuilder.loadTexts:
snmpGenTrapDstEntry.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstEntry.setDescription('An entry in the Trap Destination table.')
snmp_gen_trap_dst_index = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256)))
if mibBuilder.loadTexts:
snmpGenTrapDstIndex.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstIndex.setDescription('An index into the Trap Destination table.')
snmp_gen_trap_dst_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 2), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
snmpGenTrapDstIpAddress.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstIpAddress.setDescription('The IP address of a management station to send traps to.')
snmp_gen_trap_dst_type = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('trapOnly', 1), ('syslogOnly', 2), ('trapAndSyslog', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
snmpGenTrapDstType.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstType.setDescription('The type indicates what kind of notification is sent. When set to trapOnly(1), only SNMP traps are sent to the IP address. When set to syslogOnly(2), only syslog messages are sent and when set to trapAndSyslog(3), both a trap and a syslog message will be sent.')
snmp_gen_trap_dst_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 4, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
snmpGenTrapDstRowStatus.setStatus('current')
if mibBuilder.loadTexts:
snmpGenTrapDstRowStatus.setDescription('The status value for creating and deleting rows in this table.')
snmp_gen_lock_status = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('locked', 1), ('unlocked', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpGenLockStatus.setStatus('current')
if mibBuilder.loadTexts:
snmpGenLockStatus.setDescription("This object can be used to lock the SNMP agent. When locked, the agent becomes read-only, i.e. no objects can be written any more. This is useful in a relatively insecure SNMPv1 environment when the network administrator has configured the device and does not intend to change it. This variable can only be set to locked(1). When pressing the reset button on the Access Point, this variable is reset to unlocked(2) and the snmpGenWriteCommunityString is reset to 'private'.")
snmp_gen_change_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 6), octet_string().subtype(subtypeSpec=value_size_constraint(18, 18)).setFixedLength(18)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpGenChangeIPAddress.setStatus('current')
if mibBuilder.loadTexts:
snmpGenChangeIPAddress.setDescription("This object is used to change the fixed or 'remembered' IP address of an Access Point. When there is a DHCP/BOOTP server on the network, this variable is not needed. When there is no DHCP/BOOTP server for the IP subnet, the Access Point will try to use the IP address gotten from a previous BOOTP reply (which gives an infinite lease) or an infinite DHCP lease. When there was no previous BOOTP reply, the Access Point can be given an IP address using this variable. Also when the current IP address of the Access Point is invalid for the current IP subnet, this variable can be set by sending an SNMP SET request to the multicast address 224.0.1.43. The MAC address included here ensures that only the right Access Point will accept the SET Request. The IP address given through this variable is considered an infinite lease by the Access Point. The format of this variable is as follows: MAC Address: 6 octets IP Address: 4 octets (network byte order) IP Subnet Mask: 4 octets (network byte order) IP Default Router: 4 octets (network byte order)")
snmp_gen_use_dhcp = mib_scalar((1, 3, 6, 1, 4, 1, 232, 144, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('always', 1), ('smart', 2), ('never', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpGenUseDHCP.setStatus('current')
if mibBuilder.loadTexts:
snmpGenUseDHCP.setDescription('This object controls DHCP operation. When set to always(1), the Access Point will not assume an infinite lease it was given but continue trying to obtain an IP address using DHCP. The Access Point can only see the difference between an infinite lease and a finite lease because there is no clock running when the device is shut down. When set to smart(2), the Access Point will use DHCP when it does not have an infinite lease. When it does have an infinite lease, it quickly tries to contact a DHCP server (because it may now be in a new IP subnet) using one DHCPREQUEST and one DHCPDISCOVER. If no replies are received, it will automatically assume its given (infinite) address within a few seconds after reboot. When set to never(3), the Access Point will not use DHCP if it has an infinite address. It will immediately assume that address after a reboot. Note that the Access Point requires a valid (not NULL) IP address for this object to be set to never(3).')
snmp_gen_basic_group = object_group((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 1, 1)).setObjects(('WL400-SNMPGEN-MIB', 'snmpGenReadCommunityString'), ('WL400-SNMPGEN-MIB', 'snmpGenWriteCommunityString'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstMaxTableLength'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstIpAddress'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstType'), ('WL400-SNMPGEN-MIB', 'snmpGenTrapDstRowStatus'), ('WL400-SNMPGEN-MIB', 'snmpGenLockStatus'), ('WL400-SNMPGEN-MIB', 'snmpGenChangeIPAddress'), ('WL400-SNMPGEN-MIB', 'snmpGenUseDHCP'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
snmp_gen_basic_group = snmpGenBasicGroup.setStatus('current')
if mibBuilder.loadTexts:
snmpGenBasicGroup.setDescription('The snmp general group.')
snmp_gen_basic_compl = module_compliance((1, 3, 6, 1, 4, 1, 232, 144, 1, 1, 2, 1)).setObjects(('WL400-SNMPGEN-MIB', 'snmpGenBasicGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
snmp_gen_basic_compl = snmpGenBasicCompl.setStatus('current')
if mibBuilder.loadTexts:
snmpGenBasicCompl.setDescription('The implementation requirements for an IEEE 802.11 Station.')
mibBuilder.exportSymbols('WL400-SNMPGEN-MIB', snmpGenBasicCompl=snmpGenBasicCompl, snmpGenTrapDstType=snmpGenTrapDstType, snmpGenGroups=snmpGenGroups, snmpGenTrapDstMaxTableLength=snmpGenTrapDstMaxTableLength, snmpGenTrapDstIpAddress=snmpGenTrapDstIpAddress, PYSNMP_MODULE_ID=snmpGenMIBModule, snmpGenBasicGroup=snmpGenBasicGroup, snmpGenTrapDstTable=snmpGenTrapDstTable, snmpGenObjs=snmpGenObjs, snmpGenLockStatus=snmpGenLockStatus, snmpGenReadCommunityString=snmpGenReadCommunityString, snmpGenTrapDstEntry=snmpGenTrapDstEntry, snmpGenChangeIPAddress=snmpGenChangeIPAddress, snmpGenTrapDstIndex=snmpGenTrapDstIndex, snmpGenCompl=snmpGenCompl, snmpGenWriteCommunityString=snmpGenWriteCommunityString, snmpGenMIB=snmpGenMIB, snmpGenMIBModule=snmpGenMIBModule, snmpGenUseDHCP=snmpGenUseDHCP, snmpGenTrapDstRowStatus=snmpGenTrapDstRowStatus, snmpGenConf=snmpGenConf) |
__all__ = [
'update_network_static_route_model',
'rule11_model',
'rule10_model',
'update_network_content_filtering_model',
'rule8_model',
'update_network_ssid_traffic_shaping_model',
'rule7_model',
'update_organization_snmp_model',
'move_network_sm_devices_model',
'lock_network_sm_devices_model',
'update_network_sm_devices_tags_model',
'create_network_sm_app_polaris_model',
'add_network_sm_profile_umbrella_model',
'update_network_sm_profile_umbrella_model',
'create_network_sm_profile_umbrella_model',
'add_network_sm_profile_clarity_model',
'update_network_sm_profile_clarity_model',
'update_network_client_policy_model',
'hub_model',
'update_network_site_to_site_vpn_model',
'combine_organization_networks_model',
'bind_network_model',
'default_destinations_model',
'update_network_alert_settings_model',
'network_model',
'tag_model',
'update_organization_action_batch_model',
'action_model',
'create_organization_action_batch_model',
'update_organization_admin_model',
'create_organization_admin_model',
'ssids_model',
'update_network_client_splash_authorization_status_model',
'create_network_group_policy_model',
'blink_network_device_leds_model',
'update_network_group_policy_model',
'update_network_snmp_settings_model',
'checkin_network_sm_devices_model',
'wipe_network_sm_device_model',
'device_fields_model',
'update_network_sm_device_fields_model',
'update_network_sm_app_polaris_model',
'update_network_sm_target_group_model',
'create_network_sm_target_group_model',
'allowed_file_model',
'update_network_security_malware_settings_model',
'whitelisted_rule_model',
'protected_networks_model',
'update_network_security_intrusion_settings_model',
'update_organization_saml_role_model',
'network2_model',
'tag2_model',
'create_organization_saml_role_model',
'update_organization_third_party_vpn_peers_model',
'update_network_netflow_settings_model',
'update_network_device_management_interface_settings_model',
'update_network_http_server_model',
'create_network_http_server_model',
'rule5_model',
'bonjour_forwarding_model',
'vlan_tagging_model',
'l7_firewall_rule_model',
'bandwidth_limits1_model',
'per_client_bandwidth_limits_model',
'definition_model',
'firewall_and_traffic_shaping_model',
'bandwidth_limits_model',
'bandwidth_model',
'sunday_model',
'saturday_model',
'friday_model',
'thursday_model',
'wednesday_model',
'tuesday_model',
'monday_model',
'update_network_ssid_l3_firewall_rules_model',
'update_organization_vpn_firewall_rules_model',
'rule2_model',
'update_network_l7_firewall_rules_model',
'update_network_l3_firewall_rules_model',
'dhcp_option_model',
'reserved_ip_range_model',
'create_network_vlan_model',
'bandwidth_limits6_model',
'create_network_static_route_model',
'update_network_firewalled_service_model',
'update_network_traffic_shaping_model',
'server_model',
'create_network_switch_stack_model',
'update_network_switch_settings_model',
'ap_tags_and_vlan_id_model',
'radius_accounting_server_model',
'radius_server_model',
'update_network_ssids_plash_settings_model',
'user_model',
'update_network_vlan_model',
'generate_network_camera_snapshot_model',
'ipsec_policies_model',
'update_network_vlans_enabled_state_model',
'update_network_uplink_settings_model',
'update_network_port_forwarding_rules_model',
'update_network_one_to_one_nat_rules_model',
'update_network_one_to_many_nat_rules_model',
'update_network_syslog_servers_model',
'remove_network_switch_stack_model',
'add_network_switch_stack_model',
'power_exception_model',
'allowed_url_model',
'update_organization_security_intrusion_settings_model',
'alert_model',
'update_network_device_wireless_radio_settings_model',
'claim_network_devices_model',
'rule9_model',
'update_device_switch_port_model',
'subnet_model',
'update_network_ssid_model',
'create_network_sm_profile_clarity_model',
'create_network_pii_request_model',
'peer_model',
'claim_organization_model',
'wan2_model',
'wan1_model',
'l3_firewall_rule_model',
'traffic_shaping_rule_model',
'scheduling_model',
'rule4_model',
'rule3_model',
'clone_organization_model',
'rule_model',
'update_network_device_model',
'update_organization_model',
'create_organization_model',
'create_network_http_servers_webhook_test_model',
'provision_network_clients_model',
'update_network_model',
'create_organization_network_model',
'update_network_bluetooth_settings_model',
'update_network_cellular_firewall_rules_model',
'ip_assignment_mode_enum',
'auth_mode_enum',
'service_enum',
'type5_enum',
'wan_enabled_enum',
'settings3_enum',
'settings2_enum',
'splash_auth_settings_enum',
'settings1_enum',
'settings_enum',
'power_type_enum',
'band_selection_enum',
'radius_load_balancing_policy_enum',
'radius_failover_policy_enum',
'wpa_encryption_mode_enum',
'encryption_mode_enum',
'v3_priv_mode_enum',
'v3_auth_mode_enum',
'access_enum',
'splash_page_enum',
'type2_enum',
'type1_enum',
'type_enum',
'policy1_enum',
'policy_enum',
] | __all__ = ['update_network_static_route_model', 'rule11_model', 'rule10_model', 'update_network_content_filtering_model', 'rule8_model', 'update_network_ssid_traffic_shaping_model', 'rule7_model', 'update_organization_snmp_model', 'move_network_sm_devices_model', 'lock_network_sm_devices_model', 'update_network_sm_devices_tags_model', 'create_network_sm_app_polaris_model', 'add_network_sm_profile_umbrella_model', 'update_network_sm_profile_umbrella_model', 'create_network_sm_profile_umbrella_model', 'add_network_sm_profile_clarity_model', 'update_network_sm_profile_clarity_model', 'update_network_client_policy_model', 'hub_model', 'update_network_site_to_site_vpn_model', 'combine_organization_networks_model', 'bind_network_model', 'default_destinations_model', 'update_network_alert_settings_model', 'network_model', 'tag_model', 'update_organization_action_batch_model', 'action_model', 'create_organization_action_batch_model', 'update_organization_admin_model', 'create_organization_admin_model', 'ssids_model', 'update_network_client_splash_authorization_status_model', 'create_network_group_policy_model', 'blink_network_device_leds_model', 'update_network_group_policy_model', 'update_network_snmp_settings_model', 'checkin_network_sm_devices_model', 'wipe_network_sm_device_model', 'device_fields_model', 'update_network_sm_device_fields_model', 'update_network_sm_app_polaris_model', 'update_network_sm_target_group_model', 'create_network_sm_target_group_model', 'allowed_file_model', 'update_network_security_malware_settings_model', 'whitelisted_rule_model', 'protected_networks_model', 'update_network_security_intrusion_settings_model', 'update_organization_saml_role_model', 'network2_model', 'tag2_model', 'create_organization_saml_role_model', 'update_organization_third_party_vpn_peers_model', 'update_network_netflow_settings_model', 'update_network_device_management_interface_settings_model', 'update_network_http_server_model', 'create_network_http_server_model', 'rule5_model', 'bonjour_forwarding_model', 'vlan_tagging_model', 'l7_firewall_rule_model', 'bandwidth_limits1_model', 'per_client_bandwidth_limits_model', 'definition_model', 'firewall_and_traffic_shaping_model', 'bandwidth_limits_model', 'bandwidth_model', 'sunday_model', 'saturday_model', 'friday_model', 'thursday_model', 'wednesday_model', 'tuesday_model', 'monday_model', 'update_network_ssid_l3_firewall_rules_model', 'update_organization_vpn_firewall_rules_model', 'rule2_model', 'update_network_l7_firewall_rules_model', 'update_network_l3_firewall_rules_model', 'dhcp_option_model', 'reserved_ip_range_model', 'create_network_vlan_model', 'bandwidth_limits6_model', 'create_network_static_route_model', 'update_network_firewalled_service_model', 'update_network_traffic_shaping_model', 'server_model', 'create_network_switch_stack_model', 'update_network_switch_settings_model', 'ap_tags_and_vlan_id_model', 'radius_accounting_server_model', 'radius_server_model', 'update_network_ssids_plash_settings_model', 'user_model', 'update_network_vlan_model', 'generate_network_camera_snapshot_model', 'ipsec_policies_model', 'update_network_vlans_enabled_state_model', 'update_network_uplink_settings_model', 'update_network_port_forwarding_rules_model', 'update_network_one_to_one_nat_rules_model', 'update_network_one_to_many_nat_rules_model', 'update_network_syslog_servers_model', 'remove_network_switch_stack_model', 'add_network_switch_stack_model', 'power_exception_model', 'allowed_url_model', 'update_organization_security_intrusion_settings_model', 'alert_model', 'update_network_device_wireless_radio_settings_model', 'claim_network_devices_model', 'rule9_model', 'update_device_switch_port_model', 'subnet_model', 'update_network_ssid_model', 'create_network_sm_profile_clarity_model', 'create_network_pii_request_model', 'peer_model', 'claim_organization_model', 'wan2_model', 'wan1_model', 'l3_firewall_rule_model', 'traffic_shaping_rule_model', 'scheduling_model', 'rule4_model', 'rule3_model', 'clone_organization_model', 'rule_model', 'update_network_device_model', 'update_organization_model', 'create_organization_model', 'create_network_http_servers_webhook_test_model', 'provision_network_clients_model', 'update_network_model', 'create_organization_network_model', 'update_network_bluetooth_settings_model', 'update_network_cellular_firewall_rules_model', 'ip_assignment_mode_enum', 'auth_mode_enum', 'service_enum', 'type5_enum', 'wan_enabled_enum', 'settings3_enum', 'settings2_enum', 'splash_auth_settings_enum', 'settings1_enum', 'settings_enum', 'power_type_enum', 'band_selection_enum', 'radius_load_balancing_policy_enum', 'radius_failover_policy_enum', 'wpa_encryption_mode_enum', 'encryption_mode_enum', 'v3_priv_mode_enum', 'v3_auth_mode_enum', 'access_enum', 'splash_page_enum', 'type2_enum', 'type1_enum', 'type_enum', 'policy1_enum', 'policy_enum'] |
file = open('helloworld.txt', 'w+')
file.write('file: helloworld.txt\n\n')
for y in range(10):
line = ''
if y == 0:
line = 'y | x\n'
for x in range(10):
if x == 0:
line += f'{y} | '
line += x.__str__() + ' '
file.write(line + '\n')
file.close()
| file = open('helloworld.txt', 'w+')
file.write('file: helloworld.txt\n\n')
for y in range(10):
line = ''
if y == 0:
line = 'y | x\n'
for x in range(10):
if x == 0:
line += f'{y} | '
line += x.__str__() + ' '
file.write(line + '\n')
file.close() |
# ------------------------------
# 139. Word Break
#
# Description:
# Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
# Note:
# The same word in the dictionary may be reused multiple times in the segmentation.
# You may assume the dictionary does not contain duplicate words.
# Example 1:
# Input: s = "leetcode", wordDict = ["leet", "code"]
# Output: true
# Explanation: Return true because "leetcode" can be segmented as "leet code".
#
# Example 2:
# Input: s = "applepenapple", wordDict = ["apple", "pen"]
# Output: true
# Explanation: Return true because "applepenapple" can be segmented as "apple pen apple".
# Note that you are allowed to reuse a dictionary word.
#
# Example 3:
# Input: s = "catsandog", wordDict = ["cats", "dog", "sand", "and", "cat"]
# Output: false
#
# Version: 1.0
# 08/22/18 by Jianfa
# ------------------------------
class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
dp = [False for _ in range(len(s)+1)]
dp[0] = True
for i in range(1, len(s)+1):
for j in range(i):
if dp[j] and s[j:i] in wordDict:
dp[i] = True
break
return dp[len(s)]
# Used for testing
if __name__ == "__main__":
test = Solution()
# ------------------------------
# Summary:
# Dynamic Programming solution from https://leetcode.com/problems/word-break/discuss/43790/Java-implementation-using-DP-in-two-ways
# Key idea is to use a boolean list, indicating for every substring of s, whether it can be segmented.
# Finally return dp[len(s)] to know whether s can be segmented. | class Solution(object):
def word_break(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
dp = [False for _ in range(len(s) + 1)]
dp[0] = True
for i in range(1, len(s) + 1):
for j in range(i):
if dp[j] and s[j:i] in wordDict:
dp[i] = True
break
return dp[len(s)]
if __name__ == '__main__':
test = solution() |
"""
default configure for benchmark function
"""
class XtBenchmarkConf(object):
"""benchmark conf, user also can re-set it"""
default_db_root = "/tmp/.xt_data/sqlite" # could set path by yourself
default_id = "xt_default_benchmark"
defalut_log_path = "/tmp/.xt_data/logs"
default_tb_path = "/tmp/.xt_data/tensorboard"
default_plot_path = "/tmp/.xt_data/plot"
default_train_interval_per_eval = 200
| """
default configure for benchmark function
"""
class Xtbenchmarkconf(object):
"""benchmark conf, user also can re-set it"""
default_db_root = '/tmp/.xt_data/sqlite'
default_id = 'xt_default_benchmark'
defalut_log_path = '/tmp/.xt_data/logs'
default_tb_path = '/tmp/.xt_data/tensorboard'
default_plot_path = '/tmp/.xt_data/plot'
default_train_interval_per_eval = 200 |
#
# PySNMP MIB module CISCO-DMN-DSG-REMINDER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DMN-DSG-REMINDER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:55:08 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")
SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint")
ciscoDSGUtilities, = mibBuilder.importSymbols("CISCO-DMN-DSG-ROOT-MIB", "ciscoDSGUtilities")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
Gauge32, TimeTicks, Counter64, Unsigned32, ModuleIdentity, MibIdentifier, Bits, NotificationType, iso, Counter32, Integer32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "MibIdentifier", "Bits", "NotificationType", "iso", "Counter32", "Integer32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity")
RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention")
ciscoDSGReminder = ModuleIdentity((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30))
ciscoDSGReminder.setRevisions(('2010-08-30 11:00', '2010-06-17 06:00', '2010-04-12 06:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoDSGReminder.setRevisionsDescriptions(('V01.00.02 2010-08-30 Updated for adherence to SNMPv2 format.', 'V01.00.01 2010-06-17 The enum option for reminderTimerFrequency is corrected.', 'V01.00.00 2010-04-12 Initial revision.',))
if mibBuilder.loadTexts: ciscoDSGReminder.setLastUpdated('201008301100Z')
if mibBuilder.loadTexts: ciscoDSGReminder.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoDSGReminder.setContactInfo('Cisco Systems, Inc. Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 NETS E-mail: cs-ipsla@cisco.com')
if mibBuilder.loadTexts: ciscoDSGReminder.setDescription('Cisco DSG Reminder Timer MIB.')
reminderTable = MibIdentifier((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2))
reminderTimerTable = MibTable((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1), )
if mibBuilder.loadTexts: reminderTimerTable.setStatus('current')
if mibBuilder.loadTexts: reminderTimerTable.setDescription('Reminder Timer table.')
reminderTimerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1), ).setIndexNames((0, "CISCO-DMN-DSG-REMINDER-MIB", "reminderTimerID"))
if mibBuilder.loadTexts: reminderTimerEntry.setStatus('current')
if mibBuilder.loadTexts: reminderTimerEntry.setDescription('Entry for Reminder Timer Table.')
reminderTimerID = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50)))
if mibBuilder.loadTexts: reminderTimerID.setStatus('current')
if mibBuilder.loadTexts: reminderTimerID.setDescription('Reminder Timer table Index.')
reminderTimerChType = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("tv", 1), ("radio", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerChType.setStatus('current')
if mibBuilder.loadTexts: reminderTimerChType.setDescription('Channel type.')
reminderTimerChNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerChNum.setStatus('current')
if mibBuilder.loadTexts: reminderTimerChNum.setDescription('Actual channel number.')
reminderTimerChName = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerChName.setStatus('current')
if mibBuilder.loadTexts: reminderTimerChName.setDescription('Name of channel for which timer has been set.')
reminderTimerEvtName = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerEvtName.setStatus('current')
if mibBuilder.loadTexts: reminderTimerEvtName.setDescription('Name of the event for which timer has been set.')
reminderTimerDay = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6), ("sunday", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerDay.setStatus('current')
if mibBuilder.loadTexts: reminderTimerDay.setDescription('On the day to be reminded.')
reminderTimerStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerStartTime.setStatus('current')
if mibBuilder.loadTexts: reminderTimerStartTime.setDescription('Timer start time. Format is yyyy-mm-dd hh:mm:ss')
reminderTimerEndTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerEndTime.setStatus('current')
if mibBuilder.loadTexts: reminderTimerEndTime.setDescription('Timer end time. Format is yyyy-mm-dd hh:mm:ss')
reminderTimerEvtParentalRating = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setStatus('current')
if mibBuilder.loadTexts: reminderTimerEvtParentalRating.setDescription('Parental rating of the event to be reminded.')
reminderTimerFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("once", 1), ("daily", 2), ("weekly", 3), ("weekDays", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerFrequency.setStatus('current')
if mibBuilder.loadTexts: reminderTimerFrequency.setDescription('Frequency of timer.')
reminderTimerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 11), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: reminderTimerRowStatus.setStatus('current')
if mibBuilder.loadTexts: reminderTimerRowStatus.setDescription(' Status of the row.')
mibBuilder.exportSymbols("CISCO-DMN-DSG-REMINDER-MIB", reminderTimerFrequency=reminderTimerFrequency, ciscoDSGReminder=ciscoDSGReminder, reminderTimerID=reminderTimerID, reminderTimerTable=reminderTimerTable, reminderTimerEntry=reminderTimerEntry, reminderTimerChNum=reminderTimerChNum, reminderTimerRowStatus=reminderTimerRowStatus, reminderTimerEvtParentalRating=reminderTimerEvtParentalRating, reminderTable=reminderTable, reminderTimerChType=reminderTimerChType, reminderTimerStartTime=reminderTimerStartTime, reminderTimerEndTime=reminderTimerEndTime, reminderTimerDay=reminderTimerDay, reminderTimerChName=reminderTimerChName, PYSNMP_MODULE_ID=ciscoDSGReminder, reminderTimerEvtName=reminderTimerEvtName)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_size_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint')
(cisco_dsg_utilities,) = mibBuilder.importSymbols('CISCO-DMN-DSG-ROOT-MIB', 'ciscoDSGUtilities')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(gauge32, time_ticks, counter64, unsigned32, module_identity, mib_identifier, bits, notification_type, iso, counter32, integer32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'TimeTicks', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'MibIdentifier', 'Bits', 'NotificationType', 'iso', 'Counter32', 'Integer32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity')
(row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention')
cisco_dsg_reminder = module_identity((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30))
ciscoDSGReminder.setRevisions(('2010-08-30 11:00', '2010-06-17 06:00', '2010-04-12 06:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoDSGReminder.setRevisionsDescriptions(('V01.00.02 2010-08-30 Updated for adherence to SNMPv2 format.', 'V01.00.01 2010-06-17 The enum option for reminderTimerFrequency is corrected.', 'V01.00.00 2010-04-12 Initial revision.'))
if mibBuilder.loadTexts:
ciscoDSGReminder.setLastUpdated('201008301100Z')
if mibBuilder.loadTexts:
ciscoDSGReminder.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoDSGReminder.setContactInfo('Cisco Systems, Inc. Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 NETS E-mail: cs-ipsla@cisco.com')
if mibBuilder.loadTexts:
ciscoDSGReminder.setDescription('Cisco DSG Reminder Timer MIB.')
reminder_table = mib_identifier((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2))
reminder_timer_table = mib_table((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1))
if mibBuilder.loadTexts:
reminderTimerTable.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerTable.setDescription('Reminder Timer table.')
reminder_timer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1)).setIndexNames((0, 'CISCO-DMN-DSG-REMINDER-MIB', 'reminderTimerID'))
if mibBuilder.loadTexts:
reminderTimerEntry.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerEntry.setDescription('Entry for Reminder Timer Table.')
reminder_timer_id = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 50)))
if mibBuilder.loadTexts:
reminderTimerID.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerID.setDescription('Reminder Timer table Index.')
reminder_timer_ch_type = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('tv', 1), ('radio', 2), ('other', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerChType.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerChType.setDescription('Channel type.')
reminder_timer_ch_num = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerChNum.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerChNum.setDescription('Actual channel number.')
reminder_timer_ch_name = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerChName.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerChName.setDescription('Name of channel for which timer has been set.')
reminder_timer_evt_name = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerEvtName.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerEvtName.setDescription('Name of the event for which timer has been set.')
reminder_timer_day = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6), ('sunday', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerDay.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerDay.setDescription('On the day to be reminded.')
reminder_timer_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerStartTime.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerStartTime.setDescription('Timer start time. Format is yyyy-mm-dd hh:mm:ss')
reminder_timer_end_time = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerEndTime.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerEndTime.setDescription('Timer end time. Format is yyyy-mm-dd hh:mm:ss')
reminder_timer_evt_parental_rating = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerEvtParentalRating.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerEvtParentalRating.setDescription('Parental rating of the event to be reminded.')
reminder_timer_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('once', 1), ('daily', 2), ('weekly', 3), ('weekDays', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerFrequency.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerFrequency.setDescription('Frequency of timer.')
reminder_timer_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1429, 2, 2, 5, 30, 2, 1, 1, 11), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
reminderTimerRowStatus.setStatus('current')
if mibBuilder.loadTexts:
reminderTimerRowStatus.setDescription(' Status of the row.')
mibBuilder.exportSymbols('CISCO-DMN-DSG-REMINDER-MIB', reminderTimerFrequency=reminderTimerFrequency, ciscoDSGReminder=ciscoDSGReminder, reminderTimerID=reminderTimerID, reminderTimerTable=reminderTimerTable, reminderTimerEntry=reminderTimerEntry, reminderTimerChNum=reminderTimerChNum, reminderTimerRowStatus=reminderTimerRowStatus, reminderTimerEvtParentalRating=reminderTimerEvtParentalRating, reminderTable=reminderTable, reminderTimerChType=reminderTimerChType, reminderTimerStartTime=reminderTimerStartTime, reminderTimerEndTime=reminderTimerEndTime, reminderTimerDay=reminderTimerDay, reminderTimerChName=reminderTimerChName, PYSNMP_MODULE_ID=ciscoDSGReminder, reminderTimerEvtName=reminderTimerEvtName) |
""" Given two strings S and T, return if they are equal when both are typed into
empty text editors. # means a backspace character. Note that after
backspacing an empty text, the text will continue empty.
Example 1: Input: S
= "ab#c", T = "ad#c" Output: true Explanation: Both S and T become "ac".
IDEA:
straightforward - simulate typing from the end, omitting symbols, using # as command
"""
class Solution844:
pass
| """ Given two strings S and T, return if they are equal when both are typed into
empty text editors. # means a backspace character. Note that after
backspacing an empty text, the text will continue empty.
Example 1: Input: S
= "ab#c", T = "ad#c" Output: true Explanation: Both S and T become "ac".
IDEA:
straightforward - simulate typing from the end, omitting symbols, using # as command
"""
class Solution844:
pass |
PI = 3.14
r = 6
area = PI * r * r
#print(area)
#calulate the surface area of a circle.
def findArea(r):
PI = 3.14
return PI * (r*r);
print('area of circle',findArea(6));
| pi = 3.14
r = 6
area = PI * r * r
def find_area(r):
pi = 3.14
return PI * (r * r)
print('area of circle', find_area(6)) |
# Copyright 2020 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.
load("@rules_rust//rust:defs.bzl", "rust_binary")
def _wasm_rust_transition_impl(settings, attr):
return {
"//command_line_option:platforms": "@rules_rust//rust/platform:wasm",
}
def _wasi_rust_transition_impl(settings, attr):
return {
"//command_line_option:platforms": "@rules_rust//rust/platform:wasi",
}
wasm_rust_transition = transition(
implementation = _wasm_rust_transition_impl,
inputs = [],
outputs = [
"//command_line_option:platforms",
],
)
wasi_rust_transition = transition(
implementation = _wasi_rust_transition_impl,
inputs = [],
outputs = [
"//command_line_option:platforms",
],
)
def _wasm_binary_impl(ctx):
out = ctx.actions.declare_file(ctx.label.name)
if ctx.attr.signing_key:
ctx.actions.run(
executable = ctx.executable._wasmsign_tool,
arguments = ["--sign", "--use-custom-section", "--sk-path", ctx.files.signing_key[0].path, "--pk-path", ctx.files.signing_key[1].path, "--input", ctx.files.binary[0].path, "--output", out.path],
outputs = [out],
inputs = ctx.files.binary + ctx.files.signing_key,
)
else:
ctx.actions.run(
executable = "cp",
arguments = [ctx.files.binary[0].path, out.path],
outputs = [out],
inputs = ctx.files.binary,
)
return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out]))]
def _wasm_attrs(transition):
return {
"binary": attr.label(mandatory = True, cfg = transition),
"signing_key": attr.label_list(allow_files = True),
"_wasmsign_tool": attr.label(default = "//bazel/cargo/wasmsign:cargo_bin_wasmsign", executable = True, cfg = "exec"),
"_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"),
}
wasm_rust_binary_rule = rule(
implementation = _wasm_binary_impl,
attrs = _wasm_attrs(wasm_rust_transition),
)
wasi_rust_binary_rule = rule(
implementation = _wasm_binary_impl,
attrs = _wasm_attrs(wasi_rust_transition),
)
def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flags = [], **kwargs):
wasm_name = "_wasm_" + name.replace(".", "_")
kwargs.setdefault("visibility", ["//visibility:public"])
rust_binary(
name = wasm_name,
edition = "2018",
crate_type = "cdylib",
out_binary = True,
tags = ["manual"],
# Rust doesn't distribute rust-lld for Linux/s390x.
rustc_flags = rustc_flags + select({
"//bazel:linux_s390x": ["-C", "linker=/usr/bin/lld"],
"//conditions:default": [],
}),
**kwargs
)
bin_rule = wasm_rust_binary_rule
if wasi:
bin_rule = wasi_rust_binary_rule
bin_rule(
name = name,
binary = ":" + wasm_name,
signing_key = signing_key,
tags = tags + ["manual"],
)
| load('@rules_rust//rust:defs.bzl', 'rust_binary')
def _wasm_rust_transition_impl(settings, attr):
return {'//command_line_option:platforms': '@rules_rust//rust/platform:wasm'}
def _wasi_rust_transition_impl(settings, attr):
return {'//command_line_option:platforms': '@rules_rust//rust/platform:wasi'}
wasm_rust_transition = transition(implementation=_wasm_rust_transition_impl, inputs=[], outputs=['//command_line_option:platforms'])
wasi_rust_transition = transition(implementation=_wasi_rust_transition_impl, inputs=[], outputs=['//command_line_option:platforms'])
def _wasm_binary_impl(ctx):
out = ctx.actions.declare_file(ctx.label.name)
if ctx.attr.signing_key:
ctx.actions.run(executable=ctx.executable._wasmsign_tool, arguments=['--sign', '--use-custom-section', '--sk-path', ctx.files.signing_key[0].path, '--pk-path', ctx.files.signing_key[1].path, '--input', ctx.files.binary[0].path, '--output', out.path], outputs=[out], inputs=ctx.files.binary + ctx.files.signing_key)
else:
ctx.actions.run(executable='cp', arguments=[ctx.files.binary[0].path, out.path], outputs=[out], inputs=ctx.files.binary)
return [default_info(files=depset([out]), runfiles=ctx.runfiles([out]))]
def _wasm_attrs(transition):
return {'binary': attr.label(mandatory=True, cfg=transition), 'signing_key': attr.label_list(allow_files=True), '_wasmsign_tool': attr.label(default='//bazel/cargo/wasmsign:cargo_bin_wasmsign', executable=True, cfg='exec'), '_whitelist_function_transition': attr.label(default='@bazel_tools//tools/whitelists/function_transition_whitelist')}
wasm_rust_binary_rule = rule(implementation=_wasm_binary_impl, attrs=_wasm_attrs(wasm_rust_transition))
wasi_rust_binary_rule = rule(implementation=_wasm_binary_impl, attrs=_wasm_attrs(wasi_rust_transition))
def wasm_rust_binary(name, tags=[], wasi=False, signing_key=[], rustc_flags=[], **kwargs):
wasm_name = '_wasm_' + name.replace('.', '_')
kwargs.setdefault('visibility', ['//visibility:public'])
rust_binary(name=wasm_name, edition='2018', crate_type='cdylib', out_binary=True, tags=['manual'], rustc_flags=rustc_flags + select({'//bazel:linux_s390x': ['-C', 'linker=/usr/bin/lld'], '//conditions:default': []}), **kwargs)
bin_rule = wasm_rust_binary_rule
if wasi:
bin_rule = wasi_rust_binary_rule
bin_rule(name=name, binary=':' + wasm_name, signing_key=signing_key, tags=tags + ['manual']) |
schema = {
"transaction": {
"attributes": ["category", "execution-date", "amount", "reference"],
"key": "identifier",
"representation": [
"execution-date",
"reference",
"account-of-receiver.account-number",
"amount",
],
},
"contract": {"attributes": ["sign-date"], "key": "identifier", "representation": ["identifier"]},
"account": {
"attributes": ["balance", "account-type", "opening-date", "account-number"],
"key": "account-number",
"representation": ["provider.name", "account-number", "account-type"],
},
"bank": {
"attributes": [
"name",
"headquarters",
"country",
"english-website",
"english-mobile-app",
"allowed-residents",
"free-accounts",
"free-worldwide-withdrawals",
"english-customer-service",
],
"key": "name",
"representation": ["name"],
},
"person": {
"attributes": [
"email",
"last-name",
"first-name",
"gender",
"phone-number",
"city",
],
"key": "email",
"representation": ["first-name", "last-name"],
},
"card": {
"attributes": ["name-on-card", "expiry-date", "created-date", "card-number"],
"key": "card-number",
"representation": ["name-on-card", "card-number"],
},
}
| schema = {'transaction': {'attributes': ['category', 'execution-date', 'amount', 'reference'], 'key': 'identifier', 'representation': ['execution-date', 'reference', 'account-of-receiver.account-number', 'amount']}, 'contract': {'attributes': ['sign-date'], 'key': 'identifier', 'representation': ['identifier']}, 'account': {'attributes': ['balance', 'account-type', 'opening-date', 'account-number'], 'key': 'account-number', 'representation': ['provider.name', 'account-number', 'account-type']}, 'bank': {'attributes': ['name', 'headquarters', 'country', 'english-website', 'english-mobile-app', 'allowed-residents', 'free-accounts', 'free-worldwide-withdrawals', 'english-customer-service'], 'key': 'name', 'representation': ['name']}, 'person': {'attributes': ['email', 'last-name', 'first-name', 'gender', 'phone-number', 'city'], 'key': 'email', 'representation': ['first-name', 'last-name']}, 'card': {'attributes': ['name-on-card', 'expiry-date', 'created-date', 'card-number'], 'key': 'card-number', 'representation': ['name-on-card', 'card-number']}} |
'''
Get the name and the value of various products.
The program should ask if the user wants to continue.
In the end show the following:
1 - The total value.
2 - How many products costs more than R$1000.
3 - The name of cheaper product.
'''
dlength = 20
division = '=-' * dlength
print(f'{division}\n{"The Cheapest Shop":^{dlength * 2}}\n{division}')
total = higher1000 = cheapestValue = cheapestName = 0
while True:
name = input('Product name: ')
price = float(input('Price: R$ '))
if total == 0 or price < cheapestValue:
cheapestValue = price
cheapestName = name
total += price
if price > 1000:
higher1000 += 1
again = input('Do you want to continue? [S/N]').strip().upper()
if again == 'N':
break
print(f'The total cost is \033[32mR$ {total:.2f}\033[m, with \033[32m{higher1000}\033[m products higher than \033[34mR$ 1000\033[m')
print(f'And the cheapest product is the \033[32m{cheapestName}\033[m, it costs R$ {cheapestValue:.2f}\033[m')
| """
Get the name and the value of various products.
The program should ask if the user wants to continue.
In the end show the following:
1 - The total value.
2 - How many products costs more than R$1000.
3 - The name of cheaper product.
"""
dlength = 20
division = '=-' * dlength
print(f"{division}\n{'The Cheapest Shop':^{dlength * 2}}\n{division}")
total = higher1000 = cheapest_value = cheapest_name = 0
while True:
name = input('Product name: ')
price = float(input('Price: R$ '))
if total == 0 or price < cheapestValue:
cheapest_value = price
cheapest_name = name
total += price
if price > 1000:
higher1000 += 1
again = input('Do you want to continue? [S/N]').strip().upper()
if again == 'N':
break
print(f'The total cost is \x1b[32mR$ {total:.2f}\x1b[m, with \x1b[32m{higher1000}\x1b[m products higher than \x1b[34mR$ 1000\x1b[m')
print(f'And the cheapest product is the \x1b[32m{cheapestName}\x1b[m, it costs R$ {cheapestValue:.2f}\x1b[m') |
def countWordsFromFile():
fileName = input("Enter the file name:- ")
numberOfWords = 0
file = open(fileName, 'r')
for line in file:
words = line.split()
numberOfWords=numberOfWords+len(words)
print("The number of words in this file are: ")
print(numberOfWords)
countWordsFromFile()
| def count_words_from_file():
file_name = input('Enter the file name:- ')
number_of_words = 0
file = open(fileName, 'r')
for line in file:
words = line.split()
number_of_words = numberOfWords + len(words)
print('The number of words in this file are: ')
print(numberOfWords)
count_words_from_file() |
def rearrange(arr, n):
# Auxiliary array to hold modified array
temp = n*[None]
# Indexes of smallest and largest elements
# from remaining array.
small,large =0,n-1
# To indicate whether we need to copy rmaining
# largest or remaining smallest at next position
flag = True
# Store result in temp[]
for i in range(n):
if flag is True:
temp[i] = arr[large]
large -= 1
else:
temp[i] = arr[small]
small += 1
flag = bool(1-flag)
# Copy temp[] to arr[]
for i in range(n):
arr[i] = temp[i]
return arr
for i in range(int(input())):
n = int(input())
s = 0
ar = []
d = []
for j in range(n):
a,b = [int(k) for k in input().split()]
d.append(a)
ar.append(b)
ar.sort()
ar = rearrange(ar,n)
print(ar)
if(n%2==0):
for j in range(0,n-1,2):
ar[j],ar[j+1] = ar[j+1],ar[j]
else:
for j in range(0,n//2,2):
ar[j],ar[j+1] = ar[j+1],ar[j]
ar[-j-1],ar[-j-2] = ar[-j-2],ar[-j-1]
print(ar)
a,b = d[0],ar[0]
for j in range(1,n):
s+=abs(d[j]-a)*abs(ar[j]-b)+2*min(b,ar[j])
a,b = d[j],ar[j]
print(s)
| def rearrange(arr, n):
temp = n * [None]
(small, large) = (0, n - 1)
flag = True
for i in range(n):
if flag is True:
temp[i] = arr[large]
large -= 1
else:
temp[i] = arr[small]
small += 1
flag = bool(1 - flag)
for i in range(n):
arr[i] = temp[i]
return arr
for i in range(int(input())):
n = int(input())
s = 0
ar = []
d = []
for j in range(n):
(a, b) = [int(k) for k in input().split()]
d.append(a)
ar.append(b)
ar.sort()
ar = rearrange(ar, n)
print(ar)
if n % 2 == 0:
for j in range(0, n - 1, 2):
(ar[j], ar[j + 1]) = (ar[j + 1], ar[j])
else:
for j in range(0, n // 2, 2):
(ar[j], ar[j + 1]) = (ar[j + 1], ar[j])
(ar[-j - 1], ar[-j - 2]) = (ar[-j - 2], ar[-j - 1])
print(ar)
(a, b) = (d[0], ar[0])
for j in range(1, n):
s += abs(d[j] - a) * abs(ar[j] - b) + 2 * min(b, ar[j])
(a, b) = (d[j], ar[j])
print(s) |
# def start_end_decorator(func):
# def wrapper(number):
# print("Start")
# result = func(number)
# print("End")
# return result
# return wrapper
# @start_end_decorator
# def func(number):
# print("Inside func")
# return number + 5
# result = func(5)
# print(result)
# def print_name():
# print("Jatin Yadav")
# print_name()
def func1(func):
def now():
print("Start")
func()
print("End")
return now
@func1
def func():
print("Jatin Yadav")
# func = func1(func)
func() | def func1(func):
def now():
print('Start')
func()
print('End')
return now
@func1
def func():
print('Jatin Yadav')
func() |
# O(NlogM) / O(1)
class Solution:
def splitArray(self, nums: List[int], m: int) -> int:
def count(d):
ans, cur = 1, 0
for num in nums:
cur += num
if cur > d:
ans += 1
cur = num
return ans
l, r = max(nums), sum(nums) + 1
while l < r:
mid = l + (r - l) // 2
if count(mid) <= m:
r = mid
else:
l = mid + 1
return l | class Solution:
def split_array(self, nums: List[int], m: int) -> int:
def count(d):
(ans, cur) = (1, 0)
for num in nums:
cur += num
if cur > d:
ans += 1
cur = num
return ans
(l, r) = (max(nums), sum(nums) + 1)
while l < r:
mid = l + (r - l) // 2
if count(mid) <= m:
r = mid
else:
l = mid + 1
return l |
def f(w : list, u : list, m : int) -> int:
x = float(0)
for i in range(m):
x += (w[i]*u[i])
if x < 0.0:
return 0
return 1
def perceptron(u : list, c : float):
wt = [1.0 for _ in range(26)]
t = 1
counter = 0
while counter < 5:
zt = 1 if t % 5 < 3 else 0
yt = f(wt, u[(t-1) % 5], len(wt))
for i in range(26):
wt[i] += c*(zt - yt)*u[(t-1) % 5][i]
t += 1
if zt == yt:
counter += 1
else:
counter = 0
print(f't: {t}')
for ind, value in enumerate(wt):
print(f'w[{ind}] : {value}')
print('\n')
def main():
u = list()
u.append([1.0 if x in [6,7,12,17,22,25] else 0.0 for x in range(26)])
u.append([1.0 if x in [2,3,8,13,25] else 0.0 for x in range(26)])
u.append([1.0 if x in [5,6,11,16,21,25] else 0.0 for x in range(26)])
u.append([1.0 if x in [6,7,8,11,13,16,17,18,25] else 0.0 for x in range(26)])
u.append([1.0 if x in [10,11,12,15,17,20,21,22,25] else 0.0 for x in range(26)])
for c in [1.0, 0.1, 0.01]:
perceptron(u, c)
if __name__ == '__main__':
main()
"""
u1 = [0 0 0 0 0
0 1 1 0 0
0 0 1 0 0
0 0 1 0 0
0 0 1 0 0 1]
u2 = [0 0 1 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 0 0
0 0 0 0 0 1]
u3 = [0 0 0 0 0
1 1 0 0 0
0 1 0 0 0
0 1 0 0 0
0 1 0 0 0 1]
u4 = [0 0 0 0 0
0 1 1 1 0
0 1 0 1 0
0 1 1 1 0
0 0 0 0 0 1]
u5 = [0 0 0 0 0
0 0 0 0 0
1 1 1 0 0
1 0 1 0 0
1 1 1 0 0 1]
""" | def f(w: list, u: list, m: int) -> int:
x = float(0)
for i in range(m):
x += w[i] * u[i]
if x < 0.0:
return 0
return 1
def perceptron(u: list, c: float):
wt = [1.0 for _ in range(26)]
t = 1
counter = 0
while counter < 5:
zt = 1 if t % 5 < 3 else 0
yt = f(wt, u[(t - 1) % 5], len(wt))
for i in range(26):
wt[i] += c * (zt - yt) * u[(t - 1) % 5][i]
t += 1
if zt == yt:
counter += 1
else:
counter = 0
print(f't: {t}')
for (ind, value) in enumerate(wt):
print(f'w[{ind}] : {value}')
print('\n')
def main():
u = list()
u.append([1.0 if x in [6, 7, 12, 17, 22, 25] else 0.0 for x in range(26)])
u.append([1.0 if x in [2, 3, 8, 13, 25] else 0.0 for x in range(26)])
u.append([1.0 if x in [5, 6, 11, 16, 21, 25] else 0.0 for x in range(26)])
u.append([1.0 if x in [6, 7, 8, 11, 13, 16, 17, 18, 25] else 0.0 for x in range(26)])
u.append([1.0 if x in [10, 11, 12, 15, 17, 20, 21, 22, 25] else 0.0 for x in range(26)])
for c in [1.0, 0.1, 0.01]:
perceptron(u, c)
if __name__ == '__main__':
main()
'\nu1 = [0 0 0 0 0\n 0 1 1 0 0\n 0 0 1 0 0\n 0 0 1 0 0\n 0 0 1 0 0 1]\n\nu2 = [0 0 1 1 0\n 0 0 0 1 0\n 0 0 0 1 0\n 0 0 0 0 0\n 0 0 0 0 0 1]\n\nu3 = [0 0 0 0 0\n 1 1 0 0 0\n 0 1 0 0 0\n 0 1 0 0 0\n 0 1 0 0 0 1]\n\nu4 = [0 0 0 0 0\n 0 1 1 1 0\n 0 1 0 1 0\n 0 1 1 1 0\n 0 0 0 0 0 1]\n\nu5 = [0 0 0 0 0\n 0 0 0 0 0\n 1 1 1 0 0\n 1 0 1 0 0\n 1 1 1 0 0 1]\n' |
# calculo del perimetro del cuadrado
print('calculo del perimetro cuadrado')
lado = int(input('introduce el valor del lado que conoces del cuadrado: '))
lado *= 4
print('el perimetro del cuadrado es: ',lado)
| print('calculo del perimetro cuadrado')
lado = int(input('introduce el valor del lado que conoces del cuadrado: '))
lado *= 4
print('el perimetro del cuadrado es: ', lado) |
def load(h):
return ({'abbr': 'msl', 'code': 1, 'title': 'MSL Pressure reduced to MSL Pa'},
{'abbr': 't', 'code': 11, 'title': 'T Temperature Deg C'},
{'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'},
{'abbr': 'ws1', 'code': 28, 'title': 'WS1 Wave spectra (1) -'},
{'abbr': 'ws2', 'code': 29, 'title': 'WS2 Wave spectra (2) -'},
{'abbr': 'ws3', 'code': 30, 'title': 'WS3 Wave spectra (3) -'},
{'abbr': 'dir', 'code': 31, 'title': 'DIR Wind direction Deg true'},
{'abbr': 'spd', 'code': 32, 'title': 'SPD Wind speed m/s'},
{'abbr': 'u', 'code': 33, 'title': 'U U-component of Wind m/s'},
{'abbr': 'v', 'code': 34, 'title': 'V V-component of Wind m/s'},
{'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2/s'},
{'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2/s'},
{'abbr': 'mntsf',
'code': 37,
'title': 'MNTSF Montgomery stream function m2/s2'},
{'abbr': 'sigmw',
'code': 38,
'title': 'SIGMW Sigma coordinate vertical velocity 1/s'},
{'abbr': 'wcur_pr',
'code': 39,
'title': 'WCUR_PR Z-component of velocity (pressure) Pa/s'},
{'abbr': 'wcur_ge',
'code': 40,
'title': 'WCUR_GE Z-component of velocity (geometric) m/s'},
{'abbr': 'absvor', 'code': 41, 'title': 'ABSVOR Absolute vorticity 1/s'},
{'abbr': 'absdiv', 'code': 42, 'title': 'ABSDIV Absolute divergence 1/s'},
{'abbr': 'relvor', 'code': 43, 'title': 'RELVOR Relative vorticity 1/s'},
{'abbr': 'reldiv', 'code': 44, 'title': 'RELDIV Relative divergence 1/s'},
{'abbr': 'vershu',
'code': 45,
'title': 'VERSHU Vertical u-component shear 1/s'},
{'abbr': 'vershv',
'code': 46,
'title': 'VERSHV Vertical v-component shear 1/s'},
{'abbr': 'dirhorcurr',
'code': 47,
'title': 'DIRHORCURR Direction of horizontal current Deg true'},
{'abbr': 'spdhorcurr',
'code': 48,
'title': 'SPDHORCURR Speed of horizontal current m/s'},
{'abbr': 'ucue', 'code': 49, 'title': 'UCUE U-comp of Current cm/s'},
{'abbr': 'vcur', 'code': 50, 'title': 'VCUR V-comp of Current cm/s'},
{'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity g/kg'},
{'abbr': 'hsnow', 'code': 66, 'title': 'HSNOW Snow Depth m'},
{'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'},
{'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'},
{'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'},
{'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'},
{'abbr': 'tcc', 'code': 71, 'title': 'TCC Total Cloud Cover Fraction'},
{'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'},
{'abbr': 'zlev',
'code': 82,
'title': 'ZLEV Deviation of sea level from mean cm'},
{'abbr': 's', 'code': 88, 'title': 'S Salinity psu'},
{'abbr': 'den', 'code': 89, 'title': 'DEN Density kg/m3'},
{'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice Cover Fraction'},
{'abbr': 'icetk', 'code': 92, 'title': 'ICETK Total ice thickness m'},
{'abbr': 'diced',
'code': 93,
'title': 'DICED Direction of ice drift Deg true'},
{'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m/s'},
{'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift cm/s'},
{'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift cm/s'},
{'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m/s'},
{'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence 1/s'},
{'abbr': 'swh', 'code': 100, 'title': 'SWH Significant wave height m'},
{'abbr': 'wvdir',
'code': 101,
'title': 'WVDIR Direction of Wind Waves Deg. true'},
{'abbr': 'shww', 'code': 102, 'title': 'SHWW Sign Height Wind Waves m'},
{'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean Period Wind Waves s'},
{'abbr': 'swdir',
'code': 104,
'title': 'SWDIR Direction of Swell Waves Deg. true'},
{'abbr': 'shps', 'code': 105, 'title': 'SHPS Sign Height Swell Waves m'},
{'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean Period Swell Waves s'},
{'abbr': 'dirpw',
'code': 107,
'title': 'DIRPW Primary wave direction Deg true'},
{'abbr': 'perpw', 'code': 108, 'title': 'PERPW Primary wave mean period s'},
{'abbr': 'dirsw',
'code': 109,
'title': 'DIRSW Secondary wave direction Deg true'},
{'abbr': 'persw', 'code': 110, 'title': 'PERSW Secondary wave mean period s'},
{'abbr': 'mpw', 'code': 111, 'title': 'MPW Mean period of waves s'},
{'abbr': 'wadir',
'code': 112,
'title': 'WADIR Mean direction of Waves Deg. true'},
{'abbr': 'pp1d', 'code': 113, 'title': 'PP1D Peak period of 1D spectra s'},
{'abbr': 'usurf', 'code': 130, 'title': 'USURF Skin velocity, x-comp. cm/s'},
{'abbr': 'vsurf', 'code': 131, 'title': 'VSURF Skin velocity, y-comp. cm/s'},
{'abbr': 'no3', 'code': 151, 'title': 'NO3 Nitrate -'},
{'abbr': 'nh4', 'code': 152, 'title': 'NH4 Ammonium -'},
{'abbr': 'po4', 'code': 153, 'title': 'PO4 Phosphate -'},
{'abbr': 'o2', 'code': 154, 'title': 'O2 Oxygen -'},
{'abbr': 'phpl', 'code': 155, 'title': 'PHPL Phytoplankton -'},
{'abbr': 'zpl', 'code': 156, 'title': 'ZPL Zooplankton -'},
{'abbr': 'dtr', 'code': 157, 'title': 'DTR Detritus -'},
{'abbr': 'benn', 'code': 158, 'title': 'BENN Bentos nitrogen -'},
{'abbr': 'benp', 'code': 159, 'title': 'BENP Bentos phosphorus -'},
{'abbr': 'sio4', 'code': 160, 'title': 'SIO4 Silicate -'},
{'abbr': 'sio2_bi', 'code': 161, 'title': 'SIO2_BI Biogenic silica -'},
{'abbr': 'li_wacol', 'code': 162, 'title': 'LI_WACOL Light in water column -'},
{'abbr': 'inorg_mat',
'code': 163,
'title': 'INORG_MAT Inorganic suspended matter -'},
{'abbr': 'diat', 'code': 164, 'title': 'DIAT Diatomes (algae) -'},
{'abbr': 'flag', 'code': 165, 'title': 'FLAG Flagellates (algae) -'},
{'abbr': 'no3_agg', 'code': 166, 'title': 'NO3_AGG Nitrate (aggregated) -'},
{'abbr': 'ffldg', 'code': 170, 'title': 'FFLDG Flash flood guidance kg/m2'},
{'abbr': 'ffldro', 'code': 171, 'title': 'FFLDRO Flash flood runoff kg/m2'},
{'abbr': 'rssc', 'code': 172, 'title': 'RSSC Remotely-sensed snow cover Code'},
{'abbr': 'esct',
'code': 173,
'title': 'ESCT Elevation of snow-covered terrain Code'},
{'abbr': 'swepon',
'code': 174,
'title': 'SWEPON Snow water equivalent per cent of normal %'},
{'abbr': 'bgrun',
'code': 175,
'title': 'BGRUN Baseflow-groundwater runoff kg/m2'},
{'abbr': 'ssrun', 'code': 176, 'title': 'SSRUN Storm surface runoff kg/m2'},
{'abbr': 'cppop',
'code': 180,
'title': 'CPPOP Conditional per cent precipitation amount fractile for an '
'overall period kg/m2'},
{'abbr': 'pposp',
'code': 181,
'title': 'PPOSP Per cent precipitation in a sub-period of an overall period '
'%'},
{'abbr': 'pop',
'code': 182,
'title': 'POP Probability if 0.01 inch of precipitation %'},
{'abbr': 'tsec',
'code': 190,
'title': 'TSEC Seconds prior to initial reference time (defined in section1) '
'(oceonography) s'},
{'abbr': 'mosf',
'code': 191,
'title': 'MOSF Meridional overturning stream function m3/s'},
{'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J/kg'},
{'abbr': 'dtke', 'code': 201, 'title': 'DTKE Dissipation rate of TKE W/kg'},
{'abbr': 'km', 'code': 202, 'title': 'KM Eddy viscosity m2/s'},
{'abbr': 'kh', 'code': 203, 'title': 'KH Eddy diffusivity m2/s'},
{'abbr': 'hlev', 'code': 220, 'title': 'HLEV Level ice thickness m'},
{'abbr': 'hrdg', 'code': 221, 'title': 'HRDG Ridged ice thickness m'},
{'abbr': 'rh', 'code': 222, 'title': 'RH Ice ridge height m'},
{'abbr': 'rd', 'code': 223, 'title': 'RD Ice ridge density 1/km'},
{'abbr': 'ucurmean',
'code': 231,
'title': 'UCURMEAN U-mean (prev. timestep) cm/s'},
{'abbr': 'vcurmean',
'code': 232,
'title': 'VCURMEAN V-mean (prev. timestep) cm/s'},
{'abbr': 'wcurmean',
'code': 233,
'title': 'WCURMEAN W-mean (prev. timestep) m/s'},
{'abbr': 'tsnow', 'code': 239, 'title': 'TSNOW Snow temperature Deg C'},
{'abbr': 'depth', 'code': 243, 'title': 'DEPTH Total depth in meters m'})
| def load(h):
return ({'abbr': 'msl', 'code': 1, 'title': 'MSL Pressure reduced to MSL Pa'}, {'abbr': 't', 'code': 11, 'title': 'T Temperature Deg C'}, {'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'}, {'abbr': 'ws1', 'code': 28, 'title': 'WS1 Wave spectra (1) -'}, {'abbr': 'ws2', 'code': 29, 'title': 'WS2 Wave spectra (2) -'}, {'abbr': 'ws3', 'code': 30, 'title': 'WS3 Wave spectra (3) -'}, {'abbr': 'dir', 'code': 31, 'title': 'DIR Wind direction Deg true'}, {'abbr': 'spd', 'code': 32, 'title': 'SPD Wind speed m/s'}, {'abbr': 'u', 'code': 33, 'title': 'U U-component of Wind m/s'}, {'abbr': 'v', 'code': 34, 'title': 'V V-component of Wind m/s'}, {'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2/s'}, {'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2/s'}, {'abbr': 'mntsf', 'code': 37, 'title': 'MNTSF Montgomery stream function m2/s2'}, {'abbr': 'sigmw', 'code': 38, 'title': 'SIGMW Sigma coordinate vertical velocity 1/s'}, {'abbr': 'wcur_pr', 'code': 39, 'title': 'WCUR_PR Z-component of velocity (pressure) Pa/s'}, {'abbr': 'wcur_ge', 'code': 40, 'title': 'WCUR_GE Z-component of velocity (geometric) m/s'}, {'abbr': 'absvor', 'code': 41, 'title': 'ABSVOR Absolute vorticity 1/s'}, {'abbr': 'absdiv', 'code': 42, 'title': 'ABSDIV Absolute divergence 1/s'}, {'abbr': 'relvor', 'code': 43, 'title': 'RELVOR Relative vorticity 1/s'}, {'abbr': 'reldiv', 'code': 44, 'title': 'RELDIV Relative divergence 1/s'}, {'abbr': 'vershu', 'code': 45, 'title': 'VERSHU Vertical u-component shear 1/s'}, {'abbr': 'vershv', 'code': 46, 'title': 'VERSHV Vertical v-component shear 1/s'}, {'abbr': 'dirhorcurr', 'code': 47, 'title': 'DIRHORCURR Direction of horizontal current Deg true'}, {'abbr': 'spdhorcurr', 'code': 48, 'title': 'SPDHORCURR Speed of horizontal current m/s'}, {'abbr': 'ucue', 'code': 49, 'title': 'UCUE U-comp of Current cm/s'}, {'abbr': 'vcur', 'code': 50, 'title': 'VCUR V-comp of Current cm/s'}, {'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity g/kg'}, {'abbr': 'hsnow', 'code': 66, 'title': 'HSNOW Snow Depth m'}, {'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'}, {'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'}, {'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'}, {'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'}, {'abbr': 'tcc', 'code': 71, 'title': 'TCC Total Cloud Cover Fraction'}, {'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'}, {'abbr': 'zlev', 'code': 82, 'title': 'ZLEV Deviation of sea level from mean cm'}, {'abbr': 's', 'code': 88, 'title': 'S Salinity psu'}, {'abbr': 'den', 'code': 89, 'title': 'DEN Density kg/m3'}, {'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice Cover Fraction'}, {'abbr': 'icetk', 'code': 92, 'title': 'ICETK Total ice thickness m'}, {'abbr': 'diced', 'code': 93, 'title': 'DICED Direction of ice drift Deg true'}, {'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m/s'}, {'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift cm/s'}, {'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift cm/s'}, {'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m/s'}, {'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence 1/s'}, {'abbr': 'swh', 'code': 100, 'title': 'SWH Significant wave height m'}, {'abbr': 'wvdir', 'code': 101, 'title': 'WVDIR Direction of Wind Waves Deg. true'}, {'abbr': 'shww', 'code': 102, 'title': 'SHWW Sign Height Wind Waves m'}, {'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean Period Wind Waves s'}, {'abbr': 'swdir', 'code': 104, 'title': 'SWDIR Direction of Swell Waves Deg. true'}, {'abbr': 'shps', 'code': 105, 'title': 'SHPS Sign Height Swell Waves m'}, {'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean Period Swell Waves s'}, {'abbr': 'dirpw', 'code': 107, 'title': 'DIRPW Primary wave direction Deg true'}, {'abbr': 'perpw', 'code': 108, 'title': 'PERPW Primary wave mean period s'}, {'abbr': 'dirsw', 'code': 109, 'title': 'DIRSW Secondary wave direction Deg true'}, {'abbr': 'persw', 'code': 110, 'title': 'PERSW Secondary wave mean period s'}, {'abbr': 'mpw', 'code': 111, 'title': 'MPW Mean period of waves s'}, {'abbr': 'wadir', 'code': 112, 'title': 'WADIR Mean direction of Waves Deg. true'}, {'abbr': 'pp1d', 'code': 113, 'title': 'PP1D Peak period of 1D spectra s'}, {'abbr': 'usurf', 'code': 130, 'title': 'USURF Skin velocity, x-comp. cm/s'}, {'abbr': 'vsurf', 'code': 131, 'title': 'VSURF Skin velocity, y-comp. cm/s'}, {'abbr': 'no3', 'code': 151, 'title': 'NO3 Nitrate -'}, {'abbr': 'nh4', 'code': 152, 'title': 'NH4 Ammonium -'}, {'abbr': 'po4', 'code': 153, 'title': 'PO4 Phosphate -'}, {'abbr': 'o2', 'code': 154, 'title': 'O2 Oxygen -'}, {'abbr': 'phpl', 'code': 155, 'title': 'PHPL Phytoplankton -'}, {'abbr': 'zpl', 'code': 156, 'title': 'ZPL Zooplankton -'}, {'abbr': 'dtr', 'code': 157, 'title': 'DTR Detritus -'}, {'abbr': 'benn', 'code': 158, 'title': 'BENN Bentos nitrogen -'}, {'abbr': 'benp', 'code': 159, 'title': 'BENP Bentos phosphorus -'}, {'abbr': 'sio4', 'code': 160, 'title': 'SIO4 Silicate -'}, {'abbr': 'sio2_bi', 'code': 161, 'title': 'SIO2_BI Biogenic silica -'}, {'abbr': 'li_wacol', 'code': 162, 'title': 'LI_WACOL Light in water column -'}, {'abbr': 'inorg_mat', 'code': 163, 'title': 'INORG_MAT Inorganic suspended matter -'}, {'abbr': 'diat', 'code': 164, 'title': 'DIAT Diatomes (algae) -'}, {'abbr': 'flag', 'code': 165, 'title': 'FLAG Flagellates (algae) -'}, {'abbr': 'no3_agg', 'code': 166, 'title': 'NO3_AGG Nitrate (aggregated) -'}, {'abbr': 'ffldg', 'code': 170, 'title': 'FFLDG Flash flood guidance kg/m2'}, {'abbr': 'ffldro', 'code': 171, 'title': 'FFLDRO Flash flood runoff kg/m2'}, {'abbr': 'rssc', 'code': 172, 'title': 'RSSC Remotely-sensed snow cover Code'}, {'abbr': 'esct', 'code': 173, 'title': 'ESCT Elevation of snow-covered terrain Code'}, {'abbr': 'swepon', 'code': 174, 'title': 'SWEPON Snow water equivalent per cent of normal %'}, {'abbr': 'bgrun', 'code': 175, 'title': 'BGRUN Baseflow-groundwater runoff kg/m2'}, {'abbr': 'ssrun', 'code': 176, 'title': 'SSRUN Storm surface runoff kg/m2'}, {'abbr': 'cppop', 'code': 180, 'title': 'CPPOP Conditional per cent precipitation amount fractile for an overall period kg/m2'}, {'abbr': 'pposp', 'code': 181, 'title': 'PPOSP Per cent precipitation in a sub-period of an overall period %'}, {'abbr': 'pop', 'code': 182, 'title': 'POP Probability if 0.01 inch of precipitation %'}, {'abbr': 'tsec', 'code': 190, 'title': 'TSEC Seconds prior to initial reference time (defined in section1) (oceonography) s'}, {'abbr': 'mosf', 'code': 191, 'title': 'MOSF Meridional overturning stream function m3/s'}, {'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J/kg'}, {'abbr': 'dtke', 'code': 201, 'title': 'DTKE Dissipation rate of TKE W/kg'}, {'abbr': 'km', 'code': 202, 'title': 'KM Eddy viscosity m2/s'}, {'abbr': 'kh', 'code': 203, 'title': 'KH Eddy diffusivity m2/s'}, {'abbr': 'hlev', 'code': 220, 'title': 'HLEV Level ice thickness m'}, {'abbr': 'hrdg', 'code': 221, 'title': 'HRDG Ridged ice thickness m'}, {'abbr': 'rh', 'code': 222, 'title': 'RH Ice ridge height m'}, {'abbr': 'rd', 'code': 223, 'title': 'RD Ice ridge density 1/km'}, {'abbr': 'ucurmean', 'code': 231, 'title': 'UCURMEAN U-mean (prev. timestep) cm/s'}, {'abbr': 'vcurmean', 'code': 232, 'title': 'VCURMEAN V-mean (prev. timestep) cm/s'}, {'abbr': 'wcurmean', 'code': 233, 'title': 'WCURMEAN W-mean (prev. timestep) m/s'}, {'abbr': 'tsnow', 'code': 239, 'title': 'TSNOW Snow temperature Deg C'}, {'abbr': 'depth', 'code': 243, 'title': 'DEPTH Total depth in meters m'}) |
# 9. Find the minimum element in an array of integers.
# You can carry some extra information through method
# arguments such as minimum value.
def findmin(A, n):
# if size = 0 means whole array
# has been traversed
if (n == 1):
#if it's the last value just return it for comparison with last stacked valu
return A[0]
#otherwise find the min between returned and current
minval=min(A[n - 1], findmin(A, n - 1))
return minval
# Driver Code
if __name__ == '__main__':
A = [10, 14, 45, 6, 50, 10, 22]
n = len(A)
print("Smallest value in array is: {}".format(findmin(A, n))) | def findmin(A, n):
if n == 1:
return A[0]
minval = min(A[n - 1], findmin(A, n - 1))
return minval
if __name__ == '__main__':
a = [10, 14, 45, 6, 50, 10, 22]
n = len(A)
print('Smallest value in array is: {}'.format(findmin(A, n))) |
{
'target_defaults': {
'variables': {
'deps': [
'libchrome-<(libbase_ver)',
],
},
},
'targets': [
{
'target_name': 'touch_keyboard_handler',
'type': 'executable',
'sources': [
'evdevsource.cc',
'fakekeyboard.cc',
'faketouchpad.cc',
'haptic/ff_driver.cc',
'haptic/touch_ff_manager.cc',
'main.cc',
'statemachine/eventkey.cc',
'statemachine/slot.cc',
'statemachine/statemachine.cc',
'uinputdevice.cc',
],
},
{
'target_name': 'touchkb_haptic_test',
'type': 'executable',
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
],
},
'sources': [
'haptic/ff_driver.cc',
'haptic/haptic_test.cc',
],
},
],
'conditions': [
['USE_test == 1', {
'targets': [
{
'target_name': 'eventkey_test',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'sources': [
'statemachine/eventkey.cc',
'statemachine/eventkey_test.cc',
],
},
{
'target_name': 'slot_test',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'sources': [
'statemachine/eventkey.cc',
'statemachine/slot.cc',
'statemachine/slot_test.cc',
],
},
{
'target_name': 'statemachine_test',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'sources': [
'statemachine/eventkey.cc',
'statemachine/slot.cc',
'statemachine/statemachine.cc',
'statemachine/statemachine_test.cc',
],
},
{
'target_name': 'evdevsource_test',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'sources': [
'evdevsource.cc',
'evdevsource_test.cc',
],
},
{
'target_name': 'uinputdevice_test',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'sources': [
'uinputdevice.cc',
'uinputdevice_test.cc',
],
},
],
}],
],
}
| {'target_defaults': {'variables': {'deps': ['libchrome-<(libbase_ver)']}}, 'targets': [{'target_name': 'touch_keyboard_handler', 'type': 'executable', 'sources': ['evdevsource.cc', 'fakekeyboard.cc', 'faketouchpad.cc', 'haptic/ff_driver.cc', 'haptic/touch_ff_manager.cc', 'main.cc', 'statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'uinputdevice.cc']}, {'target_name': 'touchkb_haptic_test', 'type': 'executable', 'variables': {'deps': ['libbrillo-<(libbase_ver)']}, 'sources': ['haptic/ff_driver.cc', 'haptic/haptic_test.cc']}], 'conditions': [['USE_test == 1', {'targets': [{'target_name': 'eventkey_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/eventkey_test.cc']}, {'target_name': 'slot_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/slot_test.cc']}, {'target_name': 'statemachine_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['statemachine/eventkey.cc', 'statemachine/slot.cc', 'statemachine/statemachine.cc', 'statemachine/statemachine_test.cc']}, {'target_name': 'evdevsource_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['evdevsource.cc', 'evdevsource_test.cc']}, {'target_name': 'uinputdevice_test', 'type': 'executable', 'includes': ['../common-mk/common_test.gypi'], 'sources': ['uinputdevice.cc', 'uinputdevice_test.cc']}]}]]} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.