content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
#
# @lc app=leetcode id=32 lang=python3
#
# [32] Longest Valid Parentheses
#
# @lc code=start
class Solution:
def longestValidParentheses(self, s):
if not s:
return 0
l = 0
r = len(s)
while s[r - 1] == '(' and r > 0:
r -= 1
while s[l] == ')' and l < r - 2:
l += 1
s = s[l : r]
if len(s) < 2:
return 0
stack = [-1]
mx = 0
for i, p in enumerate(s):
if p == '(':
stack.append(i)
elif p == ')':
stack.pop()
if not stack:
stack.append(i)
else:
mx = max(mx, i - stack[-1])
return mx
# @lc code=end
| class Solution:
def longest_valid_parentheses(self, s):
if not s:
return 0
l = 0
r = len(s)
while s[r - 1] == '(' and r > 0:
r -= 1
while s[l] == ')' and l < r - 2:
l += 1
s = s[l:r]
if len(s) < 2:
return 0
stack = [-1]
mx = 0
for (i, p) in enumerate(s):
if p == '(':
stack.append(i)
elif p == ')':
stack.pop()
if not stack:
stack.append(i)
else:
mx = max(mx, i - stack[-1])
return mx |
command = input()
compare_string_lower = {"coding", "dog", "cat", "movie"}
compare_string_upper = {"CODING", "DOG", "CAT", "MOVIE"}
coffee = 0
get_sleep = False
while not command == "END":
if command.isupper() and command in compare_string_upper:
coffee += 2
if command.islower() and command in compare_string_lower:
coffee += 1
if coffee > 5:
get_sleep = True
print()
print("You need extra sleep")
break
command = input()
if not get_sleep:
print(f"{coffee}")
# dog
# CAT
# gaming
# END
# movie
# CODING
# MOVIE
# CLEANING
# cat
# END
| command = input()
compare_string_lower = {'coding', 'dog', 'cat', 'movie'}
compare_string_upper = {'CODING', 'DOG', 'CAT', 'MOVIE'}
coffee = 0
get_sleep = False
while not command == 'END':
if command.isupper() and command in compare_string_upper:
coffee += 2
if command.islower() and command in compare_string_lower:
coffee += 1
if coffee > 5:
get_sleep = True
print()
print('You need extra sleep')
break
command = input()
if not get_sleep:
print(f'{coffee}') |
print('nice' in 'nice to meet you')
a=1000000
b=1000000
c=a+b
print(c)
| print('nice' in 'nice to meet you')
a = 1000000
b = 1000000
c = a + b
print(c) |
a = 1
b = 1
while 32 >= a:
print(a,-b)
b *= 2
a += 1
print("Year",b/365)
| a = 1
b = 1
while 32 >= a:
print(a, -b)
b *= 2
a += 1
print('Year', b / 365) |
# Please contact the author(s) of this library if you have any questions.
# Authors: Kai-Chieh Hsu ( [email protected] )
class _scheduler(object):
def __init__(self, last_epoch=-1, verbose=False):
self.cnt = last_epoch
self.verbose = verbose
self.variable = None
self.step()
def step(self):
self.cnt += 1
value = self.get_value()
self.variable = value
def get_value(self):
raise NotImplementedError
def get_variable(self):
return self.variable
class StepLR(_scheduler):
def __init__(self,
initValue,
period,
decay=0.1,
endValue=None,
last_epoch=-1,
threshold=0,
verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.threshold = threshold
super(StepLR, self).__init__(last_epoch, verbose)
def get_value(self):
cnt = self.cnt - self.threshold
if cnt < 0:
return self.initValue
numDecay = int(cnt / self.period)
tmpValue = self.initValue * (self.decay**numDecay)
if self.endValue is not None and tmpValue <= self.endValue:
return self.endValue
return tmpValue
class StepLRMargin(_scheduler):
def __init__(self,
initValue,
period,
goalValue,
decay=0.1,
endValue=None,
last_epoch=-1,
threshold=0,
verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.goalValue = goalValue
self.threshold = threshold
super(StepLRMargin, self).__init__(last_epoch, verbose)
def get_value(self):
cnt = self.cnt - self.threshold
if cnt < 0:
return self.initValue
numDecay = int(cnt / self.period)
tmpValue = self.goalValue - (self.goalValue -
self.initValue) * (self.decay**numDecay)
if self.endValue is not None and tmpValue >= self.endValue:
return self.endValue
return tmpValue
class StepLRFixed(_scheduler):
def __init__(self,
initValue,
period,
endValue,
stepSize=0.1,
last_epoch=-1,
verbose=False):
self.initValue = initValue
self.period = period
self.stepSize = stepSize
self.endValue = endValue
super(StepLRFixed, self).__init__(last_epoch, verbose)
def get_value(self):
if self.cnt == 0:
return self.initValue
elif self.cnt > self.period:
self.cnt = 0
if self.stepSize > 0:
self.variable = min(self.endValue,
self.variable + self.stepSize)
else:
self.variable = max(self.endValue,
self.variable + self.stepSize)
return self.variable
class StepResetLR(_scheduler):
def __init__(self,
initValue,
period,
resetPeriod,
decay=0.1,
endValue=None,
last_epoch=-1,
verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.resetPeriod = resetPeriod
super(StepResetLR, self).__init__(last_epoch, verbose)
def get_value(self):
if self.cnt == -1:
return self.initValue
numDecay = int(self.cnt / self.period)
tmpValue = self.initValue * (self.decay**numDecay)
if self.endValue is not None and tmpValue <= self.endValue:
return self.endValue
return tmpValue
def step(self):
self.cnt += 1
value = self.get_value()
self.variable = value
if (self.cnt + 1) % self.resetPeriod == 0:
self.cnt = -1
| class _Scheduler(object):
def __init__(self, last_epoch=-1, verbose=False):
self.cnt = last_epoch
self.verbose = verbose
self.variable = None
self.step()
def step(self):
self.cnt += 1
value = self.get_value()
self.variable = value
def get_value(self):
raise NotImplementedError
def get_variable(self):
return self.variable
class Steplr(_scheduler):
def __init__(self, initValue, period, decay=0.1, endValue=None, last_epoch=-1, threshold=0, verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.threshold = threshold
super(StepLR, self).__init__(last_epoch, verbose)
def get_value(self):
cnt = self.cnt - self.threshold
if cnt < 0:
return self.initValue
num_decay = int(cnt / self.period)
tmp_value = self.initValue * self.decay ** numDecay
if self.endValue is not None and tmpValue <= self.endValue:
return self.endValue
return tmpValue
class Steplrmargin(_scheduler):
def __init__(self, initValue, period, goalValue, decay=0.1, endValue=None, last_epoch=-1, threshold=0, verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.goalValue = goalValue
self.threshold = threshold
super(StepLRMargin, self).__init__(last_epoch, verbose)
def get_value(self):
cnt = self.cnt - self.threshold
if cnt < 0:
return self.initValue
num_decay = int(cnt / self.period)
tmp_value = self.goalValue - (self.goalValue - self.initValue) * self.decay ** numDecay
if self.endValue is not None and tmpValue >= self.endValue:
return self.endValue
return tmpValue
class Steplrfixed(_scheduler):
def __init__(self, initValue, period, endValue, stepSize=0.1, last_epoch=-1, verbose=False):
self.initValue = initValue
self.period = period
self.stepSize = stepSize
self.endValue = endValue
super(StepLRFixed, self).__init__(last_epoch, verbose)
def get_value(self):
if self.cnt == 0:
return self.initValue
elif self.cnt > self.period:
self.cnt = 0
if self.stepSize > 0:
self.variable = min(self.endValue, self.variable + self.stepSize)
else:
self.variable = max(self.endValue, self.variable + self.stepSize)
return self.variable
class Stepresetlr(_scheduler):
def __init__(self, initValue, period, resetPeriod, decay=0.1, endValue=None, last_epoch=-1, verbose=False):
self.initValue = initValue
self.period = period
self.decay = decay
self.endValue = endValue
self.resetPeriod = resetPeriod
super(StepResetLR, self).__init__(last_epoch, verbose)
def get_value(self):
if self.cnt == -1:
return self.initValue
num_decay = int(self.cnt / self.period)
tmp_value = self.initValue * self.decay ** numDecay
if self.endValue is not None and tmpValue <= self.endValue:
return self.endValue
return tmpValue
def step(self):
self.cnt += 1
value = self.get_value()
self.variable = value
if (self.cnt + 1) % self.resetPeriod == 0:
self.cnt = -1 |
#!/usr/bin/env python3
inp = []
with open('03.txt') as fp:
for line in fp:
inp.append(line.strip())
def part1(arr):
acc = [0] * len(arr[0])
for x in arr:
for i in range(len(x)):
acc[i] += int(x[i])
gamma = list(map(lambda x: '1' if x >= len(arr)/2.0 else '0', acc))
epsilon = list(map(lambda x: '1' if x == '0' else '0', gamma))
return ''.join(gamma), ''.join(epsilon)
def part2(arr):
return oxygen(arr) * co2(arr)
def oxygen(arr):
num_len = len(arr[0])
for i in range(num_len):
gamma, epsilon = part1(arr)
arr = filter(lambda x: x[i] == gamma[i], arr)
if (len(arr) == 1): break
retval = int(arr[0], 2)
return retval
def co2(arr):
num_len = len(arr[0])
for i in range(num_len):
gamma, epsilon = part1(arr)
arr = filter(lambda x: x[i] == epsilon[i], arr)
if (len(arr) == 1): break
retval = int(arr[0], 2)
return retval
gamma, epsilon = part1(inp)
print(int(gamma, 2) * int(epsilon, 2))
print(part2(inp)) | inp = []
with open('03.txt') as fp:
for line in fp:
inp.append(line.strip())
def part1(arr):
acc = [0] * len(arr[0])
for x in arr:
for i in range(len(x)):
acc[i] += int(x[i])
gamma = list(map(lambda x: '1' if x >= len(arr) / 2.0 else '0', acc))
epsilon = list(map(lambda x: '1' if x == '0' else '0', gamma))
return (''.join(gamma), ''.join(epsilon))
def part2(arr):
return oxygen(arr) * co2(arr)
def oxygen(arr):
num_len = len(arr[0])
for i in range(num_len):
(gamma, epsilon) = part1(arr)
arr = filter(lambda x: x[i] == gamma[i], arr)
if len(arr) == 1:
break
retval = int(arr[0], 2)
return retval
def co2(arr):
num_len = len(arr[0])
for i in range(num_len):
(gamma, epsilon) = part1(arr)
arr = filter(lambda x: x[i] == epsilon[i], arr)
if len(arr) == 1:
break
retval = int(arr[0], 2)
return retval
(gamma, epsilon) = part1(inp)
print(int(gamma, 2) * int(epsilon, 2))
print(part2(inp)) |
# ac
N = int(input())
A = list(map(int,input().split()))
mid = int(2**N/2)
left, right = A[:mid], A[mid:]
second = min(max(left), max(right))
print(A.index(second)+1) | n = int(input())
a = list(map(int, input().split()))
mid = int(2 ** N / 2)
(left, right) = (A[:mid], A[mid:])
second = min(max(left), max(right))
print(A.index(second) + 1) |
# eln:decorators
READERS = dict()
# Decorator for adding reader functions
def register_reader(function):
READERS[function.__name__] = function
return function
| readers = dict()
def register_reader(function):
READERS[function.__name__] = function
return function |
# -*- coding: utf-8 -*-
'''
File name: code\permuted_matrices\sol_559.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #559 :: Permuted Matrices
#
# For more information see:
# https://projecteuler.net/problem=559
# Problem Statement
'''
An ascent of a column j in a matrix occurs if the value of column j is smaller than the value of column j+1 in all rows.
Let P(k, r, n) be the number of r x n matrices with the following properties:
The rows are permutations of {1, 2, 3, ... , n}.
Numbering the first column as 1, a column ascent occurs at column j<n if and only if j is not a multiple of k.
For example, P(1, 2, 3) = 19, P(2, 4, 6) = 65508751 and P(7, 5, 30) mod 1000000123 = 161858102.
Let Q(n) =$\, \displaystyle \sum_{k=1}^n\,$ P(k, n, n).
For example, Q(5) = 21879393751 and Q(50) mod 1000000123 = 819573537.
Find Q(50000) mod 1000000123.
'''
# Solution
# Solution Approach
'''
'''
| """
File name: code\\permuted_matrices\\sol_559.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
"""
'\nAn ascent of a column j in a matrix occurs if the value of column j is smaller than the value of column j+1 in all rows.\n\nLet P(k, r, n) be the number of r x n matrices with the following properties:\n\nThe rows are permutations of {1, 2, 3, ... , n}.\n Numbering the first column as 1, a column ascent occurs at column j<n if and only if j is not a multiple of k.\n\nFor example, P(1, 2, 3) = 19, P(2, 4, 6) = 65508751 and P(7, 5, 30) mod 1000000123 = 161858102.\n\nLet Q(n) =$\\, \\displaystyle \\sum_{k=1}^n\\,$ P(k, n, n).\nFor example, Q(5) = 21879393751 and Q(50) mod 1000000123 = 819573537.\n\nFind Q(50000) mod 1000000123.\n'
'\n' |
def assert_valid_git_hub_url(edit_on_github_url: str, page_path: str):
# Do you like to include yet another organization? Thing twice :)
url_lower = edit_on_github_url.lower()
assert \
url_lower.startswith('https://github.com/JetBrains/'.lower()) \
or \
url_lower.startswith('https://github.com/kotlin/'.lower()), \
'Check `edit_on_github_url` for `' + page_path + "` to be either `JetBrains` or `kotlin` "
| def assert_valid_git_hub_url(edit_on_github_url: str, page_path: str):
url_lower = edit_on_github_url.lower()
assert url_lower.startswith('https://github.com/JetBrains/'.lower()) or url_lower.startswith('https://github.com/kotlin/'.lower()), 'Check `edit_on_github_url` for `' + page_path + '` to be either `JetBrains` or `kotlin` ' |
class RigPacket:
def __init__(self, velocity=0, direction=0):
self.velocity = velocity
self.direction = direction
| class Rigpacket:
def __init__(self, velocity=0, direction=0):
self.velocity = velocity
self.direction = direction |
#!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_float.tif test_varying_index_float")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_int.tif test_varying_index_int")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_string.tif test_varying_index_string")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_matrix.tif test_varying_index_matrix")
outputs.append ("out_varying_index_float.tif")
outputs.append ("out_varying_index_int.tif")
outputs.append ("out_varying_index_string.tif")
outputs.append ("out_varying_index_matrix.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_color.tif test_varying_index_color")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_point.tif test_varying_index_point")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_vector.tif test_varying_index_vector")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_normal.tif test_varying_index_normal")
outputs.append ("out_varying_index_color.tif")
outputs.append ("out_varying_index_point.tif")
outputs.append ("out_varying_index_vector.tif")
outputs.append ("out_varying_index_normal.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_int.tif test_varying_out_of_bounds_index_int")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_float.tif test_varying_out_of_bounds_index_float")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_string.tif test_varying_out_of_bounds_index_string")
outputs.append ("out_varying_out_of_bounds_index_int.tif")
outputs.append ("out_varying_out_of_bounds_index_float.tif")
outputs.append ("out_varying_out_of_bounds_index_string.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_ray.tif test_varying_index_ray")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_cube.tif test_varying_index_cube")
outputs.append ("out_varying_index_ray.tif")
outputs.append ("out_varying_index_cube.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_float.tif test_varying_index_varying_float")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_int.tif test_varying_index_varying_int")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_point.tif test_varying_index_varying_point")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_normal.tif test_varying_index_varying_normal")
outputs.append ("out_varying_index_varying_float.tif")
outputs.append ("out_varying_index_varying_int.tif")
outputs.append ("out_varying_index_varying_point.tif")
outputs.append ("out_varying_index_varying_normal.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_vector.tif test_varying_index_varying_vector")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_color.tif test_varying_index_varying_color")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_string.tif test_varying_index_varying_string")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_matrix.tif test_varying_index_varying_matrix")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_ray.tif test_varying_index_varying_ray")
outputs.append ("out_varying_index_varying_vector.tif")
outputs.append ("out_varying_index_varying_color.tif")
outputs.append ("out_varying_index_varying_string.tif")
outputs.append ("out_varying_index_varying_matrix.tif")
outputs.append ("out_varying_index_varying_ray.tif")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_float.tif test_uniform_index_varying_float")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_int.tif test_uniform_index_varying_int")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_point.tif test_uniform_index_varying_point")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_normal.tif test_uniform_index_varying_normal")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_vector.tif test_uniform_index_varying_vector")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_color.tif test_uniform_index_varying_color")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_string.tif test_uniform_index_varying_string")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_matrix.tif test_uniform_index_varying_matrix")
command += testshade("-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_ray.tif test_uniform_index_varying_ray")
outputs.append ("out_uniform_index_varying_float.tif")
outputs.append ("out_uniform_index_varying_int.tif")
outputs.append ("out_uniform_index_varying_point.tif")
outputs.append ("out_uniform_index_varying_normal.tif")
outputs.append ("out_uniform_index_varying_vector.tif")
outputs.append ("out_uniform_index_varying_color.tif")
outputs.append ("out_uniform_index_varying_string.tif")
outputs.append ("out_uniform_index_varying_matrix.tif")
outputs.append ("out_uniform_index_varying_ray.tif")
# expect a few LSB failures
failthresh = 0.008
failpercent = 3
| command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_float.tif test_varying_index_float')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_int.tif test_varying_index_int')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_string.tif test_varying_index_string')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_matrix.tif test_varying_index_matrix')
outputs.append('out_varying_index_float.tif')
outputs.append('out_varying_index_int.tif')
outputs.append('out_varying_index_string.tif')
outputs.append('out_varying_index_matrix.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_color.tif test_varying_index_color')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_point.tif test_varying_index_point')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_vector.tif test_varying_index_vector')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_normal.tif test_varying_index_normal')
outputs.append('out_varying_index_color.tif')
outputs.append('out_varying_index_point.tif')
outputs.append('out_varying_index_vector.tif')
outputs.append('out_varying_index_normal.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_int.tif test_varying_out_of_bounds_index_int')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_float.tif test_varying_out_of_bounds_index_float')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_out_of_bounds_index_string.tif test_varying_out_of_bounds_index_string')
outputs.append('out_varying_out_of_bounds_index_int.tif')
outputs.append('out_varying_out_of_bounds_index_float.tif')
outputs.append('out_varying_out_of_bounds_index_string.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_ray.tif test_varying_index_ray')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_cube.tif test_varying_index_cube')
outputs.append('out_varying_index_ray.tif')
outputs.append('out_varying_index_cube.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_float.tif test_varying_index_varying_float')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_int.tif test_varying_index_varying_int')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_point.tif test_varying_index_varying_point')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_normal.tif test_varying_index_varying_normal')
outputs.append('out_varying_index_varying_float.tif')
outputs.append('out_varying_index_varying_int.tif')
outputs.append('out_varying_index_varying_point.tif')
outputs.append('out_varying_index_varying_normal.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_vector.tif test_varying_index_varying_vector')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_color.tif test_varying_index_varying_color')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_string.tif test_varying_index_varying_string')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_matrix.tif test_varying_index_varying_matrix')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_varying_index_varying_ray.tif test_varying_index_varying_ray')
outputs.append('out_varying_index_varying_vector.tif')
outputs.append('out_varying_index_varying_color.tif')
outputs.append('out_varying_index_varying_string.tif')
outputs.append('out_varying_index_varying_matrix.tif')
outputs.append('out_varying_index_varying_ray.tif')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_float.tif test_uniform_index_varying_float')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_int.tif test_uniform_index_varying_int')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_point.tif test_uniform_index_varying_point')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_normal.tif test_uniform_index_varying_normal')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_vector.tif test_uniform_index_varying_vector')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_color.tif test_uniform_index_varying_color')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_string.tif test_uniform_index_varying_string')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_matrix.tif test_uniform_index_varying_matrix')
command += testshade('-t 1 -g 256 256 -od uint8 -o Cout out_uniform_index_varying_ray.tif test_uniform_index_varying_ray')
outputs.append('out_uniform_index_varying_float.tif')
outputs.append('out_uniform_index_varying_int.tif')
outputs.append('out_uniform_index_varying_point.tif')
outputs.append('out_uniform_index_varying_normal.tif')
outputs.append('out_uniform_index_varying_vector.tif')
outputs.append('out_uniform_index_varying_color.tif')
outputs.append('out_uniform_index_varying_string.tif')
outputs.append('out_uniform_index_varying_matrix.tif')
outputs.append('out_uniform_index_varying_ray.tif')
failthresh = 0.008
failpercent = 3 |
NL_MATERIAL = {
"math": {
"title": "Didactiek van wiskundig denken",
"text": "Leermateriaal over wiskunde en didactiek op de universiteit.",
"url": "https://maken.wikiwijs.nl/91192/Wiskundedidactiek_en_ICT",
"files": [
[{
"mime_type": "application/x-zip",
"url": "https://maken.wikiwijs.nl/91192/Wiskundedidactiek_en_ICT",
"title": "Wiskundedidactiek_en_ICT"
}]
],
"description":
"Materiaal voor lerarenopleidingen en professionaliseringstrajecten gericht op wiskundedidactiek en ICT "
"met Theo van den Bogaart",
"language": "nl",
"title_plain": "Wiskunde en Didactiek",
"text_plain": "Leermateriaal over wiskunde en didactiek op de universiteit.",
"external_id": "3522b79c-928c-4249-a7f7-d2bcb3077f10",
"copyright": "cc-by-30",
"lom_educational_levels": ["HBO"],
"publisher_date": "2017-04-16T22:35:09+02:00",
"keywords": ["nerds"],
"authors": [{"name": "Michel van Ast"}, {"name": "Theo van den Bogaart"}, {"name": "Marc de Graaf"}],
"publishers": ["Wikiwijs Maken"],
"disciplines": ["7afbb7a6-c29b-425c-9c59-6f79c845f5f0"],
"harvest_source": "wikiwijsmaken",
"has_parts": [],
"is_part_of": [],
"suggest_phrase": "Leermateriaal over wiskunde en didactiek op de universiteit.",
"suggest_completion": ["Leermateriaal", "over", "wiskunde", "en", "didactiek", "op", "de", "universiteit."],
"analysis_allowed": True,
"ideas": [],
"doi": None,
"technical_type": "document"
},
"biology": {
"title": "Didactiek van biologisch denken",
"text": "Leermateriaal over biologie en didactiek op de universiteit.",
"url": "https://maken.wikiwijs.nl/91192/Biologiedidactiek_en_ICT",
"files": [
[{
"mime_type": "application/x-zip",
"url": "https://maken.wikiwijs.nl/91192/Biologiedidactiek_en_ICT",
"title": "Biologiedidactiek_en_ICT"
}]
],
"description":
"Materiaal voor lerarenopleidingen en professionaliseringstrajecten gericht op biologiedidactiek en ICT "
"met Theo van den Bogaart",
"language": "nl",
"title_plain": "Biologie en Didactiek",
"text_plain": "Leermateriaal over biologie en didactiek op de universiteit.",
"external_id": "wikiwijs:123",
"copyright": "cc-by-30",
"lom_educational_levels": ["HBO"],
"publisher_date": "2017-04-16T22:35:09+02:00",
"keywords": [],
"authors": [{"name": "Michel van Ast"}],
"publishers": ["Wikiwijs Maken"],
"disciplines": [],
"harvest_source": "wikiwijsmaken",
"has_parts": [],
"is_part_of": [],
"suggest_phrase": "Leermateriaal over biologie en didactiek op de universiteit.",
"suggest_completion": ["Leermateriaal", "over", "biologie", "en", "didactiek", "op", "de", "universiteit."],
"analysis_allowed": True,
"ideas": [],
"doi": None,
"technical_type": "document"
}
}
def generate_nl_material(educational_levels=None, title=None, description=None, technical_type=None, source=None,
copyright=None, publisher_date=None, disciplines=None, topic="math", external_id=None):
copy = NL_MATERIAL[topic].copy()
if title:
copy["title"] = title
if description:
copy["description"] = description
if external_id:
copy["external_id"] = external_id
if educational_levels:
copy["lom_educational_levels"] = educational_levels
if technical_type:
copy["technical_type"] = technical_type
if source:
copy["harvest_source"] = source
if copyright:
copy["copyright"] = copyright
if publisher_date:
copy["publisher_date"] = publisher_date
if disciplines:
copy["disciplines"] = disciplines
return copy
| nl_material = {'math': {'title': 'Didactiek van wiskundig denken', 'text': 'Leermateriaal over wiskunde en didactiek op de universiteit.', 'url': 'https://maken.wikiwijs.nl/91192/Wiskundedidactiek_en_ICT', 'files': [[{'mime_type': 'application/x-zip', 'url': 'https://maken.wikiwijs.nl/91192/Wiskundedidactiek_en_ICT', 'title': 'Wiskundedidactiek_en_ICT'}]], 'description': 'Materiaal voor lerarenopleidingen en professionaliseringstrajecten gericht op wiskundedidactiek en ICT met Theo van den Bogaart', 'language': 'nl', 'title_plain': 'Wiskunde en Didactiek', 'text_plain': 'Leermateriaal over wiskunde en didactiek op de universiteit.', 'external_id': '3522b79c-928c-4249-a7f7-d2bcb3077f10', 'copyright': 'cc-by-30', 'lom_educational_levels': ['HBO'], 'publisher_date': '2017-04-16T22:35:09+02:00', 'keywords': ['nerds'], 'authors': [{'name': 'Michel van Ast'}, {'name': 'Theo van den Bogaart'}, {'name': 'Marc de Graaf'}], 'publishers': ['Wikiwijs Maken'], 'disciplines': ['7afbb7a6-c29b-425c-9c59-6f79c845f5f0'], 'harvest_source': 'wikiwijsmaken', 'has_parts': [], 'is_part_of': [], 'suggest_phrase': 'Leermateriaal over wiskunde en didactiek op de universiteit.', 'suggest_completion': ['Leermateriaal', 'over', 'wiskunde', 'en', 'didactiek', 'op', 'de', 'universiteit.'], 'analysis_allowed': True, 'ideas': [], 'doi': None, 'technical_type': 'document'}, 'biology': {'title': 'Didactiek van biologisch denken', 'text': 'Leermateriaal over biologie en didactiek op de universiteit.', 'url': 'https://maken.wikiwijs.nl/91192/Biologiedidactiek_en_ICT', 'files': [[{'mime_type': 'application/x-zip', 'url': 'https://maken.wikiwijs.nl/91192/Biologiedidactiek_en_ICT', 'title': 'Biologiedidactiek_en_ICT'}]], 'description': 'Materiaal voor lerarenopleidingen en professionaliseringstrajecten gericht op biologiedidactiek en ICT met Theo van den Bogaart', 'language': 'nl', 'title_plain': 'Biologie en Didactiek', 'text_plain': 'Leermateriaal over biologie en didactiek op de universiteit.', 'external_id': 'wikiwijs:123', 'copyright': 'cc-by-30', 'lom_educational_levels': ['HBO'], 'publisher_date': '2017-04-16T22:35:09+02:00', 'keywords': [], 'authors': [{'name': 'Michel van Ast'}], 'publishers': ['Wikiwijs Maken'], 'disciplines': [], 'harvest_source': 'wikiwijsmaken', 'has_parts': [], 'is_part_of': [], 'suggest_phrase': 'Leermateriaal over biologie en didactiek op de universiteit.', 'suggest_completion': ['Leermateriaal', 'over', 'biologie', 'en', 'didactiek', 'op', 'de', 'universiteit.'], 'analysis_allowed': True, 'ideas': [], 'doi': None, 'technical_type': 'document'}}
def generate_nl_material(educational_levels=None, title=None, description=None, technical_type=None, source=None, copyright=None, publisher_date=None, disciplines=None, topic='math', external_id=None):
copy = NL_MATERIAL[topic].copy()
if title:
copy['title'] = title
if description:
copy['description'] = description
if external_id:
copy['external_id'] = external_id
if educational_levels:
copy['lom_educational_levels'] = educational_levels
if technical_type:
copy['technical_type'] = technical_type
if source:
copy['harvest_source'] = source
if copyright:
copy['copyright'] = copyright
if publisher_date:
copy['publisher_date'] = publisher_date
if disciplines:
copy['disciplines'] = disciplines
return copy |
# Suppose the cover price of a book is $24.95, but bookstores get a 40% discount.
# Shipping costs $3 for the first copy and 75 cents for each additional copy.
# What is the total wholesale cost for 60 copies?
print(round((24.95 - (24.95 * (40 / 100))) * 60 + 3 + 0.75 * 59, 2))
| print(round((24.95 - 24.95 * (40 / 100)) * 60 + 3 + 0.75 * 59, 2)) |
'''
Global Variables
Variables that are created outside of a function (as in all of the examples above) are known as global variables.
Global variables can be used by everyone, both inside of functions and outside.
'''
#Example
#Create a variable outside of a function, and use it inside the function
x = "awesome"
def myfunction():
print("python is " + x)
myfunction()
'''
If you create a variable with the same name inside a function, this variable will be local, and can only be used inside the function. The global variable with the same name will remain as it was, global and with the original value.
Example
Create a variable inside a function, with the same name as the global variable
'''
x = "awesome"
def myfunc():
x = "fantastic"
print("python is " + x)
myfunc()
print("Python is " + x)
'''
The global Keyword
Normally, when you create a variable inside a function, that variable is local, and can only be used inside that function.
To create a global variable inside a function, you can use the global keyword.
'''
def myfunct():
global y
y = "fantastic"
myfunct()
print("Python is " + y)
# Also, use the global keyword if you want to change a global variable inside a function.
x = "awesome"
def myfunc():
global x
x = "fantastic"
myfunc()
print("Python is " + x)
| """
Global Variables
Variables that are created outside of a function (as in all of the examples above) are known as global variables.
Global variables can be used by everyone, both inside of functions and outside.
"""
x = 'awesome'
def myfunction():
print('python is ' + x)
myfunction()
'\n\nIf you create a variable with the same name inside a function, this variable will be local, and can only be used inside the function. The global variable with the same name will remain as it was, global and with the original value.\n\nExample\nCreate a variable inside a function, with the same name as the global variable\n\n'
x = 'awesome'
def myfunc():
x = 'fantastic'
print('python is ' + x)
myfunc()
print('Python is ' + x)
'\nThe global Keyword\nNormally, when you create a variable inside a function, that variable is local, and can only be used inside that function.\n\nTo create a global variable inside a function, you can use the global keyword.\n\n'
def myfunct():
global y
y = 'fantastic'
myfunct()
print('Python is ' + y)
x = 'awesome'
def myfunc():
global x
x = 'fantastic'
myfunc()
print('Python is ' + x) |
''' 5. b.
To get a string from a given string where
all occurrences of its first char have been
changed to '$', except the first char itself.
'''
word = input("Enter a long word: ") #arastratiosphecomyia
first_char = word[0] # set first character of our string to first_char variable
new_string = first_char # add first_char to our new empty string, we will add more later
for pointer in word[1:]:
if pointer == first_char:
new_string += '$'
else:
new_string += pointer
print(new_string)
| """ 5. b.
To get a string from a given string where
all occurrences of its first char have been
changed to '$', except the first char itself.
"""
word = input('Enter a long word: ')
first_char = word[0]
new_string = first_char
for pointer in word[1:]:
if pointer == first_char:
new_string += '$'
else:
new_string += pointer
print(new_string) |
points = [[0, 0]]
n = int(input())
for i in range(n):
x, y = map(int, input().split())
points.append([x, y])
distance_pairs = []
for i in range(n + 1):
for j in range(i, n + 1):
dx = points[i][0] - points[j][0]
dy = points[i][1] - points[j][1]
distance_pairs.append([dx ** 2 + dy ** 2, i, j])
distance_pairs.sort()
best = [0] * (n+1)
pbest = [0] * (n+1)
pdist = [0] * (n+1)
for pair in distance_pairs:
d = pair[0]
a = pair[1]
b = pair[2]
if d != pdist[a]:
pdist[a] = d
pbest[a] = best[a]
if d != pdist[b]:
pdist[b] = d
pbest[b] = best[b]
if a == 0: # the origin is a special case because we cannot revisit it
best[a] = max(best[a], pbest[b])
else:
best[a] = max(best[a], pbest[b] + 1)
best[b] = max(best[b], pbest[a] + 1)
print(best[0])
| points = [[0, 0]]
n = int(input())
for i in range(n):
(x, y) = map(int, input().split())
points.append([x, y])
distance_pairs = []
for i in range(n + 1):
for j in range(i, n + 1):
dx = points[i][0] - points[j][0]
dy = points[i][1] - points[j][1]
distance_pairs.append([dx ** 2 + dy ** 2, i, j])
distance_pairs.sort()
best = [0] * (n + 1)
pbest = [0] * (n + 1)
pdist = [0] * (n + 1)
for pair in distance_pairs:
d = pair[0]
a = pair[1]
b = pair[2]
if d != pdist[a]:
pdist[a] = d
pbest[a] = best[a]
if d != pdist[b]:
pdist[b] = d
pbest[b] = best[b]
if a == 0:
best[a] = max(best[a], pbest[b])
else:
best[a] = max(best[a], pbest[b] + 1)
best[b] = max(best[b], pbest[a] + 1)
print(best[0]) |
'''
NetworkX betweenness centrality on a social network
Betweenness centrality is a node importance metric that uses information about the shortest paths in a network. It is defined as the fraction of all possible shortest paths between any pair of nodes that pass through the node.
NetworkX provides the nx.betweenness_centrality(G) function for computing the betweenness centrality of every node in a graph, and it returns a dictionary where the keys are the nodes and the values are their betweenness centrality measures.
INSTRUCTIONS
100XP
Compute the betweenness centrality bet_cen of the nodes in the graph T.
Compute the degree centrality deg_cen of the nodes in the graph T.
Compare betweenness centrality to degree centrality by creating a scatterplot of the two, with list(bet_cen.values()) on the x-axis and list(deg_cen.values()) on the y-axis.
'''
# Compute the betweenness centrality of T: bet_cen
bet_cen = nx.betweenness_centrality(T)
# Compute the degree centrality of T: deg_cen
deg_cen = nx.degree_centrality(T)
# Create a scatter plot of betweenness centrality and degree centrality
plt.scatter(list(bet_cen.values()), list(deg_cen.values()))
# Display the plot
plt.show() | """
NetworkX betweenness centrality on a social network
Betweenness centrality is a node importance metric that uses information about the shortest paths in a network. It is defined as the fraction of all possible shortest paths between any pair of nodes that pass through the node.
NetworkX provides the nx.betweenness_centrality(G) function for computing the betweenness centrality of every node in a graph, and it returns a dictionary where the keys are the nodes and the values are their betweenness centrality measures.
INSTRUCTIONS
100XP
Compute the betweenness centrality bet_cen of the nodes in the graph T.
Compute the degree centrality deg_cen of the nodes in the graph T.
Compare betweenness centrality to degree centrality by creating a scatterplot of the two, with list(bet_cen.values()) on the x-axis and list(deg_cen.values()) on the y-axis.
"""
bet_cen = nx.betweenness_centrality(T)
deg_cen = nx.degree_centrality(T)
plt.scatter(list(bet_cen.values()), list(deg_cen.values()))
plt.show() |
#Desafio MDC
def mdc(numeros):
pass
if __name__ == '__main__':
print(mdc([21, 7])) #7
print(mdc([125, 40])) #5
print(mdc([9, 564, 66, 3])) #3
print(mdc([55, 22])) #11
print(mdc([15, 150])) #15
print(mdc([7, 9])) #1 | def mdc(numeros):
pass
if __name__ == '__main__':
print(mdc([21, 7]))
print(mdc([125, 40]))
print(mdc([9, 564, 66, 3]))
print(mdc([55, 22]))
print(mdc([15, 150]))
print(mdc([7, 9])) |
N = int(input())
K = int(input())
print(K % N)
| n = int(input())
k = int(input())
print(K % N) |
'''Test file for file_path_operations.py.'''
master = FileMaster('/Users/person1/Pictures/house.png')
test.describe('Description Test Cases')
test.assert_equals(master.extension(), 'png')
test.assert_equals(master.filename(), 'house')
test.assert_equals(master.dirpath(), '/Users/person1/Pictures/') | """Test file for file_path_operations.py."""
master = file_master('/Users/person1/Pictures/house.png')
test.describe('Description Test Cases')
test.assert_equals(master.extension(), 'png')
test.assert_equals(master.filename(), 'house')
test.assert_equals(master.dirpath(), '/Users/person1/Pictures/') |
class Solution:
# @param {int[]} nums a set of distinct positive integers
# @return {int[]} the largest subset
def largestDivisibleSubset(self, nums):
# Write your code here
if not nums:
return 0
nums = sorted(nums)
# n = len(nums)
dp, prev = {}, {}
for num in nums:
dp[num] = 1
prev[num] = -1
last_num = nums[0]
for num in nums:
for factor in self.get_factors(num):
if factor not in dp:
continue
if dp[num] < dp[factor] + 1:
dp[num] = dp[factor] + 1
prev[num] = factor
if dp[num] > dp[last_num]:
last_num = num
return self.get_path(prev, last_num)
def get_path(self, prev, last_num):
path = []
while last_num != -1:
path.append(last_num)
last_num = prev[last_num]
return path[::-1]
def get_factors(self, num):
if num == 1:
return []
factor = 1
factors = []
while factor * factor <= num:
if num % factor == 0:
factors.append(factor)
if factor * factor != num and factor != 1:
factors.append(num // factor)
factor += 1
return factors | class Solution:
def largest_divisible_subset(self, nums):
if not nums:
return 0
nums = sorted(nums)
(dp, prev) = ({}, {})
for num in nums:
dp[num] = 1
prev[num] = -1
last_num = nums[0]
for num in nums:
for factor in self.get_factors(num):
if factor not in dp:
continue
if dp[num] < dp[factor] + 1:
dp[num] = dp[factor] + 1
prev[num] = factor
if dp[num] > dp[last_num]:
last_num = num
return self.get_path(prev, last_num)
def get_path(self, prev, last_num):
path = []
while last_num != -1:
path.append(last_num)
last_num = prev[last_num]
return path[::-1]
def get_factors(self, num):
if num == 1:
return []
factor = 1
factors = []
while factor * factor <= num:
if num % factor == 0:
factors.append(factor)
if factor * factor != num and factor != 1:
factors.append(num // factor)
factor += 1
return factors |
def complicated_logic(first, second):
print(f"You passed: {first}, {second}")
# return first + second * 12 - 4 * 12
number1 = 10
number2 = 3
result = complicated_logic(number1, number2)
print(result)
| def complicated_logic(first, second):
print(f'You passed: {first}, {second}')
number1 = 10
number2 = 3
result = complicated_logic(number1, number2)
print(result) |
class Solution:
def powerfulIntegers(self, x: int, y: int, bound: int) -> List[int]:
ans = set()
for i in range(bound):
if pow(x,i) > bound or (x==1 and i>0):
break
for j in range(bound):
if pow(y,j) > bound or (y==1 and j>0):
break
temp = pow(x,i) + pow(y,j)
# print(temp)
if temp <= bound:
ans.add(temp)
return list(ans)
| class Solution:
def powerful_integers(self, x: int, y: int, bound: int) -> List[int]:
ans = set()
for i in range(bound):
if pow(x, i) > bound or (x == 1 and i > 0):
break
for j in range(bound):
if pow(y, j) > bound or (y == 1 and j > 0):
break
temp = pow(x, i) + pow(y, j)
if temp <= bound:
ans.add(temp)
return list(ans) |
class Node():
def __init__(self, val):
self.val = val
self.right = None
self.left = None
def insert(root, val):
if root is None:
return Node(val)
elif val < root.val:
root.left = insert(root.left, val)
elif val > root.val:
root.right = insert(root.right, val)
return root
def insert_iterative(root, val):
newnode = Node(val)
curr = root
prev = None
while curr != None:
prev = curr
if curr.val > val:
curr = curr.left
elif curr.val < val:
curr = curr.right
if prev is None:
return newnode
elif prev.val > val:
prev.left = newnode
else:
prev.right = newnode
return root
def smallest(root):
curr = root
while curr.left is not None:
curr = curr.left
return curr
def delete(root, val):
if root is None:
return root
if val < root.val:
# val is less than root.val
root.left = delete(root.left, val)
elif val > root.val:
# val is greater than root.val
root.right = delete(root.right, val)
else:
# val is equal to root.val
if root.left is None and root.right is None:
#Node is Leaf
root = None
elif root.right is None:
# Node has only left child
root = root.left
elif root.left is None:
# Node has only right child
root = root.right
else:
smallest_node = smallest(root.right)
root.val = smallest.val
root.right = delete(root.right, smallest.val)
return root
def search(root, val):
if root is None:
return False
if root.val == val:
return True
if val < root.val:
return search(root.left, val)
if val > root.val:
return search(root.right, val)
def search_iterative(root, val):
while root != None:
if root.val > val:
root = root.left
elif root.val < val:
root = root.right
else:
return True
return False
def inorder(root):
if root is None:
return
inorder(root.left)
print(root.val, end=" ")
inorder(root.right)
def preorder(root):
if root is None:
return
print(root.val, end=" ")
preorder(root.left)
preorder(root.right)
def postorder(root):
if root is None:
return
preorder(root.left)
preorder(root.right)
print(root.val, end=" ")
def getHeight(root):
if root is None:
return -1
return max(getHeight(root.left), getHeight(root.right)) + 1
root = None
for t in range(int(input().split())):
n = int(input())
for i in range(n):
root.insert(root, int(input()))
inorder(root)
print("\n")
root = delete(root, 12)
inorder(root)
print("\n")
| class Node:
def __init__(self, val):
self.val = val
self.right = None
self.left = None
def insert(root, val):
if root is None:
return node(val)
elif val < root.val:
root.left = insert(root.left, val)
elif val > root.val:
root.right = insert(root.right, val)
return root
def insert_iterative(root, val):
newnode = node(val)
curr = root
prev = None
while curr != None:
prev = curr
if curr.val > val:
curr = curr.left
elif curr.val < val:
curr = curr.right
if prev is None:
return newnode
elif prev.val > val:
prev.left = newnode
else:
prev.right = newnode
return root
def smallest(root):
curr = root
while curr.left is not None:
curr = curr.left
return curr
def delete(root, val):
if root is None:
return root
if val < root.val:
root.left = delete(root.left, val)
elif val > root.val:
root.right = delete(root.right, val)
elif root.left is None and root.right is None:
root = None
elif root.right is None:
root = root.left
elif root.left is None:
root = root.right
else:
smallest_node = smallest(root.right)
root.val = smallest.val
root.right = delete(root.right, smallest.val)
return root
def search(root, val):
if root is None:
return False
if root.val == val:
return True
if val < root.val:
return search(root.left, val)
if val > root.val:
return search(root.right, val)
def search_iterative(root, val):
while root != None:
if root.val > val:
root = root.left
elif root.val < val:
root = root.right
else:
return True
return False
def inorder(root):
if root is None:
return
inorder(root.left)
print(root.val, end=' ')
inorder(root.right)
def preorder(root):
if root is None:
return
print(root.val, end=' ')
preorder(root.left)
preorder(root.right)
def postorder(root):
if root is None:
return
preorder(root.left)
preorder(root.right)
print(root.val, end=' ')
def get_height(root):
if root is None:
return -1
return max(get_height(root.left), get_height(root.right)) + 1
root = None
for t in range(int(input().split())):
n = int(input())
for i in range(n):
root.insert(root, int(input()))
inorder(root)
print('\n')
root = delete(root, 12)
inorder(root)
print('\n') |
input()
num = set(map(int,input().split()))
prime = set([i for i in range(3,max(num)+1,2)])
for i in range(3,max(num)+1,2):
if i in prime:
prime -= set([i for i in range(i*2,max(num)+1,i)])
prime.add(2)
print(len(num.intersection(prime))) | input()
num = set(map(int, input().split()))
prime = set([i for i in range(3, max(num) + 1, 2)])
for i in range(3, max(num) + 1, 2):
if i in prime:
prime -= set([i for i in range(i * 2, max(num) + 1, i)])
prime.add(2)
print(len(num.intersection(prime))) |
# draw a rectangle
# rect(x, y, width, height)
rect(20, 50, 100, 200)
rect(130, 50, 100, 200)
oval(240, 50, 100, 200)
oval(20, 250, 100, 100)
oval(130, 250, 100, 100)
rect(240, 250, 100, 100)
for x in range(20, 300, 50):
rect(x, 370, 40, 40)
for x in range(20, 300, 50):
if random() > 0.5:
rect(x, 420, 40, 40)
else:
oval(x, 420, 40, 40)
| rect(20, 50, 100, 200)
rect(130, 50, 100, 200)
oval(240, 50, 100, 200)
oval(20, 250, 100, 100)
oval(130, 250, 100, 100)
rect(240, 250, 100, 100)
for x in range(20, 300, 50):
rect(x, 370, 40, 40)
for x in range(20, 300, 50):
if random() > 0.5:
rect(x, 420, 40, 40)
else:
oval(x, 420, 40, 40) |
scores = {
"John": 81.5,
"Fred": 100,
"Chad": 50,
"Wopper": 30,
"Katie": 73
}
def calc_grade(score):
if score >= 91:
return "Outstanding"
elif score >= 81:
return "Exceeds Expectations"
elif score >= 71:
return "Acceptable"
elif score >= 61:
return "Needs Improvement"
else:
return "You're a fuck up."
for k in scores:
print("%s has a grade of ---> %s" % (k, calc_grade(scores[k])))
| scores = {'John': 81.5, 'Fred': 100, 'Chad': 50, 'Wopper': 30, 'Katie': 73}
def calc_grade(score):
if score >= 91:
return 'Outstanding'
elif score >= 81:
return 'Exceeds Expectations'
elif score >= 71:
return 'Acceptable'
elif score >= 61:
return 'Needs Improvement'
else:
return "You're a fuck up."
for k in scores:
print('%s has a grade of ---> %s' % (k, calc_grade(scores[k]))) |
#!/usr/bin/env python3
'''
Write a function that will find all the anagrams of a word from a list. You will be given two inputs a word and an array with words.
You should return an array of all the anagrams or an empty array if there are none.
'''
def anagrams(word, words):
analis = []
for item in words:
if (sorted(word) == sorted(item)):
analis.append(item)
return analis
#Alternative implementations
def anagrams(word, words):
return [item for item in words if sorted(item)==sorted(word)]
def anagrams(word, words):
return filter(lambda x: sorted(word) == sorted(x), words)
| """
Write a function that will find all the anagrams of a word from a list. You will be given two inputs a word and an array with words.
You should return an array of all the anagrams or an empty array if there are none.
"""
def anagrams(word, words):
analis = []
for item in words:
if sorted(word) == sorted(item):
analis.append(item)
return analis
def anagrams(word, words):
return [item for item in words if sorted(item) == sorted(word)]
def anagrams(word, words):
return filter(lambda x: sorted(word) == sorted(x), words) |
YEAR_CHOICES = (
(1,'First'),
(2,'Second'),
(3,'Third'),
(4,'Fourth'),
(5,'Fifth'),
)
| year_choices = ((1, 'First'), (2, 'Second'), (3, 'Third'), (4, 'Fourth'), (5, 'Fifth')) |
# day 6...
# count distinct questions or whatever
# parse forms from input file. Split by group!
def parse_forms(file):
raw = file.read()
# Ths smushes each group's responses together, to better facilitate part 1.
# I'm sure I'll regret this in part 2.
# grouplist = ["".join(p.splitlines()) for p in raw.split("\n\n")]
# yeah that doesn't work for part 2 but I can make it work. here
grouplist = [p.splitlines() for p in raw.split("\n\n")]
return grouplist
def main():
with open("input/day6.txt") as f:
group_list = parse_forms(f)
# part 1
sumcounts1 = 0
sumcounts2 = 0
for group in group_list:
groupset = {c for c in ''.join(group)}
sumcounts1 += len(groupset)
sumcounts2 += sum([all([d in e for e in group]) for d in groupset])
print("Part 1:", sumcounts1)
print("Part 2:", sumcounts2)
if __name__ == '__main__':
main()
| def parse_forms(file):
raw = file.read()
grouplist = [p.splitlines() for p in raw.split('\n\n')]
return grouplist
def main():
with open('input/day6.txt') as f:
group_list = parse_forms(f)
sumcounts1 = 0
sumcounts2 = 0
for group in group_list:
groupset = {c for c in ''.join(group)}
sumcounts1 += len(groupset)
sumcounts2 += sum([all([d in e for e in group]) for d in groupset])
print('Part 1:', sumcounts1)
print('Part 2:', sumcounts2)
if __name__ == '__main__':
main() |
#
# PySNMP MIB module DOCS-RPHY-PTP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-RPHY-PTP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:53:44 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, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint")
clabProjDocsis, = mibBuilder.importSymbols("CLAB-DEF-MIB", "clabProjDocsis")
IfDirection, = mibBuilder.importSymbols("DOCS-IF3-MIB", "IfDirection")
docsRphyRpdDevInfoUniqueId, = mibBuilder.importSymbols("DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId")
IANAPhysicalClass, = mibBuilder.importSymbols("IANA-ENTITY-MIB", "IANAPhysicalClass")
IANAifType, = mibBuilder.importSymbols("IANAifType-MIB", "IANAifType")
ifIndex, InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndex", "InterfaceIndexOrZero")
InetAddressType, InetAddress, InetPortNumber, InetVersion, InetAddressPrefixLength = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress", "InetPortNumber", "InetVersion", "InetAddressPrefixLength")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
TimeTicks, ModuleIdentity, ObjectIdentity, Integer32, NotificationType, iso, Counter64, MibIdentifier, Unsigned32, IpAddress, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "ObjectIdentity", "Integer32", "NotificationType", "iso", "Counter64", "MibIdentifier", "Unsigned32", "IpAddress", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits")
AutonomousType, MacAddress, DateAndTime, DisplayString, TimeStamp, TruthValue, PhysAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "AutonomousType", "MacAddress", "DateAndTime", "DisplayString", "TimeStamp", "TruthValue", "PhysAddress", "TextualConvention")
UUIDorZero, = mibBuilder.importSymbols("UUID-TC-MIB", "UUIDorZero")
docsRphyPtpMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32))
docsRphyPtpMib.setRevisions(('2017-04-13 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: docsRphyPtpMib.setRevisionsDescriptions(('Initial version, created by R-OSSI-N-17.1721-3.',))
if mibBuilder.loadTexts: docsRphyPtpMib.setLastUpdated('201704130000Z')
if mibBuilder.loadTexts: docsRphyPtpMib.setOrganization('Cable Television Laboratories, Inc')
if mibBuilder.loadTexts: docsRphyPtpMib.setContactInfo(' Postal: Cable Television Laboratories, Inc. 400 Centennial Parkway Louisville, Colorado 80027-1266 U.S.A. Phone: +1 303-661-9100 Fax: +1 303-661-9199 E-mail: [email protected]')
if mibBuilder.loadTexts: docsRphyPtpMib.setDescription('This MIB module contains the status and reporting objects for the Remote PHY CCAP Core and RPD PTP management. Copyright 2017 Cable Television Laboratories, Inc. All rights reserved.')
docsRphyPtpNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 0))
docsRphyPtpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1))
docsRphyPtpConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2))
docsRphyPtpRpdMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1))
docsRphyPtpCcapMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2))
docsRphyPtpCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 1))
docsRphyPtpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2))
docsRphyPtpCcapDefaultDataSet = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1))
docsRphyPtpCcapDefaultDataSetTwoStepFlag = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docsRphyPtpCcapDefaultDataSetClockIdentity = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetClockIdentity.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetClockIdentity.setDescription('This attribute specifies the default Dataset clock identity.')
docsRphyPtpCcapDefaultDataSetPriority1 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetPriority1.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetPriority1.setDescription('This attribute specifies the default Dataset clock Priority1. Lower values take precedence.')
docsRphyPtpCcapDefaultDataSetPriority2 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetPriority2.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetPriority2.setDescription('This attribute specifies the default Dataset clock Priority2. Lower values take precedence.')
docsRphyPtpCcapDefaultDataSetSlaveOnly = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetSlaveOnly.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetSlaveOnly.setDescription('This attribute specifies whether the SlaveOnly flag is set.')
docsRphyPtpCcapDefaultDataSetQualityClass = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityClass.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityClass.setDescription('This attribute of an ordinary or boundary clock denotes the traceability of the time or frequency distributed by the grandmaster clock. See section 7.6.2.4 in [IEEE 1588].')
docsRphyPtpCcapDefaultDataSetQualityAccuracy = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityAccuracy.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityAccuracy.setDescription('This attribute characterizes a clock for the purpose of the best master clock (BMC) algorithm. See section 7.6.2.5 in [IEEE 1588].')
docsRphyPtpCcapDefaultDataSetQualityOffset = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapDefaultDataSetQualityOffset.setDescription('This attribute is the offset, scaled, logarithmic representation of the clock variance. See Section 7.6.3.5 in [IEEE 1588].')
docsRphyPtpCcapCurrentDataSet = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2))
docsRphyPtpCcapCurrentDataSetStepsRemoved = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 1), Unsigned32()).setUnits('steps').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetStepsRemoved.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetStepsRemoved.setDescription('This attribute is the number of communication paths traversed between the local clock and the grandmaster clock. The initialization value is 0.')
docsRphyPtpCcapCurrentDataSetOffsetFromMaster = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 2), Integer32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetOffsetFromMaster.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetOffsetFromMaster.setDescription('This attribute is an implementation-specific representation of the current value of the time difference between a master and a slave as computed by the slave.')
docsRphyPtpCcapCurrentDataSetMeanPathDelay = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 3), Unsigned32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCurrentDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docsRphyPtpCcapParentDataSet = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3))
docsRphyPtpCcapParentDataSetParentClockId = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentClockId.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentClockId.setDescription('This attribute is the clock identifier of the clock port on the master that issues the Sync messages used in synchronizing this clock.')
docsRphyPtpCcapParentDataSetParentPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentPortNumber.setDescription('This attribute is the port number of the clock port on the master that issues the Sync messages used in synchronizing this clock.')
docsRphyPtpCcapParentDataSetParentStats = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentStats.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetParentStats.setDescription('This attribute is set to True if the clock has a port in the slave state and the clock has computed statistically valid estimates of the ClockOffset Scaled Log Variance and the Clock PhaseChangeRate. If either the ClockOffset Scaled Log Variance or the Clock PhaseChangeRate is not computed, then the CCAP core MUST set the value of ParentStats to false.')
docsRphyPtpCcapParentDataSetClockOffset = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 4), Integer32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetClockOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetClockOffset.setDescription("This attribute represents the value of the observed Parent Offset Scaled Log Variance, which is an estimate of the parent clock's PTP variance as observed by the slave clock. The computation of this value is optional, but if not computed, the value of parentStats is FALSE. The initialization value of ClockOffset is 0xFFFF.")
docsRphyPtpCcapParentDataSetPhaseChangeRate = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 5), Integer32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetPhaseChangeRate.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetPhaseChangeRate.setDescription("This attribute represents the value of Phase Change Rate, which is an estimate of the parent clock's phase change rate as observed by the slave clock. If the estimate exceeds the capacity of its data type, this value is set to 0x7FFF FFFF. A positive sign indicates that the parent clock's phase change rate is greater than the rate of the slave clock. The computation of this value is optional, but if not computed,the value of parentStats is FALSE.")
docsRphyPtpCcapParentDataSetGmClockIdentity = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmClockIdentity.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmClockIdentity.setDescription('This attribute represents the clock Identity of the grandmaster clock.')
docsRphyPtpCcapParentDataSetGmPriority1 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmPriority1.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmPriority1.setDescription('This attribute represents the priority1 of the grandmaster clock. Lower values take precedence.')
docsRphyPtpCcapParentDataSetGmPriority2 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmPriority2.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmPriority2.setDescription('This attribute represents the priority2 of the grandmaster clock. Lower values take precedence.')
docsRphyPtpCcapParentDataSetGmQualityClass = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityClass.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityClass.setDescription('This attribute is the clock class for the grandmaster clock. The clock class attribute of an ordinary or boundary clock denotes the traceability of the time or frequency distributed by the grandmaster clock. See section 7.6.2.4 in [IEEE 1588].')
docsRphyPtpCcapParentDataSetGmQualityAccuracy = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityAccuracy.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityAccuracy.setDescription('This attribute characterizes the grandmaster clock for the purpose of the best master clock (BMC) algorithm. See section 7.6.2.5 in [IEEE 1588].')
docsRphyPtpCcapParentDataSetGmQualityOffset = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapParentDataSetGmQualityOffset.setDescription('This attribute represents the offset, scaled, logarithmic representation of the grandmaster clock variance. See Section 7.6.3.5 in [IEEE 1588].')
docsRphyPtpCcapTimeProperties = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4))
docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid.setDescription('This attribute represents the value of currentUtcOffsetValid is TRUE if the currentUtcOffset is known to be correct.')
docsRphyPtpCcapTimePropertiesCurrentUtcOffset = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 2), Integer32()).setUnits('Seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesCurrentUtcOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesCurrentUtcOffset.setDescription('This attribute represents the offset between International Atomic Time (TAI) and Universal Coordinated Time (UTC).')
docsRphyPtpCcapTimePropertiesLeap59 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesLeap59.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesLeap59.setDescription('This attribute represents whether or not there are 59 seconds in the last minute of the current UTC day for PTP systems whose epoch is the PTP epoch,; a TRUE value for Leap59 indicates that the last minute of the current UTC day contains 59 seconds.')
docsRphyPtpCcapTimePropertiesLeap61 = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesLeap61.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesLeap61.setDescription('This attribute represents whether or not there are 61 seconds in the last minute of the current UTC day for PTP systems whose epoch is the PTP epoch; a TRUE value for Leap61 indicates that the last minute of the current UTC day contains 61 seconds.')
docsRphyPtpCcapTimePropertiesTimeTraceable = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesTimeTraceable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesTimeTraceable.setDescription('This attribute represents whether the timescale and the value of currentUtcOffset are traceable to a primary reference. TimeTraceable is TRUE if the timescale and the value of currentUtcOffset are traceable to a primary reference; otherwise, the value is FALSE.')
docsRphyPtpCcapTimePropertiesFreqTraceable = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 6), TruthValue().clone('true')).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesFreqTraceable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesFreqTraceable.setDescription('This attribute represents whether the frequency determining the timescale is traceable to a primary reference. The value of FrequencyTraceable is TRUE if the frequency determining the timescale is traceable to a primary reference; otherwise, the value is FALSE.')
docsRphyPtpCcapTimePropertiesPtpTimescale = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesPtpTimescale.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesPtpTimescale.setDescription('This attribute is always true for grandmaster clocks with a clock timescale of PTP.')
docsRphyPtpCcapTimePropertiesTimeSource = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesTimeSource.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapTimePropertiesTimeSource.setDescription('This attribute represents the source of time used by the grandmaster clock. See Table 7 in [IEEE 1588]. If the time source of the grandmaster clock is unknown, the CCAP Core MUST set the TimeSource value to INTERNAL_OSCILLATOR (0xA0).')
docsRphyPtpCcapPortDataSetTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5), )
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docsRphyPtpCcapPortDataSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1), ).setIndexNames((0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortDataSetPortNumber"))
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetEntry.setDescription('The conceptual row of docsRphyPtpCcapPortDataSetTable.')
docsRphyPtpCcapPortDataSetPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetPortNumber.setDescription('This key attribute is the port number of the local clock port. Port numbers 0 and 65,535 are reserved and cannot be used for real clock ports. See [IEEE 1588] for more information. When a PTP clock has N ports, the CCAP Core MUST set the port number to a value in the interval 1..N.')
docsRphyPtpCcapPortDataSetPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetPortState.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetPortState.setDescription('This attribute is the state of this PTP clock port. See Table 8 in [IEEE 1588].')
docsRphyPtpCcapPortDataSetMeanPathDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docsRphyPtpCcapClockStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6))
docsRphyPtpCcapClockStatusClockState = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("freerun", 1), ("holdover", 2), ("acquiring", 3), ("freqLocked", 4), ("phaseAligned", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusClockState.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusClockState.setDescription('This attribute represents the current state of the clock.')
docsRphyPtpCcapClockStatusLastStateChange = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusLastStateChange.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusLastStateChange.setDescription('This attribute represents the value in TimeTicks when the clock state last changed.')
docsRphyPtpCcapClockStatusPacketsSent = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 3), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock.')
docsRphyPtpCcapClockStatusPacketsReceived = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 4), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock.')
docsRphyPtpCcapClockStatusComputedPhaseOffset = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 5), Unsigned32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusComputedPhaseOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusComputedPhaseOffset.setDescription('This attribute specifies the phase offset that the locking algorithm computed in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docsRphyPtpCcapClockStatusCounterDiscontinuityTime = MibScalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 6), TimeStamp()).setUnits('TimeTicks').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapClockStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpCcapCorePtpPortStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7), )
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusTable.setDescription('CorePtpCoreStatus is an instantiation of the abstract class PtpPortStatus and inherits those common attributes')
docsRphyPtpCcapCorePtpPortStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1), ).setIndexNames((0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCorePtpPortStatusPortNumber"))
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusEntry.setDescription('The conceptual row of docsRphyPtpCcapCorePtpPortStatusTable .')
docsRphyPtpCcapCorePtpPortStatusPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)))
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPortNumber.setDescription('This key attribute is the port number of the local clock port.')
docsRphyPtpCcapCorePtpPortStatusPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 2), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock port.')
docsRphyPtpCcapCorePtpPortStatusPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 3), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock port.')
docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 4), TimeStamp()).setUnits('TimeTicks').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpCcapPortMasterClockStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8), )
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusTable.setDescription('This table contains Port MasterClock Status attributes.')
docsRphyPtpCcapPortMasterClockStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1), ).setIndexNames((0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCorePtpPortStatusPortNumber"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusMasterPriority"))
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusEntry.setDescription('The conceptual row of docsRphyPtpCcapPortMasterClockStatusTable.')
docsRphyPtpCcapPortMasterClockStatusMasterPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)))
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterPriority.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterPriority.setDescription('This key attribute is the priority of the master clock configured for the PTP template assigned to this PTP clock port. Low numbers are higher priority.')
docsRphyPtpCcapPortMasterClockStatusPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 2), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent to this master for this slave clock port.')
docsRphyPtpCcapPortMasterClockStatusPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 3), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received from this master for this slave clock port.')
docsRphyPtpCcapPortMasterClockStatusMasterClockId = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterClockId.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterClockId.setDescription('This attribute specifies the clock identifier of this master clock.')
docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber.setDescription("This attribute specifies master clock's port number.")
docsRphyPtpCcapPortMasterClockStatusTwoStepFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docsRphyPtpCcapPortMasterClockStatusIsBmc = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusIsBmc.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusIsBmc.setDescription('This attribute represents whether or not this master is the current Best Master Clock (i.e., the master clock currently in use for this slave clock).')
docsRphyPtpCcapPortMasterClockStatusIsMasterConnected = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusIsMasterConnected.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusIsMasterConnected.setDescription('This attribute is set to TRUE if a signaling session with the master is successfully established. When a slave node receives an announce and a sync message from the master, the CCAP Core SHOULD consider the session to be successfully established.')
docsRphyPtpCcapPortMasterClockStatusStatusDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusStatusDomain.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusStatusDomain.setDescription('This attribute is the PTP master domain.')
docsRphyPtpCcapPortMasterClockStatusFreqOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 10), Unsigned32()).setUnits('PPM').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusFreqOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusFreqOffset.setDescription('This attribute specifies the frequency offset that the locking algorithm computed per master in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime.setDescription("This attribute contains the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpRpdCurrentDataSetTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1), )
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docsRphyPtpRpdCurrentDataSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1), ).setIndexNames((0, "DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId"))
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetEntry.setDescription('The conceptual row of docsRphyPtpRpdCurrentDataSetTable.')
docsRphyPtpRpdCurrentDataSetStepsRemoved = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 1), Unsigned32()).setUnits('steps').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetStepsRemoved.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetStepsRemoved.setDescription('This attribute is the number of communication paths traversed between the local clock and the grandmaster clock. The initialization value is 0.')
docsRphyPtpRpdCurrentDataSetOffsetFromMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 2), Integer32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetOffsetFromMaster.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetOffsetFromMaster.setDescription('This attribute is an implementation-specific representation of the current value of the time difference between a master and a slave as computed by the slave.')
docsRphyPtpRpdCurrentDataSetMeanPathDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 3), Unsigned32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdCurrentDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docsRphyPtpRpdClockStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2), )
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docsRphyPtpRpdClockStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1), ).setIndexNames((0, "DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId"))
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdClockStatusTable.')
docsRphyPtpRpdClockStatusClockState = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("freerun", 1), ("holdover", 2), ("acquiring", 3), ("freqLocked", 4), ("phaseAligned", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusClockState.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusClockState.setDescription('This attribute represents the current state of the clock.')
docsRphyPtpRpdClockStatusLastStateChange = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusLastStateChange.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusLastStateChange.setDescription('This attribute represents the value in TimeTicks when the clock state last changed.')
docsRphyPtpRpdClockStatusPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 3), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock.')
docsRphyPtpRpdClockStatusPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 4), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock.')
docsRphyPtpRpdClockStatusComputedPhaseOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 5), Unsigned32()).setUnits('Nanoseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusComputedPhaseOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusComputedPhaseOffset.setDescription('This attribute specifies the phase offset that the locking algorithm computed in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docsRphyPtpRpdClockStatusCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 6), TimeStamp()).setUnits('TimeTicks').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdClockStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpRpdPortDataSetTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3), )
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docsRphyPtpRpdPortDataSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1), ).setIndexNames((0, "DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortDataSetPortNumber"))
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetEntry.setDescription('The conceptual row of docsRphyPtpRpdPortDataSetTable.')
docsRphyPtpRpdPortDataSetPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetPortNumber.setDescription('This key attribute is the port number of the local clock port. Port numbers 0 and 65,535 are reserved and cannot be used for real clock ports. See [IEEE 1588] for more information. When a PTP clock has N ports, the CCAP Core MUST set the port number to a value in the interval 1..N.')
docsRphyPtpRpdPortDataSetPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetPortState.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetPortState.setDescription('This attribute is the state of this PTP clock port. See Table 8 in [IEEE 1588].')
docsRphyPtpRpdPortDataSetMeanPathDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docsRphyPtpRpdPtpPortStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4), )
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusTable.setDescription('Port Ptp Status is an instantiation of the abstract class PtpPortStatus and inherits those common attributes')
docsRphyPtpRpdPtpPortStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1), ).setIndexNames((0, "DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusPortNumber"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex"))
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdCorePtpPortStatusTable .')
docsRphyPtpRpdPtpPortStatusPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)))
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPortNumber.setDescription('This key attribute is the port number of the local clock port.')
docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)))
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex.setDescription('This key attribute is the port number of the local clock port.')
docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 3), Unsigned32())
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex.setDescription('This key attribute is the port number of the local clock port.')
docsRphyPtpRpdPtpPortStatusPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 4), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock port.')
docsRphyPtpRpdPtpPortStatusPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 5), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock port.')
docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 6), TimeStamp()).setUnits('TimeTicks').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpRpdPortMasterClockStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5), )
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusTable.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusTable.setDescription('This table contains Port MasterClock Status attributes.')
docsRphyPtpRpdPortMasterClockStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1), ).setIndexNames((0, "DOCS-RPHY-MIB", "docsRphyRpdDevInfoUniqueId"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex"), (0, "DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusMasterPriority"))
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdPortMasterClockStatusTable.')
docsRphyPtpRpdPortMasterClockStatusMasterPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)))
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterPriority.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterPriority.setDescription('This key attribute is the priority of the master clock configured for the PTP template assigned to this PTP clock port. Low numbers are higher priority.')
docsRphyPtpRpdPortMasterClockStatusPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 2), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent to this master for this slave clock port.')
docsRphyPtpRpdPortMasterClockStatusPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 3), Counter64()).setUnits('Packets').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received from this master for this slave clock port.')
docsRphyPtpRpdPortMasterClockStatusMasterClockId = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterClockId.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterClockId.setDescription('This attribute specifies the clock identifier of this master clock.')
docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber.setDescription("This attribute specifies master clock's port number.")
docsRphyPtpRpdPortMasterClockStatusTwoStepFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docsRphyPtpRpdPortMasterClockStatusIsBmc = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusIsBmc.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusIsBmc.setDescription('This attribute represents whether or not this master is the current Best Master Clock (i.e., the master clock currently in use for this slave clock).')
docsRphyPtpRpdPortMasterClockStatusIsMasterConnected = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusIsMasterConnected.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusIsMasterConnected.setDescription('This attribute is set to TRUE if a signaling session with the master is successfully established. When a slave node receives an announce and a sync message from the master, the CCAP Core SHOULD consider the session to be successfully established.')
docsRphyPtpRpdPortMasterClockStatusStatusDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusStatusDomain.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusStatusDomain.setDescription('This attribute is the PTP master domain.')
docsRphyPtpRpdPortMasterClockStatusFreqOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 10), Unsigned32()).setUnits('PPM').setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusFreqOffset.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusFreqOffset.setDescription('This attribute specifies the frequency offset that the locking algorithm computed per master in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime.setDescription("This attribute contains the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docsRphyPtpCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 1, 1)).setObjects(("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdGroup"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCoreGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docsRphyPtpCompliance = docsRphyPtpCompliance.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCompliance.setDescription('The compliance statement for CCAP Core and RPD PTP features.')
docsRphyPtpRpdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2, 1)).setObjects(("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdCurrentDataSetStepsRemoved"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdCurrentDataSetOffsetFromMaster"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdCurrentDataSetMeanPathDelay"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusClockState"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusLastStateChange"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusComputedPhaseOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdClockStatusCounterDiscontinuityTime"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortDataSetPortState"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortDataSetMeanPathDelay"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusMasterClockId"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusTwoStepFlag"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusIsBmc"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusIsMasterConnected"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusStatusDomain"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusFreqOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docsRphyPtpRpdGroup = docsRphyPtpRpdGroup.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpRpdGroup.setDescription('Group of objects implemented in CCAP Cores which represent RPD managed objects derived via the GCP protocol.')
docsRphyPtpCcapCoreGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2, 2)).setObjects(("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetTwoStepFlag"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetClockIdentity"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetPriority1"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetPriority2"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetSlaveOnly"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetQualityClass"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetQualityAccuracy"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapDefaultDataSetQualityOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCurrentDataSetStepsRemoved"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCurrentDataSetOffsetFromMaster"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCurrentDataSetMeanPathDelay"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetParentClockId"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetParentPortNumber"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetParentStats"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetClockOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetPhaseChangeRate"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmClockIdentity"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmPriority1"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmPriority2"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmQualityClass"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmQualityAccuracy"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapParentDataSetGmQualityOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesCurrentUtcOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesLeap59"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesLeap61"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesTimeTraceable"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesFreqTraceable"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesPtpTimescale"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapTimePropertiesTimeSource"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortDataSetPortState"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortDataSetMeanPathDelay"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusClockState"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusLastStateChange"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusComputedPhaseOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapClockStatusCounterDiscontinuityTime"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCorePtpPortStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCorePtpPortStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusPacketsSent"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusPacketsReceived"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusMasterClockId"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusTwoStepFlag"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusIsBmc"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusIsMasterConnected"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusStatusDomain"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusFreqOffset"), ("DOCS-RPHY-PTP-MIB", "docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docsRphyPtpCcapCoreGroup = docsRphyPtpCcapCoreGroup.setStatus('current')
if mibBuilder.loadTexts: docsRphyPtpCcapCoreGroup.setDescription('Group of objects implemented in CCAP Cores.')
mibBuilder.exportSymbols("DOCS-RPHY-PTP-MIB", docsRphyPtpCcapCurrentDataSetStepsRemoved=docsRphyPtpCcapCurrentDataSetStepsRemoved, docsRphyPtpCcapPortMasterClockStatusTwoStepFlag=docsRphyPtpCcapPortMasterClockStatusTwoStepFlag, docsRphyPtpRpdPortMasterClockStatusMasterPriority=docsRphyPtpRpdPortMasterClockStatusMasterPriority, docsRphyPtpRpdMibObjects=docsRphyPtpRpdMibObjects, docsRphyPtpCcapDefaultDataSetQualityAccuracy=docsRphyPtpCcapDefaultDataSetQualityAccuracy, docsRphyPtpCompliances=docsRphyPtpCompliances, docsRphyPtpCcapClockStatusLastStateChange=docsRphyPtpCcapClockStatusLastStateChange, docsRphyPtpRpdCurrentDataSetMeanPathDelay=docsRphyPtpRpdCurrentDataSetMeanPathDelay, docsRphyPtpCcapParentDataSetGmPriority2=docsRphyPtpCcapParentDataSetGmPriority2, docsRphyPtpRpdPortMasterClockStatusStatusDomain=docsRphyPtpRpdPortMasterClockStatusStatusDomain, docsRphyPtpCcapTimePropertiesLeap59=docsRphyPtpCcapTimePropertiesLeap59, docsRphyPtpCcapTimePropertiesLeap61=docsRphyPtpCcapTimePropertiesLeap61, docsRphyPtpCcapClockStatus=docsRphyPtpCcapClockStatus, docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex=docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex, docsRphyPtpCcapClockStatusComputedPhaseOffset=docsRphyPtpCcapClockStatusComputedPhaseOffset, docsRphyPtpConformance=docsRphyPtpConformance, docsRphyPtpCcapCorePtpPortStatusPortNumber=docsRphyPtpCcapCorePtpPortStatusPortNumber, docsRphyPtpCcapCurrentDataSetOffsetFromMaster=docsRphyPtpCcapCurrentDataSetOffsetFromMaster, docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime=docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime, docsRphyPtpCcapParentDataSetParentStats=docsRphyPtpCcapParentDataSetParentStats, docsRphyPtpObjects=docsRphyPtpObjects, docsRphyPtpCcapDefaultDataSetQualityClass=docsRphyPtpCcapDefaultDataSetQualityClass, docsRphyPtpCcapDefaultDataSetQualityOffset=docsRphyPtpCcapDefaultDataSetQualityOffset, docsRphyPtpRpdPtpPortStatusPortNumber=docsRphyPtpRpdPtpPortStatusPortNumber, docsRphyPtpRpdPortMasterClockStatusTable=docsRphyPtpRpdPortMasterClockStatusTable, docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex=docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex, docsRphyPtpRpdClockStatusClockState=docsRphyPtpRpdClockStatusClockState, docsRphyPtpCcapPortMasterClockStatusMasterPriority=docsRphyPtpCcapPortMasterClockStatusMasterPriority, docsRphyPtpRpdPtpPortStatusPacketsReceived=docsRphyPtpRpdPtpPortStatusPacketsReceived, docsRphyPtpCcapPortMasterClockStatusFreqOffset=docsRphyPtpCcapPortMasterClockStatusFreqOffset, docsRphyPtpRpdCurrentDataSetOffsetFromMaster=docsRphyPtpRpdCurrentDataSetOffsetFromMaster, docsRphyPtpCcapPortMasterClockStatusIsMasterConnected=docsRphyPtpCcapPortMasterClockStatusIsMasterConnected, docsRphyPtpRpdClockStatusPacketsReceived=docsRphyPtpRpdClockStatusPacketsReceived, docsRphyPtpCcapParentDataSetClockOffset=docsRphyPtpCcapParentDataSetClockOffset, docsRphyPtpRpdPortMasterClockStatusIsBmc=docsRphyPtpRpdPortMasterClockStatusIsBmc, docsRphyPtpCompliance=docsRphyPtpCompliance, docsRphyPtpRpdPortDataSetPortNumber=docsRphyPtpRpdPortDataSetPortNumber, docsRphyPtpCcapParentDataSetParentClockId=docsRphyPtpCcapParentDataSetParentClockId, docsRphyPtpCcapClockStatusPacketsSent=docsRphyPtpCcapClockStatusPacketsSent, docsRphyPtpRpdClockStatusCounterDiscontinuityTime=docsRphyPtpRpdClockStatusCounterDiscontinuityTime, docsRphyPtpCcapPortMasterClockStatusIsBmc=docsRphyPtpCcapPortMasterClockStatusIsBmc, docsRphyPtpRpdClockStatusPacketsSent=docsRphyPtpRpdClockStatusPacketsSent, docsRphyPtpCcapParentDataSet=docsRphyPtpCcapParentDataSet, docsRphyPtpCcapCoreGroup=docsRphyPtpCcapCoreGroup, docsRphyPtpCcapPortDataSetTable=docsRphyPtpCcapPortDataSetTable, docsRphyPtpCcapTimePropertiesTimeSource=docsRphyPtpCcapTimePropertiesTimeSource, docsRphyPtpCcapCorePtpPortStatusPacketsReceived=docsRphyPtpCcapCorePtpPortStatusPacketsReceived, docsRphyPtpCcapParentDataSetParentPortNumber=docsRphyPtpCcapParentDataSetParentPortNumber, PYSNMP_MODULE_ID=docsRphyPtpMib, docsRphyPtpCcapTimePropertiesFreqTraceable=docsRphyPtpCcapTimePropertiesFreqTraceable, docsRphyPtpRpdPortMasterClockStatusMasterClockId=docsRphyPtpRpdPortMasterClockStatusMasterClockId, docsRphyPtpRpdClockStatusLastStateChange=docsRphyPtpRpdClockStatusLastStateChange, docsRphyPtpCcapPortMasterClockStatusPacketsSent=docsRphyPtpCcapPortMasterClockStatusPacketsSent, docsRphyPtpCcapDefaultDataSet=docsRphyPtpCcapDefaultDataSet, docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber=docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber, docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime=docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime, docsRphyPtpCcapDefaultDataSetPriority2=docsRphyPtpCcapDefaultDataSetPriority2, docsRphyPtpCcapPortMasterClockStatusTable=docsRphyPtpCcapPortMasterClockStatusTable, docsRphyPtpCcapCorePtpPortStatusEntry=docsRphyPtpCcapCorePtpPortStatusEntry, docsRphyPtpGroups=docsRphyPtpGroups, docsRphyPtpRpdPtpPortStatusTable=docsRphyPtpRpdPtpPortStatusTable, docsRphyPtpRpdPortMasterClockStatusFreqOffset=docsRphyPtpRpdPortMasterClockStatusFreqOffset, docsRphyPtpCcapCorePtpPortStatusPacketsSent=docsRphyPtpCcapCorePtpPortStatusPacketsSent, docsRphyPtpRpdPortDataSetEntry=docsRphyPtpRpdPortDataSetEntry, docsRphyPtpCcapPortMasterClockStatusPacketsReceived=docsRphyPtpCcapPortMasterClockStatusPacketsReceived, docsRphyPtpCcapCurrentDataSet=docsRphyPtpCcapCurrentDataSet, docsRphyPtpCcapDefaultDataSetTwoStepFlag=docsRphyPtpCcapDefaultDataSetTwoStepFlag, docsRphyPtpCcapMibObjects=docsRphyPtpCcapMibObjects, docsRphyPtpRpdPortMasterClockStatusTwoStepFlag=docsRphyPtpRpdPortMasterClockStatusTwoStepFlag, docsRphyPtpCcapParentDataSetGmQualityClass=docsRphyPtpCcapParentDataSetGmQualityClass, docsRphyPtpRpdClockStatusEntry=docsRphyPtpRpdClockStatusEntry, docsRphyPtpCcapCurrentDataSetMeanPathDelay=docsRphyPtpCcapCurrentDataSetMeanPathDelay, docsRphyPtpCcapClockStatusCounterDiscontinuityTime=docsRphyPtpCcapClockStatusCounterDiscontinuityTime, docsRphyPtpRpdPortDataSetPortState=docsRphyPtpRpdPortDataSetPortState, docsRphyPtpCcapParentDataSetGmPriority1=docsRphyPtpCcapParentDataSetGmPriority1, docsRphyPtpCcapTimeProperties=docsRphyPtpCcapTimeProperties, docsRphyPtpCcapParentDataSetGmQualityOffset=docsRphyPtpCcapParentDataSetGmQualityOffset, docsRphyPtpRpdCurrentDataSetEntry=docsRphyPtpRpdCurrentDataSetEntry, docsRphyPtpCcapParentDataSetGmClockIdentity=docsRphyPtpCcapParentDataSetGmClockIdentity, docsRphyPtpCcapPortDataSetMeanPathDelay=docsRphyPtpCcapPortDataSetMeanPathDelay, docsRphyPtpRpdPtpPortStatusEntry=docsRphyPtpRpdPtpPortStatusEntry, docsRphyPtpRpdPortDataSetMeanPathDelay=docsRphyPtpRpdPortDataSetMeanPathDelay, docsRphyPtpRpdPtpPortStatusPacketsSent=docsRphyPtpRpdPtpPortStatusPacketsSent, docsRphyPtpCcapTimePropertiesTimeTraceable=docsRphyPtpCcapTimePropertiesTimeTraceable, docsRphyPtpRpdCurrentDataSetTable=docsRphyPtpRpdCurrentDataSetTable, docsRphyPtpRpdPortMasterClockStatusIsMasterConnected=docsRphyPtpRpdPortMasterClockStatusIsMasterConnected, docsRphyPtpMib=docsRphyPtpMib, docsRphyPtpCcapPortMasterClockStatusMasterClockId=docsRphyPtpCcapPortMasterClockStatusMasterClockId, docsRphyPtpCcapPortMasterClockStatusEntry=docsRphyPtpCcapPortMasterClockStatusEntry, docsRphyPtpCcapClockStatusPacketsReceived=docsRphyPtpCcapClockStatusPacketsReceived, docsRphyPtpCcapTimePropertiesCurrentUtcOffset=docsRphyPtpCcapTimePropertiesCurrentUtcOffset, docsRphyPtpCcapPortDataSetPortState=docsRphyPtpCcapPortDataSetPortState, docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber=docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber, docsRphyPtpRpdCurrentDataSetStepsRemoved=docsRphyPtpRpdCurrentDataSetStepsRemoved, docsRphyPtpCcapTimePropertiesPtpTimescale=docsRphyPtpCcapTimePropertiesPtpTimescale, docsRphyPtpRpdClockStatusComputedPhaseOffset=docsRphyPtpRpdClockStatusComputedPhaseOffset, docsRphyPtpCcapParentDataSetGmQualityAccuracy=docsRphyPtpCcapParentDataSetGmQualityAccuracy, docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid=docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid, docsRphyPtpRpdPortDataSetTable=docsRphyPtpRpdPortDataSetTable, docsRphyPtpCcapDefaultDataSetPriority1=docsRphyPtpCcapDefaultDataSetPriority1, docsRphyPtpRpdPortMasterClockStatusEntry=docsRphyPtpRpdPortMasterClockStatusEntry, docsRphyPtpCcapParentDataSetPhaseChangeRate=docsRphyPtpCcapParentDataSetPhaseChangeRate, docsRphyPtpCcapCorePtpPortStatusTable=docsRphyPtpCcapCorePtpPortStatusTable, docsRphyPtpRpdPortMasterClockStatusPacketsReceived=docsRphyPtpRpdPortMasterClockStatusPacketsReceived, docsRphyPtpCcapDefaultDataSetClockIdentity=docsRphyPtpCcapDefaultDataSetClockIdentity, docsRphyPtpNotifications=docsRphyPtpNotifications, docsRphyPtpRpdPortMasterClockStatusPacketsSent=docsRphyPtpRpdPortMasterClockStatusPacketsSent, docsRphyPtpCcapClockStatusClockState=docsRphyPtpCcapClockStatusClockState, docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime=docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime, docsRphyPtpCcapPortDataSetEntry=docsRphyPtpCcapPortDataSetEntry, docsRphyPtpCcapPortDataSetPortNumber=docsRphyPtpCcapPortDataSetPortNumber, docsRphyPtpCcapPortMasterClockStatusStatusDomain=docsRphyPtpCcapPortMasterClockStatusStatusDomain, docsRphyPtpCcapDefaultDataSetSlaveOnly=docsRphyPtpCcapDefaultDataSetSlaveOnly, docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime=docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime, docsRphyPtpRpdGroup=docsRphyPtpRpdGroup, docsRphyPtpRpdClockStatusTable=docsRphyPtpRpdClockStatusTable)
| (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_union, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint')
(clab_proj_docsis,) = mibBuilder.importSymbols('CLAB-DEF-MIB', 'clabProjDocsis')
(if_direction,) = mibBuilder.importSymbols('DOCS-IF3-MIB', 'IfDirection')
(docs_rphy_rpd_dev_info_unique_id,) = mibBuilder.importSymbols('DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId')
(iana_physical_class,) = mibBuilder.importSymbols('IANA-ENTITY-MIB', 'IANAPhysicalClass')
(ian_aif_type,) = mibBuilder.importSymbols('IANAifType-MIB', 'IANAifType')
(if_index, interface_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndex', 'InterfaceIndexOrZero')
(inet_address_type, inet_address, inet_port_number, inet_version, inet_address_prefix_length) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress', 'InetPortNumber', 'InetVersion', 'InetAddressPrefixLength')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(time_ticks, module_identity, object_identity, integer32, notification_type, iso, counter64, mib_identifier, unsigned32, ip_address, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'ObjectIdentity', 'Integer32', 'NotificationType', 'iso', 'Counter64', 'MibIdentifier', 'Unsigned32', 'IpAddress', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Bits')
(autonomous_type, mac_address, date_and_time, display_string, time_stamp, truth_value, phys_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'AutonomousType', 'MacAddress', 'DateAndTime', 'DisplayString', 'TimeStamp', 'TruthValue', 'PhysAddress', 'TextualConvention')
(uui_dor_zero,) = mibBuilder.importSymbols('UUID-TC-MIB', 'UUIDorZero')
docs_rphy_ptp_mib = module_identity((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32))
docsRphyPtpMib.setRevisions(('2017-04-13 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
docsRphyPtpMib.setRevisionsDescriptions(('Initial version, created by R-OSSI-N-17.1721-3.',))
if mibBuilder.loadTexts:
docsRphyPtpMib.setLastUpdated('201704130000Z')
if mibBuilder.loadTexts:
docsRphyPtpMib.setOrganization('Cable Television Laboratories, Inc')
if mibBuilder.loadTexts:
docsRphyPtpMib.setContactInfo(' Postal: Cable Television Laboratories, Inc. 400 Centennial Parkway Louisville, Colorado 80027-1266 U.S.A. Phone: +1 303-661-9100 Fax: +1 303-661-9199 E-mail: [email protected]')
if mibBuilder.loadTexts:
docsRphyPtpMib.setDescription('This MIB module contains the status and reporting objects for the Remote PHY CCAP Core and RPD PTP management. Copyright 2017 Cable Television Laboratories, Inc. All rights reserved.')
docs_rphy_ptp_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 0))
docs_rphy_ptp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1))
docs_rphy_ptp_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2))
docs_rphy_ptp_rpd_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1))
docs_rphy_ptp_ccap_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2))
docs_rphy_ptp_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 1))
docs_rphy_ptp_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2))
docs_rphy_ptp_ccap_default_data_set = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1))
docs_rphy_ptp_ccap_default_data_set_two_step_flag = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docs_rphy_ptp_ccap_default_data_set_clock_identity = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetClockIdentity.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetClockIdentity.setDescription('This attribute specifies the default Dataset clock identity.')
docs_rphy_ptp_ccap_default_data_set_priority1 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetPriority1.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetPriority1.setDescription('This attribute specifies the default Dataset clock Priority1. Lower values take precedence.')
docs_rphy_ptp_ccap_default_data_set_priority2 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetPriority2.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetPriority2.setDescription('This attribute specifies the default Dataset clock Priority2. Lower values take precedence.')
docs_rphy_ptp_ccap_default_data_set_slave_only = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetSlaveOnly.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetSlaveOnly.setDescription('This attribute specifies whether the SlaveOnly flag is set.')
docs_rphy_ptp_ccap_default_data_set_quality_class = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityClass.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityClass.setDescription('This attribute of an ordinary or boundary clock denotes the traceability of the time or frequency distributed by the grandmaster clock. See section 7.6.2.4 in [IEEE 1588].')
docs_rphy_ptp_ccap_default_data_set_quality_accuracy = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityAccuracy.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityAccuracy.setDescription('This attribute characterizes a clock for the purpose of the best master clock (BMC) algorithm. See section 7.6.2.5 in [IEEE 1588].')
docs_rphy_ptp_ccap_default_data_set_quality_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapDefaultDataSetQualityOffset.setDescription('This attribute is the offset, scaled, logarithmic representation of the clock variance. See Section 7.6.3.5 in [IEEE 1588].')
docs_rphy_ptp_ccap_current_data_set = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2))
docs_rphy_ptp_ccap_current_data_set_steps_removed = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 1), unsigned32()).setUnits('steps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetStepsRemoved.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetStepsRemoved.setDescription('This attribute is the number of communication paths traversed between the local clock and the grandmaster clock. The initialization value is 0.')
docs_rphy_ptp_ccap_current_data_set_offset_from_master = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 2), integer32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetOffsetFromMaster.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetOffsetFromMaster.setDescription('This attribute is an implementation-specific representation of the current value of the time difference between a master and a slave as computed by the slave.')
docs_rphy_ptp_ccap_current_data_set_mean_path_delay = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 2, 3), unsigned32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCurrentDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docs_rphy_ptp_ccap_parent_data_set = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3))
docs_rphy_ptp_ccap_parent_data_set_parent_clock_id = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 1), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentClockId.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentClockId.setDescription('This attribute is the clock identifier of the clock port on the master that issues the Sync messages used in synchronizing this clock.')
docs_rphy_ptp_ccap_parent_data_set_parent_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentPortNumber.setDescription('This attribute is the port number of the clock port on the master that issues the Sync messages used in synchronizing this clock.')
docs_rphy_ptp_ccap_parent_data_set_parent_stats = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 3), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentStats.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetParentStats.setDescription('This attribute is set to True if the clock has a port in the slave state and the clock has computed statistically valid estimates of the ClockOffset Scaled Log Variance and the Clock PhaseChangeRate. If either the ClockOffset Scaled Log Variance or the Clock PhaseChangeRate is not computed, then the CCAP core MUST set the value of ParentStats to false.')
docs_rphy_ptp_ccap_parent_data_set_clock_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 4), integer32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetClockOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetClockOffset.setDescription("This attribute represents the value of the observed Parent Offset Scaled Log Variance, which is an estimate of the parent clock's PTP variance as observed by the slave clock. The computation of this value is optional, but if not computed, the value of parentStats is FALSE. The initialization value of ClockOffset is 0xFFFF.")
docs_rphy_ptp_ccap_parent_data_set_phase_change_rate = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 5), integer32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetPhaseChangeRate.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetPhaseChangeRate.setDescription("This attribute represents the value of Phase Change Rate, which is an estimate of the parent clock's phase change rate as observed by the slave clock. If the estimate exceeds the capacity of its data type, this value is set to 0x7FFF FFFF. A positive sign indicates that the parent clock's phase change rate is greater than the rate of the slave clock. The computation of this value is optional, but if not computed,the value of parentStats is FALSE.")
docs_rphy_ptp_ccap_parent_data_set_gm_clock_identity = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 6), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmClockIdentity.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmClockIdentity.setDescription('This attribute represents the clock Identity of the grandmaster clock.')
docs_rphy_ptp_ccap_parent_data_set_gm_priority1 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmPriority1.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmPriority1.setDescription('This attribute represents the priority1 of the grandmaster clock. Lower values take precedence.')
docs_rphy_ptp_ccap_parent_data_set_gm_priority2 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmPriority2.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmPriority2.setDescription('This attribute represents the priority2 of the grandmaster clock. Lower values take precedence.')
docs_rphy_ptp_ccap_parent_data_set_gm_quality_class = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityClass.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityClass.setDescription('This attribute is the clock class for the grandmaster clock. The clock class attribute of an ordinary or boundary clock denotes the traceability of the time or frequency distributed by the grandmaster clock. See section 7.6.2.4 in [IEEE 1588].')
docs_rphy_ptp_ccap_parent_data_set_gm_quality_accuracy = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityAccuracy.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityAccuracy.setDescription('This attribute characterizes the grandmaster clock for the purpose of the best master clock (BMC) algorithm. See section 7.6.2.5 in [IEEE 1588].')
docs_rphy_ptp_ccap_parent_data_set_gm_quality_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 3, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapParentDataSetGmQualityOffset.setDescription('This attribute represents the offset, scaled, logarithmic representation of the grandmaster clock variance. See Section 7.6.3.5 in [IEEE 1588].')
docs_rphy_ptp_ccap_time_properties = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4))
docs_rphy_ptp_ccap_time_properties_current_utc_offset_valid = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid.setDescription('This attribute represents the value of currentUtcOffsetValid is TRUE if the currentUtcOffset is known to be correct.')
docs_rphy_ptp_ccap_time_properties_current_utc_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 2), integer32()).setUnits('Seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesCurrentUtcOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesCurrentUtcOffset.setDescription('This attribute represents the offset between International Atomic Time (TAI) and Universal Coordinated Time (UTC).')
docs_rphy_ptp_ccap_time_properties_leap59 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 3), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesLeap59.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesLeap59.setDescription('This attribute represents whether or not there are 59 seconds in the last minute of the current UTC day for PTP systems whose epoch is the PTP epoch,; a TRUE value for Leap59 indicates that the last minute of the current UTC day contains 59 seconds.')
docs_rphy_ptp_ccap_time_properties_leap61 = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 4), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesLeap61.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesLeap61.setDescription('This attribute represents whether or not there are 61 seconds in the last minute of the current UTC day for PTP systems whose epoch is the PTP epoch; a TRUE value for Leap61 indicates that the last minute of the current UTC day contains 61 seconds.')
docs_rphy_ptp_ccap_time_properties_time_traceable = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesTimeTraceable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesTimeTraceable.setDescription('This attribute represents whether the timescale and the value of currentUtcOffset are traceable to a primary reference. TimeTraceable is TRUE if the timescale and the value of currentUtcOffset are traceable to a primary reference; otherwise, the value is FALSE.')
docs_rphy_ptp_ccap_time_properties_freq_traceable = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 6), truth_value().clone('true')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesFreqTraceable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesFreqTraceable.setDescription('This attribute represents whether the frequency determining the timescale is traceable to a primary reference. The value of FrequencyTraceable is TRUE if the frequency determining the timescale is traceable to a primary reference; otherwise, the value is FALSE.')
docs_rphy_ptp_ccap_time_properties_ptp_timescale = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 7), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesPtpTimescale.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesPtpTimescale.setDescription('This attribute is always true for grandmaster clocks with a clock timescale of PTP.')
docs_rphy_ptp_ccap_time_properties_time_source = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 4, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesTimeSource.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapTimePropertiesTimeSource.setDescription('This attribute represents the source of time used by the grandmaster clock. See Table 7 in [IEEE 1588]. If the time source of the grandmaster clock is unknown, the CCAP Core MUST set the TimeSource value to INTERNAL_OSCILLATOR (0xA0).')
docs_rphy_ptp_ccap_port_data_set_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docs_rphy_ptp_ccap_port_data_set_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1)).setIndexNames((0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortDataSetPortNumber'))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetEntry.setDescription('The conceptual row of docsRphyPtpCcapPortDataSetTable.')
docs_rphy_ptp_ccap_port_data_set_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetPortNumber.setDescription('This key attribute is the port number of the local clock port. Port numbers 0 and 65,535 are reserved and cannot be used for real clock ports. See [IEEE 1588] for more information. When a PTP clock has N ports, the CCAP Core MUST set the port number to a value in the interval 1..N.')
docs_rphy_ptp_ccap_port_data_set_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetPortState.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetPortState.setDescription('This attribute is the state of this PTP clock port. See Table 8 in [IEEE 1588].')
docs_rphy_ptp_ccap_port_data_set_mean_path_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docs_rphy_ptp_ccap_clock_status = mib_identifier((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6))
docs_rphy_ptp_ccap_clock_status_clock_state = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('freerun', 1), ('holdover', 2), ('acquiring', 3), ('freqLocked', 4), ('phaseAligned', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusClockState.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusClockState.setDescription('This attribute represents the current state of the clock.')
docs_rphy_ptp_ccap_clock_status_last_state_change = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusLastStateChange.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusLastStateChange.setDescription('This attribute represents the value in TimeTicks when the clock state last changed.')
docs_rphy_ptp_ccap_clock_status_packets_sent = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 3), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock.')
docs_rphy_ptp_ccap_clock_status_packets_received = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 4), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock.')
docs_rphy_ptp_ccap_clock_status_computed_phase_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 5), unsigned32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusComputedPhaseOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusComputedPhaseOffset.setDescription('This attribute specifies the phase offset that the locking algorithm computed in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docs_rphy_ptp_ccap_clock_status_counter_discontinuity_time = mib_scalar((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 6, 6), time_stamp()).setUnits('TimeTicks').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapClockStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_ccap_core_ptp_port_status_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7))
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusTable.setDescription('CorePtpCoreStatus is an instantiation of the abstract class PtpPortStatus and inherits those common attributes')
docs_rphy_ptp_ccap_core_ptp_port_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1)).setIndexNames((0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCorePtpPortStatusPortNumber'))
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusEntry.setDescription('The conceptual row of docsRphyPtpCcapCorePtpPortStatusTable .')
docs_rphy_ptp_ccap_core_ptp_port_status_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)))
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPortNumber.setDescription('This key attribute is the port number of the local clock port.')
docs_rphy_ptp_ccap_core_ptp_port_status_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 2), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock port.')
docs_rphy_ptp_ccap_core_ptp_port_status_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 3), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock port.')
docs_rphy_ptp_ccap_core_ptp_port_status_counter_discontinuity_time = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 7, 1, 4), time_stamp()).setUnits('TimeTicks').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_ccap_port_master_clock_status_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusTable.setDescription('This table contains Port MasterClock Status attributes.')
docs_rphy_ptp_ccap_port_master_clock_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1)).setIndexNames((0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCorePtpPortStatusPortNumber'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusMasterPriority'))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusEntry.setDescription('The conceptual row of docsRphyPtpCcapPortMasterClockStatusTable.')
docs_rphy_ptp_ccap_port_master_clock_status_master_priority = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 5)))
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterPriority.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterPriority.setDescription('This key attribute is the priority of the master clock configured for the PTP template assigned to this PTP clock port. Low numbers are higher priority.')
docs_rphy_ptp_ccap_port_master_clock_status_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 2), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent to this master for this slave clock port.')
docs_rphy_ptp_ccap_port_master_clock_status_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 3), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received from this master for this slave clock port.')
docs_rphy_ptp_ccap_port_master_clock_status_master_clock_id = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterClockId.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterClockId.setDescription('This attribute specifies the clock identifier of this master clock.')
docs_rphy_ptp_ccap_port_master_clock_status_master_clock_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber.setDescription("This attribute specifies master clock's port number.")
docs_rphy_ptp_ccap_port_master_clock_status_two_step_flag = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 6), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docs_rphy_ptp_ccap_port_master_clock_status_is_bmc = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 7), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusIsBmc.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusIsBmc.setDescription('This attribute represents whether or not this master is the current Best Master Clock (i.e., the master clock currently in use for this slave clock).')
docs_rphy_ptp_ccap_port_master_clock_status_is_master_connected = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 8), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusIsMasterConnected.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusIsMasterConnected.setDescription('This attribute is set to TRUE if a signaling session with the master is successfully established. When a slave node receives an announce and a sync message from the master, the CCAP Core SHOULD consider the session to be successfully established.')
docs_rphy_ptp_ccap_port_master_clock_status_status_domain = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusStatusDomain.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusStatusDomain.setDescription('This attribute is the PTP master domain.')
docs_rphy_ptp_ccap_port_master_clock_status_freq_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 10), unsigned32()).setUnits('PPM').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusFreqOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusFreqOffset.setDescription('This attribute specifies the frequency offset that the locking algorithm computed per master in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docs_rphy_ptp_ccap_port_master_clock_status_counter_discontinuity_time = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 2, 8, 1, 11), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime.setDescription("This attribute contains the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_rpd_current_data_set_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1))
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docs_rphy_ptp_rpd_current_data_set_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1)).setIndexNames((0, 'DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId'))
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetEntry.setDescription('The conceptual row of docsRphyPtpRpdCurrentDataSetTable.')
docs_rphy_ptp_rpd_current_data_set_steps_removed = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 1), unsigned32()).setUnits('steps').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetStepsRemoved.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetStepsRemoved.setDescription('This attribute is the number of communication paths traversed between the local clock and the grandmaster clock. The initialization value is 0.')
docs_rphy_ptp_rpd_current_data_set_offset_from_master = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 2), integer32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetOffsetFromMaster.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetOffsetFromMaster.setDescription('This attribute is an implementation-specific representation of the current value of the time difference between a master and a slave as computed by the slave.')
docs_rphy_ptp_rpd_current_data_set_mean_path_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 1, 1, 3), unsigned32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdCurrentDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docs_rphy_ptp_rpd_clock_status_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2))
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docs_rphy_ptp_rpd_clock_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1)).setIndexNames((0, 'DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId'))
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdClockStatusTable.')
docs_rphy_ptp_rpd_clock_status_clock_state = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('freerun', 1), ('holdover', 2), ('acquiring', 3), ('freqLocked', 4), ('phaseAligned', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusClockState.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusClockState.setDescription('This attribute represents the current state of the clock.')
docs_rphy_ptp_rpd_clock_status_last_state_change = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusLastStateChange.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusLastStateChange.setDescription('This attribute represents the value in TimeTicks when the clock state last changed.')
docs_rphy_ptp_rpd_clock_status_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 3), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock.')
docs_rphy_ptp_rpd_clock_status_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 4), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock.')
docs_rphy_ptp_rpd_clock_status_computed_phase_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 5), unsigned32()).setUnits('Nanoseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusComputedPhaseOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusComputedPhaseOffset.setDescription('This attribute specifies the phase offset that the locking algorithm computed in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docs_rphy_ptp_rpd_clock_status_counter_discontinuity_time = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 2, 1, 6), time_stamp()).setUnits('TimeTicks').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdClockStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_rpd_port_data_set_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetTable.setDescription('See section 8.2.5 in [IEEE 1588] for details of the 1588 port dataset.')
docs_rphy_ptp_rpd_port_data_set_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1)).setIndexNames((0, 'DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortDataSetPortNumber'))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetEntry.setDescription('The conceptual row of docsRphyPtpRpdPortDataSetTable.')
docs_rphy_ptp_rpd_port_data_set_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetPortNumber.setDescription('This key attribute is the port number of the local clock port. Port numbers 0 and 65,535 are reserved and cannot be used for real clock ports. See [IEEE 1588] for more information. When a PTP clock has N ports, the CCAP Core MUST set the port number to a value in the interval 1..N.')
docs_rphy_ptp_rpd_port_data_set_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetPortState.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetPortState.setDescription('This attribute is the state of this PTP clock port. See Table 8 in [IEEE 1588].')
docs_rphy_ptp_rpd_port_data_set_mean_path_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetMeanPathDelay.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortDataSetMeanPathDelay.setDescription('This attribute is an implementation-specific representation of the current value of the mean propagation time between a master and slave clock as computed by the slave. Zero means that the path delay is unavailable.')
docs_rphy_ptp_rpd_ptp_port_status_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4))
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusTable.setDescription('Port Ptp Status is an instantiation of the abstract class PtpPortStatus and inherits those common attributes')
docs_rphy_ptp_rpd_ptp_port_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1)).setIndexNames((0, 'DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusPortNumber'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex'))
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdCorePtpPortStatusTable .')
docs_rphy_ptp_rpd_ptp_port_status_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)))
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPortNumber.setDescription('This key attribute is the port number of the local clock port.')
docs_rphy_ptp_rpd_ptp_port_status_rpd_enet_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)))
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex.setDescription('This key attribute is the port number of the local clock port.')
docs_rphy_ptp_rpd_ptp_port_status_rpd_ptp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 3), unsigned32())
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex.setDescription('This key attribute is the port number of the local clock port.')
docs_rphy_ptp_rpd_ptp_port_status_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 4), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent for this clock port.')
docs_rphy_ptp_rpd_ptp_port_status_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 5), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received for this clock port.')
docs_rphy_ptp_rpd_ptp_port_status_counter_discontinuity_time = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 4, 1, 6), time_stamp()).setUnits('TimeTicks').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime.setDescription("This attribute represents the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_rpd_port_master_clock_status_table = mib_table((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusTable.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusTable.setDescription('This table contains Port MasterClock Status attributes.')
docs_rphy_ptp_rpd_port_master_clock_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1)).setIndexNames((0, 'DOCS-RPHY-MIB', 'docsRphyRpdDevInfoUniqueId'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex'), (0, 'DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusMasterPriority'))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusEntry.setDescription('The conceptual row of docsRphyPtpRpdPortMasterClockStatusTable.')
docs_rphy_ptp_rpd_port_master_clock_status_master_priority = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 5)))
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterPriority.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterPriority.setDescription('This key attribute is the priority of the master clock configured for the PTP template assigned to this PTP clock port. Low numbers are higher priority.')
docs_rphy_ptp_rpd_port_master_clock_status_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 2), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusPacketsSent.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusPacketsSent.setDescription('This attribute represents the number of PTP packets sent to this master for this slave clock port.')
docs_rphy_ptp_rpd_port_master_clock_status_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 3), counter64()).setUnits('Packets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusPacketsReceived.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusPacketsReceived.setDescription('This attribute represents the number of PTP packets received from this master for this slave clock port.')
docs_rphy_ptp_rpd_port_master_clock_status_master_clock_id = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterClockId.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterClockId.setDescription('This attribute specifies the clock identifier of this master clock.')
docs_rphy_ptp_rpd_port_master_clock_status_master_clock_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber.setDescription("This attribute specifies master clock's port number.")
docs_rphy_ptp_rpd_port_master_clock_status_two_step_flag = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 6), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusTwoStepFlag.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusTwoStepFlag.setDescription('This attribute specifies whether the Two Step process is used (i.e., the clock is a two-step clock).')
docs_rphy_ptp_rpd_port_master_clock_status_is_bmc = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 7), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusIsBmc.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusIsBmc.setDescription('This attribute represents whether or not this master is the current Best Master Clock (i.e., the master clock currently in use for this slave clock).')
docs_rphy_ptp_rpd_port_master_clock_status_is_master_connected = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 8), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusIsMasterConnected.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusIsMasterConnected.setDescription('This attribute is set to TRUE if a signaling session with the master is successfully established. When a slave node receives an announce and a sync message from the master, the CCAP Core SHOULD consider the session to be successfully established.')
docs_rphy_ptp_rpd_port_master_clock_status_status_domain = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusStatusDomain.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusStatusDomain.setDescription('This attribute is the PTP master domain.')
docs_rphy_ptp_rpd_port_master_clock_status_freq_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 10), unsigned32()).setUnits('PPM').setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusFreqOffset.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusFreqOffset.setDescription('This attribute specifies the frequency offset that the locking algorithm computed per master in the last 60 sec interval. 0xFFFFFFFF means offset unknown.')
docs_rphy_ptp_rpd_port_master_clock_status_counter_discontinuity_time = mib_table_column((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 1, 1, 5, 1, 11), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime.setDescription("This attribute contains the value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. If no such discontinuities have occurred since the last re-initialization of the local management subsystem, then this object contains a zero value.")
docs_rphy_ptp_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 1, 1)).setObjects(('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdGroup'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCoreGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docs_rphy_ptp_compliance = docsRphyPtpCompliance.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCompliance.setDescription('The compliance statement for CCAP Core and RPD PTP features.')
docs_rphy_ptp_rpd_group = object_group((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2, 1)).setObjects(('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdCurrentDataSetStepsRemoved'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdCurrentDataSetOffsetFromMaster'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdCurrentDataSetMeanPathDelay'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusClockState'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusLastStateChange'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusComputedPhaseOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdClockStatusCounterDiscontinuityTime'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortDataSetPortState'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortDataSetMeanPathDelay'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusMasterClockId'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusTwoStepFlag'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusIsBmc'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusIsMasterConnected'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusStatusDomain'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusFreqOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docs_rphy_ptp_rpd_group = docsRphyPtpRpdGroup.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpRpdGroup.setDescription('Group of objects implemented in CCAP Cores which represent RPD managed objects derived via the GCP protocol.')
docs_rphy_ptp_ccap_core_group = object_group((1, 3, 6, 1, 4, 1, 4491, 2, 1, 32, 2, 2, 2)).setObjects(('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetTwoStepFlag'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetClockIdentity'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetPriority1'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetPriority2'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetSlaveOnly'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetQualityClass'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetQualityAccuracy'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapDefaultDataSetQualityOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCurrentDataSetStepsRemoved'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCurrentDataSetOffsetFromMaster'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCurrentDataSetMeanPathDelay'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetParentClockId'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetParentPortNumber'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetParentStats'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetClockOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetPhaseChangeRate'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmClockIdentity'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmPriority1'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmPriority2'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmQualityClass'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmQualityAccuracy'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapParentDataSetGmQualityOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesCurrentUtcOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesLeap59'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesLeap61'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesTimeTraceable'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesFreqTraceable'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesPtpTimescale'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapTimePropertiesTimeSource'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortDataSetPortState'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortDataSetMeanPathDelay'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusClockState'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusLastStateChange'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusComputedPhaseOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapClockStatusCounterDiscontinuityTime'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCorePtpPortStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCorePtpPortStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusPacketsSent'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusPacketsReceived'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusMasterClockId'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusTwoStepFlag'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusIsBmc'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusIsMasterConnected'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusStatusDomain'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusFreqOffset'), ('DOCS-RPHY-PTP-MIB', 'docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
docs_rphy_ptp_ccap_core_group = docsRphyPtpCcapCoreGroup.setStatus('current')
if mibBuilder.loadTexts:
docsRphyPtpCcapCoreGroup.setDescription('Group of objects implemented in CCAP Cores.')
mibBuilder.exportSymbols('DOCS-RPHY-PTP-MIB', docsRphyPtpCcapCurrentDataSetStepsRemoved=docsRphyPtpCcapCurrentDataSetStepsRemoved, docsRphyPtpCcapPortMasterClockStatusTwoStepFlag=docsRphyPtpCcapPortMasterClockStatusTwoStepFlag, docsRphyPtpRpdPortMasterClockStatusMasterPriority=docsRphyPtpRpdPortMasterClockStatusMasterPriority, docsRphyPtpRpdMibObjects=docsRphyPtpRpdMibObjects, docsRphyPtpCcapDefaultDataSetQualityAccuracy=docsRphyPtpCcapDefaultDataSetQualityAccuracy, docsRphyPtpCompliances=docsRphyPtpCompliances, docsRphyPtpCcapClockStatusLastStateChange=docsRphyPtpCcapClockStatusLastStateChange, docsRphyPtpRpdCurrentDataSetMeanPathDelay=docsRphyPtpRpdCurrentDataSetMeanPathDelay, docsRphyPtpCcapParentDataSetGmPriority2=docsRphyPtpCcapParentDataSetGmPriority2, docsRphyPtpRpdPortMasterClockStatusStatusDomain=docsRphyPtpRpdPortMasterClockStatusStatusDomain, docsRphyPtpCcapTimePropertiesLeap59=docsRphyPtpCcapTimePropertiesLeap59, docsRphyPtpCcapTimePropertiesLeap61=docsRphyPtpCcapTimePropertiesLeap61, docsRphyPtpCcapClockStatus=docsRphyPtpCcapClockStatus, docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex=docsRphyPtpRpdPtpPortStatusRpdEnetPortIndex, docsRphyPtpCcapClockStatusComputedPhaseOffset=docsRphyPtpCcapClockStatusComputedPhaseOffset, docsRphyPtpConformance=docsRphyPtpConformance, docsRphyPtpCcapCorePtpPortStatusPortNumber=docsRphyPtpCcapCorePtpPortStatusPortNumber, docsRphyPtpCcapCurrentDataSetOffsetFromMaster=docsRphyPtpCcapCurrentDataSetOffsetFromMaster, docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime=docsRphyPtpCcapCorePtpPortStatusCounterDiscontinuityTime, docsRphyPtpCcapParentDataSetParentStats=docsRphyPtpCcapParentDataSetParentStats, docsRphyPtpObjects=docsRphyPtpObjects, docsRphyPtpCcapDefaultDataSetQualityClass=docsRphyPtpCcapDefaultDataSetQualityClass, docsRphyPtpCcapDefaultDataSetQualityOffset=docsRphyPtpCcapDefaultDataSetQualityOffset, docsRphyPtpRpdPtpPortStatusPortNumber=docsRphyPtpRpdPtpPortStatusPortNumber, docsRphyPtpRpdPortMasterClockStatusTable=docsRphyPtpRpdPortMasterClockStatusTable, docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex=docsRphyPtpRpdPtpPortStatusRpdPtpPortIndex, docsRphyPtpRpdClockStatusClockState=docsRphyPtpRpdClockStatusClockState, docsRphyPtpCcapPortMasterClockStatusMasterPriority=docsRphyPtpCcapPortMasterClockStatusMasterPriority, docsRphyPtpRpdPtpPortStatusPacketsReceived=docsRphyPtpRpdPtpPortStatusPacketsReceived, docsRphyPtpCcapPortMasterClockStatusFreqOffset=docsRphyPtpCcapPortMasterClockStatusFreqOffset, docsRphyPtpRpdCurrentDataSetOffsetFromMaster=docsRphyPtpRpdCurrentDataSetOffsetFromMaster, docsRphyPtpCcapPortMasterClockStatusIsMasterConnected=docsRphyPtpCcapPortMasterClockStatusIsMasterConnected, docsRphyPtpRpdClockStatusPacketsReceived=docsRphyPtpRpdClockStatusPacketsReceived, docsRphyPtpCcapParentDataSetClockOffset=docsRphyPtpCcapParentDataSetClockOffset, docsRphyPtpRpdPortMasterClockStatusIsBmc=docsRphyPtpRpdPortMasterClockStatusIsBmc, docsRphyPtpCompliance=docsRphyPtpCompliance, docsRphyPtpRpdPortDataSetPortNumber=docsRphyPtpRpdPortDataSetPortNumber, docsRphyPtpCcapParentDataSetParentClockId=docsRphyPtpCcapParentDataSetParentClockId, docsRphyPtpCcapClockStatusPacketsSent=docsRphyPtpCcapClockStatusPacketsSent, docsRphyPtpRpdClockStatusCounterDiscontinuityTime=docsRphyPtpRpdClockStatusCounterDiscontinuityTime, docsRphyPtpCcapPortMasterClockStatusIsBmc=docsRphyPtpCcapPortMasterClockStatusIsBmc, docsRphyPtpRpdClockStatusPacketsSent=docsRphyPtpRpdClockStatusPacketsSent, docsRphyPtpCcapParentDataSet=docsRphyPtpCcapParentDataSet, docsRphyPtpCcapCoreGroup=docsRphyPtpCcapCoreGroup, docsRphyPtpCcapPortDataSetTable=docsRphyPtpCcapPortDataSetTable, docsRphyPtpCcapTimePropertiesTimeSource=docsRphyPtpCcapTimePropertiesTimeSource, docsRphyPtpCcapCorePtpPortStatusPacketsReceived=docsRphyPtpCcapCorePtpPortStatusPacketsReceived, docsRphyPtpCcapParentDataSetParentPortNumber=docsRphyPtpCcapParentDataSetParentPortNumber, PYSNMP_MODULE_ID=docsRphyPtpMib, docsRphyPtpCcapTimePropertiesFreqTraceable=docsRphyPtpCcapTimePropertiesFreqTraceable, docsRphyPtpRpdPortMasterClockStatusMasterClockId=docsRphyPtpRpdPortMasterClockStatusMasterClockId, docsRphyPtpRpdClockStatusLastStateChange=docsRphyPtpRpdClockStatusLastStateChange, docsRphyPtpCcapPortMasterClockStatusPacketsSent=docsRphyPtpCcapPortMasterClockStatusPacketsSent, docsRphyPtpCcapDefaultDataSet=docsRphyPtpCcapDefaultDataSet, docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber=docsRphyPtpCcapPortMasterClockStatusMasterClockPortNumber, docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime=docsRphyPtpRpdPtpPortStatusCounterDiscontinuityTime, docsRphyPtpCcapDefaultDataSetPriority2=docsRphyPtpCcapDefaultDataSetPriority2, docsRphyPtpCcapPortMasterClockStatusTable=docsRphyPtpCcapPortMasterClockStatusTable, docsRphyPtpCcapCorePtpPortStatusEntry=docsRphyPtpCcapCorePtpPortStatusEntry, docsRphyPtpGroups=docsRphyPtpGroups, docsRphyPtpRpdPtpPortStatusTable=docsRphyPtpRpdPtpPortStatusTable, docsRphyPtpRpdPortMasterClockStatusFreqOffset=docsRphyPtpRpdPortMasterClockStatusFreqOffset, docsRphyPtpCcapCorePtpPortStatusPacketsSent=docsRphyPtpCcapCorePtpPortStatusPacketsSent, docsRphyPtpRpdPortDataSetEntry=docsRphyPtpRpdPortDataSetEntry, docsRphyPtpCcapPortMasterClockStatusPacketsReceived=docsRphyPtpCcapPortMasterClockStatusPacketsReceived, docsRphyPtpCcapCurrentDataSet=docsRphyPtpCcapCurrentDataSet, docsRphyPtpCcapDefaultDataSetTwoStepFlag=docsRphyPtpCcapDefaultDataSetTwoStepFlag, docsRphyPtpCcapMibObjects=docsRphyPtpCcapMibObjects, docsRphyPtpRpdPortMasterClockStatusTwoStepFlag=docsRphyPtpRpdPortMasterClockStatusTwoStepFlag, docsRphyPtpCcapParentDataSetGmQualityClass=docsRphyPtpCcapParentDataSetGmQualityClass, docsRphyPtpRpdClockStatusEntry=docsRphyPtpRpdClockStatusEntry, docsRphyPtpCcapCurrentDataSetMeanPathDelay=docsRphyPtpCcapCurrentDataSetMeanPathDelay, docsRphyPtpCcapClockStatusCounterDiscontinuityTime=docsRphyPtpCcapClockStatusCounterDiscontinuityTime, docsRphyPtpRpdPortDataSetPortState=docsRphyPtpRpdPortDataSetPortState, docsRphyPtpCcapParentDataSetGmPriority1=docsRphyPtpCcapParentDataSetGmPriority1, docsRphyPtpCcapTimeProperties=docsRphyPtpCcapTimeProperties, docsRphyPtpCcapParentDataSetGmQualityOffset=docsRphyPtpCcapParentDataSetGmQualityOffset, docsRphyPtpRpdCurrentDataSetEntry=docsRphyPtpRpdCurrentDataSetEntry, docsRphyPtpCcapParentDataSetGmClockIdentity=docsRphyPtpCcapParentDataSetGmClockIdentity, docsRphyPtpCcapPortDataSetMeanPathDelay=docsRphyPtpCcapPortDataSetMeanPathDelay, docsRphyPtpRpdPtpPortStatusEntry=docsRphyPtpRpdPtpPortStatusEntry, docsRphyPtpRpdPortDataSetMeanPathDelay=docsRphyPtpRpdPortDataSetMeanPathDelay, docsRphyPtpRpdPtpPortStatusPacketsSent=docsRphyPtpRpdPtpPortStatusPacketsSent, docsRphyPtpCcapTimePropertiesTimeTraceable=docsRphyPtpCcapTimePropertiesTimeTraceable, docsRphyPtpRpdCurrentDataSetTable=docsRphyPtpRpdCurrentDataSetTable, docsRphyPtpRpdPortMasterClockStatusIsMasterConnected=docsRphyPtpRpdPortMasterClockStatusIsMasterConnected, docsRphyPtpMib=docsRphyPtpMib, docsRphyPtpCcapPortMasterClockStatusMasterClockId=docsRphyPtpCcapPortMasterClockStatusMasterClockId, docsRphyPtpCcapPortMasterClockStatusEntry=docsRphyPtpCcapPortMasterClockStatusEntry, docsRphyPtpCcapClockStatusPacketsReceived=docsRphyPtpCcapClockStatusPacketsReceived, docsRphyPtpCcapTimePropertiesCurrentUtcOffset=docsRphyPtpCcapTimePropertiesCurrentUtcOffset, docsRphyPtpCcapPortDataSetPortState=docsRphyPtpCcapPortDataSetPortState, docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber=docsRphyPtpRpdPortMasterClockStatusMasterClockPortNumber, docsRphyPtpRpdCurrentDataSetStepsRemoved=docsRphyPtpRpdCurrentDataSetStepsRemoved, docsRphyPtpCcapTimePropertiesPtpTimescale=docsRphyPtpCcapTimePropertiesPtpTimescale, docsRphyPtpRpdClockStatusComputedPhaseOffset=docsRphyPtpRpdClockStatusComputedPhaseOffset, docsRphyPtpCcapParentDataSetGmQualityAccuracy=docsRphyPtpCcapParentDataSetGmQualityAccuracy, docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid=docsRphyPtpCcapTimePropertiesCurrentUtcOffsetValid, docsRphyPtpRpdPortDataSetTable=docsRphyPtpRpdPortDataSetTable, docsRphyPtpCcapDefaultDataSetPriority1=docsRphyPtpCcapDefaultDataSetPriority1, docsRphyPtpRpdPortMasterClockStatusEntry=docsRphyPtpRpdPortMasterClockStatusEntry, docsRphyPtpCcapParentDataSetPhaseChangeRate=docsRphyPtpCcapParentDataSetPhaseChangeRate, docsRphyPtpCcapCorePtpPortStatusTable=docsRphyPtpCcapCorePtpPortStatusTable, docsRphyPtpRpdPortMasterClockStatusPacketsReceived=docsRphyPtpRpdPortMasterClockStatusPacketsReceived, docsRphyPtpCcapDefaultDataSetClockIdentity=docsRphyPtpCcapDefaultDataSetClockIdentity, docsRphyPtpNotifications=docsRphyPtpNotifications, docsRphyPtpRpdPortMasterClockStatusPacketsSent=docsRphyPtpRpdPortMasterClockStatusPacketsSent, docsRphyPtpCcapClockStatusClockState=docsRphyPtpCcapClockStatusClockState, docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime=docsRphyPtpCcapPortMasterClockStatusCounterDiscontinuityTime, docsRphyPtpCcapPortDataSetEntry=docsRphyPtpCcapPortDataSetEntry, docsRphyPtpCcapPortDataSetPortNumber=docsRphyPtpCcapPortDataSetPortNumber, docsRphyPtpCcapPortMasterClockStatusStatusDomain=docsRphyPtpCcapPortMasterClockStatusStatusDomain, docsRphyPtpCcapDefaultDataSetSlaveOnly=docsRphyPtpCcapDefaultDataSetSlaveOnly, docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime=docsRphyPtpRpdPortMasterClockStatusCounterDiscontinuityTime, docsRphyPtpRpdGroup=docsRphyPtpRpdGroup, docsRphyPtpRpdClockStatusTable=docsRphyPtpRpdClockStatusTable) |
# -*- coding: utf-8 -*-
# @Author: ZwEin
# @Date: 2016-07-08 13:48:24
# @Last Modified by: ZwEin
# @Last Modified time: 2016-07-08 13:48:34
def attr_func_state(attr_vals):
pass | def attr_func_state(attr_vals):
pass |
# Domains list
DOMAINS = [
{ 'url': 'https://ifmo.su', 'message': '@guryn' }
]
# Notifications link from https://t.me/wbhkbot
WEBHOOK = ''
| domains = [{'url': 'https://ifmo.su', 'message': '@guryn'}]
webhook = '' |
@state_trigger("sensor.power_meter != '9999'")
def load_optimizer(value=None):
pass
| @state_trigger("sensor.power_meter != '9999'")
def load_optimizer(value=None):
pass |
## Alphabet war
## 7 kyu
## https://www.codewars.com/kata/59377c53e66267c8f6000027
def alphabet_war(fight):
l = dict(zip('wpbs', range(4,0,-1)))
r = dict(zip('mqdz', range(4,0,-1)))
left, right = 0,0
for char in fight:
if char in l:
left += l[char]
elif char in r:
right += r[char]
if left > right:
return 'Left side wins!'
elif right > left:
return 'Right side wins!'
return "Let's fight again!" | def alphabet_war(fight):
l = dict(zip('wpbs', range(4, 0, -1)))
r = dict(zip('mqdz', range(4, 0, -1)))
(left, right) = (0, 0)
for char in fight:
if char in l:
left += l[char]
elif char in r:
right += r[char]
if left > right:
return 'Left side wins!'
elif right > left:
return 'Right side wins!'
return "Let's fight again!" |
class Solution:
# Codes (Accepted), O(n) time and space
def replaceDigits(self, s: str) -> str:
li, n = [], len(s)
for i in range(0, n, 2):
if i+1 < n:
code = ord(s[i]) + int(s[i+1])
li += [s[i], chr(code)]
else:
li.append(s[i])
return "".join(li)
# Straight Forward Codes (Top Voted), O(n) time and space
def replaceDigits(self, s: str) -> str:
a = list(s)
for i in range(1, len(a), 2):
a[i] = chr(ord(a[i - 1]) + int(a[i]))
return ''.join(a)
| class Solution:
def replace_digits(self, s: str) -> str:
(li, n) = ([], len(s))
for i in range(0, n, 2):
if i + 1 < n:
code = ord(s[i]) + int(s[i + 1])
li += [s[i], chr(code)]
else:
li.append(s[i])
return ''.join(li)
def replace_digits(self, s: str) -> str:
a = list(s)
for i in range(1, len(a), 2):
a[i] = chr(ord(a[i - 1]) + int(a[i]))
return ''.join(a) |
class SubmissionStatus(object):
SUBMITTED = -4
WAITING = -3
JUDGING = -2
WRONG_ANSWER = -1
ACCEPTED = 0
TIME_LIMIT_EXCEEDED = 1
IDLENESS_LIMIT_EXCEEDED = 2
MEMORY_LIMIT_EXCEEDED = 3
RUNTIME_ERROR = 4
SYSTEM_ERROR = 5
COMPILE_ERROR = 6
SCORED = 7
REJECTED = 10
JUDGE_ERROR = 11
PRETEST_PASSED = 12
@staticmethod
def is_judged(status):
return status >= SubmissionStatus.WRONG_ANSWER
@staticmethod
def is_penalty(status):
return SubmissionStatus.is_judged(status) and status != SubmissionStatus.COMPILE_ERROR
@staticmethod
def is_accepted(status):
return status == SubmissionStatus.ACCEPTED or status == SubmissionStatus.PRETEST_PASSED
@staticmethod
def is_scored(status):
return status == SubmissionStatus.SCORED
STATUS_CHOICE = (
(-4, 'Submitted'),
(-3, 'In queue'),
(-2, 'Running'),
(-1, 'Wrong answer'),
(0, 'Accepted'),
(1, 'Time limit exceeded'),
(2, 'Idleness limit exceeded'),
(3, 'Memory limit exceeded'),
(4, 'Runtime error'),
(5, 'Denial of judgement'),
(6, 'Compilation error'),
(7, 'Partial score'),
(10, 'Rejected'),
(11, 'Checker error'),
(12, 'Pretest passed'),
)
| class Submissionstatus(object):
submitted = -4
waiting = -3
judging = -2
wrong_answer = -1
accepted = 0
time_limit_exceeded = 1
idleness_limit_exceeded = 2
memory_limit_exceeded = 3
runtime_error = 4
system_error = 5
compile_error = 6
scored = 7
rejected = 10
judge_error = 11
pretest_passed = 12
@staticmethod
def is_judged(status):
return status >= SubmissionStatus.WRONG_ANSWER
@staticmethod
def is_penalty(status):
return SubmissionStatus.is_judged(status) and status != SubmissionStatus.COMPILE_ERROR
@staticmethod
def is_accepted(status):
return status == SubmissionStatus.ACCEPTED or status == SubmissionStatus.PRETEST_PASSED
@staticmethod
def is_scored(status):
return status == SubmissionStatus.SCORED
status_choice = ((-4, 'Submitted'), (-3, 'In queue'), (-2, 'Running'), (-1, 'Wrong answer'), (0, 'Accepted'), (1, 'Time limit exceeded'), (2, 'Idleness limit exceeded'), (3, 'Memory limit exceeded'), (4, 'Runtime error'), (5, 'Denial of judgement'), (6, 'Compilation error'), (7, 'Partial score'), (10, 'Rejected'), (11, 'Checker error'), (12, 'Pretest passed')) |
str1 = "Liu Kang "
str2 = "Johnny Cage "
str3 = "Scorpion "
str4 = "Sub-Zero "
str5 = "Sonya "
str6 = "Test yo might! "
print(str1 + str2 + str3 + str4 + str5 + str6)
print(str3 * 5)
print(str3 * (5 + 4))
print(str3 * 5 + "4")
today = "Tuesday"
# bool - in operator
print("day" in today)
print("scorpion" in today)
| str1 = 'Liu Kang '
str2 = 'Johnny Cage '
str3 = 'Scorpion '
str4 = 'Sub-Zero '
str5 = 'Sonya '
str6 = 'Test yo might! '
print(str1 + str2 + str3 + str4 + str5 + str6)
print(str3 * 5)
print(str3 * (5 + 4))
print(str3 * 5 + '4')
today = 'Tuesday'
print('day' in today)
print('scorpion' in today) |
# pylint: disable=missing-docstring
def stupid_function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): # [too-many-arguments]
return arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
| def stupid_function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9):
return (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) |
class DsapiParams:
def __init__(self, limit=1, bundles = [], role=None, tenant=None, format = 'json'):
self.limit = limit
self.bundles = bundles
self.role = role
self.tenant = tenant
self.format = format
def formatForRequest(self):
formattedString = '?'
numParams = 0
if self.limit:
formattedString += 'limit=' + str(self.limit)
numParams += 1
if self.bundles:
if numParams >= 1:
formattedString += '&'
formattedString += 'bundle=' + ','.join(self.bundles)
if self.role:
if numParams >= 1:
formattedString += '&'
formattedString += 'role=' + self.role
if self.tenant:
if numParams >= 1:
formattedString += '&'
formattedString += 'tenant=' + self.tenant
if self.format:
if numParams >= 1:
formattedString += '&'
formattedString += 'format=' + self.format
return formattedString | class Dsapiparams:
def __init__(self, limit=1, bundles=[], role=None, tenant=None, format='json'):
self.limit = limit
self.bundles = bundles
self.role = role
self.tenant = tenant
self.format = format
def format_for_request(self):
formatted_string = '?'
num_params = 0
if self.limit:
formatted_string += 'limit=' + str(self.limit)
num_params += 1
if self.bundles:
if numParams >= 1:
formatted_string += '&'
formatted_string += 'bundle=' + ','.join(self.bundles)
if self.role:
if numParams >= 1:
formatted_string += '&'
formatted_string += 'role=' + self.role
if self.tenant:
if numParams >= 1:
formatted_string += '&'
formatted_string += 'tenant=' + self.tenant
if self.format:
if numParams >= 1:
formatted_string += '&'
formatted_string += 'format=' + self.format
return formattedString |
def decode_flag(value, alphabet):
# Construct inverse alphabet.
map_inv = [0]*len(alphabet)
for i in range(len(alphabet)):
map_inv[alphabet[i]] = i
# Apply.
result = bytearray()
for i in range(len(value)):
c = value[i]
if i % 2 == 1:
c -= 1
cc = map_inv[c]
result.append(cc)
return result
encoded_flag = b"UwHEpXTXskOHiHFHT9s:W:nHhQsH_tJXhQ8Pa8wm"
alphabet = bytes.fromhex("000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c432e2f614741385777597533633a3b3c3d3e3f40324d2d7b4b74314e7a6445624248726778556b765271346636795b5c5d5e7360304c394a6f58506e6d70537d6968656a564f5f46375435515a49447c6c7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff")
print(decode_flag(encoded_flag, alphabet).decode("utf-8")) | def decode_flag(value, alphabet):
map_inv = [0] * len(alphabet)
for i in range(len(alphabet)):
map_inv[alphabet[i]] = i
result = bytearray()
for i in range(len(value)):
c = value[i]
if i % 2 == 1:
c -= 1
cc = map_inv[c]
result.append(cc)
return result
encoded_flag = b'UwHEpXTXskOHiHFHT9s:W:nHhQsH_tJXhQ8Pa8wm'
alphabet = bytes.fromhex('000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c432e2f614741385777597533633a3b3c3d3e3f40324d2d7b4b74314e7a6445624248726778556b765271346636795b5c5d5e7360304c394a6f58506e6d70537d6968656a564f5f46375435515a49447c6c7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff')
print(decode_flag(encoded_flag, alphabet).decode('utf-8')) |
###
### Copyright (C) 2019-2022 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
subsampling = {
"Y800" : ("YUV400", 8),
"I420" : ("YUV420", 8),
"NV12" : ("YUV420", 8),
"YV12" : ("YUV420", 8),
"P010" : ("YUV420", 10),
"P012" : ("YUV420", 12),
"I010" : ("YUV420", 10),
"422H" : ("YUV422", 8),
"422V" : ("YUV422", 8),
"YUY2" : ("YUV422", 8),
"Y210" : ("YUV422", 10),
"Y212" : ("YUV422", 12),
"444P" : ("YUV444", 8),
"AYUV" : ("YUV444", 8),
"VUYA" : ("YUV444", 8),
"Y410" : ("YUV444", 10),
"Y412" : ("YUV444", 12),
}
def match_best_format(fmt, choices):
if fmt in choices:
return fmt
matches = set([k for k,v in subsampling.items() if v == subsampling[fmt]])
matches &= set(choices)
if len(matches) == 0:
return None
return list(matches)[0]
def get_bit_depth(fmt):
if fmt in ["BGRA", "BGRX", "ARGB"]:
return 8
return subsampling[fmt][1]
class FormatMapper:
def get_supported_format_map(self):
raise NotImplementedError
def get_supported_formats(self):
return set(self.get_supported_format_map().keys())
def map_format(self, format):
return self.get_supported_format_map().get(format, None)
def map_best_hw_format(self, format, hwformats):
return self.map_format(
match_best_format(
format, set(hwformats) & set(self.get_supported_formats())))
| subsampling = {'Y800': ('YUV400', 8), 'I420': ('YUV420', 8), 'NV12': ('YUV420', 8), 'YV12': ('YUV420', 8), 'P010': ('YUV420', 10), 'P012': ('YUV420', 12), 'I010': ('YUV420', 10), '422H': ('YUV422', 8), '422V': ('YUV422', 8), 'YUY2': ('YUV422', 8), 'Y210': ('YUV422', 10), 'Y212': ('YUV422', 12), '444P': ('YUV444', 8), 'AYUV': ('YUV444', 8), 'VUYA': ('YUV444', 8), 'Y410': ('YUV444', 10), 'Y412': ('YUV444', 12)}
def match_best_format(fmt, choices):
if fmt in choices:
return fmt
matches = set([k for (k, v) in subsampling.items() if v == subsampling[fmt]])
matches &= set(choices)
if len(matches) == 0:
return None
return list(matches)[0]
def get_bit_depth(fmt):
if fmt in ['BGRA', 'BGRX', 'ARGB']:
return 8
return subsampling[fmt][1]
class Formatmapper:
def get_supported_format_map(self):
raise NotImplementedError
def get_supported_formats(self):
return set(self.get_supported_format_map().keys())
def map_format(self, format):
return self.get_supported_format_map().get(format, None)
def map_best_hw_format(self, format, hwformats):
return self.map_format(match_best_format(format, set(hwformats) & set(self.get_supported_formats()))) |
class Matrix:
def __init__(self, matrix_string):
self.row_string = matrix_string.splitlines()
self.matrix = [[int(num) for num in row.split()] for row in self.row_string]
def row(self, index):
return self.matrix[index -1]
def column(self, index):
return [row[index -1] for row in self.matrix]
| class Matrix:
def __init__(self, matrix_string):
self.row_string = matrix_string.splitlines()
self.matrix = [[int(num) for num in row.split()] for row in self.row_string]
def row(self, index):
return self.matrix[index - 1]
def column(self, index):
return [row[index - 1] for row in self.matrix] |
# Leo colorizer control file for velocity mode.
# This file is in the public domain.
# Properties for velocity mode.
properties = {
"commentEnd": "*#",
"commentStart": "#*",
"lineComment": "##",
}
# Attributes dict for velocity_main ruleset.
velocity_main_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for velocity_velocity ruleset.
velocity_velocity_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for velocity_javascript ruleset.
velocity_javascript_attributes_dict = {
"default": "MARKUP",
"digit_re": "",
"escape": "",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "",
}
# Attributes dict for velocity_javascript2 ruleset.
velocity_javascript2_attributes_dict = {
"default": "MARKUP",
"digit_re": "(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for velocity_back_to_html ruleset.
velocity_back_to_html_attributes_dict = {
"default": "MARKUP",
"digit_re": "(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for velocity_css ruleset.
velocity_css_attributes_dict = {
"default": "MARKUP",
"digit_re": "(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "",
}
# Attributes dict for velocity_css2 ruleset.
velocity_css2_attributes_dict = {
"default": "MARKUP",
"digit_re": "[[:digit:]]+(pt|pc|in|mm|cm|em|ex|px|ms|s|%)",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "true",
"no_word_sep": "-_",
}
# Dictionary of attributes dictionaries for velocity mode.
attributesDictDict = {
"velocity_back_to_html": velocity_back_to_html_attributes_dict,
"velocity_css": velocity_css_attributes_dict,
"velocity_css2": velocity_css2_attributes_dict,
"velocity_javascript": velocity_javascript_attributes_dict,
"velocity_javascript2": velocity_javascript2_attributes_dict,
"velocity_main": velocity_main_attributes_dict,
"velocity_velocity": velocity_velocity_attributes_dict,
}
# Keywords dict for velocity_main ruleset.
velocity_main_keywords_dict = {}
# Keywords dict for velocity_velocity ruleset.
velocity_velocity_keywords_dict = {
"#else": "keyword1",
"#elseif": "keyword1",
"#end": "keyword1",
"#foreach": "keyword1",
"#if": "keyword1",
"#include": "keyword1",
"#macro": "keyword1",
"#parse": "keyword1",
"#set": "keyword1",
"#stop": "keyword1",
}
# Keywords dict for velocity_javascript ruleset.
velocity_javascript_keywords_dict = {}
# Keywords dict for velocity_javascript2 ruleset.
velocity_javascript2_keywords_dict = {}
# Keywords dict for velocity_back_to_html ruleset.
velocity_back_to_html_keywords_dict = {}
# Keywords dict for velocity_css ruleset.
velocity_css_keywords_dict = {}
# Keywords dict for velocity_css2 ruleset.
velocity_css2_keywords_dict = {}
# Dictionary of keywords dictionaries for velocity mode.
keywordsDictDict = {
"velocity_back_to_html": velocity_back_to_html_keywords_dict,
"velocity_css": velocity_css_keywords_dict,
"velocity_css2": velocity_css2_keywords_dict,
"velocity_javascript": velocity_javascript_keywords_dict,
"velocity_javascript2": velocity_javascript2_keywords_dict,
"velocity_main": velocity_main_keywords_dict,
"velocity_velocity": velocity_velocity_keywords_dict,
}
# Rules for velocity_main ruleset.
def velocity_rule0(colorer, s, i):
return colorer.match_span(s, i, kind="comment1", begin="<!--", end="-->",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule1(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<SCRIPT", end="</SCRIPT>",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="velocity::javascript",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule2(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<STYLE", end="</STYLE>",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="velocity::css",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule3(colorer, s, i):
return colorer.match_span(s, i, kind="keyword2", begin="<!", end=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="xml::dtd-tags",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule4(colorer, s, i):
return colorer.match_span(s, i, kind="markup", begin="<", end=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="html::tags",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule5(colorer, s, i):
return colorer.match_span(s, i, kind="literal2", begin="&", end=";",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=True)
# Rules dict for velocity_main ruleset.
rulesDict1 = {
"&": [velocity_rule5,],
"<": [velocity_rule0,velocity_rule1,velocity_rule2,velocity_rule3,velocity_rule4,],
}
# Rules for velocity_velocity ruleset.
def velocity_rule6(colorer, s, i):
return colorer.match_span(s, i, kind="comment2", begin="#*", end="*#",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule7(colorer, s, i):
return colorer.match_eol_span(s, i, kind="comment3", seq="##",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def velocity_rule8(colorer, s, i):
return colorer.match_span(s, i, kind="keyword3", begin="${", end="}",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def velocity_rule9(colorer, s, i):
return colorer.match_mark_following(s, i, kind="keyword3", pattern="$!",
at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=False)
def velocity_rule10(colorer, s, i):
return colorer.match_mark_following(s, i, kind="keyword3", pattern="$",
at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=False)
def velocity_rule11(colorer, s, i):
return colorer.match_keywords(s, i)
# Rules dict for velocity_velocity ruleset.
rulesDict2 = {
"#": [velocity_rule6,velocity_rule7,velocity_rule11,],
"$": [velocity_rule8,velocity_rule9,velocity_rule10,],
"0": [velocity_rule11,],
"1": [velocity_rule11,],
"2": [velocity_rule11,],
"3": [velocity_rule11,],
"4": [velocity_rule11,],
"5": [velocity_rule11,],
"6": [velocity_rule11,],
"7": [velocity_rule11,],
"8": [velocity_rule11,],
"9": [velocity_rule11,],
"@": [velocity_rule11,],
"A": [velocity_rule11,],
"B": [velocity_rule11,],
"C": [velocity_rule11,],
"D": [velocity_rule11,],
"E": [velocity_rule11,],
"F": [velocity_rule11,],
"G": [velocity_rule11,],
"H": [velocity_rule11,],
"I": [velocity_rule11,],
"J": [velocity_rule11,],
"K": [velocity_rule11,],
"L": [velocity_rule11,],
"M": [velocity_rule11,],
"N": [velocity_rule11,],
"O": [velocity_rule11,],
"P": [velocity_rule11,],
"Q": [velocity_rule11,],
"R": [velocity_rule11,],
"S": [velocity_rule11,],
"T": [velocity_rule11,],
"U": [velocity_rule11,],
"V": [velocity_rule11,],
"W": [velocity_rule11,],
"X": [velocity_rule11,],
"Y": [velocity_rule11,],
"Z": [velocity_rule11,],
"a": [velocity_rule11,],
"b": [velocity_rule11,],
"c": [velocity_rule11,],
"d": [velocity_rule11,],
"e": [velocity_rule11,],
"f": [velocity_rule11,],
"g": [velocity_rule11,],
"h": [velocity_rule11,],
"i": [velocity_rule11,],
"j": [velocity_rule11,],
"k": [velocity_rule11,],
"l": [velocity_rule11,],
"m": [velocity_rule11,],
"n": [velocity_rule11,],
"o": [velocity_rule11,],
"p": [velocity_rule11,],
"q": [velocity_rule11,],
"r": [velocity_rule11,],
"s": [velocity_rule11,],
"t": [velocity_rule11,],
"u": [velocity_rule11,],
"v": [velocity_rule11,],
"w": [velocity_rule11,],
"x": [velocity_rule11,],
"y": [velocity_rule11,],
"z": [velocity_rule11,],
}
# Rules for velocity_javascript ruleset.
def velocity_rule12(colorer, s, i):
return colorer.match_seq(s, i, kind="markup", seq=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="velocity::javascript2")
def velocity_rule13(colorer, s, i):
return colorer.match_seq(s, i, kind="markup", seq="SRC=",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="velocity::back_to_html")
# Rules dict for velocity_javascript ruleset.
rulesDict3 = {
">": [velocity_rule12,],
"S": [velocity_rule13,],
}
# Rules for velocity_javascript2 ruleset.
# Rules dict for velocity_javascript2 ruleset.
rulesDict4 = {}
# Rules for velocity_back_to_html ruleset.
def velocity_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind="markup", seq=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="velocity::main")
# Rules dict for velocity_back_to_html ruleset.
rulesDict5 = {
">": [velocity_rule14,],
}
# Rules for velocity_css ruleset.
def velocity_rule15(colorer, s, i):
return colorer.match_seq(s, i, kind="markup", seq=">",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="velocity::css2")
# Rules dict for velocity_css ruleset.
rulesDict6 = {
">": [velocity_rule15,],
}
# Rules for velocity_css2 ruleset.
# Rules dict for velocity_css2 ruleset.
rulesDict7 = {}
# x.rulesDictDict for velocity mode.
rulesDictDict = {
"velocity_back_to_html": rulesDict5,
"velocity_css": rulesDict6,
"velocity_css2": rulesDict7,
"velocity_javascript": rulesDict3,
"velocity_javascript2": rulesDict4,
"velocity_main": rulesDict1,
"velocity_velocity": rulesDict2,
}
# Import dict for velocity mode.
importDict = {
"velocity_css2": ["velocity_css2::velocity","css::main",],
"velocity_javascript2": ["velocity_javascript2::velocity","javascript::main",],
"velocity_main": ["velocity_main::velocity",],
}
| properties = {'commentEnd': '*#', 'commentStart': '#*', 'lineComment': '##'}
velocity_main_attributes_dict = {'default': 'null', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
velocity_velocity_attributes_dict = {'default': 'null', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
velocity_javascript_attributes_dict = {'default': 'MARKUP', 'digit_re': '', 'escape': '', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': ''}
velocity_javascript2_attributes_dict = {'default': 'MARKUP', 'digit_re': '(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
velocity_back_to_html_attributes_dict = {'default': 'MARKUP', 'digit_re': '(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
velocity_css_attributes_dict = {'default': 'MARKUP', 'digit_re': '(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': ''}
velocity_css2_attributes_dict = {'default': 'MARKUP', 'digit_re': '[[:digit:]]+(pt|pc|in|mm|cm|em|ex|px|ms|s|%)', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'true', 'no_word_sep': '-_'}
attributes_dict_dict = {'velocity_back_to_html': velocity_back_to_html_attributes_dict, 'velocity_css': velocity_css_attributes_dict, 'velocity_css2': velocity_css2_attributes_dict, 'velocity_javascript': velocity_javascript_attributes_dict, 'velocity_javascript2': velocity_javascript2_attributes_dict, 'velocity_main': velocity_main_attributes_dict, 'velocity_velocity': velocity_velocity_attributes_dict}
velocity_main_keywords_dict = {}
velocity_velocity_keywords_dict = {'#else': 'keyword1', '#elseif': 'keyword1', '#end': 'keyword1', '#foreach': 'keyword1', '#if': 'keyword1', '#include': 'keyword1', '#macro': 'keyword1', '#parse': 'keyword1', '#set': 'keyword1', '#stop': 'keyword1'}
velocity_javascript_keywords_dict = {}
velocity_javascript2_keywords_dict = {}
velocity_back_to_html_keywords_dict = {}
velocity_css_keywords_dict = {}
velocity_css2_keywords_dict = {}
keywords_dict_dict = {'velocity_back_to_html': velocity_back_to_html_keywords_dict, 'velocity_css': velocity_css_keywords_dict, 'velocity_css2': velocity_css2_keywords_dict, 'velocity_javascript': velocity_javascript_keywords_dict, 'velocity_javascript2': velocity_javascript2_keywords_dict, 'velocity_main': velocity_main_keywords_dict, 'velocity_velocity': velocity_velocity_keywords_dict}
def velocity_rule0(colorer, s, i):
return colorer.match_span(s, i, kind='comment1', begin='<!--', end='-->', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule1(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<SCRIPT', end='</SCRIPT>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::javascript', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule2(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<STYLE', end='</STYLE>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::css', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule3(colorer, s, i):
return colorer.match_span(s, i, kind='keyword2', begin='<!', end='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='xml::dtd-tags', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule4(colorer, s, i):
return colorer.match_span(s, i, kind='markup', begin='<', end='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='html::tags', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule5(colorer, s, i):
return colorer.match_span(s, i, kind='literal2', begin='&', end=';', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=True)
rules_dict1 = {'&': [velocity_rule5], '<': [velocity_rule0, velocity_rule1, velocity_rule2, velocity_rule3, velocity_rule4]}
def velocity_rule6(colorer, s, i):
return colorer.match_span(s, i, kind='comment2', begin='#*', end='*#', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def velocity_rule7(colorer, s, i):
return colorer.match_eol_span(s, i, kind='comment3', seq='##', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def velocity_rule8(colorer, s, i):
return colorer.match_span(s, i, kind='keyword3', begin='${', end='}', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def velocity_rule9(colorer, s, i):
return colorer.match_mark_following(s, i, kind='keyword3', pattern='$!', at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=False)
def velocity_rule10(colorer, s, i):
return colorer.match_mark_following(s, i, kind='keyword3', pattern='$', at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=False)
def velocity_rule11(colorer, s, i):
return colorer.match_keywords(s, i)
rules_dict2 = {'#': [velocity_rule6, velocity_rule7, velocity_rule11], '$': [velocity_rule8, velocity_rule9, velocity_rule10], '0': [velocity_rule11], '1': [velocity_rule11], '2': [velocity_rule11], '3': [velocity_rule11], '4': [velocity_rule11], '5': [velocity_rule11], '6': [velocity_rule11], '7': [velocity_rule11], '8': [velocity_rule11], '9': [velocity_rule11], '@': [velocity_rule11], 'A': [velocity_rule11], 'B': [velocity_rule11], 'C': [velocity_rule11], 'D': [velocity_rule11], 'E': [velocity_rule11], 'F': [velocity_rule11], 'G': [velocity_rule11], 'H': [velocity_rule11], 'I': [velocity_rule11], 'J': [velocity_rule11], 'K': [velocity_rule11], 'L': [velocity_rule11], 'M': [velocity_rule11], 'N': [velocity_rule11], 'O': [velocity_rule11], 'P': [velocity_rule11], 'Q': [velocity_rule11], 'R': [velocity_rule11], 'S': [velocity_rule11], 'T': [velocity_rule11], 'U': [velocity_rule11], 'V': [velocity_rule11], 'W': [velocity_rule11], 'X': [velocity_rule11], 'Y': [velocity_rule11], 'Z': [velocity_rule11], 'a': [velocity_rule11], 'b': [velocity_rule11], 'c': [velocity_rule11], 'd': [velocity_rule11], 'e': [velocity_rule11], 'f': [velocity_rule11], 'g': [velocity_rule11], 'h': [velocity_rule11], 'i': [velocity_rule11], 'j': [velocity_rule11], 'k': [velocity_rule11], 'l': [velocity_rule11], 'm': [velocity_rule11], 'n': [velocity_rule11], 'o': [velocity_rule11], 'p': [velocity_rule11], 'q': [velocity_rule11], 'r': [velocity_rule11], 's': [velocity_rule11], 't': [velocity_rule11], 'u': [velocity_rule11], 'v': [velocity_rule11], 'w': [velocity_rule11], 'x': [velocity_rule11], 'y': [velocity_rule11], 'z': [velocity_rule11]}
def velocity_rule12(colorer, s, i):
return colorer.match_seq(s, i, kind='markup', seq='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::javascript2')
def velocity_rule13(colorer, s, i):
return colorer.match_seq(s, i, kind='markup', seq='SRC=', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::back_to_html')
rules_dict3 = {'>': [velocity_rule12], 'S': [velocity_rule13]}
rules_dict4 = {}
def velocity_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind='markup', seq='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::main')
rules_dict5 = {'>': [velocity_rule14]}
def velocity_rule15(colorer, s, i):
return colorer.match_seq(s, i, kind='markup', seq='>', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='velocity::css2')
rules_dict6 = {'>': [velocity_rule15]}
rules_dict7 = {}
rules_dict_dict = {'velocity_back_to_html': rulesDict5, 'velocity_css': rulesDict6, 'velocity_css2': rulesDict7, 'velocity_javascript': rulesDict3, 'velocity_javascript2': rulesDict4, 'velocity_main': rulesDict1, 'velocity_velocity': rulesDict2}
import_dict = {'velocity_css2': ['velocity_css2::velocity', 'css::main'], 'velocity_javascript2': ['velocity_javascript2::velocity', 'javascript::main'], 'velocity_main': ['velocity_main::velocity']} |
num_waves = 4
num_eqn = 5
num_aux = 5
# Conserved quantities
sigma_11 = 0
sigma_22 = 1
sigma_12 = 2
u = 3
v = 4
# Auxiliary variables
density = 0
lamda = 1
mu = 2
cp = 3
cs = 4
| num_waves = 4
num_eqn = 5
num_aux = 5
sigma_11 = 0
sigma_22 = 1
sigma_12 = 2
u = 3
v = 4
density = 0
lamda = 1
mu = 2
cp = 3
cs = 4 |
# encoding:utf-8
class Word:
def __init__(self, id, form, label):
self.id = id
self.org_form = form
self.form = form.lower()
self.label = label
def __str__(self):
values = [str(self.id), self.org_form, self.label]
return '\t'.join(values)
class Sentence:
def __init__(self, words, bert_token=None, lang_id=None):
self.words = list(words)
self.length = len(self.words)
self.key_head = -1
self.key_start = -1
self.key_end = -1
self.key_label = ""
self.lang_id = lang_id
if bert_token is not None:
sentence_list = [word.org_form for word in self.words]
self.list_bert_indice, self.list_segments_id, self.list_piece_id = bert_token.bert_ids(sentence_list)
for idx in range(self.length):
if words[idx].label.endswith("-*"):
self.key_head = idx
self.key_label = words[idx].label[2:-2]
break
for idx in range(self.length):
cur_label = words[idx].label
if cur_label.startswith("B-"+self.key_label) or cur_label.startswith("S-"+self.key_label):
self.key_start = idx
if cur_label.startswith("E-"+self.key_label) or cur_label.startswith("S-"+self.key_label):
self.key_end = idx
def label_to_entity(labels):
length = len(labels)
entities = set()
idx = 0
while idx < length:
if labels[idx] == "O":
idx = idx + 1
elif labels[idx].startswith("B-"):
label = labels[idx][2:]
predict = False
if label.endswith("-*"):
label = label[0:-2]
predict = True
next_idx = idx + 1
end_idx = idx
while next_idx < length:
if labels[next_idx] == "O" or labels[next_idx].startswith("B-") \
or labels[next_idx].startswith("S-"):
break
next_label = labels[next_idx][2:]
if next_label.endswith("-*"):
next_label = next_label[0:-2]
predict = True
if next_label != label:
break
end_idx = next_idx
next_idx = next_idx + 1
if end_idx == idx:
new_label = "S-" + labels[idx][2:]
print("Change %s to %s" % (labels[idx], new_label))
labels[idx] = new_label
if not predict:
entities.add("[%d,%d]%s"%(idx, end_idx, label))
idx = end_idx + 1
elif labels[idx].startswith("S-"):
label = labels[idx][2:]
predict = False
if label.endswith("-*"):
label = label[0:-2]
predict = True
if not predict:
entities.add("[%d,%d]%s"%(idx, idx, label))
idx = idx + 1
elif labels[idx].startswith("M-"):
new_label = "B-" + labels[idx][2:]
print("Change %s to %s" % (labels[idx], new_label))
labels[idx] = new_label
else:
new_label = "S-" + labels[idx][2:]
print("Change %s to %s" % (labels[idx], new_label))
labels[idx] = new_label
return entities
def normalize_labels(labels):
length = len(labels)
change = 0
normed_labels = []
for idx in range(length):
normed_labels.append(labels[idx])
idx = 0
while idx < length:
if labels[idx] == "O":
idx = idx + 1
elif labels[idx].startswith("B-"):
label = labels[idx][2:]
if label.endswith("-*"):
label = label[0:-2]
next_idx = idx + 1
end_idx = idx
while next_idx < length:
if labels[next_idx] == "O" or labels[next_idx].startswith("B-") \
or labels[next_idx].startswith("S-"):
break
next_label = labels[next_idx][2:]
if next_label.endswith("-*"):
next_label = next_label[0:-2]
if next_label != label:
break
end_idx = next_idx
next_idx = next_idx + 1
if end_idx == idx:
new_label = "S-" + labels[idx][2:]
#print("Change %s to %s" % (labels[idx], new_label))
labels[idx] = new_label
normed_labels[idx] = new_label
change = change + 1
idx = end_idx + 1
elif labels[idx].startswith("S-"):
idx = idx + 1
elif labels[idx].startswith("M-"):
new_label = "B-" + labels[idx][2:]
#print("Change %s to %s" % (labels[idx], new_label))
normed_labels[idx] = new_label
labels[idx] = new_label
change = change + 1
else:
new_label = "S-" + labels[idx][2:]
#print("Change %s to %s" % (labels[idx], new_label))
normed_labels[idx] = new_label
labels[idx] = new_label
change = change + 1
return normed_labels, change
def getListFromStr(entity):
entity_del_start = ''.join(list(entity)[1:])
# entity_del_start: '2,3]TARGET'
new_entity = entity_del_start.split(']')
start, end = new_entity[0].split(',')
start, end = int(start), int(end)
# start: 2 end: 3
label = new_entity[1]
# label: 'TARGET'
return [start, end, label]
def evalSRLExact(gold, predict):
glength, plength = gold.length, predict.length
if glength != plength:
raise Exception('gold length does not match predict length.')
goldlabels, predictlabels = [], []
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
# class set{'[2,4]TARGET', '[0,0]AGENT'}
gold_entities = label_to_entity(goldlabels)
# class set{'[2,3]TARGET', '[0,1]AGENT', '[2,4]ad>'}
predict_entities = label_to_entity(predictlabels)
gold_entity_num, predict_entity_num, correct_entity_num = len(gold_entities), len(predict_entities), 0
gold_agent_entity_num, predict_agent_entity_num, correct_agent_entity_num = 0, 0, 0
gold_target_entity_num, predict_target_entity_num, correct_target_entity_num = 0, 0, 0
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for one_entity in gold_entities:
if one_entity in predict_entities:
correct_entity_num = correct_entity_num + 1
if one_entity.endswith('AGENT'):
correct_agent_entity_num += 1
elif one_entity.endswith('TARGET'):
correct_target_entity_num += 1
return gold_entity_num, predict_entity_num, correct_entity_num, \
gold_agent_entity_num, predict_agent_entity_num, correct_agent_entity_num, \
gold_target_entity_num, predict_target_entity_num, correct_target_entity_num
def jiaoji(a1, a2, b1, b2):
if a1 == b1 and a2 == b2:
return True
else:
list1 = list(range(a1, a2+1))
list2 = list(range(b1, b2+1))
if len(set(list1).intersection(set(list2))) != 0:
return True
return False
def contain_len(a1, a2, b1, b2):
return len(set(list(range(a1, a2 + 1))).intersection(set(list(range(b1, b2 + 1)))))
def evalSRLBinary(gold, predict):
glength, plength = gold.length, predict.length
if glength != plength:
raise Exception('gold length does not match predict length.')
goldlabels, predictlabels = [], []
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
# class set{'[2,4]TARGET', '[0,0]AGENT'}
gold_entities = label_to_entity(goldlabels)
# class set{'[2,3]TARGET', '[0,1]AGENT', '[2,4]ad>'}
predict_entities = label_to_entity(predictlabels)
gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num = len(gold_entities), len(
predict_entities), 0, 0
gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num = 0, 0, 0, 0
gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num = 0, 0, 0, 0
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for gold_entity in gold_entities:
for predict_entity in predict_entities:
gold_start, gold_end, gold_label = getListFromStr(gold_entity)
predict_start, predict_end, predict_label = getListFromStr(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
gold_correct_entity_num += 1
if gold_label == 'AGENT':
gold_correct_agent_entity_num += 1
elif gold_label == 'TARGET':
gold_correct_target_entity_num += 1
break
for predict_entity in predict_entities:
for gold_entity in gold_entities:
gold_start, gold_end, gold_label = getListFromStr(gold_entity)
predict_start, predict_end, predict_label = getListFromStr(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
predict_correct_entity_num += 1
if gold_label == 'AGENT':
predict_correct_agent_entity_num += 1
elif gold_label == 'TARGET':
predict_correct_target_entity_num += 1
break
return gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num, \
gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num, \
gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num
def evalSRLProportional(gold, predict):
glength, plength = gold.length, predict.length
if glength != plength:
raise Exception('gold length does not match predict length.')
goldlabels, predictlabels = [], []
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
# class set{'[2,4]TARGET', '[0,0]AGENT'}
gold_entities = label_to_entity(goldlabels)
# class set{'[2,3]TARGET', '[0,1]AGENT', '[2,4]ad>'}
predict_entities = label_to_entity(predictlabels)
gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num = len(gold_entities), len(
predict_entities), 0, 0
gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num = 0, 0, 0, 0
gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num = 0, 0, 0, 0
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for gold_entity in gold_entities:
for predict_entity in predict_entities:
gold_start, gold_end, gold_label = getListFromStr(gold_entity)
predict_start, predict_end, predict_label = getListFromStr(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
correct_len = contain_len(gold_start, gold_end, predict_start, predict_end)
gold_correct_rate = (correct_len / (gold_end - gold_start + 1))
gold_correct_entity_num += gold_correct_rate
if gold_label == 'AGENT':
gold_correct_agent_entity_num += gold_correct_rate
elif gold_label == 'TARGET':
gold_correct_target_entity_num += gold_correct_rate
break
for predict_entity in predict_entities:
for gold_entity in gold_entities:
gold_start, gold_end, gold_label = getListFromStr(gold_entity)
predict_start, predict_end, predict_label = getListFromStr(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
correct_len = contain_len(gold_start, gold_end, predict_start, predict_end)
predict_correct_rate = (correct_len / (predict_end - predict_start + 1))
predict_correct_entity_num += predict_correct_rate
if gold_label == 'AGENT':
predict_correct_agent_entity_num += predict_correct_rate
elif gold_label == 'TARGET':
predict_correct_target_entity_num += predict_correct_rate
break
return gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num, \
gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num, \
gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num
def readSRL(file, bert_token=None, lang_id=None):
min_count = 1
total = 0
words = []
for line in file:
tok = line.strip().split()
if not tok or line.strip() == '' or line.strip().startswith('#'):
if len(words) > min_count:
total += 1
yield Sentence(words, bert_token, lang_id)
words = []
elif len(tok) == 3:
try:
words.append(Word(int(tok[0]), tok[1], tok[2]))
except Exception:
pass
else:
pass
if len(words) > min_count:
total += 1
yield Sentence(words, bert_token, lang_id)
print("Total num: ", total)
def writeSRL(filename, sentences):
with open(filename, 'w') as file:
for sentence in sentences:
for entry in sentence.words:
file.write(str(entry) + '\n')
file.write('\n')
def printSRL(output, sentence):
for entry in sentence.words:
output.write(str(entry) + '\n')
output.write('\n') | class Word:
def __init__(self, id, form, label):
self.id = id
self.org_form = form
self.form = form.lower()
self.label = label
def __str__(self):
values = [str(self.id), self.org_form, self.label]
return '\t'.join(values)
class Sentence:
def __init__(self, words, bert_token=None, lang_id=None):
self.words = list(words)
self.length = len(self.words)
self.key_head = -1
self.key_start = -1
self.key_end = -1
self.key_label = ''
self.lang_id = lang_id
if bert_token is not None:
sentence_list = [word.org_form for word in self.words]
(self.list_bert_indice, self.list_segments_id, self.list_piece_id) = bert_token.bert_ids(sentence_list)
for idx in range(self.length):
if words[idx].label.endswith('-*'):
self.key_head = idx
self.key_label = words[idx].label[2:-2]
break
for idx in range(self.length):
cur_label = words[idx].label
if cur_label.startswith('B-' + self.key_label) or cur_label.startswith('S-' + self.key_label):
self.key_start = idx
if cur_label.startswith('E-' + self.key_label) or cur_label.startswith('S-' + self.key_label):
self.key_end = idx
def label_to_entity(labels):
length = len(labels)
entities = set()
idx = 0
while idx < length:
if labels[idx] == 'O':
idx = idx + 1
elif labels[idx].startswith('B-'):
label = labels[idx][2:]
predict = False
if label.endswith('-*'):
label = label[0:-2]
predict = True
next_idx = idx + 1
end_idx = idx
while next_idx < length:
if labels[next_idx] == 'O' or labels[next_idx].startswith('B-') or labels[next_idx].startswith('S-'):
break
next_label = labels[next_idx][2:]
if next_label.endswith('-*'):
next_label = next_label[0:-2]
predict = True
if next_label != label:
break
end_idx = next_idx
next_idx = next_idx + 1
if end_idx == idx:
new_label = 'S-' + labels[idx][2:]
print('Change %s to %s' % (labels[idx], new_label))
labels[idx] = new_label
if not predict:
entities.add('[%d,%d]%s' % (idx, end_idx, label))
idx = end_idx + 1
elif labels[idx].startswith('S-'):
label = labels[idx][2:]
predict = False
if label.endswith('-*'):
label = label[0:-2]
predict = True
if not predict:
entities.add('[%d,%d]%s' % (idx, idx, label))
idx = idx + 1
elif labels[idx].startswith('M-'):
new_label = 'B-' + labels[idx][2:]
print('Change %s to %s' % (labels[idx], new_label))
labels[idx] = new_label
else:
new_label = 'S-' + labels[idx][2:]
print('Change %s to %s' % (labels[idx], new_label))
labels[idx] = new_label
return entities
def normalize_labels(labels):
length = len(labels)
change = 0
normed_labels = []
for idx in range(length):
normed_labels.append(labels[idx])
idx = 0
while idx < length:
if labels[idx] == 'O':
idx = idx + 1
elif labels[idx].startswith('B-'):
label = labels[idx][2:]
if label.endswith('-*'):
label = label[0:-2]
next_idx = idx + 1
end_idx = idx
while next_idx < length:
if labels[next_idx] == 'O' or labels[next_idx].startswith('B-') or labels[next_idx].startswith('S-'):
break
next_label = labels[next_idx][2:]
if next_label.endswith('-*'):
next_label = next_label[0:-2]
if next_label != label:
break
end_idx = next_idx
next_idx = next_idx + 1
if end_idx == idx:
new_label = 'S-' + labels[idx][2:]
labels[idx] = new_label
normed_labels[idx] = new_label
change = change + 1
idx = end_idx + 1
elif labels[idx].startswith('S-'):
idx = idx + 1
elif labels[idx].startswith('M-'):
new_label = 'B-' + labels[idx][2:]
normed_labels[idx] = new_label
labels[idx] = new_label
change = change + 1
else:
new_label = 'S-' + labels[idx][2:]
normed_labels[idx] = new_label
labels[idx] = new_label
change = change + 1
return (normed_labels, change)
def get_list_from_str(entity):
entity_del_start = ''.join(list(entity)[1:])
new_entity = entity_del_start.split(']')
(start, end) = new_entity[0].split(',')
(start, end) = (int(start), int(end))
label = new_entity[1]
return [start, end, label]
def eval_srl_exact(gold, predict):
(glength, plength) = (gold.length, predict.length)
if glength != plength:
raise exception('gold length does not match predict length.')
(goldlabels, predictlabels) = ([], [])
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
gold_entities = label_to_entity(goldlabels)
predict_entities = label_to_entity(predictlabels)
(gold_entity_num, predict_entity_num, correct_entity_num) = (len(gold_entities), len(predict_entities), 0)
(gold_agent_entity_num, predict_agent_entity_num, correct_agent_entity_num) = (0, 0, 0)
(gold_target_entity_num, predict_target_entity_num, correct_target_entity_num) = (0, 0, 0)
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for one_entity in gold_entities:
if one_entity in predict_entities:
correct_entity_num = correct_entity_num + 1
if one_entity.endswith('AGENT'):
correct_agent_entity_num += 1
elif one_entity.endswith('TARGET'):
correct_target_entity_num += 1
return (gold_entity_num, predict_entity_num, correct_entity_num, gold_agent_entity_num, predict_agent_entity_num, correct_agent_entity_num, gold_target_entity_num, predict_target_entity_num, correct_target_entity_num)
def jiaoji(a1, a2, b1, b2):
if a1 == b1 and a2 == b2:
return True
else:
list1 = list(range(a1, a2 + 1))
list2 = list(range(b1, b2 + 1))
if len(set(list1).intersection(set(list2))) != 0:
return True
return False
def contain_len(a1, a2, b1, b2):
return len(set(list(range(a1, a2 + 1))).intersection(set(list(range(b1, b2 + 1)))))
def eval_srl_binary(gold, predict):
(glength, plength) = (gold.length, predict.length)
if glength != plength:
raise exception('gold length does not match predict length.')
(goldlabels, predictlabels) = ([], [])
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
gold_entities = label_to_entity(goldlabels)
predict_entities = label_to_entity(predictlabels)
(gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num) = (len(gold_entities), len(predict_entities), 0, 0)
(gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num) = (0, 0, 0, 0)
(gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num) = (0, 0, 0, 0)
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for gold_entity in gold_entities:
for predict_entity in predict_entities:
(gold_start, gold_end, gold_label) = get_list_from_str(gold_entity)
(predict_start, predict_end, predict_label) = get_list_from_str(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
gold_correct_entity_num += 1
if gold_label == 'AGENT':
gold_correct_agent_entity_num += 1
elif gold_label == 'TARGET':
gold_correct_target_entity_num += 1
break
for predict_entity in predict_entities:
for gold_entity in gold_entities:
(gold_start, gold_end, gold_label) = get_list_from_str(gold_entity)
(predict_start, predict_end, predict_label) = get_list_from_str(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
predict_correct_entity_num += 1
if gold_label == 'AGENT':
predict_correct_agent_entity_num += 1
elif gold_label == 'TARGET':
predict_correct_target_entity_num += 1
break
return (gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num, gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num, gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num)
def eval_srl_proportional(gold, predict):
(glength, plength) = (gold.length, predict.length)
if glength != plength:
raise exception('gold length does not match predict length.')
(goldlabels, predictlabels) = ([], [])
for idx in range(glength):
goldlabels.append(gold.words[idx].label)
predictlabels.append(predict.words[idx].label)
gold_entities = label_to_entity(goldlabels)
predict_entities = label_to_entity(predictlabels)
(gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num) = (len(gold_entities), len(predict_entities), 0, 0)
(gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num) = (0, 0, 0, 0)
(gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num) = (0, 0, 0, 0)
for entity in gold_entities:
if entity.endswith('AGENT'):
gold_agent_entity_num += 1
elif entity.endswith('TARGET'):
gold_target_entity_num += 1
for entity in predict_entities:
if entity.endswith('AGENT'):
predict_agent_entity_num += 1
elif entity.endswith('TARGET'):
predict_target_entity_num += 1
for gold_entity in gold_entities:
for predict_entity in predict_entities:
(gold_start, gold_end, gold_label) = get_list_from_str(gold_entity)
(predict_start, predict_end, predict_label) = get_list_from_str(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
correct_len = contain_len(gold_start, gold_end, predict_start, predict_end)
gold_correct_rate = correct_len / (gold_end - gold_start + 1)
gold_correct_entity_num += gold_correct_rate
if gold_label == 'AGENT':
gold_correct_agent_entity_num += gold_correct_rate
elif gold_label == 'TARGET':
gold_correct_target_entity_num += gold_correct_rate
break
for predict_entity in predict_entities:
for gold_entity in gold_entities:
(gold_start, gold_end, gold_label) = get_list_from_str(gold_entity)
(predict_start, predict_end, predict_label) = get_list_from_str(predict_entity)
if gold_label == predict_label and jiaoji(gold_start, gold_end, predict_start, predict_end):
correct_len = contain_len(gold_start, gold_end, predict_start, predict_end)
predict_correct_rate = correct_len / (predict_end - predict_start + 1)
predict_correct_entity_num += predict_correct_rate
if gold_label == 'AGENT':
predict_correct_agent_entity_num += predict_correct_rate
elif gold_label == 'TARGET':
predict_correct_target_entity_num += predict_correct_rate
break
return (gold_entity_num, predict_entity_num, gold_correct_entity_num, predict_correct_entity_num, gold_agent_entity_num, predict_agent_entity_num, gold_correct_agent_entity_num, predict_correct_agent_entity_num, gold_target_entity_num, predict_target_entity_num, gold_correct_target_entity_num, predict_correct_target_entity_num)
def read_srl(file, bert_token=None, lang_id=None):
min_count = 1
total = 0
words = []
for line in file:
tok = line.strip().split()
if not tok or line.strip() == '' or line.strip().startswith('#'):
if len(words) > min_count:
total += 1
yield sentence(words, bert_token, lang_id)
words = []
elif len(tok) == 3:
try:
words.append(word(int(tok[0]), tok[1], tok[2]))
except Exception:
pass
else:
pass
if len(words) > min_count:
total += 1
yield sentence(words, bert_token, lang_id)
print('Total num: ', total)
def write_srl(filename, sentences):
with open(filename, 'w') as file:
for sentence in sentences:
for entry in sentence.words:
file.write(str(entry) + '\n')
file.write('\n')
def print_srl(output, sentence):
for entry in sentence.words:
output.write(str(entry) + '\n')
output.write('\n') |
def rsum(any_list):
'''(list of int) -> int
REQ: Length of the list must be greater than 0
This function will add up all the integers in the given list of integers
>>>rsum([9,1000,-1000,57,78,0])
144
>>>rsum([1])
1
'''
# Base case for one element
if len(any_list) == 1:
# Return that integer
return any_list[0]
# Otherwise keep breaking the list and adding the previous number
else:
return any_list[0] + rsum(any_list[1:])
def rmax(any_list):
'''(list of int) -> int
REQ: Length of the list must be greater than 0
This function will find the greatest integer in the given list
>>>rmax([9,1000,-1000,57,78,0])
1000
>>>rmax([180])
180
'''
# Base case for one element
if len(any_list) == 1:
# That is the maximum integer
return any_list[0]
# Otherwise keep breaking the list using same function
else:
result = rmax(any_list[1:])
# If the result is greater then return it
if result > any_list[0]:
return result
# Else return the previous integer
else:
return any_list[0]
def second_smallest(L):
'''(list of int) -> int
REQ: Length of the list must be greater than 1
This function will find the second smallest integer in the given list
>>>second_smallest([[9,1000],[0],[],[[1,2,3],-1000]])
0
>>>second_smallest([[1],[[1,1],[1]]])
1
>>>second_smallest([[],[[2],9,8,8]])
8
'''
# Get the tuple contaning smallest and second smallest integers
result = helper_second_min(L)
# Return the second smallest integer
return result[1]
def sum_max_min(L):
'''(list of int) -> int
REQ: Length of the list must be greater than 0
This function will add the lowest and highest integers and output the sum
in the given list
>>>sum_max_min([[9,1000],[0],[],[[1,2,3],-1000]])
0
>>>sum_max_min([[1],[[1,1],[1]]])
2
>>>sum_max_min([[[[[10]]]]])
20
'''
# Get the tuple containing the smallest and the largest integers
result = helper_max_min(L)
# Return the sum of those integers
return result[0] + result[1]
# Helper Functions
def helper_second_min(L):
''' (list) -> tuple
REQ: Length of the list must be greater than 1
This function will take any given list and it will return the smallest and
the second smallest integers in the list
'''
# Base Case: If there are only two integers to compare
if len(L) == 2:
# Then the larger integer is second smallest and the other is the
# smallest
if L[0] < L[1]:
smallest = L[0]
ssmallest = L[1]
return (smallest, ssmallest)
else:
smallest = L[1]
ssmallest = L[0]
return (smallest, ssmallest)
# Else recursivley call the function again until it has len(L) == 2
else:
result = helper_second_min(L[1:])
# If the smallest number in tuple is greater than the next integer
if result[0] > L[0]:
# If the second smallest integer in the tuple is greater
if result[1] > L[0]:
# Then update the smallest integer
(smallest, ssmallest) = (L[0], result[0])
# Otherwise update the second smallest integer
else:
(smallest, ssmallest) = (L[0], result[1])
# If the second smallest number in tuple is greater than the next
# integer
elif result[1] > L[0]:
# If the smallest integer is greater than the next integer
if result[0] > L[0]:
# Then update the second smallest integer
(smallest, ssmallest) = (result[1], L[0])
# Otherwise update the smallest integer
else:
(smallest, ssmallest) = (result[0], L[0])
# If the integer found is greater than both our integers in the tuple
# then move on to the next integer in the list and do not update
else:
(smallest, ssmallest) = (result[0], result[1])
# Return the tuple of the smallest and the second smallest integers
return (smallest, ssmallest)
def helper_max_min(L):
'''(list) -> tuple
REQ: Length of the list must be greater than 0
This function will take in any given list and return the tuple of the
maximum and the minimum integers
'''
# Base Case: If there is only one integer in the list
if len(L) == 1:
# Then the integer is the max and the min of the list
maximum = minimum = L[0]
return (maximum, minimum)
# Else recursively call the function again
else:
result = helper_max_min(L[1:])
# If the maximum integer is greater than the next integer than don't
# update
if result[0] > L[0]:
(maximum, minimum) = (result[0], result[1])
# Otherwise update the maximum integer
else:
(maximum, minimum) = (L[0], result[1])
# If the minimum integer is lower then the next integer than don't
# update
if result[1] < L[0]:
(maximum, minimum) = (maximum, result[1])
# Otherwise don't update the minimum integer
else:
(maximum, minimum) = (maximum, L[0])
# Return the tuple of the maximum and the minimum integers
return (maximum, minimum)
# HOW TO SIMPLIFY ANY TYPE OF LIST OF INTEGERS
def flatten_list(L):
''' (list) -> list
This function will take a nested list and flatten it out into a single
list
>>>flatten_list([[1,2,3],[7],[[9,87,-1]]])
[9, 87, -1, 1, 2, 3, 7]
>>>flatten_list([[[[[]]]]])
[]
>>>flatten_list([100,99,98])
[100, 99, 98]
'''
# Call the helper function to check whether the list is nested is not
single_list = multiple_lists(L)
# If its not nested then return the original list
if(single_list):
return L
# Otherwise we have a nested list
else:
# If list of list is found then recursively call the same function on
# the rest of the list and removing the first element and adding it in
# the base level at the beginning
if(isinstance(L[0], list) and L[0] != []):
return flatten_list(L[0] + L[1:])
# If list of integers is found then recursively call the small function
# on the rest of the list and removing the first element and adding
# it in the end at the base level
elif(isinstance(L[0], int) and len(L) > 1):
return flatten_list(L[1:] + [L[0]])
# If list of empty list is found then just recurse on the rest of the
# list
elif(L[0] == [] and len(L) > 1):
return flatten_list(L[1:])
# If an empty list is found then we don't require that so delete it
elif(L[0] == []):
del L[0]
return flatten_list(L)
def multiple_lists(L):
'''(list) -> bool
This function will check whether the list is nested or not. It will return
True if and only if the list is not nested
>>>multiple_lists([1,2,3,[4]])
False
>>>multiple_lists([1,2,3])
True
'''
# Loop through each element in the given list
for elements in L:
# Check to see if the type is a list and return False if nested list
# is found
if(isinstance(elements, list)):
return False
# Otherwise return True
return True | def rsum(any_list):
"""(list of int) -> int
REQ: Length of the list must be greater than 0
This function will add up all the integers in the given list of integers
>>>rsum([9,1000,-1000,57,78,0])
144
>>>rsum([1])
1
"""
if len(any_list) == 1:
return any_list[0]
else:
return any_list[0] + rsum(any_list[1:])
def rmax(any_list):
"""(list of int) -> int
REQ: Length of the list must be greater than 0
This function will find the greatest integer in the given list
>>>rmax([9,1000,-1000,57,78,0])
1000
>>>rmax([180])
180
"""
if len(any_list) == 1:
return any_list[0]
else:
result = rmax(any_list[1:])
if result > any_list[0]:
return result
else:
return any_list[0]
def second_smallest(L):
"""(list of int) -> int
REQ: Length of the list must be greater than 1
This function will find the second smallest integer in the given list
>>>second_smallest([[9,1000],[0],[],[[1,2,3],-1000]])
0
>>>second_smallest([[1],[[1,1],[1]]])
1
>>>second_smallest([[],[[2],9,8,8]])
8
"""
result = helper_second_min(L)
return result[1]
def sum_max_min(L):
"""(list of int) -> int
REQ: Length of the list must be greater than 0
This function will add the lowest and highest integers and output the sum
in the given list
>>>sum_max_min([[9,1000],[0],[],[[1,2,3],-1000]])
0
>>>sum_max_min([[1],[[1,1],[1]]])
2
>>>sum_max_min([[[[[10]]]]])
20
"""
result = helper_max_min(L)
return result[0] + result[1]
def helper_second_min(L):
""" (list) -> tuple
REQ: Length of the list must be greater than 1
This function will take any given list and it will return the smallest and
the second smallest integers in the list
"""
if len(L) == 2:
if L[0] < L[1]:
smallest = L[0]
ssmallest = L[1]
return (smallest, ssmallest)
else:
smallest = L[1]
ssmallest = L[0]
return (smallest, ssmallest)
else:
result = helper_second_min(L[1:])
if result[0] > L[0]:
if result[1] > L[0]:
(smallest, ssmallest) = (L[0], result[0])
else:
(smallest, ssmallest) = (L[0], result[1])
elif result[1] > L[0]:
if result[0] > L[0]:
(smallest, ssmallest) = (result[1], L[0])
else:
(smallest, ssmallest) = (result[0], L[0])
else:
(smallest, ssmallest) = (result[0], result[1])
return (smallest, ssmallest)
def helper_max_min(L):
"""(list) -> tuple
REQ: Length of the list must be greater than 0
This function will take in any given list and return the tuple of the
maximum and the minimum integers
"""
if len(L) == 1:
maximum = minimum = L[0]
return (maximum, minimum)
else:
result = helper_max_min(L[1:])
if result[0] > L[0]:
(maximum, minimum) = (result[0], result[1])
else:
(maximum, minimum) = (L[0], result[1])
if result[1] < L[0]:
(maximum, minimum) = (maximum, result[1])
else:
(maximum, minimum) = (maximum, L[0])
return (maximum, minimum)
def flatten_list(L):
""" (list) -> list
This function will take a nested list and flatten it out into a single
list
>>>flatten_list([[1,2,3],[7],[[9,87,-1]]])
[9, 87, -1, 1, 2, 3, 7]
>>>flatten_list([[[[[]]]]])
[]
>>>flatten_list([100,99,98])
[100, 99, 98]
"""
single_list = multiple_lists(L)
if single_list:
return L
elif isinstance(L[0], list) and L[0] != []:
return flatten_list(L[0] + L[1:])
elif isinstance(L[0], int) and len(L) > 1:
return flatten_list(L[1:] + [L[0]])
elif L[0] == [] and len(L) > 1:
return flatten_list(L[1:])
elif L[0] == []:
del L[0]
return flatten_list(L)
def multiple_lists(L):
"""(list) -> bool
This function will check whether the list is nested or not. It will return
True if and only if the list is not nested
>>>multiple_lists([1,2,3,[4]])
False
>>>multiple_lists([1,2,3])
True
"""
for elements in L:
if isinstance(elements, list):
return False
return True |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of Androwarn.
#
# Copyright (C) 2012, 2019, Thomas Debize <tdebize at mail.com>
# All rights reserved.
#
# Androwarn is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Androwarn is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Androwarn. If not, see <http://www.gnu.org/licenses/>.
# This file maps the integer values with the constant names for several android classes
MediaRecorder_AudioSource = {
0x0: 'DEFAULT',
0x1: 'MIC',
0x2: 'VOICE_UPLINK',
0x3: 'VOICE_DOWNLINK',
0x4: 'VOICE_CALL',
0x5: 'CAMCORDER',
0x6: 'VOICE_RECOGNITION',
0x7: 'VOICE_COMMUNICATION',
0x8: 'REMOTE_SUBMIX',
0x9: 'UNPROCESSED'
}
MediaRecorder_VideoSource = {
0x0: 'DEFAULT',
0x1: 'CAMERA',
0x2: 'SURFACE'
}
PackageManager_PackageInfo = {
0x1: 'GET_ACTIVITIES',
0x4000: 'GET_CONFIGURATIONS',
0x200: 'MATCH_DISABLED_COMPONENTS',
0x100: 'GET_GIDS',
0x10: 'GET_INSTRUMENTATION',
0x20: 'GET_INTENT_FILTERS',
0x80: 'GET_META_DATA',
0x1000: 'GET_PERMISSIONS',
0x8: 'GET_PROVIDERS',
0x2: 'GET_RECEIVERS',
0x40: 'GET_RESOLVED_FILTER',
0x4: 'GET_SERVICES',
0x400: 'GET_SHARED_LIBRARY_FILES',
0x40: 'GET_SIGNATURES',
0x08000000: 'GET_SIGNING_CERTIFICATES',
0x2000: 'MATCH_UNINSTALLED_PACKAGES',
0x800: 'GET_URI_PERMISSION_PATTERNS',
0x00008000: 'MATCH_DISABLED_UNTIL_USED_COMPONENTS',
0x00100000: 'MATCH_SYSTEM_ONLY'
} | media_recorder__audio_source = {0: 'DEFAULT', 1: 'MIC', 2: 'VOICE_UPLINK', 3: 'VOICE_DOWNLINK', 4: 'VOICE_CALL', 5: 'CAMCORDER', 6: 'VOICE_RECOGNITION', 7: 'VOICE_COMMUNICATION', 8: 'REMOTE_SUBMIX', 9: 'UNPROCESSED'}
media_recorder__video_source = {0: 'DEFAULT', 1: 'CAMERA', 2: 'SURFACE'}
package_manager__package_info = {1: 'GET_ACTIVITIES', 16384: 'GET_CONFIGURATIONS', 512: 'MATCH_DISABLED_COMPONENTS', 256: 'GET_GIDS', 16: 'GET_INSTRUMENTATION', 32: 'GET_INTENT_FILTERS', 128: 'GET_META_DATA', 4096: 'GET_PERMISSIONS', 8: 'GET_PROVIDERS', 2: 'GET_RECEIVERS', 64: 'GET_RESOLVED_FILTER', 4: 'GET_SERVICES', 1024: 'GET_SHARED_LIBRARY_FILES', 64: 'GET_SIGNATURES', 134217728: 'GET_SIGNING_CERTIFICATES', 8192: 'MATCH_UNINSTALLED_PACKAGES', 2048: 'GET_URI_PERMISSION_PATTERNS', 32768: 'MATCH_DISABLED_UNTIL_USED_COMPONENTS', 1048576: 'MATCH_SYSTEM_ONLY'} |
# network size
ict_head_size = None
# checkpointing
ict_load = None
bert_load = None
# data
titles_data_path = None
query_in_block_prob = 0.1
use_one_sent_docs = False
# training
report_topk_accuracies = []
# faiss index
faiss_use_gpu = False
block_data_path = None
# indexer
indexer_batch_size = 128
indexer_log_interval = 1000 | ict_head_size = None
ict_load = None
bert_load = None
titles_data_path = None
query_in_block_prob = 0.1
use_one_sent_docs = False
report_topk_accuracies = []
faiss_use_gpu = False
block_data_path = None
indexer_batch_size = 128
indexer_log_interval = 1000 |
#
# PySNMP MIB module TFTIF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TFTIF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:16:16 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")
ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint")
micom_oscar, = mibBuilder.importSymbols("MICOM-OSCAR-MIB", "micom-oscar")
mcmSysAsciiTimeOfDay, = mibBuilder.importSymbols("MICOM-SYS-MIB", "mcmSysAsciiTimeOfDay")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, Counter64, ModuleIdentity, iso, ObjectIdentity, NotificationType, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, IpAddress, Integer32, Gauge32, NotificationType, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Counter64", "ModuleIdentity", "iso", "ObjectIdentity", "NotificationType", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "IpAddress", "Integer32", "Gauge32", "NotificationType", "MibIdentifier")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class MemAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4)
fixedLength = 4
mcmTFTP = MibIdentifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3))
mcmTFTPParamGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1))
mcmTFTPServerIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPFileName = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPFileName.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPFileName.setDescription('NAME = ; DESC = The Filename with path (ASCII) to be downloaded; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 900))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPTimeOut.setDescription('NAME = ; DESC = The TFTP timeout period in seconds.; HELP = Time is doubled for each retransmission.; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPRetransmissions = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPRetransmissions.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPRetransmissions.setDescription('NAME = ; DESC = The number of times the TFTP request \\ will be repeated for un-responsive \\ TFTP servers.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPDownload = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("upldDefault", 1), ("upldSpecific", 2), ("dnldDefault", 3), ("dnldSpecific", 4), ("disabled", 5)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: mcmTFTPDownload.setStatus('deprecated')
if mibBuilder.loadTexts: mcmTFTPDownload.setDescription('NAME = ; DESC = This object when enabled results in \\ the unit to attempt code download.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPStart = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("upldDefault", 1), ("upldSpecific", 2), ("dnldDefault", 3), ("dnldSpecific", 4), ("disabled", 5)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: mcmTFTPStart.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPStart.setDescription('NAME = ; DESC = initiates TFTP upload or download process\\ based on previously provisioned values \\ (default) or values passed at request \\ time(specific) ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPConfigUploadBank = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("bank3", 1), ("bank4", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mcmTFTPConfigUploadBank.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPConfigUploadBank.setDescription('NAME = ; DESC = The configuration bank number which\\ will be uploaded to the TFTP host. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPParamGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2))
nvmTFTPServerIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPFileName = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPFileName.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPFileName.setDescription('NAME = ; DESC = The Filename with path (ASCII) to be \\ downloaded or to upload; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPTimeOut.setDescription('NAME = ; DESC = The TFTP timeout period in seconds.; HELP = Time is doubled for each retransmission; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPRetransmissions = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPRetransmissions.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPRetransmissions.setDescription('NAME = ; DESC = The number of times the TFTP request \\ will be repeated for un-responsive \\ TFTP servers.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvmTFTPConfigUploadBank = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("bank3", 1), ("bank4", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nvmTFTPConfigUploadBank.setStatus('mandatory')
if mibBuilder.loadTexts: nvmTFTPConfigUploadBank.setDescription('NAME = ; DESC = The configuration bank number which\\ will be uploaded to the TFTP host. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPStatusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 3))
mcmTFTPCurrentState = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("idle", 1), ("retrieving-file", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPCurrentState.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPCurrentState.setDescription('NAME = ; DESC = This object shows the current status \\ of TFTP interface.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPErrorStatusGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4))
mcmTFTPLastErrorStatus = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 6, 7, 8, 11, 13, 14, 15, 16, 17, 18))).clone(namedValues=NamedValues(("idle", 1), ("download-success", 2), ("out-of-memory", 4), ("flash-error", 5), ("download-failed", 6), ("upload-failed", 7), ("upload-success", 8), ("chksum-error", 11), ("transferring-file", 13), ("protocol-error", 14), ("server-error", 15), ("timeout", 16), ("connection-error", 17), ("bad-file", 18)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPLastErrorStatus.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPLastErrorStatus.setDescription('NAME = ; DESC = This object shows the error status of \\ last TFTP operation.; HELP = Error status values: \\ value meaning \\ --------------------------------------------------\\ idle No download has been done \\ download-success A download completed without error\\ out-of-memory Not enough free memory \\ flash-error Could not write to flash memory \\ download-failed Download failed for an unknown reason \\ chksum-error The file to download has a checksum error \\ retrieving-file The file to download is being retrieved \\ protocol-error TFTP had an error talking to server \\ server-error The TFTP server sent error message, Could be bad file name \\ timeout Could be bad ip address or network errors \\ connection-error Setup of connection failed \\ bad-file The file to be download was rejected; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPLastServerIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPLastServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPLastServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the last TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPLastFileName = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPLastFileName.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPLastFileName.setDescription('NAME = ; DESC = The Filename path (ASCII) of the previously downloaded file.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPTransferBank = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("none", 1), ("toboot", 2), ("toBank1", 3), ("toBank2", 4), ("toBank3", 5), ("toBank4", 6), ("fromBank3", 7), ("fromBank4", 8), ("fromDebug", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPTransferBank.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPTransferBank.setDescription('NAME = ; DESC = Specifies which flash bank is currently\\ being uploaded/dwonloaded via the tftp \\ application process ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPLastPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mcmTFTPLastPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts: mcmTFTPLastPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcmTFTPDownloadFail = NotificationType((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0,1)).setObjects(("MICOM-SYS-MIB", "mcmSysAsciiTimeOfDay"), ("TFTIF-MIB", "mcmTFTPServerIpAddr"), ("TFTIF-MIB", "mcmTFTPFileName"))
if mibBuilder.loadTexts: mcmTFTPDownloadFail.setDescription('NAME = ; DESC = A TFTP Code download has failed between the \\ PP4400 and the Server.; HELP = Please check Network cables, Server being alive, and retry \\ again. If problem persists, contact Sys Admin., or Field \\ Personnel.;')
mcmTFTPUploadFail = NotificationType((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0,2)).setObjects(("MICOM-SYS-MIB", "mcmSysAsciiTimeOfDay"), ("TFTIF-MIB", "mcmTFTPServerIpAddr"), ("TFTIF-MIB", "mcmTFTPFileName"))
if mibBuilder.loadTexts: mcmTFTPUploadFail.setDescription('NAME = ; DESC = TFTP file upload to server has failed.; HELP = See error status for type of transfer failure.;')
mcmTFTPDownloadSuccess = NotificationType((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0,3)).setObjects(("MICOM-SYS-MIB", "mcmSysAsciiTimeOfDay"), ("TFTIF-MIB", "mcmTFTPServerIpAddr"), ("TFTIF-MIB", "mcmTFTPFileName"))
if mibBuilder.loadTexts: mcmTFTPDownloadSuccess.setDescription('NAME = ; DESC = A TFTP Code download has succeeded between the \\ PP4400 and the Server.; HELP = TFTP Code download was successful. \\ Normal Status Indicator.;')
mcmTFTPUploadSuccess = NotificationType((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0,4)).setObjects(("MICOM-SYS-MIB", "mcmSysAsciiTimeOfDay"), ("TFTIF-MIB", "mcmTFTPServerIpAddr"), ("TFTIF-MIB", "mcmTFTPFileName"))
if mibBuilder.loadTexts: mcmTFTPUploadSuccess.setDescription('NAME = ; DESC = A TFTP file upload has succeeded between the \\ 4400 and the Server.; HELP = TFTP file upload was successful. \\ Normal Status Indicator.;')
mibBuilder.exportSymbols("TFTIF-MIB", mcmTFTPCurrentState=mcmTFTPCurrentState, mcmTFTPLastServerIpAddr=mcmTFTPLastServerIpAddr, mcmTFTPTransferBank=mcmTFTPTransferBank, nvmTFTPPortNumber=nvmTFTPPortNumber, mcmTFTPRetransmissions=mcmTFTPRetransmissions, mcmTFTPLastErrorStatus=mcmTFTPLastErrorStatus, mcmTFTPParamGroup=mcmTFTPParamGroup, mcmTFTPServerIpAddr=mcmTFTPServerIpAddr, mcmTFTPUploadSuccess=mcmTFTPUploadSuccess, nvmTFTPFileName=nvmTFTPFileName, MemAddress=MemAddress, nvmTFTPServerIpAddr=nvmTFTPServerIpAddr, nvmTFTPParamGroup=nvmTFTPParamGroup, mcmTFTPConfigUploadBank=mcmTFTPConfigUploadBank, mcmTFTPFileName=mcmTFTPFileName, mcmTFTPStart=mcmTFTPStart, mcmTFTPTimeOut=mcmTFTPTimeOut, mcmTFTPErrorStatusGroup=mcmTFTPErrorStatusGroup, mcmTFTPUploadFail=mcmTFTPUploadFail, mcmTFTPPortNumber=mcmTFTPPortNumber, mcmTFTP=mcmTFTP, mcmTFTPDownloadFail=mcmTFTPDownloadFail, nvmTFTPConfigUploadBank=nvmTFTPConfigUploadBank, mcmTFTPLastPortNumber=mcmTFTPLastPortNumber, nvmTFTPRetransmissions=nvmTFTPRetransmissions, mcmTFTPStatusGroup=mcmTFTPStatusGroup, mcmTFTPDownload=mcmTFTPDownload, mcmTFTPDownloadSuccess=mcmTFTPDownloadSuccess, mcmTFTPLastFileName=mcmTFTPLastFileName, nvmTFTPTimeOut=nvmTFTPTimeOut)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint')
(micom_oscar,) = mibBuilder.importSymbols('MICOM-OSCAR-MIB', 'micom-oscar')
(mcm_sys_ascii_time_of_day,) = mibBuilder.importSymbols('MICOM-SYS-MIB', 'mcmSysAsciiTimeOfDay')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(counter32, counter64, module_identity, iso, object_identity, notification_type, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, ip_address, integer32, gauge32, notification_type, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Counter64', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'NotificationType', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'IpAddress', 'Integer32', 'Gauge32', 'NotificationType', 'MibIdentifier')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
class Memaddress(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(4, 4)
fixed_length = 4
mcm_tftp = mib_identifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3))
mcm_tftp_param_group = mib_identifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1))
mcm_tftp_server_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPFileName.setDescription('NAME = ; DESC = The Filename with path (ASCII) to be downloaded; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 900))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPTimeOut.setDescription('NAME = ; DESC = The TFTP timeout period in seconds.; HELP = Time is doubled for each retransmission.; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_retransmissions = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPRetransmissions.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPRetransmissions.setDescription('NAME = ; DESC = The number of times the TFTP request \\ will be repeated for un-responsive \\ TFTP servers.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_download = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('upldDefault', 1), ('upldSpecific', 2), ('dnldDefault', 3), ('dnldSpecific', 4), ('disabled', 5)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
mcmTFTPDownload.setStatus('deprecated')
if mibBuilder.loadTexts:
mcmTFTPDownload.setDescription('NAME = ; DESC = This object when enabled results in \\ the unit to attempt code download.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_start = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('upldDefault', 1), ('upldSpecific', 2), ('dnldDefault', 3), ('dnldSpecific', 4), ('disabled', 5)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
mcmTFTPStart.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPStart.setDescription('NAME = ; DESC = initiates TFTP upload or download process\\ based on previously provisioned values \\ (default) or values passed at request \\ time(specific) ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_config_upload_bank = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('bank3', 1), ('bank4', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mcmTFTPConfigUploadBank.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPConfigUploadBank.setDescription('NAME = ; DESC = The configuration bank number which\\ will be uploaded to the TFTP host. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_param_group = mib_identifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2))
nvm_tftp_server_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPFileName.setDescription('NAME = ; DESC = The Filename with path (ASCII) to be \\ downloaded or to upload; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPTimeOut.setDescription('NAME = ; DESC = The TFTP timeout period in seconds.; HELP = Time is doubled for each retransmission; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_retransmissions = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPRetransmissions.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPRetransmissions.setDescription('NAME = ; DESC = The number of times the TFTP request \\ will be repeated for un-responsive \\ TFTP servers.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
nvm_tftp_config_upload_bank = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('bank3', 1), ('bank4', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nvmTFTPConfigUploadBank.setStatus('mandatory')
if mibBuilder.loadTexts:
nvmTFTPConfigUploadBank.setDescription('NAME = ; DESC = The configuration bank number which\\ will be uploaded to the TFTP host. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_status_group = mib_identifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 3))
mcm_tftp_current_state = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('idle', 1), ('retrieving-file', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPCurrentState.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPCurrentState.setDescription('NAME = ; DESC = This object shows the current status \\ of TFTP interface.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_error_status_group = mib_identifier((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4))
mcm_tftp_last_error_status = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 5, 6, 7, 8, 11, 13, 14, 15, 16, 17, 18))).clone(namedValues=named_values(('idle', 1), ('download-success', 2), ('out-of-memory', 4), ('flash-error', 5), ('download-failed', 6), ('upload-failed', 7), ('upload-success', 8), ('chksum-error', 11), ('transferring-file', 13), ('protocol-error', 14), ('server-error', 15), ('timeout', 16), ('connection-error', 17), ('bad-file', 18)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPLastErrorStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPLastErrorStatus.setDescription('NAME = ; DESC = This object shows the error status of \\ last TFTP operation.; HELP = Error status values: \\ value meaning \\ --------------------------------------------------\\ idle No download has been done \\ download-success A download completed without error\\ out-of-memory Not enough free memory \\ flash-error Could not write to flash memory \\ download-failed Download failed for an unknown reason \\ chksum-error The file to download has a checksum error \\ retrieving-file The file to download is being retrieved \\ protocol-error TFTP had an error talking to server \\ server-error The TFTP server sent error message, Could be bad file name \\ timeout Could be bad ip address or network errors \\ connection-error Setup of connection failed \\ bad-file The file to be download was rejected; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_last_server_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPLastServerIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPLastServerIpAddr.setDescription('NAME = ; DESC = The IP Address of the last TFTP Server.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_last_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPLastFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPLastFileName.setDescription('NAME = ; DESC = The Filename path (ASCII) of the previously downloaded file.; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_transfer_bank = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('none', 1), ('toboot', 2), ('toBank1', 3), ('toBank2', 4), ('toBank3', 5), ('toBank4', 6), ('fromBank3', 7), ('fromBank4', 8), ('fromDebug', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPTransferBank.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPTransferBank.setDescription('NAME = ; DESC = Specifies which flash bank is currently\\ being uploaded/dwonloaded via the tftp \\ application process ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_last_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 335, 1, 4, 3, 4, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mcmTFTPLastPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
mcmTFTPLastPortNumber.setDescription('NAME = ; DESC = This object is used to specify the \\ port <socket> number sent to the TFTP\\ connection. ; HELP = ; CAPABILITIES = NET_CFG, VPN_NONE;')
mcm_tftp_download_fail = notification_type((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0, 1)).setObjects(('MICOM-SYS-MIB', 'mcmSysAsciiTimeOfDay'), ('TFTIF-MIB', 'mcmTFTPServerIpAddr'), ('TFTIF-MIB', 'mcmTFTPFileName'))
if mibBuilder.loadTexts:
mcmTFTPDownloadFail.setDescription('NAME = ; DESC = A TFTP Code download has failed between the \\ PP4400 and the Server.; HELP = Please check Network cables, Server being alive, and retry \\ again. If problem persists, contact Sys Admin., or Field \\ Personnel.;')
mcm_tftp_upload_fail = notification_type((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0, 2)).setObjects(('MICOM-SYS-MIB', 'mcmSysAsciiTimeOfDay'), ('TFTIF-MIB', 'mcmTFTPServerIpAddr'), ('TFTIF-MIB', 'mcmTFTPFileName'))
if mibBuilder.loadTexts:
mcmTFTPUploadFail.setDescription('NAME = ; DESC = TFTP file upload to server has failed.; HELP = See error status for type of transfer failure.;')
mcm_tftp_download_success = notification_type((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0, 3)).setObjects(('MICOM-SYS-MIB', 'mcmSysAsciiTimeOfDay'), ('TFTIF-MIB', 'mcmTFTPServerIpAddr'), ('TFTIF-MIB', 'mcmTFTPFileName'))
if mibBuilder.loadTexts:
mcmTFTPDownloadSuccess.setDescription('NAME = ; DESC = A TFTP Code download has succeeded between the \\ PP4400 and the Server.; HELP = TFTP Code download was successful. \\ Normal Status Indicator.;')
mcm_tftp_upload_success = notification_type((1, 3, 6, 1, 4, 1, 335, 1, 4, 3) + (0, 4)).setObjects(('MICOM-SYS-MIB', 'mcmSysAsciiTimeOfDay'), ('TFTIF-MIB', 'mcmTFTPServerIpAddr'), ('TFTIF-MIB', 'mcmTFTPFileName'))
if mibBuilder.loadTexts:
mcmTFTPUploadSuccess.setDescription('NAME = ; DESC = A TFTP file upload has succeeded between the \\ 4400 and the Server.; HELP = TFTP file upload was successful. \\ Normal Status Indicator.;')
mibBuilder.exportSymbols('TFTIF-MIB', mcmTFTPCurrentState=mcmTFTPCurrentState, mcmTFTPLastServerIpAddr=mcmTFTPLastServerIpAddr, mcmTFTPTransferBank=mcmTFTPTransferBank, nvmTFTPPortNumber=nvmTFTPPortNumber, mcmTFTPRetransmissions=mcmTFTPRetransmissions, mcmTFTPLastErrorStatus=mcmTFTPLastErrorStatus, mcmTFTPParamGroup=mcmTFTPParamGroup, mcmTFTPServerIpAddr=mcmTFTPServerIpAddr, mcmTFTPUploadSuccess=mcmTFTPUploadSuccess, nvmTFTPFileName=nvmTFTPFileName, MemAddress=MemAddress, nvmTFTPServerIpAddr=nvmTFTPServerIpAddr, nvmTFTPParamGroup=nvmTFTPParamGroup, mcmTFTPConfigUploadBank=mcmTFTPConfigUploadBank, mcmTFTPFileName=mcmTFTPFileName, mcmTFTPStart=mcmTFTPStart, mcmTFTPTimeOut=mcmTFTPTimeOut, mcmTFTPErrorStatusGroup=mcmTFTPErrorStatusGroup, mcmTFTPUploadFail=mcmTFTPUploadFail, mcmTFTPPortNumber=mcmTFTPPortNumber, mcmTFTP=mcmTFTP, mcmTFTPDownloadFail=mcmTFTPDownloadFail, nvmTFTPConfigUploadBank=nvmTFTPConfigUploadBank, mcmTFTPLastPortNumber=mcmTFTPLastPortNumber, nvmTFTPRetransmissions=nvmTFTPRetransmissions, mcmTFTPStatusGroup=mcmTFTPStatusGroup, mcmTFTPDownload=mcmTFTPDownload, mcmTFTPDownloadSuccess=mcmTFTPDownloadSuccess, mcmTFTPLastFileName=mcmTFTPLastFileName, nvmTFTPTimeOut=nvmTFTPTimeOut) |
def partition(lista: list[int], low: int, high: int) -> int:
i = low
pivot = lista[high]
for j in range(low, high):
if lista[j] <= pivot:
# swap
lista[i], lista[j] = lista[j], lista[i]
i += 1
lista[i], lista[high] = lista[high], lista[i]
return i
def find_k(lista: list[int], low: int, high: int, k: int) -> int:
if low == high:
return lista[low]
else:
p_index = partition(lista, low, high)
p_value = lista[p_index]
if k == p_index:
return p_value
elif k > p_index:
return find_k(lista, p_index + 1, high, k)
else:
return find_k(lista, low, p_index - 1, k)
N, i = [int(x) for x in input().split()]
lista = []
for j in range(N):
lista.append(int(input()))
print(abs(find_k(lista, 0, len(lista) - 1, N - i) -
find_k(lista, 0, len(lista) - 1, i - 1)))
| def partition(lista: list[int], low: int, high: int) -> int:
i = low
pivot = lista[high]
for j in range(low, high):
if lista[j] <= pivot:
(lista[i], lista[j]) = (lista[j], lista[i])
i += 1
(lista[i], lista[high]) = (lista[high], lista[i])
return i
def find_k(lista: list[int], low: int, high: int, k: int) -> int:
if low == high:
return lista[low]
else:
p_index = partition(lista, low, high)
p_value = lista[p_index]
if k == p_index:
return p_value
elif k > p_index:
return find_k(lista, p_index + 1, high, k)
else:
return find_k(lista, low, p_index - 1, k)
(n, i) = [int(x) for x in input().split()]
lista = []
for j in range(N):
lista.append(int(input()))
print(abs(find_k(lista, 0, len(lista) - 1, N - i) - find_k(lista, 0, len(lista) - 1, i - 1))) |
DATA_FOLDER = './materialist/data'
TEST_FOLDER = './materialist/data/test'
TRAIN_FOLDER = './materialist/data/train'
VALIDATION_FOLDER = './materialist/data/validation'
TEST_FILE = './materialist/data/test.json'
TRAIN_FILE = './materialist/data/train.json'
VALIDATION_FILE = './materialist/data/validation.json'
TEST_PICKLE = './materialist/data/test.pickle'
TRAIN_PICKLE = './materialist/data/train.pickle'
VALIDATION_PICKLE = './materialist/data/validation.pickle'
TRAIN_LABEL_PICKLE = './materialist/data/train_label.pickle'
VALIDATION_LABEL_PICKLE = './materialist/data/validation_label.pickle'
RESULTS_FOLDER = './materialist/results/test/'
FINAL_RESULT = './materialist/results/final.csv'
| data_folder = './materialist/data'
test_folder = './materialist/data/test'
train_folder = './materialist/data/train'
validation_folder = './materialist/data/validation'
test_file = './materialist/data/test.json'
train_file = './materialist/data/train.json'
validation_file = './materialist/data/validation.json'
test_pickle = './materialist/data/test.pickle'
train_pickle = './materialist/data/train.pickle'
validation_pickle = './materialist/data/validation.pickle'
train_label_pickle = './materialist/data/train_label.pickle'
validation_label_pickle = './materialist/data/validation_label.pickle'
results_folder = './materialist/results/test/'
final_result = './materialist/results/final.csv' |
print(f'This is the python code file bar.py and my name currently is:{__name__}')
if __name__ == 'bar':
print(f'I was imported as a module.')
print(f'bar.py __file__ variable:{__file__}')
print('If the slashes in the file path lean to the right then I am __main__')
| print(f'This is the python code file bar.py and my name currently is:{__name__}')
if __name__ == 'bar':
print(f'I was imported as a module.')
print(f'bar.py __file__ variable:{__file__}')
print('If the slashes in the file path lean to the right then I am __main__') |
class View:
@staticmethod
def show_message(message):
print(message)
@staticmethod
def get_input():
return input()
| class View:
@staticmethod
def show_message(message):
print(message)
@staticmethod
def get_input():
return input() |
class Test:
def ptr(self):
print(self)
print(self.__class__)
class Test2:
def ptr(baidu):
print(baidu)
print(baidu.__class__)
class people:
name = ''
age = 0
__weight = 0
def __init__(self, n, a, w):
self.name = n
self.age = a
self.__weight = w
def speak(self):
print('%s said: I %d ages' % (self.name, self.age))
t = Test()
t.ptr()
t2 = Test2()
t2.ptr()
p = people('baidu', 10, 30)
p.speak()
| class Test:
def ptr(self):
print(self)
print(self.__class__)
class Test2:
def ptr(baidu):
print(baidu)
print(baidu.__class__)
class People:
name = ''
age = 0
__weight = 0
def __init__(self, n, a, w):
self.name = n
self.age = a
self.__weight = w
def speak(self):
print('%s said: I %d ages' % (self.name, self.age))
t = test()
t.ptr()
t2 = test2()
t2.ptr()
p = people('baidu', 10, 30)
p.speak() |
class LambdaContext(object):
def __init__(
self,
request_id="request_id",
function_name="my-function",
function_version="v1.0",
):
self.aws_request_id = request_id
self.function_name = function_name
self.function_version = function_version
def get_remaining_time_in_millis(self):
return None
| class Lambdacontext(object):
def __init__(self, request_id='request_id', function_name='my-function', function_version='v1.0'):
self.aws_request_id = request_id
self.function_name = function_name
self.function_version = function_version
def get_remaining_time_in_millis(self):
return None |
for i in range(int(input())):
n,m,x,y = [int(j) for j in input().split()]
if((n-1)%x==0 and (m-1)%y==0):
print('Chefirnemo')
elif(n-2>=0 and m-2>=0):
if((n-2)%x==0 and (m-2)%y==0):
print('Chefirnemo')
else:
print('Pofik')
else:
print('Pofik')
| for i in range(int(input())):
(n, m, x, y) = [int(j) for j in input().split()]
if (n - 1) % x == 0 and (m - 1) % y == 0:
print('Chefirnemo')
elif n - 2 >= 0 and m - 2 >= 0:
if (n - 2) % x == 0 and (m - 2) % y == 0:
print('Chefirnemo')
else:
print('Pofik')
else:
print('Pofik') |
###################################################
# header_common.py
# This file contains common declarations.
# DO NOT EDIT THIS FILE!
###################################################
server_event_preset_message = 0
server_event_play_sound = 1
server_event_scene_prop_play_sound = 2
server_event_play_sound_at_position = 3
server_event_agent_equip_armor = 4
server_event_player_set_slot = 5
server_event_scene_prop_set_slot = 6
server_event_faction_set_slot = 7
server_event_troop_set_slot = 8
server_event_agent_set_slot = 9
server_event_show_inventory = 10
server_event_chat_message_recieved = 11
server_event_local_chat = 12
server_event_local_chat_shout = 13
server_event_faction_set_name = 14
server_event_return_game_rules = 15
server_event_return_server_name = 16
server_event_return_password = 17
server_event_set_player_score_kill_death = 18
server_event_show_poll = 19
server_event_set_overflow_gold = 20
server_event_faction_chat = 21
server_event_faction_chat_announce = 22
server_event_admin_chat = 23
server_event_admin_chat_announce = 24
server_event_admin_set_permissions = 25
server_event_set_attached_scene_prop = 26
server_event_local_animation = 27
server_event_update_scene_prop_hit_points = 28
#GGG:new server
server_event_agent_stop_sound = 29
server_event_agent_play_sound = 30
##Arthur begins
server_event_player_exit_return = 31
server_event_player_set_cam = 32
# Add new events here: above if sent from the server, below if from clients.
#GGG:new client
##Arthur begins
client_event_player_request_exit = 92
##Arthur ends
client_event_admin_faction_action = 93
client_event_player_set_slot = 94
#
client_event_request_animation = 95
agent_shield_bash = 0 #GGG:shield bash
agent_loot_weapon = 1 #GGG:loot weapon
client_event_reveal_money_pouch = 96
client_event_agent_loot_armor = 97
client_event_toggle_drop_armor = 98
client_event_admin_equip_item = 99
client_event_poll_vote = 100
client_event_request_poll = 101
client_event_request_spawn_point = 102
client_event_request_game_rules = 103
client_event_admin_set_server_name = 104
client_event_admin_set_password = 105
client_event_admin_set_welcome_message = 106
client_event_admin_set_game_rule = 107
client_event_admin_action = 108
client_event_faction_admin_action = 109
client_event_chat_message_begin = 110
client_event_chat_message_end = 120
client_event_chat_message_type = 120
client_event_transfer_gold = 121
client_event_request_stock_count = 122
client_event_drop_money_bag = 123
client_event_change_faction_banner = 124
client_event_transfer_inventory = 125
client_event_control_scene_prop = 126
client_event_attach_scene_prop = 127
# Network events are limited to numbers between 0 and 127 by the game engine.
preset_message_default = 0x0
preset_message_item = 0x2 # converts value 1 from item id into name string
preset_message_agent = 0x3 # converts value 1 from agent id into name string
preset_message_player = 0x4 # converts value 1 from player id into username string
preset_message_faction = 0x5 # converts value 1 from faction id into name string
preset_message_faction_castle = 0x6 # converts value 1 from castle id into name string
preset_message_params_mask = 0xF
preset_message_white = 0x00
preset_message_red = 0x10
preset_message_green = 0x20
preset_message_blue = 0x30
preset_message_yellow = 0x40
preset_message_color_mask = 0xF0
preset_message_small = 0x000
preset_message_big = 0x100
preset_message_read_object = 0x200 # displays the presentation for reading a book
preset_message_chat_only = 0x300 # only displays in the chat log
preset_message_type_mask = 0xF00
preset_message_log = 0x1000 # add message to the chat log
preset_message_fail_sound = 0x2000 # play a failure sound
preset_message_error = preset_message_red|preset_message_fail_sound
preset_message_info = preset_message_yellow
preset_message_chat_log = preset_message_chat_only|preset_message_log
# Module system commands
command_get_bot_count = 1
command_set_bot_count = 2
command_get_round_max_seconds = 3
command_set_round_max_seconds = 4
command_get_respawn_period = 5
command_set_respawn_period = 6
command_get_num_bots_voteable = 7
command_set_num_bots_voteable = 8
command_get_maps_voteable = 9
command_set_maps_voteable = 10
command_get_factions_voteable = 11
command_set_factions_voteable = 12
command_get_player_respawn_as_bot = 13
command_set_player_respawn_as_bot = 14
command_get_kick_voteable = 15
command_set_kick_voteable = 16
command_get_ban_voteable = 17
command_set_ban_voteable = 18
command_get_valid_vote_ratio = 19
command_set_valid_vote_ratio = 20
command_get_auto_team_balance_limit = 21
command_set_auto_team_balance_limit = 22
command_get_starting_gold = 23
command_set_starting_gold = 24
command_get_combat_gold_bonus = 25
command_set_combat_gold_bonus = 26
command_get_round_gold_bonus = 27
command_set_round_gold_bonus = 28
command_get_player_banners_allowed = 29
command_set_player_banners_allowed = 30
command_get_force_default_armor = 31
command_set_force_default_armor = 32
command_get_team_points_gained_for_flags = 33
command_set_team_points_gained_for_flags = 34
command_get_points_gained_for_capturing_flags = 35
command_set_points_gained_for_capturing_flags = 36
command_get_map_time_limit = 37
command_set_map_time_limit = 38
command_get_team_point_limit = 39
command_set_team_point_limit = 40
command_get_defender_spawn_count = 41
command_set_defender_spawn_count = 42
command_get_disallow_ranged_weapons = 43
command_set_disallow_ranged_weapons = 44
# Napoleonic Wars commands
command_use_class_limits = 50
command_class_limit_player_count = 51
command_squad_size = 52
command_scale_squad = 53
command_build_points_team1 = 54
command_build_points_team2 = 55
command_allow_multiple_firearms = 56
command_enable_bonuses = 57
command_bonus_strength = 58
command_bonus_range = 59
command_fall_off_horse = 60
command_horse_dying = 61
command_auto_kick = 62
command_max_teamkills_before_kick = 63
command_auto_horse = 64
command_auto_swap = 65
command_limit_grenadier = 66
command_limit_skirmisher = 67
command_limit_rifle = 68
command_limit_cavalry = 69
command_limit_lancer = 70
command_limit_hussar = 71
command_limit_dragoon = 72
command_limit_cuirassier = 73
command_limit_heavycav = 74
command_limit_artillery = 75
command_limit_rocket = 76
command_limit_sapper = 77
command_limit_musician = 78
command_limit_sergeant = 79
command_limit_officer = 80
command_limit_general = 81
# Hard coded commands
command_get_max_players = 101
command_set_max_players = 102
command_get_friendly_fire = 103
command_set_friendly_fire = 104
command_get_melee_friendly_fire = 105
command_set_melee_friendly_fire = 106
command_get_friendly_fire_damage_self_ratio = 107
command_set_friendly_fire_damage_self_ratio = 108
command_get_friendly_fire_damage_friend_ratio = 109
command_set_friendly_fire_damage_friend_ratio = 110
command_get_ghost_mode = 111
command_set_ghost_mode = 112
command_get_control_block_direction = 113
command_set_control_block_direction = 114
command_get_combat_speed = 115
command_set_combat_speed = 116
command_get_add_to_game_servers_list = 117
command_set_add_to_game_servers_list = 118
command_get_anti_cheat = 119
command_set_anti_cheat = 120
command_get_renaming_server_allowed = 121
command_set_renaming_server_allowed = 122
command_get_changing_game_type_allowed = 123
command_set_changing_game_type_allowed = 124
command_start_scene = 130
command_open_admin_panel = 132
command_open_game_rules = 134
command_set_server_mission_timer = 136
commands_module_system_begin = command_get_bot_count
commands_module_system_end = command_set_disallow_ranged_weapons + 1
commands_napoleonic_wars_begin = command_use_class_limits
commands_napoleonic_wars_end = command_limit_general + 1
commands_hard_coded_begin = command_get_max_players
commands_hard_coded_end = command_set_anti_cheat + 1
min_num_players = 2
max_num_players = 250 # limited by the game engine
min_respawn_period = 3
max_respawn_period = 31 # dead agents are removed after approximately this interval
team_default = 0 # default team, members can attack each other like deathmatch - since multiplayer is hard coded to handle only 2 teams
team_spawn_invulnerable = 1 # team set to be neutral to each other and the default team, so they can't attack or be attacked
team_spectators = 2 # hard coded spectators team
team_bots = 3 #GGG:foreign invasion
net_value_upper_bound = 1 << 31
net_sound_shift = 16
net_sound_mask = (1 << net_sound_shift) - 1
net_pack_3_shift_2 = 10
net_pack_3_shift_3 = 20
net_pack_3_value_upper_bound = 1 << net_pack_3_shift_2
net_pack_3_mask_1 = net_pack_3_value_upper_bound - 1
net_pack_3_mask_2 = net_pack_3_mask_1 << net_pack_3_shift_2
net_pack_3_mask_3 = net_pack_3_mask_1 << net_pack_3_shift_3
net_chat_type_shift = 8
net_chat_param_1_shift = net_chat_type_shift * 2
net_chat_event_mask = (1 << net_chat_type_shift) - 1
stats_chart_score_shift = 8
stats_chart_ranking_shift = 24
stats_chart_score_max = 1 << (stats_chart_ranking_shift - stats_chart_score_shift)
stats_chart_player_mask = (1 << stats_chart_score_shift) - 1
admin_action_kick_player = 0
admin_action_ban_player_temp = 1
admin_action_ban_player_perm = 2
admin_action_mute_player = 3
admin_action_kill_player = 4
admin_action_fade_player_out = 5
admin_action_freeze_player = 6
#GGG:admin tools
admin_action_add_outlaw_player = 7
admin_action_sub_outlaw_player = 8
admin_action_teleport_player_to_admin = 9
#
admin_action_add_outlaw_player
admin_action_teleport_to_player = 10
admin_action_teleport_behind_player = 11
admin_action_teleport_forwards = 12
admin_action_get_armor = 13
admin_action_get_invisible = 14
admin_action_refill_health = 15
admin_action_become_godlike = 16
admin_action_get_horse = 17
admin_action_remove_horses = 18
admin_action_remove_stray_horses = 19
#GGG:admin tools
admin_action_remove_wild_animals = 20
admin_action_remove_corpses = 21
admin_action_remove_all_weapons = 21
admin_action_reset_carts = 22
#
admin_action_teleport_to_ships = 23
admin_action_reset_ships = 24
admin_action_lock_faction = 25
admin_action_lock_faction_capture = 26 #GGG
faction_admin_action_change_banner = 0
faction_admin_action_kick_player = 1
faction_admin_action_toggle_player_door_key = 2
faction_admin_action_toggle_player_money_key = 3
faction_admin_action_toggle_player_item_key = 4
faction_admin_action_set_relation_hostile = 5
faction_admin_action_set_relation_peaceful = 6
faction_admin_action_outlaw_player = 7
faction_admin_action_mute_player = 8
faction_admin_action_toggle_player_announce = 9
max_possible_gold = 1000000000
max_correctly_displayed_gold = 131071 # player gold over this value will not be updated correctly by the game engine
max_correctly_displayed_hp = 15000 # scene prop hit points over approximately this value will not be displayed correctly in the engine hit points bar
min_scene_prop_hit_points = 1
profile_banner_id_option_bits_begin = 9
profile_banner_id_option_bits_end = 30
profile_banner_id_mask = (1 << profile_banner_id_option_bits_begin) - 1
bignum = 0x40000000000000000000000000000000
op_num_value_bits = 24 + 32
tag_register = 1
tag_variable = 2
tag_string = 3
tag_item = 4
tag_troop = 5
tag_faction = 6
tag_quest = 7
tag_party_tpl = 8
tag_party = 9
tag_scene = 10
tag_mission_tpl = 11
tag_menu = 12
tag_script = 13
tag_particle_sys = 14
tag_scene_prop = 15
tag_sound = 16
tag_local_variable = 17
tag_map_icon = 18
tag_skill = 19
tag_mesh = 20
tag_presentation = 21
tag_quick_string = 22
tag_track = 23
tag_tableau = 24
tag_animation = 25
tags_end = 26
opmask_register = tag_register << op_num_value_bits
opmask_variable = tag_variable << op_num_value_bits
opmask_string = tag_string << op_num_value_bits
opmask_item_index = tag_item << op_num_value_bits
opmask_troop_index = tag_troop << op_num_value_bits
opmask_faction_index = tag_faction << op_num_value_bits
opmask_quest_index = tag_quest << op_num_value_bits
opmask_p_template_index = tag_party_tpl << op_num_value_bits
opmask_party_index = tag_party << op_num_value_bits
opmask_scene_index = tag_scene << op_num_value_bits
opmask_mission_tpl_index = tag_mission_tpl << op_num_value_bits
opmask_menu_index = tag_menu << op_num_value_bits
opmask_script = tag_script << op_num_value_bits
opmask_particle_sys = tag_particle_sys << op_num_value_bits
opmask_scene_prop = tag_scene_prop << op_num_value_bits
opmask_sound = tag_sound << op_num_value_bits
opmask_map_icon = tag_map_icon << op_num_value_bits
opmask_local_variable = tag_local_variable << op_num_value_bits
opmask_quick_string = tag_quick_string << op_num_value_bits
def reg(reg_no):
if not 0 < reg_no < 128:
raise Exception("ERROR: invalid register number.")
return opmask_register | reg_no
s0 = 0
s1 = 1
s2 = 2
s3 = 3
s4 = 4
s5 = 5
s6 = 6
s7 = 7
s8 = 8
s9 = 9
s10 = 10
s11 = 11
s12 = 12
s13 = 13
s14 = 14
s15 = 15
s16 = 16
s17 = 17
s18 = 18
s19 = 19
s20 = 20
s21 = 21
s22 = 22
s23 = 23
s24 = 24
s25 = 25
s26 = 26
s27 = 27
s28 = 28
s29 = 29
s30 = 30
s31 = 31
s32 = 32
s33 = 33
s34 = 34
s35 = 35
s36 = 36
s37 = 37
s38 = 38
s39 = 39
s40 = 40
s41 = 41
s42 = 42
s43 = 43
s44 = 44
s45 = 45
s46 = 46
s47 = 47
s48 = 48
s49 = 49
s50 = 50
s51 = 51
s52 = 52
s53 = 53
s54 = 54
s55 = 55
s56 = 56
s57 = 57
s58 = 58
s59 = 59
s60 = 60
s61 = 61
s62 = 62
s63 = 63
s64 = 64
s65 = 65
s66 = 66
s67 = 67
s68 = 68
s69 = 69
s70 = 70
s71 = 71
s72 = 72
s73 = 73
s74 = 74
s75 = 75
s76 = 76
s77 = 77
s78 = 78
s79 = 79
s80 = 80
s81 = 81
s82 = 82
s83 = 83
s84 = 84
s85 = 85
s86 = 86
s87 = 87
s88 = 88
s89 = 89
s90 = 90
s91 = 91
s92 = 92
s93 = 93
s94 = 94
s95 = 95
s96 = 96
s97 = 97
s98 = 98
s99 = 99
s100 = 100
s101 = 101
s102 = 102
s103 = 103
s104 = 104
s105 = 105
s106 = 106
s107 = 107
s108 = 108
s109 = 109
s110 = 110
s111 = 111
s112 = 112
s113 = 113
s114 = 114
s115 = 115
s116 = 116
s117 = 117
s118 = 118
s119 = 119
s120 = 120
s121 = 121
s122 = 122
s123 = 123
s124 = 124
s125 = 125
s126 = 126
s127 = 127
pos0 = 0
pos1 = 1
pos2 = 2
pos3 = 3
pos4 = 4
pos5 = 5
pos6 = 6
pos7 = 7
pos8 = 8
pos9 = 9
pos10 = 10
pos11 = 11
pos12 = 12
pos13 = 13
pos14 = 14
pos15 = 15
pos16 = 16
pos17 = 17
pos18 = 18
pos19 = 19
pos20 = 20
pos21 = 21
pos22 = 22
pos23 = 23
pos24 = 24
pos25 = 25
pos26 = 26
pos27 = 27
pos28 = 28
pos29 = 29
pos30 = 30
pos31 = 31
pos32 = 32
pos33 = 33
pos34 = 34
pos35 = 35
pos36 = 36
pos37 = 37
pos38 = 38
pos39 = 39
pos40 = 40
pos41 = 41
pos42 = 42
pos43 = 43
pos44 = 44
pos45 = 45
pos46 = 46
pos47 = 47
pos48 = 48
pos49 = 49
pos50 = 50
pos51 = 51
pos52 = 52
pos53 = 53
pos54 = 54
pos55 = 55
pos56 = 56
pos57 = 57
pos58 = 58
pos59 = 59
pos60 = 60
pos61 = 61
pos62 = 62
pos63 = 63
pos64 = 64
pos65 = 65
pos66 = 66
pos67 = 67
pos68 = 68
pos69 = 69
pos70 = 70
pos71 = 71
pos72 = 72
pos73 = 73
pos74 = 74
pos75 = 75
pos76 = 76
pos77 = 77
pos78 = 78
pos79 = 79
pos80 = 80
pos81 = 81
pos82 = 82
pos83 = 83
pos84 = 84
pos85 = 85
pos86 = 86
pos87 = 87
pos88 = 88
pos89 = 89
pos90 = 90
pos91 = 91
pos92 = 92
pos93 = 93
pos94 = 94
pos95 = 95
pos96 = 96
pos97 = 97
pos98 = 98
pos99 = 99
pos100 = 100
pos101 = 101
pos102 = 102
pos103 = 103
pos104 = 104
pos105 = 105
pos106 = 106
pos107 = 107
pos108 = 108
pos109 = 109
pos110 = 110
pos111 = 111
pos112 = 112
pos113 = 113
pos114 = 114
pos115 = 115
pos116 = 116
pos117 = 117
pos118 = 118
pos119 = 119
pos120 = 120
pos121 = 121
pos122 = 122
pos123 = 123
pos124 = 124
pos125 = 125
pos126 = 126
pos127 = 127
reg0 = opmask_register| 0
reg1 = opmask_register| 1
reg2 = opmask_register| 2
reg3 = opmask_register| 3
reg4 = opmask_register| 4
reg5 = opmask_register| 5
reg6 = opmask_register| 6
reg7 = opmask_register| 7
reg8 = opmask_register| 8
reg9 = opmask_register| 9
reg10 = opmask_register|10
reg11 = opmask_register|11
reg12 = opmask_register|12
reg13 = opmask_register|13
reg14 = opmask_register|14
reg15 = opmask_register|15
reg16 = opmask_register|16
reg17 = opmask_register|17
reg18 = opmask_register|18
reg19 = opmask_register|19
reg20 = opmask_register|20
reg21 = opmask_register|21
reg22 = opmask_register|22
reg23 = opmask_register|23
reg24 = opmask_register|24
reg25 = opmask_register|25
reg26 = opmask_register|26
reg27 = opmask_register|27
reg28 = opmask_register|28
reg29 = opmask_register|29
reg30 = opmask_register|30
reg31 = opmask_register|31
reg32 = opmask_register|32
reg33 = opmask_register|33
reg34 = opmask_register|34
reg35 = opmask_register|35
reg36 = opmask_register|36
reg37 = opmask_register|37
reg38 = opmask_register|38
reg39 = opmask_register|39
reg40 = opmask_register|40
reg41 = opmask_register|41
reg42 = opmask_register|42
reg43 = opmask_register|43
reg44 = opmask_register|44
reg45 = opmask_register|45
reg46 = opmask_register|46
reg47 = opmask_register|47
reg48 = opmask_register|48
reg49 = opmask_register|49
reg50 = opmask_register|50
reg51 = opmask_register|51
reg52 = opmask_register|52
reg53 = opmask_register|53
reg54 = opmask_register|54
reg55 = opmask_register|55
reg56 = opmask_register|56
reg57 = opmask_register|57
reg58 = opmask_register|58
reg59 = opmask_register|59
reg60 = opmask_register|60
reg61 = opmask_register|61
reg62 = opmask_register|62
reg63 = opmask_register|63
reg64 = opmask_register|64
reg65 = opmask_register|65
reg66 = opmask_register|66
reg67 = opmask_register|67
reg68 = opmask_register|68
reg69 = opmask_register|69
reg70 = opmask_register|70
reg71 = opmask_register|71
reg72 = opmask_register|72
reg73 = opmask_register|73
reg74 = opmask_register|74
reg75 = opmask_register|75
reg76 = opmask_register|76
reg77 = opmask_register|77
reg78 = opmask_register|78
reg79 = opmask_register|79
reg80 = opmask_register|80
reg81 = opmask_register|81
reg82 = opmask_register|82
reg83 = opmask_register|83
reg84 = opmask_register|84
reg85 = opmask_register|85
reg86 = opmask_register|86
reg87 = opmask_register|87
reg88 = opmask_register|88
reg89 = opmask_register|89
reg90 = opmask_register|90
reg91 = opmask_register|91
reg92 = opmask_register|92
reg93 = opmask_register|93
reg94 = opmask_register|94
reg95 = opmask_register|95
reg96 = opmask_register|96
reg97 = opmask_register|97
reg98 = opmask_register|98
reg99 = opmask_register|99
reg100 = opmask_register|100
reg101 = opmask_register|101
reg102 = opmask_register|102
reg103 = opmask_register|103
reg104 = opmask_register|104
reg105 = opmask_register|105
reg106 = opmask_register|106
reg107 = opmask_register|107
reg108 = opmask_register|108
reg109 = opmask_register|109
reg110 = opmask_register|110
reg111 = opmask_register|111
reg112 = opmask_register|112
reg113 = opmask_register|113
reg114 = opmask_register|114
reg115 = opmask_register|115
reg116 = opmask_register|116
reg117 = opmask_register|117
reg118 = opmask_register|118
reg119 = opmask_register|119
reg120 = opmask_register|120
reg121 = opmask_register|121
reg122 = opmask_register|122
reg123 = opmask_register|123
reg124 = opmask_register|124
reg125 = opmask_register|125
reg126 = opmask_register|126
reg127 = opmask_register|127
spf_all_teams_are_enemy = 0x00000001
spf_is_horseman = 0x00000002
spf_examine_all_spawn_points = 0x00000004
spf_team_0_spawn_far_from_entry_32 = 0x00000008
spf_team_1_spawn_far_from_entry_0 = 0x00000010
spf_team_1_spawn_far_from_entry_66 = 0x00000020
spf_team_0_spawn_near_entry_0 = 0x00000040
spf_team_0_spawn_near_entry_66 = 0x00000080
spf_team_1_spawn_near_entry_32 = 0x00000100
spf_team_0_walkers_spawn_at_high_points = 0x00000200
spf_team_1_walkers_spawn_at_high_points = 0x00000400
spf_try_to_spawn_close_to_at_least_one_enemy = 0x00000800
spf_care_agent_to_agent_distances_less = 0x00001000
# Human bones
hb_abdomen = 0
hb_thigh_l = 1
hb_calf_l = 2
hb_foot_l = 3
hb_thigh_r = 4
hb_calf_r = 5
hb_foot_r = 6
hb_spine = 7
hb_thorax = 8
hb_head = 9
hb_shoulder_l = 10
hb_upperarm_l = 11
hb_forearm_l = 12
hb_hand_l = 13
hb_item_l = 14
hb_shoulder_r = 15
hb_upperarm_r = 16
hb_forearm_r = 17
hb_hand_r = 18
hb_item_r = 19
# Horse bones
hrsb_pelvis = 0
hrsb_spine_1 = 1
hrsb_spine_2 = 2
hrsb_spine_3 = 3
hrsb_neck_1 = 4
hrsb_neck_2 = 5
hrsb_neck_3 = 6
hrsb_head = 7
hrsb_l_clavicle = 8
hrsb_l_upper_arm = 9
hrsb_l_forearm = 10
hrsb_l_hand = 11
hrsb_l_front_hoof = 12
hrsb_r_clavicle = 13
hrsb_r_upper_arm = 14
hrsb_r_forearm = 15
hrsb_r_hand = 16
hrsb_r_front_hoof = 17
hrsb_l_thigh = 18
hrsb_l_calf = 19
hrsb_l_foot = 20
hrsb_l_back_hoof = 21
hrsb_r_thigh = 22
hrsb_r_calf = 23
hrsb_r_foot = 24
hrsb_r_back_hoof = 25
hrsb_tail_1 = 26
hrsb_tail_2 = 27
#Tooltip types
tooltip_agent = 1
tooltip_horse = 2
tooltip_my_horse = 3
tooltip_container = 5
tooltip_door = 6
tooltip_item = 7
tooltip_leave_area = 8
tooltip_prop = 9
tooltip_destructible_prop = 10
#Human bones
hb_abdomen = 0
hb_thigh_l = 1
hb_calf_l = 2
hb_foot_l = 3
hb_thigh_r = 4
hb_calf_r = 5
hb_foot_r = 6
hb_spine = 7
hb_thorax = 8
hb_head = 9
hb_shoulder_l = 10
hb_upperarm_l = 11
hb_forearm_l = 12
hb_hand_l = 13
hb_item_l = 14
hb_shoulder_r = 15
hb_upperarm_r = 16
hb_forearm_r = 17
hb_hand_r = 18
hb_item_r = 19
#Horse bones
hrsb_pelvis = 0
hrsb_spine_1 = 1
hrsb_spine_2 = 2
hrsb_spine_3 = 3
hrsb_neck_1 = 4
hrsb_neck_2 = 5
hrsb_neck_3 = 6
hrsb_head = 7
hrsb_l_clavicle = 8
hrsb_l_upper_arm = 9
hrsb_l_forearm = 10
hrsb_l_hand = 11
hrsb_l_front_hoof = 12
hrsb_r_clavicle = 13
hrsb_r_upper_arm = 14
hrsb_r_forearm = 15
hrsb_r_hand = 16
hrsb_r_front_hoof = 17
hrsb_l_thigh = 18
hrsb_l_calf = 19
hrsb_l_foot = 20
hrsb_l_back_hoof = 21
hrsb_r_thigh = 22
hrsb_r_calf = 23
hrsb_r_foot = 24
hrsb_r_back_hoof = 25
hrsb_tail_1 = 26
hrsb_tail_2 = 27
#Attack directions
atk_thrust = 0
atk_right_swing = 1
atk_left_swing = 2
atk_overhead = 3
#Game windows
window_inventory = 7
window_party = 8
window_character = 11
#Agent body meta meshes
bmm_head = 0
bmm_beard = 1
bmm_hair = 2
bmm_helmet = 3
bmm_armor = 4
bmm_trousers = 5
bmm_left_foot = 6
bmm_right_foot = 7
bmm_armature = 8
bmm_item_1 = 9
bmm_item_2 = 10
bmm_item_3 = 11
bmm_item_4 = 12
bmm_missile_1 = 13
bmm_missile_2 = 14
bmm_missile_3 = 15
bmm_missile_4 = 16
bmm_carry_1 = 17
bmm_carry_2 = 18
bmm_carry_3 = 19
bmm_carry_4 = 20
bmm_unknown_2 = 21
bmm_left_hand = 22
bmm_right_hand = 23
bmm_left_bracer = 24
bmm_right_bracer = 25
bmm_banner = 26
bmm_name = 27
#Floating point registers
fp0 = 0
fp1 = 1
fp2 = 2
fp3 = 3
fp4 = 4
fp5 = 5
fp6 = 6
fp7 = 7
fp8 = 8
fp9 = 9
fp10 = 10
fp11 = 11
fp12 = 12
fp13 = 13
fp14 = 14
fp15 = 15
fp16 = 16
fp17 = 17
fp18 = 18
fp19 = 19
fp20 = 20
fp21 = 21
fp22 = 22
fp23 = 23
fp24 = 24
fp25 = 25
fp26 = 26
fp27 = 27
fp28 = 28
fp29 = 29
fp30 = 30
fp31 = 31
fp32 = 32
fp33 = 33
fp34 = 34
fp35 = 35
fp36 = 36
fp37 = 37
fp38 = 38
fp39 = 39
fp40 = 40
fp41 = 41
fp42 = 42
fp43 = 43
fp44 = 44
fp45 = 45
fp46 = 46
fp47 = 47
fp48 = 48
fp49 = 49
fp50 = 50
fp51 = 51
fp52 = 52
fp53 = 53
fp54 = 54
fp55 = 55
fp56 = 56
fp57 = 57
fp58 = 58
fp59 = 59
fp60 = 60
fp61 = 61
fp62 = 62
fp63 = 63
fp64 = 64
fp65 = 65
fp66 = 66
fp67 = 67
fp68 = 68
fp69 = 69
fp70 = 70
fp71 = 71
fp72 = 72
fp73 = 73
fp74 = 74
fp75 = 75
fp76 = 76
fp77 = 77
fp78 = 78
fp79 = 79
fp80 = 80
fp81 = 81
fp82 = 82
fp83 = 83
fp84 = 84
fp85 = 85
fp86 = 86
fp87 = 87
fp88 = 88
fp89 = 89
fp90 = 90
fp91 = 91
fp92 = 92
fp93 = 93
fp94 = 94
fp95 = 95
fp96 = 96
fp97 = 97
fp98 = 98
fp99 = 99
fp100 = 100
fp101 = 101
fp102 = 102
fp103 = 103
fp104 = 104
fp105 = 105
fp106 = 106
fp107 = 107
fp108 = 108
fp109 = 109
fp110 = 110
fp111 = 111
fp112 = 112
fp113 = 113
fp114 = 114
fp115 = 115
fp116 = 116
fp117 = 117
fp118 = 118
fp119 = 119
fp120 = 120
fp121 = 121
fp122 = 122
fp123 = 123
fp124 = 124
fp125 = 125
fp126 = 126
fp127 = 127
sort_f_desc = 1
sort_f_ci = 2
sort_m_int_asc = 0
sort_m_int_desc = sort_f_desc
sort_m_str_cs_asc = 0
sort_m_str_cs_desc = sort_f_desc
sort_m_str_ci_asc = sort_f_ci
sort_m_str_ci_desc = sort_f_ci | sort_f_desc
LUA_TNONE = -1
LUA_TNIL = 0
LUA_TBOOLEAN = 1
LUA_TLIGHTUSERDATA = 2
LUA_TNUMBER = 3
LUA_TSTRING = 4
LUA_TTABLE = 5
LUA_TFUNCTION = 6
LUA_TUSERDATA = 7
LUA_TTHREAD = 8
| server_event_preset_message = 0
server_event_play_sound = 1
server_event_scene_prop_play_sound = 2
server_event_play_sound_at_position = 3
server_event_agent_equip_armor = 4
server_event_player_set_slot = 5
server_event_scene_prop_set_slot = 6
server_event_faction_set_slot = 7
server_event_troop_set_slot = 8
server_event_agent_set_slot = 9
server_event_show_inventory = 10
server_event_chat_message_recieved = 11
server_event_local_chat = 12
server_event_local_chat_shout = 13
server_event_faction_set_name = 14
server_event_return_game_rules = 15
server_event_return_server_name = 16
server_event_return_password = 17
server_event_set_player_score_kill_death = 18
server_event_show_poll = 19
server_event_set_overflow_gold = 20
server_event_faction_chat = 21
server_event_faction_chat_announce = 22
server_event_admin_chat = 23
server_event_admin_chat_announce = 24
server_event_admin_set_permissions = 25
server_event_set_attached_scene_prop = 26
server_event_local_animation = 27
server_event_update_scene_prop_hit_points = 28
server_event_agent_stop_sound = 29
server_event_agent_play_sound = 30
server_event_player_exit_return = 31
server_event_player_set_cam = 32
client_event_player_request_exit = 92
client_event_admin_faction_action = 93
client_event_player_set_slot = 94
client_event_request_animation = 95
agent_shield_bash = 0
agent_loot_weapon = 1
client_event_reveal_money_pouch = 96
client_event_agent_loot_armor = 97
client_event_toggle_drop_armor = 98
client_event_admin_equip_item = 99
client_event_poll_vote = 100
client_event_request_poll = 101
client_event_request_spawn_point = 102
client_event_request_game_rules = 103
client_event_admin_set_server_name = 104
client_event_admin_set_password = 105
client_event_admin_set_welcome_message = 106
client_event_admin_set_game_rule = 107
client_event_admin_action = 108
client_event_faction_admin_action = 109
client_event_chat_message_begin = 110
client_event_chat_message_end = 120
client_event_chat_message_type = 120
client_event_transfer_gold = 121
client_event_request_stock_count = 122
client_event_drop_money_bag = 123
client_event_change_faction_banner = 124
client_event_transfer_inventory = 125
client_event_control_scene_prop = 126
client_event_attach_scene_prop = 127
preset_message_default = 0
preset_message_item = 2
preset_message_agent = 3
preset_message_player = 4
preset_message_faction = 5
preset_message_faction_castle = 6
preset_message_params_mask = 15
preset_message_white = 0
preset_message_red = 16
preset_message_green = 32
preset_message_blue = 48
preset_message_yellow = 64
preset_message_color_mask = 240
preset_message_small = 0
preset_message_big = 256
preset_message_read_object = 512
preset_message_chat_only = 768
preset_message_type_mask = 3840
preset_message_log = 4096
preset_message_fail_sound = 8192
preset_message_error = preset_message_red | preset_message_fail_sound
preset_message_info = preset_message_yellow
preset_message_chat_log = preset_message_chat_only | preset_message_log
command_get_bot_count = 1
command_set_bot_count = 2
command_get_round_max_seconds = 3
command_set_round_max_seconds = 4
command_get_respawn_period = 5
command_set_respawn_period = 6
command_get_num_bots_voteable = 7
command_set_num_bots_voteable = 8
command_get_maps_voteable = 9
command_set_maps_voteable = 10
command_get_factions_voteable = 11
command_set_factions_voteable = 12
command_get_player_respawn_as_bot = 13
command_set_player_respawn_as_bot = 14
command_get_kick_voteable = 15
command_set_kick_voteable = 16
command_get_ban_voteable = 17
command_set_ban_voteable = 18
command_get_valid_vote_ratio = 19
command_set_valid_vote_ratio = 20
command_get_auto_team_balance_limit = 21
command_set_auto_team_balance_limit = 22
command_get_starting_gold = 23
command_set_starting_gold = 24
command_get_combat_gold_bonus = 25
command_set_combat_gold_bonus = 26
command_get_round_gold_bonus = 27
command_set_round_gold_bonus = 28
command_get_player_banners_allowed = 29
command_set_player_banners_allowed = 30
command_get_force_default_armor = 31
command_set_force_default_armor = 32
command_get_team_points_gained_for_flags = 33
command_set_team_points_gained_for_flags = 34
command_get_points_gained_for_capturing_flags = 35
command_set_points_gained_for_capturing_flags = 36
command_get_map_time_limit = 37
command_set_map_time_limit = 38
command_get_team_point_limit = 39
command_set_team_point_limit = 40
command_get_defender_spawn_count = 41
command_set_defender_spawn_count = 42
command_get_disallow_ranged_weapons = 43
command_set_disallow_ranged_weapons = 44
command_use_class_limits = 50
command_class_limit_player_count = 51
command_squad_size = 52
command_scale_squad = 53
command_build_points_team1 = 54
command_build_points_team2 = 55
command_allow_multiple_firearms = 56
command_enable_bonuses = 57
command_bonus_strength = 58
command_bonus_range = 59
command_fall_off_horse = 60
command_horse_dying = 61
command_auto_kick = 62
command_max_teamkills_before_kick = 63
command_auto_horse = 64
command_auto_swap = 65
command_limit_grenadier = 66
command_limit_skirmisher = 67
command_limit_rifle = 68
command_limit_cavalry = 69
command_limit_lancer = 70
command_limit_hussar = 71
command_limit_dragoon = 72
command_limit_cuirassier = 73
command_limit_heavycav = 74
command_limit_artillery = 75
command_limit_rocket = 76
command_limit_sapper = 77
command_limit_musician = 78
command_limit_sergeant = 79
command_limit_officer = 80
command_limit_general = 81
command_get_max_players = 101
command_set_max_players = 102
command_get_friendly_fire = 103
command_set_friendly_fire = 104
command_get_melee_friendly_fire = 105
command_set_melee_friendly_fire = 106
command_get_friendly_fire_damage_self_ratio = 107
command_set_friendly_fire_damage_self_ratio = 108
command_get_friendly_fire_damage_friend_ratio = 109
command_set_friendly_fire_damage_friend_ratio = 110
command_get_ghost_mode = 111
command_set_ghost_mode = 112
command_get_control_block_direction = 113
command_set_control_block_direction = 114
command_get_combat_speed = 115
command_set_combat_speed = 116
command_get_add_to_game_servers_list = 117
command_set_add_to_game_servers_list = 118
command_get_anti_cheat = 119
command_set_anti_cheat = 120
command_get_renaming_server_allowed = 121
command_set_renaming_server_allowed = 122
command_get_changing_game_type_allowed = 123
command_set_changing_game_type_allowed = 124
command_start_scene = 130
command_open_admin_panel = 132
command_open_game_rules = 134
command_set_server_mission_timer = 136
commands_module_system_begin = command_get_bot_count
commands_module_system_end = command_set_disallow_ranged_weapons + 1
commands_napoleonic_wars_begin = command_use_class_limits
commands_napoleonic_wars_end = command_limit_general + 1
commands_hard_coded_begin = command_get_max_players
commands_hard_coded_end = command_set_anti_cheat + 1
min_num_players = 2
max_num_players = 250
min_respawn_period = 3
max_respawn_period = 31
team_default = 0
team_spawn_invulnerable = 1
team_spectators = 2
team_bots = 3
net_value_upper_bound = 1 << 31
net_sound_shift = 16
net_sound_mask = (1 << net_sound_shift) - 1
net_pack_3_shift_2 = 10
net_pack_3_shift_3 = 20
net_pack_3_value_upper_bound = 1 << net_pack_3_shift_2
net_pack_3_mask_1 = net_pack_3_value_upper_bound - 1
net_pack_3_mask_2 = net_pack_3_mask_1 << net_pack_3_shift_2
net_pack_3_mask_3 = net_pack_3_mask_1 << net_pack_3_shift_3
net_chat_type_shift = 8
net_chat_param_1_shift = net_chat_type_shift * 2
net_chat_event_mask = (1 << net_chat_type_shift) - 1
stats_chart_score_shift = 8
stats_chart_ranking_shift = 24
stats_chart_score_max = 1 << stats_chart_ranking_shift - stats_chart_score_shift
stats_chart_player_mask = (1 << stats_chart_score_shift) - 1
admin_action_kick_player = 0
admin_action_ban_player_temp = 1
admin_action_ban_player_perm = 2
admin_action_mute_player = 3
admin_action_kill_player = 4
admin_action_fade_player_out = 5
admin_action_freeze_player = 6
admin_action_add_outlaw_player = 7
admin_action_sub_outlaw_player = 8
admin_action_teleport_player_to_admin = 9
admin_action_add_outlaw_player
admin_action_teleport_to_player = 10
admin_action_teleport_behind_player = 11
admin_action_teleport_forwards = 12
admin_action_get_armor = 13
admin_action_get_invisible = 14
admin_action_refill_health = 15
admin_action_become_godlike = 16
admin_action_get_horse = 17
admin_action_remove_horses = 18
admin_action_remove_stray_horses = 19
admin_action_remove_wild_animals = 20
admin_action_remove_corpses = 21
admin_action_remove_all_weapons = 21
admin_action_reset_carts = 22
admin_action_teleport_to_ships = 23
admin_action_reset_ships = 24
admin_action_lock_faction = 25
admin_action_lock_faction_capture = 26
faction_admin_action_change_banner = 0
faction_admin_action_kick_player = 1
faction_admin_action_toggle_player_door_key = 2
faction_admin_action_toggle_player_money_key = 3
faction_admin_action_toggle_player_item_key = 4
faction_admin_action_set_relation_hostile = 5
faction_admin_action_set_relation_peaceful = 6
faction_admin_action_outlaw_player = 7
faction_admin_action_mute_player = 8
faction_admin_action_toggle_player_announce = 9
max_possible_gold = 1000000000
max_correctly_displayed_gold = 131071
max_correctly_displayed_hp = 15000
min_scene_prop_hit_points = 1
profile_banner_id_option_bits_begin = 9
profile_banner_id_option_bits_end = 30
profile_banner_id_mask = (1 << profile_banner_id_option_bits_begin) - 1
bignum = 85070591730234615865843651857942052864
op_num_value_bits = 24 + 32
tag_register = 1
tag_variable = 2
tag_string = 3
tag_item = 4
tag_troop = 5
tag_faction = 6
tag_quest = 7
tag_party_tpl = 8
tag_party = 9
tag_scene = 10
tag_mission_tpl = 11
tag_menu = 12
tag_script = 13
tag_particle_sys = 14
tag_scene_prop = 15
tag_sound = 16
tag_local_variable = 17
tag_map_icon = 18
tag_skill = 19
tag_mesh = 20
tag_presentation = 21
tag_quick_string = 22
tag_track = 23
tag_tableau = 24
tag_animation = 25
tags_end = 26
opmask_register = tag_register << op_num_value_bits
opmask_variable = tag_variable << op_num_value_bits
opmask_string = tag_string << op_num_value_bits
opmask_item_index = tag_item << op_num_value_bits
opmask_troop_index = tag_troop << op_num_value_bits
opmask_faction_index = tag_faction << op_num_value_bits
opmask_quest_index = tag_quest << op_num_value_bits
opmask_p_template_index = tag_party_tpl << op_num_value_bits
opmask_party_index = tag_party << op_num_value_bits
opmask_scene_index = tag_scene << op_num_value_bits
opmask_mission_tpl_index = tag_mission_tpl << op_num_value_bits
opmask_menu_index = tag_menu << op_num_value_bits
opmask_script = tag_script << op_num_value_bits
opmask_particle_sys = tag_particle_sys << op_num_value_bits
opmask_scene_prop = tag_scene_prop << op_num_value_bits
opmask_sound = tag_sound << op_num_value_bits
opmask_map_icon = tag_map_icon << op_num_value_bits
opmask_local_variable = tag_local_variable << op_num_value_bits
opmask_quick_string = tag_quick_string << op_num_value_bits
def reg(reg_no):
if not 0 < reg_no < 128:
raise exception('ERROR: invalid register number.')
return opmask_register | reg_no
s0 = 0
s1 = 1
s2 = 2
s3 = 3
s4 = 4
s5 = 5
s6 = 6
s7 = 7
s8 = 8
s9 = 9
s10 = 10
s11 = 11
s12 = 12
s13 = 13
s14 = 14
s15 = 15
s16 = 16
s17 = 17
s18 = 18
s19 = 19
s20 = 20
s21 = 21
s22 = 22
s23 = 23
s24 = 24
s25 = 25
s26 = 26
s27 = 27
s28 = 28
s29 = 29
s30 = 30
s31 = 31
s32 = 32
s33 = 33
s34 = 34
s35 = 35
s36 = 36
s37 = 37
s38 = 38
s39 = 39
s40 = 40
s41 = 41
s42 = 42
s43 = 43
s44 = 44
s45 = 45
s46 = 46
s47 = 47
s48 = 48
s49 = 49
s50 = 50
s51 = 51
s52 = 52
s53 = 53
s54 = 54
s55 = 55
s56 = 56
s57 = 57
s58 = 58
s59 = 59
s60 = 60
s61 = 61
s62 = 62
s63 = 63
s64 = 64
s65 = 65
s66 = 66
s67 = 67
s68 = 68
s69 = 69
s70 = 70
s71 = 71
s72 = 72
s73 = 73
s74 = 74
s75 = 75
s76 = 76
s77 = 77
s78 = 78
s79 = 79
s80 = 80
s81 = 81
s82 = 82
s83 = 83
s84 = 84
s85 = 85
s86 = 86
s87 = 87
s88 = 88
s89 = 89
s90 = 90
s91 = 91
s92 = 92
s93 = 93
s94 = 94
s95 = 95
s96 = 96
s97 = 97
s98 = 98
s99 = 99
s100 = 100
s101 = 101
s102 = 102
s103 = 103
s104 = 104
s105 = 105
s106 = 106
s107 = 107
s108 = 108
s109 = 109
s110 = 110
s111 = 111
s112 = 112
s113 = 113
s114 = 114
s115 = 115
s116 = 116
s117 = 117
s118 = 118
s119 = 119
s120 = 120
s121 = 121
s122 = 122
s123 = 123
s124 = 124
s125 = 125
s126 = 126
s127 = 127
pos0 = 0
pos1 = 1
pos2 = 2
pos3 = 3
pos4 = 4
pos5 = 5
pos6 = 6
pos7 = 7
pos8 = 8
pos9 = 9
pos10 = 10
pos11 = 11
pos12 = 12
pos13 = 13
pos14 = 14
pos15 = 15
pos16 = 16
pos17 = 17
pos18 = 18
pos19 = 19
pos20 = 20
pos21 = 21
pos22 = 22
pos23 = 23
pos24 = 24
pos25 = 25
pos26 = 26
pos27 = 27
pos28 = 28
pos29 = 29
pos30 = 30
pos31 = 31
pos32 = 32
pos33 = 33
pos34 = 34
pos35 = 35
pos36 = 36
pos37 = 37
pos38 = 38
pos39 = 39
pos40 = 40
pos41 = 41
pos42 = 42
pos43 = 43
pos44 = 44
pos45 = 45
pos46 = 46
pos47 = 47
pos48 = 48
pos49 = 49
pos50 = 50
pos51 = 51
pos52 = 52
pos53 = 53
pos54 = 54
pos55 = 55
pos56 = 56
pos57 = 57
pos58 = 58
pos59 = 59
pos60 = 60
pos61 = 61
pos62 = 62
pos63 = 63
pos64 = 64
pos65 = 65
pos66 = 66
pos67 = 67
pos68 = 68
pos69 = 69
pos70 = 70
pos71 = 71
pos72 = 72
pos73 = 73
pos74 = 74
pos75 = 75
pos76 = 76
pos77 = 77
pos78 = 78
pos79 = 79
pos80 = 80
pos81 = 81
pos82 = 82
pos83 = 83
pos84 = 84
pos85 = 85
pos86 = 86
pos87 = 87
pos88 = 88
pos89 = 89
pos90 = 90
pos91 = 91
pos92 = 92
pos93 = 93
pos94 = 94
pos95 = 95
pos96 = 96
pos97 = 97
pos98 = 98
pos99 = 99
pos100 = 100
pos101 = 101
pos102 = 102
pos103 = 103
pos104 = 104
pos105 = 105
pos106 = 106
pos107 = 107
pos108 = 108
pos109 = 109
pos110 = 110
pos111 = 111
pos112 = 112
pos113 = 113
pos114 = 114
pos115 = 115
pos116 = 116
pos117 = 117
pos118 = 118
pos119 = 119
pos120 = 120
pos121 = 121
pos122 = 122
pos123 = 123
pos124 = 124
pos125 = 125
pos126 = 126
pos127 = 127
reg0 = opmask_register | 0
reg1 = opmask_register | 1
reg2 = opmask_register | 2
reg3 = opmask_register | 3
reg4 = opmask_register | 4
reg5 = opmask_register | 5
reg6 = opmask_register | 6
reg7 = opmask_register | 7
reg8 = opmask_register | 8
reg9 = opmask_register | 9
reg10 = opmask_register | 10
reg11 = opmask_register | 11
reg12 = opmask_register | 12
reg13 = opmask_register | 13
reg14 = opmask_register | 14
reg15 = opmask_register | 15
reg16 = opmask_register | 16
reg17 = opmask_register | 17
reg18 = opmask_register | 18
reg19 = opmask_register | 19
reg20 = opmask_register | 20
reg21 = opmask_register | 21
reg22 = opmask_register | 22
reg23 = opmask_register | 23
reg24 = opmask_register | 24
reg25 = opmask_register | 25
reg26 = opmask_register | 26
reg27 = opmask_register | 27
reg28 = opmask_register | 28
reg29 = opmask_register | 29
reg30 = opmask_register | 30
reg31 = opmask_register | 31
reg32 = opmask_register | 32
reg33 = opmask_register | 33
reg34 = opmask_register | 34
reg35 = opmask_register | 35
reg36 = opmask_register | 36
reg37 = opmask_register | 37
reg38 = opmask_register | 38
reg39 = opmask_register | 39
reg40 = opmask_register | 40
reg41 = opmask_register | 41
reg42 = opmask_register | 42
reg43 = opmask_register | 43
reg44 = opmask_register | 44
reg45 = opmask_register | 45
reg46 = opmask_register | 46
reg47 = opmask_register | 47
reg48 = opmask_register | 48
reg49 = opmask_register | 49
reg50 = opmask_register | 50
reg51 = opmask_register | 51
reg52 = opmask_register | 52
reg53 = opmask_register | 53
reg54 = opmask_register | 54
reg55 = opmask_register | 55
reg56 = opmask_register | 56
reg57 = opmask_register | 57
reg58 = opmask_register | 58
reg59 = opmask_register | 59
reg60 = opmask_register | 60
reg61 = opmask_register | 61
reg62 = opmask_register | 62
reg63 = opmask_register | 63
reg64 = opmask_register | 64
reg65 = opmask_register | 65
reg66 = opmask_register | 66
reg67 = opmask_register | 67
reg68 = opmask_register | 68
reg69 = opmask_register | 69
reg70 = opmask_register | 70
reg71 = opmask_register | 71
reg72 = opmask_register | 72
reg73 = opmask_register | 73
reg74 = opmask_register | 74
reg75 = opmask_register | 75
reg76 = opmask_register | 76
reg77 = opmask_register | 77
reg78 = opmask_register | 78
reg79 = opmask_register | 79
reg80 = opmask_register | 80
reg81 = opmask_register | 81
reg82 = opmask_register | 82
reg83 = opmask_register | 83
reg84 = opmask_register | 84
reg85 = opmask_register | 85
reg86 = opmask_register | 86
reg87 = opmask_register | 87
reg88 = opmask_register | 88
reg89 = opmask_register | 89
reg90 = opmask_register | 90
reg91 = opmask_register | 91
reg92 = opmask_register | 92
reg93 = opmask_register | 93
reg94 = opmask_register | 94
reg95 = opmask_register | 95
reg96 = opmask_register | 96
reg97 = opmask_register | 97
reg98 = opmask_register | 98
reg99 = opmask_register | 99
reg100 = opmask_register | 100
reg101 = opmask_register | 101
reg102 = opmask_register | 102
reg103 = opmask_register | 103
reg104 = opmask_register | 104
reg105 = opmask_register | 105
reg106 = opmask_register | 106
reg107 = opmask_register | 107
reg108 = opmask_register | 108
reg109 = opmask_register | 109
reg110 = opmask_register | 110
reg111 = opmask_register | 111
reg112 = opmask_register | 112
reg113 = opmask_register | 113
reg114 = opmask_register | 114
reg115 = opmask_register | 115
reg116 = opmask_register | 116
reg117 = opmask_register | 117
reg118 = opmask_register | 118
reg119 = opmask_register | 119
reg120 = opmask_register | 120
reg121 = opmask_register | 121
reg122 = opmask_register | 122
reg123 = opmask_register | 123
reg124 = opmask_register | 124
reg125 = opmask_register | 125
reg126 = opmask_register | 126
reg127 = opmask_register | 127
spf_all_teams_are_enemy = 1
spf_is_horseman = 2
spf_examine_all_spawn_points = 4
spf_team_0_spawn_far_from_entry_32 = 8
spf_team_1_spawn_far_from_entry_0 = 16
spf_team_1_spawn_far_from_entry_66 = 32
spf_team_0_spawn_near_entry_0 = 64
spf_team_0_spawn_near_entry_66 = 128
spf_team_1_spawn_near_entry_32 = 256
spf_team_0_walkers_spawn_at_high_points = 512
spf_team_1_walkers_spawn_at_high_points = 1024
spf_try_to_spawn_close_to_at_least_one_enemy = 2048
spf_care_agent_to_agent_distances_less = 4096
hb_abdomen = 0
hb_thigh_l = 1
hb_calf_l = 2
hb_foot_l = 3
hb_thigh_r = 4
hb_calf_r = 5
hb_foot_r = 6
hb_spine = 7
hb_thorax = 8
hb_head = 9
hb_shoulder_l = 10
hb_upperarm_l = 11
hb_forearm_l = 12
hb_hand_l = 13
hb_item_l = 14
hb_shoulder_r = 15
hb_upperarm_r = 16
hb_forearm_r = 17
hb_hand_r = 18
hb_item_r = 19
hrsb_pelvis = 0
hrsb_spine_1 = 1
hrsb_spine_2 = 2
hrsb_spine_3 = 3
hrsb_neck_1 = 4
hrsb_neck_2 = 5
hrsb_neck_3 = 6
hrsb_head = 7
hrsb_l_clavicle = 8
hrsb_l_upper_arm = 9
hrsb_l_forearm = 10
hrsb_l_hand = 11
hrsb_l_front_hoof = 12
hrsb_r_clavicle = 13
hrsb_r_upper_arm = 14
hrsb_r_forearm = 15
hrsb_r_hand = 16
hrsb_r_front_hoof = 17
hrsb_l_thigh = 18
hrsb_l_calf = 19
hrsb_l_foot = 20
hrsb_l_back_hoof = 21
hrsb_r_thigh = 22
hrsb_r_calf = 23
hrsb_r_foot = 24
hrsb_r_back_hoof = 25
hrsb_tail_1 = 26
hrsb_tail_2 = 27
tooltip_agent = 1
tooltip_horse = 2
tooltip_my_horse = 3
tooltip_container = 5
tooltip_door = 6
tooltip_item = 7
tooltip_leave_area = 8
tooltip_prop = 9
tooltip_destructible_prop = 10
hb_abdomen = 0
hb_thigh_l = 1
hb_calf_l = 2
hb_foot_l = 3
hb_thigh_r = 4
hb_calf_r = 5
hb_foot_r = 6
hb_spine = 7
hb_thorax = 8
hb_head = 9
hb_shoulder_l = 10
hb_upperarm_l = 11
hb_forearm_l = 12
hb_hand_l = 13
hb_item_l = 14
hb_shoulder_r = 15
hb_upperarm_r = 16
hb_forearm_r = 17
hb_hand_r = 18
hb_item_r = 19
hrsb_pelvis = 0
hrsb_spine_1 = 1
hrsb_spine_2 = 2
hrsb_spine_3 = 3
hrsb_neck_1 = 4
hrsb_neck_2 = 5
hrsb_neck_3 = 6
hrsb_head = 7
hrsb_l_clavicle = 8
hrsb_l_upper_arm = 9
hrsb_l_forearm = 10
hrsb_l_hand = 11
hrsb_l_front_hoof = 12
hrsb_r_clavicle = 13
hrsb_r_upper_arm = 14
hrsb_r_forearm = 15
hrsb_r_hand = 16
hrsb_r_front_hoof = 17
hrsb_l_thigh = 18
hrsb_l_calf = 19
hrsb_l_foot = 20
hrsb_l_back_hoof = 21
hrsb_r_thigh = 22
hrsb_r_calf = 23
hrsb_r_foot = 24
hrsb_r_back_hoof = 25
hrsb_tail_1 = 26
hrsb_tail_2 = 27
atk_thrust = 0
atk_right_swing = 1
atk_left_swing = 2
atk_overhead = 3
window_inventory = 7
window_party = 8
window_character = 11
bmm_head = 0
bmm_beard = 1
bmm_hair = 2
bmm_helmet = 3
bmm_armor = 4
bmm_trousers = 5
bmm_left_foot = 6
bmm_right_foot = 7
bmm_armature = 8
bmm_item_1 = 9
bmm_item_2 = 10
bmm_item_3 = 11
bmm_item_4 = 12
bmm_missile_1 = 13
bmm_missile_2 = 14
bmm_missile_3 = 15
bmm_missile_4 = 16
bmm_carry_1 = 17
bmm_carry_2 = 18
bmm_carry_3 = 19
bmm_carry_4 = 20
bmm_unknown_2 = 21
bmm_left_hand = 22
bmm_right_hand = 23
bmm_left_bracer = 24
bmm_right_bracer = 25
bmm_banner = 26
bmm_name = 27
fp0 = 0
fp1 = 1
fp2 = 2
fp3 = 3
fp4 = 4
fp5 = 5
fp6 = 6
fp7 = 7
fp8 = 8
fp9 = 9
fp10 = 10
fp11 = 11
fp12 = 12
fp13 = 13
fp14 = 14
fp15 = 15
fp16 = 16
fp17 = 17
fp18 = 18
fp19 = 19
fp20 = 20
fp21 = 21
fp22 = 22
fp23 = 23
fp24 = 24
fp25 = 25
fp26 = 26
fp27 = 27
fp28 = 28
fp29 = 29
fp30 = 30
fp31 = 31
fp32 = 32
fp33 = 33
fp34 = 34
fp35 = 35
fp36 = 36
fp37 = 37
fp38 = 38
fp39 = 39
fp40 = 40
fp41 = 41
fp42 = 42
fp43 = 43
fp44 = 44
fp45 = 45
fp46 = 46
fp47 = 47
fp48 = 48
fp49 = 49
fp50 = 50
fp51 = 51
fp52 = 52
fp53 = 53
fp54 = 54
fp55 = 55
fp56 = 56
fp57 = 57
fp58 = 58
fp59 = 59
fp60 = 60
fp61 = 61
fp62 = 62
fp63 = 63
fp64 = 64
fp65 = 65
fp66 = 66
fp67 = 67
fp68 = 68
fp69 = 69
fp70 = 70
fp71 = 71
fp72 = 72
fp73 = 73
fp74 = 74
fp75 = 75
fp76 = 76
fp77 = 77
fp78 = 78
fp79 = 79
fp80 = 80
fp81 = 81
fp82 = 82
fp83 = 83
fp84 = 84
fp85 = 85
fp86 = 86
fp87 = 87
fp88 = 88
fp89 = 89
fp90 = 90
fp91 = 91
fp92 = 92
fp93 = 93
fp94 = 94
fp95 = 95
fp96 = 96
fp97 = 97
fp98 = 98
fp99 = 99
fp100 = 100
fp101 = 101
fp102 = 102
fp103 = 103
fp104 = 104
fp105 = 105
fp106 = 106
fp107 = 107
fp108 = 108
fp109 = 109
fp110 = 110
fp111 = 111
fp112 = 112
fp113 = 113
fp114 = 114
fp115 = 115
fp116 = 116
fp117 = 117
fp118 = 118
fp119 = 119
fp120 = 120
fp121 = 121
fp122 = 122
fp123 = 123
fp124 = 124
fp125 = 125
fp126 = 126
fp127 = 127
sort_f_desc = 1
sort_f_ci = 2
sort_m_int_asc = 0
sort_m_int_desc = sort_f_desc
sort_m_str_cs_asc = 0
sort_m_str_cs_desc = sort_f_desc
sort_m_str_ci_asc = sort_f_ci
sort_m_str_ci_desc = sort_f_ci | sort_f_desc
lua_tnone = -1
lua_tnil = 0
lua_tboolean = 1
lua_tlightuserdata = 2
lua_tnumber = 3
lua_tstring = 4
lua_ttable = 5
lua_tfunction = 6
lua_tuserdata = 7
lua_tthread = 8 |
## class <nombre_del_objeto>:
## def <metodo_del_objeto>(self):
# variable -> atributos
# funciones -> metodos
def hola():
print("hola a todos")
hola()
class Persona:
def __init__(self, nombre):
self.nombre = nombre
def hola(self):
print("Hola a todos, soy", self.nombre)
def agregarApellido(self, apellido):
self.apellido = apellido
def agregarEdad(self, edad):
self.edad = edad
def __str__(self):
return self.nombre
class Animal:
def __init__(self, nombre):
self.nombre = nombre
perro = Animal('perro')
perro.edad = 12
perro.raza = 'labrador'
luis = Persona('Luis')
luis.hola()
luis.agregarApellido('Perez')
pedro = Persona('Pedro')
pedro.hola()
pedro.agregarEdad(17)
print(pedro)
pedro.nombre = 'Pablo'
print(pedro)
print(pedro.edad)
pedro.edad = 19
print(pedro.edad) | def hola():
print('hola a todos')
hola()
class Persona:
def __init__(self, nombre):
self.nombre = nombre
def hola(self):
print('Hola a todos, soy', self.nombre)
def agregar_apellido(self, apellido):
self.apellido = apellido
def agregar_edad(self, edad):
self.edad = edad
def __str__(self):
return self.nombre
class Animal:
def __init__(self, nombre):
self.nombre = nombre
perro = animal('perro')
perro.edad = 12
perro.raza = 'labrador'
luis = persona('Luis')
luis.hola()
luis.agregarApellido('Perez')
pedro = persona('Pedro')
pedro.hola()
pedro.agregarEdad(17)
print(pedro)
pedro.nombre = 'Pablo'
print(pedro)
print(pedro.edad)
pedro.edad = 19
print(pedro.edad) |
#
# PySNMP MIB module CISCO-IETF-SCTP-EXT-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-SCTP-EXT-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:01:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint")
ciscoAgentCapability, = mibBuilder.importSymbols("CISCO-SMI", "ciscoAgentCapability")
NotificationGroup, AgentCapabilities, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "AgentCapabilities", "ModuleCompliance")
iso, ObjectIdentity, TimeTicks, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, NotificationType, Counter32, Unsigned32, IpAddress, Integer32, ModuleIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ObjectIdentity", "TimeTicks", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "NotificationType", "Counter32", "Unsigned32", "IpAddress", "Integer32", "ModuleIdentity", "MibIdentifier")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
ciscoSctpExtCapability = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 7, 220))
ciscoSctpExtCapability.setRevisions(('2002-01-21 00:00', '2001-11-30 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoSctpExtCapability.setRevisionsDescriptions(('Updated capabilities to support additional objects and a new notification.', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoSctpExtCapability.setLastUpdated('200201210000Z')
if mibBuilder.loadTexts: ciscoSctpExtCapability.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoSctpExtCapability.setContactInfo(' Cisco Systems Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: [email protected]')
if mibBuilder.loadTexts: ciscoSctpExtCapability.setDescription('Agent capabilities for the CISCO-IETF-SCTP-EXT-MIB.')
ciscoSctpExtCapabilityV12R024MB1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 220, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSctpExtCapabilityV12R024MB1 = ciscoSctpExtCapabilityV12R024MB1.setProductRelease('Cisco IOS 12.2(4)MB1')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSctpExtCapabilityV12R024MB1 = ciscoSctpExtCapabilityV12R024MB1.setStatus('current')
if mibBuilder.loadTexts: ciscoSctpExtCapabilityV12R024MB1.setDescription('IOS 12.2(4)MB1 Cisco CISCO-IETF-SCTP-EXT-MIB.my User Agent MIB capabilities.')
ciscoSctpExtCapabilityV12R0204MB3 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 220, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSctpExtCapabilityV12R0204MB3 = ciscoSctpExtCapabilityV12R0204MB3.setProductRelease('Cisco IOS 12.2(4)MB3')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSctpExtCapabilityV12R0204MB3 = ciscoSctpExtCapabilityV12R0204MB3.setStatus('current')
if mibBuilder.loadTexts: ciscoSctpExtCapabilityV12R0204MB3.setDescription('IOS 12.2(4)MB3 Cisco CISCO-IETF-SCTP-EXT-MIB.my User Agent MIB capabilities.')
mibBuilder.exportSymbols("CISCO-IETF-SCTP-EXT-CAPABILITY", ciscoSctpExtCapability=ciscoSctpExtCapability, PYSNMP_MODULE_ID=ciscoSctpExtCapability, ciscoSctpExtCapabilityV12R024MB1=ciscoSctpExtCapabilityV12R024MB1, ciscoSctpExtCapabilityV12R0204MB3=ciscoSctpExtCapabilityV12R0204MB3)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(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_agent_capability,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoAgentCapability')
(notification_group, agent_capabilities, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'AgentCapabilities', 'ModuleCompliance')
(iso, object_identity, time_ticks, gauge32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, notification_type, counter32, unsigned32, ip_address, integer32, module_identity, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ObjectIdentity', 'TimeTicks', 'Gauge32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'NotificationType', 'Counter32', 'Unsigned32', 'IpAddress', 'Integer32', 'ModuleIdentity', 'MibIdentifier')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
cisco_sctp_ext_capability = module_identity((1, 3, 6, 1, 4, 1, 9, 7, 220))
ciscoSctpExtCapability.setRevisions(('2002-01-21 00:00', '2001-11-30 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoSctpExtCapability.setRevisionsDescriptions(('Updated capabilities to support additional objects and a new notification.', 'Initial version of this MIB module.'))
if mibBuilder.loadTexts:
ciscoSctpExtCapability.setLastUpdated('200201210000Z')
if mibBuilder.loadTexts:
ciscoSctpExtCapability.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoSctpExtCapability.setContactInfo(' Cisco Systems Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: [email protected]')
if mibBuilder.loadTexts:
ciscoSctpExtCapability.setDescription('Agent capabilities for the CISCO-IETF-SCTP-EXT-MIB.')
cisco_sctp_ext_capability_v12_r024_mb1 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 220, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_sctp_ext_capability_v12_r024_mb1 = ciscoSctpExtCapabilityV12R024MB1.setProductRelease('Cisco IOS 12.2(4)MB1')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_sctp_ext_capability_v12_r024_mb1 = ciscoSctpExtCapabilityV12R024MB1.setStatus('current')
if mibBuilder.loadTexts:
ciscoSctpExtCapabilityV12R024MB1.setDescription('IOS 12.2(4)MB1 Cisco CISCO-IETF-SCTP-EXT-MIB.my User Agent MIB capabilities.')
cisco_sctp_ext_capability_v12_r0204_mb3 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 220, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_sctp_ext_capability_v12_r0204_mb3 = ciscoSctpExtCapabilityV12R0204MB3.setProductRelease('Cisco IOS 12.2(4)MB3')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_sctp_ext_capability_v12_r0204_mb3 = ciscoSctpExtCapabilityV12R0204MB3.setStatus('current')
if mibBuilder.loadTexts:
ciscoSctpExtCapabilityV12R0204MB3.setDescription('IOS 12.2(4)MB3 Cisco CISCO-IETF-SCTP-EXT-MIB.my User Agent MIB capabilities.')
mibBuilder.exportSymbols('CISCO-IETF-SCTP-EXT-CAPABILITY', ciscoSctpExtCapability=ciscoSctpExtCapability, PYSNMP_MODULE_ID=ciscoSctpExtCapability, ciscoSctpExtCapabilityV12R024MB1=ciscoSctpExtCapabilityV12R024MB1, ciscoSctpExtCapabilityV12R0204MB3=ciscoSctpExtCapabilityV12R0204MB3) |
def first_last(s1):
# [out of bound error] s2 = s1[0] + s1[1] + s1[4] + s1[5]
# [out of bound error] s2 = s1[0] + s1[1] + s1[-2] + s1[-1]
# [false result] s2 = s1[0:2] + s1[-2:-1]
s2 = s1[0:2] + s1[-2:]
# [out of bound error] s2 = s1[:2] + s1[-2]
return s2
print(first_last("spring"))
print(first_last("hello"))
print(first_last("a"))
print(first_last("abc"))
| def first_last(s1):
s2 = s1[0:2] + s1[-2:]
return s2
print(first_last('spring'))
print(first_last('hello'))
print(first_last('a'))
print(first_last('abc')) |
ref = [
"A00002",
"A00005",
"A10001",
"A10002",
"A10003",
"A10004",
"A10005",
"A10006",
"A10007",
"A10008",
"A10009",
"A10010",
"A10011",
"A10012",
"A10013",
"A10014",
"A10015",
"A10016",
"A10017",
"A10018",
"A10019",
"A10020",
"A10021",
"A10022",
"A10023",
"A10024",
"A10025",
"A10026",
"A10027",
"A10028",
"A10029",
"A10030",
"A10031",
"A10032",
"A10033",
"A10034",
"A10035",
"A10036",
"A10037",
"A10038",
"A10039",
"A10040",
"A10041",
"A10042",
"A10043",
"A10044",
"A10045",
"A10046",
"A10047",
"A10048",
"A10049",
"A10050",
"A10051",
"A10052",
"A10053",
"A10054",
"A10055",
"A10056",
"A10057",
"A10058",
"A10059",
"A10060",
"A10061",
"A10062",
"A10063",
"A10064",
"A10065",
"A10066",
"A10067",
"A10068",
"A10069",
"A10070",
"A10071",
"A10072",
"A10073",
"A10074",
"A10075",
"A10076",
"A10077",
"A10078",
"A10079",
"A10080",
"A10081",
"A10082",
"A10083",
"A10084",
"A10085",
"A10086",
"A10087",
"A10088",
"A10089",
"A10090",
"A10091",
"A10092",
"A10093",
"A10094",
"A10095",
"A10096",
"A10097",
"A10098",
"A10099",
"A10100",
"A10101",
"A10102",
"A10103",
"A10104",
"A10105",
"A10106",
"A10107",
"A10108",
"A10109",
"A10110",
"A10111",
"A10112",
"A10113",
"A10114",
"A10115",
"A10116",
"A10117",
"A10118",
"A10119",
"A10120",
"A10121",
"A10122",
"A10123",
"A10124",
"A10125",
"A10150",
"A10151",
"A10152",
"A10153",
"A10154",
"A10155",
"A10156",
"A10157",
"A10158",
"A10159",
"A10160",
"A10161",
"A10162",
"A10163",
"A10164",
"A10165",
"A10166",
"A10167",
"A10168",
"A10169",
"A10170",
"A10171",
"A10172",
"A10173",
"A10174",
"A10175",
"A10176",
"A10177",
"A10178",
"A10179",
"A10180",
"A10181",
"A10182",
"A10183",
"A10184",
"A10185",
"A10186",
"A10187",
"A10188",
"A10189",
"A10190",
"A10191",
"A10192",
"A10193",
"A10194",
"A10195",
"A10196",
"A10197",
"A10198",
"A10199",
"A10201",
"A10202",
"A10203",
"A10204",
"A10205",
"A10206",
"A10207",
"A10210",
"A15501",
"A15502",
"A20000",
"A20001",
"A20002",
"A20003",
"A20004",
"A20005",
"A20006",
"A20007",
"A20008",
"A20009",
"A20010",
"A20011",
"A20012",
"A20013",
"A20014",
"A20015",
"A20016",
"A20017",
"A20018",
"A20019",
"A20020",
"A20021",
"A20022",
"A20023",
"A20024",
"A20025",
"A20026",
"A20027",
"A20028",
"A20030",
"A20031",
"A20032",
"A20033",
"A20034",
"A20035",
"A20043",
"A20044",
"A20045",
"A20046",
"A20047",
"A20052",
"A20053",
"A20055",
"A20056",
"A20058",
"A20060",
"A20062",
"A20063",
"A20065",
"A20066",
"A20067",
"A20074",
"A20076",
"A20079",
"A20092",
"A20093",
"A20094",
"A20095",
"A20096",
"A20097",
"A20098",
"A20099",
"A20101",
"A20102",
"A20103",
"A20104",
"A20105",
"A20106",
"A20107",
"A20127",
"A20130",
"A20135",
"A20140",
"A20145",
"A20150",
"A20200",
"A20201",
"A20202",
"A20203",
"A20204",
"A20205",
"A20206",
"A20207",
"A20208",
"A20209",
"A20210",
"A20211",
"A20212",
"A20213",
"A20214",
"A20215",
"A20216",
"A20217",
"A20218",
"A20219",
"A20220",
"A20221",
"A20222",
"A20223",
"A20224",
"A20225",
"A20226",
"A20227",
"A20228",
"A20229",
"A20230",
"A20231",
"A20232",
"A20233",
"A20234",
"A20235",
"A20236",
"A20237",
"A20238",
"A20239",
"A20240",
"A20241",
"A20242",
"A20243",
"A20244",
"A20245",
"A20246",
"A20247",
"A20248",
"A20249",
"A20250",
"A20251",
"A20252",
"A20253",
"A20254",
"A20255",
"A20256",
"A20257",
"A20258",
"A20259",
"A20260",
"A20261",
"A20262",
"A20263",
"A20264",
"A20265",
"A20266",
"A20267",
"A20268",
"A20269",
"A20270",
"A20271",
"A20272",
"A20273",
"A20274",
"A20275",
"A20276",
"A20277",
"A20278",
"A20279",
"A20280",
"A20281",
"A20282",
"A20283",
"A20284",
"A20285",
"A20286",
"A20287",
"A20288",
"A20289",
"A20290",
"A20291",
"A20292",
"A20293",
"A20294",
"A20295",
"A20296",
"A20297",
"A20298",
"A20299",
"A20300",
"A20301",
"A20302",
"A20303",
"A20304",
"A20305",
"A20306",
"A20307",
"A20308",
"A20309",
"A20310",
"A20311",
"A20312",
"A20313",
"A20314",
"A20315",
"A20316",
"A20317",
"A20318",
"A20319",
"A20320",
"A20321",
"A20322",
"A20323",
"A20324",
"A20325",
"A20326",
"A20327",
"A20328",
"A20329",
"A20330",
"A20331",
"A20332",
"A20333",
"A20334",
"A20335",
"A20336",
"A20337",
"A20338",
"A20339",
"A20340",
"A20341",
"A20342",
"A20343",
"A20344",
"A20345",
"A20346",
"A20347",
"A20348",
"A20349",
"A20350",
"A20351",
"A20352",
"A20353",
"A20354",
"A20355",
"A20356",
"A20357",
"A20358",
"A20359",
"A20360",
"A20361",
"A20362",
"A20363",
"A20364",
"A20365",
"A20366",
"A20367",
"A20368",
"A20369",
"A20370",
"A20371",
"A20372",
"A20373",
"A20374",
"A20375",
"A20376",
"A20377",
"A20378",
"A20379",
"A20380",
"A20381",
"A20382",
"A20383",
"A20384",
"A20385",
"A20386",
"A20387",
"A20388",
"A20389",
"A20390",
"A20391",
"A20392",
"A20393",
"A20394",
"A20395",
"A20396",
"A20397",
"A20398",
"A20399",
"A20400",
"A20401",
"A20402",
"A20403",
"A20405",
"A20406",
"A20407",
"A20408",
"A20409",
"A20410",
"A20411",
"A20412",
"A20413",
"A20414",
"A20415",
"A20416",
"A20417",
"A20418",
"A20419",
"A20420",
"A20421",
"A20422",
"A20423",
"A20424",
"A20425",
"A20426",
"A20427",
"A20428",
"A20429",
"A20430",
"A20431",
"A20432",
"A20433",
"A20434",
"A20435",
"A20436",
"A20437",
"A20438",
"A20440",
"A20441",
"A20442",
"A20443",
"A20444",
"A20445",
"A20446",
"A20447",
"A20448",
"A20449",
"A20450",
"A20451",
"A20452",
"A20453",
"A20454",
"A20455",
"A20456",
"A20458",
"A20459",
"A20460",
"A20461",
"A20462",
"A20463",
"A20464",
"A20465",
"A20466",
"A20467",
"A20468",
"A20469",
"A20470",
"A20471",
"A20472",
"A20473",
"A20474",
"A20475",
"A20476",
"A20477",
"A20478",
"A20479",
"A20480",
"A20481",
"A20482",
"A20483",
"A20484",
"A20485",
"A20486",
"A20487",
"A20488",
"A20489",
"A20490",
"A20491",
"A20492",
"A20493",
"A20494",
"A20495",
"A20496",
"A20497",
"A20498",
"A20499",
"A20650",
"A20651",
"A20652",
"A20653",
"A20654",
"A20655",
"A20656",
"A20657",
"A20658",
"A20659",
"A20660",
"A20661",
"A20662",
"A20663",
"A20664",
"A20665",
"A20666",
"A20667",
"A20668",
"A20669",
"A20670",
"A20671",
"A20672",
"A20673",
"A20674",
"A20675",
"A20676",
"A20677",
"A20678",
"A20679",
"A20680",
"A20681",
"A20682",
"A20683",
"A20684",
"A20685",
"A20686",
"A20687",
"A20688",
"A20689",
"A20690",
"A20691",
"A20693",
"A20694",
"A20695",
"A20696",
"A20697",
"A20698",
"A20699",
"A20700",
"A20701",
"A20702",
"A20703",
"A20704",
"A20705",
"A20706",
"A20707",
"A20708",
"A20709",
"A20710",
"A20711",
"A20712",
"A20713",
"A20714",
"A20715",
"A20716",
"A20717",
"A20718",
"A20719",
"A20720",
"A20721",
"A20722",
"A20723",
"A20724",
"A20725",
"A20726",
"A20727",
"A20728",
"A20729",
"A20730",
"A20731",
"A20732",
"A20734",
"A20735",
"A20736",
"A20737",
"A20738",
"A20739",
"A20740",
"A20741",
"A20742",
"A20743",
"A20744",
"A20745",
"A20746",
"A20747",
"A20748",
"A20749",
"A20750",
"A20751",
"A20752",
"A20753",
"A20754",
"A20755",
"A20756",
"A20757",
"A20758",
"A20759",
"A20760",
"A20761",
"A20762",
"A20763",
"A20764",
"A20765",
"A20766",
"A20767",
"A20768",
"A20769",
"A20770",
"A20771",
"A20772",
"A20773",
"A20774",
"A20775",
"A20776",
"A20777",
"A20778",
"A20779",
"A20780",
"A20781",
"A20782",
"A20783",
"A20784",
"A20785",
"A20786",
"A20787",
"A20788",
"A20789",
"A20790",
"A20791",
"A20792",
"A20793",
"A20794",
"A20795",
"A20796",
"A20797",
"A20798",
"A20799",
"A20800",
"A20801",
"A20802",
"A20803",
"A20804",
"A20805",
"A20806",
"A20807",
"A20808",
"A20809",
"A20810",
"A20811",
"A20812",
"A20813",
"A20814",
"A20815",
"A20816",
"A20817",
"A20818",
"A20819",
"A20820",
"A20821",
"A20822",
"A20823",
"A20824",
"A20825",
"A20826",
"A20827",
"A20828",
"A20829",
"A20830",
"A20831",
"A20832",
"A20833",
"A20834",
"A20835",
"A20836",
"A20837",
"A20838",
"A20839",
"A20840",
"A20841",
"A20842",
"A20843",
"A20844",
"A20845",
"A20846",
"A20847",
"A20848",
"A20849",
"A20850",
"A20851",
"A20852",
"A20853",
"A20854",
"A20855",
"A20856",
"A20857",
"A21099",
"A21163",
"A21164",
"A21165",
"A21166",
"A21172",
"A21173",
"A21174",
"A21175",
"A21176",
"A21177",
"A21178",
"A21180",
"A21181",
"A21182",
"A21183",
"A21184",
"A21185",
"A21186",
"A21187",
"A21199",
"A21202",
"A21203",
"A21204",
"A21205",
"A21206",
"A21207",
"A21208",
"A21209",
"A21210",
"A21211",
"A21215",
"A21216",
"A21217",
"A21218",
"A21219",
"A21220",
"A21225",
"A21226",
"A21229",
"A21230",
"A21235",
"A21244",
"A21245",
"A21246",
"A21247",
"A21248",
"A21249",
"A21254",
"A21257",
"A21261",
"A21262",
"A21270",
"A21271",
"A21292",
"A21293",
"A21294",
"A21295",
"A21296",
"A21297",
"A21299",
"A21401",
"A21402",
"A21405",
"A21410",
"A21412",
"A21413",
"A21425",
"A21426",
"A21427",
"A21428",
"A21429",
"A21431",
"A21433",
"A21434",
"A21435",
"A21436",
"A21461",
"A21463",
"A21464",
"A21465",
"A21467",
"A21468",
"A21471",
"A21472",
"A21473",
"A21474",
"A21475",
"A21476",
"A21477",
"A21479",
"A21484",
"A21490",
"A21998",
"A22020",
"A22265",
"A22266",
"A22267",
"A22268",
"A22269",
"A22270",
"A22271",
"A22272",
"A22273",
"A22274",
"A22275",
"A22276",
"A22277",
"A22279",
"A22283",
"A22289",
"A22290",
"A22291",
"A22300",
"A22301",
"A22302",
"A22303",
"A22304",
"A22305",
"A22306",
"A22307",
"A22308",
"A22309",
"A22310",
"A22311",
"A22312",
"A22313",
"A22314",
"A22315",
"A22316",
"A22317",
"A22318",
"A22319",
"A22320",
"A22321",
"A22322",
"A22323",
"A22324",
"A22325",
"A22326",
"A22327",
"A22328",
"A22329",
"A22330",
"A22331",
"A22332",
"A22333",
"A22334",
"A22335",
"A22336",
"A22337",
"A22338",
"A22339",
"A22340",
"A22341",
"A22342",
"A22343",
"A22344",
"A22345",
"A22346",
"A22347",
"A22348",
"A22349",
"A22350",
"A22351",
"A22352",
"A22353",
"A22354",
"A22355",
"A22356",
"A22357",
"A22358",
"A22359",
"A22360",
"A22361",
"A22362",
"A22363",
"A22364",
"A22365",
"A22366",
"A22367",
"A22368",
"A22369",
"A22370",
"A22371",
"A22372",
"A22373",
"A22374",
"A22375",
"A22376",
"A22377",
"A22378",
"A22379",
"A22380",
"A22381",
"A22382",
"A22383",
"A22384",
"A22385",
"A22386",
"A22387",
"A22388",
"A22389",
"A22390",
"A22391",
"A22392",
"A22393",
"A22394",
"A22395",
"A22396",
"A22397",
"A22398",
"A22399",
"A22400",
"A22401",
"A22601",
"A23020",
"A23571",
"A24185",
"A24264",
"A24379",
"A24595",
"A24701",
"A24915",
"A25630",
"A25736",
"A26201",
"A26543",
"A26611",
"A26684",
"A26990",
"A27003",
"A27185",
"A27593",
"A27691",
"A27915",
"A28009",
"A28097",
"A28394",
"A28492",
"A28665",
"A28741",
"A28830",
"A28947",
"A29252",
"A29271",
"A29344",
"A29434",
"A29586",
"A29683",
"A29792",
"A29811",
"A29812",
"A29813",
"A80016",
"A81001",
"A81002",
"A81003",
"A81004",
"A81005",
"A81006",
"A81007",
"A81008",
"A81009",
"A81010",
"A81011",
"A81012",
"A81013",
"A81014",
"A81015",
"A81016",
"A81017",
"A81018",
"A81019",
"A81020",
"A81021",
"A81022",
"A81023",
"A81025",
"A81026",
"A81027",
"A81029",
"A81030",
"A81031",
"A81032",
"A81033",
"A81034",
"A81035",
"A81036",
"A81037",
"A81038",
"A81039",
"A81040",
"A81041",
"A81042",
"A81043",
"A81044",
"A81045",
"A81046",
"A81047",
"A81048",
"A81049",
"A81051",
"A81052",
"A81053",
"A81054",
"A81055",
"A81056",
"A81057",
"A81058",
"A81060",
"A81061",
"A81063",
"A81064",
"A81065",
"A81066",
"A81067",
"A81068",
"A81069",
"A81070",
"A81071",
"A81602",
"A81605",
"A81608",
"A81609",
"A81610",
"A81611",
"A81612",
"A81613",
"A81616",
"A81618",
"A81620",
"A81621",
"A81622",
"A81623",
"A81625",
"A81627",
"A81629",
"A81630",
"A81631",
"A81632",
"A81633",
"A81634",
"A82001",
"A82003",
"A82004",
"A82005",
"A82006",
"A82007",
"A82008",
"A82009",
"A82010",
"A82011",
"A82012",
"A82013",
"A82014",
"A82015",
"A82016",
"A82017",
"A82018",
"A82019",
"A82020",
"A82021",
"A82022",
"A82023",
"A82024",
"A82025",
"A82026",
"A82027",
"A82028",
"A82029",
"A82030",
"A82031",
"A82032",
"A82033",
"A82034",
"A82035",
"A82036",
"A82037",
"A82038",
"A82039",
"A82040",
"A82041",
"A82042",
"A82044",
"A82045",
"A82046",
"A82047",
"A82048",
"A82049",
"A82050",
"A82052",
"A82053",
"A82055",
"A82056",
"A82057",
"A82058",
"A82060",
"A82061",
"A82062",
"A82063",
"A82064",
"A82065",
"A82068",
"A82070",
"A82071",
"A82072",
"A82074",
"A82075",
"A82077",
"A82502",
"A82607",
"A82608",
"A82609",
"A82613",
"A82614",
"A82615",
"A82616",
"A82617",
"A82618",
"A82619",
"A82620",
"A82621",
"A82622",
"A82623",
"A82624",
"A82625",
"A82627",
"A82629",
"A82630",
"A82631",
"A82632",
"A82635",
"A82636",
"A82641",
"A82642",
"A82645",
"A82646",
"A82647",
"A82648",
"A82649",
"A82650",
"A82651",
"A82654",
"A83001",
"A83003",
"A83004",
"A83005",
"A83006",
"A83007",
"A83008",
"A83009",
"A83010",
"A83011",
"A83012",
"A83013",
"A83014",
"A83015",
"A83016",
"A83017",
"A83018",
"A83019",
"A83020",
"A83021",
"A83022",
"A83023",
"A83024",
"A83025",
"A83026",
"A83027",
"A83028",
"A83029",
"A83030",
"A83031",
"A83032",
"A83033",
"A83034",
"A83035",
"A83036",
"A83037",
"A83038",
"A83040",
"A83041",
"A83042",
"A83043",
"A83044",
"A83045",
"A83046",
"A83047",
"A83048",
"A83049",
"A83050",
"A83051",
"A83052",
"A83054",
"A83055",
"A83057",
"A83060",
"A83061",
"A83066",
"A83068",
"A83070",
"A83071",
"A83072",
"A83073",
"A83074",
"A83075",
"A83076",
"A83603",
"A83610",
"A83616",
"A83617",
"A83618",
"A83619",
"A83622",
"A83626",
"A83627",
"A83630",
"A83632",
"A83634",
"A83635",
"A83636",
"A83637",
"A83638",
"A83641",
"A83642",
"A83644",
"A84002",
"A84003",
"A84005",
"A84006",
"A84007",
"A84008",
"A84009",
"A84011",
"A84013",
"A84014",
"A84015",
"A84016",
"A84018",
"A84020",
"A84021",
"A84022",
"A84024",
"A84025",
"A84026",
"A84027",
"A84028",
"A84029",
"A84030",
"A84031",
"A84032",
"A84033",
"A84034",
"A84035",
"A84036",
"A84037",
"A84038",
"A84039",
"A84040",
"A84042",
"A84043",
"A84044",
"A84045",
"A84047",
"A84048",
"A84604",
"A84609",
"A84613",
"A84614",
"A84619",
"A85001",
"A85002",
"A85003",
"A85004",
"A85005",
"A85006",
"A85007",
"A85008",
"A85009",
"A85010",
"A85011",
"A85012",
"A85013",
"A85014",
"A85015",
"A85016",
"A85017",
"A85018",
"A85019",
"A85020",
"A85021",
"A85023",
"A85024",
"A85025",
"A85026",
"A85601",
"A85605",
"A85609",
"A85611",
"A85614",
"A85615",
"A85616",
"A85617",
"A85618",
"A85619",
"A85620",
"A85621",
"A86003",
"A86004",
"A86005",
"A86006",
"A86007",
"A86008",
"A86009",
"A86010",
"A86011",
"A86012",
"A86013",
"A86015",
"A86016",
"A86017",
"A86018",
"A86020",
"A86021",
"A86022",
"A86023",
"A86024",
"A86025",
"A86026",
"A86027",
"A86028",
"A86029",
"A86030",
"A86031",
"A86033",
"A86035",
"A86036",
"A86037",
"A86038",
"A86040",
"A86041",
"A86601",
"A86608",
"A86612",
"A86618",
"A87002",
"A87003",
"A87004",
"A87005",
"A87006",
"A87007",
"A87008",
"A87009",
"A87011",
"A87012",
"A87013",
"A87014",
"A87015",
"A87016",
"A87017",
"A87019",
"A87020",
"A87022",
"A87023",
"A87027",
"A87029",
"A87030",
"A87600",
"A87604",
"A87608",
"A87612",
"A87615",
"A88001",
"A88002",
"A88003",
"A88004",
"A88005",
"A88006",
"A88007",
"A88008",
"A88009",
"A88010",
"A88011",
"A88012",
"A88013",
"A88014",
"A88015",
"A88016",
"A88018",
"A88020",
"A88022",
"A88023",
"A88025",
"A88601",
"A88603",
"A88608",
"A88611",
"A88613",
"A88614",
"A88616",
"A89001",
"A89002",
"A89003",
"A89004",
"A89005",
"A89006",
"A89007",
"A89008",
"A89009",
"A89010",
"A89011",
"A89012",
"A89013",
"A89014",
"A89015",
"A89016",
"A89017",
"A89018",
"A89019",
"A89020",
"A89021",
"A89022",
"A89023",
"A89024",
"A89025",
"A89026",
"A89027",
"A89028",
"A89029",
"A89030",
"A89031",
"A89032",
"A89034",
"A89035",
"A89036",
"A89038",
"A89040",
"A89041",
"A89042",
"A89603",
"A89604",
"A89610",
"A89611",
"A89612",
"A89614",
"A89616",
"A89617",
"A89620",
"A89621",
"A89623",
"A89624",
"A89630",
"A91023",
"A91024",
"A91168",
"A91180",
"A91181",
"A91182",
"A91192",
"A91193",
"A91299",
"A91346",
"A91580",
"AD2000",
"B81001",
"B81002",
"B81003",
"B81004",
"B81005",
"B81006",
"B81007",
"B81008",
"B81009",
"B81010",
"B81011",
"B81012",
"B81013",
"B81014",
"B81015",
"B81016",
"B81017",
"B81018",
"B81019",
"B81020",
"B81021",
"B81022",
"B81023",
"B81024",
"B81025",
"B81026",
"B81027",
"B81029",
"B81030",
"B81031",
"B81032",
"B81034",
"B81035",
"B81036",
"B81037",
"B81038",
"B81039",
"B81040",
"B81041",
"B81042",
"B81043",
"B81044",
"B81045",
"B81046",
"B81047",
"B81048",
"B81049",
"B81050",
"B81051",
"B81052",
"B81053",
"B81054",
"B81055",
"B81056",
"B81057",
"B81058",
"B81060",
"B81061",
"B81062",
"B81063",
"B81064",
"B81065",
"B81066",
"B81068",
"B81069",
"B81070",
"B81072",
"B81074",
"B81075",
"B81077",
"B81080",
"B81081",
"B81082",
"B81083",
"B81084",
"B81085",
"B81087",
"B81088",
"B81089",
"B81090",
"B81091",
"B81092",
"B81094",
"B81095",
"B81097",
"B81099",
"B81100",
"B81101",
"B81102",
"B81104",
"B81108",
"B81109",
"B81110",
"B81112",
"B81113",
"B81118",
"B81119",
"B81120",
"B81121",
"B81602",
"B81603",
"B81606",
"B81609",
"B81615",
"B81616",
"B81617",
"B81618",
"B81619",
"B81620",
"B81622",
"B81624",
"B81626",
"B81628",
"B81629",
"B81630",
"B81631",
"B81632",
"B81633",
"B81634",
"B81635",
"B81636",
"B81639",
"B81642",
"B81644",
"B81645",
"B81646",
"B81647",
"B81648",
"B81650",
"B81653",
"B81655",
"B81656",
"B81658",
"B81662",
"B81663",
"B81664",
"B81665",
"B81666",
"B81668",
"B81669",
"B81670",
"B81671",
"B81674",
"B81675",
"B81676",
"B81677",
"B81679",
"B81682",
"B81683",
"B81685",
"B81686",
"B81688",
"B81689",
"B81690",
"B81691",
"B81692",
"B81693",
"B81694",
"B81695",
"B81696",
"B81697",
"B82001",
"B82002",
"B82003",
"B82004",
"B82005",
"B82006",
"B82007",
"B82008",
"B82010",
"B82011",
"B82012",
"B82013",
"B82014",
"B82016",
"B82017",
"B82018",
"B82019",
"B82020",
"B82021",
"B82022",
"B82023",
"B82024",
"B82025",
"B82026",
"B82027",
"B82028",
"B82029",
"B82030",
"B82031",
"B82032",
"B82033",
"B82034",
"B82035",
"B82036",
"B82037",
"B82038",
"B82041",
"B82042",
"B82044",
"B82045",
"B82046",
"B82047",
"B82049",
"B82050",
"B82053",
"B82054",
"B82055",
"B82056",
"B82057",
"B82059",
"B82060",
"B82061",
"B82062",
"B82063",
"B82064",
"B82065",
"B82066",
"B82067",
"B82068",
"B82069",
"B82071",
"B82072",
"B82073",
"B82074",
"B82075",
"B82076",
"B82077",
"B82078",
"B82079",
"B82080",
"B82081",
"B82082",
"B82083",
"B82086",
"B82087",
"B82088",
"B82091",
"B82092",
"B82095",
"B82097",
"B82098",
"B82099",
"B82100",
"B82101",
"B82102",
"B82103",
"B82104",
"B82105",
"B82106",
"B82606",
"B82609",
"B82611",
"B82613",
"B82614",
"B82617",
"B82618",
"B82619",
"B82620",
"B82622",
"B82623",
"B82624",
"B82627",
"B82628",
"B82632",
"B82636",
"B82637",
"B82639",
"B82640",
"B82645",
"B82646",
"B82683",
"B83001",
"B83002",
"B83003",
"B83005",
"B83006",
"B83007",
"B83008",
"B83009",
"B83010",
"B83011",
"B83012",
"B83013",
"B83014",
"B83015",
"B83016",
"B83017",
"B83018",
"B83019",
"B83020",
"B83021",
"B83022",
"B83023",
"B83025",
"B83026",
"B83027",
"B83028",
"B83029",
"B83030",
"B83031",
"B83032",
"B83033",
"B83034",
"B83035",
"B83037",
"B83038",
"B83039",
"B83040",
"B83041",
"B83042",
"B83043",
"B83044",
"B83045",
"B83049",
"B83050",
"B83051",
"B83052",
"B83054",
"B83055",
"B83056",
"B83058",
"B83061",
"B83062",
"B83063",
"B83064",
"B83066",
"B83067",
"B83069",
"B83070",
"B83071",
"B83602",
"B83604",
"B83605",
"B83611",
"B83613",
"B83614",
"B83617",
"B83620",
"B83621",
"B83622",
"B83624",
"B83626",
"B83627",
"B83628",
"B83629",
"B83630",
"B83631",
"B83638",
"B83641",
"B83642",
"B83646",
"B83653",
"B83654",
"B83657",
"B83658",
"B83659",
"B83660",
"B83661",
"B83673",
"B84001",
"B84002",
"B84003",
"B84004",
"B84005",
"B84006",
"B84007",
"B84008",
"B84009",
"B84010",
"B84011",
"B84012",
"B84013",
"B84014",
"B84016",
"B84017",
"B84019",
"B84021",
"B84610",
"B84612",
"B84613",
"B84615",
"B84618",
"B84623",
"B85001",
"B85002",
"B85004",
"B85005",
"B85006",
"B85008",
"B85009",
"B85010",
"B85011",
"B85012",
"B85014",
"B85015",
"B85016",
"B85018",
"B85019",
"B85020",
"B85021",
"B85022",
"B85023",
"B85024",
"B85025",
"B85026",
"B85027",
"B85028",
"B85030",
"B85031",
"B85032",
"B85033",
"B85036",
"B85037",
"B85038",
"B85041",
"B85042",
"B85044",
"B85048",
"B85049",
"B85051",
"B85054",
"B85055",
"B85058",
"B85059",
"B85060",
"B85061",
"B85062",
"B85606",
"B85610",
"B85611",
"B85612",
"B85614",
"B85619",
"B85620",
"B85621",
"B85622",
"B85623",
"B85634",
"B85636",
"B85638",
"B85640",
"B85641",
"B85644",
"B85645",
"B85646",
"B85650",
"B85652",
"B85655",
"B85659",
"B85660",
"B86001",
"B86002",
"B86003",
"B86004",
"B86005",
"B86006",
"B86007",
"B86008",
"B86009",
"B86010",
"B86011",
"B86012",
"B86013",
"B86014",
"B86015",
"B86016",
"B86017",
"B86018",
"B86019",
"B86020",
"B86022",
"B86023",
"B86024",
"B86025",
"B86026",
"B86028",
"B86029",
"B86030",
"B86031",
"B86032",
"B86033",
"B86034",
"B86035",
"B86036",
"B86037",
"B86038",
"B86039",
"B86041",
"B86042",
"B86043",
"B86044",
"B86046",
"B86047",
"B86048",
"B86049",
"B86050",
"B86051",
"B86052",
"B86054",
"B86055",
"B86056",
"B86057",
"B86058",
"B86059",
"B86060",
"B86061",
"B86062",
"B86064",
"B86066",
"B86067",
"B86068",
"B86069",
"B86070",
"B86071",
"B86074",
"B86075",
"B86077",
"B86081",
"B86086",
"B86089",
"B86092",
"B86093",
"B86094",
"B86095",
"B86096",
"B86100",
"B86101",
"B86102",
"B86103",
"B86104",
"B86105",
"B86106",
"B86107",
"B86108",
"B86109",
"B86110",
"B86623",
"B86625",
"B86628",
"B86633",
"B86638",
"B86642",
"B86643",
"B86648",
"B86650",
"B86651",
"B86654",
"B86655",
"B86658",
"B86666",
"B86667",
"B86669",
"B86670",
"B86672",
"B86673",
"B86675",
"B86678",
"B86682",
"B86683",
"B87001",
"B87002",
"B87003",
"B87004",
"B87005",
"B87006",
"B87007",
"B87008",
"B87009",
"B87011",
"B87012",
"B87013",
"B87015",
"B87016",
"B87017",
"B87018",
"B87019",
"B87020",
"B87021",
"B87022",
"B87023",
"B87025",
"B87026",
"B87027",
"B87028",
"B87029",
"B87030",
"B87031",
"B87032",
"B87033",
"B87036",
"B87039",
"B87040",
"B87041",
"B87042",
"B87044",
"B87600",
"B87602",
"B87604",
"B87614",
"C81001",
"C81002",
"C81003",
"C81004",
"C81005",
"C81006",
"C81007",
"C81008",
"C81009",
"C81010",
"C81012",
"C81013",
"C81014",
"C81015",
"C81016",
"C81018",
"C81019",
"C81021",
"C81023",
"C81026",
"C81027",
"C81028",
"C81029",
"C81033",
"C81034",
"C81035",
"C81036",
"C81040",
"C81042",
"C81047",
"C81051",
"C81052",
"C81054",
"C81056",
"C81060",
"C81071",
"C81072",
"C81074",
"C81075",
"C81076",
"C81077",
"C81080",
"C81081",
"C81082",
"C81091",
"C81094",
"C81095",
"C81096",
"C81097",
"C81099",
"C81106",
"C81107",
"C81115",
"C81118",
"C81604",
"C81611",
"C81616",
"C81620",
"C81626",
"C81630",
"C81633",
"C81651",
"C81678",
"C82001",
"C82002",
"C82003",
"C82005",
"C82007",
"C82008",
"C82009",
"C82010",
"C82011",
"C82012",
"C82015",
"C82016",
"C82018",
"C82019",
"C82026",
"C82029",
"C82032",
"C82036",
"C82038",
"C82040",
"C82042",
"C82044",
"C82052",
"C82058",
"C82059",
"C82063",
"C82064",
"C82066",
"C82092",
"C82093",
"C82103",
"C82121",
"C82674",
"C83001",
"C83002",
"C83004",
"C83005",
"C83008",
"C83009",
"C83011",
"C83014",
"C83016",
"C83019",
"C83030",
"C83054",
"C83063",
"C83073",
"C83078",
"C83614",
"C83615",
"C83617",
"C83637",
"C83649",
"C83656",
"C84001",
"C84002",
"C84003",
"C84004",
"C84005",
"C84008",
"C84009",
"C84010",
"C84011",
"C84012",
"C84013",
"C84014",
"C84016",
"C84017",
"C84018",
"C84019",
"C84020",
"C84021",
"C84023",
"C84024",
"C84026",
"C84029",
"C84030",
"C84032",
"C84033",
"C84034",
"C84036",
"C84039",
"C84043",
"C84045",
"C84047",
"C84051",
"C84057",
"C84059",
"C84069",
"C84078",
"C84080",
"C84087",
"C84092",
"C84106",
"C84113",
"C84120",
"C84123",
"C84128",
"C84140",
"C84150",
"C84613",
"C84619",
"C84624",
"C84628",
"C84637",
"C84648",
"C84649",
"C84655",
"C84656",
"C84658",
"C84661",
"C84675",
"C84676",
"C84678",
"C84679",
"C84710",
"C85001",
"C85003",
"C85004",
"C85005",
"C85007",
"C85011",
"C85022",
"C85033",
"C85617",
"C85618",
"C85620",
"C86001",
"C86002",
"C86003",
"C86005",
"C86006",
"C86007",
"C86009",
"C86012",
"C86023",
"C86025",
"C86029",
"C86030",
"C86614",
"C86622",
"C87002",
"C87003",
"C87004",
"C87005",
"C87007",
"C87008",
"C87013",
"C87019",
"C87022",
"C87030",
"C87604",
"C87612",
"C87617",
"C87621",
"C88005",
"C88006",
"C88007",
"C88008",
"C88009",
"C88014",
"C88016",
"C88028",
"C88032",
"C88037",
"C88038",
"C88041",
"C88043",
"C88046",
"C88048",
"C88062",
"C88073",
"C88077",
"C88078",
"C88079",
"C88080",
"C88081",
"C88082",
"C88083",
"C88084",
"C88086",
"C88091",
"C88096",
"C88652",
"C88653",
"C88655",
"D81001",
"D81002",
"D81003",
"D81004",
"D81006",
"D81007",
"D81008",
"D81014",
"D81015",
"D81016",
"D81019",
"D81021",
"D81022",
"D81023",
"D81024",
"D81025",
"D81026",
"D81029",
"D81031",
"D81045",
"D81046",
"D81047",
"D81050",
"D81616",
"D81618",
"D81625",
"D81629",
"D81633",
"D82001",
"D82002",
"D82003",
"D82004",
"D82005",
"D82006",
"D82007",
"D82008",
"D82009",
"D82010",
"D82011",
"D82012",
"D82015",
"D82016",
"D82019",
"D82020",
"D82021",
"D82026",
"D82027",
"D82031",
"D82034",
"D82040",
"D82042",
"D82044",
"D82051",
"D82053",
"D82055",
"D82060",
"D82061",
"D82062",
"D82064",
"D82067",
"D82069",
"D82070",
"D82073",
"D82078",
"D82087",
"D82088",
"D82096",
"D82099",
"D82103",
"D82104",
"D82105",
"D82106",
"D82614",
"D82620",
"D82623",
"D82625",
"D82626",
"D82632",
"D82633",
"D82634",
"D82641",
"D82643",
"D83001",
"D83002",
"D83003",
"D83004",
"D83005",
"D83006",
"D83009",
"D83010",
"D83011",
"D83012",
"D83013",
"D83026",
"D83030",
"D83033",
"D83034",
"D83036",
"D83043",
"D83060",
"D83069",
"D83071",
"D83074",
"D83075",
"D83078",
"D83081",
"D83620",
"E00001",
"E81001",
"E81002",
"E81003",
"E81004",
"E81005",
"E81006",
"E81008",
"E81010",
"E81011",
"E81016",
"E81017",
"E81019",
"E81023",
"E81026",
"E81028",
"E81030",
"E81031",
"E81037",
"E81038",
"E81046",
"E81048",
"E81049",
"E81051",
"E81056",
"E81060",
"E81061",
"E81064",
"E81611",
"E81615",
"E81627",
"E81640",
"E82001",
"E82002",
"E82004",
"E82005",
"E82009",
"E82011",
"E82012",
"E82013",
"E82016",
"E82019",
"E82020",
"E82024",
"E82025",
"E82027",
"E82028",
"E82040",
"E82042",
"E82043",
"E82045",
"E82048",
"E82049",
"E82053",
"E82055",
"E82060",
"E82074",
"E82078",
"E82083",
"E82085",
"E82094",
"E82096",
"E82097",
"E82099",
"E82109",
"E82113",
"E82117",
"E82124",
"E82614",
"E82624",
"E82641",
"E82644",
"E82652",
"E82657",
"E82662",
"E83003",
"E83005",
"E83006",
"E83007",
"E83008",
"E83009",
"E83018",
"E83027",
"E83044",
"E83600",
"E83613",
"E83654",
"E84002",
"E84003",
"E84004",
"E84005",
"E84006",
"E84007",
"E84012",
"E84013",
"E84014",
"E84015",
"E84017",
"E84025",
"E84044",
"E84056",
"E84059",
"E84064",
"E84067",
"E84080",
"E84601",
"E84627",
"E84645",
"E84646",
"E84658",
"E84695",
"E84702",
"E85001",
"E85012",
"E85013",
"E85014",
"E85019",
"E85053",
"E85059",
"E85066",
"E85075",
"E85096",
"E85109",
"E85110",
"E85120",
"E85623",
"E85650",
"E85655",
"E85657",
"E85675",
"E85681",
"E85714",
"E85718",
"E85744",
"E86001",
"E86003",
"E86004",
"E86005",
"E86006",
"E86007",
"E86009",
"E86010",
"E86011",
"E86012",
"E86014",
"E86015",
"E86016",
"E86017",
"E86018",
"E86019",
"E86020",
"E86022",
"E86023",
"E86024",
"E86026",
"E86027",
"E86028",
"E86029",
"E86030",
"E86033",
"E86034",
"E86036",
"E86038",
"E86041",
"E86042",
"E86605",
"E86609",
"E86610",
"E86612",
"E86615",
"E86616",
"E86617",
"E86618",
"E86619",
"E86620",
"E86622",
"E86625",
"E86626",
"E86632",
"E86633",
"E86635",
"E86637",
"E86638",
"E86639",
"E86640",
"E87006",
"E87008",
"E87016",
"E87021",
"E87024",
"E87048",
"E87052",
"E87070",
"E87630",
"E87637",
"E87665",
"E87670",
"E87681",
"E87711",
"E87735",
"E87737",
"E87745",
"E87746",
"E87761",
"F81002",
"F81003",
"F81004",
"F81005",
"F81009",
"F81010",
"F81011",
"F81012",
"F81014",
"F81015",
"F81016",
"F81017",
"F81018",
"F81019",
"F81020",
"F81021",
"F81022",
"F81026",
"F81027",
"F81030",
"F81043",
"F81052",
"F81065",
"F81073",
"F81074",
"F81076",
"F81079",
"F81082",
"F81084",
"F81087",
"F81088",
"F81091",
"F81102",
"F81103",
"F81110",
"F81112",
"F81120",
"F81121",
"F81133",
"F81143",
"F81151",
"F81153",
"F81183",
"F81185",
"F81219",
"F81608",
"F81633",
"F81645",
"F81679",
"F81711",
"F81721",
"F81729",
"F81748",
"F82001",
"F82002",
"F82003",
"F82004",
"F82005",
"F82011",
"F82012",
"F82015",
"F82027",
"F82028",
"F82031",
"F82051",
"F82678",
"F82680",
"F83002",
"F83003",
"F83004",
"F83005",
"F83006",
"F83011",
"F83012",
"F83015",
"F83016",
"F83017",
"F83019",
"F83020",
"F83023",
"F83025",
"F83026",
"F83036",
"F83043",
"F83046",
"F83050",
"F83058",
"F83064",
"F83632",
"F83647",
"F83675",
"F84003",
"F84004",
"F84006",
"F84008",
"F84010",
"F84012",
"F84013",
"F84015",
"F84016",
"F84017",
"F84018",
"F84032",
"F84062",
"F84063",
"F84067",
"F84087",
"F84092",
"F84107",
"F84620",
"F84682",
"F84698",
"F84714",
"F84746",
"F84747",
"F85002",
"F85003",
"F85014",
"F85020",
"F85024",
"F85027",
"F85030",
"F85045",
"F85048",
"F85049",
"F85645",
"F85663",
"F85669",
"F86022",
"F86028",
"F86032",
"F86042",
"F86616",
"F86627",
"F86629",
"F86667",
"F86679",
"F86700",
"F86712",
"F86731",
"G81002",
"G81007",
"G81009",
"G81023",
"G81026",
"G81030",
"G81035",
"G81038",
"G81052",
"G81057",
"G81065",
"G81086",
"G81090",
"G81102",
"G81611",
"G81643",
"G81653",
"G81669",
"G81698",
"G82011",
"G82013",
"G82016",
"G82017",
"G82019",
"G82022",
"G82024",
"G82026",
"G82036",
"G82039",
"G82050",
"G82051",
"G82074",
"G82087",
"G82090",
"G82095",
"G82099",
"G82103",
"G82105",
"G82110",
"G82114",
"G82116",
"G82133",
"G82143",
"G82147",
"G82152",
"G82154",
"G82160",
"G82210",
"G82211",
"G82229",
"G82230",
"G82234",
"G82630",
"G82652",
"G82684",
"G82702",
"G82753",
"G82777",
"G83002",
"G83003",
"G83004",
"G83005",
"G83006",
"G83007",
"G83029",
"G83031",
"G83055",
"G83061",
"G83069",
"G83632",
"G83674",
"G83679",
"G84001",
"G84003",
"G84004",
"G84010",
"G84026",
"G84033",
"G84602",
"G85001",
"G85002",
"G85003",
"G85004",
"G85006",
"G85008",
"G85021",
"G85041",
"G85075",
"G85088",
"G85112",
"G85123",
"G85124",
"G85127",
"G85130",
"G85132",
"G85618",
"G85638",
"G85642",
"G85651",
"G85672",
"G85683",
"G85684",
"G85711",
"H81003",
"H81004",
"H81013",
"H81020",
"H81022",
"H81025",
"H81026",
"H81030",
"H81031",
"H81032",
"H81033",
"H81035",
"H81038",
"H81044",
"H81047",
"H81052",
"H81054",
"H81062",
"H81074",
"H81078",
"H81082",
"H81084",
"H81090",
"H81094",
"H81101",
"H81109",
"H81110",
"H81118",
"H81128",
"H81611",
"H81658",
"H81663",
"H81666",
"H81673",
"H82002",
"H82005",
"H82007",
"H82009",
"H82032",
"H82033",
"H82051",
"H82055",
"H82061",
"H82063",
"H82615",
"H82626",
"H82641",
"H82643",
"H83001",
"H83002",
"H83004",
"H83005",
"H83011",
"H83016",
"H83025",
"H83608",
"H83624",
"H83627",
"H84002",
"H84005",
"H84006",
"H84008",
"H84010",
"H84011",
"H84015",
"H84016",
"H84027",
"H84033",
"H84043",
"H84049",
"H84051",
"H84055",
"H84060",
"H84061",
"H84607",
"H84609",
"H84633",
"H84635",
"H84636",
"H85003",
"H85005",
"H85007",
"H85016",
"H85018",
"H85020",
"H85021",
"H85024",
"H85028",
"H85033",
"H85038",
"H85041",
"H85048",
"H85051",
"H85052",
"H85055",
"H85061",
"H85066",
"H85069",
"H85070",
"H85076",
"H85087",
"H85103",
"H85114",
"H85633",
"H85639",
"H85649",
"H85680",
"H85686",
"H85687",
"J81009",
"J81010",
"J81017",
"J81027",
"J81064",
"J81072",
"J81074",
"J81075",
"J81087",
"J81613",
"J81626",
"J81646",
"J82001",
"J82007",
"J82015",
"J82021",
"J82026",
"J82054",
"J82059",
"J82066",
"J82067",
"J82073",
"J82075",
"J82079",
"J82081",
"J82093",
"J82131",
"J82132",
"J82139",
"J82158",
"J82184",
"J82190",
"J82198",
"J82199",
"J82215",
"J82217",
"J82628",
"J82642",
"J82670",
"J83001",
"J83004",
"J83016",
"J83028",
"J83029",
"J83039",
"J83040",
"J83042",
"J83607",
"J83619",
"J83625",
"J84016",
"K81002",
"K81004",
"K81017",
"K81022",
"K81024",
"K81042",
"K81046",
"K81047",
"K81052",
"K81053",
"K81061",
"K81063",
"K81073",
"K81075",
"K81103",
"K81633",
"K81636",
"K81645",
"K81649",
"K81668",
"K82001",
"K82003",
"K82007",
"K82009",
"K82013",
"K82023",
"K82028",
"K82029",
"K82043",
"K82048",
"K82052",
"K82056",
"K82063",
"K82066",
"K82070",
"K82076",
"K82619",
"K82630",
"K82631",
"K82637",
"K83002",
"K83005",
"K83015",
"K83025",
"K83026",
"K83043",
"K83047",
"K83056",
"K83059",
"K83071",
"K83607",
"K83610",
"K83620",
"K83621",
"K83622",
"K83625",
"K84001",
"K84008",
"K84014",
"K84031",
"K84036",
"K84037",
"K84044",
"K84049",
"K84052",
"K84054",
"K84075",
"K84079",
"K84080",
"K84616",
"K84624",
"L81002",
"L81004",
"L81007",
"L81008",
"L81009",
"L81012",
"L81014",
"L81017",
"L81018",
"L81019",
"L81023",
"L81026",
"L81032",
"L81036",
"L81050",
"L81051",
"L81052",
"L81055",
"L81062",
"L81079",
"L81082",
"L81106",
"L81111",
"L81121",
"L81125",
"L81127",
"L81130",
"L81134",
"L81632",
"L81639",
"L81642",
"L81649",
"L82012",
"L82017",
"L82021",
"L82045",
"L82054",
"L82066",
"L83002",
"L83006",
"L83013",
"L83029",
"L83043",
"L83045",
"L83050",
"L83088",
"L83094",
"L83102",
"L83105",
"L83108",
"L83135",
"L83137",
"L83629",
"L83655",
"L83667",
"L84002",
"L84013",
"L84014",
"L84040",
"L84059",
"L84068",
"L84084",
"L84606",
"L85004",
"L85016",
"L85037",
"L85061",
"L85602",
"L85608",
"M81001",
"M81002",
"M81003",
"M81004",
"M81005",
"M81006",
"M81007",
"M81009",
"M81010",
"M81011",
"M81012",
"M81013",
"M81014",
"M81015",
"M81016",
"M81017",
"M81018",
"M81019",
"M81020",
"M81025",
"M81026",
"M81027",
"M81034",
"M81043",
"M81048",
"M81061",
"M81062",
"M81067",
"M81069",
"M81082",
"M81089",
"M82002",
"M82003",
"M82004",
"M82005",
"M82006",
"M82007",
"M82008",
"M82009",
"M82026",
"M82042",
"M82045",
"M82046",
"M82056",
"M82601",
"M83001",
"M83004",
"M83005",
"M83007",
"M83009",
"M83010",
"M83011",
"M83012",
"M83013",
"M83014",
"M83016",
"M83018",
"M83019",
"M83020",
"M83021",
"M83024",
"M83026",
"M83030",
"M83031",
"M83032",
"M83033",
"M83034",
"M83042",
"M83048",
"M83062",
"M83063",
"M83103",
"M83127",
"M83138",
"M83148",
"M83616",
"M83639",
"M83666",
"M83668",
"M83697",
"M84001",
"M84002",
"M84003",
"M84004",
"M84005",
"M84006",
"M84007",
"M84008",
"M84009",
"M84010",
"M84012",
"M84013",
"M84016",
"M84019",
"M84020",
"M84022",
"M84024",
"M84028",
"M84037",
"M84040",
"M84043",
"M84046",
"M84048",
"M84051",
"M84066",
"M84067",
"M84616",
"M84624",
"M84627",
"M84629",
"M85002",
"M85005",
"M85007",
"M85009",
"M85010",
"M85011",
"M85015",
"M85018",
"M85019",
"M85020",
"M85024",
"M85025",
"M85028",
"M85031",
"M85037",
"M85041",
"M85042",
"M85043",
"M85046",
"M85048",
"M85051",
"M85053",
"M85055",
"M85058",
"M85059",
"M85060",
"M85061",
"M85064",
"M85069",
"M85076",
"M85083",
"M85085",
"M85088",
"M85098",
"M85111",
"M85114",
"M85116",
"M85123",
"M85128",
"M85149",
"M85167",
"M85176",
"M85642",
"M85665",
"M85669",
"M85676",
"M85699",
"M85749",
"M85770",
"M85778",
"M85792",
"M85803",
"M86007",
"M86017",
"M86630",
"M87001",
"M87002",
"M87003",
"M87015",
"M87601",
"M87603",
"M87617",
"M88006",
"M88020",
"M88026",
"M88035",
"M89001",
"M89002",
"M89012",
"M89020",
"M89023",
"M89606",
"M91003",
"M91004",
"M91010",
"M91011",
"M91013",
"M91019",
"M91020",
"M91021",
"M91022",
"M91024",
"M91025",
"M91026",
"M91027",
"M91611",
"M91624",
"M91626",
"M91628",
"M91643",
"M92001",
"M92002",
"M92003",
"M92004",
"M92006",
"M92007",
"M92008",
"M92009",
"M92010",
"M92013",
"M92020",
"M92028",
"M92606",
"M92613",
"N81001",
"N81002",
"N81005",
"N81006",
"N81007",
"N81008",
"N81009",
"N81010",
"N81013",
"N81015",
"N81017",
"N81018",
"N81021",
"N81024",
"N81025",
"N81026",
"N81029",
"N81034",
"N81037",
"N81040",
"N81051",
"N81052",
"N81061",
"N81063",
"N81069",
"N81080",
"N81081",
"N81083",
"N81085",
"N81091",
"N81092",
"N81093",
"N81094",
"N81095",
"N81096",
"N81100",
"N81102",
"N81125",
"N81615",
"N81626",
"N81628",
"N81649",
"N81658",
"N82001",
"N82002",
"N82003",
"N82011",
"N82014",
"N82019",
"N82024",
"N82044",
"N82054",
"N82062",
"N82065",
"N82079",
"N82095",
"N82099",
"N82103",
"N82115",
"N82117",
"N82617",
"N82623",
"N82641",
"N82656",
"N82659",
"N82660",
"N82661",
"N82663",
"N82664",
"N82665",
"N82667",
"N82668",
"N82669",
"N82670",
"N82671",
"N82672",
"N82673",
"N82674",
"N82675",
"N82676",
"N82677",
"N82678",
"N83003",
"N83005",
"N83006",
"N83007",
"N83009",
"N83012",
"N83013",
"N83014",
"N83015",
"N83018",
"N83032",
"N83035",
"N83057",
"N84001",
"N84002",
"N84003",
"N84004",
"N84005",
"N84006",
"N84007",
"N84008",
"N84009",
"N84012",
"N84013",
"N84015",
"N84021",
"N84036",
"N84625",
"N85004",
"N85027",
"N85040",
"N85053",
"N85058",
"P81002",
"P81003",
"P81006",
"P81010",
"P81014",
"P81015",
"P81016",
"P81017",
"P81020",
"P81022",
"P81027",
"P81033",
"P81037",
"P81038",
"P81040",
"P81042",
"P81046",
"P81051",
"P81054",
"P81055",
"P81066",
"P81083",
"P81084",
"P81143",
"P81160",
"P81184",
"P81191",
"P81204",
"P81668",
"P81687",
"P81707",
"P81710",
"P81713",
"P81714",
"P81738",
"P81769",
"P82001",
"P82002",
"P82003",
"P82005",
"P82007",
"P82009",
"P82010",
"P82011",
"P82012",
"P82014",
"P82029",
"P82607",
"P82617",
"P82626",
"P83001",
"P83003",
"P83005",
"P83007",
"P83008",
"P83009",
"P83012",
"P83013",
"P83017",
"P83019",
"P83021",
"P83023",
"P83030",
"P83621",
"P83625",
"P84004",
"P84005",
"P84009",
"P84010",
"P84011",
"P84012",
"P84016",
"P84017",
"P84019",
"P84020",
"P84023",
"P84024",
"P84025",
"P84026",
"P84027",
"P84028",
"P84030",
"P84032",
"P84033",
"P84037",
"P84038",
"P84039",
"P84040",
"P84041",
"P84048",
"P84053",
"P84054",
"P84064",
"P84626",
"P84633",
"P84689",
"P85002",
"P85004",
"P85006",
"P85611",
"P85613",
"P86002",
"P86004",
"P86006",
"P86010",
"P86021",
"P86624",
"P87002",
"P87003",
"P87008",
"P87015",
"P87016",
"P87020",
"P87026",
"P87039",
"P87609",
"P87612",
"P87625",
"P87626",
"P87630",
"P87641",
"P87642",
"P87657",
"P87668",
"P88001",
"P88002",
"P88003",
"P88026",
"P88034",
"P88625",
"P88635",
"P89002",
"P89006",
"P89010",
"P91003",
"P91004",
"P91007",
"P91014",
"P91027",
"P91028",
"P91609",
"P92001",
"P92003",
"P92005",
"P92012",
"P92017",
"P92030",
"P92031",
"P92033",
"P92630",
"P92652",
"S16047",
"S16136",
"S16206",
"S16579",
"V02700",
"V81997",
"V81998",
"V81999",
"W00000",
"W00001",
"W00002",
"W00003",
"W00005",
"W00006",
"W00007",
"W00011",
"W91016",
"W91042",
"W91046",
"W91050",
"W92008",
"W92021",
"W92034",
"W92042",
"W92044",
"W92053",
"W93001",
"W93007",
"W93019",
"W93020",
"W93021",
"W93038",
"W93046",
"W94011",
"W94025",
"W94034",
"W94037",
"W94612",
"W95010",
"W95014",
"W95041",
"W95080",
"W95089",
"W95623",
"W95634",
"W96009",
"W96013",
"W97003",
"W97005",
"W97008",
"W97016",
"W97017",
"W97020",
"W97021",
"W97023",
"W97024",
"W97025",
"W97033",
"W97036",
"W97041",
"W97053",
"W97060",
"W97061",
"W97067",
"W97068",
"W97069",
"W97286",
"W97291",
"W97294",
"W97616",
"W99010",
"W99025",
"XCDF56",
"Y00001",
"Y00002",
"Y00003",
"Y00004",
"Y00005",
"Y00006",
"Y00007",
"Y00008",
"Y00009",
"Y00010",
"Y00011",
"Y00012",
"Y00013",
"Y00014",
"Y00017",
"Y00025",
"Y00030",
"Y00038",
"Y00039",
"Y00042",
"Y00062",
"Y00088",
"Y00098",
"Y00133",
"Y00145",
"Y00167",
"Y00172",
"Y00208",
"Y00211",
"Y00212",
"Y00213",
"Y00214",
"Y00215",
"Y00216",
"Y00217",
"Y00218",
"Y00219",
"Y00220",
"Y00221",
"Y00222",
"Y00223",
"Y00241",
"Y00242",
"Y00243",
"Y00253",
"Y00254",
"Y00255",
"Y00259",
"Y00261",
"Y00264",
"Y00265",
"Y00267",
"Y00274",
"Y00275",
"Y00282",
"Y00284",
"Y00286",
"Y00290",
"Y00291",
"Y00292",
"Y00293",
"Y00294",
"Y00295",
"Y00296",
"Y00299",
"Y00300",
"Y00304",
"Y00306",
"Y00307",
"Y00313",
"Y00319",
"Y00328",
"Y00334",
"Y00342",
"Y00352",
"Y00356",
"Y00357",
"Y00358",
"Y00363",
"Y00364",
"Y00369",
"Y00381",
"Y00396",
"Y00399",
"Y00400",
"Y00406",
"Y00408",
"Y00418",
"Y00432",
"Y00437",
"Y00440",
"Y00452",
"Y00483",
"Y00500",
"Y00502",
"Y00514",
"Y00522",
"Y00527",
"Y00542",
"Y00546",
"Y00560",
"Y00561",
"Y00565",
"Y00583",
"Y00627",
"Y00630",
"Y00633",
"Y00647",
"Y00650",
"Y00667",
"Y00705",
"Y00712",
"Y00744",
"Y00756",
"Y00757",
"Y00779",
"Y00780",
"Y00788",
"Y00800",
"Y00836",
"Y00853",
"Y00883",
"Y00897",
"Y00944",
"Y00955",
"Y00994",
"Y00999",
"Y01016",
"Y01055",
"Y01056",
"Y01058",
"Y01059",
"Y01082",
"Y01110",
"Y01122",
"Y01139",
"Y01152",
"Y01153",
"Y01179",
"Y01207",
"Y01227",
"Y01245",
"Y01257",
"Y01280",
"Y01291",
"Y01636",
"Y01637",
"Y01695",
"Y01734",
"Y01860",
"Y01895",
"Y01920",
"Y01948",
"Y01949",
"Y01995",
"Y02002",
"Y02043",
"Y02055",
"Y02075",
"Y02091",
"Y02101",
"Y02139",
"Y02173",
"Y02174",
"Y02175",
"Y02176",
"Y02177",
"Y02178",
"Y02179",
"Y02180",
"Y02181",
"Y02182",
"Y02183",
"Y02184",
"Y02185",
"Y02186",
"Y02187",
"Y02188",
"Y02189",
"Y02190",
"Y02504",
"Y02926",
"Y03108",
"Y03580",
"Y03749",
"Y04573",
"Y05010",
"Y05366",
"Y05496",
"Y05512",
"Y06468",
"Y06469",
"Y40001",
"Y40003",
"Y90002",
"Y90003",
"Y90004",
"Y90005",
"Y90006",
"Y90009",
"Y90012",
"Y90013",
"Y90014",
"Y90015",
"Y90016",
"Y90017",
"Y90018",
"Y90019",
"Y90020",
"Y90021",
"Y90022",
"Y90023",
"Y90024",
"Y90025",
"Y90026",
"Y90027",
"Y90028",
"Y90029",
"Y90030",
"Y90031",
"Y90032",
"Y90033",
"Y90034",
"Y90035",
"Y90036",
"Y90037",
"Y90038",
"Y90039",
"Y90040",
"Y90041",
"Y90042",
"Y90043",
"Y90044",
"Y90045",
"Y90046",
"Y90047",
"Y90048",
"Y90049",
"Y90050",
"Y90051",
"Y90052",
"Y90053",
"Y90054",
"Y90055",
"Y90056",
"Y90057",
"Y90058",
"Y90059",
"Y90060",
"Y90061",
"Y90062",
"Y90063",
"Y90064",
"Y90065",
"Y90066",
"Y90067",
"Y90068",
"Y90069",
"Y90070",
"Y90071",
"Y90072",
"Y90073",
"Y90074",
"Y90075",
"Y90076",
"Y90077",
"Y90078",
"Y90079",
"Y90080",
"Y90081",
"Y90082",
"Y90083",
"Y90084",
"Y90085",
"Y90086",
"Y90087",
"Y90088",
"Y90089",
"Y90090",
"Y90091",
"Y90092",
"Y90093",
"Y90094",
"Y90095",
"Y90096",
"Y90097",
"Y90098",
"Y90099",
"Y90100",
"Y90101",
"Y90102",
"Y90103",
"Y90104",
"Y90105",
"Y90106",
"Y90107",
"Y90108",
"Y90109",
"Y90110",
"Y90111",
"Y90112",
"Y90129",
"Y90181",
"Y90203",
"Y90206",
"Y90207",
"Y90208",
"Y90216",
"Y90217",
"Y90218",
"Y90219",
"Y90220",
"Y90221",
"Y90222",
"Y90223",
"Y90224",
"Y90225",
"Y90226",
"Y90227",
"Y90228",
"Y90229",
"Y90230",
"Y90231",
"Y90232",
"Y90233",
"Y90234",
"Y90235",
"Y90236",
"Y90237",
"Y90239",
"Y90242",
"Y90243",
"Y90244",
"Y90245",
"Y90246",
"Y90247",
"Y90248",
"Y90249",
"Y90250",
"Y90251",
"Y90252",
"Y90253",
"Y90254",
"Y90255",
"Y90256",
"Y90257",
"Y90258",
"Y90259",
"Y90260",
"Y90261",
"Y90262",
"Y90263",
"Y90264",
"Y90265",
"Y90266",
"Y90267",
"Y90270",
"Y90271",
"Y90272",
"Y90273",
"Y90274",
"Y90275",
"Y90276",
"Y90277",
"Y90278",
"Y90279",
"Y90280",
"Y90281",
"Y90282",
"Y90283",
"Y90284",
"Y90285",
"Y90286",
"Y90287",
"Y90288",
"Y90289",
"Y90290",
"Y90291",
"Y90292",
"Y90293",
"Y90294",
"Y90295",
"Y90296",
"Y90297",
"Y90298",
"Y90299",
"Y90300",
"Y90301",
"Y90302",
"Y90303",
"Y90304",
"Y90305",
"Y90306",
"Y90307",
"Y90308",
"Y90309",
"Y90310",
"Y90311",
"Y90312",
"Y90313",
"Y90314",
"Y90315",
"Y90316",
"Y90317",
"Y90318",
"Y90319",
"Y90321",
"Z00001",
]
| ref = ['A00002', 'A00005', 'A10001', 'A10002', 'A10003', 'A10004', 'A10005', 'A10006', 'A10007', 'A10008', 'A10009', 'A10010', 'A10011', 'A10012', 'A10013', 'A10014', 'A10015', 'A10016', 'A10017', 'A10018', 'A10019', 'A10020', 'A10021', 'A10022', 'A10023', 'A10024', 'A10025', 'A10026', 'A10027', 'A10028', 'A10029', 'A10030', 'A10031', 'A10032', 'A10033', 'A10034', 'A10035', 'A10036', 'A10037', 'A10038', 'A10039', 'A10040', 'A10041', 'A10042', 'A10043', 'A10044', 'A10045', 'A10046', 'A10047', 'A10048', 'A10049', 'A10050', 'A10051', 'A10052', 'A10053', 'A10054', 'A10055', 'A10056', 'A10057', 'A10058', 'A10059', 'A10060', 'A10061', 'A10062', 'A10063', 'A10064', 'A10065', 'A10066', 'A10067', 'A10068', 'A10069', 'A10070', 'A10071', 'A10072', 'A10073', 'A10074', 'A10075', 'A10076', 'A10077', 'A10078', 'A10079', 'A10080', 'A10081', 'A10082', 'A10083', 'A10084', 'A10085', 'A10086', 'A10087', 'A10088', 'A10089', 'A10090', 'A10091', 'A10092', 'A10093', 'A10094', 'A10095', 'A10096', 'A10097', 'A10098', 'A10099', 'A10100', 'A10101', 'A10102', 'A10103', 'A10104', 'A10105', 'A10106', 'A10107', 'A10108', 'A10109', 'A10110', 'A10111', 'A10112', 'A10113', 'A10114', 'A10115', 'A10116', 'A10117', 'A10118', 'A10119', 'A10120', 'A10121', 'A10122', 'A10123', 'A10124', 'A10125', 'A10150', 'A10151', 'A10152', 'A10153', 'A10154', 'A10155', 'A10156', 'A10157', 'A10158', 'A10159', 'A10160', 'A10161', 'A10162', 'A10163', 'A10164', 'A10165', 'A10166', 'A10167', 'A10168', 'A10169', 'A10170', 'A10171', 'A10172', 'A10173', 'A10174', 'A10175', 'A10176', 'A10177', 'A10178', 'A10179', 'A10180', 'A10181', 'A10182', 'A10183', 'A10184', 'A10185', 'A10186', 'A10187', 'A10188', 'A10189', 'A10190', 'A10191', 'A10192', 'A10193', 'A10194', 'A10195', 'A10196', 'A10197', 'A10198', 'A10199', 'A10201', 'A10202', 'A10203', 'A10204', 'A10205', 'A10206', 'A10207', 'A10210', 'A15501', 'A15502', 'A20000', 'A20001', 'A20002', 'A20003', 'A20004', 'A20005', 'A20006', 'A20007', 'A20008', 'A20009', 'A20010', 'A20011', 'A20012', 'A20013', 'A20014', 'A20015', 'A20016', 'A20017', 'A20018', 'A20019', 'A20020', 'A20021', 'A20022', 'A20023', 'A20024', 'A20025', 'A20026', 'A20027', 'A20028', 'A20030', 'A20031', 'A20032', 'A20033', 'A20034', 'A20035', 'A20043', 'A20044', 'A20045', 'A20046', 'A20047', 'A20052', 'A20053', 'A20055', 'A20056', 'A20058', 'A20060', 'A20062', 'A20063', 'A20065', 'A20066', 'A20067', 'A20074', 'A20076', 'A20079', 'A20092', 'A20093', 'A20094', 'A20095', 'A20096', 'A20097', 'A20098', 'A20099', 'A20101', 'A20102', 'A20103', 'A20104', 'A20105', 'A20106', 'A20107', 'A20127', 'A20130', 'A20135', 'A20140', 'A20145', 'A20150', 'A20200', 'A20201', 'A20202', 'A20203', 'A20204', 'A20205', 'A20206', 'A20207', 'A20208', 'A20209', 'A20210', 'A20211', 'A20212', 'A20213', 'A20214', 'A20215', 'A20216', 'A20217', 'A20218', 'A20219', 'A20220', 'A20221', 'A20222', 'A20223', 'A20224', 'A20225', 'A20226', 'A20227', 'A20228', 'A20229', 'A20230', 'A20231', 'A20232', 'A20233', 'A20234', 'A20235', 'A20236', 'A20237', 'A20238', 'A20239', 'A20240', 'A20241', 'A20242', 'A20243', 'A20244', 'A20245', 'A20246', 'A20247', 'A20248', 'A20249', 'A20250', 'A20251', 'A20252', 'A20253', 'A20254', 'A20255', 'A20256', 'A20257', 'A20258', 'A20259', 'A20260', 'A20261', 'A20262', 'A20263', 'A20264', 'A20265', 'A20266', 'A20267', 'A20268', 'A20269', 'A20270', 'A20271', 'A20272', 'A20273', 'A20274', 'A20275', 'A20276', 'A20277', 'A20278', 'A20279', 'A20280', 'A20281', 'A20282', 'A20283', 'A20284', 'A20285', 'A20286', 'A20287', 'A20288', 'A20289', 'A20290', 'A20291', 'A20292', 'A20293', 'A20294', 'A20295', 'A20296', 'A20297', 'A20298', 'A20299', 'A20300', 'A20301', 'A20302', 'A20303', 'A20304', 'A20305', 'A20306', 'A20307', 'A20308', 'A20309', 'A20310', 'A20311', 'A20312', 'A20313', 'A20314', 'A20315', 'A20316', 'A20317', 'A20318', 'A20319', 'A20320', 'A20321', 'A20322', 'A20323', 'A20324', 'A20325', 'A20326', 'A20327', 'A20328', 'A20329', 'A20330', 'A20331', 'A20332', 'A20333', 'A20334', 'A20335', 'A20336', 'A20337', 'A20338', 'A20339', 'A20340', 'A20341', 'A20342', 'A20343', 'A20344', 'A20345', 'A20346', 'A20347', 'A20348', 'A20349', 'A20350', 'A20351', 'A20352', 'A20353', 'A20354', 'A20355', 'A20356', 'A20357', 'A20358', 'A20359', 'A20360', 'A20361', 'A20362', 'A20363', 'A20364', 'A20365', 'A20366', 'A20367', 'A20368', 'A20369', 'A20370', 'A20371', 'A20372', 'A20373', 'A20374', 'A20375', 'A20376', 'A20377', 'A20378', 'A20379', 'A20380', 'A20381', 'A20382', 'A20383', 'A20384', 'A20385', 'A20386', 'A20387', 'A20388', 'A20389', 'A20390', 'A20391', 'A20392', 'A20393', 'A20394', 'A20395', 'A20396', 'A20397', 'A20398', 'A20399', 'A20400', 'A20401', 'A20402', 'A20403', 'A20405', 'A20406', 'A20407', 'A20408', 'A20409', 'A20410', 'A20411', 'A20412', 'A20413', 'A20414', 'A20415', 'A20416', 'A20417', 'A20418', 'A20419', 'A20420', 'A20421', 'A20422', 'A20423', 'A20424', 'A20425', 'A20426', 'A20427', 'A20428', 'A20429', 'A20430', 'A20431', 'A20432', 'A20433', 'A20434', 'A20435', 'A20436', 'A20437', 'A20438', 'A20440', 'A20441', 'A20442', 'A20443', 'A20444', 'A20445', 'A20446', 'A20447', 'A20448', 'A20449', 'A20450', 'A20451', 'A20452', 'A20453', 'A20454', 'A20455', 'A20456', 'A20458', 'A20459', 'A20460', 'A20461', 'A20462', 'A20463', 'A20464', 'A20465', 'A20466', 'A20467', 'A20468', 'A20469', 'A20470', 'A20471', 'A20472', 'A20473', 'A20474', 'A20475', 'A20476', 'A20477', 'A20478', 'A20479', 'A20480', 'A20481', 'A20482', 'A20483', 'A20484', 'A20485', 'A20486', 'A20487', 'A20488', 'A20489', 'A20490', 'A20491', 'A20492', 'A20493', 'A20494', 'A20495', 'A20496', 'A20497', 'A20498', 'A20499', 'A20650', 'A20651', 'A20652', 'A20653', 'A20654', 'A20655', 'A20656', 'A20657', 'A20658', 'A20659', 'A20660', 'A20661', 'A20662', 'A20663', 'A20664', 'A20665', 'A20666', 'A20667', 'A20668', 'A20669', 'A20670', 'A20671', 'A20672', 'A20673', 'A20674', 'A20675', 'A20676', 'A20677', 'A20678', 'A20679', 'A20680', 'A20681', 'A20682', 'A20683', 'A20684', 'A20685', 'A20686', 'A20687', 'A20688', 'A20689', 'A20690', 'A20691', 'A20693', 'A20694', 'A20695', 'A20696', 'A20697', 'A20698', 'A20699', 'A20700', 'A20701', 'A20702', 'A20703', 'A20704', 'A20705', 'A20706', 'A20707', 'A20708', 'A20709', 'A20710', 'A20711', 'A20712', 'A20713', 'A20714', 'A20715', 'A20716', 'A20717', 'A20718', 'A20719', 'A20720', 'A20721', 'A20722', 'A20723', 'A20724', 'A20725', 'A20726', 'A20727', 'A20728', 'A20729', 'A20730', 'A20731', 'A20732', 'A20734', 'A20735', 'A20736', 'A20737', 'A20738', 'A20739', 'A20740', 'A20741', 'A20742', 'A20743', 'A20744', 'A20745', 'A20746', 'A20747', 'A20748', 'A20749', 'A20750', 'A20751', 'A20752', 'A20753', 'A20754', 'A20755', 'A20756', 'A20757', 'A20758', 'A20759', 'A20760', 'A20761', 'A20762', 'A20763', 'A20764', 'A20765', 'A20766', 'A20767', 'A20768', 'A20769', 'A20770', 'A20771', 'A20772', 'A20773', 'A20774', 'A20775', 'A20776', 'A20777', 'A20778', 'A20779', 'A20780', 'A20781', 'A20782', 'A20783', 'A20784', 'A20785', 'A20786', 'A20787', 'A20788', 'A20789', 'A20790', 'A20791', 'A20792', 'A20793', 'A20794', 'A20795', 'A20796', 'A20797', 'A20798', 'A20799', 'A20800', 'A20801', 'A20802', 'A20803', 'A20804', 'A20805', 'A20806', 'A20807', 'A20808', 'A20809', 'A20810', 'A20811', 'A20812', 'A20813', 'A20814', 'A20815', 'A20816', 'A20817', 'A20818', 'A20819', 'A20820', 'A20821', 'A20822', 'A20823', 'A20824', 'A20825', 'A20826', 'A20827', 'A20828', 'A20829', 'A20830', 'A20831', 'A20832', 'A20833', 'A20834', 'A20835', 'A20836', 'A20837', 'A20838', 'A20839', 'A20840', 'A20841', 'A20842', 'A20843', 'A20844', 'A20845', 'A20846', 'A20847', 'A20848', 'A20849', 'A20850', 'A20851', 'A20852', 'A20853', 'A20854', 'A20855', 'A20856', 'A20857', 'A21099', 'A21163', 'A21164', 'A21165', 'A21166', 'A21172', 'A21173', 'A21174', 'A21175', 'A21176', 'A21177', 'A21178', 'A21180', 'A21181', 'A21182', 'A21183', 'A21184', 'A21185', 'A21186', 'A21187', 'A21199', 'A21202', 'A21203', 'A21204', 'A21205', 'A21206', 'A21207', 'A21208', 'A21209', 'A21210', 'A21211', 'A21215', 'A21216', 'A21217', 'A21218', 'A21219', 'A21220', 'A21225', 'A21226', 'A21229', 'A21230', 'A21235', 'A21244', 'A21245', 'A21246', 'A21247', 'A21248', 'A21249', 'A21254', 'A21257', 'A21261', 'A21262', 'A21270', 'A21271', 'A21292', 'A21293', 'A21294', 'A21295', 'A21296', 'A21297', 'A21299', 'A21401', 'A21402', 'A21405', 'A21410', 'A21412', 'A21413', 'A21425', 'A21426', 'A21427', 'A21428', 'A21429', 'A21431', 'A21433', 'A21434', 'A21435', 'A21436', 'A21461', 'A21463', 'A21464', 'A21465', 'A21467', 'A21468', 'A21471', 'A21472', 'A21473', 'A21474', 'A21475', 'A21476', 'A21477', 'A21479', 'A21484', 'A21490', 'A21998', 'A22020', 'A22265', 'A22266', 'A22267', 'A22268', 'A22269', 'A22270', 'A22271', 'A22272', 'A22273', 'A22274', 'A22275', 'A22276', 'A22277', 'A22279', 'A22283', 'A22289', 'A22290', 'A22291', 'A22300', 'A22301', 'A22302', 'A22303', 'A22304', 'A22305', 'A22306', 'A22307', 'A22308', 'A22309', 'A22310', 'A22311', 'A22312', 'A22313', 'A22314', 'A22315', 'A22316', 'A22317', 'A22318', 'A22319', 'A22320', 'A22321', 'A22322', 'A22323', 'A22324', 'A22325', 'A22326', 'A22327', 'A22328', 'A22329', 'A22330', 'A22331', 'A22332', 'A22333', 'A22334', 'A22335', 'A22336', 'A22337', 'A22338', 'A22339', 'A22340', 'A22341', 'A22342', 'A22343', 'A22344', 'A22345', 'A22346', 'A22347', 'A22348', 'A22349', 'A22350', 'A22351', 'A22352', 'A22353', 'A22354', 'A22355', 'A22356', 'A22357', 'A22358', 'A22359', 'A22360', 'A22361', 'A22362', 'A22363', 'A22364', 'A22365', 'A22366', 'A22367', 'A22368', 'A22369', 'A22370', 'A22371', 'A22372', 'A22373', 'A22374', 'A22375', 'A22376', 'A22377', 'A22378', 'A22379', 'A22380', 'A22381', 'A22382', 'A22383', 'A22384', 'A22385', 'A22386', 'A22387', 'A22388', 'A22389', 'A22390', 'A22391', 'A22392', 'A22393', 'A22394', 'A22395', 'A22396', 'A22397', 'A22398', 'A22399', 'A22400', 'A22401', 'A22601', 'A23020', 'A23571', 'A24185', 'A24264', 'A24379', 'A24595', 'A24701', 'A24915', 'A25630', 'A25736', 'A26201', 'A26543', 'A26611', 'A26684', 'A26990', 'A27003', 'A27185', 'A27593', 'A27691', 'A27915', 'A28009', 'A28097', 'A28394', 'A28492', 'A28665', 'A28741', 'A28830', 'A28947', 'A29252', 'A29271', 'A29344', 'A29434', 'A29586', 'A29683', 'A29792', 'A29811', 'A29812', 'A29813', 'A80016', 'A81001', 'A81002', 'A81003', 'A81004', 'A81005', 'A81006', 'A81007', 'A81008', 'A81009', 'A81010', 'A81011', 'A81012', 'A81013', 'A81014', 'A81015', 'A81016', 'A81017', 'A81018', 'A81019', 'A81020', 'A81021', 'A81022', 'A81023', 'A81025', 'A81026', 'A81027', 'A81029', 'A81030', 'A81031', 'A81032', 'A81033', 'A81034', 'A81035', 'A81036', 'A81037', 'A81038', 'A81039', 'A81040', 'A81041', 'A81042', 'A81043', 'A81044', 'A81045', 'A81046', 'A81047', 'A81048', 'A81049', 'A81051', 'A81052', 'A81053', 'A81054', 'A81055', 'A81056', 'A81057', 'A81058', 'A81060', 'A81061', 'A81063', 'A81064', 'A81065', 'A81066', 'A81067', 'A81068', 'A81069', 'A81070', 'A81071', 'A81602', 'A81605', 'A81608', 'A81609', 'A81610', 'A81611', 'A81612', 'A81613', 'A81616', 'A81618', 'A81620', 'A81621', 'A81622', 'A81623', 'A81625', 'A81627', 'A81629', 'A81630', 'A81631', 'A81632', 'A81633', 'A81634', 'A82001', 'A82003', 'A82004', 'A82005', 'A82006', 'A82007', 'A82008', 'A82009', 'A82010', 'A82011', 'A82012', 'A82013', 'A82014', 'A82015', 'A82016', 'A82017', 'A82018', 'A82019', 'A82020', 'A82021', 'A82022', 'A82023', 'A82024', 'A82025', 'A82026', 'A82027', 'A82028', 'A82029', 'A82030', 'A82031', 'A82032', 'A82033', 'A82034', 'A82035', 'A82036', 'A82037', 'A82038', 'A82039', 'A82040', 'A82041', 'A82042', 'A82044', 'A82045', 'A82046', 'A82047', 'A82048', 'A82049', 'A82050', 'A82052', 'A82053', 'A82055', 'A82056', 'A82057', 'A82058', 'A82060', 'A82061', 'A82062', 'A82063', 'A82064', 'A82065', 'A82068', 'A82070', 'A82071', 'A82072', 'A82074', 'A82075', 'A82077', 'A82502', 'A82607', 'A82608', 'A82609', 'A82613', 'A82614', 'A82615', 'A82616', 'A82617', 'A82618', 'A82619', 'A82620', 'A82621', 'A82622', 'A82623', 'A82624', 'A82625', 'A82627', 'A82629', 'A82630', 'A82631', 'A82632', 'A82635', 'A82636', 'A82641', 'A82642', 'A82645', 'A82646', 'A82647', 'A82648', 'A82649', 'A82650', 'A82651', 'A82654', 'A83001', 'A83003', 'A83004', 'A83005', 'A83006', 'A83007', 'A83008', 'A83009', 'A83010', 'A83011', 'A83012', 'A83013', 'A83014', 'A83015', 'A83016', 'A83017', 'A83018', 'A83019', 'A83020', 'A83021', 'A83022', 'A83023', 'A83024', 'A83025', 'A83026', 'A83027', 'A83028', 'A83029', 'A83030', 'A83031', 'A83032', 'A83033', 'A83034', 'A83035', 'A83036', 'A83037', 'A83038', 'A83040', 'A83041', 'A83042', 'A83043', 'A83044', 'A83045', 'A83046', 'A83047', 'A83048', 'A83049', 'A83050', 'A83051', 'A83052', 'A83054', 'A83055', 'A83057', 'A83060', 'A83061', 'A83066', 'A83068', 'A83070', 'A83071', 'A83072', 'A83073', 'A83074', 'A83075', 'A83076', 'A83603', 'A83610', 'A83616', 'A83617', 'A83618', 'A83619', 'A83622', 'A83626', 'A83627', 'A83630', 'A83632', 'A83634', 'A83635', 'A83636', 'A83637', 'A83638', 'A83641', 'A83642', 'A83644', 'A84002', 'A84003', 'A84005', 'A84006', 'A84007', 'A84008', 'A84009', 'A84011', 'A84013', 'A84014', 'A84015', 'A84016', 'A84018', 'A84020', 'A84021', 'A84022', 'A84024', 'A84025', 'A84026', 'A84027', 'A84028', 'A84029', 'A84030', 'A84031', 'A84032', 'A84033', 'A84034', 'A84035', 'A84036', 'A84037', 'A84038', 'A84039', 'A84040', 'A84042', 'A84043', 'A84044', 'A84045', 'A84047', 'A84048', 'A84604', 'A84609', 'A84613', 'A84614', 'A84619', 'A85001', 'A85002', 'A85003', 'A85004', 'A85005', 'A85006', 'A85007', 'A85008', 'A85009', 'A85010', 'A85011', 'A85012', 'A85013', 'A85014', 'A85015', 'A85016', 'A85017', 'A85018', 'A85019', 'A85020', 'A85021', 'A85023', 'A85024', 'A85025', 'A85026', 'A85601', 'A85605', 'A85609', 'A85611', 'A85614', 'A85615', 'A85616', 'A85617', 'A85618', 'A85619', 'A85620', 'A85621', 'A86003', 'A86004', 'A86005', 'A86006', 'A86007', 'A86008', 'A86009', 'A86010', 'A86011', 'A86012', 'A86013', 'A86015', 'A86016', 'A86017', 'A86018', 'A86020', 'A86021', 'A86022', 'A86023', 'A86024', 'A86025', 'A86026', 'A86027', 'A86028', 'A86029', 'A86030', 'A86031', 'A86033', 'A86035', 'A86036', 'A86037', 'A86038', 'A86040', 'A86041', 'A86601', 'A86608', 'A86612', 'A86618', 'A87002', 'A87003', 'A87004', 'A87005', 'A87006', 'A87007', 'A87008', 'A87009', 'A87011', 'A87012', 'A87013', 'A87014', 'A87015', 'A87016', 'A87017', 'A87019', 'A87020', 'A87022', 'A87023', 'A87027', 'A87029', 'A87030', 'A87600', 'A87604', 'A87608', 'A87612', 'A87615', 'A88001', 'A88002', 'A88003', 'A88004', 'A88005', 'A88006', 'A88007', 'A88008', 'A88009', 'A88010', 'A88011', 'A88012', 'A88013', 'A88014', 'A88015', 'A88016', 'A88018', 'A88020', 'A88022', 'A88023', 'A88025', 'A88601', 'A88603', 'A88608', 'A88611', 'A88613', 'A88614', 'A88616', 'A89001', 'A89002', 'A89003', 'A89004', 'A89005', 'A89006', 'A89007', 'A89008', 'A89009', 'A89010', 'A89011', 'A89012', 'A89013', 'A89014', 'A89015', 'A89016', 'A89017', 'A89018', 'A89019', 'A89020', 'A89021', 'A89022', 'A89023', 'A89024', 'A89025', 'A89026', 'A89027', 'A89028', 'A89029', 'A89030', 'A89031', 'A89032', 'A89034', 'A89035', 'A89036', 'A89038', 'A89040', 'A89041', 'A89042', 'A89603', 'A89604', 'A89610', 'A89611', 'A89612', 'A89614', 'A89616', 'A89617', 'A89620', 'A89621', 'A89623', 'A89624', 'A89630', 'A91023', 'A91024', 'A91168', 'A91180', 'A91181', 'A91182', 'A91192', 'A91193', 'A91299', 'A91346', 'A91580', 'AD2000', 'B81001', 'B81002', 'B81003', 'B81004', 'B81005', 'B81006', 'B81007', 'B81008', 'B81009', 'B81010', 'B81011', 'B81012', 'B81013', 'B81014', 'B81015', 'B81016', 'B81017', 'B81018', 'B81019', 'B81020', 'B81021', 'B81022', 'B81023', 'B81024', 'B81025', 'B81026', 'B81027', 'B81029', 'B81030', 'B81031', 'B81032', 'B81034', 'B81035', 'B81036', 'B81037', 'B81038', 'B81039', 'B81040', 'B81041', 'B81042', 'B81043', 'B81044', 'B81045', 'B81046', 'B81047', 'B81048', 'B81049', 'B81050', 'B81051', 'B81052', 'B81053', 'B81054', 'B81055', 'B81056', 'B81057', 'B81058', 'B81060', 'B81061', 'B81062', 'B81063', 'B81064', 'B81065', 'B81066', 'B81068', 'B81069', 'B81070', 'B81072', 'B81074', 'B81075', 'B81077', 'B81080', 'B81081', 'B81082', 'B81083', 'B81084', 'B81085', 'B81087', 'B81088', 'B81089', 'B81090', 'B81091', 'B81092', 'B81094', 'B81095', 'B81097', 'B81099', 'B81100', 'B81101', 'B81102', 'B81104', 'B81108', 'B81109', 'B81110', 'B81112', 'B81113', 'B81118', 'B81119', 'B81120', 'B81121', 'B81602', 'B81603', 'B81606', 'B81609', 'B81615', 'B81616', 'B81617', 'B81618', 'B81619', 'B81620', 'B81622', 'B81624', 'B81626', 'B81628', 'B81629', 'B81630', 'B81631', 'B81632', 'B81633', 'B81634', 'B81635', 'B81636', 'B81639', 'B81642', 'B81644', 'B81645', 'B81646', 'B81647', 'B81648', 'B81650', 'B81653', 'B81655', 'B81656', 'B81658', 'B81662', 'B81663', 'B81664', 'B81665', 'B81666', 'B81668', 'B81669', 'B81670', 'B81671', 'B81674', 'B81675', 'B81676', 'B81677', 'B81679', 'B81682', 'B81683', 'B81685', 'B81686', 'B81688', 'B81689', 'B81690', 'B81691', 'B81692', 'B81693', 'B81694', 'B81695', 'B81696', 'B81697', 'B82001', 'B82002', 'B82003', 'B82004', 'B82005', 'B82006', 'B82007', 'B82008', 'B82010', 'B82011', 'B82012', 'B82013', 'B82014', 'B82016', 'B82017', 'B82018', 'B82019', 'B82020', 'B82021', 'B82022', 'B82023', 'B82024', 'B82025', 'B82026', 'B82027', 'B82028', 'B82029', 'B82030', 'B82031', 'B82032', 'B82033', 'B82034', 'B82035', 'B82036', 'B82037', 'B82038', 'B82041', 'B82042', 'B82044', 'B82045', 'B82046', 'B82047', 'B82049', 'B82050', 'B82053', 'B82054', 'B82055', 'B82056', 'B82057', 'B82059', 'B82060', 'B82061', 'B82062', 'B82063', 'B82064', 'B82065', 'B82066', 'B82067', 'B82068', 'B82069', 'B82071', 'B82072', 'B82073', 'B82074', 'B82075', 'B82076', 'B82077', 'B82078', 'B82079', 'B82080', 'B82081', 'B82082', 'B82083', 'B82086', 'B82087', 'B82088', 'B82091', 'B82092', 'B82095', 'B82097', 'B82098', 'B82099', 'B82100', 'B82101', 'B82102', 'B82103', 'B82104', 'B82105', 'B82106', 'B82606', 'B82609', 'B82611', 'B82613', 'B82614', 'B82617', 'B82618', 'B82619', 'B82620', 'B82622', 'B82623', 'B82624', 'B82627', 'B82628', 'B82632', 'B82636', 'B82637', 'B82639', 'B82640', 'B82645', 'B82646', 'B82683', 'B83001', 'B83002', 'B83003', 'B83005', 'B83006', 'B83007', 'B83008', 'B83009', 'B83010', 'B83011', 'B83012', 'B83013', 'B83014', 'B83015', 'B83016', 'B83017', 'B83018', 'B83019', 'B83020', 'B83021', 'B83022', 'B83023', 'B83025', 'B83026', 'B83027', 'B83028', 'B83029', 'B83030', 'B83031', 'B83032', 'B83033', 'B83034', 'B83035', 'B83037', 'B83038', 'B83039', 'B83040', 'B83041', 'B83042', 'B83043', 'B83044', 'B83045', 'B83049', 'B83050', 'B83051', 'B83052', 'B83054', 'B83055', 'B83056', 'B83058', 'B83061', 'B83062', 'B83063', 'B83064', 'B83066', 'B83067', 'B83069', 'B83070', 'B83071', 'B83602', 'B83604', 'B83605', 'B83611', 'B83613', 'B83614', 'B83617', 'B83620', 'B83621', 'B83622', 'B83624', 'B83626', 'B83627', 'B83628', 'B83629', 'B83630', 'B83631', 'B83638', 'B83641', 'B83642', 'B83646', 'B83653', 'B83654', 'B83657', 'B83658', 'B83659', 'B83660', 'B83661', 'B83673', 'B84001', 'B84002', 'B84003', 'B84004', 'B84005', 'B84006', 'B84007', 'B84008', 'B84009', 'B84010', 'B84011', 'B84012', 'B84013', 'B84014', 'B84016', 'B84017', 'B84019', 'B84021', 'B84610', 'B84612', 'B84613', 'B84615', 'B84618', 'B84623', 'B85001', 'B85002', 'B85004', 'B85005', 'B85006', 'B85008', 'B85009', 'B85010', 'B85011', 'B85012', 'B85014', 'B85015', 'B85016', 'B85018', 'B85019', 'B85020', 'B85021', 'B85022', 'B85023', 'B85024', 'B85025', 'B85026', 'B85027', 'B85028', 'B85030', 'B85031', 'B85032', 'B85033', 'B85036', 'B85037', 'B85038', 'B85041', 'B85042', 'B85044', 'B85048', 'B85049', 'B85051', 'B85054', 'B85055', 'B85058', 'B85059', 'B85060', 'B85061', 'B85062', 'B85606', 'B85610', 'B85611', 'B85612', 'B85614', 'B85619', 'B85620', 'B85621', 'B85622', 'B85623', 'B85634', 'B85636', 'B85638', 'B85640', 'B85641', 'B85644', 'B85645', 'B85646', 'B85650', 'B85652', 'B85655', 'B85659', 'B85660', 'B86001', 'B86002', 'B86003', 'B86004', 'B86005', 'B86006', 'B86007', 'B86008', 'B86009', 'B86010', 'B86011', 'B86012', 'B86013', 'B86014', 'B86015', 'B86016', 'B86017', 'B86018', 'B86019', 'B86020', 'B86022', 'B86023', 'B86024', 'B86025', 'B86026', 'B86028', 'B86029', 'B86030', 'B86031', 'B86032', 'B86033', 'B86034', 'B86035', 'B86036', 'B86037', 'B86038', 'B86039', 'B86041', 'B86042', 'B86043', 'B86044', 'B86046', 'B86047', 'B86048', 'B86049', 'B86050', 'B86051', 'B86052', 'B86054', 'B86055', 'B86056', 'B86057', 'B86058', 'B86059', 'B86060', 'B86061', 'B86062', 'B86064', 'B86066', 'B86067', 'B86068', 'B86069', 'B86070', 'B86071', 'B86074', 'B86075', 'B86077', 'B86081', 'B86086', 'B86089', 'B86092', 'B86093', 'B86094', 'B86095', 'B86096', 'B86100', 'B86101', 'B86102', 'B86103', 'B86104', 'B86105', 'B86106', 'B86107', 'B86108', 'B86109', 'B86110', 'B86623', 'B86625', 'B86628', 'B86633', 'B86638', 'B86642', 'B86643', 'B86648', 'B86650', 'B86651', 'B86654', 'B86655', 'B86658', 'B86666', 'B86667', 'B86669', 'B86670', 'B86672', 'B86673', 'B86675', 'B86678', 'B86682', 'B86683', 'B87001', 'B87002', 'B87003', 'B87004', 'B87005', 'B87006', 'B87007', 'B87008', 'B87009', 'B87011', 'B87012', 'B87013', 'B87015', 'B87016', 'B87017', 'B87018', 'B87019', 'B87020', 'B87021', 'B87022', 'B87023', 'B87025', 'B87026', 'B87027', 'B87028', 'B87029', 'B87030', 'B87031', 'B87032', 'B87033', 'B87036', 'B87039', 'B87040', 'B87041', 'B87042', 'B87044', 'B87600', 'B87602', 'B87604', 'B87614', 'C81001', 'C81002', 'C81003', 'C81004', 'C81005', 'C81006', 'C81007', 'C81008', 'C81009', 'C81010', 'C81012', 'C81013', 'C81014', 'C81015', 'C81016', 'C81018', 'C81019', 'C81021', 'C81023', 'C81026', 'C81027', 'C81028', 'C81029', 'C81033', 'C81034', 'C81035', 'C81036', 'C81040', 'C81042', 'C81047', 'C81051', 'C81052', 'C81054', 'C81056', 'C81060', 'C81071', 'C81072', 'C81074', 'C81075', 'C81076', 'C81077', 'C81080', 'C81081', 'C81082', 'C81091', 'C81094', 'C81095', 'C81096', 'C81097', 'C81099', 'C81106', 'C81107', 'C81115', 'C81118', 'C81604', 'C81611', 'C81616', 'C81620', 'C81626', 'C81630', 'C81633', 'C81651', 'C81678', 'C82001', 'C82002', 'C82003', 'C82005', 'C82007', 'C82008', 'C82009', 'C82010', 'C82011', 'C82012', 'C82015', 'C82016', 'C82018', 'C82019', 'C82026', 'C82029', 'C82032', 'C82036', 'C82038', 'C82040', 'C82042', 'C82044', 'C82052', 'C82058', 'C82059', 'C82063', 'C82064', 'C82066', 'C82092', 'C82093', 'C82103', 'C82121', 'C82674', 'C83001', 'C83002', 'C83004', 'C83005', 'C83008', 'C83009', 'C83011', 'C83014', 'C83016', 'C83019', 'C83030', 'C83054', 'C83063', 'C83073', 'C83078', 'C83614', 'C83615', 'C83617', 'C83637', 'C83649', 'C83656', 'C84001', 'C84002', 'C84003', 'C84004', 'C84005', 'C84008', 'C84009', 'C84010', 'C84011', 'C84012', 'C84013', 'C84014', 'C84016', 'C84017', 'C84018', 'C84019', 'C84020', 'C84021', 'C84023', 'C84024', 'C84026', 'C84029', 'C84030', 'C84032', 'C84033', 'C84034', 'C84036', 'C84039', 'C84043', 'C84045', 'C84047', 'C84051', 'C84057', 'C84059', 'C84069', 'C84078', 'C84080', 'C84087', 'C84092', 'C84106', 'C84113', 'C84120', 'C84123', 'C84128', 'C84140', 'C84150', 'C84613', 'C84619', 'C84624', 'C84628', 'C84637', 'C84648', 'C84649', 'C84655', 'C84656', 'C84658', 'C84661', 'C84675', 'C84676', 'C84678', 'C84679', 'C84710', 'C85001', 'C85003', 'C85004', 'C85005', 'C85007', 'C85011', 'C85022', 'C85033', 'C85617', 'C85618', 'C85620', 'C86001', 'C86002', 'C86003', 'C86005', 'C86006', 'C86007', 'C86009', 'C86012', 'C86023', 'C86025', 'C86029', 'C86030', 'C86614', 'C86622', 'C87002', 'C87003', 'C87004', 'C87005', 'C87007', 'C87008', 'C87013', 'C87019', 'C87022', 'C87030', 'C87604', 'C87612', 'C87617', 'C87621', 'C88005', 'C88006', 'C88007', 'C88008', 'C88009', 'C88014', 'C88016', 'C88028', 'C88032', 'C88037', 'C88038', 'C88041', 'C88043', 'C88046', 'C88048', 'C88062', 'C88073', 'C88077', 'C88078', 'C88079', 'C88080', 'C88081', 'C88082', 'C88083', 'C88084', 'C88086', 'C88091', 'C88096', 'C88652', 'C88653', 'C88655', 'D81001', 'D81002', 'D81003', 'D81004', 'D81006', 'D81007', 'D81008', 'D81014', 'D81015', 'D81016', 'D81019', 'D81021', 'D81022', 'D81023', 'D81024', 'D81025', 'D81026', 'D81029', 'D81031', 'D81045', 'D81046', 'D81047', 'D81050', 'D81616', 'D81618', 'D81625', 'D81629', 'D81633', 'D82001', 'D82002', 'D82003', 'D82004', 'D82005', 'D82006', 'D82007', 'D82008', 'D82009', 'D82010', 'D82011', 'D82012', 'D82015', 'D82016', 'D82019', 'D82020', 'D82021', 'D82026', 'D82027', 'D82031', 'D82034', 'D82040', 'D82042', 'D82044', 'D82051', 'D82053', 'D82055', 'D82060', 'D82061', 'D82062', 'D82064', 'D82067', 'D82069', 'D82070', 'D82073', 'D82078', 'D82087', 'D82088', 'D82096', 'D82099', 'D82103', 'D82104', 'D82105', 'D82106', 'D82614', 'D82620', 'D82623', 'D82625', 'D82626', 'D82632', 'D82633', 'D82634', 'D82641', 'D82643', 'D83001', 'D83002', 'D83003', 'D83004', 'D83005', 'D83006', 'D83009', 'D83010', 'D83011', 'D83012', 'D83013', 'D83026', 'D83030', 'D83033', 'D83034', 'D83036', 'D83043', 'D83060', 'D83069', 'D83071', 'D83074', 'D83075', 'D83078', 'D83081', 'D83620', 'E00001', 'E81001', 'E81002', 'E81003', 'E81004', 'E81005', 'E81006', 'E81008', 'E81010', 'E81011', 'E81016', 'E81017', 'E81019', 'E81023', 'E81026', 'E81028', 'E81030', 'E81031', 'E81037', 'E81038', 'E81046', 'E81048', 'E81049', 'E81051', 'E81056', 'E81060', 'E81061', 'E81064', 'E81611', 'E81615', 'E81627', 'E81640', 'E82001', 'E82002', 'E82004', 'E82005', 'E82009', 'E82011', 'E82012', 'E82013', 'E82016', 'E82019', 'E82020', 'E82024', 'E82025', 'E82027', 'E82028', 'E82040', 'E82042', 'E82043', 'E82045', 'E82048', 'E82049', 'E82053', 'E82055', 'E82060', 'E82074', 'E82078', 'E82083', 'E82085', 'E82094', 'E82096', 'E82097', 'E82099', 'E82109', 'E82113', 'E82117', 'E82124', 'E82614', 'E82624', 'E82641', 'E82644', 'E82652', 'E82657', 'E82662', 'E83003', 'E83005', 'E83006', 'E83007', 'E83008', 'E83009', 'E83018', 'E83027', 'E83044', 'E83600', 'E83613', 'E83654', 'E84002', 'E84003', 'E84004', 'E84005', 'E84006', 'E84007', 'E84012', 'E84013', 'E84014', 'E84015', 'E84017', 'E84025', 'E84044', 'E84056', 'E84059', 'E84064', 'E84067', 'E84080', 'E84601', 'E84627', 'E84645', 'E84646', 'E84658', 'E84695', 'E84702', 'E85001', 'E85012', 'E85013', 'E85014', 'E85019', 'E85053', 'E85059', 'E85066', 'E85075', 'E85096', 'E85109', 'E85110', 'E85120', 'E85623', 'E85650', 'E85655', 'E85657', 'E85675', 'E85681', 'E85714', 'E85718', 'E85744', 'E86001', 'E86003', 'E86004', 'E86005', 'E86006', 'E86007', 'E86009', 'E86010', 'E86011', 'E86012', 'E86014', 'E86015', 'E86016', 'E86017', 'E86018', 'E86019', 'E86020', 'E86022', 'E86023', 'E86024', 'E86026', 'E86027', 'E86028', 'E86029', 'E86030', 'E86033', 'E86034', 'E86036', 'E86038', 'E86041', 'E86042', 'E86605', 'E86609', 'E86610', 'E86612', 'E86615', 'E86616', 'E86617', 'E86618', 'E86619', 'E86620', 'E86622', 'E86625', 'E86626', 'E86632', 'E86633', 'E86635', 'E86637', 'E86638', 'E86639', 'E86640', 'E87006', 'E87008', 'E87016', 'E87021', 'E87024', 'E87048', 'E87052', 'E87070', 'E87630', 'E87637', 'E87665', 'E87670', 'E87681', 'E87711', 'E87735', 'E87737', 'E87745', 'E87746', 'E87761', 'F81002', 'F81003', 'F81004', 'F81005', 'F81009', 'F81010', 'F81011', 'F81012', 'F81014', 'F81015', 'F81016', 'F81017', 'F81018', 'F81019', 'F81020', 'F81021', 'F81022', 'F81026', 'F81027', 'F81030', 'F81043', 'F81052', 'F81065', 'F81073', 'F81074', 'F81076', 'F81079', 'F81082', 'F81084', 'F81087', 'F81088', 'F81091', 'F81102', 'F81103', 'F81110', 'F81112', 'F81120', 'F81121', 'F81133', 'F81143', 'F81151', 'F81153', 'F81183', 'F81185', 'F81219', 'F81608', 'F81633', 'F81645', 'F81679', 'F81711', 'F81721', 'F81729', 'F81748', 'F82001', 'F82002', 'F82003', 'F82004', 'F82005', 'F82011', 'F82012', 'F82015', 'F82027', 'F82028', 'F82031', 'F82051', 'F82678', 'F82680', 'F83002', 'F83003', 'F83004', 'F83005', 'F83006', 'F83011', 'F83012', 'F83015', 'F83016', 'F83017', 'F83019', 'F83020', 'F83023', 'F83025', 'F83026', 'F83036', 'F83043', 'F83046', 'F83050', 'F83058', 'F83064', 'F83632', 'F83647', 'F83675', 'F84003', 'F84004', 'F84006', 'F84008', 'F84010', 'F84012', 'F84013', 'F84015', 'F84016', 'F84017', 'F84018', 'F84032', 'F84062', 'F84063', 'F84067', 'F84087', 'F84092', 'F84107', 'F84620', 'F84682', 'F84698', 'F84714', 'F84746', 'F84747', 'F85002', 'F85003', 'F85014', 'F85020', 'F85024', 'F85027', 'F85030', 'F85045', 'F85048', 'F85049', 'F85645', 'F85663', 'F85669', 'F86022', 'F86028', 'F86032', 'F86042', 'F86616', 'F86627', 'F86629', 'F86667', 'F86679', 'F86700', 'F86712', 'F86731', 'G81002', 'G81007', 'G81009', 'G81023', 'G81026', 'G81030', 'G81035', 'G81038', 'G81052', 'G81057', 'G81065', 'G81086', 'G81090', 'G81102', 'G81611', 'G81643', 'G81653', 'G81669', 'G81698', 'G82011', 'G82013', 'G82016', 'G82017', 'G82019', 'G82022', 'G82024', 'G82026', 'G82036', 'G82039', 'G82050', 'G82051', 'G82074', 'G82087', 'G82090', 'G82095', 'G82099', 'G82103', 'G82105', 'G82110', 'G82114', 'G82116', 'G82133', 'G82143', 'G82147', 'G82152', 'G82154', 'G82160', 'G82210', 'G82211', 'G82229', 'G82230', 'G82234', 'G82630', 'G82652', 'G82684', 'G82702', 'G82753', 'G82777', 'G83002', 'G83003', 'G83004', 'G83005', 'G83006', 'G83007', 'G83029', 'G83031', 'G83055', 'G83061', 'G83069', 'G83632', 'G83674', 'G83679', 'G84001', 'G84003', 'G84004', 'G84010', 'G84026', 'G84033', 'G84602', 'G85001', 'G85002', 'G85003', 'G85004', 'G85006', 'G85008', 'G85021', 'G85041', 'G85075', 'G85088', 'G85112', 'G85123', 'G85124', 'G85127', 'G85130', 'G85132', 'G85618', 'G85638', 'G85642', 'G85651', 'G85672', 'G85683', 'G85684', 'G85711', 'H81003', 'H81004', 'H81013', 'H81020', 'H81022', 'H81025', 'H81026', 'H81030', 'H81031', 'H81032', 'H81033', 'H81035', 'H81038', 'H81044', 'H81047', 'H81052', 'H81054', 'H81062', 'H81074', 'H81078', 'H81082', 'H81084', 'H81090', 'H81094', 'H81101', 'H81109', 'H81110', 'H81118', 'H81128', 'H81611', 'H81658', 'H81663', 'H81666', 'H81673', 'H82002', 'H82005', 'H82007', 'H82009', 'H82032', 'H82033', 'H82051', 'H82055', 'H82061', 'H82063', 'H82615', 'H82626', 'H82641', 'H82643', 'H83001', 'H83002', 'H83004', 'H83005', 'H83011', 'H83016', 'H83025', 'H83608', 'H83624', 'H83627', 'H84002', 'H84005', 'H84006', 'H84008', 'H84010', 'H84011', 'H84015', 'H84016', 'H84027', 'H84033', 'H84043', 'H84049', 'H84051', 'H84055', 'H84060', 'H84061', 'H84607', 'H84609', 'H84633', 'H84635', 'H84636', 'H85003', 'H85005', 'H85007', 'H85016', 'H85018', 'H85020', 'H85021', 'H85024', 'H85028', 'H85033', 'H85038', 'H85041', 'H85048', 'H85051', 'H85052', 'H85055', 'H85061', 'H85066', 'H85069', 'H85070', 'H85076', 'H85087', 'H85103', 'H85114', 'H85633', 'H85639', 'H85649', 'H85680', 'H85686', 'H85687', 'J81009', 'J81010', 'J81017', 'J81027', 'J81064', 'J81072', 'J81074', 'J81075', 'J81087', 'J81613', 'J81626', 'J81646', 'J82001', 'J82007', 'J82015', 'J82021', 'J82026', 'J82054', 'J82059', 'J82066', 'J82067', 'J82073', 'J82075', 'J82079', 'J82081', 'J82093', 'J82131', 'J82132', 'J82139', 'J82158', 'J82184', 'J82190', 'J82198', 'J82199', 'J82215', 'J82217', 'J82628', 'J82642', 'J82670', 'J83001', 'J83004', 'J83016', 'J83028', 'J83029', 'J83039', 'J83040', 'J83042', 'J83607', 'J83619', 'J83625', 'J84016', 'K81002', 'K81004', 'K81017', 'K81022', 'K81024', 'K81042', 'K81046', 'K81047', 'K81052', 'K81053', 'K81061', 'K81063', 'K81073', 'K81075', 'K81103', 'K81633', 'K81636', 'K81645', 'K81649', 'K81668', 'K82001', 'K82003', 'K82007', 'K82009', 'K82013', 'K82023', 'K82028', 'K82029', 'K82043', 'K82048', 'K82052', 'K82056', 'K82063', 'K82066', 'K82070', 'K82076', 'K82619', 'K82630', 'K82631', 'K82637', 'K83002', 'K83005', 'K83015', 'K83025', 'K83026', 'K83043', 'K83047', 'K83056', 'K83059', 'K83071', 'K83607', 'K83610', 'K83620', 'K83621', 'K83622', 'K83625', 'K84001', 'K84008', 'K84014', 'K84031', 'K84036', 'K84037', 'K84044', 'K84049', 'K84052', 'K84054', 'K84075', 'K84079', 'K84080', 'K84616', 'K84624', 'L81002', 'L81004', 'L81007', 'L81008', 'L81009', 'L81012', 'L81014', 'L81017', 'L81018', 'L81019', 'L81023', 'L81026', 'L81032', 'L81036', 'L81050', 'L81051', 'L81052', 'L81055', 'L81062', 'L81079', 'L81082', 'L81106', 'L81111', 'L81121', 'L81125', 'L81127', 'L81130', 'L81134', 'L81632', 'L81639', 'L81642', 'L81649', 'L82012', 'L82017', 'L82021', 'L82045', 'L82054', 'L82066', 'L83002', 'L83006', 'L83013', 'L83029', 'L83043', 'L83045', 'L83050', 'L83088', 'L83094', 'L83102', 'L83105', 'L83108', 'L83135', 'L83137', 'L83629', 'L83655', 'L83667', 'L84002', 'L84013', 'L84014', 'L84040', 'L84059', 'L84068', 'L84084', 'L84606', 'L85004', 'L85016', 'L85037', 'L85061', 'L85602', 'L85608', 'M81001', 'M81002', 'M81003', 'M81004', 'M81005', 'M81006', 'M81007', 'M81009', 'M81010', 'M81011', 'M81012', 'M81013', 'M81014', 'M81015', 'M81016', 'M81017', 'M81018', 'M81019', 'M81020', 'M81025', 'M81026', 'M81027', 'M81034', 'M81043', 'M81048', 'M81061', 'M81062', 'M81067', 'M81069', 'M81082', 'M81089', 'M82002', 'M82003', 'M82004', 'M82005', 'M82006', 'M82007', 'M82008', 'M82009', 'M82026', 'M82042', 'M82045', 'M82046', 'M82056', 'M82601', 'M83001', 'M83004', 'M83005', 'M83007', 'M83009', 'M83010', 'M83011', 'M83012', 'M83013', 'M83014', 'M83016', 'M83018', 'M83019', 'M83020', 'M83021', 'M83024', 'M83026', 'M83030', 'M83031', 'M83032', 'M83033', 'M83034', 'M83042', 'M83048', 'M83062', 'M83063', 'M83103', 'M83127', 'M83138', 'M83148', 'M83616', 'M83639', 'M83666', 'M83668', 'M83697', 'M84001', 'M84002', 'M84003', 'M84004', 'M84005', 'M84006', 'M84007', 'M84008', 'M84009', 'M84010', 'M84012', 'M84013', 'M84016', 'M84019', 'M84020', 'M84022', 'M84024', 'M84028', 'M84037', 'M84040', 'M84043', 'M84046', 'M84048', 'M84051', 'M84066', 'M84067', 'M84616', 'M84624', 'M84627', 'M84629', 'M85002', 'M85005', 'M85007', 'M85009', 'M85010', 'M85011', 'M85015', 'M85018', 'M85019', 'M85020', 'M85024', 'M85025', 'M85028', 'M85031', 'M85037', 'M85041', 'M85042', 'M85043', 'M85046', 'M85048', 'M85051', 'M85053', 'M85055', 'M85058', 'M85059', 'M85060', 'M85061', 'M85064', 'M85069', 'M85076', 'M85083', 'M85085', 'M85088', 'M85098', 'M85111', 'M85114', 'M85116', 'M85123', 'M85128', 'M85149', 'M85167', 'M85176', 'M85642', 'M85665', 'M85669', 'M85676', 'M85699', 'M85749', 'M85770', 'M85778', 'M85792', 'M85803', 'M86007', 'M86017', 'M86630', 'M87001', 'M87002', 'M87003', 'M87015', 'M87601', 'M87603', 'M87617', 'M88006', 'M88020', 'M88026', 'M88035', 'M89001', 'M89002', 'M89012', 'M89020', 'M89023', 'M89606', 'M91003', 'M91004', 'M91010', 'M91011', 'M91013', 'M91019', 'M91020', 'M91021', 'M91022', 'M91024', 'M91025', 'M91026', 'M91027', 'M91611', 'M91624', 'M91626', 'M91628', 'M91643', 'M92001', 'M92002', 'M92003', 'M92004', 'M92006', 'M92007', 'M92008', 'M92009', 'M92010', 'M92013', 'M92020', 'M92028', 'M92606', 'M92613', 'N81001', 'N81002', 'N81005', 'N81006', 'N81007', 'N81008', 'N81009', 'N81010', 'N81013', 'N81015', 'N81017', 'N81018', 'N81021', 'N81024', 'N81025', 'N81026', 'N81029', 'N81034', 'N81037', 'N81040', 'N81051', 'N81052', 'N81061', 'N81063', 'N81069', 'N81080', 'N81081', 'N81083', 'N81085', 'N81091', 'N81092', 'N81093', 'N81094', 'N81095', 'N81096', 'N81100', 'N81102', 'N81125', 'N81615', 'N81626', 'N81628', 'N81649', 'N81658', 'N82001', 'N82002', 'N82003', 'N82011', 'N82014', 'N82019', 'N82024', 'N82044', 'N82054', 'N82062', 'N82065', 'N82079', 'N82095', 'N82099', 'N82103', 'N82115', 'N82117', 'N82617', 'N82623', 'N82641', 'N82656', 'N82659', 'N82660', 'N82661', 'N82663', 'N82664', 'N82665', 'N82667', 'N82668', 'N82669', 'N82670', 'N82671', 'N82672', 'N82673', 'N82674', 'N82675', 'N82676', 'N82677', 'N82678', 'N83003', 'N83005', 'N83006', 'N83007', 'N83009', 'N83012', 'N83013', 'N83014', 'N83015', 'N83018', 'N83032', 'N83035', 'N83057', 'N84001', 'N84002', 'N84003', 'N84004', 'N84005', 'N84006', 'N84007', 'N84008', 'N84009', 'N84012', 'N84013', 'N84015', 'N84021', 'N84036', 'N84625', 'N85004', 'N85027', 'N85040', 'N85053', 'N85058', 'P81002', 'P81003', 'P81006', 'P81010', 'P81014', 'P81015', 'P81016', 'P81017', 'P81020', 'P81022', 'P81027', 'P81033', 'P81037', 'P81038', 'P81040', 'P81042', 'P81046', 'P81051', 'P81054', 'P81055', 'P81066', 'P81083', 'P81084', 'P81143', 'P81160', 'P81184', 'P81191', 'P81204', 'P81668', 'P81687', 'P81707', 'P81710', 'P81713', 'P81714', 'P81738', 'P81769', 'P82001', 'P82002', 'P82003', 'P82005', 'P82007', 'P82009', 'P82010', 'P82011', 'P82012', 'P82014', 'P82029', 'P82607', 'P82617', 'P82626', 'P83001', 'P83003', 'P83005', 'P83007', 'P83008', 'P83009', 'P83012', 'P83013', 'P83017', 'P83019', 'P83021', 'P83023', 'P83030', 'P83621', 'P83625', 'P84004', 'P84005', 'P84009', 'P84010', 'P84011', 'P84012', 'P84016', 'P84017', 'P84019', 'P84020', 'P84023', 'P84024', 'P84025', 'P84026', 'P84027', 'P84028', 'P84030', 'P84032', 'P84033', 'P84037', 'P84038', 'P84039', 'P84040', 'P84041', 'P84048', 'P84053', 'P84054', 'P84064', 'P84626', 'P84633', 'P84689', 'P85002', 'P85004', 'P85006', 'P85611', 'P85613', 'P86002', 'P86004', 'P86006', 'P86010', 'P86021', 'P86624', 'P87002', 'P87003', 'P87008', 'P87015', 'P87016', 'P87020', 'P87026', 'P87039', 'P87609', 'P87612', 'P87625', 'P87626', 'P87630', 'P87641', 'P87642', 'P87657', 'P87668', 'P88001', 'P88002', 'P88003', 'P88026', 'P88034', 'P88625', 'P88635', 'P89002', 'P89006', 'P89010', 'P91003', 'P91004', 'P91007', 'P91014', 'P91027', 'P91028', 'P91609', 'P92001', 'P92003', 'P92005', 'P92012', 'P92017', 'P92030', 'P92031', 'P92033', 'P92630', 'P92652', 'S16047', 'S16136', 'S16206', 'S16579', 'V02700', 'V81997', 'V81998', 'V81999', 'W00000', 'W00001', 'W00002', 'W00003', 'W00005', 'W00006', 'W00007', 'W00011', 'W91016', 'W91042', 'W91046', 'W91050', 'W92008', 'W92021', 'W92034', 'W92042', 'W92044', 'W92053', 'W93001', 'W93007', 'W93019', 'W93020', 'W93021', 'W93038', 'W93046', 'W94011', 'W94025', 'W94034', 'W94037', 'W94612', 'W95010', 'W95014', 'W95041', 'W95080', 'W95089', 'W95623', 'W95634', 'W96009', 'W96013', 'W97003', 'W97005', 'W97008', 'W97016', 'W97017', 'W97020', 'W97021', 'W97023', 'W97024', 'W97025', 'W97033', 'W97036', 'W97041', 'W97053', 'W97060', 'W97061', 'W97067', 'W97068', 'W97069', 'W97286', 'W97291', 'W97294', 'W97616', 'W99010', 'W99025', 'XCDF56', 'Y00001', 'Y00002', 'Y00003', 'Y00004', 'Y00005', 'Y00006', 'Y00007', 'Y00008', 'Y00009', 'Y00010', 'Y00011', 'Y00012', 'Y00013', 'Y00014', 'Y00017', 'Y00025', 'Y00030', 'Y00038', 'Y00039', 'Y00042', 'Y00062', 'Y00088', 'Y00098', 'Y00133', 'Y00145', 'Y00167', 'Y00172', 'Y00208', 'Y00211', 'Y00212', 'Y00213', 'Y00214', 'Y00215', 'Y00216', 'Y00217', 'Y00218', 'Y00219', 'Y00220', 'Y00221', 'Y00222', 'Y00223', 'Y00241', 'Y00242', 'Y00243', 'Y00253', 'Y00254', 'Y00255', 'Y00259', 'Y00261', 'Y00264', 'Y00265', 'Y00267', 'Y00274', 'Y00275', 'Y00282', 'Y00284', 'Y00286', 'Y00290', 'Y00291', 'Y00292', 'Y00293', 'Y00294', 'Y00295', 'Y00296', 'Y00299', 'Y00300', 'Y00304', 'Y00306', 'Y00307', 'Y00313', 'Y00319', 'Y00328', 'Y00334', 'Y00342', 'Y00352', 'Y00356', 'Y00357', 'Y00358', 'Y00363', 'Y00364', 'Y00369', 'Y00381', 'Y00396', 'Y00399', 'Y00400', 'Y00406', 'Y00408', 'Y00418', 'Y00432', 'Y00437', 'Y00440', 'Y00452', 'Y00483', 'Y00500', 'Y00502', 'Y00514', 'Y00522', 'Y00527', 'Y00542', 'Y00546', 'Y00560', 'Y00561', 'Y00565', 'Y00583', 'Y00627', 'Y00630', 'Y00633', 'Y00647', 'Y00650', 'Y00667', 'Y00705', 'Y00712', 'Y00744', 'Y00756', 'Y00757', 'Y00779', 'Y00780', 'Y00788', 'Y00800', 'Y00836', 'Y00853', 'Y00883', 'Y00897', 'Y00944', 'Y00955', 'Y00994', 'Y00999', 'Y01016', 'Y01055', 'Y01056', 'Y01058', 'Y01059', 'Y01082', 'Y01110', 'Y01122', 'Y01139', 'Y01152', 'Y01153', 'Y01179', 'Y01207', 'Y01227', 'Y01245', 'Y01257', 'Y01280', 'Y01291', 'Y01636', 'Y01637', 'Y01695', 'Y01734', 'Y01860', 'Y01895', 'Y01920', 'Y01948', 'Y01949', 'Y01995', 'Y02002', 'Y02043', 'Y02055', 'Y02075', 'Y02091', 'Y02101', 'Y02139', 'Y02173', 'Y02174', 'Y02175', 'Y02176', 'Y02177', 'Y02178', 'Y02179', 'Y02180', 'Y02181', 'Y02182', 'Y02183', 'Y02184', 'Y02185', 'Y02186', 'Y02187', 'Y02188', 'Y02189', 'Y02190', 'Y02504', 'Y02926', 'Y03108', 'Y03580', 'Y03749', 'Y04573', 'Y05010', 'Y05366', 'Y05496', 'Y05512', 'Y06468', 'Y06469', 'Y40001', 'Y40003', 'Y90002', 'Y90003', 'Y90004', 'Y90005', 'Y90006', 'Y90009', 'Y90012', 'Y90013', 'Y90014', 'Y90015', 'Y90016', 'Y90017', 'Y90018', 'Y90019', 'Y90020', 'Y90021', 'Y90022', 'Y90023', 'Y90024', 'Y90025', 'Y90026', 'Y90027', 'Y90028', 'Y90029', 'Y90030', 'Y90031', 'Y90032', 'Y90033', 'Y90034', 'Y90035', 'Y90036', 'Y90037', 'Y90038', 'Y90039', 'Y90040', 'Y90041', 'Y90042', 'Y90043', 'Y90044', 'Y90045', 'Y90046', 'Y90047', 'Y90048', 'Y90049', 'Y90050', 'Y90051', 'Y90052', 'Y90053', 'Y90054', 'Y90055', 'Y90056', 'Y90057', 'Y90058', 'Y90059', 'Y90060', 'Y90061', 'Y90062', 'Y90063', 'Y90064', 'Y90065', 'Y90066', 'Y90067', 'Y90068', 'Y90069', 'Y90070', 'Y90071', 'Y90072', 'Y90073', 'Y90074', 'Y90075', 'Y90076', 'Y90077', 'Y90078', 'Y90079', 'Y90080', 'Y90081', 'Y90082', 'Y90083', 'Y90084', 'Y90085', 'Y90086', 'Y90087', 'Y90088', 'Y90089', 'Y90090', 'Y90091', 'Y90092', 'Y90093', 'Y90094', 'Y90095', 'Y90096', 'Y90097', 'Y90098', 'Y90099', 'Y90100', 'Y90101', 'Y90102', 'Y90103', 'Y90104', 'Y90105', 'Y90106', 'Y90107', 'Y90108', 'Y90109', 'Y90110', 'Y90111', 'Y90112', 'Y90129', 'Y90181', 'Y90203', 'Y90206', 'Y90207', 'Y90208', 'Y90216', 'Y90217', 'Y90218', 'Y90219', 'Y90220', 'Y90221', 'Y90222', 'Y90223', 'Y90224', 'Y90225', 'Y90226', 'Y90227', 'Y90228', 'Y90229', 'Y90230', 'Y90231', 'Y90232', 'Y90233', 'Y90234', 'Y90235', 'Y90236', 'Y90237', 'Y90239', 'Y90242', 'Y90243', 'Y90244', 'Y90245', 'Y90246', 'Y90247', 'Y90248', 'Y90249', 'Y90250', 'Y90251', 'Y90252', 'Y90253', 'Y90254', 'Y90255', 'Y90256', 'Y90257', 'Y90258', 'Y90259', 'Y90260', 'Y90261', 'Y90262', 'Y90263', 'Y90264', 'Y90265', 'Y90266', 'Y90267', 'Y90270', 'Y90271', 'Y90272', 'Y90273', 'Y90274', 'Y90275', 'Y90276', 'Y90277', 'Y90278', 'Y90279', 'Y90280', 'Y90281', 'Y90282', 'Y90283', 'Y90284', 'Y90285', 'Y90286', 'Y90287', 'Y90288', 'Y90289', 'Y90290', 'Y90291', 'Y90292', 'Y90293', 'Y90294', 'Y90295', 'Y90296', 'Y90297', 'Y90298', 'Y90299', 'Y90300', 'Y90301', 'Y90302', 'Y90303', 'Y90304', 'Y90305', 'Y90306', 'Y90307', 'Y90308', 'Y90309', 'Y90310', 'Y90311', 'Y90312', 'Y90313', 'Y90314', 'Y90315', 'Y90316', 'Y90317', 'Y90318', 'Y90319', 'Y90321', 'Z00001'] |
ROBOT_POSITION_RESSOURCE = '/robotposition'
CUBE_POSITION_RESSOURCE = '/cubeposition'
PATH_RESSOURCE = '/path'
FLAG_RESSOURCE = '/flag' | robot_position_ressource = '/robotposition'
cube_position_ressource = '/cubeposition'
path_ressource = '/path'
flag_ressource = '/flag' |
server = "uri.pi"
port = 4711
# well World
home = Vec3(-66.9487,7.0,-39.5313)
| server = 'uri.pi'
port = 4711
home = vec3(-66.9487, 7.0, -39.5313) |
# file handling
# 1) without using with statement
file = open('t1.txt', 'w')
file.write('hello world !')
file.close()
# 2) without using with statement
file = open('t2.txt', 'w')
try:
file.write('hello world')
finally:
file.close()
# 3) using with statement
with open('t3.txt', 'w') as file:
file.write('hello world !')
| file = open('t1.txt', 'w')
file.write('hello world !')
file.close()
file = open('t2.txt', 'w')
try:
file.write('hello world')
finally:
file.close()
with open('t3.txt', 'w') as file:
file.write('hello world !') |
#Will add a fixed header and return a sendable string (we should add pickle support here at some point somehow), also encodes the message for you
def createMsg(data):
msg = data
msg = f'{len(msg):<10}' + msg
return msg.encode("utf-8")
#streams data from the 'target' socket with an initial buffersize of 'bufferSize' (returns the decoded data)
def streamData(target, bufferSize):
#initial data chunk (contains an int of how much data the server should expect)
data = target.recv(bufferSize)
msglen = int(data[:bufferSize].strip())
decoded_data = ''
#stream the data in with a set buffer size
while len(decoded_data) < msglen:
print(decoded_data)
decoded_data += target.recv(bufferSize).decode("utf-8")
return decoded_data
| def create_msg(data):
msg = data
msg = f'{len(msg):<10}' + msg
return msg.encode('utf-8')
def stream_data(target, bufferSize):
data = target.recv(bufferSize)
msglen = int(data[:bufferSize].strip())
decoded_data = ''
while len(decoded_data) < msglen:
print(decoded_data)
decoded_data += target.recv(bufferSize).decode('utf-8')
return decoded_data |
class Solution:
def maxNonOverlapping(self, nums: List[int], target: int) -> int:
last = {0:-1}
s = 0
dp = [0]*len(nums)
for i in range(len(nums)):
s += nums[i]
if s-target in last:
dp[i] = max(dp[i-1] if i-1>=0 else 0, 1+ (dp[last[s-target]] if last[s-target]>=0 else 0))
else:
dp[i] = dp[i-1] if i-1>=0 else 0
last[s] = i
return dp[-1]
| class Solution:
def max_non_overlapping(self, nums: List[int], target: int) -> int:
last = {0: -1}
s = 0
dp = [0] * len(nums)
for i in range(len(nums)):
s += nums[i]
if s - target in last:
dp[i] = max(dp[i - 1] if i - 1 >= 0 else 0, 1 + (dp[last[s - target]] if last[s - target] >= 0 else 0))
else:
dp[i] = dp[i - 1] if i - 1 >= 0 else 0
last[s] = i
return dp[-1] |
def ascii_cipher(message, key):
pfactor = max(
i for i in range(2, abs(key)+1)
if is_prime(i) and key%i==0
)*(-1 if key<0 else 1)
return ''.join(chr((ord(c)+pfactor)%128) for c in message)
def is_prime(n):
if n < 2: return False
return all( n%i!=0 for i in range(2, round(pow(n,0.5))+1) ) or n==2
| def ascii_cipher(message, key):
pfactor = max((i for i in range(2, abs(key) + 1) if is_prime(i) and key % i == 0)) * (-1 if key < 0 else 1)
return ''.join((chr((ord(c) + pfactor) % 128) for c in message))
def is_prime(n):
if n < 2:
return False
return all((n % i != 0 for i in range(2, round(pow(n, 0.5)) + 1))) or n == 2 |
def add_two(a, b):
'''Adds two numbers together'''
return a + b
def multiply_two(a, b):
'''Multiplies two numbers together'''
return a * b
| def add_two(a, b):
"""Adds two numbers together"""
return a + b
def multiply_two(a, b):
"""Multiplies two numbers together"""
return a * b |
# # example string
# string = 'cat'
# width = 5
# print right justified string
# print(string.rjust(width))
# print(string.rjust(width))
# # example string
# string = 'cat'
# width = 5
# fillchar = '*'
# # print right justified string
# print(string.rjust(width, fillchar))
# # .centre function
# string = "Python is awesome"
# new_string = string.center(24)
# print(string.center(24))
# print("Centered String: ", new_string)
# print(new_string)
# s = input()
# list1 = [word.capitalize() for word in s.split(' ')]
# a = ' '.join(list1)
# print(a)
# print(list1)
size = 5
a = list(map(chr, range(97, 122)))
m = a[size-1::-1] + a[:size]
print(m)
| size = 5
a = list(map(chr, range(97, 122)))
m = a[size - 1::-1] + a[:size]
print(m) |
def test_use_provider(accounts, networks):
with networks.fantom.local.use_provider("test"):
account = accounts.test_accounts[0]
account.transfer(account, 100)
| def test_use_provider(accounts, networks):
with networks.fantom.local.use_provider('test'):
account = accounts.test_accounts[0]
account.transfer(account, 100) |
class Field(object):
def render(self, field):
raise NotImplementedError('Field.render needs to be defined')
class Attr(Field):
def __init__(self, attr, default=None, type=None):
self.attr = attr
self.default = default
if type is None:
self.type = lambda x: x
else:
self.type = type
def render(self, field):
try:
x = field
for attr in self.attr.split('.'):
x = getattr(x, attr)
return self.type(x)
except AttributeError:
return self.default
class Name(Field):
def render(self, field):
return field.__name__.replace('__', '.')
class Func(Field):
def __init__(self, func):
self.func = func
def render(self, field):
return self.func(field)
class Literal(Field):
def __init__(self, value):
self.value = value
def render(self, *args, **kwargs):
return self.value
| class Field(object):
def render(self, field):
raise not_implemented_error('Field.render needs to be defined')
class Attr(Field):
def __init__(self, attr, default=None, type=None):
self.attr = attr
self.default = default
if type is None:
self.type = lambda x: x
else:
self.type = type
def render(self, field):
try:
x = field
for attr in self.attr.split('.'):
x = getattr(x, attr)
return self.type(x)
except AttributeError:
return self.default
class Name(Field):
def render(self, field):
return field.__name__.replace('__', '.')
class Func(Field):
def __init__(self, func):
self.func = func
def render(self, field):
return self.func(field)
class Literal(Field):
def __init__(self, value):
self.value = value
def render(self, *args, **kwargs):
return self.value |
def set_elements_sum(a, b):
c = []
for i in range(len(a)):
result = a[i] + b[i]
c.append(result)
return c
ll = [1, 2, 3, 4, 5]
ll2 = [3, 4, 5, 6, 7]
print(set_elements_sum(ll, ll2))
# [4, 6, 8, 10, 12]
| def set_elements_sum(a, b):
c = []
for i in range(len(a)):
result = a[i] + b[i]
c.append(result)
return c
ll = [1, 2, 3, 4, 5]
ll2 = [3, 4, 5, 6, 7]
print(set_elements_sum(ll, ll2)) |
# URI Online Judge 1133
X = int(input())
Y = int(input())
soma = 0
if Y < X:
X, Y = Y, X
for i in range(X,Y+1):
if i%13!=0:
soma += i
print(soma) | x = int(input())
y = int(input())
soma = 0
if Y < X:
(x, y) = (Y, X)
for i in range(X, Y + 1):
if i % 13 != 0:
soma += i
print(soma) |
salario = float(input())
if (salario >= 0 and salario <= 2000.00):
print('Isento')
elif (salario >= 2000.01 and salario <= 3000.00):
resto = salario - 2000
resul = resto * 0.08
print('R$ {:.2f}'.format(resul))
elif (salario >= 3000.01 and salario <= 4500.00):
resto = salario - 3000
resul = (resto * 0.18) + (1000 * 0.08)
print('R$ {:.2f}'.format(resul))
elif (salario > 4500.00):
resto = salario - 4500
resul = (resto * 0.28) + (1500 * 0.18) + (1000 * 0.08)
print('R$ {:.2f}'.format(resul)) | salario = float(input())
if salario >= 0 and salario <= 2000.0:
print('Isento')
elif salario >= 2000.01 and salario <= 3000.0:
resto = salario - 2000
resul = resto * 0.08
print('R$ {:.2f}'.format(resul))
elif salario >= 3000.01 and salario <= 4500.0:
resto = salario - 3000
resul = resto * 0.18 + 1000 * 0.08
print('R$ {:.2f}'.format(resul))
elif salario > 4500.0:
resto = salario - 4500
resul = resto * 0.28 + 1500 * 0.18 + 1000 * 0.08
print('R$ {:.2f}'.format(resul)) |
for i in range(int(input())):
a, b, c = map(int, input().split())
mi = min(a, b)
ma = max(a, b)
half_circle_people = (ma - mi)
full_circle_people = 2 * half_circle_people
if ma > half_circle_people * 2 or c > full_circle_people:
print(-1)
else:
print((c - half_circle_people - 1) % full_circle_people + 1)
| for i in range(int(input())):
(a, b, c) = map(int, input().split())
mi = min(a, b)
ma = max(a, b)
half_circle_people = ma - mi
full_circle_people = 2 * half_circle_people
if ma > half_circle_people * 2 or c > full_circle_people:
print(-1)
else:
print((c - half_circle_people - 1) % full_circle_people + 1) |
# model settings
model = dict(
type='Recognizer3DRPL',
backbone=dict(
type='ResNet3dSlowOnly',
depth=50,
pretrained='torchvision://resnet50',
lateral=False,
out_indices=(2, 3),
conv1_kernel=(1, 7, 7),
conv1_stride_t=1,
pool1_stride_t=1,
inflate=(0, 0, 1, 1),
norm_eval=False),
neck=dict(
type='TPN',
in_channels=(1024, 2048),
out_channels=1024,
spatial_modulation_cfg=dict(
in_channels=(1024, 2048), out_channels=2048),
temporal_modulation_cfg=dict(downsample_scales=(8, 8)),
upsample_cfg=dict(scale_factor=(1, 1, 1)),
downsample_cfg=dict(downsample_scale=(1, 1, 1)),
level_fusion_cfg=dict(
in_channels=(1024, 1024),
mid_channels=(1024, 1024),
out_channels=2048,
downsample_scales=((1, 1, 1), (1, 1, 1)))),
cls_head=dict(
type='TPNRPLHead',
loss_cls=dict(type='RPLoss',
temperature=1,
weight_pl=0.1),
num_classes=101,
in_channels=2048,
spatial_type='avg',
consensus=dict(type='AvgConsensus', dim=1),
dropout_ratio=0.5,
init_std=0.01))
evidence='exp' # only used for EDL
test_cfg = dict(average_clips='prob')
dataset_type = 'VideoDataset'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_bgr=False)
test_pipeline = [
dict(type='OpenCVInit', num_threads=1),
dict(
type='SampleFrames',
clip_len=8,
frame_interval=8,
num_clips=10,
test_mode=True),
dict(type='OpenCVDecode'),
dict(type='Resize', scale=(-1, 256)),
dict(type='ThreeCrop', crop_size=256),
dict(type='Normalize', **img_norm_cfg),
dict(type='FormatShape', input_format='NCTHW'),
dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]),
dict(type='ToTensor', keys=['imgs'])
]
data = dict(
videos_per_gpu=2,
workers_per_gpu=2,
test=dict(
type=dataset_type,
ann_file=None,
data_prefix=None,
pipeline=test_pipeline))
| model = dict(type='Recognizer3DRPL', backbone=dict(type='ResNet3dSlowOnly', depth=50, pretrained='torchvision://resnet50', lateral=False, out_indices=(2, 3), conv1_kernel=(1, 7, 7), conv1_stride_t=1, pool1_stride_t=1, inflate=(0, 0, 1, 1), norm_eval=False), neck=dict(type='TPN', in_channels=(1024, 2048), out_channels=1024, spatial_modulation_cfg=dict(in_channels=(1024, 2048), out_channels=2048), temporal_modulation_cfg=dict(downsample_scales=(8, 8)), upsample_cfg=dict(scale_factor=(1, 1, 1)), downsample_cfg=dict(downsample_scale=(1, 1, 1)), level_fusion_cfg=dict(in_channels=(1024, 1024), mid_channels=(1024, 1024), out_channels=2048, downsample_scales=((1, 1, 1), (1, 1, 1)))), cls_head=dict(type='TPNRPLHead', loss_cls=dict(type='RPLoss', temperature=1, weight_pl=0.1), num_classes=101, in_channels=2048, spatial_type='avg', consensus=dict(type='AvgConsensus', dim=1), dropout_ratio=0.5, init_std=0.01))
evidence = 'exp'
test_cfg = dict(average_clips='prob')
dataset_type = 'VideoDataset'
img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_bgr=False)
test_pipeline = [dict(type='OpenCVInit', num_threads=1), dict(type='SampleFrames', clip_len=8, frame_interval=8, num_clips=10, test_mode=True), dict(type='OpenCVDecode'), dict(type='Resize', scale=(-1, 256)), dict(type='ThreeCrop', crop_size=256), dict(type='Normalize', **img_norm_cfg), dict(type='FormatShape', input_format='NCTHW'), dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]), dict(type='ToTensor', keys=['imgs'])]
data = dict(videos_per_gpu=2, workers_per_gpu=2, test=dict(type=dataset_type, ann_file=None, data_prefix=None, pipeline=test_pipeline)) |
def make_divider():
return {"type": "divider"}
def make_markdown(text):
return {"type": "mrkdwn", "text": text }
def make_section(text):
return {"type":"section", "text": make_markdown(text)}
def make_context(*args):
return {"type":"context", "elements": [*args]}
def make_blocks(*args):
return [*args]
| def make_divider():
return {'type': 'divider'}
def make_markdown(text):
return {'type': 'mrkdwn', 'text': text}
def make_section(text):
return {'type': 'section', 'text': make_markdown(text)}
def make_context(*args):
return {'type': 'context', 'elements': [*args]}
def make_blocks(*args):
return [*args] |
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3".split(';') if "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "cmake_modules;roscpp;sensor_msgs;lino_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-laccel_calib".split(';') if "-laccel_calib" != "" else []
PROJECT_NAME = "imu_calib"
PROJECT_SPACE_DIR = "/home/nvidia/linorobot_ws/devel"
PROJECT_VERSION = "0.0.0"
| catkin_package_prefix = ''
project_pkg_config_include_dirs = '/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3'.split(';') if '/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3' != '' else []
project_catkin_depends = 'cmake_modules;roscpp;sensor_msgs;lino_msgs'.replace(';', ' ')
pkg_config_libraries_with_prefix = '-laccel_calib'.split(';') if '-laccel_calib' != '' else []
project_name = 'imu_calib'
project_space_dir = '/home/nvidia/linorobot_ws/devel'
project_version = '0.0.0' |
numero = int(input("Entre com um numero inteiro e menor que 1000: "))
if numero > 1000:
print("Numero invalido")
else:
unidade = numero % 10
numero = (numero - unidade) / 10
dezena = int(numero % 10)
numero = (numero - dezena) / 10
centena = int(numero)
print(f"{centena} centena(s) , {dezena} dezena(s) e {unidade} unidade(s)")
| numero = int(input('Entre com um numero inteiro e menor que 1000: '))
if numero > 1000:
print('Numero invalido')
else:
unidade = numero % 10
numero = (numero - unidade) / 10
dezena = int(numero % 10)
numero = (numero - dezena) / 10
centena = int(numero)
print(f'{centena} centena(s) , {dezena} dezena(s) e {unidade} unidade(s)') |
def str_to_bool(s):
if isinstance(s, bool): # do not convert if already a boolean
return s
else:
if s == 'True' \
or s == 'true' \
or s == '1' \
or s == 1 \
or s == True:
return True
elif s == 'False' \
or s == 'false' \
or s == '0' \
or s == 0 \
or s == False:
return False
return False
| def str_to_bool(s):
if isinstance(s, bool):
return s
elif s == 'True' or s == 'true' or s == '1' or (s == 1) or (s == True):
return True
elif s == 'False' or s == 'false' or s == '0' or (s == 0) or (s == False):
return False
return False |
class Solution:
def compareVersion(self, version1: str, version2: str) -> int:
ver1 = version1.split('.')
ver2 = version2.split('.')
def removeLeadingZeros(s):
while len(s) > 1 and s[0] == '0':
s = s[1:]
return s
ver1 = [removeLeadingZeros(ver1[i]) for i in range(len(ver1))]
ver2 = [removeLeadingZeros(ver2[i]) for i in range(len(ver2))]
i = 0
while i < max(len(ver1), len(ver2)):
v1 = ver1[i] if i < len(ver1) else 0
v2 = ver2[i] if i < len(ver2) else 0
i += 1
if int(v1) > int(v2): return 1
if int(v1) < int(v2): return -1
return 0
| class Solution:
def compare_version(self, version1: str, version2: str) -> int:
ver1 = version1.split('.')
ver2 = version2.split('.')
def remove_leading_zeros(s):
while len(s) > 1 and s[0] == '0':
s = s[1:]
return s
ver1 = [remove_leading_zeros(ver1[i]) for i in range(len(ver1))]
ver2 = [remove_leading_zeros(ver2[i]) for i in range(len(ver2))]
i = 0
while i < max(len(ver1), len(ver2)):
v1 = ver1[i] if i < len(ver1) else 0
v2 = ver2[i] if i < len(ver2) else 0
i += 1
if int(v1) > int(v2):
return 1
if int(v1) < int(v2):
return -1
return 0 |
GUIDs = {
"ASROCK_ACPIS4_DXE_GUID": [69196166, 45078, 18382, 175, 197, 34, 105, 237, 212, 173, 100],
"ASROCK_USBRT_GUID": [82487969, 10657, 4567, 136, 56, 0, 80, 4, 115, 212, 235],
"ASROCK_RAID_SETUP_GUID": [152494882, 14144, 12750, 173, 98, 189, 23, 44, 236, 202, 54],
"ASROCK_RAID_LOADER_GUID": [164506669, 19843, 17592, 151, 208, 16, 133, 235, 84, 144, 184],
"ASROCK_SIOSLPSMI_GUID": [204970154, 53806, 19926, 140, 180, 60, 156, 251, 29, 134, 211],
"ASROCK_PLEDDXE_GUID": [260599413, 12329, 20175, 182, 148, 34, 137, 77, 63, 33, 67],
"ASROCK_A_DEFAULT_DXE_GUID": [303480106, 49246, 19565, 145, 231, 235, 142, 55, 173, 59, 122],
"ASROCK_USER_DEF_SETUP_DXE_GUID": [321832763, 48422, 20415, 177, 147, 138, 203, 80, 239, 189, 137],
"ASROCK_WAKEUP_CTRL_SMM_GUID": [460234064, 4836, 19285, 129, 217, 26, 191, 236, 89, 212, 252],
"ASROCK_AMI_AGESA_DXE_GUID": [503020538, 49038, 19729, 151, 102, 47, 176, 208, 68, 35, 16],
"ASROCK_HDD_READY_SMI_GUID": [560462180, 29336, 19087, 154, 42, 191, 228, 152, 214, 0, 168],
"ASROCK_MOUSE_DRIVER_GUID": [719032155, 51156, 20094, 190, 42, 35, 99, 77, 246, 104, 161],
"ASROCK_IDESMM_GUID": [829100592, 1280, 17810, 140, 9, 234, 186, 15, 182, 176, 127],
"ASROCK_BFGSMI_GUID": [978522445, 22131, 19929, 181, 179, 203, 114, 195, 71, 102, 155],
"ASROCK_ASRLOGODXE_GUID": [1033880909, 6629, 19152, 185, 134, 2, 214, 135, 215, 96, 229],
"ASROCK_ASM104_X_DXE_GUID": [1080004582, 21011, 19333, 184, 33, 151, 183, 122, 255, 121, 91],
"ASROCK_HDAUDIO_SMI_GUID": [1254707048, 58961, 19256, 161, 216, 45, 93, 239, 250, 15, 96],
"ASROCK_SM_BUS_DXE_GUID": [1265110573, 3427, 20322, 185, 48, 122, 233, 149, 185, 179, 163],
"ASROCK_USBINT13_GUID": [1275096281, 6586, 17943, 132, 131, 96, 145, 148, 161, 172, 252],
"ASROCK_SLP_SUPPORT_GUID": [1279872597, 22601, 21314, 69, 84, 84, 69, 82, 33, 33, 33],
"ASROCK_PATA_CONTROLLER_GUID": [1334921163, 38702, 20316, 184, 105, 160, 33, 130, 201, 217, 60],
"ASROCK_SATA_CONTROLLER_GUID": [1359869601, 46785, 18760, 174, 231, 89, 242, 32, 248, 152, 189],
"ASROCK_ACPIS4_SMM_GUID": [1368992111, 10248, 19194, 148, 196, 153, 246, 176, 108, 135, 30],
"ASROCK_POST_REPORT_GUID": [1413923475, 13211, 18381, 183, 25, 88, 93, 227, 148, 8, 204],
"ASROCK_CLOCK_GEN_DXE_GUID": [1447053695, 25694, 17937, 185, 21, 230, 130, 200, 189, 71, 131],
"ASROCK_UHCD_GUID": [1477302528, 14429, 4567, 136, 58, 0, 80, 4, 115, 212, 235],
"ASROCK_LEGACY_REGION_GUID": [1495543256, 59343, 18809, 182, 14, 166, 6, 126, 42, 24, 95],
"ASROCK_SLEEP_SMI_GUID": [1654193688, 54767, 17079, 187, 12, 41, 83, 40, 63, 87, 4],
"ASROCK_CMOS_MANAGER_SMM_GUID": [1751762355, 44173, 18803, 139, 55, 227, 84, 219, 243, 74, 221],
"ASROCK_AMD_AGESA_DXE_DRIVER_GUID": [1766895615, 28387, 4573, 173, 139, 8, 0, 32, 12, 154, 102],
"ASROCK_RE_FLASH_GUID": [1893836824, 3041, 17481, 191, 212, 158, 246, 140, 127, 2, 168],
"ASROCK_LEGACY_INTERRUPT_GUID": [1911362257, 9483, 17147, 140, 23, 16, 220, 250, 119, 23, 1],
"ASROCK_SMM_CHILD_DISPATCHER_GUID": [1966485705, 64229, 18345, 187, 191, 136, 214, 33, 205, 114, 130],
"ASROCK_BFGDXE_GUID": [1988600983, 65358, 18687, 188, 170, 103, 219, 246, 92, 66, 209],
"ASROCK_IFLASHSETUP_GUID": [2011543064, 9746, 19496, 188, 223, 162, 177, 77, 138, 62, 254],
"ASROCK_S4_SLEEPDELAY_GUID": [2075935011, 23902, 19484, 149, 209, 48, 235, 164, 135, 1, 202],
"ASROCK_HDD_READY_DXE_GUID": [2179248970, 9868, 20428, 142, 57, 28, 29, 62, 111, 110, 105],
"ASROCK_RTLANDXE_GUID": [2332955475, 13708, 20015, 147, 69, 238, 191, 29, 171, 152, 155],
"ASROCK_AMD_SB900_DXE_GUID": [2333274783, 28981, 20139, 175, 218, 5, 18, 247, 75, 101, 234],
"ASROCK_SB900_SMBUS_LIGHT_GUID": [2551896525, 34437, 19115, 175, 218, 5, 18, 247, 75, 101, 234],
"ASROCK_AAFTBL_SMI_GUID": [2667102838, 46054, 19161, 143, 231, 199, 79, 113, 196, 114, 72],
"ASROCK_NVRAMID_GUID": [2708185858, 25876, 17031, 190, 227, 98, 35, 183, 222, 44, 33],
"ASROCK_IDE_SECURITY_GUID": [2847342799, 414, 19851, 163, 167, 136, 225, 234, 1, 105, 158],
"ASROCK_ASM1061_DXE_GUID": [2848876245, 27959, 17694, 169, 191, 245, 143, 122, 11, 60, 194],
"ASROCK_ASM104_X_SMI_GUID": [2904508538, 47702, 18652, 142, 170, 232, 251, 234, 116, 184, 242],
"ASROCK_RTLANSMI_GUID": [3005543067, 24215, 19449, 180, 224, 81, 37, 193, 246, 5, 213],
"ASROCK_GEC_UPDATE_SMI_GUID": [3092850716, 5882, 17832, 146, 1, 28, 56, 48, 169, 115, 189],
"ASROCK_APMOFF_GUID": [3146872289, 16021, 19326, 135, 80, 157, 106, 163, 78, 183, 246],
"ASROCK_SMIFLASH_GUID": [3157425597, 47490, 20309, 159, 121, 5, 106, 215, 233, 135, 197],
"ASROCK_RAID_X64_GUID": [3295196034, 17744, 18697, 173, 87, 36, 150, 20, 27, 63, 74],
"ASROCK_AMD_SB900_SMM_GUID": [3351810409, 6722, 20062, 179, 75, 230, 131, 6, 113, 201, 166],
"ASROCK_FIREWIRE_GUID": [3367390790, 38937, 17835, 135, 93, 9, 223, 218, 109, 139, 27],
"ASROCK_IDE_SMART_GUID": [3581707566, 32927, 17871, 163, 119, 215, 123, 192, 203, 120, 238],
"ASROCK_SB_INTERFACE_DXE_GUID": [3622218689, 38683, 17947, 181, 228, 60, 55, 102, 38, 122, 217],
"ASROCK_AMD_SB900_SMM_DISPATCHER_GUID": [3748899802, 31298, 20062, 179, 75, 230, 131, 6, 113, 201, 166],
"ASROCK_AMDCPU_DXE_GUID": [3786566962, 16719, 18139, 154, 238, 66, 0, 119, 243, 93, 190],
"ASROCK_SMBIOS_DMIEDIT_GUID": [3802613560, 35124, 18677, 132, 18, 153, 233, 72, 200, 220, 27],
"ASROCK_SECURITY_SELECT_DXE_GUID": [3832130086, 37480, 20144, 160, 135, 221, 76, 238, 55, 64, 75],
"ASROCK_FILE_EXPLORER_LITE_GUID": [3875982164, 33976, 16573, 131, 47, 127, 178, 213, 203, 135, 179],
"ASROCK_PLEDSMM_GUID": [3911953940, 15869, 19568, 159, 230, 56, 153, 243, 108, 120, 70],
"ASROCK_CPU_SMBIOS_DRIVER_GUID": [3930959592, 43089, 19103, 171, 244, 183, 159, 162, 82, 130, 145],
"ASROCK_AAFTBL_DXE_GUID": [4279363330, 35107, 18380, 173, 48, 217, 224, 226, 64, 221, 16],
}
| gui_ds = {'ASROCK_ACPIS4_DXE_GUID': [69196166, 45078, 18382, 175, 197, 34, 105, 237, 212, 173, 100], 'ASROCK_USBRT_GUID': [82487969, 10657, 4567, 136, 56, 0, 80, 4, 115, 212, 235], 'ASROCK_RAID_SETUP_GUID': [152494882, 14144, 12750, 173, 98, 189, 23, 44, 236, 202, 54], 'ASROCK_RAID_LOADER_GUID': [164506669, 19843, 17592, 151, 208, 16, 133, 235, 84, 144, 184], 'ASROCK_SIOSLPSMI_GUID': [204970154, 53806, 19926, 140, 180, 60, 156, 251, 29, 134, 211], 'ASROCK_PLEDDXE_GUID': [260599413, 12329, 20175, 182, 148, 34, 137, 77, 63, 33, 67], 'ASROCK_A_DEFAULT_DXE_GUID': [303480106, 49246, 19565, 145, 231, 235, 142, 55, 173, 59, 122], 'ASROCK_USER_DEF_SETUP_DXE_GUID': [321832763, 48422, 20415, 177, 147, 138, 203, 80, 239, 189, 137], 'ASROCK_WAKEUP_CTRL_SMM_GUID': [460234064, 4836, 19285, 129, 217, 26, 191, 236, 89, 212, 252], 'ASROCK_AMI_AGESA_DXE_GUID': [503020538, 49038, 19729, 151, 102, 47, 176, 208, 68, 35, 16], 'ASROCK_HDD_READY_SMI_GUID': [560462180, 29336, 19087, 154, 42, 191, 228, 152, 214, 0, 168], 'ASROCK_MOUSE_DRIVER_GUID': [719032155, 51156, 20094, 190, 42, 35, 99, 77, 246, 104, 161], 'ASROCK_IDESMM_GUID': [829100592, 1280, 17810, 140, 9, 234, 186, 15, 182, 176, 127], 'ASROCK_BFGSMI_GUID': [978522445, 22131, 19929, 181, 179, 203, 114, 195, 71, 102, 155], 'ASROCK_ASRLOGODXE_GUID': [1033880909, 6629, 19152, 185, 134, 2, 214, 135, 215, 96, 229], 'ASROCK_ASM104_X_DXE_GUID': [1080004582, 21011, 19333, 184, 33, 151, 183, 122, 255, 121, 91], 'ASROCK_HDAUDIO_SMI_GUID': [1254707048, 58961, 19256, 161, 216, 45, 93, 239, 250, 15, 96], 'ASROCK_SM_BUS_DXE_GUID': [1265110573, 3427, 20322, 185, 48, 122, 233, 149, 185, 179, 163], 'ASROCK_USBINT13_GUID': [1275096281, 6586, 17943, 132, 131, 96, 145, 148, 161, 172, 252], 'ASROCK_SLP_SUPPORT_GUID': [1279872597, 22601, 21314, 69, 84, 84, 69, 82, 33, 33, 33], 'ASROCK_PATA_CONTROLLER_GUID': [1334921163, 38702, 20316, 184, 105, 160, 33, 130, 201, 217, 60], 'ASROCK_SATA_CONTROLLER_GUID': [1359869601, 46785, 18760, 174, 231, 89, 242, 32, 248, 152, 189], 'ASROCK_ACPIS4_SMM_GUID': [1368992111, 10248, 19194, 148, 196, 153, 246, 176, 108, 135, 30], 'ASROCK_POST_REPORT_GUID': [1413923475, 13211, 18381, 183, 25, 88, 93, 227, 148, 8, 204], 'ASROCK_CLOCK_GEN_DXE_GUID': [1447053695, 25694, 17937, 185, 21, 230, 130, 200, 189, 71, 131], 'ASROCK_UHCD_GUID': [1477302528, 14429, 4567, 136, 58, 0, 80, 4, 115, 212, 235], 'ASROCK_LEGACY_REGION_GUID': [1495543256, 59343, 18809, 182, 14, 166, 6, 126, 42, 24, 95], 'ASROCK_SLEEP_SMI_GUID': [1654193688, 54767, 17079, 187, 12, 41, 83, 40, 63, 87, 4], 'ASROCK_CMOS_MANAGER_SMM_GUID': [1751762355, 44173, 18803, 139, 55, 227, 84, 219, 243, 74, 221], 'ASROCK_AMD_AGESA_DXE_DRIVER_GUID': [1766895615, 28387, 4573, 173, 139, 8, 0, 32, 12, 154, 102], 'ASROCK_RE_FLASH_GUID': [1893836824, 3041, 17481, 191, 212, 158, 246, 140, 127, 2, 168], 'ASROCK_LEGACY_INTERRUPT_GUID': [1911362257, 9483, 17147, 140, 23, 16, 220, 250, 119, 23, 1], 'ASROCK_SMM_CHILD_DISPATCHER_GUID': [1966485705, 64229, 18345, 187, 191, 136, 214, 33, 205, 114, 130], 'ASROCK_BFGDXE_GUID': [1988600983, 65358, 18687, 188, 170, 103, 219, 246, 92, 66, 209], 'ASROCK_IFLASHSETUP_GUID': [2011543064, 9746, 19496, 188, 223, 162, 177, 77, 138, 62, 254], 'ASROCK_S4_SLEEPDELAY_GUID': [2075935011, 23902, 19484, 149, 209, 48, 235, 164, 135, 1, 202], 'ASROCK_HDD_READY_DXE_GUID': [2179248970, 9868, 20428, 142, 57, 28, 29, 62, 111, 110, 105], 'ASROCK_RTLANDXE_GUID': [2332955475, 13708, 20015, 147, 69, 238, 191, 29, 171, 152, 155], 'ASROCK_AMD_SB900_DXE_GUID': [2333274783, 28981, 20139, 175, 218, 5, 18, 247, 75, 101, 234], 'ASROCK_SB900_SMBUS_LIGHT_GUID': [2551896525, 34437, 19115, 175, 218, 5, 18, 247, 75, 101, 234], 'ASROCK_AAFTBL_SMI_GUID': [2667102838, 46054, 19161, 143, 231, 199, 79, 113, 196, 114, 72], 'ASROCK_NVRAMID_GUID': [2708185858, 25876, 17031, 190, 227, 98, 35, 183, 222, 44, 33], 'ASROCK_IDE_SECURITY_GUID': [2847342799, 414, 19851, 163, 167, 136, 225, 234, 1, 105, 158], 'ASROCK_ASM1061_DXE_GUID': [2848876245, 27959, 17694, 169, 191, 245, 143, 122, 11, 60, 194], 'ASROCK_ASM104_X_SMI_GUID': [2904508538, 47702, 18652, 142, 170, 232, 251, 234, 116, 184, 242], 'ASROCK_RTLANSMI_GUID': [3005543067, 24215, 19449, 180, 224, 81, 37, 193, 246, 5, 213], 'ASROCK_GEC_UPDATE_SMI_GUID': [3092850716, 5882, 17832, 146, 1, 28, 56, 48, 169, 115, 189], 'ASROCK_APMOFF_GUID': [3146872289, 16021, 19326, 135, 80, 157, 106, 163, 78, 183, 246], 'ASROCK_SMIFLASH_GUID': [3157425597, 47490, 20309, 159, 121, 5, 106, 215, 233, 135, 197], 'ASROCK_RAID_X64_GUID': [3295196034, 17744, 18697, 173, 87, 36, 150, 20, 27, 63, 74], 'ASROCK_AMD_SB900_SMM_GUID': [3351810409, 6722, 20062, 179, 75, 230, 131, 6, 113, 201, 166], 'ASROCK_FIREWIRE_GUID': [3367390790, 38937, 17835, 135, 93, 9, 223, 218, 109, 139, 27], 'ASROCK_IDE_SMART_GUID': [3581707566, 32927, 17871, 163, 119, 215, 123, 192, 203, 120, 238], 'ASROCK_SB_INTERFACE_DXE_GUID': [3622218689, 38683, 17947, 181, 228, 60, 55, 102, 38, 122, 217], 'ASROCK_AMD_SB900_SMM_DISPATCHER_GUID': [3748899802, 31298, 20062, 179, 75, 230, 131, 6, 113, 201, 166], 'ASROCK_AMDCPU_DXE_GUID': [3786566962, 16719, 18139, 154, 238, 66, 0, 119, 243, 93, 190], 'ASROCK_SMBIOS_DMIEDIT_GUID': [3802613560, 35124, 18677, 132, 18, 153, 233, 72, 200, 220, 27], 'ASROCK_SECURITY_SELECT_DXE_GUID': [3832130086, 37480, 20144, 160, 135, 221, 76, 238, 55, 64, 75], 'ASROCK_FILE_EXPLORER_LITE_GUID': [3875982164, 33976, 16573, 131, 47, 127, 178, 213, 203, 135, 179], 'ASROCK_PLEDSMM_GUID': [3911953940, 15869, 19568, 159, 230, 56, 153, 243, 108, 120, 70], 'ASROCK_CPU_SMBIOS_DRIVER_GUID': [3930959592, 43089, 19103, 171, 244, 183, 159, 162, 82, 130, 145], 'ASROCK_AAFTBL_DXE_GUID': [4279363330, 35107, 18380, 173, 48, 217, 224, 226, 64, 221, 16]} |
'''
Python program to convert the distance (in feet) to inches,yards, and miles
'''
def distanceInInches (d_ft):
print("The distance in inches is %i inches." %(d_ft * 12))
def distanceInYard (d_ft):
print("The distance in yards is %.2f yards." %(d_ft / 3.0))
def distanceInMiles (d_ft):
print("The distance in miles is %.2f miles." %(d_ft / 5280.0) )
def main ():
d_ft = int(input("Input distance in feet: "))
distanceInInches (d_ft)
distanceInYard (d_ft)
distanceInMiles (d_ft)
main() | """
Python program to convert the distance (in feet) to inches,yards, and miles
"""
def distance_in_inches(d_ft):
print('The distance in inches is %i inches.' % (d_ft * 12))
def distance_in_yard(d_ft):
print('The distance in yards is %.2f yards.' % (d_ft / 3.0))
def distance_in_miles(d_ft):
print('The distance in miles is %.2f miles.' % (d_ft / 5280.0))
def main():
d_ft = int(input('Input distance in feet: '))
distance_in_inches(d_ft)
distance_in_yard(d_ft)
distance_in_miles(d_ft)
main() |
def somme(liste_nombres):
pass
def moyenne(liste_nombres):
pass
| def somme(liste_nombres):
pass
def moyenne(liste_nombres):
pass |
class Solution:
def solve(self, genes):
ans = 0
seen = set()
genes = set(genes)
for gene in genes:
if gene in seen:
continue
ans += 1
dfs = [gene]
seen.add(gene)
while dfs:
cur = dfs.pop()
cur_list = list(cur)
for i in range(len(cur)):
for char in ["A","C","G","T"]:
if char == cur[i]: continue
cur_list[i] = char
new_gene = "".join(cur_list)
if new_gene in genes and new_gene not in seen:
seen.add(new_gene)
dfs.append(new_gene)
cur_list[i] = cur[i]
return ans
| class Solution:
def solve(self, genes):
ans = 0
seen = set()
genes = set(genes)
for gene in genes:
if gene in seen:
continue
ans += 1
dfs = [gene]
seen.add(gene)
while dfs:
cur = dfs.pop()
cur_list = list(cur)
for i in range(len(cur)):
for char in ['A', 'C', 'G', 'T']:
if char == cur[i]:
continue
cur_list[i] = char
new_gene = ''.join(cur_list)
if new_gene in genes and new_gene not in seen:
seen.add(new_gene)
dfs.append(new_gene)
cur_list[i] = cur[i]
return ans |
class Constants:
# DATA TYPES
GENERATE_EPR_IF_NONE = 'generate_epr_if_none'
AWAIT_ACK = 'await_ack'
SEQUENCE_NUMBER = 'sequence_number'
PAYLOAD = 'payload'
PAYLOAD_TYPE = 'payload_type'
SENDER = 'sender'
RECEIVER = 'receiver'
PROTOCOL = 'protocol'
KEY = 'key'
# WAIT TIME
WAIT_TIME = 10
# QUBIT TYPES
EPR = 0
DATA = 1
GHZ = 2
# DATA KINDS
SIGNAL = 'signal'
CLASSICAL = 'classical'
QUANTUM = 'quantum'
# SIGNALS
ACK = 'qunetsim_ACK__'
NACK = 'qunetsim_NACK__'
# PROTOCOL IDs
REC_EPR = 'rec_epr'
SEND_EPR = 'send_epr'
REC_TELEPORT = 'rec_teleport'
SEND_TELEPORT = 'send_teleport'
REC_SUPERDENSE = 'rec_superdense'
SEND_SUPERDENSE = 'send_superdense'
REC_CLASSICAL = 'rec_classical'
SEND_CLASSICAL = 'send_classical'
SEND_BROADCAST = 'send_broadcast'
RELAY = 'relay'
SEND_QUBIT = 'send_qubit'
REC_QUBIT = 'rec_qubit'
SEND_KEY = 'send_key'
REC_KEY = 'rec_key'
SEND_GHZ = 'send_ghz'
REC_GHZ = 'rec_ghz'
# MISC
QUBITS = 'qubits'
HOSTS = 'hosts'
KEYSIZE = 'keysize'
| class Constants:
generate_epr_if_none = 'generate_epr_if_none'
await_ack = 'await_ack'
sequence_number = 'sequence_number'
payload = 'payload'
payload_type = 'payload_type'
sender = 'sender'
receiver = 'receiver'
protocol = 'protocol'
key = 'key'
wait_time = 10
epr = 0
data = 1
ghz = 2
signal = 'signal'
classical = 'classical'
quantum = 'quantum'
ack = 'qunetsim_ACK__'
nack = 'qunetsim_NACK__'
rec_epr = 'rec_epr'
send_epr = 'send_epr'
rec_teleport = 'rec_teleport'
send_teleport = 'send_teleport'
rec_superdense = 'rec_superdense'
send_superdense = 'send_superdense'
rec_classical = 'rec_classical'
send_classical = 'send_classical'
send_broadcast = 'send_broadcast'
relay = 'relay'
send_qubit = 'send_qubit'
rec_qubit = 'rec_qubit'
send_key = 'send_key'
rec_key = 'rec_key'
send_ghz = 'send_ghz'
rec_ghz = 'rec_ghz'
qubits = 'qubits'
hosts = 'hosts'
keysize = 'keysize' |
#--------------------------------------------------------------------#
# Help program.
# Created by: Jim - https://www.youtube.com/watch?v=XCgWYx-lGl8
# Changed by: Thiago Piovesan
#--------------------------------------------------------------------#
# When to use class methods and when to use static methods ?
#--------------------------------------------------------------------#
class Item:
@staticmethod
def is_integer():
'''
This should do something that has a relationship
with the class, but not something that must be unique
per instance!
'''
@classmethod
def instantiate_from_something(cls):
'''
This should also do something that has a relationship
with the class, but usually, those are used to
manipulate different structures of data to instantiate
objects, like we have done with CSV.
'''
# THE ONLY DIFFERENCE BETWEEN THOSE:
# Static methods are not passing the object reference as the first argument in the background!
#--------------------------------------------------------------------#
# NOTE: However, those could be also called from instances.
item1 = Item()
item1.is_integer()
item1.instantiate_from_something()
#--------------------------------------------------------------------# | class Item:
@staticmethod
def is_integer():
"""
This should do something that has a relationship
with the class, but not something that must be unique
per instance!
"""
@classmethod
def instantiate_from_something(cls):
"""
This should also do something that has a relationship
with the class, but usually, those are used to
manipulate different structures of data to instantiate
objects, like we have done with CSV.
"""
item1 = item()
item1.is_integer()
item1.instantiate_from_something() |
FIPS_Reference = {
"AL":"01",
"AK":"02",
"AZ":"04",
"AR":"05",
"AS":"60",
"CA":"06",
"CO":"08",
"CT":"09",
"DE":"10",
"FL":"12",
"GA":"13",
"GU":"66",
"HI":"15",
"ID":"16",
"IL":"17",
"IN":"18",
"IA":"19",
"KS":"20",
"KY":"21",
"LA":"22",
"ME":"23",
"MD":"24",
"MA":"25",
"MI":"26",
"MN":"27",
"MS":"28",
"MO":"29",
"MT":"30",
"NE":"32",
"NV":"32",
"NH":"33",
"NJ":"34",
"NM":"35",
"NY":"36",
"NC":"37",
"ND":"38",
"OH":"39",
"OK":"40",
"OR":"41",
"PA":"42",
"RI":"44",
"PR":"72",
"SC":"45",
"SD":"46",
"TN":"47",
"TX":"48",
"UT":"49",
"VT":"50",
"VI":"78",
"VA":"51",
"WA":"53",
"WV":"54",
"WI":"55",
"WY":"56"
}
| fips__reference = {'AL': '01', 'AK': '02', 'AZ': '04', 'AR': '05', 'AS': '60', 'CA': '06', 'CO': '08', 'CT': '09', 'DE': '10', 'FL': '12', 'GA': '13', 'GU': '66', 'HI': '15', 'ID': '16', 'IL': '17', 'IN': '18', 'IA': '19', 'KS': '20', 'KY': '21', 'LA': '22', 'ME': '23', 'MD': '24', 'MA': '25', 'MI': '26', 'MN': '27', 'MS': '28', 'MO': '29', 'MT': '30', 'NE': '32', 'NV': '32', 'NH': '33', 'NJ': '34', 'NM': '35', 'NY': '36', 'NC': '37', 'ND': '38', 'OH': '39', 'OK': '40', 'OR': '41', 'PA': '42', 'RI': '44', 'PR': '72', 'SC': '45', 'SD': '46', 'TN': '47', 'TX': '48', 'UT': '49', 'VT': '50', 'VI': '78', 'VA': '51', 'WA': '53', 'WV': '54', 'WI': '55', 'WY': '56'} |
def check_full_text(fb_full_text, filter_full_text) -> bool:
if filter_full_text is None or fb_full_text == filter_full_text:
return True
return False
def check_contains(fb_contains, filter_contains) -> bool:
if filter_contains is None:
return True
intersection = list(fb_contains & filter_contains)
if len(intersection) == 0:
return False
return True
def check_payload(fb_payload, filter_payload) -> bool:
if filter_payload is None or fb_payload == filter_payload:
return True
return False
| def check_full_text(fb_full_text, filter_full_text) -> bool:
if filter_full_text is None or fb_full_text == filter_full_text:
return True
return False
def check_contains(fb_contains, filter_contains) -> bool:
if filter_contains is None:
return True
intersection = list(fb_contains & filter_contains)
if len(intersection) == 0:
return False
return True
def check_payload(fb_payload, filter_payload) -> bool:
if filter_payload is None or fb_payload == filter_payload:
return True
return False |
class Solution:
def maxRotateFunction(self, nums: List[int]) -> int:
sums = sum(nums)
index = 0
res = 0
for ele in nums:
res += index*ele
index += 1
ans = res
for i in range(1,len(nums)):
res = res + sums - (len(nums))*nums[len(nums) - i]
ans = max(res,ans)
return ans | class Solution:
def max_rotate_function(self, nums: List[int]) -> int:
sums = sum(nums)
index = 0
res = 0
for ele in nums:
res += index * ele
index += 1
ans = res
for i in range(1, len(nums)):
res = res + sums - len(nums) * nums[len(nums) - i]
ans = max(res, ans)
return ans |
def is_even(n):
return n % 2 == 0
def is_odd(n):
return not is_even(n)
lost_numbers = (4, 8, 15, 16, 23, 42)
| def is_even(n):
return n % 2 == 0
def is_odd(n):
return not is_even(n)
lost_numbers = (4, 8, 15, 16, 23, 42) |
# You are given two non-empty linked lists representing two non-negative integers.
# The digits are stored in reverse order and each of their nodes contain a single digit.
# Add the two numbers and return it as a linked list.
# You may assume the two numbers do not contain any leading zero, except the number 0 itself.
# Example:
# Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
# Output: 7 -> 0 -> 8
# Explanation: 342 + 465 = 807.
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def addTwoNumbers(self,l1,l2):
dummy = ListNode(-1)
cur = dummy
t = 0
while l1 or l2 or t:
if l1:
t += l1.val
l1 = l1.next
if l2:
t += l2.val
l2 = l2.next
cur.next = ListNode(t % 10)
cur = cur.next
t //= 10
return dummy.next | class Listnode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def add_two_numbers(self, l1, l2):
dummy = list_node(-1)
cur = dummy
t = 0
while l1 or l2 or t:
if l1:
t += l1.val
l1 = l1.next
if l2:
t += l2.val
l2 = l2.next
cur.next = list_node(t % 10)
cur = cur.next
t //= 10
return dummy.next |
# Given two strings s and t, determine if they are isomorphic.
# Two strings s and t are isomorphic if the characters in s can be replaced to
# get t.
# All occurrences of a character must be replaced with another character while
# preserving the order of characters. No two characters may map to the same
# character, but a character may map to itself.
# Example 1:
# Input: s = "egg", t = "add"
# Output: true
# Example 2:
# Input: s = "foo", t = "bar"
# Output: false
# Example 3:
# Input: s = "paper", t = "title"
# Output: true
# Constraints:
# 1 <= s.length <= 5 * 10^4
# t.length == s.length
# s and t consist of any valid ascii character.
class DictSetSolution:
def isIsomorphic(self, s: str, t: str) -> bool:
replacements = {}
mapped = set()
for s_let, t_let in zip(s, t):
if (replacement := replacements.get(s_let)):
if replacement != t_let:
return False
else:
if t_let in mapped:
return False
replacements[s_let] = t_let
mapped.add(t_let)
return True
class LengthComparisonSolution:
def isIsomorphic(self, s: str, t: str) -> bool:
return len(set(zip(s, t))) == len(set(s)) == len(set(t))
class ArraySolution:
def isIsomorphic(self, s: str, t: str) -> bool:
sa, ta = [0 for i in range(128)], [0 for i in range(128)]
for idx, letters in enumerate(zip(s, t)):
sl, tl = letters
if sa[ord(sl)] != ta[ord(tl)]:
return False
sa[ord(sl)] = idx + 1
ta[ord(tl)] = idx + 1
return True
| class Dictsetsolution:
def is_isomorphic(self, s: str, t: str) -> bool:
replacements = {}
mapped = set()
for (s_let, t_let) in zip(s, t):
if (replacement := replacements.get(s_let)):
if replacement != t_let:
return False
else:
if t_let in mapped:
return False
replacements[s_let] = t_let
mapped.add(t_let)
return True
class Lengthcomparisonsolution:
def is_isomorphic(self, s: str, t: str) -> bool:
return len(set(zip(s, t))) == len(set(s)) == len(set(t))
class Arraysolution:
def is_isomorphic(self, s: str, t: str) -> bool:
(sa, ta) = ([0 for i in range(128)], [0 for i in range(128)])
for (idx, letters) in enumerate(zip(s, t)):
(sl, tl) = letters
if sa[ord(sl)] != ta[ord(tl)]:
return False
sa[ord(sl)] = idx + 1
ta[ord(tl)] = idx + 1
return True |
def mergeSort(elements):
if len(elements) == 0 or len(elements) == 1:
# BASE CASE
return elements
middle = len(elements) // 2
left = mergeSort(elements[:middle])
right = mergeSort(elements[middle:])
if left == [] or right == []:
return left or right
result = []
i, j = 0, 0
while (len(result) < len(left) + len(right)):
if left[i] < right[j]:
result.append(left[i])
i+= 1
else:
result.append(right[j])
j+= 1
if i == len(left) or j == len(right):
result.extend(left[i:] or right[j:])
break
return result
print(mergeSort([3,4,5,1,2,8,3,7,6])) | def merge_sort(elements):
if len(elements) == 0 or len(elements) == 1:
return elements
middle = len(elements) // 2
left = merge_sort(elements[:middle])
right = merge_sort(elements[middle:])
if left == [] or right == []:
return left or right
result = []
(i, j) = (0, 0)
while len(result) < len(left) + len(right):
if left[i] < right[j]:
result.append(left[i])
i += 1
else:
result.append(right[j])
j += 1
if i == len(left) or j == len(right):
result.extend(left[i:] or right[j:])
break
return result
print(merge_sort([3, 4, 5, 1, 2, 8, 3, 7, 6])) |
__author__ = 'James Myatt'
__version__ = '0.0.2'
__all__ = [
'monitor', 'sensor', 'utils',
'time', 'w1therm'
]
| __author__ = 'James Myatt'
__version__ = '0.0.2'
__all__ = ['monitor', 'sensor', 'utils', 'time', 'w1therm'] |
class SocketAPIError(Exception):
pass
class InvalidRequestError(SocketAPIError):
pass
class InvalidURIError(InvalidRequestError):
pass
class NotFoundError(InvalidRequestError):
pass
| class Socketapierror(Exception):
pass
class Invalidrequesterror(SocketAPIError):
pass
class Invalidurierror(InvalidRequestError):
pass
class Notfounderror(InvalidRequestError):
pass |
# Prints out a string
print("Mary had a little lamb.")
# Prints out a formatted string
print("Its fleece was white as {}.".format('snow'))
# Prints out another string
print("and everywhere that Mary went.")
# Prints a period for ten times
print("." * 10) # what'd that do?
# Assign a letter to string variable
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"
# watch that comma at the end. try removing it to see what happens
# end part place a space insetad of a newline
print(end1 + end2 + end3 + end4 + end5 + end6, end=' ')
print(end7 + end8 + end9 + end10 + end11 + end12)
| print('Mary had a little lamb.')
print('Its fleece was white as {}.'.format('snow'))
print('and everywhere that Mary went.')
print('.' * 10)
end1 = 'C'
end2 = 'h'
end3 = 'e'
end4 = 'e'
end5 = 's'
end6 = 'e'
end7 = 'B'
end8 = 'u'
end9 = 'r'
end10 = 'g'
end11 = 'e'
end12 = 'r'
print(end1 + end2 + end3 + end4 + end5 + end6, end=' ')
print(end7 + end8 + end9 + end10 + end11 + end12) |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
class HookitConnectionError(Exception):
pass
__all__ = ['HookitConnectionError']
| class Hookitconnectionerror(Exception):
pass
__all__ = ['HookitConnectionError'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.