content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# djamplek8s/__init__.py
"""
A Django example project for Kubernetes
"""
__version__ = "0.0.2"
__title__ = "djamplek8s"
__description__ = "Django example project for Kubernetes"
__uri__ = "https://github.com/maartenq/djamplek8s"
__author__ = "Maarten"
__email__ = "ikmaarten@gmail.com"
__license__ = "MIT or Apache License, Version 2.0"
__copyright__ = "Copyright (c) 2021 Maarten"
| """
A Django example project for Kubernetes
"""
__version__ = '0.0.2'
__title__ = 'djamplek8s'
__description__ = 'Django example project for Kubernetes'
__uri__ = 'https://github.com/maartenq/djamplek8s'
__author__ = 'Maarten'
__email__ = 'ikmaarten@gmail.com'
__license__ = 'MIT or Apache License, Version 2.0'
__copyright__ = 'Copyright (c) 2021 Maarten' |
def _fetch_signature(nmf_genes, signature):
"""
Group and sort NMF signatures. Return the table for a single signature
Parameters:
-----------
nmf_genes
gene x signature table
type: pandas.DataFrame
signature
NMF gene signature selection
type: int or float
"""
grouped_nmf_signatures = nmf_genes.groupby("max_id")
return grouped_nmf_signatures.get_group(signature).sort_values(
"max", ascending=False
) | def _fetch_signature(nmf_genes, signature):
"""
Group and sort NMF signatures. Return the table for a single signature
Parameters:
-----------
nmf_genes
gene x signature table
type: pandas.DataFrame
signature
NMF gene signature selection
type: int or float
"""
grouped_nmf_signatures = nmf_genes.groupby('max_id')
return grouped_nmf_signatures.get_group(signature).sort_values('max', ascending=False) |
"""
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.
Your task is to find the smallest possible length of a (contiguous) subarray of nums, that has the same degree as nums.
Example 1:
Input: [1, 2, 2, 3, 1]
Output: 2
Explanation:
The input array has a degree of 2 because both elements 1 and 2 appear twice.
Of the subarrays that have the same degree:
[1, 2, 2, 3, 1], [1, 2, 2, 3], [2, 2, 3, 1], [1, 2, 2], [2, 2, 3], [2, 2]
The shortest length is 2. So return 2.
Example 2:
Input: [1,2,2,3,1,4,2]
Output: 6
Note:
nums.length will be between 1 and 50,000.
nums[i] will be an integer between 0 and 49,999.
"""
class Solution(object):
def findShortestSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
tr = {}
for i, n in enumerate(nums):
if n not in tr:
tr[n] = []
tr[n].append(i)
m = 0
for n, ls in tr.iteritems():
if len(ls) > m:
m = len(ls)
l = len(nums)
for n, ls in tr.iteritems():
if len(ls) == m:
if len(ls) == 1:
t = 1
else:
t = ls[-1] - ls[0] + 1
l = min(t, l)
return l
| """
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.
Your task is to find the smallest possible length of a (contiguous) subarray of nums, that has the same degree as nums.
Example 1:
Input: [1, 2, 2, 3, 1]
Output: 2
Explanation:
The input array has a degree of 2 because both elements 1 and 2 appear twice.
Of the subarrays that have the same degree:
[1, 2, 2, 3, 1], [1, 2, 2, 3], [2, 2, 3, 1], [1, 2, 2], [2, 2, 3], [2, 2]
The shortest length is 2. So return 2.
Example 2:
Input: [1,2,2,3,1,4,2]
Output: 6
Note:
nums.length will be between 1 and 50,000.
nums[i] will be an integer between 0 and 49,999.
"""
class Solution(object):
def find_shortest_sub_array(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
tr = {}
for (i, n) in enumerate(nums):
if n not in tr:
tr[n] = []
tr[n].append(i)
m = 0
for (n, ls) in tr.iteritems():
if len(ls) > m:
m = len(ls)
l = len(nums)
for (n, ls) in tr.iteritems():
if len(ls) == m:
if len(ls) == 1:
t = 1
else:
t = ls[-1] - ls[0] + 1
l = min(t, l)
return l |
n = int(input())
f = {}
ans = set()
for i in range(n):
tmp = input().split()
if tmp[0] not in f.values():
ans.add(tmp[0])
f[tmp[0]] = tmp[1]
print(len(ans))
for old in ans:
new = old
while new in f.keys():
new = f[new]
print(old, new)
| n = int(input())
f = {}
ans = set()
for i in range(n):
tmp = input().split()
if tmp[0] not in f.values():
ans.add(tmp[0])
f[tmp[0]] = tmp[1]
print(len(ans))
for old in ans:
new = old
while new in f.keys():
new = f[new]
print(old, new) |
# -*- coding: utf-8 -*-
"""Digital Forensics Date and Time (dfDateTime).
dfDateTime, or Digital Forensics date and time, provides date and time
objects to preserve accuracy and precision.
"""
__version__ = '20180324'
| """Digital Forensics Date and Time (dfDateTime).
dfDateTime, or Digital Forensics date and time, provides date and time
objects to preserve accuracy and precision.
"""
__version__ = '20180324' |
# TODO: Things that might be implemented some time
#VisItExecuteCommand
#VisItSaveWindow
#VisItInitializeRuntime
"""
Excerpt from the visit/simv2 sources:
int VisItAddPlot(const char *plotType, const char *var);
int VisItAddOperator(const char *operatorType, int applyToAll);
int VisItDrawPlots(void);
int VisItDeleteActivePlots(void);
/* Maybe having 1 function is better...*/
int VisItSetPlotOptionsC(int id,const char*n,char v);
int VisItSetPlotOptionsUC(int id,const char*n,unsigned char v);
int VisItSetPlotOptionsI(int id,const char*n,int v);
int VisItSetPlotOptionsL(int id,const char*n,long v);
int VisItSetPlotOptionsF(int id,const char*n,float v);
int VisItSetPlotOptionsD(int id,const char*n,double v);
int VisItSetPlotOptionsS(int id,const char*n,const char *v);
int VisItSetPlotOptionsCv(int id,const char*n,const char *v,int L);
int VisItSetPlotOptionsUCv(int id,const char*n,const unsigned char *v,int L);
int VisItSetPlotOptionsIv(int id,const char*n,const int *v,int L);
int VisItSetPlotOptionsLv(int id,const char*n,const long *v,int L);
int VisItSetPlotOptionsFv(int id,const char*n,const float *v,int L);
int VisItSetPlotOptionsDv(int id,const char*n,const double *v,int L);
int VisItSetPlotOptionsSv(int id,const char*n,const char **v,int L);
/* Maybe having 1 function is better...*/
int VisItSetOperatorOptionsC(int pid, int oid,const char*n,char v);
int VisItSetOperatorOptionsUC(int pid, int oid,const char*n,unsigned char v);
int VisItSetOperatorOptionsI(int pid, int oid,const char*n,int v);
int VisItSetOperatorOptionsL(int pid, int oid,const char*n,long v);
int VisItSetOperatorOptionsF(int pid, int oid,const char*n,float v);
int VisItSetOperatorOptionsD(int pid, int oid,const char*n,double v);
int VisItSetOperatorOptionsS(int pid, int oid,const char*n,const char *v);
int VisItSetOperatorOptionsCv(int pid, int oid,const char*n,const char *v,int L);
int VisItSetOperatorOptionsUCv(int pid, int oid,const char*n,const unsigned char *v,int L);
int VisItSetOperatorOptionsIv(int pid, int oid,const char*n,const int *v,int L);
int VisItSetOperatorOptionsLv(int pid, int oid,const char*n,const long *v,int L);
int VisItSetOperatorOptionsFv(int pid, int oid,const char*n,const float *v,int L);
int VisItSetOperatorOptionsDv(int pid, int oid,const char*n,const double *v,int L);
int VisItSetOperatorOptionsSv(int pid, int oid,const char*n,const char **v,int L);
"""
| """
Excerpt from the visit/simv2 sources:
int VisItAddPlot(const char *plotType, const char *var);
int VisItAddOperator(const char *operatorType, int applyToAll);
int VisItDrawPlots(void);
int VisItDeleteActivePlots(void);
/* Maybe having 1 function is better...*/
int VisItSetPlotOptionsC(int id,const char*n,char v);
int VisItSetPlotOptionsUC(int id,const char*n,unsigned char v);
int VisItSetPlotOptionsI(int id,const char*n,int v);
int VisItSetPlotOptionsL(int id,const char*n,long v);
int VisItSetPlotOptionsF(int id,const char*n,float v);
int VisItSetPlotOptionsD(int id,const char*n,double v);
int VisItSetPlotOptionsS(int id,const char*n,const char *v);
int VisItSetPlotOptionsCv(int id,const char*n,const char *v,int L);
int VisItSetPlotOptionsUCv(int id,const char*n,const unsigned char *v,int L);
int VisItSetPlotOptionsIv(int id,const char*n,const int *v,int L);
int VisItSetPlotOptionsLv(int id,const char*n,const long *v,int L);
int VisItSetPlotOptionsFv(int id,const char*n,const float *v,int L);
int VisItSetPlotOptionsDv(int id,const char*n,const double *v,int L);
int VisItSetPlotOptionsSv(int id,const char*n,const char **v,int L);
/* Maybe having 1 function is better...*/
int VisItSetOperatorOptionsC(int pid, int oid,const char*n,char v);
int VisItSetOperatorOptionsUC(int pid, int oid,const char*n,unsigned char v);
int VisItSetOperatorOptionsI(int pid, int oid,const char*n,int v);
int VisItSetOperatorOptionsL(int pid, int oid,const char*n,long v);
int VisItSetOperatorOptionsF(int pid, int oid,const char*n,float v);
int VisItSetOperatorOptionsD(int pid, int oid,const char*n,double v);
int VisItSetOperatorOptionsS(int pid, int oid,const char*n,const char *v);
int VisItSetOperatorOptionsCv(int pid, int oid,const char*n,const char *v,int L);
int VisItSetOperatorOptionsUCv(int pid, int oid,const char*n,const unsigned char *v,int L);
int VisItSetOperatorOptionsIv(int pid, int oid,const char*n,const int *v,int L);
int VisItSetOperatorOptionsLv(int pid, int oid,const char*n,const long *v,int L);
int VisItSetOperatorOptionsFv(int pid, int oid,const char*n,const float *v,int L);
int VisItSetOperatorOptionsDv(int pid, int oid,const char*n,const double *v,int L);
int VisItSetOperatorOptionsSv(int pid, int oid,const char*n,const char **v,int L);
""" |
"""
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next() and hasNext() should run in average O(1) time and uses O(h) memory, where h is the height of the tree.
"""
__author__ = 'Daniel'
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class BSTIterator:
def __init__(self, root):
"""
:type root: TreeNode
"""
self.cur = root
self.stk = []
def hasNext(self):
"""
:rtype: bool
"""
return self.cur or self.stk
def next(self):
"""
:rtype: int
:return: the next smallest number
"""
while self.cur:
self.stk.append(self.cur)
self.cur = self.cur.left
nxt = self.stk.pop()
self.cur = nxt.right
return nxt.val
| """
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next() and hasNext() should run in average O(1) time and uses O(h) memory, where h is the height of the tree.
"""
__author__ = 'Daniel'
class Treenode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Bstiterator:
def __init__(self, root):
"""
:type root: TreeNode
"""
self.cur = root
self.stk = []
def has_next(self):
"""
:rtype: bool
"""
return self.cur or self.stk
def next(self):
"""
:rtype: int
:return: the next smallest number
"""
while self.cur:
self.stk.append(self.cur)
self.cur = self.cur.left
nxt = self.stk.pop()
self.cur = nxt.right
return nxt.val |
x1 = 0
x2 = 1
s = 0
while True:
fib = x1 + x2
x1 = x2
x2 = fib
if fib % 2 == 0:
s += fib
if fib >= 4e6: break
print(s) | x1 = 0
x2 = 1
s = 0
while True:
fib = x1 + x2
x1 = x2
x2 = fib
if fib % 2 == 0:
s += fib
if fib >= 4000000.0:
break
print(s) |
class Sprite():
''' The Sprite class manipulates the imported sprite and is utilized for texture mapping
Attributes:
matrix (array): the color encoded 2d matrix of the sprite
width (int): width of the 2d sprite matrix
height (int): heigth of the 2d sprite matrix
color_to_glyph_wall (dict): Converts color information in matrix_wall to glyph characters
'''
def __init__(self, matrix, color_to_glyph):
''' The constructor for Simulation class.
Parameters:
matrix (array): the color encoded 2d matrix of the sprite
width (int): width of the 2d sprite matrix
height (int): heigth of the 2d sprite matrix
color_to_glyph_wall (dict): Converts color information in matrix_wall to glyph characters
'''
self.matrix = matrix
self.width = len(matrix[0])
self.height = len(matrix)
self.color_to_glyph = color_to_glyph
def sample_color(self, x, y):
''' For a given set of coordnates returns the glyph from the 2d sprite matrix
Parameters:
x (float): x coord where ray hit wall
y (float): y coord where ray hit wall
'''
# Calculating the glyph index at given coordinates
x = str(x).split('.')
x = '0.' + x[1]
y = str(y).split('.')
y = '0.' + y[1]
sx = int(float(x) * self.width)
sy = int(float(y) * self.height) - 1
if sx < 0 or sx > self.width or sy < 0 or sy > self.height:
return ' '
return self.matrix[sy][sx] | class Sprite:
""" The Sprite class manipulates the imported sprite and is utilized for texture mapping
Attributes:
matrix (array): the color encoded 2d matrix of the sprite
width (int): width of the 2d sprite matrix
height (int): heigth of the 2d sprite matrix
color_to_glyph_wall (dict): Converts color information in matrix_wall to glyph characters
"""
def __init__(self, matrix, color_to_glyph):
""" The constructor for Simulation class.
Parameters:
matrix (array): the color encoded 2d matrix of the sprite
width (int): width of the 2d sprite matrix
height (int): heigth of the 2d sprite matrix
color_to_glyph_wall (dict): Converts color information in matrix_wall to glyph characters
"""
self.matrix = matrix
self.width = len(matrix[0])
self.height = len(matrix)
self.color_to_glyph = color_to_glyph
def sample_color(self, x, y):
""" For a given set of coordnates returns the glyph from the 2d sprite matrix
Parameters:
x (float): x coord where ray hit wall
y (float): y coord where ray hit wall
"""
x = str(x).split('.')
x = '0.' + x[1]
y = str(y).split('.')
y = '0.' + y[1]
sx = int(float(x) * self.width)
sy = int(float(y) * self.height) - 1
if sx < 0 or sx > self.width or sy < 0 or (sy > self.height):
return ' '
return self.matrix[sy][sx] |
#menjalankan python
a=10
b=2
c=a/b
print(c)
print("-------------------------")
#penulisan variabel
Nama="Fazlur"
_nama="Fazlur"
nama="Zul"
print(Nama)
print(_nama)
print(nama)
print("-------------------------")
#mengenal nilai dan tipe data dalam python
a=1
makanan ="ayam"
print(type(makanan))
print(type(a))
print("-------------------------")
#tipe data yang belum diketahui dalam input
tanya=input("masukan nama?")
print(tanya)
print("-------------------------")
#secara defaut bertipe str
x1=input("masukan nilai x1 : ")
x2=input("masukan nilai x2 : ")
x3=x1+x2
print("nilai x3=", x3)
print("-------------------------")
#menentukan tipe data dari input
x1=int(input("masukan nilai x1 : "))
x2=int(input("masukan nilai x2 : "))
x3=x1+x2
print("nilai x3=", x3)
print("-------------------------") | a = 10
b = 2
c = a / b
print(c)
print('-------------------------')
nama = 'Fazlur'
_nama = 'Fazlur'
nama = 'Zul'
print(Nama)
print(_nama)
print(nama)
print('-------------------------')
a = 1
makanan = 'ayam'
print(type(makanan))
print(type(a))
print('-------------------------')
tanya = input('masukan nama?')
print(tanya)
print('-------------------------')
x1 = input('masukan nilai x1 : ')
x2 = input('masukan nilai x2 : ')
x3 = x1 + x2
print('nilai x3=', x3)
print('-------------------------')
x1 = int(input('masukan nilai x1 : '))
x2 = int(input('masukan nilai x2 : '))
x3 = x1 + x2
print('nilai x3=', x3)
print('-------------------------') |
PATH={ "amass":"../amass/amass",
"subfinder":"../subfinder",
"fierce":"../fierce/fierce/fierce.py",
"dirsearch":"../dirsearch/dirsearch.py"
}
| path = {'amass': '../amass/amass', 'subfinder': '../subfinder', 'fierce': '../fierce/fierce/fierce.py', 'dirsearch': '../dirsearch/dirsearch.py'} |
class TreeNode():
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def __repr__(self):
return '<TreeNode {}>'.format(self.val)
def sorted_array_to_bst(arr):
"""
Given a sorted array turn it into a balanced binary tree
"""
if len(arr) == 0:
return None
mid = len(arr) / 2
node = TreeNode(arr[mid])
node.left = sorted_array_to_bst(arr[:mid])
node.right = sorted_array_to_bst(arr[mid+1:])
return node
def test_uneven_bst():
nums = [1, 2, 3]
bst = sorted_array_to_bst(nums)
assert bst.val == 2
assert bst.left.val == 1
assert bst.right.val == 3
def test_is_bst():
nums = [1, 2, 3, 4, 5, 6]
bst = sorted_array_to_bst(nums)
assert bst.val == 4
n2 = bst.left
n6 = bst.right
assert n2.val == 2
assert n2.left.val == 1
assert n2.right.val == 3
assert n6.val == 6
assert n6.left.val == 5
assert n6.right is None
def test_single_node_bst():
nums = [1]
bst = sorted_array_to_bst(nums)
assert bst.val == 1
| class Treenode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def __repr__(self):
return '<TreeNode {}>'.format(self.val)
def sorted_array_to_bst(arr):
"""
Given a sorted array turn it into a balanced binary tree
"""
if len(arr) == 0:
return None
mid = len(arr) / 2
node = tree_node(arr[mid])
node.left = sorted_array_to_bst(arr[:mid])
node.right = sorted_array_to_bst(arr[mid + 1:])
return node
def test_uneven_bst():
nums = [1, 2, 3]
bst = sorted_array_to_bst(nums)
assert bst.val == 2
assert bst.left.val == 1
assert bst.right.val == 3
def test_is_bst():
nums = [1, 2, 3, 4, 5, 6]
bst = sorted_array_to_bst(nums)
assert bst.val == 4
n2 = bst.left
n6 = bst.right
assert n2.val == 2
assert n2.left.val == 1
assert n2.right.val == 3
assert n6.val == 6
assert n6.left.val == 5
assert n6.right is None
def test_single_node_bst():
nums = [1]
bst = sorted_array_to_bst(nums)
assert bst.val == 1 |
def get_input():
total_cows = int(input(""))
cow_str = input("")
return total_cows, cow_str
def calc_lonely_cow(total_cows, cow_str):
total_lonely_cow = 0
#for offset in range(3, total_cows + 1):
for offset in range(3, 60):
for start_pos in range(0, total_cows):
total_count_g = total_count_h = 0
if start_pos + offset > total_cows:
break
for cur_index in range(start_pos, start_pos + offset):
if cow_str[cur_index] == "G":
total_count_g += 1
else:
total_count_h += 1
if total_count_g >= 2 and total_count_h >= 2:
break
if total_count_g == 1 or total_count_h == 1:
total_lonely_cow += 1
return total_lonely_cow
if __name__ == "__main__":
total_cows, cow_str = get_input()
#total_cows, cow_str = 5, "GHGHG"
print(calc_lonely_cow(total_cows, cow_str))
| def get_input():
total_cows = int(input(''))
cow_str = input('')
return (total_cows, cow_str)
def calc_lonely_cow(total_cows, cow_str):
total_lonely_cow = 0
for offset in range(3, 60):
for start_pos in range(0, total_cows):
total_count_g = total_count_h = 0
if start_pos + offset > total_cows:
break
for cur_index in range(start_pos, start_pos + offset):
if cow_str[cur_index] == 'G':
total_count_g += 1
else:
total_count_h += 1
if total_count_g >= 2 and total_count_h >= 2:
break
if total_count_g == 1 or total_count_h == 1:
total_lonely_cow += 1
return total_lonely_cow
if __name__ == '__main__':
(total_cows, cow_str) = get_input()
print(calc_lonely_cow(total_cows, cow_str)) |
# use part function of problem 290
class Solution:
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
def get_p(string):
p = []
keys = []
for word in string:
if len(keys) == 0:
keys.append(word)
p.append('a')
else:
add_flag = True
for i in range(len(keys)):
if word == keys[i]:
p.append(p[i])
add_flag = False
break
if add_flag:
keys.append(word)
p.append(chr(ord(p[-1]) + 1))
return ''.join(p)
return get_p(s) == get_p(t)
| class Solution:
def is_isomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
def get_p(string):
p = []
keys = []
for word in string:
if len(keys) == 0:
keys.append(word)
p.append('a')
else:
add_flag = True
for i in range(len(keys)):
if word == keys[i]:
p.append(p[i])
add_flag = False
break
if add_flag:
keys.append(word)
p.append(chr(ord(p[-1]) + 1))
return ''.join(p)
return get_p(s) == get_p(t) |
class Parameterset(object):
""" Parameter set """
def __init__(self, name, description, uri=None):
self.name = name
self.description = description
self.uri = uri
self.params = {}
def _load_from_uri(self):
pass
def parameterset(model, name, kwds):
if not kwds:
# look at the parameters in the parametersets and return it
return model.parametersets.get(name)
else:
return Parameterset(name, **kwds)
| class Parameterset(object):
""" Parameter set """
def __init__(self, name, description, uri=None):
self.name = name
self.description = description
self.uri = uri
self.params = {}
def _load_from_uri(self):
pass
def parameterset(model, name, kwds):
if not kwds:
return model.parametersets.get(name)
else:
return parameterset(name, **kwds) |
# -*- coding: utf-8 -*-
class InvalidTodoFile(Exception):
pass
class InvalidTodoStatus(Exception):
pass
| class Invalidtodofile(Exception):
pass
class Invalidtodostatus(Exception):
pass |
num=int(input("Enter a number: "))
sum=0
for i in range(len(str(num))):
sum=sum+(num%10)
num=num//10
print("The sum of the digits in the number entered is: ",sum) | num = int(input('Enter a number: '))
sum = 0
for i in range(len(str(num))):
sum = sum + num % 10
num = num // 10
print('The sum of the digits in the number entered is: ', sum) |
words_count = int(input())
english_persian_dict = {}
france_persian_dict = {}
german_persian_dict = {}
for i in range(words_count):
words = input().split()
english_persian_dict[words[1]] = words[0]
france_persian_dict[words[2]] = words[0]
german_persian_dict[words[3]] = words[0]
sentence = input()
translated = ""
for word in sentence.split(" "):
if word in english_persian_dict:
translated += english_persian_dict[word] + " "
elif word in france_persian_dict:
translated += france_persian_dict[word] + " "
elif word in german_persian_dict:
translated += german_persian_dict[word] + " "
else:
translated += word + " "
print(translated)
| words_count = int(input())
english_persian_dict = {}
france_persian_dict = {}
german_persian_dict = {}
for i in range(words_count):
words = input().split()
english_persian_dict[words[1]] = words[0]
france_persian_dict[words[2]] = words[0]
german_persian_dict[words[3]] = words[0]
sentence = input()
translated = ''
for word in sentence.split(' '):
if word in english_persian_dict:
translated += english_persian_dict[word] + ' '
elif word in france_persian_dict:
translated += france_persian_dict[word] + ' '
elif word in german_persian_dict:
translated += german_persian_dict[word] + ' '
else:
translated += word + ' '
print(translated) |
class tiger:
def __init__(self, name: str):
self._name = name
def name(self) -> str:
return self._name
@staticmethod
def greet() -> str:
return "Mijau!"
@staticmethod
def menu() -> str:
return "mlako mlijeko"
| class Tiger:
def __init__(self, name: str):
self._name = name
def name(self) -> str:
return self._name
@staticmethod
def greet() -> str:
return 'Mijau!'
@staticmethod
def menu() -> str:
return 'mlako mlijeko' |
#!/usr/bin/env/python
class ABcd:
_types_map = {
"Child1": {"type": int, "subtype": None},
"Child2": {"type": str, "subtype": None},
}
_formats_map = {}
def __init__(self, Child1=None, Child2=None):
pass
self.__Child1 = Child1
self.__Child2 = Child2
def _get_Child1(self):
return self.__Child1
def _set_Child1(self, value):
if not isinstance(value, int):
raise TypeError("Child1 must be int")
self.__Child1 = value
Child1 = property(_get_Child1, _set_Child1)
def _get_Child2(self):
return self.__Child2
def _set_Child2(self, value):
if not isinstance(value, str):
raise TypeError("Child2 must be str")
self.__Child2 = value
Child2 = property(_get_Child2, _set_Child2)
@staticmethod
def from_dict(d):
v = {}
if "Child1" in d:
if not isinstance(d["Child1"], int):
raise TypeError("Child1 must be int")
v["Child1"] = (
int.from_dict(d["Child1"]) if hasattr(int, "from_dict") else d["Child1"]
)
if "Child2" in d:
if not isinstance(d["Child2"], str):
raise TypeError("Child2 must be str")
v["Child2"] = (
str.from_dict(d["Child2"]) if hasattr(str, "from_dict") else d["Child2"]
)
return ABcd(**v)
def as_dict(self):
d = {}
if self.__Child1 is not None:
d["Child1"] = (
self.__Child1.as_dict()
if hasattr(self.__Child1, "as_dict")
else self.__Child1
)
if self.__Child2 is not None:
d["Child2"] = (
self.__Child2.as_dict()
if hasattr(self.__Child2, "as_dict")
else self.__Child2
)
return d
def __repr__(self):
return "<Class ABcd. Child1: {}, Child2: {}>".format(
self.__Child1, self.__Child2
)
class SubRef:
_types_map = {"ChildA": {"type": ABcd, "subtype": None}}
_formats_map = {}
def __init__(self, ChildA=None):
pass
self.__ChildA = ChildA
def _get_ChildA(self):
return self.__ChildA
def _set_ChildA(self, value):
if not isinstance(value, ABcd):
raise TypeError("ChildA must be ABcd")
self.__ChildA = value
ChildA = property(_get_ChildA, _set_ChildA)
@staticmethod
def from_dict(d):
v = {}
if "ChildA" in d:
if not isinstance(d["ChildA"], ABcd):
raise TypeError("ChildA must be ABcd")
v["ChildA"] = (
ABcd.from_dict(d["ChildA"])
if hasattr(ABcd, "from_dict")
else d["ChildA"]
)
return SubRef(**v)
def as_dict(self):
d = {}
if self.__ChildA is not None:
d["ChildA"] = (
self.__ChildA.as_dict()
if hasattr(self.__ChildA, "as_dict")
else self.__ChildA
)
return d
def __repr__(self):
return "<Class SubRef. ChildA: {}>".format(self.__ChildA)
class DirectRef:
_types_map = {
"Child1": {"type": int, "subtype": None},
"Child2": {"type": str, "subtype": None},
}
_formats_map = {}
def __init__(self, Child1=None, Child2=None):
pass
self.__Child1 = Child1
self.__Child2 = Child2
def _get_Child1(self):
return self.__Child1
def _set_Child1(self, value):
if not isinstance(value, int):
raise TypeError("Child1 must be int")
self.__Child1 = value
Child1 = property(_get_Child1, _set_Child1)
def _get_Child2(self):
return self.__Child2
def _set_Child2(self, value):
if not isinstance(value, str):
raise TypeError("Child2 must be str")
self.__Child2 = value
Child2 = property(_get_Child2, _set_Child2)
@staticmethod
def from_dict(d):
v = {}
if "Child1" in d:
if not isinstance(d["Child1"], int):
raise TypeError("Child1 must be int")
v["Child1"] = (
int.from_dict(d["Child1"]) if hasattr(int, "from_dict") else d["Child1"]
)
if "Child2" in d:
if not isinstance(d["Child2"], str):
raise TypeError("Child2 must be str")
v["Child2"] = (
str.from_dict(d["Child2"]) if hasattr(str, "from_dict") else d["Child2"]
)
return DirectRef(**v)
def as_dict(self):
d = {}
if self.__Child1 is not None:
d["Child1"] = (
self.__Child1.as_dict()
if hasattr(self.__Child1, "as_dict")
else self.__Child1
)
if self.__Child2 is not None:
d["Child2"] = (
self.__Child2.as_dict()
if hasattr(self.__Child2, "as_dict")
else self.__Child2
)
return d
def __repr__(self):
return "<Class DirectRef. Child1: {}, Child2: {}>".format(
self.__Child1, self.__Child2
)
class RootObject:
def __init__(self):
pass
@staticmethod
def from_dict(d):
v = {}
return RootObject(**v)
def as_dict(self):
d = {}
return d
def __repr__(self):
return "<Class RootObject. >".format()
| class Abcd:
_types_map = {'Child1': {'type': int, 'subtype': None}, 'Child2': {'type': str, 'subtype': None}}
_formats_map = {}
def __init__(self, Child1=None, Child2=None):
pass
self.__Child1 = Child1
self.__Child2 = Child2
def _get__child1(self):
return self.__Child1
def _set__child1(self, value):
if not isinstance(value, int):
raise type_error('Child1 must be int')
self.__Child1 = value
child1 = property(_get_Child1, _set_Child1)
def _get__child2(self):
return self.__Child2
def _set__child2(self, value):
if not isinstance(value, str):
raise type_error('Child2 must be str')
self.__Child2 = value
child2 = property(_get_Child2, _set_Child2)
@staticmethod
def from_dict(d):
v = {}
if 'Child1' in d:
if not isinstance(d['Child1'], int):
raise type_error('Child1 must be int')
v['Child1'] = int.from_dict(d['Child1']) if hasattr(int, 'from_dict') else d['Child1']
if 'Child2' in d:
if not isinstance(d['Child2'], str):
raise type_error('Child2 must be str')
v['Child2'] = str.from_dict(d['Child2']) if hasattr(str, 'from_dict') else d['Child2']
return a_bcd(**v)
def as_dict(self):
d = {}
if self.__Child1 is not None:
d['Child1'] = self.__Child1.as_dict() if hasattr(self.__Child1, 'as_dict') else self.__Child1
if self.__Child2 is not None:
d['Child2'] = self.__Child2.as_dict() if hasattr(self.__Child2, 'as_dict') else self.__Child2
return d
def __repr__(self):
return '<Class ABcd. Child1: {}, Child2: {}>'.format(self.__Child1, self.__Child2)
class Subref:
_types_map = {'ChildA': {'type': ABcd, 'subtype': None}}
_formats_map = {}
def __init__(self, ChildA=None):
pass
self.__ChildA = ChildA
def _get__child_a(self):
return self.__ChildA
def _set__child_a(self, value):
if not isinstance(value, ABcd):
raise type_error('ChildA must be ABcd')
self.__ChildA = value
child_a = property(_get_ChildA, _set_ChildA)
@staticmethod
def from_dict(d):
v = {}
if 'ChildA' in d:
if not isinstance(d['ChildA'], ABcd):
raise type_error('ChildA must be ABcd')
v['ChildA'] = ABcd.from_dict(d['ChildA']) if hasattr(ABcd, 'from_dict') else d['ChildA']
return sub_ref(**v)
def as_dict(self):
d = {}
if self.__ChildA is not None:
d['ChildA'] = self.__ChildA.as_dict() if hasattr(self.__ChildA, 'as_dict') else self.__ChildA
return d
def __repr__(self):
return '<Class SubRef. ChildA: {}>'.format(self.__ChildA)
class Directref:
_types_map = {'Child1': {'type': int, 'subtype': None}, 'Child2': {'type': str, 'subtype': None}}
_formats_map = {}
def __init__(self, Child1=None, Child2=None):
pass
self.__Child1 = Child1
self.__Child2 = Child2
def _get__child1(self):
return self.__Child1
def _set__child1(self, value):
if not isinstance(value, int):
raise type_error('Child1 must be int')
self.__Child1 = value
child1 = property(_get_Child1, _set_Child1)
def _get__child2(self):
return self.__Child2
def _set__child2(self, value):
if not isinstance(value, str):
raise type_error('Child2 must be str')
self.__Child2 = value
child2 = property(_get_Child2, _set_Child2)
@staticmethod
def from_dict(d):
v = {}
if 'Child1' in d:
if not isinstance(d['Child1'], int):
raise type_error('Child1 must be int')
v['Child1'] = int.from_dict(d['Child1']) if hasattr(int, 'from_dict') else d['Child1']
if 'Child2' in d:
if not isinstance(d['Child2'], str):
raise type_error('Child2 must be str')
v['Child2'] = str.from_dict(d['Child2']) if hasattr(str, 'from_dict') else d['Child2']
return direct_ref(**v)
def as_dict(self):
d = {}
if self.__Child1 is not None:
d['Child1'] = self.__Child1.as_dict() if hasattr(self.__Child1, 'as_dict') else self.__Child1
if self.__Child2 is not None:
d['Child2'] = self.__Child2.as_dict() if hasattr(self.__Child2, 'as_dict') else self.__Child2
return d
def __repr__(self):
return '<Class DirectRef. Child1: {}, Child2: {}>'.format(self.__Child1, self.__Child2)
class Rootobject:
def __init__(self):
pass
@staticmethod
def from_dict(d):
v = {}
return root_object(**v)
def as_dict(self):
d = {}
return d
def __repr__(self):
return '<Class RootObject. >'.format() |
cities = [
'Rome',
'Milan',
'Naples',
'Turin',
'Palermo',
'Genoa',
'Bologna',
'Florence',
'Catania',
'Bari',
'Messina',
'Verona',
'Padova',
'Trieste',
'Brescia',
'Prato',
'Taranto',
'Reggio Calabria',
'Modena',
'Livorno',
'Cagliari',
'Mestre',
'Parma',
'Foggia',
"Reggio nell'Emilia",
'Acilia-Castel Fusano-Ostia Antica',
'Salerno',
'Perugia',
'Monza',
'Rimini',
'Pescara',
'Bergamo',
'Vicenza',
'Bolzano',
'Andria',
'Udine',
'Siracusa',
'Terni',
'Forli',
'Novara',
'Barletta',
'Piacenza',
'Ferrara',
'Sassari',
'Ancona',
'La Spezia',
'Torre del Greco',
'Como',
'Lucca',
'Ravenna',
'Lecce',
'Trento',
'Giugliano in Campania',
'Busto Arsizio',
'Lido di Ostia',
'Cesena',
'Catanzaro',
'Brindisi',
'Marsala',
'Treviso',
'Pesaro',
'Pisa',
'Varese',
'Sesto San Giovanni',
'Arezzo',
'Latina',
'Gela',
'Pistoia',
'Caserta',
'Cinisello Balsamo',
'Lamezia Terme',
'Altamura',
'Guidonia Montecelio',
"Quartu Sant'Elena",
'Pavia',
'Castellammare di Stabia',
'Massa',
'Alessandria',
'Cosenza',
'Afragola',
'Ragusa',
'Asti',
'Grosseto',
'Cremona',
'Molfetta',
'Trapani',
'Carrara',
'Casoria',
'Savona',
'Vigevano',
'Legnano',
'Caltanissetta',
'Potenza',
'Portici',
'Matera',
'San Severo',
'Cerignola',
'Trani',
'Bisceglie',
'Acerra',
'Ercolano',
'Carpi Centro',
'Imola',
'Bagheria',
'Manfredonia',
'Aversa',
'Bitonto',
'Venice',
'Vittoria',
'Gallarate',
'Marano di Napoli',
'Pordenone',
'Acireale',
'Scafati',
'Moncalieri',
'Viareggio',
'Benevento',
'Crotone',
'Velletri',
'Cava De Tirreni',
'Avellino',
'Foligno',
'Nichelino',
'Civitavecchia',
'Viterbo',
'Battipaglia',
'Rho',
'San Remo',
'Lecco',
'Collegno',
'Corato',
'Cuneo',
'Paderno Dugnano',
'Rivoli',
'Paterno',
'Montesilvano Marina',
'Mazara del Vallo',
'San Benedetto del Tronto',
'Casalnuovo di Napoli',
'Cologno Monzese',
'Sesto Fiorentino',
'Vercelli',
'Pozzuoli',
'Misterbianco',
'San Giorgio a Cremano',
'Anzio',
'Nocera Inferiore',
'Scandicci',
'Nettuno',
'Frosinone',
'Chieti',
'Alcamo',
'Settimo Torinese',
'Torre Annunziata',
'Biella',
'Olbia',
'Siena',
'Seregno',
'Gravina in Puglia',
'Chioggia',
'Ascoli Piceno',
'Faenza',
'Civitanova Marche',
'Modica',
'Capannori',
'Aprilia',
'Lodi',
'Cascina',
'Desio',
'Marcianise',
'Nicastro',
'Rozzano',
'Campobasso',
'Rovigo',
'Mantova',
'Rieti',
'Fano',
"Pomigliano d'Arco",
'Imperia',
'Bassano del Grappa',
'Saronno',
'Marino',
'Avezzano',
'Monopoli',
'Martina Franca',
'Quarto',
'Lissone',
'Cantu',
'Monterotondo',
'Cesano Maderno',
'Jesi',
'Melito di Napoli',
'Sassuolo',
'Sciacca',
'Licata',
'Modugno',
'Teramo',
'Voghera',
'Nuoro',
'Caltagirone',
'Bollate',
'Ciampino',
'Carini',
'Arzano',
'Gorizia',
'Caivano',
'Barcellona Pozzo di Gotto',
'Fiumicino-Isola Sacra',
'Maddaloni',
'Adrano',
'Empoli',
'Alghero',
'Mugnano di Napoli',
'Ladispoli',
'Pioltello',
'Rovereto',
'Casalecchio di Reno',
'Schio',
"L'Aquila",
'Corsico',
"Sant'Antimo",
'Venaria Reale',
'Merano',
'Francavilla Fontana',
'Grugliasco',
'Brugherio',
'Canicatti',
'Mira Taglio',
'Campi Bisenzio',
'Pagani',
'San Dona di Piave',
'Riccione',
'Casal Palocco',
'Agrigento',
'Somma Vesuviana',
'Aosta',
'Lucera',
'Chieri',
'Favara',
'Limbiate',
'Milazzo',
'Santa Maria Capua Vetere',
'Angri',
'Crema',
'Grottaglie',
'Casale Monferrato',
'Verbania',
'San Giuliano Milanese',
'Termoli',
'Terracina',
'Senigallia',
'Massafra',
'Pinerolo',
'Macerata',
'Conegliano',
'Augusta',
'Lanciano',
'Abbiategrasso',
'Vasto',
'Piombino',
'Canosa di Puglia',
'Mascalucia',
'Marigliano',
'Frattamaggiore',
'San Paolo',
'Nardo',
'Monterusciello',
'Gragnano',
'Cernusco sul Naviglio',
'Pallanza-Intra-Suna',
'Sarno',
'Partinico',
'Avola',
'Formia',
'San Donato Milanese',
'Segrate',
'Castelvetrano',
'Manduria',
'Cisterna di Latina',
'Rapallo',
'Niscemi',
'San Giuseppe Vesuviano',
'Boscoreale',
'Triggiano',
'Camaiore',
'Monfalcone',
'Albano Laziale',
'Montebelluna',
'Fondi',
'Chiavari',
'Gravina di Catania',
'Mesagne',
'San Miniato Basso',
'Parabiago',
'Formigine',
'Comiso',
'Eboli',
'San Giovanni Rotondo',
'Romano Banco',
'Mondragone',
'Garbagnate Milanese',
'Novi Ligure',
'Falconara Marittima',
'Terlizzi',
'Bresso',
'Bacoli',
'Castelfranco Veneto',
'Assemini',
'Villaricca',
'Belluno',
'Lainate',
'Marina di Carrara',
'Treviglio',
'Alba',
'Santeramo in Colle',
'Vittorio Veneto',
'Orta di Atella',
'Mola di Bari',
'Bagnoli',
'Aci Catena',
'Oristano',
'Giussano',
'Gioia del Colle',
'Ostuni',
'Giarre',
'Lentini',
'Nola',
'Bra',
'Ruvo di Puglia',
'Pompei',
'Casa Santa',
'Rossano Stazione',
'Sora',
'Qualiano',
'Lumezzane',
'Spinea-Orgnano',
'Putignano',
'Seriate',
'Copertino',
'Nocera Superiore',
'Ottaviano',
'Cesano Boscone',
'Selargius',
'Ivrea',
'Fabriano',
'San Sebastiano',
'Muggio',
'Biancavilla',
'Chivasso',
'Carmagnola',
'Enna',
'Termini Imerese',
'Volla',
'Quattromiglia',
'Dalmine',
'Tortona',
'Seveso',
'Vimercate',
'Desenzano del Garda',
'Meda',
'Conversano',
'Iglesias',
'Palma di Montechiaro',
'Mariano Comense',
'Fasano',
'Magenta',
'Valdagno',
'Citta di Castello',
'Vignola',
'San Lazzaro',
'Pomezia',
'Nova Milanese',
'Cardito',
"Porto Sant'Elpidio",
'Floridia',
'San Cataldo',
'San Giovanni la Punta',
'Cecina',
'Tivoli',
'Mogliano Veneto',
'Noicattaro',
'Monreale',
'Fidenza',
'Castel Volturno',
'Mondovi',
'Orbassano',
'Poggibonsi',
'Carbonia',
'Porto Torres',
'Legnago',
'Lugo',
'Arzignano',
'Cassano Magnago',
'Follonica',
'San Nicola la Strada',
'Thiene',
'Francavilla al Mare',
'Sulmona',
'Cassino',
'Guidonia'
]
| cities = ['Rome', 'Milan', 'Naples', 'Turin', 'Palermo', 'Genoa', 'Bologna', 'Florence', 'Catania', 'Bari', 'Messina', 'Verona', 'Padova', 'Trieste', 'Brescia', 'Prato', 'Taranto', 'Reggio Calabria', 'Modena', 'Livorno', 'Cagliari', 'Mestre', 'Parma', 'Foggia', "Reggio nell'Emilia", 'Acilia-Castel Fusano-Ostia Antica', 'Salerno', 'Perugia', 'Monza', 'Rimini', 'Pescara', 'Bergamo', 'Vicenza', 'Bolzano', 'Andria', 'Udine', 'Siracusa', 'Terni', 'Forli', 'Novara', 'Barletta', 'Piacenza', 'Ferrara', 'Sassari', 'Ancona', 'La Spezia', 'Torre del Greco', 'Como', 'Lucca', 'Ravenna', 'Lecce', 'Trento', 'Giugliano in Campania', 'Busto Arsizio', 'Lido di Ostia', 'Cesena', 'Catanzaro', 'Brindisi', 'Marsala', 'Treviso', 'Pesaro', 'Pisa', 'Varese', 'Sesto San Giovanni', 'Arezzo', 'Latina', 'Gela', 'Pistoia', 'Caserta', 'Cinisello Balsamo', 'Lamezia Terme', 'Altamura', 'Guidonia Montecelio', "Quartu Sant'Elena", 'Pavia', 'Castellammare di Stabia', 'Massa', 'Alessandria', 'Cosenza', 'Afragola', 'Ragusa', 'Asti', 'Grosseto', 'Cremona', 'Molfetta', 'Trapani', 'Carrara', 'Casoria', 'Savona', 'Vigevano', 'Legnano', 'Caltanissetta', 'Potenza', 'Portici', 'Matera', 'San Severo', 'Cerignola', 'Trani', 'Bisceglie', 'Acerra', 'Ercolano', 'Carpi Centro', 'Imola', 'Bagheria', 'Manfredonia', 'Aversa', 'Bitonto', 'Venice', 'Vittoria', 'Gallarate', 'Marano di Napoli', 'Pordenone', 'Acireale', 'Scafati', 'Moncalieri', 'Viareggio', 'Benevento', 'Crotone', 'Velletri', 'Cava De Tirreni', 'Avellino', 'Foligno', 'Nichelino', 'Civitavecchia', 'Viterbo', 'Battipaglia', 'Rho', 'San Remo', 'Lecco', 'Collegno', 'Corato', 'Cuneo', 'Paderno Dugnano', 'Rivoli', 'Paterno', 'Montesilvano Marina', 'Mazara del Vallo', 'San Benedetto del Tronto', 'Casalnuovo di Napoli', 'Cologno Monzese', 'Sesto Fiorentino', 'Vercelli', 'Pozzuoli', 'Misterbianco', 'San Giorgio a Cremano', 'Anzio', 'Nocera Inferiore', 'Scandicci', 'Nettuno', 'Frosinone', 'Chieti', 'Alcamo', 'Settimo Torinese', 'Torre Annunziata', 'Biella', 'Olbia', 'Siena', 'Seregno', 'Gravina in Puglia', 'Chioggia', 'Ascoli Piceno', 'Faenza', 'Civitanova Marche', 'Modica', 'Capannori', 'Aprilia', 'Lodi', 'Cascina', 'Desio', 'Marcianise', 'Nicastro', 'Rozzano', 'Campobasso', 'Rovigo', 'Mantova', 'Rieti', 'Fano', "Pomigliano d'Arco", 'Imperia', 'Bassano del Grappa', 'Saronno', 'Marino', 'Avezzano', 'Monopoli', 'Martina Franca', 'Quarto', 'Lissone', 'Cantu', 'Monterotondo', 'Cesano Maderno', 'Jesi', 'Melito di Napoli', 'Sassuolo', 'Sciacca', 'Licata', 'Modugno', 'Teramo', 'Voghera', 'Nuoro', 'Caltagirone', 'Bollate', 'Ciampino', 'Carini', 'Arzano', 'Gorizia', 'Caivano', 'Barcellona Pozzo di Gotto', 'Fiumicino-Isola Sacra', 'Maddaloni', 'Adrano', 'Empoli', 'Alghero', 'Mugnano di Napoli', 'Ladispoli', 'Pioltello', 'Rovereto', 'Casalecchio di Reno', 'Schio', "L'Aquila", 'Corsico', "Sant'Antimo", 'Venaria Reale', 'Merano', 'Francavilla Fontana', 'Grugliasco', 'Brugherio', 'Canicatti', 'Mira Taglio', 'Campi Bisenzio', 'Pagani', 'San Dona di Piave', 'Riccione', 'Casal Palocco', 'Agrigento', 'Somma Vesuviana', 'Aosta', 'Lucera', 'Chieri', 'Favara', 'Limbiate', 'Milazzo', 'Santa Maria Capua Vetere', 'Angri', 'Crema', 'Grottaglie', 'Casale Monferrato', 'Verbania', 'San Giuliano Milanese', 'Termoli', 'Terracina', 'Senigallia', 'Massafra', 'Pinerolo', 'Macerata', 'Conegliano', 'Augusta', 'Lanciano', 'Abbiategrasso', 'Vasto', 'Piombino', 'Canosa di Puglia', 'Mascalucia', 'Marigliano', 'Frattamaggiore', 'San Paolo', 'Nardo', 'Monterusciello', 'Gragnano', 'Cernusco sul Naviglio', 'Pallanza-Intra-Suna', 'Sarno', 'Partinico', 'Avola', 'Formia', 'San Donato Milanese', 'Segrate', 'Castelvetrano', 'Manduria', 'Cisterna di Latina', 'Rapallo', 'Niscemi', 'San Giuseppe Vesuviano', 'Boscoreale', 'Triggiano', 'Camaiore', 'Monfalcone', 'Albano Laziale', 'Montebelluna', 'Fondi', 'Chiavari', 'Gravina di Catania', 'Mesagne', 'San Miniato Basso', 'Parabiago', 'Formigine', 'Comiso', 'Eboli', 'San Giovanni Rotondo', 'Romano Banco', 'Mondragone', 'Garbagnate Milanese', 'Novi Ligure', 'Falconara Marittima', 'Terlizzi', 'Bresso', 'Bacoli', 'Castelfranco Veneto', 'Assemini', 'Villaricca', 'Belluno', 'Lainate', 'Marina di Carrara', 'Treviglio', 'Alba', 'Santeramo in Colle', 'Vittorio Veneto', 'Orta di Atella', 'Mola di Bari', 'Bagnoli', 'Aci Catena', 'Oristano', 'Giussano', 'Gioia del Colle', 'Ostuni', 'Giarre', 'Lentini', 'Nola', 'Bra', 'Ruvo di Puglia', 'Pompei', 'Casa Santa', 'Rossano Stazione', 'Sora', 'Qualiano', 'Lumezzane', 'Spinea-Orgnano', 'Putignano', 'Seriate', 'Copertino', 'Nocera Superiore', 'Ottaviano', 'Cesano Boscone', 'Selargius', 'Ivrea', 'Fabriano', 'San Sebastiano', 'Muggio', 'Biancavilla', 'Chivasso', 'Carmagnola', 'Enna', 'Termini Imerese', 'Volla', 'Quattromiglia', 'Dalmine', 'Tortona', 'Seveso', 'Vimercate', 'Desenzano del Garda', 'Meda', 'Conversano', 'Iglesias', 'Palma di Montechiaro', 'Mariano Comense', 'Fasano', 'Magenta', 'Valdagno', 'Citta di Castello', 'Vignola', 'San Lazzaro', 'Pomezia', 'Nova Milanese', 'Cardito', "Porto Sant'Elpidio", 'Floridia', 'San Cataldo', 'San Giovanni la Punta', 'Cecina', 'Tivoli', 'Mogliano Veneto', 'Noicattaro', 'Monreale', 'Fidenza', 'Castel Volturno', 'Mondovi', 'Orbassano', 'Poggibonsi', 'Carbonia', 'Porto Torres', 'Legnago', 'Lugo', 'Arzignano', 'Cassano Magnago', 'Follonica', 'San Nicola la Strada', 'Thiene', 'Francavilla al Mare', 'Sulmona', 'Cassino', 'Guidonia'] |
def check(func):
def inner(a, b):
if b == 0:
return "Can't divide by 0"
elif b > a:
return b/a
return func(a, b)
return inner
@check
def div(a, b):
return a/b
print(div(10, 0)) | def check(func):
def inner(a, b):
if b == 0:
return "Can't divide by 0"
elif b > a:
return b / a
return func(a, b)
return inner
@check
def div(a, b):
return a / b
print(div(10, 0)) |
# Program to search for Happy Numbers
"""
A Happy Number is a number where the sum of digits squared s equal to 1 ultimately. What do we mean by ultimately?
The best way is to learn by an example.
Example
10 = 12 + 02 = 1 + 0=1. So 10 is a Happy Number
Let us try with 19
sum =12 + 92 = 1 + 81 = 82
sum=82 + 22 = 64 + 4 = 68
sum=62 + 82 = 36 + 64 = 100
sum= 12 + 02 + 02= 1 + 0 + 0 = 1
19 ultimately reaches 1 so it is a Happy Number.
"""
n = 18
ncopy = n
a = [n]
while True:
sum = 0
while n > 0:
rem = n % 10
n = n // 10
sum += rem * rem
if sum == 1:
a += [sum]
print(ncopy, " is a happy number")
print(a)
break
if sum in a:
a = a + [sum]
print(ncopy, " is not a happy number")
print(a)
break
a = a + [sum]
n = sum
# End Program
| """
A Happy Number is a number where the sum of digits squared s equal to 1 ultimately. What do we mean by ultimately?
The best way is to learn by an example.
Example
10 = 12 + 02 = 1 + 0=1. So 10 is a Happy Number
Let us try with 19
sum =12 + 92 = 1 + 81 = 82
sum=82 + 22 = 64 + 4 = 68
sum=62 + 82 = 36 + 64 = 100
sum= 12 + 02 + 02= 1 + 0 + 0 = 1
19 ultimately reaches 1 so it is a Happy Number.
"""
n = 18
ncopy = n
a = [n]
while True:
sum = 0
while n > 0:
rem = n % 10
n = n // 10
sum += rem * rem
if sum == 1:
a += [sum]
print(ncopy, ' is a happy number')
print(a)
break
if sum in a:
a = a + [sum]
print(ncopy, ' is not a happy number')
print(a)
break
a = a + [sum]
n = sum |
def f(a, d):
"""
:param a : foo
:param d : quux
""" | def f(a, d):
"""
:param a : foo
:param d : quux
""" |
# NameID Formats from the SAML Core 2.0 spec (8.3 Name Identifier Format Identifiers)
UNSPECIFIED = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
EMAIL = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
PERSISTENT = "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
TRANSIENT = "urn:oasis:names:tc:SAML:2.0:nameid-format:transient"
X509SUBJECT = "urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName"
WINDOWS = "urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName"
KERBEROS = "urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos"
ENTITY = "urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
# Tuples of NameID Formats strings and friendly names for use in choices.
NAMEID_FORMAT_CHOICES = [
(UNSPECIFIED, "Unspecified"),
(EMAIL, "EmailAddress"),
(PERSISTENT, "Persistent"),
(TRANSIENT, "Transient"),
(X509SUBJECT, "X509SubjectName"),
(WINDOWS, "WindowsDomainQualifiedName"),
(KERBEROS, "Kerberos"),
(ENTITY, "Entity"),
]
# Protocol Bindings
HTTP_POST_BINDING = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
HTTP_REDIRECT_BINDING = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
SAML_PROTOCOL_BINDINGS = [
(HTTP_POST_BINDING, "HTTP-POST"),
(HTTP_REDIRECT_BINDING, "HTTP-Redirect"),
]
| unspecified = 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified'
email = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'
persistent = 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
transient = 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'
x509_subject = 'urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName'
windows = 'urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName'
kerberos = 'urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos'
entity = 'urn:oasis:names:tc:SAML:2.0:nameid-format:entity'
nameid_format_choices = [(UNSPECIFIED, 'Unspecified'), (EMAIL, 'EmailAddress'), (PERSISTENT, 'Persistent'), (TRANSIENT, 'Transient'), (X509SUBJECT, 'X509SubjectName'), (WINDOWS, 'WindowsDomainQualifiedName'), (KERBEROS, 'Kerberos'), (ENTITY, 'Entity')]
http_post_binding = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'
http_redirect_binding = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
saml_protocol_bindings = [(HTTP_POST_BINDING, 'HTTP-POST'), (HTTP_REDIRECT_BINDING, 'HTTP-Redirect')] |
Sweep_width_List = {
'Person':{
'150':{
'6':0.7,
'9':0.7,
'19':0.9,
'28':0.9,
'37':0.9
},
'300':{
'6':0.7,
'9':0.7,
'19':0.9,
'28':0.9,
'37':0.9
},
'450':(),
'600':()
},
'Vehicle':{
'150':{
'6':1.7,
'9':2.4,
'19':2.4,
'28':2.4,
'37':2.4
},
'300':{
'6':2.6,
'9':2.6,
'19':2.8,
'28':2.8,
'37':2.8
},
'450':{
'6':1.9,
'9':3.1,
'19':3.1,
'28':3.1,
'37':3.1
},
'600':{
'6':1.9,
'9':2.8,
'19':3.7,
'28':3.7,
'37':3.7
}
},
'SmallAircraft':{
'150':{
'6':1.9,
'9':2.6,
'19':2.6,
'28':2.6,
'37':2.6
},
'300':{
'6':1.9,
'9':2.8,
'19':2.8,
'28':3,
'37':3
},
'450':{
'6':1.9,
'9':2.8,
'19':3.3,
'28':3.3,
'37':3.3
},
'600':{
'6':1.9,
'9':3,
'19':3.7,
'28':3.7,
'37':3.7
}
},
'BigAircraft':{
'150':{
'6':2.2,
'9':3.7,
'19':4.1,
'28':4.1,
'37':4.1
},
'300':{
'6':3.3,
'9':5,
'19':5.6,
'28':5.6,
'37':5.6
},
'450':{
'6':3.7,
'9':5.2,
'19':5.9,
'28':5.9,
'37':5.9
},
'600':{
'6':4.1,
'9':5.2,
'19':6.5,
'28':6.5,
'37':6.5
}
}
}
Terrain_Correction_Factor_List = {'Person': {'Low':0.5, 'Moderate':0.3, 'High':0.1},
'Vehicle':{'Low':0.7, 'Moderate':0.4, 'High':0.1},
'SmallAircraft':{'Low':0.7, 'Moderate':0.4, 'High':0.1},
'BigAircraft':{'Low':0.8, 'Moderate':0.4, 'High':0.1} }
def getSearchEffort(Search_Speed,Daylight_hours,Search_Altitude,Search_obj,visibility,vegetation):
Search_Endurance =0.85 * Daylight_hours #in hours
Uncorr_Sweep_Width = Sweep_width_List[Search_obj][Search_Altitude][visibility] #in kms
Terrain_Correction_Factor = Terrain_Correction_Factor_List[Search_obj][vegetation]
Velocity_Correction_Factor = 1.0 #for land
Fatigue_Correction_Factor = 1.0 #No crew fatigue considered
Corr_Sweep_Width = Uncorr_Sweep_Width * Terrain_Correction_Factor * Velocity_Correction_Factor * Fatigue_Correction_Factor #in kms
Search_Effort = Search_Speed * Search_Endurance * Corr_Sweep_Width * 0.621371 #in NM*NM #
#Seperation_Ratio = 0 # for computing for a single point
return Search_Effort,Corr_Sweep_Width,Search_Endurance
| sweep_width__list = {'Person': {'150': {'6': 0.7, '9': 0.7, '19': 0.9, '28': 0.9, '37': 0.9}, '300': {'6': 0.7, '9': 0.7, '19': 0.9, '28': 0.9, '37': 0.9}, '450': (), '600': ()}, 'Vehicle': {'150': {'6': 1.7, '9': 2.4, '19': 2.4, '28': 2.4, '37': 2.4}, '300': {'6': 2.6, '9': 2.6, '19': 2.8, '28': 2.8, '37': 2.8}, '450': {'6': 1.9, '9': 3.1, '19': 3.1, '28': 3.1, '37': 3.1}, '600': {'6': 1.9, '9': 2.8, '19': 3.7, '28': 3.7, '37': 3.7}}, 'SmallAircraft': {'150': {'6': 1.9, '9': 2.6, '19': 2.6, '28': 2.6, '37': 2.6}, '300': {'6': 1.9, '9': 2.8, '19': 2.8, '28': 3, '37': 3}, '450': {'6': 1.9, '9': 2.8, '19': 3.3, '28': 3.3, '37': 3.3}, '600': {'6': 1.9, '9': 3, '19': 3.7, '28': 3.7, '37': 3.7}}, 'BigAircraft': {'150': {'6': 2.2, '9': 3.7, '19': 4.1, '28': 4.1, '37': 4.1}, '300': {'6': 3.3, '9': 5, '19': 5.6, '28': 5.6, '37': 5.6}, '450': {'6': 3.7, '9': 5.2, '19': 5.9, '28': 5.9, '37': 5.9}, '600': {'6': 4.1, '9': 5.2, '19': 6.5, '28': 6.5, '37': 6.5}}}
terrain__correction__factor__list = {'Person': {'Low': 0.5, 'Moderate': 0.3, 'High': 0.1}, 'Vehicle': {'Low': 0.7, 'Moderate': 0.4, 'High': 0.1}, 'SmallAircraft': {'Low': 0.7, 'Moderate': 0.4, 'High': 0.1}, 'BigAircraft': {'Low': 0.8, 'Moderate': 0.4, 'High': 0.1}}
def get_search_effort(Search_Speed, Daylight_hours, Search_Altitude, Search_obj, visibility, vegetation):
search__endurance = 0.85 * Daylight_hours
uncorr__sweep__width = Sweep_width_List[Search_obj][Search_Altitude][visibility]
terrain__correction__factor = Terrain_Correction_Factor_List[Search_obj][vegetation]
velocity__correction__factor = 1.0
fatigue__correction__factor = 1.0
corr__sweep__width = Uncorr_Sweep_Width * Terrain_Correction_Factor * Velocity_Correction_Factor * Fatigue_Correction_Factor
search__effort = Search_Speed * Search_Endurance * Corr_Sweep_Width * 0.621371
return (Search_Effort, Corr_Sweep_Width, Search_Endurance) |
num = int(input())
n = int((num - 1) / 2)
for l in range(n+1):
space = ' ' * (n - l)
nums = [str(i) for i in range(n-l+1, n-l+1+3)]
left = space + ''.join(nums) + ' ' * l
right = left[::-1].rstrip()
middle = (str(num) if l == 0 else ' ')
print(left+middle+right)
for l in range(n, -1, -1):
space = ' ' * (n - l)
nums = [str(i) for i in range(n-l+1, n-l+1+3)]
left = space + ''.join(nums) + ' ' * l
right = left[::-1].rstrip()
middle = (str(num) if l == 0 else ' ')
print(left+middle+right)
| num = int(input())
n = int((num - 1) / 2)
for l in range(n + 1):
space = ' ' * (n - l)
nums = [str(i) for i in range(n - l + 1, n - l + 1 + 3)]
left = space + ''.join(nums) + ' ' * l
right = left[::-1].rstrip()
middle = str(num) if l == 0 else ' '
print(left + middle + right)
for l in range(n, -1, -1):
space = ' ' * (n - l)
nums = [str(i) for i in range(n - l + 1, n - l + 1 + 3)]
left = space + ''.join(nums) + ' ' * l
right = left[::-1].rstrip()
middle = str(num) if l == 0 else ' '
print(left + middle + right) |
# coding: utf-8
# Copyright 2020, Oracle Corporation and/or its affiliates.
FILTER_ERR = 'Some of the chosen filters were not found, we cannot continue.'
| filter_err = 'Some of the chosen filters were not found, we cannot continue.' |
# Internationalization
# https://docs.djangoproject.com/en/dev/topics/i18n/
LANGUAGE_CODE = 'ru-RU'
TIME_ZONE = 'Asia/Yekaterinburg'
USE_I18N = True
USE_L10N = True
USE_TZ = True
| language_code = 'ru-RU'
time_zone = 'Asia/Yekaterinburg'
use_i18_n = True
use_l10_n = True
use_tz = True |
# Copyright (c) 2012, Tom Hendrikx
# All rights reserved.
#
# See LICENSE for the license.
VERSION = 'GIT'
| version = 'GIT' |
class RequestHeaderMiddleware(object):
def __init__(self, headers):
self._headers = headers
@classmethod
def from_crawler(cls, crawler):
headers = {
'Referer': 'http://www.fundsupermart.com.hk/hk/main/home/index.svdo',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'
}
return cls(headers.items())
def process_request(self, request, spider):
for k, v in self._headers:
request.headers.setdefault(k, v)
| class Requestheadermiddleware(object):
def __init__(self, headers):
self._headers = headers
@classmethod
def from_crawler(cls, crawler):
headers = {'Referer': 'http://www.fundsupermart.com.hk/hk/main/home/index.svdo', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'}
return cls(headers.items())
def process_request(self, request, spider):
for (k, v) in self._headers:
request.headers.setdefault(k, v) |
# -*- coding: utf-8 -*-
class Solution:
def projectionArea(self, grid):
result = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j]:
result += 1
for i in range(len(grid)):
partial = 0
for j in range(len(grid[0])):
partial = max(partial, grid[i][j])
result += partial
for j in range(len(grid[0])):
partial = 0
for i in range(len(grid)):
partial = max(partial, grid[i][j])
result += partial
return result
if __name__ == '__main__':
solution = Solution()
assert 5 == solution.projectionArea([[2]])
assert 17 == solution.projectionArea([[1, 2], [3, 4]])
assert 8 == solution.projectionArea([[1, 0], [0, 2]])
assert 14 == solution.projectionArea([[1, 1, 1], [1, 0, 1], [1, 1, 1]])
assert 21 == solution.projectionArea([[2, 2, 2], [2, 1, 2], [2, 2, 2]])
| class Solution:
def projection_area(self, grid):
result = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j]:
result += 1
for i in range(len(grid)):
partial = 0
for j in range(len(grid[0])):
partial = max(partial, grid[i][j])
result += partial
for j in range(len(grid[0])):
partial = 0
for i in range(len(grid)):
partial = max(partial, grid[i][j])
result += partial
return result
if __name__ == '__main__':
solution = solution()
assert 5 == solution.projectionArea([[2]])
assert 17 == solution.projectionArea([[1, 2], [3, 4]])
assert 8 == solution.projectionArea([[1, 0], [0, 2]])
assert 14 == solution.projectionArea([[1, 1, 1], [1, 0, 1], [1, 1, 1]])
assert 21 == solution.projectionArea([[2, 2, 2], [2, 1, 2], [2, 2, 2]]) |
# -*- coding: utf-8 -*-
"""Copyright 2020 Jeremy Pardo @grm34 https://github.com/grm34.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
def partitions_updater(self, user):
"""Delete previous partition to display an updated array after selection.
Arguments
---------
user: "Dictionary containing user's answers"
Returns
-------
"Array containing the remaining available partitions"
"""
for partition in ['boot_id', 'root_id', 'swap_id']:
if (partition in user) and \
(user[partition] in self.system['partitions']):
self.system['partitions'].remove(user[partition])
return self.system['partitions']
def desktop_extra_assigner(self, user):
"""Assign the extra packages name of the selected desktop.
Arguments
---------
user: "Dictionary containing user's answers"
Returns
-------
"String containing question for the desktop extras"
"""
choice = ['Gnome extra',
'KDE applications',
'Deepin extra',
'Mate extra',
'XFCE goodies']
question = self.trad('Do you wish to install {extra}').format(
extra=choice[user['desktop']])
return question
# PyArchboot - Python Arch Linux Installer by grm34 under Apache License 2.0
##############################################################################
| """Copyright 2020 Jeremy Pardo @grm34 https://github.com/grm34.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
def partitions_updater(self, user):
"""Delete previous partition to display an updated array after selection.
Arguments
---------
user: "Dictionary containing user's answers"
Returns
-------
"Array containing the remaining available partitions"
"""
for partition in ['boot_id', 'root_id', 'swap_id']:
if partition in user and user[partition] in self.system['partitions']:
self.system['partitions'].remove(user[partition])
return self.system['partitions']
def desktop_extra_assigner(self, user):
"""Assign the extra packages name of the selected desktop.
Arguments
---------
user: "Dictionary containing user's answers"
Returns
-------
"String containing question for the desktop extras"
"""
choice = ['Gnome extra', 'KDE applications', 'Deepin extra', 'Mate extra', 'XFCE goodies']
question = self.trad('Do you wish to install {extra}').format(extra=choice[user['desktop']])
return question |
user_db = ''
password_db = ''
def register(username,password,repeat_password):
if password == repeat_password:
user_db = username
password_db = password
return user_db,password_db
else:
return 'Paroli ne sovpadaut!'
print(register('zarina','123456','1234567'))
| user_db = ''
password_db = ''
def register(username, password, repeat_password):
if password == repeat_password:
user_db = username
password_db = password
return (user_db, password_db)
else:
return 'Paroli ne sovpadaut!'
print(register('zarina', '123456', '1234567')) |
stats_default_config = {
"retention_size": 1024,
"retention_time": 365,
"wal_compression": "false",
"storage_path": '"./stats_data"',
"prometheus_auth_enabled": "true",
"log_level": '"debug"',
"max_block_duration": 25,
"scrape_interval": 10,
"scrape_timeout": 10,
"snapshot_timeout_msecs": 30000,
"token_file": "prometheus_token",
"query_max_samples": 200000,
"intervals_calculation_period": 600000,
"cbcollect_stats_dump_max_size": 1073741824,
"cbcollect_stats_min_period": 14,
"average_sample_size": 3,
"services": "[{index,[{high_cardinality_enabled,true}]}, {fts,[{high_cardinality_enabled,true}]}, \
{kv,[{high_cardinality_enabled,true}]}, {cbas,[{high_cardinality_enabled,true}]}, \
{eventing,[{high_cardinality_enabled,true}]}]",
"external_prometheus_services": "[{index,[{high_cardinality_enabled,true}]}, \
{fts,[{high_cardinality_enabled,true}]}, \
{kv,[{high_cardinality_enabled,true}]}, \
{cbas,[{high_cardinality_enabled,true}]}, \
{eventing,[{high_cardinality_enabled,true}]}]",
"prometheus_metrics_enabled": "false",
"prometheus_metrics_scrape_interval": 60,
"listen_addr_type": "loopback"
} | stats_default_config = {'retention_size': 1024, 'retention_time': 365, 'wal_compression': 'false', 'storage_path': '"./stats_data"', 'prometheus_auth_enabled': 'true', 'log_level': '"debug"', 'max_block_duration': 25, 'scrape_interval': 10, 'scrape_timeout': 10, 'snapshot_timeout_msecs': 30000, 'token_file': 'prometheus_token', 'query_max_samples': 200000, 'intervals_calculation_period': 600000, 'cbcollect_stats_dump_max_size': 1073741824, 'cbcollect_stats_min_period': 14, 'average_sample_size': 3, 'services': '[{index,[{high_cardinality_enabled,true}]}, {fts,[{high_cardinality_enabled,true}]}, {kv,[{high_cardinality_enabled,true}]}, {cbas,[{high_cardinality_enabled,true}]}, {eventing,[{high_cardinality_enabled,true}]}]', 'external_prometheus_services': '[{index,[{high_cardinality_enabled,true}]}, {fts,[{high_cardinality_enabled,true}]}, {kv,[{high_cardinality_enabled,true}]}, {cbas,[{high_cardinality_enabled,true}]}, {eventing,[{high_cardinality_enabled,true}]}]', 'prometheus_metrics_enabled': 'false', 'prometheus_metrics_scrape_interval': 60, 'listen_addr_type': 'loopback'} |
#returns the quotient and remainder of the number
#retturns two arguements
#first arguement gives the quotient
#second arguement gives the remainder
print(divmod(9,2))
print(divmod(9.6,2.5))
| print(divmod(9, 2))
print(divmod(9.6, 2.5)) |
class FormatInput():
def add_low_quality_SNV_info(self,CNV_information,total_read, alt_read,total_read_cut,mutant_read_cut):
New_CNV_information={}
for tumor in CNV_information:
CNVinfo=CNV_information[tumor]
TotRead=total_read[tumor]
AltRead=alt_read[tumor]
Len=len(CNVinfo)
c=0
NewIn=[]
while c<Len:
In=CNVinfo[c]
if CNVinfo[c]=='normal':
if TotRead[c]<total_read_cut or (AltRead[c]!=0 and AltRead[c]<mutant_read_cut): In='Bad-normal'
NewIn.append(In)
c+=1
New_CNV_information[tumor]=NewIn
return New_CNV_information
def ccf2snv(self, ccf_file, read_coverage):
CCF=ccf_file
ReadCov=float(read_coverage)
Out=CCF[:-4]+'snv.txt'
OutCNV=CCF[:-4]+'snv-CNV.txt'
Tu2CCF=self.ListColStr(CCF)
TuOrder=[]
out=''
outCNV=''
for Tu in Tu2CCF:
TuOrder.append(Tu)
out+=Tu+':ref\t'+Tu+':alt\t'
outCNV+=Tu+'\t'
out=out[:-1]+'\n'
outCNV=outCNV[:-1]+'\n'
Len=len(Tu2CCF[Tu])
c=0
while c<Len:
for Tu in TuOrder:
Mut=int(ReadCov*float(Tu2CCF[Tu][c])/2)
Ref=int(ReadCov-Mut)
out+=str(Ref)+'\t'+str(Mut)+'\t'
outCNV+='normal\t'
out=out[:-1]+'\n'
outCNV=outCNV[:-1]+'\n'
c+=1
self.save_file(Out,out)
self.save_file(OutCNV,outCNV)
def ListColStr(self, File):
File=open(File,'r').readlines()
NameOrder,Name2Col=self.GetHead(File[0])
File=File[1:]
Tu2Freq={}
for Tu in NameOrder:
Tu2Freq[Tu]=[]
for i in File:
i=i.strip().split('\t')
for Tu in Name2Col:
Tu2Freq[Tu].append(i[Name2Col[Tu]])
return Tu2Freq
def GetHead(self, Head):
Head=Head.strip().split('\t')
Len=len(Head)
c=0
Name2Col={}
NameOrder=[]
while c<Len:
Name2Col[Head[c]]=c
NameOrder.append(Head[c])
c+=1
return NameOrder,Name2Col
def save_file(self, Out, out):
OutF=open(Out,'w')
OutF.write(out)
OutF.close()
def cnv2snv(self, Ta, CNV):
Out=Ta[:-4]+'snv.txt'
SOrder, Samp2CNVfreqIn ,SNVnum,AAA=self.ObsFreqTaHead(CNV)
Tu2TotRead ,Tu2SNVfre=self.GetTotRead(Ta)
out=open(CNV,'r').readlines()[0]
c=0
while c<SNVnum:
for S in SOrder:
OriFre=Tu2SNVfre[S][c]
MutCopyFra=Samp2CNVfreqIn[S][c]
AdjFre=OriFre/(MutCopyFra*2)
NewMut=int(round(AdjFre*Tu2TotRead[S][c],0))
NewRef=Tu2TotRead[S][c]-NewMut
out+=str(NewRef)+'\t'+str(NewMut)+'\t'
out=out[:-1]+'\n'
c+=1
self.save_file(Out,out)
def snv2snv(self, Ta, CNVmake):
Out=Ta[:-4]+'snv.txt'
OutCNV=Ta[:-4]+'snv-CNV.txt'
Ta=open(Ta,'r').readlines()
SOrder, Samp2Col = self.GetHeadObsFreqTaHead(Ta[0].strip())
out=''
outCNV=''
for Sample in SOrder:
out+=Sample+':ref\t'+Sample+':alt\t'
outCNV+=Sample+'\t'
out=out[:-1]+'\n'
outCNV=outCNV[:-1]+'\n'
Ta=Ta[1:]
for i in Ta:
i=i.strip().split('\t')
for S in SOrder:
out+=i[Samp2Col[S+':ref']]+'\t'+i[Samp2Col[S+':alt']]+'\t'
outCNV+='normal\t'
out=out[:-1]+'\n'
outCNV=outCNV[:-1]+'\n'
self.save_file(Out,out)
if CNVmake=='withCNVfile': self.save_file(OutCNV,outCNV)
def ObsFreqTaHead(self, Freq):
Freq=open(Freq,'r').readlines()
SampOrder,Name2Col=self.GetHeadObsFreqTaHead(Freq[0])
Samp2FreqIn={}
Samp2TotRead={}
for Samp in SampOrder:
Samp2FreqIn[Samp]=[]
Samp2TotRead[Samp]=[]
Freq=Freq[1:]
SNVnum=0
for i in Freq:
i=i.strip().split('\t')
TMP={}
for Samp in SampOrder:
MutC=int(i[Name2Col[Samp+':alt']])
RefC=int(i[Name2Col[Samp+':ref']])
MutFreq=1.0*MutC/(MutC+RefC)
Tot=MutC+RefC
Samp2FreqIn[Samp].append(MutFreq)
Samp2TotRead[Samp].append(Tot)
SNVnum+=1
return SampOrder, Samp2FreqIn ,SNVnum,Samp2TotRead
def GetHeadObsFreqTaHead(self, Head):
Head=Head.strip().split('\t')
SampOrder=[]
Name2Col={}
c=0
Len=len(Head)
while c<Len:
i=Head[c]
if i.find(':')!=-1:
Samp=i.split(':')[0]
Code=Samp in SampOrder
if Code!=True:
SampOrder.append(Samp)
Name2Col[i]=c
c+=1
return SampOrder,Name2Col
def GetHeadObsFreqTaHead1(self, Head): #as a string
Head=Head.strip().split('\t')
SampOrder=[]
Name2Col={}
c=0
Len=len(Head)
while c<Len:
i=Head[c]
if i.find(':')!=-1:
Samp=i.split(':')[0].replace(' ','')
Code=Samp in SampOrder
if Code!=True:
SampOrder.append(Samp)
Name2Col[i.replace(' ','')]=c
c+=1
return SampOrder,Name2Col
def GetTotRead(self, Obs):
Obs=open(Obs,'r').readlines()
TuOrder,Tu2Col =self.GetHeadObsFreqTaHead1(Obs[0])
Tu2SNVfre={}
Tu2TotRead={}
Obs=Obs[1:]
for i in Obs:
i=i.strip().split('\t')
for Tu in TuOrder:
Mut=int(i[Tu2Col[Tu+':'+'alt']])
Tot=int(i[Tu2Col[Tu+':'+'ref']])+Mut
Fre=1.0*Mut/Tot
Code=Tu in Tu2SNVfre
if Code!=True:
Tu2SNVfre[Tu]=[]
Tu2TotRead[Tu]=[]
Tu2SNVfre[Tu].append(Fre)
Tu2TotRead[Tu].append(Tot)
return Tu2TotRead ,Tu2SNVfre | class Formatinput:
def add_low_quality_snv_info(self, CNV_information, total_read, alt_read, total_read_cut, mutant_read_cut):
new_cnv_information = {}
for tumor in CNV_information:
cn_vinfo = CNV_information[tumor]
tot_read = total_read[tumor]
alt_read = alt_read[tumor]
len = len(CNVinfo)
c = 0
new_in = []
while c < Len:
in = CNVinfo[c]
if CNVinfo[c] == 'normal':
if TotRead[c] < total_read_cut or (AltRead[c] != 0 and AltRead[c] < mutant_read_cut):
in = 'Bad-normal'
NewIn.append(In)
c += 1
New_CNV_information[tumor] = NewIn
return New_CNV_information
def ccf2snv(self, ccf_file, read_coverage):
ccf = ccf_file
read_cov = float(read_coverage)
out = CCF[:-4] + 'snv.txt'
out_cnv = CCF[:-4] + 'snv-CNV.txt'
tu2_ccf = self.ListColStr(CCF)
tu_order = []
out = ''
out_cnv = ''
for tu in Tu2CCF:
TuOrder.append(Tu)
out += Tu + ':ref\t' + Tu + ':alt\t'
out_cnv += Tu + '\t'
out = out[:-1] + '\n'
out_cnv = outCNV[:-1] + '\n'
len = len(Tu2CCF[Tu])
c = 0
while c < Len:
for tu in TuOrder:
mut = int(ReadCov * float(Tu2CCF[Tu][c]) / 2)
ref = int(ReadCov - Mut)
out += str(Ref) + '\t' + str(Mut) + '\t'
out_cnv += 'normal\t'
out = out[:-1] + '\n'
out_cnv = outCNV[:-1] + '\n'
c += 1
self.save_file(Out, out)
self.save_file(OutCNV, outCNV)
def list_col_str(self, File):
file = open(File, 'r').readlines()
(name_order, name2_col) = self.GetHead(File[0])
file = File[1:]
tu2_freq = {}
for tu in NameOrder:
Tu2Freq[Tu] = []
for i in File:
i = i.strip().split('\t')
for tu in Name2Col:
Tu2Freq[Tu].append(i[Name2Col[Tu]])
return Tu2Freq
def get_head(self, Head):
head = Head.strip().split('\t')
len = len(Head)
c = 0
name2_col = {}
name_order = []
while c < Len:
Name2Col[Head[c]] = c
NameOrder.append(Head[c])
c += 1
return (NameOrder, Name2Col)
def save_file(self, Out, out):
out_f = open(Out, 'w')
OutF.write(out)
OutF.close()
def cnv2snv(self, Ta, CNV):
out = Ta[:-4] + 'snv.txt'
(s_order, samp2_cn_vfreq_in, sn_vnum, aaa) = self.ObsFreqTaHead(CNV)
(tu2_tot_read, tu2_sn_vfre) = self.GetTotRead(Ta)
out = open(CNV, 'r').readlines()[0]
c = 0
while c < SNVnum:
for s in SOrder:
ori_fre = Tu2SNVfre[S][c]
mut_copy_fra = Samp2CNVfreqIn[S][c]
adj_fre = OriFre / (MutCopyFra * 2)
new_mut = int(round(AdjFre * Tu2TotRead[S][c], 0))
new_ref = Tu2TotRead[S][c] - NewMut
out += str(NewRef) + '\t' + str(NewMut) + '\t'
out = out[:-1] + '\n'
c += 1
self.save_file(Out, out)
def snv2snv(self, Ta, CNVmake):
out = Ta[:-4] + 'snv.txt'
out_cnv = Ta[:-4] + 'snv-CNV.txt'
ta = open(Ta, 'r').readlines()
(s_order, samp2_col) = self.GetHeadObsFreqTaHead(Ta[0].strip())
out = ''
out_cnv = ''
for sample in SOrder:
out += Sample + ':ref\t' + Sample + ':alt\t'
out_cnv += Sample + '\t'
out = out[:-1] + '\n'
out_cnv = outCNV[:-1] + '\n'
ta = Ta[1:]
for i in Ta:
i = i.strip().split('\t')
for s in SOrder:
out += i[Samp2Col[S + ':ref']] + '\t' + i[Samp2Col[S + ':alt']] + '\t'
out_cnv += 'normal\t'
out = out[:-1] + '\n'
out_cnv = outCNV[:-1] + '\n'
self.save_file(Out, out)
if CNVmake == 'withCNVfile':
self.save_file(OutCNV, outCNV)
def obs_freq_ta_head(self, Freq):
freq = open(Freq, 'r').readlines()
(samp_order, name2_col) = self.GetHeadObsFreqTaHead(Freq[0])
samp2_freq_in = {}
samp2_tot_read = {}
for samp in SampOrder:
Samp2FreqIn[Samp] = []
Samp2TotRead[Samp] = []
freq = Freq[1:]
sn_vnum = 0
for i in Freq:
i = i.strip().split('\t')
tmp = {}
for samp in SampOrder:
mut_c = int(i[Name2Col[Samp + ':alt']])
ref_c = int(i[Name2Col[Samp + ':ref']])
mut_freq = 1.0 * MutC / (MutC + RefC)
tot = MutC + RefC
Samp2FreqIn[Samp].append(MutFreq)
Samp2TotRead[Samp].append(Tot)
sn_vnum += 1
return (SampOrder, Samp2FreqIn, SNVnum, Samp2TotRead)
def get_head_obs_freq_ta_head(self, Head):
head = Head.strip().split('\t')
samp_order = []
name2_col = {}
c = 0
len = len(Head)
while c < Len:
i = Head[c]
if i.find(':') != -1:
samp = i.split(':')[0]
code = Samp in SampOrder
if Code != True:
SampOrder.append(Samp)
Name2Col[i] = c
c += 1
return (SampOrder, Name2Col)
def get_head_obs_freq_ta_head1(self, Head):
head = Head.strip().split('\t')
samp_order = []
name2_col = {}
c = 0
len = len(Head)
while c < Len:
i = Head[c]
if i.find(':') != -1:
samp = i.split(':')[0].replace(' ', '')
code = Samp in SampOrder
if Code != True:
SampOrder.append(Samp)
Name2Col[i.replace(' ', '')] = c
c += 1
return (SampOrder, Name2Col)
def get_tot_read(self, Obs):
obs = open(Obs, 'r').readlines()
(tu_order, tu2_col) = self.GetHeadObsFreqTaHead1(Obs[0])
tu2_sn_vfre = {}
tu2_tot_read = {}
obs = Obs[1:]
for i in Obs:
i = i.strip().split('\t')
for tu in TuOrder:
mut = int(i[Tu2Col[Tu + ':' + 'alt']])
tot = int(i[Tu2Col[Tu + ':' + 'ref']]) + Mut
fre = 1.0 * Mut / Tot
code = Tu in Tu2SNVfre
if Code != True:
Tu2SNVfre[Tu] = []
Tu2TotRead[Tu] = []
Tu2SNVfre[Tu].append(Fre)
Tu2TotRead[Tu].append(Tot)
return (Tu2TotRead, Tu2SNVfre) |
'''
URL: https://leetcode.com/problems/island-perimeter/
Difficulty: Easy
Description: Island Perimeter
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water.
Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells).
The island doesn't have "lakes", meaning the water inside isn't connected to the water around the island. One cell is a square with side length 1. The grid is rectangular, width and height don't exceed 100. Determine the perimeter of the island.
Example 1:
Input: grid = [[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]
Output: 16
Explanation: The perimeter is the 16 yellow stripes in the image above.
Example 2:
Input: grid = [[1]]
Output: 4
Example 3:
Input: grid = [[1,0]]
Output: 4
Constraints:
row == grid.length
col == grid[i].length
1 <= row, col <= 100
grid[i][j] is 0 or 1.
'''
class Solution:
def islandPerimeter(self, grid):
p = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == 1:
# top
if i-1 < 0 or grid[i-1][j] == 0:
p += 1
# bottom
if i + 1 > len(grid)-1 or grid[i+1][j] == 0:
p += 1
# left
if j - 1 < 0 or grid[i][j-1] == 0:
p += 1
# right
if j + 1 > len(grid[0]) - 1 or grid[i][j+1] == 0:
p += 1
return p
| """
URL: https://leetcode.com/problems/island-perimeter/
Difficulty: Easy
Description: Island Perimeter
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water.
Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells).
The island doesn't have "lakes", meaning the water inside isn't connected to the water around the island. One cell is a square with side length 1. The grid is rectangular, width and height don't exceed 100. Determine the perimeter of the island.
Example 1:
Input: grid = [[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]
Output: 16
Explanation: The perimeter is the 16 yellow stripes in the image above.
Example 2:
Input: grid = [[1]]
Output: 4
Example 3:
Input: grid = [[1,0]]
Output: 4
Constraints:
row == grid.length
col == grid[i].length
1 <= row, col <= 100
grid[i][j] is 0 or 1.
"""
class Solution:
def island_perimeter(self, grid):
p = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == 1:
if i - 1 < 0 or grid[i - 1][j] == 0:
p += 1
if i + 1 > len(grid) - 1 or grid[i + 1][j] == 0:
p += 1
if j - 1 < 0 or grid[i][j - 1] == 0:
p += 1
if j + 1 > len(grid[0]) - 1 or grid[i][j + 1] == 0:
p += 1
return p |
class Solution(object):
def subdomainVisits(self, cpdomains):
"""
:type cpdomains: List[str]
:rtype: List[str]
"""
counter = collections.Counter()
for item in cpdomains:
num, url = item.split()
num = int(num)
i = 0
while True:
counter[url[i:]] += num
j = url.find('.', i)
if j == -1:
break
else:
i = j + 1
return ['{} {}'.format(cnt, key) for key, cnt in counter.items()] | class Solution(object):
def subdomain_visits(self, cpdomains):
"""
:type cpdomains: List[str]
:rtype: List[str]
"""
counter = collections.Counter()
for item in cpdomains:
(num, url) = item.split()
num = int(num)
i = 0
while True:
counter[url[i:]] += num
j = url.find('.', i)
if j == -1:
break
else:
i = j + 1
return ['{} {}'.format(cnt, key) for (key, cnt) in counter.items()] |
#
# PySNMP MIB module CISCO-BULK-FILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-BULK-FILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:51:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Counter32, ModuleIdentity, Gauge32, Bits, ObjectIdentity, iso, TimeTicks, Counter64, zeroDotZero, Unsigned32, IpAddress, Integer32, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ModuleIdentity", "Gauge32", "Bits", "ObjectIdentity", "iso", "TimeTicks", "Counter64", "zeroDotZero", "Unsigned32", "IpAddress", "Integer32", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
TimeStamp, TruthValue, TextualConvention, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "TruthValue", "TextualConvention", "DisplayString", "RowStatus")
ciscoBulkFileMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 81))
ciscoBulkFileMIB.setRevisions(('2002-06-10 00:00', '2002-05-15 00:00', '2001-08-22 00:00', '2001-08-01 00:00', '2001-06-26 17:00', '1998-10-29 17:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoBulkFileMIB.setRevisionsDescriptions(("Added enum 'forcedCreate' for object 'cbfDefineFileNow' for forced creation of configuration files.", 'Added default values for all read-write objects in table to simplify creation of table rows.', 'Modified description of objects cbfDefineObjectTableInstance and cbfDefineObjectLastPolledInst in cbfDefineObjectTable to accept/represent Full OIDs instead of partial OIDs.', 'Enhanced the MIB for selective row transfer from MIBS. Added a notification to indicate bulk file creation or error(during creation of the file). Added object cbfDefineFileNotifyOnCompletion to cbfDefineFileTable. Added the objects cbfDefineObjectTableInstance, cbfDefineObjectLastPolledInst and cbfDefineObjectNumEntries to cbfDefineObjectTable. Added cbfDefineFileCompletion notification.', 'Added the following enumerations variantBERWithCksum(4) and variantBinWithCksum(5) in cbfDefineFileFormat', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoBulkFileMIB.setLastUpdated('200206100000Z')
if mibBuilder.loadTexts: ciscoBulkFileMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoBulkFileMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com')
if mibBuilder.loadTexts: ciscoBulkFileMIB.setDescription('The MIB module for creating and deleting bulk files of SNMP data for file transfer.')
ciscoBulkFileMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1))
cbfDefine = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1))
cbfStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2))
cbfDefineMaxFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbfDefineMaxFiles.setStatus('current')
if mibBuilder.loadTexts: cbfDefineMaxFiles.setDescription('The maximum number of file definitions this system can hold in cbfDefineFileTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number does not disturb existing entries.')
cbfDefineFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineFiles.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFiles.setDescription('The current number of file definitions in cbfDefineFileTable.')
cbfDefineHighFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineHighFiles.setStatus('current')
if mibBuilder.loadTexts: cbfDefineHighFiles.setDescription('The maximum value of cbfDefineFiles since system initialization.')
cbfDefineFilesRefused = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineFilesRefused.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFilesRefused.setDescription('The number of attempts to create a file definition that failed due to exceeding cbfDefineMaxFiles.')
cbfDefineMaxObjects = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbfDefineMaxObjects.setStatus('current')
if mibBuilder.loadTexts: cbfDefineMaxObjects.setDescription('The maximum total number of object selections to go with file definitions this system, that is, the total number of objects this system can hold in cbfDefineObjectTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number does not disturb existing entries.')
cbfDefineObjects = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineObjects.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjects.setDescription('The current number of object selections in cbfDefineObjectTable.')
cbfDefineHighObjects = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 7), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineHighObjects.setStatus('current')
if mibBuilder.loadTexts: cbfDefineHighObjects.setDescription('The maximum value of cbfDefineObjects since system initialization.')
cbfDefineObjectsRefused = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineObjectsRefused.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectsRefused.setDescription('The number of attempts to create an object selection that failed due to exceeding cbfDefineMaxObjects.')
cbfDefineFileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9), )
if mibBuilder.loadTexts: cbfDefineFileTable.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileTable.setDescription('A table of bulk file definition and creation controls.')
cbfDefineFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1), ).setIndexNames((0, "CISCO-BULK-FILE-MIB", "cbfDefineFileIndex"))
if mibBuilder.loadTexts: cbfDefineFileEntry.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileEntry.setDescription("Information for creation of a bulk file. To creat a bulk file an application creates an entry in this table and corresponding entries in cbfDefineObjectTable. When the entry in this table and the corresponding entries in cbfDefineObjectTable are 'active' the appliction uses cbfDefineFileNow to create the file and a corresponding entry in cbfStatusFileTable. Deleting an entry in cbfDefineFileTable deletes all corresponding entries in cbfDefineObjectTable and cbfStatusFileTable. An entry may not be modified or deleted while its cbfDefineFileNow has the value 'running'.")
cbfDefineFileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cbfDefineFileIndex.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileIndex.setDescription('An arbitrary integer to uniquely identify this entry. To create an entry a management application should pick a random number.')
cbfDefineFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileName.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileName.setDescription('The file name which is to be created. Explicit device or path choices in the value of this object override cbfDefineFileStorage.')
cbfDefineFileStorage = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ephemeral", 1), ("volatile", 2), ("permanent", 3))).clone('ephemeral')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileStorage.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileStorage.setDescription('The type of file storage to use: ephemeral data exists in small amounts until read volatile data exists in volatile memory permanent data survives reboot An ephemeral file is suitable to be read only one time. Note that this value is taken as advisory and may be overridden by explicit device or path choices in cbfDefineFile. A given system may support any or all of these.')
cbfDefineFileFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("standardBER", 1), ("bulkBinary", 2), ("bulkASCII", 3), ("variantBERWithCksum", 4), ("variantBinWithCksum", 5))).clone('bulkBinary')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileFormat.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileFormat.setDescription('The format of the data in the file: StandardBER standard SNMP ASN.1 BER bulkBinary a binary format specified with this MIB bulkASCII a human-readable form of bulkBinary variantBERWithCksum ASN.1 BER encoding with checksum variantBinWithCksum a binary format with checksum A given system may support any or all of these.')
cbfDefineFileNow = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notActive", 1), ("ready", 2), ("create", 3), ("running", 4), ("forcedCreate", 5))).clone('notActive')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileNow.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileNow.setDescription("The control to cause file creation. The only values that can be set are 'create' and 'forcedCreate'. These can be set only when the value is 'ready'. Setting it to 'create' begins a file creation and creates a corresponding entry in cbfStatusFileTable. The system may choose to use an already existing copy of the file instead of creating a new one. This may happen if there has been no configuration change on the system and a request to recreate the file is received. Setting this object to 'forcedCreate' forces the system to create a new copy of the file. The value is 'notActve' as long as cbfDefineFileEntryStatus or any corresponding cbfDefineObjectEntryStatus is not active. When cbfDefineFileEntryStatus becomes active and all corresponding cbfDefineObjectEntryStatuses are active this object automatically goes to 'ready'.")
cbfDefineFileEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 6), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileEntryStatus.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileEntryStatus.setDescription('The control that allows creation, modification, and deletion of entries. For detailed rules see the DESCRIPTION for cbfDefineFileEntry.')
cbfDefineFileNotifyOnCompletion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 7), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineFileNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileNotifyOnCompletion.setDescription('This controls the cbfDefineFileCompletion notification. If true, cbfDefineFileCompletion notification will be generated. It is the responsibility of the management entity to ensure that the SNMP administrative model is configured in such a way as to allow the notification to be delivered.')
cbfDefineObjectTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10), )
if mibBuilder.loadTexts: cbfDefineObjectTable.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectTable.setDescription('A table of objects to go in bulk files.')
cbfDefineObjectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1), ).setIndexNames((0, "CISCO-BULK-FILE-MIB", "cbfDefineFileIndex"), (0, "CISCO-BULK-FILE-MIB", "cbfDefineObjectIndex"))
if mibBuilder.loadTexts: cbfDefineObjectEntry.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectEntry.setDescription("Information about one object for a particular file. An application uses cbfDefineObjectEntryStatus to create entries in this table in correspondence with entries in cbfDefineFileTable, which must be created first. Entries in this table may not be changed, created or deleted while the corresponding value of cbfDefineFileNow is 'running'.")
cbfDefineObjectIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cbfDefineObjectIndex.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectIndex.setDescription('An arbitrary integer to uniquely identify this entry. The numeric order of the entries controls the order of the objects in the file.')
cbfDefineObjectClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("object", 1), ("lexicalTable", 2), ("leastCpuTable", 3))).clone('leastCpuTable')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineObjectClass.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectClass.setDescription('The meaning of each object class is given below: object a single MIB object is retrieved. lexicalTable an entire table or partial table is retrieved in lexical order of rows. leastCpuTable an entire table is retrieved with lowest CPU utilization. Lexical ordering of rows may not be maintained and is dependent upon individual MIB implementation.')
cbfDefineObjectID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 3), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineObjectID.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectID.setDescription("The object identifier of a MIB object to be included in the file. If cbfDefineObjectClass is 'object' this must be a full OID, including all instance information. If cbfDefineObjectClass is 'lexicalTable' or 'leastCpuTable' this must be the OID of the table-defining SEQUENCE OF registration point.")
cbfDefineObjectEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineObjectEntryStatus.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectEntryStatus.setDescription('The control that allows creation, modification, and deletion of entries. For detailed rules see the DESCRIPTION for cbfDefineObjectEntry.')
cbfDefineObjectTableInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 5), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineObjectTableInstance.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectTableInstance.setDescription("If cbfDefineObjectClass is 'lexicalTable', then this object represents the starting instance in the cbfDefineObjectID table. The file created will have entries starting from the lexicographically next instance of the OID represented by this object. For Eg: ------- Let us assume we are polling ifTable and we have information till the second row(ifIndex.2). Now we may be interested in 10 rows lexically following the second row. So, we set cbfDefineObjectTableInstance as ifIndex.2 and cbfDefineObjectNumEntries as 10. We will get information for the next 10 rows or if there are less than 10 populated rows, we will receive information till the end of the table is reached. The default value for this object is zeroDotZero. If this object has the value of zeroDotZero and cbfDefineObjectNumEntries has value 0, then the whole table(represented by cbfDefineObjectID) is retrieved. If this object has the value of zeroDotZero, cbfDefineObjectNumEntries has value n (>0) and there are m(>0) entries in the table(represented by cbfDefineObjectID) then the first n entries in the table are retrieved if n < m. If n >= m, then the whole table is retrieved. When the value of cbfDefineObjectNumEntries is 0, it means all the entries in the table(represented by cbfDefineObjectID) which lexicographically follow cbfDefineObjectTableInstance are retrieved. This object is irrelevent if cbfDefineObjectClass is not 'lexicalTable'.")
cbfDefineObjectNumEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cbfDefineObjectNumEntries.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectNumEntries.setDescription("If cbfDefineObjectClass is 'lexicalTable', then this object represents the maximum number of entries which will be populated in the file starting from the lexicographically next instance of the OID represented by cbfDefineObjectTableInstance. This object is irrelevent if cbfDefineObjectClass is not 'lexicalTable'. Refer to the description of cbfDefineObjectTableInstance for examples and different scenarios relating to this object.")
cbfDefineObjectLastPolledInst = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 7), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfDefineObjectLastPolledInst.setStatus('current')
if mibBuilder.loadTexts: cbfDefineObjectLastPolledInst.setDescription('This object represents the last polled instance in the table. The value represented by this object will be relevent only if the corresponding cbfStatusFileState is emptied(3) for ephemeral files or ready(2) for volatile or permanent files. A value of zeroDotZero indicates an absence of last polled object. An NMS can use the value of this object and populate the cbfDefineObjectTableInstance to retrieve a contiguous set of rows in a table.')
cbfStatusMaxFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbfStatusMaxFiles.setStatus('current')
if mibBuilder.loadTexts: cbfStatusMaxFiles.setDescription('The maximum number of file statuses this system can hold in cbfStatusFileTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number deletes the oldest finished entries until the new limit is satisfied.')
cbfStatusFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfStatusFiles.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFiles.setDescription('The current number of file statuses in cbfStatusFileTable.')
cbfStatusHighFiles = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfStatusHighFiles.setStatus('current')
if mibBuilder.loadTexts: cbfStatusHighFiles.setDescription('The maximum value of cbfStatusFiles since system initialization.')
cbfStatusFilesBumped = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfStatusFilesBumped.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFilesBumped.setDescription('The number times the oldest entry was deleted due to exceeding cbfStatusMaxFiles.')
cbfStatusFileTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5), )
if mibBuilder.loadTexts: cbfStatusFileTable.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileTable.setDescription('A table of bulk file status.')
cbfStatusFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1), ).setIndexNames((0, "CISCO-BULK-FILE-MIB", "cbfDefineFileIndex"), (0, "CISCO-BULK-FILE-MIB", "cbfStatusFileIndex"))
if mibBuilder.loadTexts: cbfStatusFileEntry.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileEntry.setDescription("Status for a particular file. An entry exists in this table for each time cbfDefineFileNow has been set to 'create' and the corresponding entry here has not been explicitly deleted by the application or bumped to make room for a new entry. Deleting an entry with cbfStatusFileState 'running' aborts the file creation attempt. It is implementation and file-system specific whether deleting the entry also deletes the file.")
cbfStatusFileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cbfStatusFileIndex.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileIndex.setDescription('An arbitrary integer to uniquely identify this file. The numeric order of the entries implies the creation order of the files.')
cbfStatusFileState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("running", 1), ("ready", 2), ("emptied", 3), ("noSpace", 4), ("badName", 5), ("writeErr", 6), ("noMem", 7), ("buffErr", 8), ("aborted", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfStatusFileState.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileState.setDescription("The file state: running data is being written to the file ready the file is ready to be read emptied an ephemeral file was successfully consumed noSpace no data due to insufficient file space badName no data due to a name or path problem writeErr no data due to fatal file write error noMem no data due to insufficient dynamic memory buffErr implementation buffer too small aborted short terminated by operator command Only the 'ready' state implies that the file is available for transfer. The disposition of files after an error is implementation and file-syste specific.")
cbfStatusFileCompletionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 3), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbfStatusFileCompletionTime.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileCompletionTime.setDescription("The value of sysUpTime when the creation attempt completed. A value of 0 indicates not complete. For ephemeral files this is the time when cbfStatusFileState goes to 'emptied'. For others this is the time when the state leaves 'running'.")
cbfStatusFileEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 4), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbfStatusFileEntryStatus.setStatus('current')
if mibBuilder.loadTexts: cbfStatusFileEntryStatus.setDescription("The control that allows deletion of entries. For detailed rules see the DESCRIPTION for cbfStatusFileEntry. This object may not be set to any value other than 'destroy'.")
ciscoBulkFileMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 2))
ciscoBulkFileMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 2, 0))
cbfDefineFileCompletion = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 81, 2, 0, 1)).setObjects(("CISCO-BULK-FILE-MIB", "cbfStatusFileState"), ("CISCO-BULK-FILE-MIB", "cbfStatusFileCompletionTime"))
if mibBuilder.loadTexts: cbfDefineFileCompletion.setStatus('current')
if mibBuilder.loadTexts: cbfDefineFileCompletion.setDescription('A cbfDefineFileCompletion notification is sent on the following conditions : - completion of a file consumption operation in case of ephemeral files. - completion of file creation operation in case of volatile or permanent files. - any error during file creation.')
ciscoBulkFileMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3))
ciscoBulkFileMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1))
ciscoBulkFileMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2))
ciscoBulkFileMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1, 1)).setObjects(("CISCO-BULK-FILE-MIB", "ciscoBulkFileDefineGroup"), ("CISCO-BULK-FILE-MIB", "ciscoBulkFileStatusGroup"), ("CISCO-BULK-FILE-MIB", "ciscoBulkFileNotiGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileMIBCompliance = ciscoBulkFileMIBCompliance.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoBulkFileMIBCompliance.setDescription('The compliance statement for entities which implement the Cisco Bulk File MIB. Implementation of this MIB is based on individual product needs.')
ciscoBulkFileMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1, 2)).setObjects(("CISCO-BULK-FILE-MIB", "ciscoBulkFileDefineGroupRev1"), ("CISCO-BULK-FILE-MIB", "ciscoBulkFileStatusGroup"), ("CISCO-BULK-FILE-MIB", "ciscoBulkFileNotiGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileMIBComplianceRev1 = ciscoBulkFileMIBComplianceRev1.setStatus('current')
if mibBuilder.loadTexts: ciscoBulkFileMIBComplianceRev1.setDescription('The compliance statement for entities which implement the Cisco Bulk File MIB. Implementation of this MIB is based on individual product needs.')
ciscoBulkFileDefineGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 1)).setObjects(("CISCO-BULK-FILE-MIB", "cbfDefineMaxFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineHighFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineFilesRefused"), ("CISCO-BULK-FILE-MIB", "cbfDefineMaxObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineHighObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectsRefused"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileName"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileStorage"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileFormat"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileNow"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileEntryStatus"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileNotifyOnCompletion"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectClass"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectID"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileDefineGroup = ciscoBulkFileDefineGroup.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoBulkFileDefineGroup.setDescription('Bulk file definition management.')
ciscoBulkFileStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 2)).setObjects(("CISCO-BULK-FILE-MIB", "cbfStatusMaxFiles"), ("CISCO-BULK-FILE-MIB", "cbfStatusFiles"), ("CISCO-BULK-FILE-MIB", "cbfStatusHighFiles"), ("CISCO-BULK-FILE-MIB", "cbfStatusFilesBumped"), ("CISCO-BULK-FILE-MIB", "cbfStatusFileState"), ("CISCO-BULK-FILE-MIB", "cbfStatusFileCompletionTime"), ("CISCO-BULK-FILE-MIB", "cbfStatusFileEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileStatusGroup = ciscoBulkFileStatusGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoBulkFileStatusGroup.setDescription('Bulk file status management.')
ciscoBulkFileNotiGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 3)).setObjects(("CISCO-BULK-FILE-MIB", "cbfDefineFileCompletion"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileNotiGroup = ciscoBulkFileNotiGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoBulkFileNotiGroup.setDescription('A collection of notification objects for supporting Bulk file notification management.')
ciscoBulkFileDefineGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 4)).setObjects(("CISCO-BULK-FILE-MIB", "cbfDefineMaxFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineHighFiles"), ("CISCO-BULK-FILE-MIB", "cbfDefineFilesRefused"), ("CISCO-BULK-FILE-MIB", "cbfDefineMaxObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineHighObjects"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectsRefused"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileName"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileStorage"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileFormat"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileNow"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileEntryStatus"), ("CISCO-BULK-FILE-MIB", "cbfDefineFileNotifyOnCompletion"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectClass"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectID"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectEntryStatus"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectTableInstance"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectNumEntries"), ("CISCO-BULK-FILE-MIB", "cbfDefineObjectLastPolledInst"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoBulkFileDefineGroupRev1 = ciscoBulkFileDefineGroupRev1.setStatus('current')
if mibBuilder.loadTexts: ciscoBulkFileDefineGroupRev1.setDescription('Bulk file definition management.')
mibBuilder.exportSymbols("CISCO-BULK-FILE-MIB", cbfDefineHighFiles=cbfDefineHighFiles, ciscoBulkFileMIBNotificationPrefix=ciscoBulkFileMIBNotificationPrefix, cbfDefineObjectIndex=cbfDefineObjectIndex, cbfDefineFiles=cbfDefineFiles, ciscoBulkFileMIBGroups=ciscoBulkFileMIBGroups, cbfDefineHighObjects=cbfDefineHighObjects, cbfDefineObjectEntryStatus=cbfDefineObjectEntryStatus, cbfDefineObjectsRefused=cbfDefineObjectsRefused, cbfDefineFileTable=cbfDefineFileTable, cbfStatusFileEntryStatus=cbfStatusFileEntryStatus, ciscoBulkFileStatusGroup=ciscoBulkFileStatusGroup, cbfStatusMaxFiles=cbfStatusMaxFiles, cbfDefineObjectEntry=cbfDefineObjectEntry, cbfStatusFileEntry=cbfStatusFileEntry, ciscoBulkFileDefineGroup=ciscoBulkFileDefineGroup, cbfDefineObjects=cbfDefineObjects, cbfDefineFileCompletion=cbfDefineFileCompletion, cbfDefineObjectNumEntries=cbfDefineObjectNumEntries, ciscoBulkFileNotiGroup=ciscoBulkFileNotiGroup, cbfDefineFileEntryStatus=cbfDefineFileEntryStatus, ciscoBulkFileMIB=ciscoBulkFileMIB, PYSNMP_MODULE_ID=ciscoBulkFileMIB, cbfDefineFileIndex=cbfDefineFileIndex, ciscoBulkFileMIBCompliance=ciscoBulkFileMIBCompliance, ciscoBulkFileMIBComplianceRev1=ciscoBulkFileMIBComplianceRev1, cbfDefineObjectTableInstance=cbfDefineObjectTableInstance, cbfDefineObjectID=cbfDefineObjectID, cbfStatusFileTable=cbfStatusFileTable, cbfDefine=cbfDefine, ciscoBulkFileMIBCompliances=ciscoBulkFileMIBCompliances, cbfStatus=cbfStatus, cbfStatusFiles=cbfStatusFiles, cbfStatusFileCompletionTime=cbfStatusFileCompletionTime, cbfDefineFilesRefused=cbfDefineFilesRefused, cbfDefineMaxObjects=cbfDefineMaxObjects, cbfDefineFileNotifyOnCompletion=cbfDefineFileNotifyOnCompletion, cbfDefineObjectTable=cbfDefineObjectTable, cbfDefineFileEntry=cbfDefineFileEntry, ciscoBulkFileDefineGroupRev1=ciscoBulkFileDefineGroupRev1, ciscoBulkFileMIBNotifications=ciscoBulkFileMIBNotifications, cbfDefineFileName=cbfDefineFileName, ciscoBulkFileMIBConformance=ciscoBulkFileMIBConformance, cbfDefineFileNow=cbfDefineFileNow, cbfStatusFileIndex=cbfStatusFileIndex, cbfDefineMaxFiles=cbfDefineMaxFiles, cbfDefineFileFormat=cbfDefineFileFormat, cbfStatusHighFiles=cbfStatusHighFiles, cbfDefineObjectClass=cbfDefineObjectClass, cbfDefineFileStorage=cbfDefineFileStorage, cbfStatusFileState=cbfStatusFileState, cbfDefineObjectLastPolledInst=cbfDefineObjectLastPolledInst, cbfStatusFilesBumped=cbfStatusFilesBumped, ciscoBulkFileMIBObjects=ciscoBulkFileMIBObjects)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(counter32, module_identity, gauge32, bits, object_identity, iso, time_ticks, counter64, zero_dot_zero, unsigned32, ip_address, integer32, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ModuleIdentity', 'Gauge32', 'Bits', 'ObjectIdentity', 'iso', 'TimeTicks', 'Counter64', 'zeroDotZero', 'Unsigned32', 'IpAddress', 'Integer32', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(time_stamp, truth_value, textual_convention, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'TruthValue', 'TextualConvention', 'DisplayString', 'RowStatus')
cisco_bulk_file_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 81))
ciscoBulkFileMIB.setRevisions(('2002-06-10 00:00', '2002-05-15 00:00', '2001-08-22 00:00', '2001-08-01 00:00', '2001-06-26 17:00', '1998-10-29 17:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoBulkFileMIB.setRevisionsDescriptions(("Added enum 'forcedCreate' for object 'cbfDefineFileNow' for forced creation of configuration files.", 'Added default values for all read-write objects in table to simplify creation of table rows.', 'Modified description of objects cbfDefineObjectTableInstance and cbfDefineObjectLastPolledInst in cbfDefineObjectTable to accept/represent Full OIDs instead of partial OIDs.', 'Enhanced the MIB for selective row transfer from MIBS. Added a notification to indicate bulk file creation or error(during creation of the file). Added object cbfDefineFileNotifyOnCompletion to cbfDefineFileTable. Added the objects cbfDefineObjectTableInstance, cbfDefineObjectLastPolledInst and cbfDefineObjectNumEntries to cbfDefineObjectTable. Added cbfDefineFileCompletion notification.', 'Added the following enumerations variantBERWithCksum(4) and variantBinWithCksum(5) in cbfDefineFileFormat', 'Initial version of this MIB module.'))
if mibBuilder.loadTexts:
ciscoBulkFileMIB.setLastUpdated('200206100000Z')
if mibBuilder.loadTexts:
ciscoBulkFileMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoBulkFileMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-snmp@cisco.com')
if mibBuilder.loadTexts:
ciscoBulkFileMIB.setDescription('The MIB module for creating and deleting bulk files of SNMP data for file transfer.')
cisco_bulk_file_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1))
cbf_define = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1))
cbf_status = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2))
cbf_define_max_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbfDefineMaxFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineMaxFiles.setDescription('The maximum number of file definitions this system can hold in cbfDefineFileTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number does not disturb existing entries.')
cbf_define_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFiles.setDescription('The current number of file definitions in cbfDefineFileTable.')
cbf_define_high_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 3), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineHighFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineHighFiles.setDescription('The maximum value of cbfDefineFiles since system initialization.')
cbf_define_files_refused = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineFilesRefused.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFilesRefused.setDescription('The number of attempts to create a file definition that failed due to exceeding cbfDefineMaxFiles.')
cbf_define_max_objects = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbfDefineMaxObjects.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineMaxObjects.setDescription('The maximum total number of object selections to go with file definitions this system, that is, the total number of objects this system can hold in cbfDefineObjectTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number does not disturb existing entries.')
cbf_define_objects = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 6), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineObjects.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjects.setDescription('The current number of object selections in cbfDefineObjectTable.')
cbf_define_high_objects = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 7), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineHighObjects.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineHighObjects.setDescription('The maximum value of cbfDefineObjects since system initialization.')
cbf_define_objects_refused = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineObjectsRefused.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectsRefused.setDescription('The number of attempts to create an object selection that failed due to exceeding cbfDefineMaxObjects.')
cbf_define_file_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9))
if mibBuilder.loadTexts:
cbfDefineFileTable.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileTable.setDescription('A table of bulk file definition and creation controls.')
cbf_define_file_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1)).setIndexNames((0, 'CISCO-BULK-FILE-MIB', 'cbfDefineFileIndex'))
if mibBuilder.loadTexts:
cbfDefineFileEntry.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileEntry.setDescription("Information for creation of a bulk file. To creat a bulk file an application creates an entry in this table and corresponding entries in cbfDefineObjectTable. When the entry in this table and the corresponding entries in cbfDefineObjectTable are 'active' the appliction uses cbfDefineFileNow to create the file and a corresponding entry in cbfStatusFileTable. Deleting an entry in cbfDefineFileTable deletes all corresponding entries in cbfDefineObjectTable and cbfStatusFileTable. An entry may not be modified or deleted while its cbfDefineFileNow has the value 'running'.")
cbf_define_file_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cbfDefineFileIndex.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileIndex.setDescription('An arbitrary integer to uniquely identify this entry. To create an entry a management application should pick a random number.')
cbf_define_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileName.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileName.setDescription('The file name which is to be created. Explicit device or path choices in the value of this object override cbfDefineFileStorage.')
cbf_define_file_storage = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ephemeral', 1), ('volatile', 2), ('permanent', 3))).clone('ephemeral')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileStorage.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileStorage.setDescription('The type of file storage to use: ephemeral data exists in small amounts until read volatile data exists in volatile memory permanent data survives reboot An ephemeral file is suitable to be read only one time. Note that this value is taken as advisory and may be overridden by explicit device or path choices in cbfDefineFile. A given system may support any or all of these.')
cbf_define_file_format = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('standardBER', 1), ('bulkBinary', 2), ('bulkASCII', 3), ('variantBERWithCksum', 4), ('variantBinWithCksum', 5))).clone('bulkBinary')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileFormat.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileFormat.setDescription('The format of the data in the file: StandardBER standard SNMP ASN.1 BER bulkBinary a binary format specified with this MIB bulkASCII a human-readable form of bulkBinary variantBERWithCksum ASN.1 BER encoding with checksum variantBinWithCksum a binary format with checksum A given system may support any or all of these.')
cbf_define_file_now = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notActive', 1), ('ready', 2), ('create', 3), ('running', 4), ('forcedCreate', 5))).clone('notActive')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileNow.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileNow.setDescription("The control to cause file creation. The only values that can be set are 'create' and 'forcedCreate'. These can be set only when the value is 'ready'. Setting it to 'create' begins a file creation and creates a corresponding entry in cbfStatusFileTable. The system may choose to use an already existing copy of the file instead of creating a new one. This may happen if there has been no configuration change on the system and a request to recreate the file is received. Setting this object to 'forcedCreate' forces the system to create a new copy of the file. The value is 'notActve' as long as cbfDefineFileEntryStatus or any corresponding cbfDefineObjectEntryStatus is not active. When cbfDefineFileEntryStatus becomes active and all corresponding cbfDefineObjectEntryStatuses are active this object automatically goes to 'ready'.")
cbf_define_file_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 6), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileEntryStatus.setDescription('The control that allows creation, modification, and deletion of entries. For detailed rules see the DESCRIPTION for cbfDefineFileEntry.')
cbf_define_file_notify_on_completion = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 9, 1, 7), truth_value().clone('false')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineFileNotifyOnCompletion.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileNotifyOnCompletion.setDescription('This controls the cbfDefineFileCompletion notification. If true, cbfDefineFileCompletion notification will be generated. It is the responsibility of the management entity to ensure that the SNMP administrative model is configured in such a way as to allow the notification to be delivered.')
cbf_define_object_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10))
if mibBuilder.loadTexts:
cbfDefineObjectTable.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectTable.setDescription('A table of objects to go in bulk files.')
cbf_define_object_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1)).setIndexNames((0, 'CISCO-BULK-FILE-MIB', 'cbfDefineFileIndex'), (0, 'CISCO-BULK-FILE-MIB', 'cbfDefineObjectIndex'))
if mibBuilder.loadTexts:
cbfDefineObjectEntry.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectEntry.setDescription("Information about one object for a particular file. An application uses cbfDefineObjectEntryStatus to create entries in this table in correspondence with entries in cbfDefineFileTable, which must be created first. Entries in this table may not be changed, created or deleted while the corresponding value of cbfDefineFileNow is 'running'.")
cbf_define_object_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cbfDefineObjectIndex.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectIndex.setDescription('An arbitrary integer to uniquely identify this entry. The numeric order of the entries controls the order of the objects in the file.')
cbf_define_object_class = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('object', 1), ('lexicalTable', 2), ('leastCpuTable', 3))).clone('leastCpuTable')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineObjectClass.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectClass.setDescription('The meaning of each object class is given below: object a single MIB object is retrieved. lexicalTable an entire table or partial table is retrieved in lexical order of rows. leastCpuTable an entire table is retrieved with lowest CPU utilization. Lexical ordering of rows may not be maintained and is dependent upon individual MIB implementation.')
cbf_define_object_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 3), object_identifier().clone((0, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineObjectID.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectID.setDescription("The object identifier of a MIB object to be included in the file. If cbfDefineObjectClass is 'object' this must be a full OID, including all instance information. If cbfDefineObjectClass is 'lexicalTable' or 'leastCpuTable' this must be the OID of the table-defining SEQUENCE OF registration point.")
cbf_define_object_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineObjectEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectEntryStatus.setDescription('The control that allows creation, modification, and deletion of entries. For detailed rules see the DESCRIPTION for cbfDefineObjectEntry.')
cbf_define_object_table_instance = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 5), object_identifier().clone((0, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineObjectTableInstance.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectTableInstance.setDescription("If cbfDefineObjectClass is 'lexicalTable', then this object represents the starting instance in the cbfDefineObjectID table. The file created will have entries starting from the lexicographically next instance of the OID represented by this object. For Eg: ------- Let us assume we are polling ifTable and we have information till the second row(ifIndex.2). Now we may be interested in 10 rows lexically following the second row. So, we set cbfDefineObjectTableInstance as ifIndex.2 and cbfDefineObjectNumEntries as 10. We will get information for the next 10 rows or if there are less than 10 populated rows, we will receive information till the end of the table is reached. The default value for this object is zeroDotZero. If this object has the value of zeroDotZero and cbfDefineObjectNumEntries has value 0, then the whole table(represented by cbfDefineObjectID) is retrieved. If this object has the value of zeroDotZero, cbfDefineObjectNumEntries has value n (>0) and there are m(>0) entries in the table(represented by cbfDefineObjectID) then the first n entries in the table are retrieved if n < m. If n >= m, then the whole table is retrieved. When the value of cbfDefineObjectNumEntries is 0, it means all the entries in the table(represented by cbfDefineObjectID) which lexicographically follow cbfDefineObjectTableInstance are retrieved. This object is irrelevent if cbfDefineObjectClass is not 'lexicalTable'.")
cbf_define_object_num_entries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cbfDefineObjectNumEntries.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectNumEntries.setDescription("If cbfDefineObjectClass is 'lexicalTable', then this object represents the maximum number of entries which will be populated in the file starting from the lexicographically next instance of the OID represented by cbfDefineObjectTableInstance. This object is irrelevent if cbfDefineObjectClass is not 'lexicalTable'. Refer to the description of cbfDefineObjectTableInstance for examples and different scenarios relating to this object.")
cbf_define_object_last_polled_inst = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 1, 10, 1, 7), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfDefineObjectLastPolledInst.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineObjectLastPolledInst.setDescription('This object represents the last polled instance in the table. The value represented by this object will be relevent only if the corresponding cbfStatusFileState is emptied(3) for ephemeral files or ready(2) for volatile or permanent files. A value of zeroDotZero indicates an absence of last polled object. An NMS can use the value of this object and populate the cbfDefineObjectTableInstance to retrieve a contiguous set of rows in a table.')
cbf_status_max_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbfStatusMaxFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusMaxFiles.setDescription('The maximum number of file statuses this system can hold in cbfStatusFileTable. A value of 0 indicates no configured limit. This object may be read-only on some systems. Changing this number deletes the oldest finished entries until the new limit is satisfied.')
cbf_status_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfStatusFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFiles.setDescription('The current number of file statuses in cbfStatusFileTable.')
cbf_status_high_files = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 3), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfStatusHighFiles.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusHighFiles.setDescription('The maximum value of cbfStatusFiles since system initialization.')
cbf_status_files_bumped = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfStatusFilesBumped.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFilesBumped.setDescription('The number times the oldest entry was deleted due to exceeding cbfStatusMaxFiles.')
cbf_status_file_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5))
if mibBuilder.loadTexts:
cbfStatusFileTable.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileTable.setDescription('A table of bulk file status.')
cbf_status_file_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1)).setIndexNames((0, 'CISCO-BULK-FILE-MIB', 'cbfDefineFileIndex'), (0, 'CISCO-BULK-FILE-MIB', 'cbfStatusFileIndex'))
if mibBuilder.loadTexts:
cbfStatusFileEntry.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileEntry.setDescription("Status for a particular file. An entry exists in this table for each time cbfDefineFileNow has been set to 'create' and the corresponding entry here has not been explicitly deleted by the application or bumped to make room for a new entry. Deleting an entry with cbfStatusFileState 'running' aborts the file creation attempt. It is implementation and file-system specific whether deleting the entry also deletes the file.")
cbf_status_file_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cbfStatusFileIndex.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileIndex.setDescription('An arbitrary integer to uniquely identify this file. The numeric order of the entries implies the creation order of the files.')
cbf_status_file_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('running', 1), ('ready', 2), ('emptied', 3), ('noSpace', 4), ('badName', 5), ('writeErr', 6), ('noMem', 7), ('buffErr', 8), ('aborted', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfStatusFileState.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileState.setDescription("The file state: running data is being written to the file ready the file is ready to be read emptied an ephemeral file was successfully consumed noSpace no data due to insufficient file space badName no data due to a name or path problem writeErr no data due to fatal file write error noMem no data due to insufficient dynamic memory buffErr implementation buffer too small aborted short terminated by operator command Only the 'ready' state implies that the file is available for transfer. The disposition of files after an error is implementation and file-syste specific.")
cbf_status_file_completion_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 3), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbfStatusFileCompletionTime.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileCompletionTime.setDescription("The value of sysUpTime when the creation attempt completed. A value of 0 indicates not complete. For ephemeral files this is the time when cbfStatusFileState goes to 'emptied'. For others this is the time when the state leaves 'running'.")
cbf_status_file_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 81, 1, 2, 5, 1, 4), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbfStatusFileEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
cbfStatusFileEntryStatus.setDescription("The control that allows deletion of entries. For detailed rules see the DESCRIPTION for cbfStatusFileEntry. This object may not be set to any value other than 'destroy'.")
cisco_bulk_file_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 2))
cisco_bulk_file_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 2, 0))
cbf_define_file_completion = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 81, 2, 0, 1)).setObjects(('CISCO-BULK-FILE-MIB', 'cbfStatusFileState'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFileCompletionTime'))
if mibBuilder.loadTexts:
cbfDefineFileCompletion.setStatus('current')
if mibBuilder.loadTexts:
cbfDefineFileCompletion.setDescription('A cbfDefineFileCompletion notification is sent on the following conditions : - completion of a file consumption operation in case of ephemeral files. - completion of file creation operation in case of volatile or permanent files. - any error during file creation.')
cisco_bulk_file_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3))
cisco_bulk_file_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1))
cisco_bulk_file_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2))
cisco_bulk_file_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1, 1)).setObjects(('CISCO-BULK-FILE-MIB', 'ciscoBulkFileDefineGroup'), ('CISCO-BULK-FILE-MIB', 'ciscoBulkFileStatusGroup'), ('CISCO-BULK-FILE-MIB', 'ciscoBulkFileNotiGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_mib_compliance = ciscoBulkFileMIBCompliance.setStatus('deprecated')
if mibBuilder.loadTexts:
ciscoBulkFileMIBCompliance.setDescription('The compliance statement for entities which implement the Cisco Bulk File MIB. Implementation of this MIB is based on individual product needs.')
cisco_bulk_file_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 1, 2)).setObjects(('CISCO-BULK-FILE-MIB', 'ciscoBulkFileDefineGroupRev1'), ('CISCO-BULK-FILE-MIB', 'ciscoBulkFileStatusGroup'), ('CISCO-BULK-FILE-MIB', 'ciscoBulkFileNotiGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_mib_compliance_rev1 = ciscoBulkFileMIBComplianceRev1.setStatus('current')
if mibBuilder.loadTexts:
ciscoBulkFileMIBComplianceRev1.setDescription('The compliance statement for entities which implement the Cisco Bulk File MIB. Implementation of this MIB is based on individual product needs.')
cisco_bulk_file_define_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 1)).setObjects(('CISCO-BULK-FILE-MIB', 'cbfDefineMaxFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineHighFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFilesRefused'), ('CISCO-BULK-FILE-MIB', 'cbfDefineMaxObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineHighObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectsRefused'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileName'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileStorage'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileFormat'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileNow'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileEntryStatus'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileNotifyOnCompletion'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectClass'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectID'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_define_group = ciscoBulkFileDefineGroup.setStatus('deprecated')
if mibBuilder.loadTexts:
ciscoBulkFileDefineGroup.setDescription('Bulk file definition management.')
cisco_bulk_file_status_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 2)).setObjects(('CISCO-BULK-FILE-MIB', 'cbfStatusMaxFiles'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFiles'), ('CISCO-BULK-FILE-MIB', 'cbfStatusHighFiles'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFilesBumped'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFileState'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFileCompletionTime'), ('CISCO-BULK-FILE-MIB', 'cbfStatusFileEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_status_group = ciscoBulkFileStatusGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoBulkFileStatusGroup.setDescription('Bulk file status management.')
cisco_bulk_file_noti_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 3)).setObjects(('CISCO-BULK-FILE-MIB', 'cbfDefineFileCompletion'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_noti_group = ciscoBulkFileNotiGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoBulkFileNotiGroup.setDescription('A collection of notification objects for supporting Bulk file notification management.')
cisco_bulk_file_define_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 81, 3, 2, 4)).setObjects(('CISCO-BULK-FILE-MIB', 'cbfDefineMaxFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineHighFiles'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFilesRefused'), ('CISCO-BULK-FILE-MIB', 'cbfDefineMaxObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineHighObjects'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectsRefused'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileName'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileStorage'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileFormat'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileNow'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileEntryStatus'), ('CISCO-BULK-FILE-MIB', 'cbfDefineFileNotifyOnCompletion'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectClass'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectID'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectEntryStatus'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectTableInstance'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectNumEntries'), ('CISCO-BULK-FILE-MIB', 'cbfDefineObjectLastPolledInst'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_bulk_file_define_group_rev1 = ciscoBulkFileDefineGroupRev1.setStatus('current')
if mibBuilder.loadTexts:
ciscoBulkFileDefineGroupRev1.setDescription('Bulk file definition management.')
mibBuilder.exportSymbols('CISCO-BULK-FILE-MIB', cbfDefineHighFiles=cbfDefineHighFiles, ciscoBulkFileMIBNotificationPrefix=ciscoBulkFileMIBNotificationPrefix, cbfDefineObjectIndex=cbfDefineObjectIndex, cbfDefineFiles=cbfDefineFiles, ciscoBulkFileMIBGroups=ciscoBulkFileMIBGroups, cbfDefineHighObjects=cbfDefineHighObjects, cbfDefineObjectEntryStatus=cbfDefineObjectEntryStatus, cbfDefineObjectsRefused=cbfDefineObjectsRefused, cbfDefineFileTable=cbfDefineFileTable, cbfStatusFileEntryStatus=cbfStatusFileEntryStatus, ciscoBulkFileStatusGroup=ciscoBulkFileStatusGroup, cbfStatusMaxFiles=cbfStatusMaxFiles, cbfDefineObjectEntry=cbfDefineObjectEntry, cbfStatusFileEntry=cbfStatusFileEntry, ciscoBulkFileDefineGroup=ciscoBulkFileDefineGroup, cbfDefineObjects=cbfDefineObjects, cbfDefineFileCompletion=cbfDefineFileCompletion, cbfDefineObjectNumEntries=cbfDefineObjectNumEntries, ciscoBulkFileNotiGroup=ciscoBulkFileNotiGroup, cbfDefineFileEntryStatus=cbfDefineFileEntryStatus, ciscoBulkFileMIB=ciscoBulkFileMIB, PYSNMP_MODULE_ID=ciscoBulkFileMIB, cbfDefineFileIndex=cbfDefineFileIndex, ciscoBulkFileMIBCompliance=ciscoBulkFileMIBCompliance, ciscoBulkFileMIBComplianceRev1=ciscoBulkFileMIBComplianceRev1, cbfDefineObjectTableInstance=cbfDefineObjectTableInstance, cbfDefineObjectID=cbfDefineObjectID, cbfStatusFileTable=cbfStatusFileTable, cbfDefine=cbfDefine, ciscoBulkFileMIBCompliances=ciscoBulkFileMIBCompliances, cbfStatus=cbfStatus, cbfStatusFiles=cbfStatusFiles, cbfStatusFileCompletionTime=cbfStatusFileCompletionTime, cbfDefineFilesRefused=cbfDefineFilesRefused, cbfDefineMaxObjects=cbfDefineMaxObjects, cbfDefineFileNotifyOnCompletion=cbfDefineFileNotifyOnCompletion, cbfDefineObjectTable=cbfDefineObjectTable, cbfDefineFileEntry=cbfDefineFileEntry, ciscoBulkFileDefineGroupRev1=ciscoBulkFileDefineGroupRev1, ciscoBulkFileMIBNotifications=ciscoBulkFileMIBNotifications, cbfDefineFileName=cbfDefineFileName, ciscoBulkFileMIBConformance=ciscoBulkFileMIBConformance, cbfDefineFileNow=cbfDefineFileNow, cbfStatusFileIndex=cbfStatusFileIndex, cbfDefineMaxFiles=cbfDefineMaxFiles, cbfDefineFileFormat=cbfDefineFileFormat, cbfStatusHighFiles=cbfStatusHighFiles, cbfDefineObjectClass=cbfDefineObjectClass, cbfDefineFileStorage=cbfDefineFileStorage, cbfStatusFileState=cbfStatusFileState, cbfDefineObjectLastPolledInst=cbfDefineObjectLastPolledInst, cbfStatusFilesBumped=cbfStatusFilesBumped, ciscoBulkFileMIBObjects=ciscoBulkFileMIBObjects) |
# -*- coding: utf-8 -*-
def doinput(self):
dtuid = ('log', 9)
rhouid = ('log', 15)
parentuid = ('well', 0)
dtlog = self._OM.get(dtuid)
rholog = self._OM.get(rhouid)
dtdata = dtlog.data
rhodata = rholog.data
self.input = dict(dtdata=dtdata, rhodata=rhodata, parentuid=parentuid)
return True
def dojob(self, dtdata, rhodata, **kwargs):
ipdata = rhodata / dtdata * 3.048E8
output = dict(ipdata=ipdata)
return output
def dooutput(self):
parentuid = self.input['parentuid']
ipdata = self.output['ipdata']
ip = self._OM.new('log', ipdata, name="IP", unit="")
self._OM.add(ip, parentuid=parentuid)
return True
| def doinput(self):
dtuid = ('log', 9)
rhouid = ('log', 15)
parentuid = ('well', 0)
dtlog = self._OM.get(dtuid)
rholog = self._OM.get(rhouid)
dtdata = dtlog.data
rhodata = rholog.data
self.input = dict(dtdata=dtdata, rhodata=rhodata, parentuid=parentuid)
return True
def dojob(self, dtdata, rhodata, **kwargs):
ipdata = rhodata / dtdata * 304800000.0
output = dict(ipdata=ipdata)
return output
def dooutput(self):
parentuid = self.input['parentuid']
ipdata = self.output['ipdata']
ip = self._OM.new('log', ipdata, name='IP', unit='')
self._OM.add(ip, parentuid=parentuid)
return True |
MADHUSUDANA_MASA = 0
TRIVIKRAMA_MASA = 1
VAMANA_MASA = 2
SRIDHARA_MASA = 3
HRSIKESA_MASA = 4
PADMANABHA_MASA = 5
DAMODARA_MASA = 6
KESAVA_MASA = 7
NARAYANA_MASA = 8
MADHAVA_MASA = 9
GOVINDA_MASA = 10
VISNU_MASA = 11
ADHIKA_MASA = 12
| madhusudana_masa = 0
trivikrama_masa = 1
vamana_masa = 2
sridhara_masa = 3
hrsikesa_masa = 4
padmanabha_masa = 5
damodara_masa = 6
kesava_masa = 7
narayana_masa = 8
madhava_masa = 9
govinda_masa = 10
visnu_masa = 11
adhika_masa = 12 |
# adding two matrices using nested loop
"""
x = ['12', '72', '43']['34', '54', '34']['32', '23', '24']
y = ['5', '3', '5']['3', '2', '1']['5', '5', '2']
result = x + y
print(result)
"""
x = [['1', '2', '3'],
['4', '5', '6'],
['7', '8', '9']]
y = [['1', '2', '3'],
['4', '5', '6'],
['7', '8', '9']]
result = [['0', '0', '0'],
['0', '0', '0'],
['0', '0', '0']]
#Iterate through rows
for i in range(len(x)):
# iterate through columns
for j in range(len(x[0])):
result[i][j] = x[i][j] + y[i][j]
for r in result:
print(r)
| """
x = ['12', '72', '43']['34', '54', '34']['32', '23', '24']
y = ['5', '3', '5']['3', '2', '1']['5', '5', '2']
result = x + y
print(result)
"""
x = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]
y = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]
result = [['0', '0', '0'], ['0', '0', '0'], ['0', '0', '0']]
for i in range(len(x)):
for j in range(len(x[0])):
result[i][j] = x[i][j] + y[i][j]
for r in result:
print(r) |
# Define an initial dictionary
my_dict = {
'one': 1,
'two': 2,
'three': 3,
}
# Add a new number to the end of the dictionary
my_dict['four'] = 4
# Print out the dictionary
print(my_dict)
# Print the value 'one' of the dictionary
print(my_dict['one'])
# Change a value on the dictionary
my_dict['one'] = 5
# Print out the altered dictionary
print(my_dict)
| my_dict = {'one': 1, 'two': 2, 'three': 3}
my_dict['four'] = 4
print(my_dict)
print(my_dict['one'])
my_dict['one'] = 5
print(my_dict) |
'''
Created on Jan 1, 2019
@author: Winterberger
'''
#Write your function here
def middle_element(lst):
#print(len(lst))
#print(len(lst) % 2)
if 0 == len(lst) % 2:
ind1 = int(len(lst)/2-1)
ind2 = int(len(lst)/2)
item1 = lst[int(len(lst)/2-1)]
item2 = lst[int(len(lst)/2)]
print(ind1)
print(ind2)
print(item1)
print(item2)
return (item1 + item2) / 2
else:
#return lst[(len(lst)+1)/2 + 1]
return True
return False
#Uncomment the line below when your function is done
print(middle_element([5, 2, -10, -4, 4, 5])) | """
Created on Jan 1, 2019
@author: Winterberger
"""
def middle_element(lst):
if 0 == len(lst) % 2:
ind1 = int(len(lst) / 2 - 1)
ind2 = int(len(lst) / 2)
item1 = lst[int(len(lst) / 2 - 1)]
item2 = lst[int(len(lst) / 2)]
print(ind1)
print(ind2)
print(item1)
print(item2)
return (item1 + item2) / 2
else:
return True
return False
print(middle_element([5, 2, -10, -4, 4, 5])) |
class MissingValue:
def __init__(self, required_value: str, headers: list[str]):
super().__init__()
self.__current_row = 0
self.__required_value = required_value
self.__headers = headers
self.__failures = {}
if required_value in headers:
self.__required_value_index = headers.index(required_value)
else:
self.__required_value_index = None
@property
def passed(self) -> bool:
return len(self.__failures) == 0
def get_failure_message(self, max_examples: int = -1) -> str:
message = f"There are {len(self.__failures)} rows that are missing a {self.__required_value}:\n\n" \
f"\tHeaders: {self.__headers}:"
count = 0
for row_number, row in self.__failures.items():
if (max_examples >= 0) and (count >= max_examples):
message += f"\n\t[Truncated to {max_examples} examples]"
return message
else:
message += f"\n\tRow {row_number}: {row}"
count += 1
return message
def test(self, row: list[str]):
self.__current_row += 1
if self.__required_value_index is not None:
if self.__required_value_index >= len(row):
self.__failures[self.__current_row] = row
else:
value = row[self.__required_value_index]
if not value or value.isspace():
self.__failures[self.__current_row] = row
| class Missingvalue:
def __init__(self, required_value: str, headers: list[str]):
super().__init__()
self.__current_row = 0
self.__required_value = required_value
self.__headers = headers
self.__failures = {}
if required_value in headers:
self.__required_value_index = headers.index(required_value)
else:
self.__required_value_index = None
@property
def passed(self) -> bool:
return len(self.__failures) == 0
def get_failure_message(self, max_examples: int=-1) -> str:
message = f'There are {len(self.__failures)} rows that are missing a {self.__required_value}:\n\n\tHeaders: {self.__headers}:'
count = 0
for (row_number, row) in self.__failures.items():
if max_examples >= 0 and count >= max_examples:
message += f'\n\t[Truncated to {max_examples} examples]'
return message
else:
message += f'\n\tRow {row_number}: {row}'
count += 1
return message
def test(self, row: list[str]):
self.__current_row += 1
if self.__required_value_index is not None:
if self.__required_value_index >= len(row):
self.__failures[self.__current_row] = row
else:
value = row[self.__required_value_index]
if not value or value.isspace():
self.__failures[self.__current_row] = row |
"""
Write a program to take the list of names below and print
"Hello, {first} {last}"
for each item in the list
"""
names = ["Jobs, Steve", "Gates, Bill", "Musk, Elon", "Hopper, Grace"]
#Create a for loop to get each full name
for full_name in names:
#Method for finding the separator
sep = full_name.find(",")
#get first
first = full_name[sep + 2:]
#get last
last = full_name[0:sep]
#print results
print("Hello", first, last)
| """
Write a program to take the list of names below and print
"Hello, {first} {last}"
for each item in the list
"""
names = ['Jobs, Steve', 'Gates, Bill', 'Musk, Elon', 'Hopper, Grace']
for full_name in names:
sep = full_name.find(',')
first = full_name[sep + 2:]
last = full_name[0:sep]
print('Hello', first, last) |
class Ability:
cost = None
exhaustible = True
constant = False
def __init__(self, cost, context):
self.cost = cost
def get_context(self):
return self.cost.context
def is_valid(self, cost):
return cost.context == self.get_context() and cost == self.cost
| class Ability:
cost = None
exhaustible = True
constant = False
def __init__(self, cost, context):
self.cost = cost
def get_context(self):
return self.cost.context
def is_valid(self, cost):
return cost.context == self.get_context() and cost == self.cost |
# -*- coding: utf-8 -*-
def main():
q, h, s, d = list(map(int, input().split()))
n = int(input())
# See:
# https://www.youtube.com/watch?v=9OiB8ot3a0w
x = min(4 * q, h * 2, s)
print(min(n * x, d * (n // 2) + n % 2 * x))
if __name__ == '__main__':
main()
| def main():
(q, h, s, d) = list(map(int, input().split()))
n = int(input())
x = min(4 * q, h * 2, s)
print(min(n * x, d * (n // 2) + n % 2 * x))
if __name__ == '__main__':
main() |
# -*- coding: utf-8 -*-
__author__ = 'alsbi'
HOST_LOCAL_VIRSH = 'libvirt_local or remote host'
HOST_REMOTE_VIRSH = 'libvirt remote host'
SASL_USER = "libvirt sasl user"
SASL_PASS = "libvirt sasl pass"
SECRET_KEY_APP = 'random'
LOGINS = {'admin': 'admin'} | __author__ = 'alsbi'
host_local_virsh = 'libvirt_local or remote host'
host_remote_virsh = 'libvirt remote host'
sasl_user = 'libvirt sasl user'
sasl_pass = 'libvirt sasl pass'
secret_key_app = 'random'
logins = {'admin': 'admin'} |
print(1)
print(1 + 1)
print(3 * 1 + 2)
print(3 * (1 + 2))
if 2 > 1:
print("One is the loneliest number")
else:
print('Two is the lonliest number?')
| print(1)
print(1 + 1)
print(3 * 1 + 2)
print(3 * (1 + 2))
if 2 > 1:
print('One is the loneliest number')
else:
print('Two is the lonliest number?') |
# https://dmoj.ca/problem/ccc07j1
# https://dmoj.ca/submission/1744054
a = int(input())
b = int(input())
c = int(input())
if (a>c and a<b) or (a<c and a>b): print(a)
elif (b>c and b<a) or (b<c and b>a): print(b)
else: print(c)
| a = int(input())
b = int(input())
c = int(input())
if a > c and a < b or (a < c and a > b):
print(a)
elif b > c and b < a or (b < c and b > a):
print(b)
else:
print(c) |
class Myclass:
"""This is doc string"""
a=10
def function(self):
print("Hello")
print(Myclass.a)
print(Myclass.function)
print(Myclass.__doc__)
Mycl1 = Myclass()
| class Myclass:
"""This is doc string"""
a = 10
def function(self):
print('Hello')
print(Myclass.a)
print(Myclass.function)
print(Myclass.__doc__)
mycl1 = myclass() |
# quizScoring.py
# A program that accepts a quiz score as an input and prints out
# the corresponding grade.
# 5-A, 4-B, 3-C, 2-D, 1-F, 0-F
"""A certain CS professor gives 5-point quizzes that are graded on the scale
5-A, 4-B, 3-C, 2-D, 1-F, 0-F. Write a progra that accepts a quiz score as an
input and prints out the corresponding grade."""
def main():
print("Quiz scoring is a program that accepts a quiz score as an input \
and prints out the corresponding grade.")
print("5-A, 4-B, 3-C, 2-D, 1-F, 0-F")
score = int(input("Please enter the quiz score: "))
grades = ["F", "F", "D", "C", "B", "A"]
grade = grades[score]
print("\nThe quiz grade is {0}".format(grade))
main()
| """A certain CS professor gives 5-point quizzes that are graded on the scale
5-A, 4-B, 3-C, 2-D, 1-F, 0-F. Write a progra that accepts a quiz score as an
input and prints out the corresponding grade."""
def main():
print('Quiz scoring is a program that accepts a quiz score as an input and prints out the corresponding grade.')
print('5-A, 4-B, 3-C, 2-D, 1-F, 0-F')
score = int(input('Please enter the quiz score: '))
grades = ['F', 'F', 'D', 'C', 'B', 'A']
grade = grades[score]
print('\nThe quiz grade is {0}'.format(grade))
main() |
# HARD
# 1. check length + counts of word + current word with maxWidth
# 2. round robin
# maxWidth - lenght = number of spaces
# loop through number of spaces times
# each time assign a space to a word[0] -word[len]
# Time O(N) Space O(N)
class Solution:
def fullJustify(self, words: List[str], maxWidth: int) -> List[str]:
line = []
length = 0
result = []
for word in words:
if length+ len(line) +len(word) > maxWidth:
for i in range(maxWidth - length):
line[i % (len(line)-1 or 1)]+=" "
result.append("".join(line))
length = 0
line = []
line.append(word)
length+= len(word)
result.append(" ".join(line).ljust(maxWidth))
return result | class Solution:
def full_justify(self, words: List[str], maxWidth: int) -> List[str]:
line = []
length = 0
result = []
for word in words:
if length + len(line) + len(word) > maxWidth:
for i in range(maxWidth - length):
line[i % (len(line) - 1 or 1)] += ' '
result.append(''.join(line))
length = 0
line = []
line.append(word)
length += len(word)
result.append(' '.join(line).ljust(maxWidth))
return result |
class Solution:
def matrixReshape(self, nums: List[List[int]], r: int, c: int) -> List[List[int]]:
new_matrix=[[0 for _ in range (c)] for _ in range (r)]
if r*c!=len(nums)*len(nums[0]):
return nums
i1=0
j1=0
for j in range(0,len(nums)):
for i in range(0,len(nums[0])):
if i1==c:
i1=0
j1+=1
if j1<r:
new_matrix[j1][i1]=nums[j][i]
i1+=1
return new_matrix | class Solution:
def matrix_reshape(self, nums: List[List[int]], r: int, c: int) -> List[List[int]]:
new_matrix = [[0 for _ in range(c)] for _ in range(r)]
if r * c != len(nums) * len(nums[0]):
return nums
i1 = 0
j1 = 0
for j in range(0, len(nums)):
for i in range(0, len(nums[0])):
if i1 == c:
i1 = 0
j1 += 1
if j1 < r:
new_matrix[j1][i1] = nums[j][i]
i1 += 1
return new_matrix |
for k in model.state_dict():
print(k)
for name,parameters in net.named_parameters():
print(name,':',parameters.size())
| for k in model.state_dict():
print(k)
for (name, parameters) in net.named_parameters():
print(name, ':', parameters.size()) |
# Solution to Project Euler Problem 2
def sol():
ans = 0
x = 1
y = 2
while x <= 4000000:
if x % 2 == 0:
ans += x
x, y = y, x + y
return str(ans)
if __name__ == "__main__":
print(sol())
| def sol():
ans = 0
x = 1
y = 2
while x <= 4000000:
if x % 2 == 0:
ans += x
(x, y) = (y, x + y)
return str(ans)
if __name__ == '__main__':
print(sol()) |
class GameState(object):
def __init__(self, player, action, card_name):
self.action = action
self.player = player
self.card_name = card_name
| class Gamestate(object):
def __init__(self, player, action, card_name):
self.action = action
self.player = player
self.card_name = card_name |
try:
trigger_ver += 1
except:
trigger_ver = 1
print(f"dep file version {trigger_ver}: Even if you save this file, this script won't re-execute. Instead, create the trigger file.") | try:
trigger_ver += 1
except:
trigger_ver = 1
print(f"dep file version {trigger_ver}: Even if you save this file, this script won't re-execute. Instead, create the trigger file.") |
class Solution:
# @param A a list of integers
# @param elem an integer, value need to be removed
# @return an integer
def removeElement(self, A, elem):
if not A:
return 0
lens = 0
for i in xrange(0, len(A)):
p = A.pop(0)
if p != elem:
A.append(p)
lens += 1
return lens | class Solution:
def remove_element(self, A, elem):
if not A:
return 0
lens = 0
for i in xrange(0, len(A)):
p = A.pop(0)
if p != elem:
A.append(p)
lens += 1
return lens |
# Pay calculator from exercise 02.03 rewritten to give the employee 1.5 times
# the hourly rate for hours worked above 40 hours.
# Define constants
MAX_NORMAL_HOURS = 40
OVERTIME_RATE_MULTIPLIER = 1.5
# Prompt user for hours worked and hourly rate of pay.
hours = input('Enter Hours: ')
rate = input('Enter rate: ')
# Set variables
hours = float(hours)
normal_rate = float(rate)
overtime_rate = normal_rate * OVERTIME_RATE_MULTIPLIER
# Separate overtime hours from normal hours
if hours <= MAX_NORMAL_HOURS:
normal_hours = hours
overtime_hours = 0
else:
normal_hours = MAX_NORMAL_HOURS
overtime_hours = hours - MAX_NORMAL_HOURS
# Calculate pay for normal and overtime hours
normal_pay = normal_hours * normal_rate
overtime_pay = overtime_hours * overtime_rate
# Calculate gross pay
gross_pay = normal_pay + overtime_pay
# Display result to user
print('Pay:', gross_pay)
| max_normal_hours = 40
overtime_rate_multiplier = 1.5
hours = input('Enter Hours: ')
rate = input('Enter rate: ')
hours = float(hours)
normal_rate = float(rate)
overtime_rate = normal_rate * OVERTIME_RATE_MULTIPLIER
if hours <= MAX_NORMAL_HOURS:
normal_hours = hours
overtime_hours = 0
else:
normal_hours = MAX_NORMAL_HOURS
overtime_hours = hours - MAX_NORMAL_HOURS
normal_pay = normal_hours * normal_rate
overtime_pay = overtime_hours * overtime_rate
gross_pay = normal_pay + overtime_pay
print('Pay:', gross_pay) |
def chunker(iterable, size):
"""Return a piece of the specified size of the iterable at a time."""
for i in range(0, len(iterable), size):
yield iterable[i:i+size]
for chunk in chunker(range(25), 4):
print(list(chunk))
| def chunker(iterable, size):
"""Return a piece of the specified size of the iterable at a time."""
for i in range(0, len(iterable), size):
yield iterable[i:i + size]
for chunk in chunker(range(25), 4):
print(list(chunk)) |
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY,
WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''
# Bitcoin Cash (BCH) qpz32c4lg7x7lnk9jg6qg7s4uavdce89myax5v5nuk
# Ether (ETH) - 0x843d3DEC2A4705BD4f45F674F641cE2D0022c9FB
# Litecoin (LTC) - Lfk5y4F7KZa9oRxpazETwjQnHszEPvqPvu
# Bitcoin (BTC) - 34L8qWiQyKr8k4TnHDacfjbaSqQASbBtTd
# contact :- github@jamessawyer.co.uk
def dencrypt(s, n):
out = ""
for c in s:
if c >= "A" and c <= "Z":
out += chr(ord("A") + (ord(c) - ord("A") + n) % 26)
elif c >= "a" and c <= "z":
out += chr(ord("a") + (ord(c) - ord("a") + n) % 26)
else:
out += c
return out
def main():
s0 = "HELLO"
s1 = dencrypt(s0, 13)
print(s1) # URYYB
s2 = dencrypt(s1, 13)
print(s2) # HELLO
if __name__ == "__main__":
main()
| """THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY,
WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE."""
def dencrypt(s, n):
out = ''
for c in s:
if c >= 'A' and c <= 'Z':
out += chr(ord('A') + (ord(c) - ord('A') + n) % 26)
elif c >= 'a' and c <= 'z':
out += chr(ord('a') + (ord(c) - ord('a') + n) % 26)
else:
out += c
return out
def main():
s0 = 'HELLO'
s1 = dencrypt(s0, 13)
print(s1)
s2 = dencrypt(s1, 13)
print(s2)
if __name__ == '__main__':
main() |
for i in range(2):
for j in range(4):
if i == 0 and j == 1: break;
print(i, j)
| for i in range(2):
for j in range(4):
if i == 0 and j == 1:
break
print(i, j) |
class FinalValue(Exception):
"Force a value and break the handler chain"
def __init__(self, value):
self.value = value
| class Finalvalue(Exception):
"""Force a value and break the handler chain"""
def __init__(self, value):
self.value = value |
# ann, rets = self.anns[0], []
# for entID, ent, stim in ents:
# annID = hash(entID) % self.nANN
# unpacked = unpackStim(ent, stim)
# self.anns[annID].recv(unpacked, ent, stim, entID)
#
# #Ret order matters
# for logits, val, ent, stim, atn, entID in ann.send():
# action, args = self.actionArgs(stim, ent, atn.item())
# rets.append((action, args, float(val)))
# if ent.alive and not self.args.test:
# self.collectStep(entID, (logits, val, atn))
# return rets
class CosineNet(nn.Module):
def __init__(self, xdim, h, ydim):
super().__init__()
self.feats = FeatNet(xdim, h, ydim)
self.fc1 = torch.nn.Linear(h, h)
self.ent1 = torch.nn.Linear(5, h)
def forward(self, stim, conv, flat, ents, ent, actions):
x = self.feats(conv, flat, ents)
x = self.fc1(x)
arguments = actions.args(stim, ent)
ents = torch.tensor(np.array([e.stim for
e in arguments])).float()
args = self.ent1(ents) #center this in preprocess
arg, argIdx = CosineClassifier(x, args)
argument = [arguments[int(argIdx)]]
return actions, argument, (arg, argIdx)
def CosineClassifier(x, a):
ret = torch.sum(x*a, dim=1).view(1, -1)
return ret, classify(ret)
class AtnNet(nn.Module):
def __init__(self, xdim, h, ydim):
super().__init__()
self.feats = FeatNet(xdim, h, ydim)
self.atn1 = torch.nn.Linear(h, 2)
def forward(self, conv, flat, ent, flatEnts, actions):
x = self.feats(conv, flat, flatEnts)
atn = self.atn1(x)
atnIdx = classify(atn)
return x, atn, atnIdx
class ActionEmbed(nn.Module):
def __init__(self, nEmbed, dim):
super().__init__()
self.embed = torch.nn.Embedding(nEmbed, dim)
self.atnIdx = {}
def forward(self, actions):
idxs = []
for a in actions:
if a not in self.atnIdx:
self.atnIdx[a] = len(self.atnIdx)
idxs.append(self.atnIdx[a])
idxs = torch.tensor(idxs)
atns = self.embed(idxs)
return atns
def vDiffs(v):
pad = v[0] * 0
diffs = [vNew - vOld for vNew, vOld in zip(v[1:], v[:-1])]
vRet = diffs + [pad]
return vRet
def embedArgsLists(argsLists):
args = [embedArgs(args) for args in argsLists]
return np.stack(args)
def embedArgs(args):
args = [embedArg(arg) for arg in args]
return np.concatenate(args)
def embedArg(arg):
arg = Arg(arg)
arg = oneHot(arg.val - arg.min, arg.n)
return arg
def matOneHot(mat, dim):
r, c = mat.shape
x = np.zeros((r, c, dim))
for i in range(r):
for j in range(c):
x[i, j, mat[i,j]] = 1
return x
#Old unzip. Don't use. Soft breaks PG
def unzipRollouts(rollouts):
atnArgList, atnArgIdxList, valList, rewList = [], [], [], []
for atnArgs, val, rew in rollouts:
for atnArg, idx in atnArgs:
atnArgList.append(atnArg)
atnArgIdxList.append(idx)
valList.append(val)
rewList.append(rew)
atnArgs = atnArgList
atnArgsIdx = torch.stack(atnArgIdxList)
vals = torch.stack(valList).view(-1, 1)
rews = torch.tensor(rewList).view(-1, 1).float()
return atnArgs, atnArgsIdx, vals, rews
def l1Range(ent, sz, me, rng):
R, C = sz
rs, cs = me.pos
rt = max(0, rs-rng)
rb = min(R, rs+rng+1)
cl = max(0, cs-rng)
cr = min(C, cs+rng+1)
ret = []
for r in range(rt, rb):
for c in range(cl, cr):
if me in ent[r, c].ents:
continue
if len(ent[r, c].ents) > 0:
ret += ent[r, c].ents
return ret
| class Cosinenet(nn.Module):
def __init__(self, xdim, h, ydim):
super().__init__()
self.feats = feat_net(xdim, h, ydim)
self.fc1 = torch.nn.Linear(h, h)
self.ent1 = torch.nn.Linear(5, h)
def forward(self, stim, conv, flat, ents, ent, actions):
x = self.feats(conv, flat, ents)
x = self.fc1(x)
arguments = actions.args(stim, ent)
ents = torch.tensor(np.array([e.stim for e in arguments])).float()
args = self.ent1(ents)
(arg, arg_idx) = cosine_classifier(x, args)
argument = [arguments[int(argIdx)]]
return (actions, argument, (arg, argIdx))
def cosine_classifier(x, a):
ret = torch.sum(x * a, dim=1).view(1, -1)
return (ret, classify(ret))
class Atnnet(nn.Module):
def __init__(self, xdim, h, ydim):
super().__init__()
self.feats = feat_net(xdim, h, ydim)
self.atn1 = torch.nn.Linear(h, 2)
def forward(self, conv, flat, ent, flatEnts, actions):
x = self.feats(conv, flat, flatEnts)
atn = self.atn1(x)
atn_idx = classify(atn)
return (x, atn, atnIdx)
class Actionembed(nn.Module):
def __init__(self, nEmbed, dim):
super().__init__()
self.embed = torch.nn.Embedding(nEmbed, dim)
self.atnIdx = {}
def forward(self, actions):
idxs = []
for a in actions:
if a not in self.atnIdx:
self.atnIdx[a] = len(self.atnIdx)
idxs.append(self.atnIdx[a])
idxs = torch.tensor(idxs)
atns = self.embed(idxs)
return atns
def v_diffs(v):
pad = v[0] * 0
diffs = [vNew - vOld for (v_new, v_old) in zip(v[1:], v[:-1])]
v_ret = diffs + [pad]
return vRet
def embed_args_lists(argsLists):
args = [embed_args(args) for args in argsLists]
return np.stack(args)
def embed_args(args):
args = [embed_arg(arg) for arg in args]
return np.concatenate(args)
def embed_arg(arg):
arg = arg(arg)
arg = one_hot(arg.val - arg.min, arg.n)
return arg
def mat_one_hot(mat, dim):
(r, c) = mat.shape
x = np.zeros((r, c, dim))
for i in range(r):
for j in range(c):
x[i, j, mat[i, j]] = 1
return x
def unzip_rollouts(rollouts):
(atn_arg_list, atn_arg_idx_list, val_list, rew_list) = ([], [], [], [])
for (atn_args, val, rew) in rollouts:
for (atn_arg, idx) in atnArgs:
atnArgList.append(atnArg)
atnArgIdxList.append(idx)
valList.append(val)
rewList.append(rew)
atn_args = atnArgList
atn_args_idx = torch.stack(atnArgIdxList)
vals = torch.stack(valList).view(-1, 1)
rews = torch.tensor(rewList).view(-1, 1).float()
return (atnArgs, atnArgsIdx, vals, rews)
def l1_range(ent, sz, me, rng):
(r, c) = sz
(rs, cs) = me.pos
rt = max(0, rs - rng)
rb = min(R, rs + rng + 1)
cl = max(0, cs - rng)
cr = min(C, cs + rng + 1)
ret = []
for r in range(rt, rb):
for c in range(cl, cr):
if me in ent[r, c].ents:
continue
if len(ent[r, c].ents) > 0:
ret += ent[r, c].ents
return ret |
nome = input('Nome: ')
print('Nome digitado: ', nome)
print('Primeiro caractere: ', nome[0])
print('Ultimo caractere: ', nome[-1])
print('Tres primeiros caracteres: ', nome[0:3])
print('Quarto caractere: ', nome[3])
print('Todos menos o primeiro: ', nome[1:])
print('Os dois ultimos: ', nome[-2:]) | nome = input('Nome: ')
print('Nome digitado: ', nome)
print('Primeiro caractere: ', nome[0])
print('Ultimo caractere: ', nome[-1])
print('Tres primeiros caracteres: ', nome[0:3])
print('Quarto caractere: ', nome[3])
print('Todos menos o primeiro: ', nome[1:])
print('Os dois ultimos: ', nome[-2:]) |
a = [[3,5]]
a[0] = [7]
a[1] = [0]
a[2] = null
| a = [[3, 5]]
a[0] = [7]
a[1] = [0]
a[2] = null |
"""Module containing exceptions raised by ."""
# Copyleft 2021 Sidon Duarte
class GetRmqApiException(Exception):
"""Base class for all exceptions raised by twine."""
pass
| """Module containing exceptions raised by ."""
class Getrmqapiexception(Exception):
"""Base class for all exceptions raised by twine."""
pass |
# Copyright (c) 2018-2022 curoky(cccuroky@gmail.com).
#
# This file is part of my-own-x.
# See https://github.com/curoky/my-own-x for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_repositories():
go_repository(
name = "co_honnef_go_tools",
importpath = "honnef.co/go/tools",
sum = "h1:qTakTkI6ni6LFD5sBwwsdSO+AQqbSIxOauHTTQKZ/7o=",
version = "v0.1.3",
)
go_repository(
name = "com_github_afex_hystrix_go",
importpath = "github.com/afex/hystrix-go",
sum = "h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw=",
version = "v0.0.0-20180502004556-fa1af6a1f4f5",
)
go_repository(
name = "com_github_alecthomas_template",
importpath = "github.com/alecthomas/template",
sum = "h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=",
version = "v0.0.0-20190718012654-fb15b899a751",
)
go_repository(
name = "com_github_alecthomas_units",
importpath = "github.com/alecthomas/units",
sum = "h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E=",
version = "v0.0.0-20190717042225-c3de453c63f4",
)
go_repository(
name = "com_github_apache_thrift",
importpath = "github.com/apache/thrift",
sum = "h1:qEy6UW60iVOlUy+b9ZR0d5WzUWYGOo4HfopoyBaNmoY=",
version = "v0.16.0",
)
go_repository(
name = "com_github_armon_circbuf",
importpath = "github.com/armon/circbuf",
sum = "h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA=",
version = "v0.0.0-20150827004946-bbbad097214e",
)
go_repository(
name = "com_github_armon_go_metrics",
importpath = "github.com/armon/go-metrics",
sum = "h1:FR+drcQStOe+32sYyJYyZ7FIdgoGGBnwLl+flodp8Uo=",
version = "v0.3.10",
)
go_repository(
name = "com_github_armon_go_radix",
importpath = "github.com/armon/go-radix",
sum = "h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=",
version = "v0.0.0-20180808171621-7fddfc383310",
)
go_repository(
name = "com_github_arran4_golang_ical",
importpath = "github.com/arran4/golang-ical",
sum = "h1:mUsKridvWp4dgfkO/QWtgGwuLtZYpjKgsm15JRRik3o=",
version = "v0.0.0-20220517104411-fd89fefb0182",
)
go_repository(
name = "com_github_aryann_difflib",
importpath = "github.com/aryann/difflib",
sum = "h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw=",
version = "v0.0.0-20170710044230-e206f873d14a",
)
go_repository(
name = "com_github_aws_aws_lambda_go",
importpath = "github.com/aws/aws-lambda-go",
sum = "h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY=",
version = "v1.13.3",
)
go_repository(
name = "com_github_aws_aws_sdk_go",
importpath = "github.com/aws/aws-sdk-go",
sum = "h1:0xphMHGMLBrPMfxR2AmVjZKcMEESEgWF8Kru94BNByk=",
version = "v1.27.0",
)
go_repository(
name = "com_github_aws_aws_sdk_go_v2",
importpath = "github.com/aws/aws-sdk-go-v2",
sum = "h1:qZ+woO4SamnH/eEbjM2IDLhRNwIwND/RQyVlBLp3Jqg=",
version = "v0.18.0",
)
go_repository(
name = "com_github_beorn7_perks",
importpath = "github.com/beorn7/perks",
sum = "h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=",
version = "v1.0.1",
)
go_repository(
name = "com_github_bgentry_speakeasy",
importpath = "github.com/bgentry/speakeasy",
sum = "h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=",
version = "v0.1.0",
)
go_repository(
name = "com_github_burntsushi_toml",
importpath = "github.com/BurntSushi/toml",
sum = "h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=",
version = "v1.1.0",
)
go_repository(
name = "com_github_burntsushi_xgb",
importpath = "github.com/BurntSushi/xgb",
sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=",
version = "v0.0.0-20160522181843-27f122750802",
)
go_repository(
name = "com_github_casbin_casbin_v2",
importpath = "github.com/casbin/casbin/v2",
sum = "h1:bTwon/ECRx9dwBy2ewRVr5OiqjeXSGiTUY74sDPQi/g=",
version = "v2.1.2",
)
go_repository(
name = "com_github_cenkalti_backoff",
importpath = "github.com/cenkalti/backoff",
sum = "h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=",
version = "v2.2.1+incompatible",
)
go_repository(
name = "com_github_census_instrumentation_opencensus_proto",
importpath = "github.com/census-instrumentation/opencensus-proto",
sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=",
version = "v0.2.1",
)
go_repository(
name = "com_github_cespare_xxhash_v2",
importpath = "github.com/cespare/xxhash/v2",
sum = "h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=",
version = "v2.1.2",
)
go_repository(
name = "com_github_chzyer_logex",
importpath = "github.com/chzyer/logex",
sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=",
version = "v1.1.10",
)
go_repository(
name = "com_github_chzyer_readline",
importpath = "github.com/chzyer/readline",
sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=",
version = "v0.0.0-20180603132655-2972be24d48e",
)
go_repository(
name = "com_github_chzyer_test",
importpath = "github.com/chzyer/test",
sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=",
version = "v0.0.0-20180213035817-a1ea475d72b1",
)
go_repository(
name = "com_github_clbanning_x2j",
importpath = "github.com/clbanning/x2j",
sum = "h1:EdRZT3IeKQmfCSrgo8SZ8V3MEnskuJP0wCYNpe+aiXo=",
version = "v0.0.0-20191024224557-825249438eec",
)
go_repository(
name = "com_github_client9_misspell",
importpath = "github.com/client9/misspell",
sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=",
version = "v0.3.4",
)
go_repository(
name = "com_github_cncf_udpa_go",
importpath = "github.com/cncf/udpa/go",
sum = "h1:cqQfy1jclcSy/FwLjemeg3SR1yaINm74aQyupQ0Bl8M=",
version = "v0.0.0-20201120205902-5459f2c99403",
)
go_repository(
name = "com_github_cncf_xds_go",
importpath = "github.com/cncf/xds/go",
sum = "h1:KwaoQzs/WeUxxJqiJsZ4euOly1Az/IgZXXSxlD/UBNk=",
version = "v0.0.0-20211130200136-a8f946100490",
)
go_repository(
name = "com_github_cockroachdb_datadriven",
importpath = "github.com/cockroachdb/datadriven",
sum = "h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y=",
version = "v0.0.0-20190809214429-80d97fb3cbaa",
)
go_repository(
name = "com_github_codahale_hdrhistogram",
importpath = "github.com/codahale/hdrhistogram",
sum = "h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w=",
version = "v0.0.0-20161010025455-3a0bb77429bd",
)
go_repository(
name = "com_github_coreos_go_semver",
importpath = "github.com/coreos/go-semver",
sum = "h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=",
version = "v0.3.0",
)
go_repository(
name = "com_github_coreos_go_systemd",
importpath = "github.com/coreos/go-systemd",
sum = "h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=",
version = "v0.0.0-20190321100706-95778dfbb74e",
)
go_repository(
name = "com_github_coreos_pkg",
importpath = "github.com/coreos/pkg",
sum = "h1:CAKfRE2YtTUIjjh1bkBtyYFaUT/WmOqsJjgtihT0vMI=",
version = "v0.0.0-20160727233714-3ac0863d7acf",
)
go_repository(
name = "com_github_cpuguy83_go_md2man_v2",
importpath = "github.com/cpuguy83/go-md2man/v2",
sum = "h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=",
version = "v2.0.1",
)
go_repository(
name = "com_github_creack_pty",
importpath = "github.com/creack/pty",
sum = "h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=",
version = "v1.1.9",
)
go_repository(
name = "com_github_davecgh_go_spew",
importpath = "github.com/davecgh/go-spew",
sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
version = "v1.1.1",
)
go_repository(
name = "com_github_dgrijalva_jwt_go",
importpath = "github.com/dgrijalva/jwt-go",
sum = "h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=",
version = "v3.2.0+incompatible",
)
go_repository(
name = "com_github_dgryski_go_rendezvous",
importpath = "github.com/dgryski/go-rendezvous",
sum = "h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=",
version = "v0.0.0-20200823014737-9f7001d12a5f",
)
go_repository(
name = "com_github_dustin_go_humanize",
importpath = "github.com/dustin/go-humanize",
sum = "h1:qk/FSDDxo05wdJH28W+p5yivv7LuLYLRXPPD8KQCtZs=",
version = "v0.0.0-20171111073723-bb3d318650d4",
)
go_repository(
name = "com_github_eapache_go_resiliency",
importpath = "github.com/eapache/go-resiliency",
sum = "h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU=",
version = "v1.1.0",
)
go_repository(
name = "com_github_eapache_go_xerial_snappy",
importpath = "github.com/eapache/go-xerial-snappy",
sum = "h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw=",
version = "v0.0.0-20180814174437-776d5712da21",
)
go_repository(
name = "com_github_eapache_queue",
importpath = "github.com/eapache/queue",
sum = "h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=",
version = "v1.1.0",
)
go_repository(
name = "com_github_edsrzf_mmap_go",
importpath = "github.com/edsrzf/mmap-go",
sum = "h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_envoyproxy_go_control_plane",
importpath = "github.com/envoyproxy/go-control-plane",
sum = "h1:EmNYJhPYy0pOFjCx2PrgtaBXmee0iUX9hLlxE1xHOJE=",
version = "v0.9.9-0.20201210154907-fd9021fe5dad",
)
go_repository(
name = "com_github_envoyproxy_protoc_gen_validate",
importpath = "github.com/envoyproxy/protoc-gen-validate",
sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=",
version = "v0.1.0",
)
go_repository(
name = "com_github_facebook_fbthrift",
importpath = "github.com/facebook/fbthrift",
sum = "h1:ASVG7Ymw4a/T43L4VkUon5QCWvltgxqC2E/OSXebtdE=",
version = "v0.31.1-0.20220420221333-b45ef2bc4cf8",
)
go_repository(
name = "com_github_fatih_color",
importpath = "github.com/fatih/color",
sum = "h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=",
version = "v1.13.0",
)
go_repository(
name = "com_github_franela_goblin",
importpath = "github.com/franela/goblin",
sum = "h1:gb2Z18BhTPJPpLQWj4T+rfKHYCHxRHCtRxhKKjRidVw=",
version = "v0.0.0-20200105215937-c9ffbefa60db",
)
go_repository(
name = "com_github_franela_goreq",
importpath = "github.com/franela/goreq",
sum = "h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54=",
version = "v0.0.0-20171204163338-bcd34c9993f8",
)
go_repository(
name = "com_github_frankban_quicktest",
importpath = "github.com/frankban/quicktest",
sum = "h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=",
version = "v1.14.3",
)
go_repository(
name = "com_github_fsnotify_fsnotify",
importpath = "github.com/fsnotify/fsnotify",
sum = "h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI=",
version = "v1.5.1",
)
go_repository(
name = "com_github_ghodss_yaml",
importpath = "github.com/ghodss/yaml",
sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=",
version = "v1.0.0",
)
go_repository(
name = "com_github_gin_contrib_sse",
importpath = "github.com/gin-contrib/sse",
sum = "h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=",
version = "v0.1.0",
)
go_repository(
name = "com_github_gin_gonic_gin",
importpath = "github.com/gin-gonic/gin",
sum = "h1:3DoBmSbJbZAWqXJC3SLjAPfutPJJRN1U5pALB7EeTTs=",
version = "v1.7.7",
)
go_repository(
name = "com_github_go_gl_glfw",
importpath = "github.com/go-gl/glfw",
sum = "h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=",
version = "v0.0.0-20190409004039-e6da0acd62b1",
)
go_repository(
name = "com_github_go_gl_glfw_v3_3_glfw",
importpath = "github.com/go-gl/glfw/v3.3/glfw",
sum = "h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=",
version = "v0.0.0-20200222043503-6f7a984d4dc4",
)
go_repository(
name = "com_github_go_kit_kit",
importpath = "github.com/go-kit/kit",
sum = "h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo=",
version = "v0.10.0",
)
go_repository(
name = "com_github_go_logfmt_logfmt",
importpath = "github.com/go-logfmt/logfmt",
sum = "h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=",
version = "v0.5.0",
)
go_repository(
name = "com_github_go_logr_logr",
importpath = "github.com/go-logr/logr",
sum = "h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc=",
version = "v0.4.0",
)
go_repository(
name = "com_github_go_playground_assert_v2",
importpath = "github.com/go-playground/assert/v2",
sum = "h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=",
version = "v2.0.1",
)
go_repository(
name = "com_github_go_playground_locales",
importpath = "github.com/go-playground/locales",
sum = "h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=",
version = "v0.13.0",
)
go_repository(
name = "com_github_go_playground_universal_translator",
importpath = "github.com/go-playground/universal-translator",
sum = "h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=",
version = "v0.17.0",
)
go_repository(
name = "com_github_go_playground_validator_v10",
importpath = "github.com/go-playground/validator/v10",
sum = "h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE=",
version = "v10.4.1",
)
go_repository(
name = "com_github_go_redis_cache_v8",
importpath = "github.com/go-redis/cache/v8",
sum = "h1:+RZ0pQM+zOd6h/oWCsOl3+nsCgii9rn26oCYmU87kN8=",
version = "v8.4.3",
)
go_repository(
name = "com_github_go_redis_redis_v8",
importpath = "github.com/go-redis/redis/v8",
sum = "h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=",
version = "v8.11.5",
)
go_repository(
name = "com_github_go_redis_redismock_v8",
importpath = "github.com/go-redis/redismock/v8",
sum = "h1:rtuijPgGynsRB2Y7KDACm09WvjHWS4RaG44Nm7rcj4Y=",
version = "v8.0.6",
)
go_repository(
name = "com_github_go_sql_driver_mysql",
importpath = "github.com/go-sql-driver/mysql",
sum = "h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk=",
version = "v1.4.0",
)
go_repository(
name = "com_github_go_stack_stack",
importpath = "github.com/go-stack/stack",
sum = "h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=",
version = "v1.8.0",
)
go_repository(
name = "com_github_go_task_slim_sprig",
importpath = "github.com/go-task/slim-sprig",
sum = "h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I=",
version = "v0.0.0-20210107165309-348f09dbbbc0",
)
go_repository(
name = "com_github_goccy_go_yaml",
importpath = "github.com/goccy/go-yaml",
sum = "h1:Eh/+3uk9kLxG4koCX6lRMAPS1OaMSAi+FJcya0INdB0=",
version = "v1.9.5",
)
go_repository(
name = "com_github_gogo_googleapis",
importpath = "github.com/gogo/googleapis",
sum = "h1:kFkMAZBNAn4j7K0GiZr8cRYzejq68VbheufiV3YuyFI=",
version = "v1.1.0",
)
go_repository(
name = "com_github_gogo_protobuf",
importpath = "github.com/gogo/protobuf",
sum = "h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE=",
version = "v1.2.1",
)
go_repository(
name = "com_github_golang_glog",
importpath = "github.com/golang/glog",
sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=",
version = "v0.0.0-20160126235308-23def4e6c14b",
)
go_repository(
name = "com_github_golang_groupcache",
importpath = "github.com/golang/groupcache",
sum = "h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=",
version = "v0.0.0-20210331224755-41bb18bfe9da",
)
go_repository(
name = "com_github_golang_mock",
importpath = "github.com/golang/mock",
sum = "h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g=",
version = "v1.5.0",
)
go_repository(
name = "com_github_golang_protobuf",
importpath = "github.com/golang/protobuf",
sum = "h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=",
version = "v1.5.2",
)
go_repository(
name = "com_github_golang_snappy",
importpath = "github.com/golang/snappy",
sum = "h1:woRePGFeVFfLKN/pOkfl+p/TAqKOfFu+7KPlMVpok/w=",
version = "v0.0.0-20180518054509-2e65f85255db",
)
go_repository(
name = "com_github_google_btree",
importpath = "github.com/google/btree",
sum = "h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
sum = "h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=",
version = "v0.5.7",
)
go_repository(
name = "com_github_google_gofuzz",
importpath = "github.com/google/gofuzz",
sum = "h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_google_martian",
importpath = "github.com/google/martian",
sum = "h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=",
version = "v2.1.0+incompatible",
)
go_repository(
name = "com_github_google_martian_v3",
importpath = "github.com/google/martian/v3",
sum = "h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60=",
version = "v3.1.0",
)
go_repository(
name = "com_github_google_pprof",
importpath = "github.com/google/pprof",
sum = "h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE=",
version = "v0.0.0-20210407192527-94a9f03dee38",
)
go_repository(
name = "com_github_google_renameio",
importpath = "github.com/google/renameio",
sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=",
version = "v0.1.0",
)
go_repository(
name = "com_github_google_subcommands",
importpath = "github.com/google/subcommands",
sum = "h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=",
version = "v1.0.1",
)
go_repository(
name = "com_github_google_uuid",
importpath = "github.com/google/uuid",
sum = "h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=",
version = "v1.3.0",
)
go_repository(
name = "com_github_google_wire",
importpath = "github.com/google/wire",
sum = "h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=",
version = "v0.5.0",
)
go_repository(
name = "com_github_googleapis_gax_go_v2",
importpath = "github.com/googleapis/gax-go/v2",
sum = "h1:nRJtk3y8Fm770D42QV6T90ZnvFZyk7agSo3Q+Z9p3WI=",
version = "v2.3.0",
)
go_repository(
name = "com_github_googleapis_google_cloud_go_testing",
importpath = "github.com/googleapis/google-cloud-go-testing",
sum = "h1:tlyzajkF3030q6M8SvmJSemC9DTHL/xaMa18b65+JM4=",
version = "v0.0.0-20200911160855-bcd43fbb19e8",
)
go_repository(
name = "com_github_gopherjs_gopherjs",
importpath = "github.com/gopherjs/gopherjs",
sum = "h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=",
version = "v0.0.0-20181017120253-0766667cb4d1",
)
go_repository(
name = "com_github_gorilla_context",
importpath = "github.com/gorilla/context",
sum = "h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=",
version = "v1.1.1",
)
go_repository(
name = "com_github_gorilla_mux",
importpath = "github.com/gorilla/mux",
sum = "h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw=",
version = "v1.7.3",
)
go_repository(
name = "com_github_gorilla_websocket",
importpath = "github.com/gorilla/websocket",
sum = "h1:Lh2aW+HnU2Nbe1gqD9SOJLJxW1jBMmQOktN2acDyJk8=",
version = "v0.0.0-20170926233335-4201258b820c",
)
go_repository(
name = "com_github_grpc_ecosystem_go_grpc_middleware",
importpath = "github.com/grpc-ecosystem/go-grpc-middleware",
sum = "h1:z53tR0945TRRQO/fLEVPI6SMv7ZflF0TEaTAoU7tOzg=",
version = "v1.0.1-0.20190118093823-f849b5445de4",
)
go_repository(
name = "com_github_grpc_ecosystem_go_grpc_prometheus",
importpath = "github.com/grpc-ecosystem/go-grpc-prometheus",
sum = "h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=",
version = "v1.2.0",
)
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
sum = "h1:UImYN5qQ8tuGpGE16ZmjvcTtTw24zw1QAp/SlnNrZhI=",
version = "v1.9.5",
)
go_repository(
name = "com_github_hashicorp_consul_api",
importpath = "github.com/hashicorp/consul/api",
sum = "h1:k3y1FYv6nuKyNTqj6w9gXOx5r5CfLj/k/euUeBXj1OY=",
version = "v1.12.0",
)
go_repository(
name = "com_github_hashicorp_consul_sdk",
importpath = "github.com/hashicorp/consul/sdk",
sum = "h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ=",
version = "v0.3.0",
)
go_repository(
name = "com_github_hashicorp_errwrap",
importpath = "github.com/hashicorp/errwrap",
sum = "h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_cleanhttp",
importpath = "github.com/hashicorp/go-cleanhttp",
sum = "h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=",
version = "v0.5.2",
)
go_repository(
name = "com_github_hashicorp_go_hclog",
importpath = "github.com/hashicorp/go-hclog",
sum = "h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM=",
version = "v1.2.0",
)
go_repository(
name = "com_github_hashicorp_go_immutable_radix",
importpath = "github.com/hashicorp/go-immutable-radix",
sum = "h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=",
version = "v1.3.1",
)
go_repository(
name = "com_github_hashicorp_go_msgpack",
importpath = "github.com/hashicorp/go-msgpack",
sum = "h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4=",
version = "v0.5.3",
)
go_repository(
name = "com_github_hashicorp_go_multierror",
importpath = "github.com/hashicorp/go-multierror",
sum = "h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_net",
importpath = "github.com/hashicorp/go.net",
sum = "h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw=",
version = "v0.0.1",
)
go_repository(
name = "com_github_hashicorp_go_rootcerts",
importpath = "github.com/hashicorp/go-rootcerts",
sum = "h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc=",
version = "v1.0.2",
)
go_repository(
name = "com_github_hashicorp_go_sockaddr",
importpath = "github.com/hashicorp/go-sockaddr",
sum = "h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_syslog",
importpath = "github.com/hashicorp/go-syslog",
sum = "h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_uuid",
importpath = "github.com/hashicorp/go-uuid",
sum = "h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_hashicorp_go_version",
importpath = "github.com/hashicorp/go-version",
sum = "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
version = "v1.2.0",
)
go_repository(
name = "com_github_hashicorp_golang_lru",
importpath = "github.com/hashicorp/golang-lru",
sum = "h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=",
version = "v0.5.4",
)
go_repository(
name = "com_github_hashicorp_hcl",
importpath = "github.com/hashicorp/hcl",
sum = "h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_logutils",
importpath = "github.com/hashicorp/logutils",
sum = "h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_mdns",
importpath = "github.com/hashicorp/mdns",
sum = "h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_memberlist",
importpath = "github.com/hashicorp/memberlist",
sum = "h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M=",
version = "v0.1.3",
)
go_repository(
name = "com_github_hashicorp_serf",
importpath = "github.com/hashicorp/serf",
sum = "h1:hkdgbqizGQHuU5IPqYM1JdSMV8nKfpuOnZYXssk9muY=",
version = "v0.9.7",
)
go_repository(
name = "com_github_hpcloud_tail",
importpath = "github.com/hpcloud/tail",
sum = "h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hudl_fargo",
importpath = "github.com/hudl/fargo",
sum = "h1:0U6+BtN6LhaYuTnIJq4Wyq5cpn6O2kWrxAtcqBmYY6w=",
version = "v1.3.0",
)
go_repository(
name = "com_github_ianlancetaylor_demangle",
importpath = "github.com/ianlancetaylor/demangle",
sum = "h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI=",
version = "v0.0.0-20200824232613-28f6c0f3b639",
)
go_repository(
name = "com_github_inconshreveable_mousetrap",
importpath = "github.com/inconshreveable/mousetrap",
sum = "h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_influxdata_influxdb1_client",
importpath = "github.com/influxdata/influxdb1-client",
sum = "h1:/WZQPMZNsjZ7IlCpsLGdQBINg5bxKQ1K1sh6awxLtkA=",
version = "v0.0.0-20191209144304-8bf82d3c094d",
)
go_repository(
name = "com_github_jmespath_go_jmespath",
importpath = "github.com/jmespath/go-jmespath",
sum = "h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=",
version = "v0.0.0-20180206201540-c2b33e8439af",
)
go_repository(
name = "com_github_jonboulle_clockwork",
importpath = "github.com/jonboulle/clockwork",
sum = "h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=",
version = "v0.1.0",
)
go_repository(
name = "com_github_json_iterator_go",
importpath = "github.com/json-iterator/go",
sum = "h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=",
version = "v1.1.12",
)
go_repository(
name = "com_github_jstemmer_go_junit_report",
importpath = "github.com/jstemmer/go-junit-report",
sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=",
version = "v0.9.1",
)
go_repository(
name = "com_github_jtolds_gls",
importpath = "github.com/jtolds/gls",
sum = "h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=",
version = "v4.20.0+incompatible",
)
go_repository(
name = "com_github_julienschmidt_httprouter",
importpath = "github.com/julienschmidt/httprouter",
sum = "h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=",
version = "v1.2.0",
)
go_repository(
name = "com_github_kisielk_errcheck",
importpath = "github.com/kisielk/errcheck",
sum = "h1:ZqfnKyx9KGpRcW04j5nnPDgRgoXUeLh2YFBeFzphcA0=",
version = "v1.1.0",
)
go_repository(
name = "com_github_kisielk_gotool",
importpath = "github.com/kisielk/gotool",
sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=",
version = "v1.0.0",
)
go_repository(
name = "com_github_klauspost_compress",
importpath = "github.com/klauspost/compress",
sum = "h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc=",
version = "v1.13.6",
)
go_repository(
name = "com_github_knetic_govaluate",
importpath = "github.com/Knetic/govaluate",
sum = "h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw=",
version = "v3.0.1-0.20171022003610-9aa49832a739+incompatible",
)
go_repository(
name = "com_github_konsorten_go_windows_terminal_sequences",
importpath = "github.com/konsorten/go-windows-terminal-sequences",
sum = "h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=",
version = "v1.0.1",
)
go_repository(
name = "com_github_kr_fs",
importpath = "github.com/kr/fs",
sum = "h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=",
version = "v0.1.0",
)
go_repository(
name = "com_github_kr_logfmt",
importpath = "github.com/kr/logfmt",
sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=",
version = "v0.0.0-20140226030751-b84e30acd515",
)
go_repository(
name = "com_github_kr_pretty",
importpath = "github.com/kr/pretty",
sum = "h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=",
version = "v0.1.0",
)
go_repository(
name = "com_github_kr_pty",
importpath = "github.com/kr/pty",
sum = "h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=",
version = "v1.1.1",
)
go_repository(
name = "com_github_kr_text",
importpath = "github.com/kr/text",
sum = "h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=",
version = "v0.2.0",
)
go_repository(
name = "com_github_larksuite_oapi_sdk_go",
importpath = "github.com/larksuite/oapi-sdk-go",
sum = "h1:PbwrHpew5eyRxUNJ9h91wDL0V1HDDFqMjIWOmttRpA4=",
version = "v1.1.44",
)
go_repository(
name = "com_github_leodido_go_urn",
importpath = "github.com/leodido/go-urn",
sum = "h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=",
version = "v1.2.0",
)
go_repository(
name = "com_github_lightstep_lightstep_tracer_common_golang_gogo",
importpath = "github.com/lightstep/lightstep-tracer-common/golang/gogo",
sum = "h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo=",
version = "v0.0.0-20190605223551-bc2310a04743",
)
go_repository(
name = "com_github_lightstep_lightstep_tracer_go",
importpath = "github.com/lightstep/lightstep-tracer-go",
sum = "h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuNSc19z330K6vl4zk=",
version = "v0.18.1",
)
go_repository(
name = "com_github_lofanmi_chinese_calendar_golang",
importpath = "github.com/Lofanmi/chinese-calendar-golang",
sum = "h1:hWFKGrEqJI14SqwK7GShkaTV1NtQzMZFLFasITmH/LI=",
version = "v0.0.0-20211214151323-ef5cb443e55e",
)
go_repository(
name = "com_github_lyft_protoc_gen_validate",
importpath = "github.com/lyft/protoc-gen-validate",
sum = "h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA=",
version = "v0.0.13",
)
go_repository(
name = "com_github_magiconair_properties",
importpath = "github.com/magiconair/properties",
sum = "h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=",
version = "v1.8.6",
)
go_repository(
name = "com_github_mattn_go_colorable",
importpath = "github.com/mattn/go-colorable",
sum = "h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=",
version = "v0.1.12",
)
go_repository(
name = "com_github_mattn_go_isatty",
importpath = "github.com/mattn/go-isatty",
sum = "h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=",
version = "v0.0.14",
)
go_repository(
name = "com_github_mattn_go_runewidth",
importpath = "github.com/mattn/go-runewidth",
sum = "h1:UnlwIPBGaTZfPQ6T1IGzPI0EkYAQmT9fAEJ/poFC63o=",
version = "v0.0.2",
)
go_repository(
name = "com_github_matttproud_golang_protobuf_extensions",
importpath = "github.com/matttproud/golang_protobuf_extensions",
sum = "h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=",
version = "v1.0.1",
)
go_repository(
name = "com_github_miekg_dns",
importpath = "github.com/miekg/dns",
sum = "h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=",
version = "v1.0.14",
)
go_repository(
name = "com_github_mitchellh_cli",
importpath = "github.com/mitchellh/cli",
sum = "h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_go_homedir",
importpath = "github.com/mitchellh/go-homedir",
sum = "h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=",
version = "v1.1.0",
)
go_repository(
name = "com_github_mitchellh_go_testing_interface",
importpath = "github.com/mitchellh/go-testing-interface",
sum = "h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_gox",
importpath = "github.com/mitchellh/gox",
sum = "h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc=",
version = "v0.4.0",
)
go_repository(
name = "com_github_mitchellh_iochan",
importpath = "github.com/mitchellh/iochan",
sum = "h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_mapstructure",
importpath = "github.com/mitchellh/mapstructure",
sum = "h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs=",
version = "v1.4.3",
)
go_repository(
name = "com_github_modern_go_concurrent",
importpath = "github.com/modern-go/concurrent",
sum = "h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=",
version = "v0.0.0-20180306012644-bacd9c7ef1dd",
)
go_repository(
name = "com_github_modern_go_reflect2",
importpath = "github.com/modern-go/reflect2",
sum = "h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=",
version = "v1.0.2",
)
go_repository(
name = "com_github_mwitkow_go_conntrack",
importpath = "github.com/mwitkow/go-conntrack",
sum = "h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=",
version = "v0.0.0-20161129095857-cc309e4a2223",
)
go_repository(
name = "com_github_nats_io_jwt",
importpath = "github.com/nats-io/jwt",
sum = "h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI=",
version = "v0.3.2",
)
go_repository(
name = "com_github_nats_io_nats_go",
importpath = "github.com/nats-io/nats.go",
sum = "h1:ik3HbLhZ0YABLto7iX80pZLPw/6dx3T+++MZJwLnMrQ=",
version = "v1.9.1",
)
go_repository(
name = "com_github_nats_io_nats_server_v2",
importpath = "github.com/nats-io/nats-server/v2",
sum = "h1:i2Ly0B+1+rzNZHHWtD4ZwKi+OU5l+uQo1iDHZ2PmiIc=",
version = "v2.1.2",
)
go_repository(
name = "com_github_nats_io_nkeys",
importpath = "github.com/nats-io/nkeys",
sum = "h1:6JrEfig+HzTH85yxzhSVbjHRJv9cn0p6n3IngIcM5/k=",
version = "v0.1.3",
)
go_repository(
name = "com_github_nats_io_nuid",
importpath = "github.com/nats-io/nuid",
sum = "h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=",
version = "v1.0.1",
)
go_repository(
name = "com_github_niemeyer_pretty",
importpath = "github.com/niemeyer/pretty",
sum = "h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=",
version = "v0.0.0-20200227124842-a10e7caefd8e",
)
go_repository(
name = "com_github_nxadm_tail",
importpath = "github.com/nxadm/tail",
sum = "h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=",
version = "v1.4.8",
)
go_repository(
name = "com_github_oklog_oklog",
importpath = "github.com/oklog/oklog",
sum = "h1:wVfs8F+in6nTBMkA7CbRw+zZMIB7nNM825cM1wuzoTk=",
version = "v0.3.2",
)
go_repository(
name = "com_github_oklog_run",
importpath = "github.com/oklog/run",
sum = "h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_olekukonko_tablewriter",
importpath = "github.com/olekukonko/tablewriter",
sum = "h1:58+kh9C6jJVXYjt8IE48G2eWl6BjwU5Gj0gqY84fy78=",
version = "v0.0.0-20170122224234-a0225b3f23b5",
)
go_repository(
name = "com_github_onsi_ginkgo",
importpath = "github.com/onsi/ginkgo",
sum = "h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=",
version = "v1.16.5",
)
go_repository(
name = "com_github_onsi_ginkgo_v2",
importpath = "github.com/onsi/ginkgo/v2",
sum = "h1:GNapqRSid3zijZ9H77KrgVG4/8KqiyRsxcSxe+7ApXY=",
version = "v2.1.4",
)
go_repository(
name = "com_github_onsi_gomega",
importpath = "github.com/onsi/gomega",
sum = "h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw=",
version = "v1.19.0",
)
go_repository(
name = "com_github_op_go_logging",
importpath = "github.com/op/go-logging",
sum = "h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88=",
version = "v0.0.0-20160315200505-970db520ece7",
)
go_repository(
name = "com_github_opentracing_basictracer_go",
importpath = "github.com/opentracing/basictracer-go",
sum = "h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_opentracing_contrib_go_observer",
importpath = "github.com/opentracing-contrib/go-observer",
sum = "h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU=",
version = "v0.0.0-20170622124052-a52f23424492",
)
go_repository(
name = "com_github_opentracing_opentracing_go",
importpath = "github.com/opentracing/opentracing-go",
sum = "h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=",
version = "v1.1.0",
)
go_repository(
name = "com_github_openzipkin_contrib_zipkin_go_opentracing",
importpath = "github.com/openzipkin-contrib/zipkin-go-opentracing",
sum = "h1:ZCnq+JUrvXcDVhX/xRolRBZifmabN1HcS1wrPSvxhrU=",
version = "v0.4.5",
)
go_repository(
name = "com_github_openzipkin_zipkin_go",
importpath = "github.com/openzipkin/zipkin-go",
sum = "h1:nY8Hti+WKaP0cRsSeQ026wU03QsM762XBeCXBb9NAWI=",
version = "v0.2.2",
)
go_repository(
name = "com_github_pact_foundation_pact_go",
importpath = "github.com/pact-foundation/pact-go",
sum = "h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q=",
version = "v1.0.4",
)
go_repository(
name = "com_github_pascaldekloe_goe",
importpath = "github.com/pascaldekloe/goe",
sum = "h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=",
version = "v0.0.0-20180627143212-57f6aae5913c",
)
go_repository(
name = "com_github_pborman_uuid",
importpath = "github.com/pborman/uuid",
sum = "h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g=",
version = "v1.2.0",
)
go_repository(
name = "com_github_pelletier_go_toml",
importpath = "github.com/pelletier/go-toml",
sum = "h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM=",
version = "v1.9.4",
)
go_repository(
name = "com_github_pelletier_go_toml_v2",
importpath = "github.com/pelletier/go-toml/v2",
sum = "h1:dy81yyLYJDwMTifq24Oi/IslOslRrDSb3jwDggjz3Z0=",
version = "v2.0.0-beta.8",
)
go_repository(
name = "com_github_performancecopilot_speed",
importpath = "github.com/performancecopilot/speed",
sum = "h1:2WnRzIquHa5QxaJKShDkLM+sc0JPuwhXzK8OYOyt3Vg=",
version = "v3.0.0+incompatible",
)
go_repository(
name = "com_github_pierrec_lz4",
importpath = "github.com/pierrec/lz4",
sum = "h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I=",
version = "v2.0.5+incompatible",
)
go_repository(
name = "com_github_pkg_diff",
importpath = "github.com/pkg/diff",
sum = "h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A=",
version = "v0.0.0-20210226163009-20ebb0f2a09e",
)
go_repository(
name = "com_github_pkg_errors",
importpath = "github.com/pkg/errors",
sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
version = "v0.9.1",
)
go_repository(
name = "com_github_pkg_profile",
importpath = "github.com/pkg/profile",
sum = "h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=",
version = "v1.2.1",
)
go_repository(
name = "com_github_pkg_sftp",
importpath = "github.com/pkg/sftp",
sum = "h1:I2qBYMChEhIjOgazfJmV3/mZM256btk6wkCDRmW7JYs=",
version = "v1.13.1",
)
go_repository(
name = "com_github_pmezard_go_difflib",
importpath = "github.com/pmezard/go-difflib",
sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_posener_complete",
importpath = "github.com/posener/complete",
sum = "h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=",
version = "v1.1.1",
)
go_repository(
name = "com_github_prometheus_client_golang",
importpath = "github.com/prometheus/client_golang",
sum = "h1:miYCvYqFXtl/J9FIy8eNpBfYthAEFg+Ys0XyUVEcDsc=",
version = "v1.3.0",
)
go_repository(
name = "com_github_prometheus_client_model",
importpath = "github.com/prometheus/client_model",
sum = "h1:ElTg5tNp4DqfV7UQjDqv2+RJlNzsDtvNAWccbItceIE=",
version = "v0.1.0",
)
go_repository(
name = "com_github_prometheus_common",
importpath = "github.com/prometheus/common",
sum = "h1:L+1lyG48J1zAQXA3RBX/nG/B3gjlHq0zTt2tlbJLyCY=",
version = "v0.7.0",
)
go_repository(
name = "com_github_prometheus_procfs",
importpath = "github.com/prometheus/procfs",
sum = "h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8=",
version = "v0.0.8",
)
go_repository(
name = "com_github_rakyll_statik",
importpath = "github.com/rakyll/statik",
sum = "h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=",
version = "v0.1.7",
)
go_repository(
name = "com_github_rcrowley_go_metrics",
importpath = "github.com/rcrowley/go-metrics",
sum = "h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=",
version = "v0.0.0-20181016184325-3113b8401b8a",
)
go_repository(
name = "com_github_rogpeppe_fastuuid",
importpath = "github.com/rogpeppe/fastuuid",
sum = "h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=",
version = "v0.0.0-20150106093220-6724a57986af",
)
go_repository(
name = "com_github_rogpeppe_go_internal",
importpath = "github.com/rogpeppe/go-internal",
sum = "h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk=",
version = "v1.3.0",
)
go_repository(
name = "com_github_rs_xid",
importpath = "github.com/rs/xid",
sum = "h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc=",
version = "v1.2.1",
)
go_repository(
name = "com_github_rs_zerolog",
importpath = "github.com/rs/zerolog",
sum = "h1:Q3vdXlfLNT+OftyBHsU0Y445MD+8m8axjKgf2si0QcM=",
version = "v1.21.0",
)
go_repository(
name = "com_github_russross_blackfriday_v2",
importpath = "github.com/russross/blackfriday/v2",
sum = "h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=",
version = "v2.1.0",
)
go_repository(
name = "com_github_ryanuber_columnize",
importpath = "github.com/ryanuber/columnize",
sum = "h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M=",
version = "v0.0.0-20160712163229-9b3edd62028f",
)
go_repository(
name = "com_github_sagikazarmark_crypt",
importpath = "github.com/sagikazarmark/crypt",
sum = "h1:K6qABjdpr5rjHCw6q4rSdeM+8kNmdIHvEPDvEMkoai4=",
version = "v0.5.0",
)
go_repository(
name = "com_github_samuel_go_zookeeper",
importpath = "github.com/samuel/go-zookeeper",
sum = "h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU=",
version = "v0.0.0-20190923202752-2cc03de413da",
)
go_repository(
name = "com_github_sean_seed",
importpath = "github.com/sean-/seed",
sum = "h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=",
version = "v0.0.0-20170313163322-e2103e2c3529",
)
go_repository(
name = "com_github_shopify_sarama",
importpath = "github.com/Shopify/sarama",
sum = "h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s=",
version = "v1.19.0",
)
go_repository(
name = "com_github_shopify_toxiproxy",
importpath = "github.com/Shopify/toxiproxy",
sum = "h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=",
version = "v2.1.4+incompatible",
)
go_repository(
name = "com_github_shurcool_sanitized_anchor_name",
importpath = "github.com/shurcooL/sanitized_anchor_name",
sum = "h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_sirupsen_logrus",
importpath = "github.com/sirupsen/logrus",
sum = "h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=",
version = "v1.8.1",
)
go_repository(
name = "com_github_smartystreets_assertions",
importpath = "github.com/smartystreets/assertions",
sum = "h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=",
version = "v0.0.0-20180927180507-b2de0cb4f26d",
)
go_repository(
name = "com_github_smartystreets_goconvey",
importpath = "github.com/smartystreets/goconvey",
sum = "h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=",
version = "v1.6.4",
)
go_repository(
name = "com_github_soheilhy_cmux",
importpath = "github.com/soheilhy/cmux",
sum = "h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E=",
version = "v0.1.4",
)
go_repository(
name = "com_github_sony_gobreaker",
importpath = "github.com/sony/gobreaker",
sum = "h1:oMnRNZXX5j85zso6xCPRNPtmAycat+WcoKbklScLDgQ=",
version = "v0.4.1",
)
go_repository(
name = "com_github_spf13_afero",
importpath = "github.com/spf13/afero",
sum = "h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo=",
version = "v1.8.2",
)
go_repository(
name = "com_github_spf13_cast",
importpath = "github.com/spf13/cast",
sum = "h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA=",
version = "v1.4.1",
)
go_repository(
name = "com_github_spf13_cobra",
importpath = "github.com/spf13/cobra",
sum = "h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=",
version = "v1.4.0",
)
go_repository(
name = "com_github_spf13_jwalterweatherman",
importpath = "github.com/spf13/jwalterweatherman",
sum = "h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=",
version = "v1.1.0",
)
go_repository(
name = "com_github_spf13_pflag",
importpath = "github.com/spf13/pflag",
sum = "h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=",
version = "v1.0.5",
)
go_repository(
name = "com_github_spf13_viper",
importpath = "github.com/spf13/viper",
sum = "h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44=",
version = "v1.11.0",
)
go_repository(
name = "com_github_streadway_amqp",
importpath = "github.com/streadway/amqp",
sum = "h1:WhxRHzgeVGETMlmVfqhRn8RIeeNoPr2Czh33I4Zdccw=",
version = "v0.0.0-20190827072141-edfb9018d271",
)
go_repository(
name = "com_github_streadway_handy",
importpath = "github.com/streadway/handy",
sum = "h1:AhmOdSHeswKHBjhsLs/7+1voOxT+LLrSk/Nxvk35fug=",
version = "v0.0.0-20190108123426-d5acb3125c2a",
)
go_repository(
name = "com_github_stretchr_objx",
importpath = "github.com/stretchr/objx",
sum = "h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=",
version = "v0.1.1",
)
go_repository(
name = "com_github_stretchr_testify",
importpath = "github.com/stretchr/testify",
sum = "h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=",
version = "v1.7.1",
)
go_repository(
name = "com_github_subosito_gotenv",
importpath = "github.com/subosito/gotenv",
sum = "h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=",
version = "v1.2.0",
)
go_repository(
name = "com_github_thrift_iterator_go",
importpath = "github.com/thrift-iterator/go",
sum = "h1:MIx5ElxAmfKzHGb3ptBbq9YE3weh55cH1Mb7VA4Oxbg=",
version = "v0.0.0-20190402154806-9b5a67519118",
)
go_repository(
name = "com_github_tidwall_gjson",
importpath = "github.com/tidwall/gjson",
sum = "h1:iymTbGkQBhveq21bEvAQ81I0LEBork8BFe1CUZXdyuo=",
version = "v1.14.1",
)
go_repository(
name = "com_github_tidwall_match",
importpath = "github.com/tidwall/match",
sum = "h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=",
version = "v1.1.1",
)
go_repository(
name = "com_github_tidwall_pretty",
importpath = "github.com/tidwall/pretty",
sum = "h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=",
version = "v1.2.0",
)
go_repository(
name = "com_github_tidwall_sjson",
importpath = "github.com/tidwall/sjson",
sum = "h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc=",
version = "v1.2.4",
)
go_repository(
name = "com_github_tmc_grpc_websocket_proxy",
importpath = "github.com/tmc/grpc-websocket-proxy",
sum = "h1:ndzgwNDnKIqyCvHTXaCqh9KlOWKvBry6nuXMJmonVsE=",
version = "v0.0.0-20170815181823-89b8d40f7ca8",
)
go_repository(
name = "com_github_ugorji_go",
importpath = "github.com/ugorji/go",
sum = "h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=",
version = "v1.1.7",
)
go_repository(
name = "com_github_ugorji_go_codec",
importpath = "github.com/ugorji/go/codec",
sum = "h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=",
version = "v1.1.7",
)
go_repository(
name = "com_github_urfave_cli",
importpath = "github.com/urfave/cli",
sum = "h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY=",
version = "v1.22.1",
)
go_repository(
name = "com_github_urfave_cli_v2",
importpath = "github.com/urfave/cli/v2",
sum = "h1:CGuYNZF9IKZY/rfBe3lJpccSoIY1ytfvmgQT90cNOl4=",
version = "v2.8.1",
)
go_repository(
name = "com_github_v2pro_plz",
importpath = "github.com/v2pro/plz",
sum = "h1:Vo4wf8YcHE9G7jD6eDG7au3nLGosOxm/DxQO7JR5dAk=",
version = "v0.0.0-20200805122259-422184e41b6e",
)
go_repository(
name = "com_github_v2pro_quokka",
importpath = "github.com/v2pro/quokka",
sum = "h1:hb7P11ytAQIcQ7Cq1uQBNTGgKQle7N+jsP4L72ooa7Q=",
version = "v0.0.0-20171201153428-382cb39c6ee6",
)
go_repository(
name = "com_github_v2pro_wombat",
importpath = "github.com/v2pro/wombat",
sum = "h1:g9qBO/hKkIHxSkyt0/I7R51pFxzVO1tNIUEwhV2yJ28=",
version = "v0.0.0-20180402055224-a56dbdcddef2",
)
go_repository(
name = "com_github_vividcortex_gohistogram",
importpath = "github.com/VividCortex/gohistogram",
sum = "h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_vmihailenco_go_tinylfu",
importpath = "github.com/vmihailenco/go-tinylfu",
sum = "h1:H1eiG6HM36iniK6+21n9LLpzx1G9R3DJa2UjUjbynsI=",
version = "v0.2.2",
)
go_repository(
name = "com_github_vmihailenco_msgpack_v5",
importpath = "github.com/vmihailenco/msgpack/v5",
sum = "h1:qMKAwOV+meBw2Y8k9cVwAy7qErtYCwBzZ2ellBfvnqc=",
version = "v5.3.4",
)
go_repository(
name = "com_github_vmihailenco_tagparser_v2",
importpath = "github.com/vmihailenco/tagparser/v2",
sum = "h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=",
version = "v2.0.0",
)
go_repository(
name = "com_github_xiang90_probing",
importpath = "github.com/xiang90/probing",
sum = "h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8=",
version = "v0.0.0-20190116061207-43a291ad63a2",
)
go_repository(
name = "com_github_xrash_smetrics",
importpath = "github.com/xrash/smetrics",
sum = "h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=",
version = "v0.0.0-20201216005158-039620a65673",
)
go_repository(
name = "com_github_yuin_goldmark",
importpath = "github.com/yuin/goldmark",
sum = "h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM=",
version = "v1.2.1",
)
go_repository(
name = "com_google_cloud_go",
importpath = "cloud.google.com/go",
sum = "h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y=",
version = "v0.100.2",
)
go_repository(
name = "com_google_cloud_go_bigquery",
importpath = "cloud.google.com/go/bigquery",
sum = "h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_compute",
importpath = "cloud.google.com/go/compute",
sum = "h1:b1zWmYuuHz7gO9kDcM/EpHGr06UgsYNRpNJzI2kFiLM=",
version = "v1.5.0",
)
go_repository(
name = "com_google_cloud_go_datastore",
importpath = "cloud.google.com/go/datastore",
sum = "h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=",
version = "v1.1.0",
)
go_repository(
name = "com_google_cloud_go_firestore",
importpath = "cloud.google.com/go/firestore",
sum = "h1:8rBq3zRjnHx8UtBvaOWqBB1xq9jH6/wltfQLlTMh2Fw=",
version = "v1.6.1",
)
go_repository(
name = "com_google_cloud_go_pubsub",
importpath = "cloud.google.com/go/pubsub",
sum = "h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU=",
version = "v1.3.1",
)
go_repository(
name = "com_google_cloud_go_storage",
importpath = "cloud.google.com/go/storage",
sum = "h1:6RRlFMv1omScs6iq2hfE3IvgE+l6RfJPampq8UZc5TU=",
version = "v1.14.0",
)
go_repository(
name = "com_shuralyov_dmitri_gpu_mtl",
importpath = "dmitri.shuralyov.com/gpu/mtl",
sum = "h1:+PdD6GLKejR9DizMAKT5DpSAkKswvZrurk1/eEt9+pw=",
version = "v0.0.0-20201218220906-28db891af037",
)
go_repository(
name = "com_sourcegraph_sourcegraph_appdash",
importpath = "sourcegraph.com/sourcegraph/appdash",
sum = "h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM=",
version = "v0.0.0-20190731080439-ebfcffb1b5c0",
)
go_repository(
name = "in_gopkg_alecthomas_kingpin_v2",
importpath = "gopkg.in/alecthomas/kingpin.v2",
sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=",
version = "v2.2.6",
)
go_repository(
name = "in_gopkg_check_v1",
importpath = "gopkg.in/check.v1",
sum = "h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=",
version = "v1.0.0-20200227125254-8fa46927fb4f",
)
go_repository(
name = "in_gopkg_cheggaaa_pb_v1",
importpath = "gopkg.in/cheggaaa/pb.v1",
sum = "h1:Ev7yu1/f6+d+b3pi5vPdRPc6nNtP1umSfcWiEfRqv6I=",
version = "v1.0.25",
)
go_repository(
name = "in_gopkg_errgo_v2",
importpath = "gopkg.in/errgo.v2",
sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=",
version = "v2.1.0",
)
go_repository(
name = "in_gopkg_fsnotify_v1",
importpath = "gopkg.in/fsnotify.v1",
sum = "h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=",
version = "v1.4.7",
)
go_repository(
name = "in_gopkg_gcfg_v1",
importpath = "gopkg.in/gcfg.v1",
sum = "h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs=",
version = "v1.2.3",
)
go_repository(
name = "in_gopkg_ini_v1",
importpath = "gopkg.in/ini.v1",
sum = "h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4=",
version = "v1.66.4",
)
go_repository(
name = "in_gopkg_natefinch_lumberjack_v2",
importpath = "gopkg.in/natefinch/lumberjack.v2",
sum = "h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=",
version = "v2.0.0",
)
go_repository(
name = "in_gopkg_resty_v1",
importpath = "gopkg.in/resty.v1",
sum = "h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=",
version = "v1.12.0",
)
go_repository(
name = "in_gopkg_telebot_v3",
importpath = "gopkg.in/telebot.v3",
sum = "h1:UgHIiE/RdjoDi6nf4xACM7PU3TqiPVV9vvTydCEnrTo=",
version = "v3.0.0",
)
go_repository(
name = "in_gopkg_tomb_v1",
importpath = "gopkg.in/tomb.v1",
sum = "h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=",
version = "v1.0.0-20141024135613-dd632973f1e7",
)
go_repository(
name = "in_gopkg_warnings_v0",
importpath = "gopkg.in/warnings.v0",
sum = "h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=",
version = "v0.1.2",
)
go_repository(
name = "in_gopkg_yaml_v2",
importpath = "gopkg.in/yaml.v2",
sum = "h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=",
version = "v2.4.0",
)
go_repository(
name = "in_gopkg_yaml_v3",
importpath = "gopkg.in/yaml.v3",
sum = "h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=",
version = "v3.0.0-20210107192922-496545a6307b",
)
go_repository(
name = "io_etcd_go_bbolt",
importpath = "go.etcd.io/bbolt",
sum = "h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=",
version = "v1.3.3",
)
go_repository(
name = "io_etcd_go_etcd",
importpath = "go.etcd.io/etcd",
sum = "h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0=",
version = "v0.0.0-20191023171146-3cf2f69b5738",
)
go_repository(
name = "io_etcd_go_etcd_api_v3",
importpath = "go.etcd.io/etcd/api/v3",
sum = "h1:tXok5yLlKyuQ/SXSjtqHc4uzNaMqZi2XsoSPr/LlJXI=",
version = "v3.5.2",
)
go_repository(
name = "io_etcd_go_etcd_client_pkg_v3",
importpath = "go.etcd.io/etcd/client/pkg/v3",
sum = "h1:4hzqQ6hIb3blLyQ8usCU4h3NghkqcsohEQ3o3VetYxE=",
version = "v3.5.2",
)
go_repository(
name = "io_etcd_go_etcd_client_v2",
importpath = "go.etcd.io/etcd/client/v2",
sum = "h1:ymrVwTkefuqA/rPkSW7/B4ApijbPVefRumkY+stNfS0=",
version = "v2.305.2",
)
go_repository(
name = "io_k8s_sigs_yaml",
importpath = "sigs.k8s.io/yaml",
sum = "h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs=",
version = "v1.1.0",
)
go_repository(
name = "io_opencensus_go",
importpath = "go.opencensus.io",
sum = "h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M=",
version = "v0.23.0",
)
go_repository(
name = "io_opentelemetry_go_otel",
importpath = "go.opentelemetry.io/otel",
sum = "h1:eaP0Fqu7SXHwvjiqDq83zImeehOHX8doTvU9AwXON8g=",
version = "v0.20.0",
)
go_repository(
name = "io_opentelemetry_go_otel_metric",
importpath = "go.opentelemetry.io/otel/metric",
sum = "h1:4kzhXFP+btKm4jwxpjIqjs41A7MakRFUS86bqLHTIw8=",
version = "v0.20.0",
)
go_repository(
name = "io_opentelemetry_go_otel_oteltest",
importpath = "go.opentelemetry.io/otel/oteltest",
sum = "h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw=",
version = "v0.20.0",
)
go_repository(
name = "io_opentelemetry_go_otel_sdk",
importpath = "go.opentelemetry.io/otel/sdk",
sum = "h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8=",
version = "v0.20.0",
)
go_repository(
name = "io_opentelemetry_go_otel_trace",
importpath = "go.opentelemetry.io/otel/trace",
sum = "h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52lqtnbw=",
version = "v0.20.0",
)
go_repository(
name = "io_rsc_binaryregexp",
importpath = "rsc.io/binaryregexp",
sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=",
version = "v0.2.0",
)
go_repository(
name = "io_rsc_quote_v3",
importpath = "rsc.io/quote/v3",
sum = "h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=",
version = "v3.1.0",
)
go_repository(
name = "io_rsc_sampler",
importpath = "rsc.io/sampler",
sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=",
version = "v1.3.0",
)
go_repository(
name = "org_golang_google_api",
importpath = "google.golang.org/api",
sum = "h1:ExR2D+5TYIrMphWgs5JCgwRhEDlPDXXrLwHHMgPHTXE=",
version = "v0.74.0",
)
go_repository(
name = "org_golang_google_appengine",
importpath = "google.golang.org/appengine",
sum = "h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=",
version = "v1.6.7",
)
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:qSNTkEN+L2mvWcLgJOR+8bdHX9rN/IdU3A1Ghpfb1Rg=",
version = "v0.0.0-20220407144326-9054f6ed7bac",
)
go_repository(
name = "org_golang_google_grpc",
importpath = "google.golang.org/grpc",
sum = "h1:NEpgUqV3Z+ZjkqMsxMg11IaDrXY4RY6CQukSGK0uI1M=",
version = "v1.45.0",
)
go_repository(
name = "org_golang_google_protobuf",
importpath = "google.golang.org/protobuf",
sum = "h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=",
version = "v1.28.0",
)
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
sum = "h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA=",
version = "v0.0.0-20220411220226-7b82a4e95df4",
)
go_repository(
name = "org_golang_x_exp",
importpath = "golang.org/x/exp",
sum = "h1:qlrAyYdKz4o7rWVUjiKqQJMa4PEpd55fqBU8jpsl4Iw=",
version = "v0.0.0-20210916165020-5cb4fee858ee",
)
go_repository(
name = "org_golang_x_image",
importpath = "golang.org/x/image",
sum = "h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=",
version = "v0.0.0-20190802002840-cff245a6509b",
)
go_repository(
name = "org_golang_x_lint",
importpath = "golang.org/x/lint",
sum = "h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI=",
version = "v0.0.0-20201208152925-83fdc39ff7b5",
)
go_repository(
name = "org_golang_x_mobile",
importpath = "golang.org/x/mobile",
sum = "h1:kgfVkAEEQXXQ0qc6dH7n6y37NAYmTFmz0YRwrRjgxKw=",
version = "v0.0.0-20201217150744-e6ae53a27f4f",
)
go_repository(
name = "org_golang_x_mod",
importpath = "golang.org/x/mod",
sum = "h1:7Qds88gNaRx0Dz/1wOwXlR7asekh1B1u26wEwN6FcEI=",
version = "v0.5.1-0.20210830214625-1b1db11ec8f4",
)
go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:bRb386wvrE+oBNdF1d/Xh9mQrfQ4ecYhW5qJ5GvTGT4=",
version = "v0.0.0-20220412020605-290c469a71a5",
)
go_repository(
name = "org_golang_x_oauth2",
importpath = "golang.org/x/oauth2",
sum = "h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE=",
version = "v0.0.0-20220411215720-9780585627b5",
)
go_repository(
name = "org_golang_x_sync",
importpath = "golang.org/x/sync",
sum = "h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=",
version = "v0.0.0-20210220032951-036812b2e83c",
)
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=",
version = "v0.0.0-20220412211240-33da011f77ad",
)
go_repository(
name = "org_golang_x_term",
importpath = "golang.org/x/term",
sum = "h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=",
version = "v0.0.0-20210927222741-03fcf44c2211",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
sum = "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
version = "v0.3.7",
)
go_repository(
name = "org_golang_x_time",
importpath = "golang.org/x/time",
sum = "h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=",
version = "v0.0.0-20191024005414-555d28b269f0",
)
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
sum = "h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20=",
version = "v0.1.10",
)
go_repository(
name = "org_golang_x_xerrors",
importpath = "golang.org/x/xerrors",
sum = "h1:GGU+dLjvlC3qDwqYgL6UgRmHXhOOgns0bZu2Ty5mm6U=",
version = "v0.0.0-20220411194840-2f41105eb62f",
)
go_repository(
name = "org_uber_go_atomic",
importpath = "go.uber.org/atomic",
sum = "h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=",
version = "v1.7.0",
)
go_repository(
name = "org_uber_go_multierr",
importpath = "go.uber.org/multierr",
sum = "h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=",
version = "v1.6.0",
)
go_repository(
name = "org_uber_go_tools",
importpath = "go.uber.org/tools",
sum = "h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4=",
version = "v0.0.0-20190618225709-2cfd321de3ee",
)
go_repository(
name = "org_uber_go_zap",
importpath = "go.uber.org/zap",
sum = "h1:uFRZXykJGK9lLY4HtgSw44DnIcAM+kRBP7x5m+NpAOM=",
version = "v1.16.0",
)
| load('@bazel_gazelle//:deps.bzl', 'go_repository')
def go_repositories():
go_repository(name='co_honnef_go_tools', importpath='honnef.co/go/tools', sum='h1:qTakTkI6ni6LFD5sBwwsdSO+AQqbSIxOauHTTQKZ/7o=', version='v0.1.3')
go_repository(name='com_github_afex_hystrix_go', importpath='github.com/afex/hystrix-go', sum='h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw=', version='v0.0.0-20180502004556-fa1af6a1f4f5')
go_repository(name='com_github_alecthomas_template', importpath='github.com/alecthomas/template', sum='h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=', version='v0.0.0-20190718012654-fb15b899a751')
go_repository(name='com_github_alecthomas_units', importpath='github.com/alecthomas/units', sum='h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E=', version='v0.0.0-20190717042225-c3de453c63f4')
go_repository(name='com_github_apache_thrift', importpath='github.com/apache/thrift', sum='h1:qEy6UW60iVOlUy+b9ZR0d5WzUWYGOo4HfopoyBaNmoY=', version='v0.16.0')
go_repository(name='com_github_armon_circbuf', importpath='github.com/armon/circbuf', sum='h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA=', version='v0.0.0-20150827004946-bbbad097214e')
go_repository(name='com_github_armon_go_metrics', importpath='github.com/armon/go-metrics', sum='h1:FR+drcQStOe+32sYyJYyZ7FIdgoGGBnwLl+flodp8Uo=', version='v0.3.10')
go_repository(name='com_github_armon_go_radix', importpath='github.com/armon/go-radix', sum='h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=', version='v0.0.0-20180808171621-7fddfc383310')
go_repository(name='com_github_arran4_golang_ical', importpath='github.com/arran4/golang-ical', sum='h1:mUsKridvWp4dgfkO/QWtgGwuLtZYpjKgsm15JRRik3o=', version='v0.0.0-20220517104411-fd89fefb0182')
go_repository(name='com_github_aryann_difflib', importpath='github.com/aryann/difflib', sum='h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw=', version='v0.0.0-20170710044230-e206f873d14a')
go_repository(name='com_github_aws_aws_lambda_go', importpath='github.com/aws/aws-lambda-go', sum='h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY=', version='v1.13.3')
go_repository(name='com_github_aws_aws_sdk_go', importpath='github.com/aws/aws-sdk-go', sum='h1:0xphMHGMLBrPMfxR2AmVjZKcMEESEgWF8Kru94BNByk=', version='v1.27.0')
go_repository(name='com_github_aws_aws_sdk_go_v2', importpath='github.com/aws/aws-sdk-go-v2', sum='h1:qZ+woO4SamnH/eEbjM2IDLhRNwIwND/RQyVlBLp3Jqg=', version='v0.18.0')
go_repository(name='com_github_beorn7_perks', importpath='github.com/beorn7/perks', sum='h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=', version='v1.0.1')
go_repository(name='com_github_bgentry_speakeasy', importpath='github.com/bgentry/speakeasy', sum='h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=', version='v0.1.0')
go_repository(name='com_github_burntsushi_toml', importpath='github.com/BurntSushi/toml', sum='h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=', version='v1.1.0')
go_repository(name='com_github_burntsushi_xgb', importpath='github.com/BurntSushi/xgb', sum='h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=', version='v0.0.0-20160522181843-27f122750802')
go_repository(name='com_github_casbin_casbin_v2', importpath='github.com/casbin/casbin/v2', sum='h1:bTwon/ECRx9dwBy2ewRVr5OiqjeXSGiTUY74sDPQi/g=', version='v2.1.2')
go_repository(name='com_github_cenkalti_backoff', importpath='github.com/cenkalti/backoff', sum='h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=', version='v2.2.1+incompatible')
go_repository(name='com_github_census_instrumentation_opencensus_proto', importpath='github.com/census-instrumentation/opencensus-proto', sum='h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=', version='v0.2.1')
go_repository(name='com_github_cespare_xxhash_v2', importpath='github.com/cespare/xxhash/v2', sum='h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=', version='v2.1.2')
go_repository(name='com_github_chzyer_logex', importpath='github.com/chzyer/logex', sum='h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=', version='v1.1.10')
go_repository(name='com_github_chzyer_readline', importpath='github.com/chzyer/readline', sum='h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=', version='v0.0.0-20180603132655-2972be24d48e')
go_repository(name='com_github_chzyer_test', importpath='github.com/chzyer/test', sum='h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=', version='v0.0.0-20180213035817-a1ea475d72b1')
go_repository(name='com_github_clbanning_x2j', importpath='github.com/clbanning/x2j', sum='h1:EdRZT3IeKQmfCSrgo8SZ8V3MEnskuJP0wCYNpe+aiXo=', version='v0.0.0-20191024224557-825249438eec')
go_repository(name='com_github_client9_misspell', importpath='github.com/client9/misspell', sum='h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=', version='v0.3.4')
go_repository(name='com_github_cncf_udpa_go', importpath='github.com/cncf/udpa/go', sum='h1:cqQfy1jclcSy/FwLjemeg3SR1yaINm74aQyupQ0Bl8M=', version='v0.0.0-20201120205902-5459f2c99403')
go_repository(name='com_github_cncf_xds_go', importpath='github.com/cncf/xds/go', sum='h1:KwaoQzs/WeUxxJqiJsZ4euOly1Az/IgZXXSxlD/UBNk=', version='v0.0.0-20211130200136-a8f946100490')
go_repository(name='com_github_cockroachdb_datadriven', importpath='github.com/cockroachdb/datadriven', sum='h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y=', version='v0.0.0-20190809214429-80d97fb3cbaa')
go_repository(name='com_github_codahale_hdrhistogram', importpath='github.com/codahale/hdrhistogram', sum='h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w=', version='v0.0.0-20161010025455-3a0bb77429bd')
go_repository(name='com_github_coreos_go_semver', importpath='github.com/coreos/go-semver', sum='h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=', version='v0.3.0')
go_repository(name='com_github_coreos_go_systemd', importpath='github.com/coreos/go-systemd', sum='h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=', version='v0.0.0-20190321100706-95778dfbb74e')
go_repository(name='com_github_coreos_pkg', importpath='github.com/coreos/pkg', sum='h1:CAKfRE2YtTUIjjh1bkBtyYFaUT/WmOqsJjgtihT0vMI=', version='v0.0.0-20160727233714-3ac0863d7acf')
go_repository(name='com_github_cpuguy83_go_md2man_v2', importpath='github.com/cpuguy83/go-md2man/v2', sum='h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=', version='v2.0.1')
go_repository(name='com_github_creack_pty', importpath='github.com/creack/pty', sum='h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=', version='v1.1.9')
go_repository(name='com_github_davecgh_go_spew', importpath='github.com/davecgh/go-spew', sum='h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=', version='v1.1.1')
go_repository(name='com_github_dgrijalva_jwt_go', importpath='github.com/dgrijalva/jwt-go', sum='h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=', version='v3.2.0+incompatible')
go_repository(name='com_github_dgryski_go_rendezvous', importpath='github.com/dgryski/go-rendezvous', sum='h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=', version='v0.0.0-20200823014737-9f7001d12a5f')
go_repository(name='com_github_dustin_go_humanize', importpath='github.com/dustin/go-humanize', sum='h1:qk/FSDDxo05wdJH28W+p5yivv7LuLYLRXPPD8KQCtZs=', version='v0.0.0-20171111073723-bb3d318650d4')
go_repository(name='com_github_eapache_go_resiliency', importpath='github.com/eapache/go-resiliency', sum='h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU=', version='v1.1.0')
go_repository(name='com_github_eapache_go_xerial_snappy', importpath='github.com/eapache/go-xerial-snappy', sum='h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw=', version='v0.0.0-20180814174437-776d5712da21')
go_repository(name='com_github_eapache_queue', importpath='github.com/eapache/queue', sum='h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=', version='v1.1.0')
go_repository(name='com_github_edsrzf_mmap_go', importpath='github.com/edsrzf/mmap-go', sum='h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw=', version='v1.0.0')
go_repository(name='com_github_envoyproxy_go_control_plane', importpath='github.com/envoyproxy/go-control-plane', sum='h1:EmNYJhPYy0pOFjCx2PrgtaBXmee0iUX9hLlxE1xHOJE=', version='v0.9.9-0.20201210154907-fd9021fe5dad')
go_repository(name='com_github_envoyproxy_protoc_gen_validate', importpath='github.com/envoyproxy/protoc-gen-validate', sum='h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=', version='v0.1.0')
go_repository(name='com_github_facebook_fbthrift', importpath='github.com/facebook/fbthrift', sum='h1:ASVG7Ymw4a/T43L4VkUon5QCWvltgxqC2E/OSXebtdE=', version='v0.31.1-0.20220420221333-b45ef2bc4cf8')
go_repository(name='com_github_fatih_color', importpath='github.com/fatih/color', sum='h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=', version='v1.13.0')
go_repository(name='com_github_franela_goblin', importpath='github.com/franela/goblin', sum='h1:gb2Z18BhTPJPpLQWj4T+rfKHYCHxRHCtRxhKKjRidVw=', version='v0.0.0-20200105215937-c9ffbefa60db')
go_repository(name='com_github_franela_goreq', importpath='github.com/franela/goreq', sum='h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54=', version='v0.0.0-20171204163338-bcd34c9993f8')
go_repository(name='com_github_frankban_quicktest', importpath='github.com/frankban/quicktest', sum='h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=', version='v1.14.3')
go_repository(name='com_github_fsnotify_fsnotify', importpath='github.com/fsnotify/fsnotify', sum='h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI=', version='v1.5.1')
go_repository(name='com_github_ghodss_yaml', importpath='github.com/ghodss/yaml', sum='h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=', version='v1.0.0')
go_repository(name='com_github_gin_contrib_sse', importpath='github.com/gin-contrib/sse', sum='h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=', version='v0.1.0')
go_repository(name='com_github_gin_gonic_gin', importpath='github.com/gin-gonic/gin', sum='h1:3DoBmSbJbZAWqXJC3SLjAPfutPJJRN1U5pALB7EeTTs=', version='v1.7.7')
go_repository(name='com_github_go_gl_glfw', importpath='github.com/go-gl/glfw', sum='h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=', version='v0.0.0-20190409004039-e6da0acd62b1')
go_repository(name='com_github_go_gl_glfw_v3_3_glfw', importpath='github.com/go-gl/glfw/v3.3/glfw', sum='h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=', version='v0.0.0-20200222043503-6f7a984d4dc4')
go_repository(name='com_github_go_kit_kit', importpath='github.com/go-kit/kit', sum='h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo=', version='v0.10.0')
go_repository(name='com_github_go_logfmt_logfmt', importpath='github.com/go-logfmt/logfmt', sum='h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=', version='v0.5.0')
go_repository(name='com_github_go_logr_logr', importpath='github.com/go-logr/logr', sum='h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc=', version='v0.4.0')
go_repository(name='com_github_go_playground_assert_v2', importpath='github.com/go-playground/assert/v2', sum='h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=', version='v2.0.1')
go_repository(name='com_github_go_playground_locales', importpath='github.com/go-playground/locales', sum='h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=', version='v0.13.0')
go_repository(name='com_github_go_playground_universal_translator', importpath='github.com/go-playground/universal-translator', sum='h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=', version='v0.17.0')
go_repository(name='com_github_go_playground_validator_v10', importpath='github.com/go-playground/validator/v10', sum='h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE=', version='v10.4.1')
go_repository(name='com_github_go_redis_cache_v8', importpath='github.com/go-redis/cache/v8', sum='h1:+RZ0pQM+zOd6h/oWCsOl3+nsCgii9rn26oCYmU87kN8=', version='v8.4.3')
go_repository(name='com_github_go_redis_redis_v8', importpath='github.com/go-redis/redis/v8', sum='h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=', version='v8.11.5')
go_repository(name='com_github_go_redis_redismock_v8', importpath='github.com/go-redis/redismock/v8', sum='h1:rtuijPgGynsRB2Y7KDACm09WvjHWS4RaG44Nm7rcj4Y=', version='v8.0.6')
go_repository(name='com_github_go_sql_driver_mysql', importpath='github.com/go-sql-driver/mysql', sum='h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk=', version='v1.4.0')
go_repository(name='com_github_go_stack_stack', importpath='github.com/go-stack/stack', sum='h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=', version='v1.8.0')
go_repository(name='com_github_go_task_slim_sprig', importpath='github.com/go-task/slim-sprig', sum='h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I=', version='v0.0.0-20210107165309-348f09dbbbc0')
go_repository(name='com_github_goccy_go_yaml', importpath='github.com/goccy/go-yaml', sum='h1:Eh/+3uk9kLxG4koCX6lRMAPS1OaMSAi+FJcya0INdB0=', version='v1.9.5')
go_repository(name='com_github_gogo_googleapis', importpath='github.com/gogo/googleapis', sum='h1:kFkMAZBNAn4j7K0GiZr8cRYzejq68VbheufiV3YuyFI=', version='v1.1.0')
go_repository(name='com_github_gogo_protobuf', importpath='github.com/gogo/protobuf', sum='h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE=', version='v1.2.1')
go_repository(name='com_github_golang_glog', importpath='github.com/golang/glog', sum='h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=', version='v0.0.0-20160126235308-23def4e6c14b')
go_repository(name='com_github_golang_groupcache', importpath='github.com/golang/groupcache', sum='h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=', version='v0.0.0-20210331224755-41bb18bfe9da')
go_repository(name='com_github_golang_mock', importpath='github.com/golang/mock', sum='h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g=', version='v1.5.0')
go_repository(name='com_github_golang_protobuf', importpath='github.com/golang/protobuf', sum='h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=', version='v1.5.2')
go_repository(name='com_github_golang_snappy', importpath='github.com/golang/snappy', sum='h1:woRePGFeVFfLKN/pOkfl+p/TAqKOfFu+7KPlMVpok/w=', version='v0.0.0-20180518054509-2e65f85255db')
go_repository(name='com_github_google_btree', importpath='github.com/google/btree', sum='h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=', version='v1.0.0')
go_repository(name='com_github_google_go_cmp', importpath='github.com/google/go-cmp', sum='h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=', version='v0.5.7')
go_repository(name='com_github_google_gofuzz', importpath='github.com/google/gofuzz', sum='h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=', version='v1.0.0')
go_repository(name='com_github_google_martian', importpath='github.com/google/martian', sum='h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=', version='v2.1.0+incompatible')
go_repository(name='com_github_google_martian_v3', importpath='github.com/google/martian/v3', sum='h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60=', version='v3.1.0')
go_repository(name='com_github_google_pprof', importpath='github.com/google/pprof', sum='h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE=', version='v0.0.0-20210407192527-94a9f03dee38')
go_repository(name='com_github_google_renameio', importpath='github.com/google/renameio', sum='h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=', version='v0.1.0')
go_repository(name='com_github_google_subcommands', importpath='github.com/google/subcommands', sum='h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=', version='v1.0.1')
go_repository(name='com_github_google_uuid', importpath='github.com/google/uuid', sum='h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=', version='v1.3.0')
go_repository(name='com_github_google_wire', importpath='github.com/google/wire', sum='h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=', version='v0.5.0')
go_repository(name='com_github_googleapis_gax_go_v2', importpath='github.com/googleapis/gax-go/v2', sum='h1:nRJtk3y8Fm770D42QV6T90ZnvFZyk7agSo3Q+Z9p3WI=', version='v2.3.0')
go_repository(name='com_github_googleapis_google_cloud_go_testing', importpath='github.com/googleapis/google-cloud-go-testing', sum='h1:tlyzajkF3030q6M8SvmJSemC9DTHL/xaMa18b65+JM4=', version='v0.0.0-20200911160855-bcd43fbb19e8')
go_repository(name='com_github_gopherjs_gopherjs', importpath='github.com/gopherjs/gopherjs', sum='h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=', version='v0.0.0-20181017120253-0766667cb4d1')
go_repository(name='com_github_gorilla_context', importpath='github.com/gorilla/context', sum='h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=', version='v1.1.1')
go_repository(name='com_github_gorilla_mux', importpath='github.com/gorilla/mux', sum='h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw=', version='v1.7.3')
go_repository(name='com_github_gorilla_websocket', importpath='github.com/gorilla/websocket', sum='h1:Lh2aW+HnU2Nbe1gqD9SOJLJxW1jBMmQOktN2acDyJk8=', version='v0.0.0-20170926233335-4201258b820c')
go_repository(name='com_github_grpc_ecosystem_go_grpc_middleware', importpath='github.com/grpc-ecosystem/go-grpc-middleware', sum='h1:z53tR0945TRRQO/fLEVPI6SMv7ZflF0TEaTAoU7tOzg=', version='v1.0.1-0.20190118093823-f849b5445de4')
go_repository(name='com_github_grpc_ecosystem_go_grpc_prometheus', importpath='github.com/grpc-ecosystem/go-grpc-prometheus', sum='h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=', version='v1.2.0')
go_repository(name='com_github_grpc_ecosystem_grpc_gateway', importpath='github.com/grpc-ecosystem/grpc-gateway', sum='h1:UImYN5qQ8tuGpGE16ZmjvcTtTw24zw1QAp/SlnNrZhI=', version='v1.9.5')
go_repository(name='com_github_hashicorp_consul_api', importpath='github.com/hashicorp/consul/api', sum='h1:k3y1FYv6nuKyNTqj6w9gXOx5r5CfLj/k/euUeBXj1OY=', version='v1.12.0')
go_repository(name='com_github_hashicorp_consul_sdk', importpath='github.com/hashicorp/consul/sdk', sum='h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ=', version='v0.3.0')
go_repository(name='com_github_hashicorp_errwrap', importpath='github.com/hashicorp/errwrap', sum='h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=', version='v1.0.0')
go_repository(name='com_github_hashicorp_go_cleanhttp', importpath='github.com/hashicorp/go-cleanhttp', sum='h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=', version='v0.5.2')
go_repository(name='com_github_hashicorp_go_hclog', importpath='github.com/hashicorp/go-hclog', sum='h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM=', version='v1.2.0')
go_repository(name='com_github_hashicorp_go_immutable_radix', importpath='github.com/hashicorp/go-immutable-radix', sum='h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=', version='v1.3.1')
go_repository(name='com_github_hashicorp_go_msgpack', importpath='github.com/hashicorp/go-msgpack', sum='h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4=', version='v0.5.3')
go_repository(name='com_github_hashicorp_go_multierror', importpath='github.com/hashicorp/go-multierror', sum='h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=', version='v1.0.0')
go_repository(name='com_github_hashicorp_go_net', importpath='github.com/hashicorp/go.net', sum='h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw=', version='v0.0.1')
go_repository(name='com_github_hashicorp_go_rootcerts', importpath='github.com/hashicorp/go-rootcerts', sum='h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc=', version='v1.0.2')
go_repository(name='com_github_hashicorp_go_sockaddr', importpath='github.com/hashicorp/go-sockaddr', sum='h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs=', version='v1.0.0')
go_repository(name='com_github_hashicorp_go_syslog', importpath='github.com/hashicorp/go-syslog', sum='h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=', version='v1.0.0')
go_repository(name='com_github_hashicorp_go_uuid', importpath='github.com/hashicorp/go-uuid', sum='h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=', version='v1.0.1')
go_repository(name='com_github_hashicorp_go_version', importpath='github.com/hashicorp/go-version', sum='h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=', version='v1.2.0')
go_repository(name='com_github_hashicorp_golang_lru', importpath='github.com/hashicorp/golang-lru', sum='h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=', version='v0.5.4')
go_repository(name='com_github_hashicorp_hcl', importpath='github.com/hashicorp/hcl', sum='h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=', version='v1.0.0')
go_repository(name='com_github_hashicorp_logutils', importpath='github.com/hashicorp/logutils', sum='h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=', version='v1.0.0')
go_repository(name='com_github_hashicorp_mdns', importpath='github.com/hashicorp/mdns', sum='h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs=', version='v1.0.0')
go_repository(name='com_github_hashicorp_memberlist', importpath='github.com/hashicorp/memberlist', sum='h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M=', version='v0.1.3')
go_repository(name='com_github_hashicorp_serf', importpath='github.com/hashicorp/serf', sum='h1:hkdgbqizGQHuU5IPqYM1JdSMV8nKfpuOnZYXssk9muY=', version='v0.9.7')
go_repository(name='com_github_hpcloud_tail', importpath='github.com/hpcloud/tail', sum='h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=', version='v1.0.0')
go_repository(name='com_github_hudl_fargo', importpath='github.com/hudl/fargo', sum='h1:0U6+BtN6LhaYuTnIJq4Wyq5cpn6O2kWrxAtcqBmYY6w=', version='v1.3.0')
go_repository(name='com_github_ianlancetaylor_demangle', importpath='github.com/ianlancetaylor/demangle', sum='h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI=', version='v0.0.0-20200824232613-28f6c0f3b639')
go_repository(name='com_github_inconshreveable_mousetrap', importpath='github.com/inconshreveable/mousetrap', sum='h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=', version='v1.0.0')
go_repository(name='com_github_influxdata_influxdb1_client', importpath='github.com/influxdata/influxdb1-client', sum='h1:/WZQPMZNsjZ7IlCpsLGdQBINg5bxKQ1K1sh6awxLtkA=', version='v0.0.0-20191209144304-8bf82d3c094d')
go_repository(name='com_github_jmespath_go_jmespath', importpath='github.com/jmespath/go-jmespath', sum='h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=', version='v0.0.0-20180206201540-c2b33e8439af')
go_repository(name='com_github_jonboulle_clockwork', importpath='github.com/jonboulle/clockwork', sum='h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=', version='v0.1.0')
go_repository(name='com_github_json_iterator_go', importpath='github.com/json-iterator/go', sum='h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=', version='v1.1.12')
go_repository(name='com_github_jstemmer_go_junit_report', importpath='github.com/jstemmer/go-junit-report', sum='h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=', version='v0.9.1')
go_repository(name='com_github_jtolds_gls', importpath='github.com/jtolds/gls', sum='h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=', version='v4.20.0+incompatible')
go_repository(name='com_github_julienschmidt_httprouter', importpath='github.com/julienschmidt/httprouter', sum='h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=', version='v1.2.0')
go_repository(name='com_github_kisielk_errcheck', importpath='github.com/kisielk/errcheck', sum='h1:ZqfnKyx9KGpRcW04j5nnPDgRgoXUeLh2YFBeFzphcA0=', version='v1.1.0')
go_repository(name='com_github_kisielk_gotool', importpath='github.com/kisielk/gotool', sum='h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=', version='v1.0.0')
go_repository(name='com_github_klauspost_compress', importpath='github.com/klauspost/compress', sum='h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc=', version='v1.13.6')
go_repository(name='com_github_knetic_govaluate', importpath='github.com/Knetic/govaluate', sum='h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw=', version='v3.0.1-0.20171022003610-9aa49832a739+incompatible')
go_repository(name='com_github_konsorten_go_windows_terminal_sequences', importpath='github.com/konsorten/go-windows-terminal-sequences', sum='h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=', version='v1.0.1')
go_repository(name='com_github_kr_fs', importpath='github.com/kr/fs', sum='h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=', version='v0.1.0')
go_repository(name='com_github_kr_logfmt', importpath='github.com/kr/logfmt', sum='h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=', version='v0.0.0-20140226030751-b84e30acd515')
go_repository(name='com_github_kr_pretty', importpath='github.com/kr/pretty', sum='h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=', version='v0.1.0')
go_repository(name='com_github_kr_pty', importpath='github.com/kr/pty', sum='h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=', version='v1.1.1')
go_repository(name='com_github_kr_text', importpath='github.com/kr/text', sum='h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=', version='v0.2.0')
go_repository(name='com_github_larksuite_oapi_sdk_go', importpath='github.com/larksuite/oapi-sdk-go', sum='h1:PbwrHpew5eyRxUNJ9h91wDL0V1HDDFqMjIWOmttRpA4=', version='v1.1.44')
go_repository(name='com_github_leodido_go_urn', importpath='github.com/leodido/go-urn', sum='h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=', version='v1.2.0')
go_repository(name='com_github_lightstep_lightstep_tracer_common_golang_gogo', importpath='github.com/lightstep/lightstep-tracer-common/golang/gogo', sum='h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo=', version='v0.0.0-20190605223551-bc2310a04743')
go_repository(name='com_github_lightstep_lightstep_tracer_go', importpath='github.com/lightstep/lightstep-tracer-go', sum='h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuNSc19z330K6vl4zk=', version='v0.18.1')
go_repository(name='com_github_lofanmi_chinese_calendar_golang', importpath='github.com/Lofanmi/chinese-calendar-golang', sum='h1:hWFKGrEqJI14SqwK7GShkaTV1NtQzMZFLFasITmH/LI=', version='v0.0.0-20211214151323-ef5cb443e55e')
go_repository(name='com_github_lyft_protoc_gen_validate', importpath='github.com/lyft/protoc-gen-validate', sum='h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA=', version='v0.0.13')
go_repository(name='com_github_magiconair_properties', importpath='github.com/magiconair/properties', sum='h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=', version='v1.8.6')
go_repository(name='com_github_mattn_go_colorable', importpath='github.com/mattn/go-colorable', sum='h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=', version='v0.1.12')
go_repository(name='com_github_mattn_go_isatty', importpath='github.com/mattn/go-isatty', sum='h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=', version='v0.0.14')
go_repository(name='com_github_mattn_go_runewidth', importpath='github.com/mattn/go-runewidth', sum='h1:UnlwIPBGaTZfPQ6T1IGzPI0EkYAQmT9fAEJ/poFC63o=', version='v0.0.2')
go_repository(name='com_github_matttproud_golang_protobuf_extensions', importpath='github.com/matttproud/golang_protobuf_extensions', sum='h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=', version='v1.0.1')
go_repository(name='com_github_miekg_dns', importpath='github.com/miekg/dns', sum='h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=', version='v1.0.14')
go_repository(name='com_github_mitchellh_cli', importpath='github.com/mitchellh/cli', sum='h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=', version='v1.0.0')
go_repository(name='com_github_mitchellh_go_homedir', importpath='github.com/mitchellh/go-homedir', sum='h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=', version='v1.1.0')
go_repository(name='com_github_mitchellh_go_testing_interface', importpath='github.com/mitchellh/go-testing-interface', sum='h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=', version='v1.0.0')
go_repository(name='com_github_mitchellh_gox', importpath='github.com/mitchellh/gox', sum='h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc=', version='v0.4.0')
go_repository(name='com_github_mitchellh_iochan', importpath='github.com/mitchellh/iochan', sum='h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=', version='v1.0.0')
go_repository(name='com_github_mitchellh_mapstructure', importpath='github.com/mitchellh/mapstructure', sum='h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs=', version='v1.4.3')
go_repository(name='com_github_modern_go_concurrent', importpath='github.com/modern-go/concurrent', sum='h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=', version='v0.0.0-20180306012644-bacd9c7ef1dd')
go_repository(name='com_github_modern_go_reflect2', importpath='github.com/modern-go/reflect2', sum='h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=', version='v1.0.2')
go_repository(name='com_github_mwitkow_go_conntrack', importpath='github.com/mwitkow/go-conntrack', sum='h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=', version='v0.0.0-20161129095857-cc309e4a2223')
go_repository(name='com_github_nats_io_jwt', importpath='github.com/nats-io/jwt', sum='h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI=', version='v0.3.2')
go_repository(name='com_github_nats_io_nats_go', importpath='github.com/nats-io/nats.go', sum='h1:ik3HbLhZ0YABLto7iX80pZLPw/6dx3T+++MZJwLnMrQ=', version='v1.9.1')
go_repository(name='com_github_nats_io_nats_server_v2', importpath='github.com/nats-io/nats-server/v2', sum='h1:i2Ly0B+1+rzNZHHWtD4ZwKi+OU5l+uQo1iDHZ2PmiIc=', version='v2.1.2')
go_repository(name='com_github_nats_io_nkeys', importpath='github.com/nats-io/nkeys', sum='h1:6JrEfig+HzTH85yxzhSVbjHRJv9cn0p6n3IngIcM5/k=', version='v0.1.3')
go_repository(name='com_github_nats_io_nuid', importpath='github.com/nats-io/nuid', sum='h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=', version='v1.0.1')
go_repository(name='com_github_niemeyer_pretty', importpath='github.com/niemeyer/pretty', sum='h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=', version='v0.0.0-20200227124842-a10e7caefd8e')
go_repository(name='com_github_nxadm_tail', importpath='github.com/nxadm/tail', sum='h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=', version='v1.4.8')
go_repository(name='com_github_oklog_oklog', importpath='github.com/oklog/oklog', sum='h1:wVfs8F+in6nTBMkA7CbRw+zZMIB7nNM825cM1wuzoTk=', version='v0.3.2')
go_repository(name='com_github_oklog_run', importpath='github.com/oklog/run', sum='h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=', version='v1.0.0')
go_repository(name='com_github_olekukonko_tablewriter', importpath='github.com/olekukonko/tablewriter', sum='h1:58+kh9C6jJVXYjt8IE48G2eWl6BjwU5Gj0gqY84fy78=', version='v0.0.0-20170122224234-a0225b3f23b5')
go_repository(name='com_github_onsi_ginkgo', importpath='github.com/onsi/ginkgo', sum='h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=', version='v1.16.5')
go_repository(name='com_github_onsi_ginkgo_v2', importpath='github.com/onsi/ginkgo/v2', sum='h1:GNapqRSid3zijZ9H77KrgVG4/8KqiyRsxcSxe+7ApXY=', version='v2.1.4')
go_repository(name='com_github_onsi_gomega', importpath='github.com/onsi/gomega', sum='h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw=', version='v1.19.0')
go_repository(name='com_github_op_go_logging', importpath='github.com/op/go-logging', sum='h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88=', version='v0.0.0-20160315200505-970db520ece7')
go_repository(name='com_github_opentracing_basictracer_go', importpath='github.com/opentracing/basictracer-go', sum='h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo=', version='v1.0.0')
go_repository(name='com_github_opentracing_contrib_go_observer', importpath='github.com/opentracing-contrib/go-observer', sum='h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU=', version='v0.0.0-20170622124052-a52f23424492')
go_repository(name='com_github_opentracing_opentracing_go', importpath='github.com/opentracing/opentracing-go', sum='h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=', version='v1.1.0')
go_repository(name='com_github_openzipkin_contrib_zipkin_go_opentracing', importpath='github.com/openzipkin-contrib/zipkin-go-opentracing', sum='h1:ZCnq+JUrvXcDVhX/xRolRBZifmabN1HcS1wrPSvxhrU=', version='v0.4.5')
go_repository(name='com_github_openzipkin_zipkin_go', importpath='github.com/openzipkin/zipkin-go', sum='h1:nY8Hti+WKaP0cRsSeQ026wU03QsM762XBeCXBb9NAWI=', version='v0.2.2')
go_repository(name='com_github_pact_foundation_pact_go', importpath='github.com/pact-foundation/pact-go', sum='h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q=', version='v1.0.4')
go_repository(name='com_github_pascaldekloe_goe', importpath='github.com/pascaldekloe/goe', sum='h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=', version='v0.0.0-20180627143212-57f6aae5913c')
go_repository(name='com_github_pborman_uuid', importpath='github.com/pborman/uuid', sum='h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g=', version='v1.2.0')
go_repository(name='com_github_pelletier_go_toml', importpath='github.com/pelletier/go-toml', sum='h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM=', version='v1.9.4')
go_repository(name='com_github_pelletier_go_toml_v2', importpath='github.com/pelletier/go-toml/v2', sum='h1:dy81yyLYJDwMTifq24Oi/IslOslRrDSb3jwDggjz3Z0=', version='v2.0.0-beta.8')
go_repository(name='com_github_performancecopilot_speed', importpath='github.com/performancecopilot/speed', sum='h1:2WnRzIquHa5QxaJKShDkLM+sc0JPuwhXzK8OYOyt3Vg=', version='v3.0.0+incompatible')
go_repository(name='com_github_pierrec_lz4', importpath='github.com/pierrec/lz4', sum='h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I=', version='v2.0.5+incompatible')
go_repository(name='com_github_pkg_diff', importpath='github.com/pkg/diff', sum='h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A=', version='v0.0.0-20210226163009-20ebb0f2a09e')
go_repository(name='com_github_pkg_errors', importpath='github.com/pkg/errors', sum='h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=', version='v0.9.1')
go_repository(name='com_github_pkg_profile', importpath='github.com/pkg/profile', sum='h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=', version='v1.2.1')
go_repository(name='com_github_pkg_sftp', importpath='github.com/pkg/sftp', sum='h1:I2qBYMChEhIjOgazfJmV3/mZM256btk6wkCDRmW7JYs=', version='v1.13.1')
go_repository(name='com_github_pmezard_go_difflib', importpath='github.com/pmezard/go-difflib', sum='h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=', version='v1.0.0')
go_repository(name='com_github_posener_complete', importpath='github.com/posener/complete', sum='h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=', version='v1.1.1')
go_repository(name='com_github_prometheus_client_golang', importpath='github.com/prometheus/client_golang', sum='h1:miYCvYqFXtl/J9FIy8eNpBfYthAEFg+Ys0XyUVEcDsc=', version='v1.3.0')
go_repository(name='com_github_prometheus_client_model', importpath='github.com/prometheus/client_model', sum='h1:ElTg5tNp4DqfV7UQjDqv2+RJlNzsDtvNAWccbItceIE=', version='v0.1.0')
go_repository(name='com_github_prometheus_common', importpath='github.com/prometheus/common', sum='h1:L+1lyG48J1zAQXA3RBX/nG/B3gjlHq0zTt2tlbJLyCY=', version='v0.7.0')
go_repository(name='com_github_prometheus_procfs', importpath='github.com/prometheus/procfs', sum='h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8=', version='v0.0.8')
go_repository(name='com_github_rakyll_statik', importpath='github.com/rakyll/statik', sum='h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=', version='v0.1.7')
go_repository(name='com_github_rcrowley_go_metrics', importpath='github.com/rcrowley/go-metrics', sum='h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=', version='v0.0.0-20181016184325-3113b8401b8a')
go_repository(name='com_github_rogpeppe_fastuuid', importpath='github.com/rogpeppe/fastuuid', sum='h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=', version='v0.0.0-20150106093220-6724a57986af')
go_repository(name='com_github_rogpeppe_go_internal', importpath='github.com/rogpeppe/go-internal', sum='h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk=', version='v1.3.0')
go_repository(name='com_github_rs_xid', importpath='github.com/rs/xid', sum='h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc=', version='v1.2.1')
go_repository(name='com_github_rs_zerolog', importpath='github.com/rs/zerolog', sum='h1:Q3vdXlfLNT+OftyBHsU0Y445MD+8m8axjKgf2si0QcM=', version='v1.21.0')
go_repository(name='com_github_russross_blackfriday_v2', importpath='github.com/russross/blackfriday/v2', sum='h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=', version='v2.1.0')
go_repository(name='com_github_ryanuber_columnize', importpath='github.com/ryanuber/columnize', sum='h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M=', version='v0.0.0-20160712163229-9b3edd62028f')
go_repository(name='com_github_sagikazarmark_crypt', importpath='github.com/sagikazarmark/crypt', sum='h1:K6qABjdpr5rjHCw6q4rSdeM+8kNmdIHvEPDvEMkoai4=', version='v0.5.0')
go_repository(name='com_github_samuel_go_zookeeper', importpath='github.com/samuel/go-zookeeper', sum='h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU=', version='v0.0.0-20190923202752-2cc03de413da')
go_repository(name='com_github_sean_seed', importpath='github.com/sean-/seed', sum='h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=', version='v0.0.0-20170313163322-e2103e2c3529')
go_repository(name='com_github_shopify_sarama', importpath='github.com/Shopify/sarama', sum='h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s=', version='v1.19.0')
go_repository(name='com_github_shopify_toxiproxy', importpath='github.com/Shopify/toxiproxy', sum='h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=', version='v2.1.4+incompatible')
go_repository(name='com_github_shurcool_sanitized_anchor_name', importpath='github.com/shurcooL/sanitized_anchor_name', sum='h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=', version='v1.0.0')
go_repository(name='com_github_sirupsen_logrus', importpath='github.com/sirupsen/logrus', sum='h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=', version='v1.8.1')
go_repository(name='com_github_smartystreets_assertions', importpath='github.com/smartystreets/assertions', sum='h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=', version='v0.0.0-20180927180507-b2de0cb4f26d')
go_repository(name='com_github_smartystreets_goconvey', importpath='github.com/smartystreets/goconvey', sum='h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=', version='v1.6.4')
go_repository(name='com_github_soheilhy_cmux', importpath='github.com/soheilhy/cmux', sum='h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E=', version='v0.1.4')
go_repository(name='com_github_sony_gobreaker', importpath='github.com/sony/gobreaker', sum='h1:oMnRNZXX5j85zso6xCPRNPtmAycat+WcoKbklScLDgQ=', version='v0.4.1')
go_repository(name='com_github_spf13_afero', importpath='github.com/spf13/afero', sum='h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo=', version='v1.8.2')
go_repository(name='com_github_spf13_cast', importpath='github.com/spf13/cast', sum='h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA=', version='v1.4.1')
go_repository(name='com_github_spf13_cobra', importpath='github.com/spf13/cobra', sum='h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=', version='v1.4.0')
go_repository(name='com_github_spf13_jwalterweatherman', importpath='github.com/spf13/jwalterweatherman', sum='h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=', version='v1.1.0')
go_repository(name='com_github_spf13_pflag', importpath='github.com/spf13/pflag', sum='h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=', version='v1.0.5')
go_repository(name='com_github_spf13_viper', importpath='github.com/spf13/viper', sum='h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44=', version='v1.11.0')
go_repository(name='com_github_streadway_amqp', importpath='github.com/streadway/amqp', sum='h1:WhxRHzgeVGETMlmVfqhRn8RIeeNoPr2Czh33I4Zdccw=', version='v0.0.0-20190827072141-edfb9018d271')
go_repository(name='com_github_streadway_handy', importpath='github.com/streadway/handy', sum='h1:AhmOdSHeswKHBjhsLs/7+1voOxT+LLrSk/Nxvk35fug=', version='v0.0.0-20190108123426-d5acb3125c2a')
go_repository(name='com_github_stretchr_objx', importpath='github.com/stretchr/objx', sum='h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=', version='v0.1.1')
go_repository(name='com_github_stretchr_testify', importpath='github.com/stretchr/testify', sum='h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=', version='v1.7.1')
go_repository(name='com_github_subosito_gotenv', importpath='github.com/subosito/gotenv', sum='h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=', version='v1.2.0')
go_repository(name='com_github_thrift_iterator_go', importpath='github.com/thrift-iterator/go', sum='h1:MIx5ElxAmfKzHGb3ptBbq9YE3weh55cH1Mb7VA4Oxbg=', version='v0.0.0-20190402154806-9b5a67519118')
go_repository(name='com_github_tidwall_gjson', importpath='github.com/tidwall/gjson', sum='h1:iymTbGkQBhveq21bEvAQ81I0LEBork8BFe1CUZXdyuo=', version='v1.14.1')
go_repository(name='com_github_tidwall_match', importpath='github.com/tidwall/match', sum='h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=', version='v1.1.1')
go_repository(name='com_github_tidwall_pretty', importpath='github.com/tidwall/pretty', sum='h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=', version='v1.2.0')
go_repository(name='com_github_tidwall_sjson', importpath='github.com/tidwall/sjson', sum='h1:cuiLzLnaMeBhRmEv00Lpk3tkYrcxpmbU81tAY4Dw0tc=', version='v1.2.4')
go_repository(name='com_github_tmc_grpc_websocket_proxy', importpath='github.com/tmc/grpc-websocket-proxy', sum='h1:ndzgwNDnKIqyCvHTXaCqh9KlOWKvBry6nuXMJmonVsE=', version='v0.0.0-20170815181823-89b8d40f7ca8')
go_repository(name='com_github_ugorji_go', importpath='github.com/ugorji/go', sum='h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=', version='v1.1.7')
go_repository(name='com_github_ugorji_go_codec', importpath='github.com/ugorji/go/codec', sum='h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=', version='v1.1.7')
go_repository(name='com_github_urfave_cli', importpath='github.com/urfave/cli', sum='h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY=', version='v1.22.1')
go_repository(name='com_github_urfave_cli_v2', importpath='github.com/urfave/cli/v2', sum='h1:CGuYNZF9IKZY/rfBe3lJpccSoIY1ytfvmgQT90cNOl4=', version='v2.8.1')
go_repository(name='com_github_v2pro_plz', importpath='github.com/v2pro/plz', sum='h1:Vo4wf8YcHE9G7jD6eDG7au3nLGosOxm/DxQO7JR5dAk=', version='v0.0.0-20200805122259-422184e41b6e')
go_repository(name='com_github_v2pro_quokka', importpath='github.com/v2pro/quokka', sum='h1:hb7P11ytAQIcQ7Cq1uQBNTGgKQle7N+jsP4L72ooa7Q=', version='v0.0.0-20171201153428-382cb39c6ee6')
go_repository(name='com_github_v2pro_wombat', importpath='github.com/v2pro/wombat', sum='h1:g9qBO/hKkIHxSkyt0/I7R51pFxzVO1tNIUEwhV2yJ28=', version='v0.0.0-20180402055224-a56dbdcddef2')
go_repository(name='com_github_vividcortex_gohistogram', importpath='github.com/VividCortex/gohistogram', sum='h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=', version='v1.0.0')
go_repository(name='com_github_vmihailenco_go_tinylfu', importpath='github.com/vmihailenco/go-tinylfu', sum='h1:H1eiG6HM36iniK6+21n9LLpzx1G9R3DJa2UjUjbynsI=', version='v0.2.2')
go_repository(name='com_github_vmihailenco_msgpack_v5', importpath='github.com/vmihailenco/msgpack/v5', sum='h1:qMKAwOV+meBw2Y8k9cVwAy7qErtYCwBzZ2ellBfvnqc=', version='v5.3.4')
go_repository(name='com_github_vmihailenco_tagparser_v2', importpath='github.com/vmihailenco/tagparser/v2', sum='h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=', version='v2.0.0')
go_repository(name='com_github_xiang90_probing', importpath='github.com/xiang90/probing', sum='h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8=', version='v0.0.0-20190116061207-43a291ad63a2')
go_repository(name='com_github_xrash_smetrics', importpath='github.com/xrash/smetrics', sum='h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=', version='v0.0.0-20201216005158-039620a65673')
go_repository(name='com_github_yuin_goldmark', importpath='github.com/yuin/goldmark', sum='h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM=', version='v1.2.1')
go_repository(name='com_google_cloud_go', importpath='cloud.google.com/go', sum='h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y=', version='v0.100.2')
go_repository(name='com_google_cloud_go_bigquery', importpath='cloud.google.com/go/bigquery', sum='h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=', version='v1.8.0')
go_repository(name='com_google_cloud_go_compute', importpath='cloud.google.com/go/compute', sum='h1:b1zWmYuuHz7gO9kDcM/EpHGr06UgsYNRpNJzI2kFiLM=', version='v1.5.0')
go_repository(name='com_google_cloud_go_datastore', importpath='cloud.google.com/go/datastore', sum='h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=', version='v1.1.0')
go_repository(name='com_google_cloud_go_firestore', importpath='cloud.google.com/go/firestore', sum='h1:8rBq3zRjnHx8UtBvaOWqBB1xq9jH6/wltfQLlTMh2Fw=', version='v1.6.1')
go_repository(name='com_google_cloud_go_pubsub', importpath='cloud.google.com/go/pubsub', sum='h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU=', version='v1.3.1')
go_repository(name='com_google_cloud_go_storage', importpath='cloud.google.com/go/storage', sum='h1:6RRlFMv1omScs6iq2hfE3IvgE+l6RfJPampq8UZc5TU=', version='v1.14.0')
go_repository(name='com_shuralyov_dmitri_gpu_mtl', importpath='dmitri.shuralyov.com/gpu/mtl', sum='h1:+PdD6GLKejR9DizMAKT5DpSAkKswvZrurk1/eEt9+pw=', version='v0.0.0-20201218220906-28db891af037')
go_repository(name='com_sourcegraph_sourcegraph_appdash', importpath='sourcegraph.com/sourcegraph/appdash', sum='h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM=', version='v0.0.0-20190731080439-ebfcffb1b5c0')
go_repository(name='in_gopkg_alecthomas_kingpin_v2', importpath='gopkg.in/alecthomas/kingpin.v2', sum='h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=', version='v2.2.6')
go_repository(name='in_gopkg_check_v1', importpath='gopkg.in/check.v1', sum='h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=', version='v1.0.0-20200227125254-8fa46927fb4f')
go_repository(name='in_gopkg_cheggaaa_pb_v1', importpath='gopkg.in/cheggaaa/pb.v1', sum='h1:Ev7yu1/f6+d+b3pi5vPdRPc6nNtP1umSfcWiEfRqv6I=', version='v1.0.25')
go_repository(name='in_gopkg_errgo_v2', importpath='gopkg.in/errgo.v2', sum='h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=', version='v2.1.0')
go_repository(name='in_gopkg_fsnotify_v1', importpath='gopkg.in/fsnotify.v1', sum='h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=', version='v1.4.7')
go_repository(name='in_gopkg_gcfg_v1', importpath='gopkg.in/gcfg.v1', sum='h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs=', version='v1.2.3')
go_repository(name='in_gopkg_ini_v1', importpath='gopkg.in/ini.v1', sum='h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4=', version='v1.66.4')
go_repository(name='in_gopkg_natefinch_lumberjack_v2', importpath='gopkg.in/natefinch/lumberjack.v2', sum='h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=', version='v2.0.0')
go_repository(name='in_gopkg_resty_v1', importpath='gopkg.in/resty.v1', sum='h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=', version='v1.12.0')
go_repository(name='in_gopkg_telebot_v3', importpath='gopkg.in/telebot.v3', sum='h1:UgHIiE/RdjoDi6nf4xACM7PU3TqiPVV9vvTydCEnrTo=', version='v3.0.0')
go_repository(name='in_gopkg_tomb_v1', importpath='gopkg.in/tomb.v1', sum='h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=', version='v1.0.0-20141024135613-dd632973f1e7')
go_repository(name='in_gopkg_warnings_v0', importpath='gopkg.in/warnings.v0', sum='h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=', version='v0.1.2')
go_repository(name='in_gopkg_yaml_v2', importpath='gopkg.in/yaml.v2', sum='h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=', version='v2.4.0')
go_repository(name='in_gopkg_yaml_v3', importpath='gopkg.in/yaml.v3', sum='h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=', version='v3.0.0-20210107192922-496545a6307b')
go_repository(name='io_etcd_go_bbolt', importpath='go.etcd.io/bbolt', sum='h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=', version='v1.3.3')
go_repository(name='io_etcd_go_etcd', importpath='go.etcd.io/etcd', sum='h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0=', version='v0.0.0-20191023171146-3cf2f69b5738')
go_repository(name='io_etcd_go_etcd_api_v3', importpath='go.etcd.io/etcd/api/v3', sum='h1:tXok5yLlKyuQ/SXSjtqHc4uzNaMqZi2XsoSPr/LlJXI=', version='v3.5.2')
go_repository(name='io_etcd_go_etcd_client_pkg_v3', importpath='go.etcd.io/etcd/client/pkg/v3', sum='h1:4hzqQ6hIb3blLyQ8usCU4h3NghkqcsohEQ3o3VetYxE=', version='v3.5.2')
go_repository(name='io_etcd_go_etcd_client_v2', importpath='go.etcd.io/etcd/client/v2', sum='h1:ymrVwTkefuqA/rPkSW7/B4ApijbPVefRumkY+stNfS0=', version='v2.305.2')
go_repository(name='io_k8s_sigs_yaml', importpath='sigs.k8s.io/yaml', sum='h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs=', version='v1.1.0')
go_repository(name='io_opencensus_go', importpath='go.opencensus.io', sum='h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M=', version='v0.23.0')
go_repository(name='io_opentelemetry_go_otel', importpath='go.opentelemetry.io/otel', sum='h1:eaP0Fqu7SXHwvjiqDq83zImeehOHX8doTvU9AwXON8g=', version='v0.20.0')
go_repository(name='io_opentelemetry_go_otel_metric', importpath='go.opentelemetry.io/otel/metric', sum='h1:4kzhXFP+btKm4jwxpjIqjs41A7MakRFUS86bqLHTIw8=', version='v0.20.0')
go_repository(name='io_opentelemetry_go_otel_oteltest', importpath='go.opentelemetry.io/otel/oteltest', sum='h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw=', version='v0.20.0')
go_repository(name='io_opentelemetry_go_otel_sdk', importpath='go.opentelemetry.io/otel/sdk', sum='h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8=', version='v0.20.0')
go_repository(name='io_opentelemetry_go_otel_trace', importpath='go.opentelemetry.io/otel/trace', sum='h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52lqtnbw=', version='v0.20.0')
go_repository(name='io_rsc_binaryregexp', importpath='rsc.io/binaryregexp', sum='h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=', version='v0.2.0')
go_repository(name='io_rsc_quote_v3', importpath='rsc.io/quote/v3', sum='h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=', version='v3.1.0')
go_repository(name='io_rsc_sampler', importpath='rsc.io/sampler', sum='h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=', version='v1.3.0')
go_repository(name='org_golang_google_api', importpath='google.golang.org/api', sum='h1:ExR2D+5TYIrMphWgs5JCgwRhEDlPDXXrLwHHMgPHTXE=', version='v0.74.0')
go_repository(name='org_golang_google_appengine', importpath='google.golang.org/appengine', sum='h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=', version='v1.6.7')
go_repository(name='org_golang_google_genproto', importpath='google.golang.org/genproto', sum='h1:qSNTkEN+L2mvWcLgJOR+8bdHX9rN/IdU3A1Ghpfb1Rg=', version='v0.0.0-20220407144326-9054f6ed7bac')
go_repository(name='org_golang_google_grpc', importpath='google.golang.org/grpc', sum='h1:NEpgUqV3Z+ZjkqMsxMg11IaDrXY4RY6CQukSGK0uI1M=', version='v1.45.0')
go_repository(name='org_golang_google_protobuf', importpath='google.golang.org/protobuf', sum='h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=', version='v1.28.0')
go_repository(name='org_golang_x_crypto', importpath='golang.org/x/crypto', sum='h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA=', version='v0.0.0-20220411220226-7b82a4e95df4')
go_repository(name='org_golang_x_exp', importpath='golang.org/x/exp', sum='h1:qlrAyYdKz4o7rWVUjiKqQJMa4PEpd55fqBU8jpsl4Iw=', version='v0.0.0-20210916165020-5cb4fee858ee')
go_repository(name='org_golang_x_image', importpath='golang.org/x/image', sum='h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=', version='v0.0.0-20190802002840-cff245a6509b')
go_repository(name='org_golang_x_lint', importpath='golang.org/x/lint', sum='h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI=', version='v0.0.0-20201208152925-83fdc39ff7b5')
go_repository(name='org_golang_x_mobile', importpath='golang.org/x/mobile', sum='h1:kgfVkAEEQXXQ0qc6dH7n6y37NAYmTFmz0YRwrRjgxKw=', version='v0.0.0-20201217150744-e6ae53a27f4f')
go_repository(name='org_golang_x_mod', importpath='golang.org/x/mod', sum='h1:7Qds88gNaRx0Dz/1wOwXlR7asekh1B1u26wEwN6FcEI=', version='v0.5.1-0.20210830214625-1b1db11ec8f4')
go_repository(name='org_golang_x_net', importpath='golang.org/x/net', sum='h1:bRb386wvrE+oBNdF1d/Xh9mQrfQ4ecYhW5qJ5GvTGT4=', version='v0.0.0-20220412020605-290c469a71a5')
go_repository(name='org_golang_x_oauth2', importpath='golang.org/x/oauth2', sum='h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE=', version='v0.0.0-20220411215720-9780585627b5')
go_repository(name='org_golang_x_sync', importpath='golang.org/x/sync', sum='h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=', version='v0.0.0-20210220032951-036812b2e83c')
go_repository(name='org_golang_x_sys', importpath='golang.org/x/sys', sum='h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=', version='v0.0.0-20220412211240-33da011f77ad')
go_repository(name='org_golang_x_term', importpath='golang.org/x/term', sum='h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=', version='v0.0.0-20210927222741-03fcf44c2211')
go_repository(name='org_golang_x_text', importpath='golang.org/x/text', sum='h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=', version='v0.3.7')
go_repository(name='org_golang_x_time', importpath='golang.org/x/time', sum='h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=', version='v0.0.0-20191024005414-555d28b269f0')
go_repository(name='org_golang_x_tools', importpath='golang.org/x/tools', sum='h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20=', version='v0.1.10')
go_repository(name='org_golang_x_xerrors', importpath='golang.org/x/xerrors', sum='h1:GGU+dLjvlC3qDwqYgL6UgRmHXhOOgns0bZu2Ty5mm6U=', version='v0.0.0-20220411194840-2f41105eb62f')
go_repository(name='org_uber_go_atomic', importpath='go.uber.org/atomic', sum='h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=', version='v1.7.0')
go_repository(name='org_uber_go_multierr', importpath='go.uber.org/multierr', sum='h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=', version='v1.6.0')
go_repository(name='org_uber_go_tools', importpath='go.uber.org/tools', sum='h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4=', version='v0.0.0-20190618225709-2cfd321de3ee')
go_repository(name='org_uber_go_zap', importpath='go.uber.org/zap', sum='h1:uFRZXykJGK9lLY4HtgSw44DnIcAM+kRBP7x5m+NpAOM=', version='v1.16.0') |
# Leo colorizer control file for pseudoplain mode.
# This file is in the public domain.
# import leo.core.leoGlobals as g
# Properties for plain mode.
properties = {}
# Attributes dict for pseudoplain_main ruleset.
pseudoplain_main_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "\\",
"highlight_digits": "false",
"ignore_case": "true",
"no_word_sep": "",
}
pseudoplain_interior_main_attributes_dict = {
"default": "comment1",
"digit_re": "",
"escape": "\\",
"highlight_digits": "false",
"ignore_case": "true",
"no_word_sep": "",
}
# Dictionary of attributes dictionaries for plain mode.
attributesDictDict = {
"pseudoplain_main": pseudoplain_main_attributes_dict,
"pseudoplain_interior": pseudoplain_interior_main_attributes_dict,
}
# Keywords dict for pseudoplain_main ruleset.
pseudoplain_main_keywords_dict = {}
# Dictionary of keywords dictionaries for plain mode.
keywordsDictDict = {
"pseudoplain_main": pseudoplain_main_keywords_dict,
}
# Rules for pseudoplain_main ruleset.
def pseudoplain_rule0(colorer, s, i):
return colorer.match_span(s, i, kind="operator", begin="[[", end="]]",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="pseudoplain::interior",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
# Rules dict for pseudoplain_main ruleset.
rulesDict1 = {
"[": [pseudoplain_rule0,],
}
rulesDict2 = {}
# x.rulesDictDict for pseudoplain mode.
rulesDictDict = {
"pseudoplain_main": rulesDict1,
"pseudoplain_interior": rulesDict2,
}
# Import dict for pseudoplain mode.
importDict = {}
| properties = {}
pseudoplain_main_attributes_dict = {'default': 'null', 'digit_re': '', 'escape': '\\', 'highlight_digits': 'false', 'ignore_case': 'true', 'no_word_sep': ''}
pseudoplain_interior_main_attributes_dict = {'default': 'comment1', 'digit_re': '', 'escape': '\\', 'highlight_digits': 'false', 'ignore_case': 'true', 'no_word_sep': ''}
attributes_dict_dict = {'pseudoplain_main': pseudoplain_main_attributes_dict, 'pseudoplain_interior': pseudoplain_interior_main_attributes_dict}
pseudoplain_main_keywords_dict = {}
keywords_dict_dict = {'pseudoplain_main': pseudoplain_main_keywords_dict}
def pseudoplain_rule0(colorer, s, i):
return colorer.match_span(s, i, kind='operator', begin='[[', end=']]', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='pseudoplain::interior', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
rules_dict1 = {'[': [pseudoplain_rule0]}
rules_dict2 = {}
rules_dict_dict = {'pseudoplain_main': rulesDict1, 'pseudoplain_interior': rulesDict2}
import_dict = {} |
"""
some specific bubble sort
"""
def bubble_sort(arr):
times = 0
for i_index in range(len(arr)-1):
j = 0
changed = False
while j < len(arr)-1:
if arr[j] > arr[j + 1]:
arr[j], arr[j+1] = arr[j+1], arr[j]
changed, times = True, times+1
j += 1
if changed:
print(*arr)
if times == 0:
print(*arr)
return arr
if __name__ == '__main__':
with open('input.txt') as file:
n = file.readline()
arr = [int(x) for x in file.readline().strip().split()]
# print(array)
bubble_sort(arr) | """
some specific bubble sort
"""
def bubble_sort(arr):
times = 0
for i_index in range(len(arr) - 1):
j = 0
changed = False
while j < len(arr) - 1:
if arr[j] > arr[j + 1]:
(arr[j], arr[j + 1]) = (arr[j + 1], arr[j])
(changed, times) = (True, times + 1)
j += 1
if changed:
print(*arr)
if times == 0:
print(*arr)
return arr
if __name__ == '__main__':
with open('input.txt') as file:
n = file.readline()
arr = [int(x) for x in file.readline().strip().split()]
bubble_sort(arr) |
champName = ["Aatrox","Ahri","Akali","Alistar","Amumu","Anivia",
"Annie","Ashe","AurelionSol","Azir","Bard","Blitzcrank",
"Brand","Braum","Caitlyn","Camille","Cassiopeia","ChoGath",
"Corki","Darius","Diana","DrMundo","Draven","Ekko",
"Elise","Evelynn","Ezreal","Fiddlesticks","Fiora","Fizz",
"Galio","Gangplank","Garen","Gnar","Gragas","Graves",
"Hecarim","Heimerdinger","Illaoi","Irelia","Ivern","Janna",
"JarvanIV","Jax","Jayce","Jhin","Jinx","KaiSa",
"Kalista","Karma","Karthus","Kassadin","Katarina","Kayle",
"Kayn","Kennen","KhaZix","Kindred","Kled","KogMaw",
"LeBlanc","LeeSin","Leona","Lissandra","Lucian","Lulu",
"Lux","Malphite","Malzahar","Maokai","MasterYi","MissFortune",
"Mordekaiser","Morgana","Nami","Nasus","Nautilus",
"Nidalee","Nocturne","NunuWillump","Olaf","Orianna","Ornn",
"Pantheon","Poppy","Pyke","Quinn","Rakan", "Rammus",
"RekSai","Renekton","Rengar","Riven","Rumble","Ryze",
"Sejuani","Shaco","Shen","Shyvana","Singed","Sion",
"Sivir","Skarner","Sona","Soraka","Swain","Syndra",
"TahmKench","Taliyah","Talon","Taric","Teemo","Thresh",
"Tristana","Trundle","Tryndamere","TwistedFate","Twitch","Udyr",
"Urgot","Varus","Vayne","Veigar","VelKoz","Vi","Viktor",
"Vladimir","Volibear","Warwick","Wukong","Xayah","Xerath",
"XinZhao","Yasuo","Yorick","Zac","Zed","Ziggs",
"Zilean","Zoe","Zyra"]
def ChNameToID(name):
return {'aatrox': '266', 'thresh': '412', 'tryndamere': '23', 'gragas': '79',
'cassiopeia': '69', 'aurelionsol': '136', 'ryze': '13', 'poppy': '78',
'sion': '14', 'annie': '1', 'jhin': '202', 'karma': '43',
'nautilus': '111', 'kled': '240', 'lux': '99', 'ahri': '103',
'olaf': '2', 'viktor': '112', 'anivia': '34', 'singed': '27',
'garen': '86', 'lissandra': '127', 'maokai': '57', 'morgana': '25',
'evelynn': '28', 'fizz': '105', 'heimerdinger': '74', 'zed': '238',
'rumble': '68', 'mordekaiser': '82', 'sona': '37', 'kogmaw': '96',
'zoe': '142', 'katarina': '55', 'lulu': '117', 'ashe': '22',
'karthus': '30', 'alistar': '12', 'xayah': '498', 'darius': '122',
'rakan': '497', 'vayne': '67', 'varus': '110', 'pyke': '555',
'udyr': '77', 'leona': '89', 'ornn': '516', 'jayce': '126',
'syndra': '134', 'pantheon': '80', 'riven': '92', 'khazix': '121',
'corki': '42', 'azir': '268', 'caitlyn': '51', 'nidalee': '76',
'kennen': '85', 'kayn': '141', 'galio': '3', 'veigar': '45',
'bard': '432', 'gnar': '150', 'kaisa': '145', 'malzahar': '90',
'graves': '104', 'vi': '254', 'kayle': '10', 'irelia': '39',
'leesin': '64', 'camille': '164', 'illaoi': '420', 'elise': '60',
'volibear': '106', 'nunuwillump': '20', 'twistedfate': '4', 'jax': '24',
'shyvana': '102', 'kalista': '429', 'drmundo': '36', 'ivern': '427',
'diana': '131', 'tahmkench': '223', 'brand': '63', 'sejuani': '113',
'vladimir': '8', 'zac': '154', 'reksai': '421', 'quinn': '133',
'akali': '84', 'taliyah': '163', 'tristana': '18', 'hecarim': '120',
'sivir': '15', 'lucian': '236', 'rengar': '107', 'warwick': '19',
'skarner': '72', 'malphite': '54', 'yasuo': '157', 'xerath': '101',
'teemo': '17', 'nasus': '75', 'renekton': '58', 'draven': '119',
'shaco': '35', 'swain': '50', 'talon': '91', 'janna': '40',
'ziggs': '115', 'ekko': '245', 'orianna': '61', 'fiora': '114',
'fiddlesticks': '9', 'chogath': '31', 'rammus': '33', 'leblanc': '7',
'ezreal': '81', 'jarvaniv': '59', 'nami': '267', 'zyra': '143',
'velkoz': '161', 'kassadin': '38', 'trundle': '48', 'gangplank': '41',
'amumu': '32', 'taric': '44', 'masteryi': '11', 'twitch': '29',
'xinzhao': '5', 'braum': '201', 'shen': '98', 'blitzcrank': '53',
'wukong': '62', 'missfortune': '21', 'kindred': '203', 'urgot': '6',
'yorick': '83', 'jinx': '222', 'nocturne': '56', 'zilean': '26',
'soraka': '16'
}.get(name,'-1')
| champ_name = ['Aatrox', 'Ahri', 'Akali', 'Alistar', 'Amumu', 'Anivia', 'Annie', 'Ashe', 'AurelionSol', 'Azir', 'Bard', 'Blitzcrank', 'Brand', 'Braum', 'Caitlyn', 'Camille', 'Cassiopeia', 'ChoGath', 'Corki', 'Darius', 'Diana', 'DrMundo', 'Draven', 'Ekko', 'Elise', 'Evelynn', 'Ezreal', 'Fiddlesticks', 'Fiora', 'Fizz', 'Galio', 'Gangplank', 'Garen', 'Gnar', 'Gragas', 'Graves', 'Hecarim', 'Heimerdinger', 'Illaoi', 'Irelia', 'Ivern', 'Janna', 'JarvanIV', 'Jax', 'Jayce', 'Jhin', 'Jinx', 'KaiSa', 'Kalista', 'Karma', 'Karthus', 'Kassadin', 'Katarina', 'Kayle', 'Kayn', 'Kennen', 'KhaZix', 'Kindred', 'Kled', 'KogMaw', 'LeBlanc', 'LeeSin', 'Leona', 'Lissandra', 'Lucian', 'Lulu', 'Lux', 'Malphite', 'Malzahar', 'Maokai', 'MasterYi', 'MissFortune', 'Mordekaiser', 'Morgana', 'Nami', 'Nasus', 'Nautilus', 'Nidalee', 'Nocturne', 'NunuWillump', 'Olaf', 'Orianna', 'Ornn', 'Pantheon', 'Poppy', 'Pyke', 'Quinn', 'Rakan', 'Rammus', 'RekSai', 'Renekton', 'Rengar', 'Riven', 'Rumble', 'Ryze', 'Sejuani', 'Shaco', 'Shen', 'Shyvana', 'Singed', 'Sion', 'Sivir', 'Skarner', 'Sona', 'Soraka', 'Swain', 'Syndra', 'TahmKench', 'Taliyah', 'Talon', 'Taric', 'Teemo', 'Thresh', 'Tristana', 'Trundle', 'Tryndamere', 'TwistedFate', 'Twitch', 'Udyr', 'Urgot', 'Varus', 'Vayne', 'Veigar', 'VelKoz', 'Vi', 'Viktor', 'Vladimir', 'Volibear', 'Warwick', 'Wukong', 'Xayah', 'Xerath', 'XinZhao', 'Yasuo', 'Yorick', 'Zac', 'Zed', 'Ziggs', 'Zilean', 'Zoe', 'Zyra']
def ch_name_to_id(name):
return {'aatrox': '266', 'thresh': '412', 'tryndamere': '23', 'gragas': '79', 'cassiopeia': '69', 'aurelionsol': '136', 'ryze': '13', 'poppy': '78', 'sion': '14', 'annie': '1', 'jhin': '202', 'karma': '43', 'nautilus': '111', 'kled': '240', 'lux': '99', 'ahri': '103', 'olaf': '2', 'viktor': '112', 'anivia': '34', 'singed': '27', 'garen': '86', 'lissandra': '127', 'maokai': '57', 'morgana': '25', 'evelynn': '28', 'fizz': '105', 'heimerdinger': '74', 'zed': '238', 'rumble': '68', 'mordekaiser': '82', 'sona': '37', 'kogmaw': '96', 'zoe': '142', 'katarina': '55', 'lulu': '117', 'ashe': '22', 'karthus': '30', 'alistar': '12', 'xayah': '498', 'darius': '122', 'rakan': '497', 'vayne': '67', 'varus': '110', 'pyke': '555', 'udyr': '77', 'leona': '89', 'ornn': '516', 'jayce': '126', 'syndra': '134', 'pantheon': '80', 'riven': '92', 'khazix': '121', 'corki': '42', 'azir': '268', 'caitlyn': '51', 'nidalee': '76', 'kennen': '85', 'kayn': '141', 'galio': '3', 'veigar': '45', 'bard': '432', 'gnar': '150', 'kaisa': '145', 'malzahar': '90', 'graves': '104', 'vi': '254', 'kayle': '10', 'irelia': '39', 'leesin': '64', 'camille': '164', 'illaoi': '420', 'elise': '60', 'volibear': '106', 'nunuwillump': '20', 'twistedfate': '4', 'jax': '24', 'shyvana': '102', 'kalista': '429', 'drmundo': '36', 'ivern': '427', 'diana': '131', 'tahmkench': '223', 'brand': '63', 'sejuani': '113', 'vladimir': '8', 'zac': '154', 'reksai': '421', 'quinn': '133', 'akali': '84', 'taliyah': '163', 'tristana': '18', 'hecarim': '120', 'sivir': '15', 'lucian': '236', 'rengar': '107', 'warwick': '19', 'skarner': '72', 'malphite': '54', 'yasuo': '157', 'xerath': '101', 'teemo': '17', 'nasus': '75', 'renekton': '58', 'draven': '119', 'shaco': '35', 'swain': '50', 'talon': '91', 'janna': '40', 'ziggs': '115', 'ekko': '245', 'orianna': '61', 'fiora': '114', 'fiddlesticks': '9', 'chogath': '31', 'rammus': '33', 'leblanc': '7', 'ezreal': '81', 'jarvaniv': '59', 'nami': '267', 'zyra': '143', 'velkoz': '161', 'kassadin': '38', 'trundle': '48', 'gangplank': '41', 'amumu': '32', 'taric': '44', 'masteryi': '11', 'twitch': '29', 'xinzhao': '5', 'braum': '201', 'shen': '98', 'blitzcrank': '53', 'wukong': '62', 'missfortune': '21', 'kindred': '203', 'urgot': '6', 'yorick': '83', 'jinx': '222', 'nocturne': '56', 'zilean': '26', 'soraka': '16'}.get(name, '-1') |
def xml_body_p_parse(soup, abstract, keep_abstract):
# we'll save each paragraph to a holding list then join at the end
p_text = []
# keeping the abstract at the begining depending on the input
if keep_abstract == True:
if abstract != '' and abstract != None and abstract == abstract:
p_text.append(abstract)
else:
pass
# search the soup object for body tag
body = soup.find('body')
# if a body tag is found then find the main article tags
if body:
main = body.find_all(['article','component','main'])
if main:
# work though each of these tags if present and look for p tags
for tag in main:
ps = tag.find_all('p')
if ps:
# for every p tag, extract the plain text, stripping the whitespace and making one long string
p_text.extend([p.text.strip() for p in ps if p.text.strip() not in p_text])
# join each p element with a space
p_text = ' '.join(p_text)
else:
# when there is no body tag then the XML is not useful.
print('No Body, looks like a False Positive XML or Abstract Only')
p_text = ''
else:
# when there is no body tag then the XML is not useful.
print('No Body, looks like a False Positive XML or Abstract Only')
p_text = ''
# ensure the p_text is a simplified string format even if the parsing fails
if p_text == [] or p_text == '' or p_text == ' ':
p_text = ''
return p_text | def xml_body_p_parse(soup, abstract, keep_abstract):
p_text = []
if keep_abstract == True:
if abstract != '' and abstract != None and (abstract == abstract):
p_text.append(abstract)
else:
pass
body = soup.find('body')
if body:
main = body.find_all(['article', 'component', 'main'])
if main:
for tag in main:
ps = tag.find_all('p')
if ps:
p_text.extend([p.text.strip() for p in ps if p.text.strip() not in p_text])
p_text = ' '.join(p_text)
else:
print('No Body, looks like a False Positive XML or Abstract Only')
p_text = ''
else:
print('No Body, looks like a False Positive XML or Abstract Only')
p_text = ''
if p_text == [] or p_text == '' or p_text == ' ':
p_text = ''
return p_text |
num_pl = int(input())
pl_list = input()
gift_list = []
mius_list = []
i = 0
times = 0
while True:
if(not(pl_list[i]==' ')):
times += 1
if (times > num_pl):
pl_list += pl_list[times-num_pl-1]
if (i == 0 and times <= num_pl):
gift_list.append(1)
else:
if(pl_list[i] > pl_list[i-1]):
gift_list.append(gift_list[i-1]+1)
mius_list.append(1)
elif(pl_list[i] == pl_list[i-1]):
gift_list.append(gift_list[i-1])
mius_list.append(0)
elif(pl_list[i] < pl_list[i-1]):
if (gift_list[i-1] > 1):
gift_list.append(1)
mius_list.append(gift_list[i]-gift_list[i-1])
else:
gift_list.append(1)
gift_list[i-1] = 2
for j in range(len(mius_list)):
if(mius_list[-1-j] < 2):
b = mius_list.index(mius_list[-1-j])
gift_list[b] += 1
else:
break
mius_list.append(1)
if(times > num_pl and (gift_list[i] == gift_list[times-num_pl-1])):
break
i+=1
print(pl_list)
print(gift_list)
print(sum(gift_list[-1*num_pl::]))
# num=input()
# time_list=input.split('')
# merge=[]
# k={}
# cross_area=[]
# for i in range(int(num)):
# if(i==0):
# merged.append((int(time_list[0]),int(time_list[1]))
# else:
# merged.append((int(time_list[i*2]),int(time_list[i*2+1])))
# merged.sort(key=lamda x:x[0])
# for i,area in enumerate(merged):
# index=i+1
# while (index<len(merged)):
# if(area[0]<=merged[index][0]<area[0]):
# left=max(area[0,merged[index][1]])
# right=min(area[1],merged[index][1])
# if(str(left)+' '+str(right) in k.keys()):
# k[str(left)+' '+str(right)]+=1
# else:
# k[str(left)+' '+str(right)]=2
# index+=1
# else:
# break
# max_k=max(k,items(),key=lamda x:x[1])[1]
# ans=[m for m,v in k.items() if v == max_k]
# if(len(ans)==1):
# print(ans[0])
# else:
# return_ans=[]
# for num in ans:
# return_ans.append([int(num.spit(' ')[0]),int(num.split(' ')[1])])
# return_ans.sort(key=lambda x: x[0])
# for i in range(len(return_ans)):
# temp=i+1
# next=i+1
# while(temp<len(return_ans)):
# if(return_ans[i][1]>=return_ans[temp][0]):
# return_ans[i][1]=return_ans[temp][1]
# temp+=1
# next=temp
# else:
# break
# i=next
# f_ans=max(return_ans,key=lambda x: x[1]-x[0])
# print(str(f_ans[0])+' '+str(f_ans[1]))
| num_pl = int(input())
pl_list = input()
gift_list = []
mius_list = []
i = 0
times = 0
while True:
if not pl_list[i] == ' ':
times += 1
if times > num_pl:
pl_list += pl_list[times - num_pl - 1]
if i == 0 and times <= num_pl:
gift_list.append(1)
elif pl_list[i] > pl_list[i - 1]:
gift_list.append(gift_list[i - 1] + 1)
mius_list.append(1)
elif pl_list[i] == pl_list[i - 1]:
gift_list.append(gift_list[i - 1])
mius_list.append(0)
elif pl_list[i] < pl_list[i - 1]:
if gift_list[i - 1] > 1:
gift_list.append(1)
mius_list.append(gift_list[i] - gift_list[i - 1])
else:
gift_list.append(1)
gift_list[i - 1] = 2
for j in range(len(mius_list)):
if mius_list[-1 - j] < 2:
b = mius_list.index(mius_list[-1 - j])
gift_list[b] += 1
else:
break
mius_list.append(1)
if times > num_pl and gift_list[i] == gift_list[times - num_pl - 1]:
break
i += 1
print(pl_list)
print(gift_list)
print(sum(gift_list[-1 * num_pl:])) |
# Create variable a
_____
# Create variable b
_____
# Print out the sum of a and b
_____________ | _____
_____
_____________ |
class Thumbnails():
"""This is the Factory Client Object that will call an instance of a text reader"""
def __init__(self, imgSourcePath, thumbnailList, saveDir, resize_height=None, resize_width=None, tf_model_path=None, ocr_confidence=None, padding=None):
'''The last 5 parameters resize_height, resize_width, tf_model_path, ocr_confidence and padding are required for OCR only. Barcode or QRC readers do not require these
'''
self._thumbnailList = thumbnailList
self._saveDir = saveDir
self._imgSourcePath = imgSourcePath
self._resize_height = resize_height
self._resize_width = resize_width
self._tf_model_path = tf_model_path
self._ocr_confidence = ocr_confidence
self._padding = padding
def readCode(self, reader):
'''This method initiates the properties dictionary of a particular reader format and inserts addtional properties required relevant to the reader format selected
Parameters:
reader: ReaderFactory() instance - valid options are OCR, Barcode and QRCode
'''
reader.start_object(self._imgSourcePath, self._thumbnailList, self._saveDir)
reader.add_property("new_image_height", self._resize_height)
reader.add_property("new_image_width", self._resize_width)
reader.add_property("tf_model_path", self._tf_model_path)
reader.add_property("ocr_confidence", self._ocr_confidence)
reader.add_property("padding", self._padding) | class Thumbnails:
"""This is the Factory Client Object that will call an instance of a text reader"""
def __init__(self, imgSourcePath, thumbnailList, saveDir, resize_height=None, resize_width=None, tf_model_path=None, ocr_confidence=None, padding=None):
"""The last 5 parameters resize_height, resize_width, tf_model_path, ocr_confidence and padding are required for OCR only. Barcode or QRC readers do not require these
"""
self._thumbnailList = thumbnailList
self._saveDir = saveDir
self._imgSourcePath = imgSourcePath
self._resize_height = resize_height
self._resize_width = resize_width
self._tf_model_path = tf_model_path
self._ocr_confidence = ocr_confidence
self._padding = padding
def read_code(self, reader):
"""This method initiates the properties dictionary of a particular reader format and inserts addtional properties required relevant to the reader format selected
Parameters:
reader: ReaderFactory() instance - valid options are OCR, Barcode and QRCode
"""
reader.start_object(self._imgSourcePath, self._thumbnailList, self._saveDir)
reader.add_property('new_image_height', self._resize_height)
reader.add_property('new_image_width', self._resize_width)
reader.add_property('tf_model_path', self._tf_model_path)
reader.add_property('ocr_confidence', self._ocr_confidence)
reader.add_property('padding', self._padding) |
coreimage = ximport("coreimage")
canvas = coreimage.canvas(150, 150)
def fractal(x, y, depth=64):
z = complex(x, y)
o = complex(0, 0)
for i in range(depth):
if abs(o) <= 2: o = o*o + z
else:
return i
return 0 #default, black
pixels = []
w = h = 150
for i in range(w):
for j in range(h):
v = fractal(float(i)/w, float(j)/h)
pixels.append(color(v/10.0, v/20.0, v/10.0))
l = canvas.append(pixels, w, h)
c = coreimage.canvas(150, 150)
l = c.append(canvas)
c.draw() | coreimage = ximport('coreimage')
canvas = coreimage.canvas(150, 150)
def fractal(x, y, depth=64):
z = complex(x, y)
o = complex(0, 0)
for i in range(depth):
if abs(o) <= 2:
o = o * o + z
else:
return i
return 0
pixels = []
w = h = 150
for i in range(w):
for j in range(h):
v = fractal(float(i) / w, float(j) / h)
pixels.append(color(v / 10.0, v / 20.0, v / 10.0))
l = canvas.append(pixels, w, h)
c = coreimage.canvas(150, 150)
l = c.append(canvas)
c.draw() |
# Heaviside step function
x = 3
theta = None
if x < 0:
theta = 0.
elif x == 0:
theta = 0.5
else:
theta = 1.
print("Theta(" + str(x) + ") = " + str(theta))
| x = 3
theta = None
if x < 0:
theta = 0.0
elif x == 0:
theta = 0.5
else:
theta = 1.0
print('Theta(' + str(x) + ') = ' + str(theta)) |
#
# PySNMP MIB module COLUBRIS-DEVICE-WDS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COLUBRIS-DEVICE-WDS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:25:51 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, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
coDevDisIndex, = mibBuilder.importSymbols("COLUBRIS-DEVICE-MIB", "coDevDisIndex")
colubrisMgmtV2, = mibBuilder.importSymbols("COLUBRIS-SMI", "colubrisMgmtV2")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
ObjectIdentity, Bits, Counter64, NotificationType, Gauge32, ModuleIdentity, TimeTicks, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, MibIdentifier, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Bits", "Counter64", "NotificationType", "Gauge32", "ModuleIdentity", "TimeTicks", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "MibIdentifier", "Counter32")
TruthValue, MacAddress, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "MacAddress", "DisplayString", "TextualConvention")
colubrisDeviceWdsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 8744, 5, 34))
if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setLastUpdated('200908200000Z')
if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setOrganization('Colubris Networks, Inc.')
if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setContactInfo('Colubris Networks Postal: 200 West Street Ste 300 Waltham, Massachusetts 02451-1121 UNITED STATES Phone: +1 781 684 0001 Fax: +1 781 684 0009 E-mail: cn-snmp@colubris.com')
if mibBuilder.loadTexts: colubrisDeviceWdsMIB.setDescription('Colubris Device WDS MIB.')
colubrisDeviceWdsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1))
coDeviceWDSInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2))
coDeviceWDSRadioGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3))
coDeviceWDSGroupGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4))
coDeviceWDSLinkGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5))
coDeviceWDSNetworkScanGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6))
coDeviceWdsInfoTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1), )
if mibBuilder.loadTexts: coDeviceWdsInfoTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWdsInfoTable.setDescription('Device WDS information attributes.')
coDeviceWdsInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"))
if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWdsInfoEntry.setDescription('An entry in the coDeviceWdsInfoTable. coDevDisIndex - Uniquely identifies a device on the controller.')
coDevWDSInfoMaxNumberOfGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setStatus('current')
if mibBuilder.loadTexts: coDevWDSInfoMaxNumberOfGroup.setDescription('Maximum number of local mesh profiles supported by the device.')
coDeviceWDSRadioTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1), )
if mibBuilder.loadTexts: coDeviceWDSRadioTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSRadioTable.setDescription('Conceptual table for the local mesh radio parameters.')
coDeviceWDSRadioEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioIndex"))
if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSRadioEntry.setDescription('An Entry (conceptual row) in the local mesh radio Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSRadioIndex - Radio number where the local mesh radio parameters are applied.')
coDevWDSRadioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3)))
if mibBuilder.loadTexts: coDevWDSRadioIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSRadioIndex.setDescription('Radio number.')
coDevWDSRadioAckDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 2), Unsigned32()).setUnits('km').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setStatus('current')
if mibBuilder.loadTexts: coDevWDSRadioAckDistance.setDescription('Maximum distance between the device and the remote peers.')
coDevWDSRadioQoS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("disabled", 1), ("vlan", 2), ("veryHigh", 3), ("high", 4), ("normal", 5), ("low", 6), ("diffSrv", 7), ("tos", 8), ("ipQos", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSRadioQoS.setStatus('current')
if mibBuilder.loadTexts: coDevWDSRadioQoS.setDescription('QoS priority mechanism used to maps the traffic to one of the four WMM traffic queues.')
coDeviceWDSGroupTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1), )
if mibBuilder.loadTexts: coDeviceWDSGroupTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSGroupTable.setDescription('Conceptual table for the local mesh profiles. This table contains configuration information for the six local mesh profiles.')
coDeviceWDSGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupIndex"))
if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSGroupEntry.setDescription('An Entry (conceptual row) in the local mesh profiles table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh table.')
coDevWDSGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 9)))
if mibBuilder.loadTexts: coDevWDSGroupIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupIndex.setDescription('The auxiliary variable used to identify instances of local mesh profiles.')
coDevWDSGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSGroupName.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupName.setDescription('Friendly name of the local mesh profile.')
coDevWDSGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("discovery", 1), ("negotiation", 2), ("acquisition", 3), ("locked", 4), ("shutdown", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSGroupState.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupState.setDescription('Specifies if the local mesh profileis active on the radios.')
coDevWDSGroupSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("wep", 2), ("tkip", 3), ("aes", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSGroupSecurity.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupSecurity.setDescription('Specifies the encryption used by the local mesh profile.')
coDevWDSGroupDynamicMode = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("alternateMaster", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupDynamicMode.setDescription('Specifies the mode of the dynamic local mesh profile.')
coDevWDSGroupDynamicGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setStatus('current')
if mibBuilder.loadTexts: coDevWDSGroupDynamicGroupId.setDescription('Specifies the mesh ID identifier of the dynamic local mesh profile.')
coDeviceWDSLinkStatusTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1), )
if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatusTable.setDescription('Conceptual table for the status of local mesh links.')
coDeviceWDSLinkStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIndex"))
if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatusEntry.setDescription('An Entry (conceptual row) in the WDS Link status Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkStaIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
coDevWDSLinkStaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaIndex.setDescription('The auxiliary variable used to identify instances of local mesh links.')
coDevWDSLinkStaState = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("down", 1), ("acquiring", 2), ("inactive", 3), ("active", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaState.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaState.setDescription('Specifies the state of the local mesh link.')
coDevWDSLinkStaRadio = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaRadio.setDescription('Radio number where the local mesh peer was detected.')
coDevWDSLinkStaPeerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 4), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaPeerMacAddress.setDescription('MAC address of the local mesh peer.')
coDevWDSLinkStaMaster = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaMaster.setDescription('Determine if this link is a link to a master. Providing upstream network access.')
coDevWDSLinkStaAuthorized = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaAuthorized.setDescription('Encryption, if any, can proceed.')
coDevWDSLinkStaEncryption = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("wep", 2), ("tkip", 3), ("aes", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaEncryption.setDescription('Specifies the encryption used by the local mesh link.')
coDevWDSLinkStaIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaIdleTime.setDescription('Inactivity time.')
coDevWDSLinkStaSNR = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 92))).setUnits('dBm').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaSNR.setDescription('Signal noise ratio of the local mesh peer.')
coDevWDSLinkStaTxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 10), Unsigned32()).setUnits('500Kb/s').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaTxRate.setDescription('Current transmit rate of the local mesh peer.')
coDevWDSLinkStaRxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 11), Unsigned32()).setUnits('500Kb/s').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaRxRate.setDescription('Current receive rate of the local mesh peer.')
coDevWDSLinkStaIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaIfIndex.setDescription('coDevIfStaIfIndex of the associated interface in the device coDeviceIfStatusTable.')
coDevWDSLinkStaHT = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 13), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaHT.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaHT.setDescription('Determine if this link is using HT rates.')
coDevWDSLinkStaTxMCS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 14), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaTxMCS.setDescription('Current transmit MCS of the local mesh peer.')
coDevWDSLinkStaRxMCS = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaRxMCS.setDescription('Current receive MCS of the local mesh peer.')
coDevWDSLinkStaSignal = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 16), Integer32()).setUnits('dBm').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaSignal.setDescription('Strength of the wireless signal.')
coDevWDSLinkStaNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 17), Integer32()).setUnits('dBm').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStaNoise.setDescription('Level of local background noise.')
coDeviceWDSLinkStatsRatesTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2), )
if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesTable.setDescription('Conceptual table for the statistics of local mesh links.')
coDeviceWDSLinkStatsRatesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1), )
coDeviceWDSLinkStatusEntry.registerAugmentions(("COLUBRIS-DEVICE-WDS-MIB", "coDeviceWDSLinkStatsRatesEntry"))
coDeviceWDSLinkStatsRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames())
if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatsRatesEntry.setDescription('An Entry (conceptual row) in the local mesh Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
coDevWDSLinkStsPktsTxRate1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate1.setDescription('Number of frames transmitted at 1 Mbps.')
coDevWDSLinkStsPktsTxRate2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate2.setDescription('Number of frames transmitted at 2 Mbps.')
coDevWDSLinkStsPktsTxRate5dot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate5dot5.setDescription('Number of frames transmitted at 5.5 Mbps.')
coDevWDSLinkStsPktsTxRate11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate11.setDescription('Number of frames transmitted at 11 Mbps.')
coDevWDSLinkStsPktsTxRate6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate6.setDescription('Number of frames transmitted at 6 Mbps.')
coDevWDSLinkStsPktsTxRate9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate9.setDescription('Number of frames transmitted at 9 Mbps.')
coDevWDSLinkStsPktsTxRate12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate12.setDescription('Number of frames transmitted at 12 Mbps.')
coDevWDSLinkStsPktsTxRate18 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate18.setDescription('Number of frames transmitted at 18 Mbps.')
coDevWDSLinkStsPktsTxRate24 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate24.setDescription('Number of frames transmitted at 24 Mbps.')
coDevWDSLinkStsPktsTxRate36 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate36.setDescription('Number of frames transmitted at 36 Mbps.')
coDevWDSLinkStsPktsTxRate48 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate48.setDescription('Number of frames transmitted at 48 Mbps.')
coDevWDSLinkStsPktsTxRate54 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxRate54.setDescription('Number of frames transmitted at 54 Mbps.')
coDevWDSLinkStsPktsRxRate1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate1.setDescription('Number of frames received at 1 Mbps.')
coDevWDSLinkStsPktsRxRate2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate2.setDescription('Number of frames received at 2 Mbps.')
coDevWDSLinkStsPktsRxRate5dot5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate5dot5.setDescription('Number of frames received at 5.5 Mbps.')
coDevWDSLinkStsPktsRxRate11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate11.setDescription('Number of frames received at 11 Mbps.')
coDevWDSLinkStsPktsRxRate6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate6.setDescription('Number of frames received at 6 Mbps.')
coDevWDSLinkStsPktsRxRate9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate9.setDescription('Number of frames received at 9 Mbps.')
coDevWDSLinkStsPktsRxRate12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate12.setDescription('Number of frames received at 12 Mbps.')
coDevWDSLinkStsPktsRxRate18 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate18.setDescription('Number of frames received at 18 Mbps.')
coDevWDSLinkStsPktsRxRate24 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate24.setDescription('Number of frames received at 24 Mbps.')
coDevWDSLinkStsPktsRxRate36 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate36.setDescription('Number of frames received at 36 Mbps.')
coDevWDSLinkStsPktsRxRate48 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate48.setDescription('Number of frames received at 48 Mbps.')
coDevWDSLinkStsPktsRxRate54 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxRate54.setDescription('Number of frames received at 54 Mbps.')
coDeviceWDSLinkStatsHTRatesTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3), )
if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesTable.setDescription('Conceptual table for the statistics of WDS HT links.')
coDeviceWDSLinkStatsHTRatesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1), )
coDeviceWDSLinkStatusEntry.registerAugmentions(("COLUBRIS-DEVICE-WDS-MIB", "coDeviceWDSLinkStatsHTRatesEntry"))
coDeviceWDSLinkStatsHTRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames())
if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSLinkStatsHTRatesEntry.setDescription('An Entry (conceptual row) in the WDS HT Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the MultiService Controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profiletable. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
coDevWDSLinkStsPktsTxMCS0 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS0.setDescription('Number of frames transmitted at MCS0 since the link was established.')
coDevWDSLinkStsPktsTxMCS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS1.setDescription('Number of frames transmitted at MCS1 since the link was established.')
coDevWDSLinkStsPktsTxMCS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS2.setDescription('Number of frames transmitted at MCS2 since the link was established.')
coDevWDSLinkStsPktsTxMCS3 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS3.setDescription('Number of frames transmitted at MCS3 since the link was established.')
coDevWDSLinkStsPktsTxMCS4 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS4.setDescription('Number of frames transmitted at MCS4 since the link was established.')
coDevWDSLinkStsPktsTxMCS5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS5.setDescription('Number of frames transmitted at MCS5 since the link was established.')
coDevWDSLinkStsPktsTxMCS6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS6.setDescription('Number of frames transmitted at MCS6 since the link was established.')
coDevWDSLinkStsPktsTxMCS7 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS7.setDescription('Number of frames transmitted at MCS7 since the link was established.')
coDevWDSLinkStsPktsTxMCS8 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS8.setDescription('Number of frames transmitted at MCS8 since the link was established.')
coDevWDSLinkStsPktsTxMCS9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS9.setDescription('Number of frames transmitted at MCS9 since the link was established.')
coDevWDSLinkStsPktsTxMCS10 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS10.setDescription('Number of frames transmitted at MCS10 since the link was established.')
coDevWDSLinkStsPktsTxMCS11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS11.setDescription('Number of frames transmitted at MCS11 since the link was established.')
coDevWDSLinkStsPktsTxMCS12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS12.setDescription('Number of frames transmitted at MCS12 since the link was established.')
coDevWDSLinkStsPktsTxMCS13 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS13.setDescription('Number of frames transmitted at MCS13 since the link was established.')
coDevWDSLinkStsPktsTxMCS14 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS14.setDescription('Number of frames transmitted at MCS14 since the link was established.')
coDevWDSLinkStsPktsTxMCS15 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsTxMCS15.setDescription('Number of frames transmitted at MCS15 since the link was established.')
coDevWDSLinkStsPktsRxMCS0 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS0.setDescription('Number of frames received at MCS0 since the link was established.')
coDevWDSLinkStsPktsRxMCS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS1.setDescription('Number of frames received at MCS1 since the link was established.')
coDevWDSLinkStsPktsRxMCS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS2.setDescription('Number of frames received at MCS2 since the link was established.')
coDevWDSLinkStsPktsRxMCS3 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS3.setDescription('Number of frames received at MCS3 since the link was established.')
coDevWDSLinkStsPktsRxMCS4 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS4.setDescription('Number of frames received at MCS4 since the link was established.')
coDevWDSLinkStsPktsRxMCS5 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS5.setDescription('Number of frames received at MCS5 since the link was established.')
coDevWDSLinkStsPktsRxMCS6 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS6.setDescription('Number of frames received at MCS6 since the link was established.')
coDevWDSLinkStsPktsRxMCS7 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS7.setDescription('Number of frames received at MCS7 since the link was established.')
coDevWDSLinkStsPktsRxMCS8 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS8.setDescription('Number of frames received at MCS8 since the link was established.')
coDevWDSLinkStsPktsRxMCS9 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS9.setDescription('Number of frames received at MCS9 since the link was established.')
coDevWDSLinkStsPktsRxMCS10 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS10.setDescription('Number of frames received at MCS10 since the link was established.')
coDevWDSLinkStsPktsRxMCS11 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS11.setDescription('Number of frames received at MCS11 since the link was established.')
coDevWDSLinkStsPktsRxMCS12 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS12.setDescription('Number of frames received at MCS12 since the link was established.')
coDevWDSLinkStsPktsRxMCS13 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS13.setDescription('Number of frames received at MCS13 since the link was established.')
coDevWDSLinkStsPktsRxMCS14 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS14.setDescription('Number of frames received at MCS14 since the link was established.')
coDevWDSLinkStsPktsRxMCS15 = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setStatus('current')
if mibBuilder.loadTexts: coDevWDSLinkStsPktsRxMCS15.setDescription('Number of frames received at MCS15 since the link was established.')
coDeviceWDSNetworkScanTable = MibTable((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1), )
if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSNetworkScanTable.setDescription('Conceptual table for the local mesh network scans.')
coDeviceWDSNetworkScanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1), ).setIndexNames((0, "COLUBRIS-DEVICE-MIB", "coDevDisIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanRadioIndex"), (0, "COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanPeerIndex"))
if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setStatus('current')
if mibBuilder.loadTexts: coDeviceWDSNetworkScanEntry.setDescription('An Entry (conceptual row) in the WDS Network Scan Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSScanRadioIndex - Radio number where the local mesh peer was detected. coDevWDSScanPeerIndex - Uniquely identify a local mesh peer on a radio inside the local mesh network scan table.')
coDevWDSScanRadioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3)))
if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanRadioIndex.setDescription('Radio number where the local mesh peer was detected.')
coDevWDSScanPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)))
if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanPeerIndex.setDescription('Uniquely identify a local mesh peer on a radio.')
coDevWDSScanGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanGroupId.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanGroupId.setDescription('Group id used by the local mesh peer.')
coDevWDSScanPeerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 4), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanPeerMacAddress.setDescription('MAC address of the local mesh peer.')
coDevWDSScanChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 199))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanChannel.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanChannel.setDescription('Channel on which the peer is transmitting.')
coDevWDSScanSNR = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 92))).setUnits('dBm').setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanSNR.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanSNR.setDescription('Signal noise ratio of the local mesh peer.')
coDevWDSScanMode = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("alternateMaster", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanMode.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanMode.setDescription('Current mode of the local mesh peer.')
coDevWDSScanAvailable = MibTableColumn((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: coDevWDSScanAvailable.setStatus('current')
if mibBuilder.loadTexts: coDevWDSScanAvailable.setDescription('Peer is accepting connections.')
colubrisDeviceWdsMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2))
colubrisDeviceWdsMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2, 0))
colubrisDeviceWdsMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3))
colubrisDeviceWdsMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1))
colubrisDeviceWdsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2))
colubrisDeviceWdsMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1, 1)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsInfoMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsRadioMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsGroupMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsLinkMIBGroup"), ("COLUBRIS-DEVICE-WDS-MIB", "colubrisDeviceWdsNetworkScanMIBGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsMIBCompliance = colubrisDeviceWdsMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsMIBCompliance.setDescription('The compliance statement for the device local mesh MIB.')
colubrisDeviceWdsInfoMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 1)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSInfoMaxNumberOfGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsInfoMIBGroup = colubrisDeviceWdsInfoMIBGroup.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsInfoMIBGroup.setDescription('A collection of objects for the device local mesh information group.')
colubrisDeviceWdsRadioMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 2)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioAckDistance"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSRadioQoS"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsRadioMIBGroup = colubrisDeviceWdsRadioMIBGroup.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsRadioMIBGroup.setDescription('A collection of objects for the device local mesh radio group.')
colubrisDeviceWdsGroupMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 3)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupName"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupState"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupSecurity"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupDynamicMode"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSGroupDynamicGroupId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsGroupMIBGroup = colubrisDeviceWdsGroupMIBGroup.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsGroupMIBGroup.setDescription('A collection of objects for the device local mesh group group.')
colubrisDeviceWdsLinkMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 4)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaState"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRadio"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaPeerMacAddress"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaMaster"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaAuthorized"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaEncryption"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIdleTime"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaSNR"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaTxRate"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRxRate"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaIfIndex"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaHT"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaTxMCS"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaRxMCS"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaSignal"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStaNoise"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate5dot5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate18"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate24"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate36"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate48"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxRate54"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate5dot5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate18"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate24"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate36"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate48"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxRate54"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS0"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS3"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS4"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS7"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS8"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS10"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS13"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS14"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsTxMCS15"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS0"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS1"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS2"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS3"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS4"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS5"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS6"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS7"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS8"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS9"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS10"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS11"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS12"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS13"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS14"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSLinkStsPktsRxMCS15"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsLinkMIBGroup = colubrisDeviceWdsLinkMIBGroup.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsLinkMIBGroup.setDescription('A collection of objects for the device local mesh link group.')
colubrisDeviceWdsNetworkScanMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 5)).setObjects(("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanGroupId"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanPeerMacAddress"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanChannel"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanSNR"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanMode"), ("COLUBRIS-DEVICE-WDS-MIB", "coDevWDSScanAvailable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubrisDeviceWdsNetworkScanMIBGroup = colubrisDeviceWdsNetworkScanMIBGroup.setStatus('current')
if mibBuilder.loadTexts: colubrisDeviceWdsNetworkScanMIBGroup.setDescription('A collection of objects for the device local mesh network scan group.')
mibBuilder.exportSymbols("COLUBRIS-DEVICE-WDS-MIB", coDevWDSLinkStsPktsTxRate11=coDevWDSLinkStsPktsTxRate11, coDevWDSLinkStsPktsRxRate36=coDevWDSLinkStsPktsRxRate36, coDevWDSRadioAckDistance=coDevWDSRadioAckDistance, coDevWDSLinkStsPktsRxMCS4=coDevWDSLinkStsPktsRxMCS4, coDevWDSLinkStaHT=coDevWDSLinkStaHT, coDevWDSScanSNR=coDevWDSScanSNR, coDevWDSLinkStsPktsRxRate12=coDevWDSLinkStsPktsRxRate12, coDevWDSRadioIndex=coDevWDSRadioIndex, colubrisDeviceWdsMIBGroups=colubrisDeviceWdsMIBGroups, colubrisDeviceWdsLinkMIBGroup=colubrisDeviceWdsLinkMIBGroup, coDevWDSLinkStsPktsTxRate48=coDevWDSLinkStsPktsTxRate48, coDevWDSLinkStsPktsRxMCS0=coDevWDSLinkStsPktsRxMCS0, coDevWDSLinkStaMaster=coDevWDSLinkStaMaster, coDevWDSLinkStsPktsTxMCS11=coDevWDSLinkStsPktsTxMCS11, coDevWDSLinkStsPktsTxMCS9=coDevWDSLinkStsPktsTxMCS9, coDevWDSLinkStsPktsRxRate6=coDevWDSLinkStsPktsRxRate6, coDeviceWDSInfoGroup=coDeviceWDSInfoGroup, coDevWDSLinkStsPktsTxMCS1=coDevWDSLinkStsPktsTxMCS1, coDevWDSLinkStsPktsRxMCS1=coDevWDSLinkStsPktsRxMCS1, coDevWDSLinkStsPktsRxMCS10=coDevWDSLinkStsPktsRxMCS10, coDevWDSLinkStsPktsRxRate24=coDevWDSLinkStsPktsRxRate24, coDevWDSLinkStaRadio=coDevWDSLinkStaRadio, coDevWDSLinkStsPktsTxRate1=coDevWDSLinkStsPktsTxRate1, colubrisDeviceWdsRadioMIBGroup=colubrisDeviceWdsRadioMIBGroup, colubrisDeviceWdsMIBObjects=colubrisDeviceWdsMIBObjects, coDevWDSGroupState=coDevWDSGroupState, coDevWDSLinkStsPktsRxMCS12=coDevWDSLinkStsPktsRxMCS12, coDevWDSLinkStsPktsTxMCS14=coDevWDSLinkStsPktsTxMCS14, coDeviceWDSNetworkScanGroup=coDeviceWDSNetworkScanGroup, coDevWDSLinkStsPktsRxRate1=coDevWDSLinkStsPktsRxRate1, colubrisDeviceWdsMIBNotifications=colubrisDeviceWdsMIBNotifications, coDevWDSLinkStsPktsTxMCS3=coDevWDSLinkStsPktsTxMCS3, coDevWDSLinkStsPktsRxRate11=coDevWDSLinkStsPktsRxRate11, coDevWDSLinkStaIdleTime=coDevWDSLinkStaIdleTime, coDevWDSLinkStaSignal=coDevWDSLinkStaSignal, coDeviceWDSLinkStatsHTRatesEntry=coDeviceWDSLinkStatsHTRatesEntry, coDevWDSLinkStsPktsRxMCS2=coDevWDSLinkStsPktsRxMCS2, coDevWDSScanMode=coDevWDSScanMode, coDevWDSLinkStsPktsTxMCS13=coDevWDSLinkStsPktsTxMCS13, coDevWDSLinkStsPktsTxMCS4=coDevWDSLinkStsPktsTxMCS4, coDeviceWDSGroupTable=coDeviceWDSGroupTable, coDevWDSScanPeerIndex=coDevWDSScanPeerIndex, coDeviceWDSLinkStatsHTRatesTable=coDeviceWDSLinkStatsHTRatesTable, coDevWDSLinkStsPktsRxMCS15=coDevWDSLinkStsPktsRxMCS15, coDevWDSGroupDynamicGroupId=coDevWDSGroupDynamicGroupId, colubrisDeviceWdsMIBCompliance=colubrisDeviceWdsMIBCompliance, coDeviceWDSNetworkScanEntry=coDeviceWDSNetworkScanEntry, coDevWDSLinkStaRxRate=coDevWDSLinkStaRxRate, coDevWDSLinkStsPktsTxRate6=coDevWDSLinkStsPktsTxRate6, coDevWDSLinkStsPktsTxRate18=coDevWDSLinkStsPktsTxRate18, coDevWDSRadioQoS=coDevWDSRadioQoS, coDevWDSGroupSecurity=coDevWDSGroupSecurity, coDevWDSLinkStaRxMCS=coDevWDSLinkStaRxMCS, coDevWDSLinkStsPktsRxMCS7=coDevWDSLinkStsPktsRxMCS7, coDevWDSInfoMaxNumberOfGroup=coDevWDSInfoMaxNumberOfGroup, coDevWDSLinkStsPktsRxMCS6=coDevWDSLinkStsPktsRxMCS6, colubrisDeviceWdsMIBNotificationPrefix=colubrisDeviceWdsMIBNotificationPrefix, coDevWDSLinkStsPktsTxRate12=coDevWDSLinkStsPktsTxRate12, coDevWDSLinkStsPktsTxRate24=coDevWDSLinkStsPktsTxRate24, coDeviceWDSLinkStatsRatesEntry=coDeviceWDSLinkStatsRatesEntry, coDevWDSLinkStsPktsTxMCS2=coDevWDSLinkStsPktsTxMCS2, coDevWDSLinkStsPktsTxMCS8=coDevWDSLinkStsPktsTxMCS8, coDevWDSLinkStsPktsTxMCS10=coDevWDSLinkStsPktsTxMCS10, coDevWDSLinkStsPktsTxMCS6=coDevWDSLinkStsPktsTxMCS6, coDevWDSLinkStsPktsTxRate2=coDevWDSLinkStsPktsTxRate2, coDevWDSScanChannel=coDevWDSScanChannel, coDevWDSLinkStaIndex=coDevWDSLinkStaIndex, coDevWDSLinkStsPktsTxRate9=coDevWDSLinkStsPktsTxRate9, coDevWDSLinkStsPktsTxMCS12=coDevWDSLinkStsPktsTxMCS12, colubrisDeviceWdsMIBCompliances=colubrisDeviceWdsMIBCompliances, colubrisDeviceWdsGroupMIBGroup=colubrisDeviceWdsGroupMIBGroup, coDevWDSGroupName=coDevWDSGroupName, coDeviceWdsInfoEntry=coDeviceWdsInfoEntry, coDevWDSLinkStsPktsRxMCS8=coDevWDSLinkStsPktsRxMCS8, coDeviceWdsInfoTable=coDeviceWdsInfoTable, coDeviceWDSLinkStatusEntry=coDeviceWDSLinkStatusEntry, coDevWDSLinkStsPktsRxMCS3=coDevWDSLinkStsPktsRxMCS3, coDevWDSScanAvailable=coDevWDSScanAvailable, coDevWDSLinkStaIfIndex=coDevWDSLinkStaIfIndex, coDevWDSLinkStsPktsRxRate54=coDevWDSLinkStsPktsRxRate54, coDevWDSGroupIndex=coDevWDSGroupIndex, colubrisDeviceWdsMIBConformance=colubrisDeviceWdsMIBConformance, coDevWDSLinkStsPktsRxMCS14=coDevWDSLinkStsPktsRxMCS14, coDevWDSLinkStsPktsRxRate48=coDevWDSLinkStsPktsRxRate48, PYSNMP_MODULE_ID=colubrisDeviceWdsMIB, coDevWDSLinkStsPktsRxMCS11=coDevWDSLinkStsPktsRxMCS11, coDevWDSLinkStsPktsRxRate18=coDevWDSLinkStsPktsRxRate18, colubrisDeviceWdsInfoMIBGroup=colubrisDeviceWdsInfoMIBGroup, coDevWDSLinkStsPktsTxRate36=coDevWDSLinkStsPktsTxRate36, coDevWDSLinkStaPeerMacAddress=coDevWDSLinkStaPeerMacAddress, coDevWDSLinkStsPktsRxRate9=coDevWDSLinkStsPktsRxRate9, coDeviceWDSRadioGroup=coDeviceWDSRadioGroup, coDevWDSLinkStsPktsRxRate5dot5=coDevWDSLinkStsPktsRxRate5dot5, coDevWDSLinkStaTxMCS=coDevWDSLinkStaTxMCS, coDevWDSLinkStsPktsTxMCS15=coDevWDSLinkStsPktsTxMCS15, coDevWDSLinkStsPktsRxMCS9=coDevWDSLinkStsPktsRxMCS9, coDevWDSLinkStsPktsTxRate5dot5=coDevWDSLinkStsPktsTxRate5dot5, coDevWDSLinkStsPktsRxMCS13=coDevWDSLinkStsPktsRxMCS13, coDevWDSLinkStsPktsTxMCS0=coDevWDSLinkStsPktsTxMCS0, coDevWDSScanRadioIndex=coDevWDSScanRadioIndex, coDevWDSLinkStsPktsRxRate2=coDevWDSLinkStsPktsRxRate2, coDevWDSLinkStaTxRate=coDevWDSLinkStaTxRate, coDevWDSLinkStaNoise=coDevWDSLinkStaNoise, coDeviceWDSGroupGroup=coDeviceWDSGroupGroup, coDevWDSLinkStsPktsTxRate54=coDevWDSLinkStsPktsTxRate54, colubrisDeviceWdsNetworkScanMIBGroup=colubrisDeviceWdsNetworkScanMIBGroup, coDevWDSScanPeerMacAddress=coDevWDSScanPeerMacAddress, coDeviceWDSLinkGroup=coDeviceWDSLinkGroup, coDevWDSScanGroupId=coDevWDSScanGroupId, coDevWDSGroupDynamicMode=coDevWDSGroupDynamicMode, coDeviceWDSNetworkScanTable=coDeviceWDSNetworkScanTable, coDevWDSLinkStsPktsTxMCS7=coDevWDSLinkStsPktsTxMCS7, coDeviceWDSGroupEntry=coDeviceWDSGroupEntry, coDeviceWDSRadioEntry=coDeviceWDSRadioEntry, coDevWDSLinkStaState=coDevWDSLinkStaState, colubrisDeviceWdsMIB=colubrisDeviceWdsMIB, coDevWDSLinkStaEncryption=coDevWDSLinkStaEncryption, coDeviceWDSLinkStatsRatesTable=coDeviceWDSLinkStatsRatesTable, coDeviceWDSRadioTable=coDeviceWDSRadioTable, coDeviceWDSLinkStatusTable=coDeviceWDSLinkStatusTable, coDevWDSLinkStaAuthorized=coDevWDSLinkStaAuthorized, coDevWDSLinkStsPktsTxMCS5=coDevWDSLinkStsPktsTxMCS5, coDevWDSLinkStsPktsRxMCS5=coDevWDSLinkStsPktsRxMCS5, coDevWDSLinkStaSNR=coDevWDSLinkStaSNR)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(co_dev_dis_index,) = mibBuilder.importSymbols('COLUBRIS-DEVICE-MIB', 'coDevDisIndex')
(colubris_mgmt_v2,) = mibBuilder.importSymbols('COLUBRIS-SMI', 'colubrisMgmtV2')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(object_identity, bits, counter64, notification_type, gauge32, module_identity, time_ticks, unsigned32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, mib_identifier, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Bits', 'Counter64', 'NotificationType', 'Gauge32', 'ModuleIdentity', 'TimeTicks', 'Unsigned32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'MibIdentifier', 'Counter32')
(truth_value, mac_address, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'MacAddress', 'DisplayString', 'TextualConvention')
colubris_device_wds_mib = module_identity((1, 3, 6, 1, 4, 1, 8744, 5, 34))
if mibBuilder.loadTexts:
colubrisDeviceWdsMIB.setLastUpdated('200908200000Z')
if mibBuilder.loadTexts:
colubrisDeviceWdsMIB.setOrganization('Colubris Networks, Inc.')
if mibBuilder.loadTexts:
colubrisDeviceWdsMIB.setContactInfo('Colubris Networks Postal: 200 West Street Ste 300 Waltham, Massachusetts 02451-1121 UNITED STATES Phone: +1 781 684 0001 Fax: +1 781 684 0009 E-mail: cn-snmp@colubris.com')
if mibBuilder.loadTexts:
colubrisDeviceWdsMIB.setDescription('Colubris Device WDS MIB.')
colubris_device_wds_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1))
co_device_wds_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2))
co_device_wds_radio_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3))
co_device_wds_group_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4))
co_device_wds_link_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5))
co_device_wds_network_scan_group = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6))
co_device_wds_info_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1))
if mibBuilder.loadTexts:
coDeviceWdsInfoTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWdsInfoTable.setDescription('Device WDS information attributes.')
co_device_wds_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'))
if mibBuilder.loadTexts:
coDeviceWdsInfoEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWdsInfoEntry.setDescription('An entry in the coDeviceWdsInfoTable. coDevDisIndex - Uniquely identifies a device on the controller.')
co_dev_wds_info_max_number_of_group = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSInfoMaxNumberOfGroup.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSInfoMaxNumberOfGroup.setDescription('Maximum number of local mesh profiles supported by the device.')
co_device_wds_radio_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1))
if mibBuilder.loadTexts:
coDeviceWDSRadioTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSRadioTable.setDescription('Conceptual table for the local mesh radio parameters.')
co_device_wds_radio_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioIndex'))
if mibBuilder.loadTexts:
coDeviceWDSRadioEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSRadioEntry.setDescription('An Entry (conceptual row) in the local mesh radio Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSRadioIndex - Radio number where the local mesh radio parameters are applied.')
co_dev_wds_radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3)))
if mibBuilder.loadTexts:
coDevWDSRadioIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSRadioIndex.setDescription('Radio number.')
co_dev_wds_radio_ack_distance = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 2), unsigned32()).setUnits('km').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSRadioAckDistance.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSRadioAckDistance.setDescription('Maximum distance between the device and the remote peers.')
co_dev_wds_radio_qo_s = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('disabled', 1), ('vlan', 2), ('veryHigh', 3), ('high', 4), ('normal', 5), ('low', 6), ('diffSrv', 7), ('tos', 8), ('ipQos', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSRadioQoS.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSRadioQoS.setDescription('QoS priority mechanism used to maps the traffic to one of the four WMM traffic queues.')
co_device_wds_group_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1))
if mibBuilder.loadTexts:
coDeviceWDSGroupTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSGroupTable.setDescription('Conceptual table for the local mesh profiles. This table contains configuration information for the six local mesh profiles.')
co_device_wds_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupIndex'))
if mibBuilder.loadTexts:
coDeviceWDSGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSGroupEntry.setDescription('An Entry (conceptual row) in the local mesh profiles table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh table.')
co_dev_wds_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 9)))
if mibBuilder.loadTexts:
coDevWDSGroupIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupIndex.setDescription('The auxiliary variable used to identify instances of local mesh profiles.')
co_dev_wds_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSGroupName.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupName.setDescription('Friendly name of the local mesh profile.')
co_dev_wds_group_state = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('discovery', 1), ('negotiation', 2), ('acquisition', 3), ('locked', 4), ('shutdown', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSGroupState.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupState.setDescription('Specifies if the local mesh profileis active on the radios.')
co_dev_wds_group_security = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('wep', 2), ('tkip', 3), ('aes', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSGroupSecurity.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupSecurity.setDescription('Specifies the encryption used by the local mesh profile.')
co_dev_wds_group_dynamic_mode = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('alternateMaster', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSGroupDynamicMode.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupDynamicMode.setDescription('Specifies the mode of the dynamic local mesh profile.')
co_dev_wds_group_dynamic_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 4, 1, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSGroupDynamicGroupId.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSGroupDynamicGroupId.setDescription('Specifies the mesh ID identifier of the dynamic local mesh profile.')
co_device_wds_link_status_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1))
if mibBuilder.loadTexts:
coDeviceWDSLinkStatusTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatusTable.setDescription('Conceptual table for the status of local mesh links.')
co_device_wds_link_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIndex'))
if mibBuilder.loadTexts:
coDeviceWDSLinkStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatusEntry.setDescription('An Entry (conceptual row) in the WDS Link status Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkStaIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
co_dev_wds_link_sta_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
coDevWDSLinkStaIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaIndex.setDescription('The auxiliary variable used to identify instances of local mesh links.')
co_dev_wds_link_sta_state = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('down', 1), ('acquiring', 2), ('inactive', 3), ('active', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaState.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaState.setDescription('Specifies the state of the local mesh link.')
co_dev_wds_link_sta_radio = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaRadio.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaRadio.setDescription('Radio number where the local mesh peer was detected.')
co_dev_wds_link_sta_peer_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 4), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaPeerMacAddress.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaPeerMacAddress.setDescription('MAC address of the local mesh peer.')
co_dev_wds_link_sta_master = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaMaster.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaMaster.setDescription('Determine if this link is a link to a master. Providing upstream network access.')
co_dev_wds_link_sta_authorized = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 6), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaAuthorized.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaAuthorized.setDescription('Encryption, if any, can proceed.')
co_dev_wds_link_sta_encryption = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('wep', 2), ('tkip', 3), ('aes', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaEncryption.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaEncryption.setDescription('Specifies the encryption used by the local mesh link.')
co_dev_wds_link_sta_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaIdleTime.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaIdleTime.setDescription('Inactivity time.')
co_dev_wds_link_sta_snr = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 92))).setUnits('dBm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaSNR.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaSNR.setDescription('Signal noise ratio of the local mesh peer.')
co_dev_wds_link_sta_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 10), unsigned32()).setUnits('500Kb/s').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaTxRate.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaTxRate.setDescription('Current transmit rate of the local mesh peer.')
co_dev_wds_link_sta_rx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 11), unsigned32()).setUnits('500Kb/s').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaRxRate.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaRxRate.setDescription('Current receive rate of the local mesh peer.')
co_dev_wds_link_sta_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaIfIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaIfIndex.setDescription('coDevIfStaIfIndex of the associated interface in the device coDeviceIfStatusTable.')
co_dev_wds_link_sta_ht = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 13), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaHT.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaHT.setDescription('Determine if this link is using HT rates.')
co_dev_wds_link_sta_tx_mcs = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 14), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaTxMCS.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaTxMCS.setDescription('Current transmit MCS of the local mesh peer.')
co_dev_wds_link_sta_rx_mcs = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaRxMCS.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaRxMCS.setDescription('Current receive MCS of the local mesh peer.')
co_dev_wds_link_sta_signal = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 16), integer32()).setUnits('dBm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaSignal.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaSignal.setDescription('Strength of the wireless signal.')
co_dev_wds_link_sta_noise = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 1, 1, 17), integer32()).setUnits('dBm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStaNoise.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStaNoise.setDescription('Level of local background noise.')
co_device_wds_link_stats_rates_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2))
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsRatesTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsRatesTable.setDescription('Conceptual table for the statistics of local mesh links.')
co_device_wds_link_stats_rates_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1))
coDeviceWDSLinkStatusEntry.registerAugmentions(('COLUBRIS-DEVICE-WDS-MIB', 'coDeviceWDSLinkStatsRatesEntry'))
coDeviceWDSLinkStatsRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames())
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsRatesEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsRatesEntry.setDescription('An Entry (conceptual row) in the local mesh Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profile table. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
co_dev_wds_link_sts_pkts_tx_rate1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate1.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate1.setDescription('Number of frames transmitted at 1 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate2.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate2.setDescription('Number of frames transmitted at 2 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate5dot5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate5dot5.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate5dot5.setDescription('Number of frames transmitted at 5.5 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate11.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate11.setDescription('Number of frames transmitted at 11 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate6.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate6.setDescription('Number of frames transmitted at 6 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate9.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate9.setDescription('Number of frames transmitted at 9 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate12.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate12.setDescription('Number of frames transmitted at 12 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate18 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate18.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate18.setDescription('Number of frames transmitted at 18 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate24 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate24.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate24.setDescription('Number of frames transmitted at 24 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate36 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate36.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate36.setDescription('Number of frames transmitted at 36 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate48 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate48.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate48.setDescription('Number of frames transmitted at 48 Mbps.')
co_dev_wds_link_sts_pkts_tx_rate54 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate54.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxRate54.setDescription('Number of frames transmitted at 54 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate1.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate1.setDescription('Number of frames received at 1 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate2.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate2.setDescription('Number of frames received at 2 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate5dot5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate5dot5.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate5dot5.setDescription('Number of frames received at 5.5 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate11.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate11.setDescription('Number of frames received at 11 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate6.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate6.setDescription('Number of frames received at 6 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate9.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate9.setDescription('Number of frames received at 9 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate12.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate12.setDescription('Number of frames received at 12 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate18 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate18.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate18.setDescription('Number of frames received at 18 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate24 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate24.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate24.setDescription('Number of frames received at 24 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate36 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate36.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate36.setDescription('Number of frames received at 36 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate48 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate48.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate48.setDescription('Number of frames received at 48 Mbps.')
co_dev_wds_link_sts_pkts_rx_rate54 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 2, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate54.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxRate54.setDescription('Number of frames received at 54 Mbps.')
co_device_wds_link_stats_ht_rates_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3))
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsHTRatesTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsHTRatesTable.setDescription('Conceptual table for the statistics of WDS HT links.')
co_device_wds_link_stats_ht_rates_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1))
coDeviceWDSLinkStatusEntry.registerAugmentions(('COLUBRIS-DEVICE-WDS-MIB', 'coDeviceWDSLinkStatsHTRatesEntry'))
coDeviceWDSLinkStatsHTRatesEntry.setIndexNames(*coDeviceWDSLinkStatusEntry.getIndexNames())
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsHTRatesEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSLinkStatsHTRatesEntry.setDescription('An Entry (conceptual row) in the WDS HT Link Statistics Table. coDevDisIndex - Uniquely identifies a device on the MultiService Controller. coDevWDSGroupIndex - Uniquely identify a local mesh profile inside the Device local mesh profiletable. coDevWDSLinkIndex - Uniquely identify a local mesh link inside a Device local mesh profile.')
co_dev_wds_link_sts_pkts_tx_mcs0 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS0.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS0.setDescription('Number of frames transmitted at MCS0 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS1.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS1.setDescription('Number of frames transmitted at MCS1 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS2.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS2.setDescription('Number of frames transmitted at MCS2 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs3 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS3.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS3.setDescription('Number of frames transmitted at MCS3 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs4 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS4.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS4.setDescription('Number of frames transmitted at MCS4 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS5.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS5.setDescription('Number of frames transmitted at MCS5 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS6.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS6.setDescription('Number of frames transmitted at MCS6 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs7 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS7.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS7.setDescription('Number of frames transmitted at MCS7 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs8 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS8.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS8.setDescription('Number of frames transmitted at MCS8 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS9.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS9.setDescription('Number of frames transmitted at MCS9 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs10 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS10.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS10.setDescription('Number of frames transmitted at MCS10 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS11.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS11.setDescription('Number of frames transmitted at MCS11 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS12.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS12.setDescription('Number of frames transmitted at MCS12 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs13 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS13.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS13.setDescription('Number of frames transmitted at MCS13 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs14 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS14.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS14.setDescription('Number of frames transmitted at MCS14 since the link was established.')
co_dev_wds_link_sts_pkts_tx_mcs15 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS15.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsTxMCS15.setDescription('Number of frames transmitted at MCS15 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs0 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS0.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS0.setDescription('Number of frames received at MCS0 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs1 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS1.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS1.setDescription('Number of frames received at MCS1 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs2 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS2.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS2.setDescription('Number of frames received at MCS2 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs3 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS3.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS3.setDescription('Number of frames received at MCS3 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs4 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS4.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS4.setDescription('Number of frames received at MCS4 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs5 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS5.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS5.setDescription('Number of frames received at MCS5 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs6 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS6.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS6.setDescription('Number of frames received at MCS6 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs7 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS7.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS7.setDescription('Number of frames received at MCS7 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs8 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS8.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS8.setDescription('Number of frames received at MCS8 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs9 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS9.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS9.setDescription('Number of frames received at MCS9 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs10 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS10.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS10.setDescription('Number of frames received at MCS10 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs11 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS11.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS11.setDescription('Number of frames received at MCS11 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs12 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS12.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS12.setDescription('Number of frames received at MCS12 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs13 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS13.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS13.setDescription('Number of frames received at MCS13 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs14 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS14.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS14.setDescription('Number of frames received at MCS14 since the link was established.')
co_dev_wds_link_sts_pkts_rx_mcs15 = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 5, 3, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS15.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSLinkStsPktsRxMCS15.setDescription('Number of frames received at MCS15 since the link was established.')
co_device_wds_network_scan_table = mib_table((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1))
if mibBuilder.loadTexts:
coDeviceWDSNetworkScanTable.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSNetworkScanTable.setDescription('Conceptual table for the local mesh network scans.')
co_device_wds_network_scan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1)).setIndexNames((0, 'COLUBRIS-DEVICE-MIB', 'coDevDisIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanRadioIndex'), (0, 'COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanPeerIndex'))
if mibBuilder.loadTexts:
coDeviceWDSNetworkScanEntry.setStatus('current')
if mibBuilder.loadTexts:
coDeviceWDSNetworkScanEntry.setDescription('An Entry (conceptual row) in the WDS Network Scan Table. coDevDisIndex - Uniquely identifies a device on the controller. coDevWDSScanRadioIndex - Radio number where the local mesh peer was detected. coDevWDSScanPeerIndex - Uniquely identify a local mesh peer on a radio inside the local mesh network scan table.')
co_dev_wds_scan_radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3)))
if mibBuilder.loadTexts:
coDevWDSScanRadioIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanRadioIndex.setDescription('Radio number where the local mesh peer was detected.')
co_dev_wds_scan_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)))
if mibBuilder.loadTexts:
coDevWDSScanPeerIndex.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanPeerIndex.setDescription('Uniquely identify a local mesh peer on a radio.')
co_dev_wds_scan_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanGroupId.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanGroupId.setDescription('Group id used by the local mesh peer.')
co_dev_wds_scan_peer_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 4), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanPeerMacAddress.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanPeerMacAddress.setDescription('MAC address of the local mesh peer.')
co_dev_wds_scan_channel = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 199))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanChannel.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanChannel.setDescription('Channel on which the peer is transmitting.')
co_dev_wds_scan_snr = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 92))).setUnits('dBm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanSNR.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanSNR.setDescription('Signal noise ratio of the local mesh peer.')
co_dev_wds_scan_mode = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('alternateMaster', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanMode.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanMode.setDescription('Current mode of the local mesh peer.')
co_dev_wds_scan_available = mib_table_column((1, 3, 6, 1, 4, 1, 8744, 5, 34, 1, 6, 1, 1, 8), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
coDevWDSScanAvailable.setStatus('current')
if mibBuilder.loadTexts:
coDevWDSScanAvailable.setDescription('Peer is accepting connections.')
colubris_device_wds_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2))
colubris_device_wds_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 2, 0))
colubris_device_wds_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3))
colubris_device_wds_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1))
colubris_device_wds_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2))
colubris_device_wds_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 1, 1)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsInfoMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsRadioMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsGroupMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsLinkMIBGroup'), ('COLUBRIS-DEVICE-WDS-MIB', 'colubrisDeviceWdsNetworkScanMIBGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_mib_compliance = colubrisDeviceWdsMIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsMIBCompliance.setDescription('The compliance statement for the device local mesh MIB.')
colubris_device_wds_info_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 1)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSInfoMaxNumberOfGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_info_mib_group = colubrisDeviceWdsInfoMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsInfoMIBGroup.setDescription('A collection of objects for the device local mesh information group.')
colubris_device_wds_radio_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 2)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioAckDistance'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSRadioQoS'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_radio_mib_group = colubrisDeviceWdsRadioMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsRadioMIBGroup.setDescription('A collection of objects for the device local mesh radio group.')
colubris_device_wds_group_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 3)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupName'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupState'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupSecurity'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupDynamicMode'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSGroupDynamicGroupId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_group_mib_group = colubrisDeviceWdsGroupMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsGroupMIBGroup.setDescription('A collection of objects for the device local mesh group group.')
colubris_device_wds_link_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 4)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaState'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRadio'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaPeerMacAddress'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaMaster'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaAuthorized'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaEncryption'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIdleTime'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaSNR'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaTxRate'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRxRate'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaIfIndex'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaHT'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaTxMCS'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaRxMCS'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaSignal'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStaNoise'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate5dot5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate18'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate24'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate36'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate48'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxRate54'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate5dot5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate18'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate24'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate36'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate48'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxRate54'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS0'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS3'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS4'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS7'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS8'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS10'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS13'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS14'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsTxMCS15'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS0'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS1'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS2'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS3'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS4'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS5'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS6'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS7'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS8'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS9'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS10'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS11'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS12'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS13'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS14'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSLinkStsPktsRxMCS15'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_link_mib_group = colubrisDeviceWdsLinkMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsLinkMIBGroup.setDescription('A collection of objects for the device local mesh link group.')
colubris_device_wds_network_scan_mib_group = object_group((1, 3, 6, 1, 4, 1, 8744, 5, 34, 3, 2, 5)).setObjects(('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanGroupId'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanPeerMacAddress'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanChannel'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanSNR'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanMode'), ('COLUBRIS-DEVICE-WDS-MIB', 'coDevWDSScanAvailable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
colubris_device_wds_network_scan_mib_group = colubrisDeviceWdsNetworkScanMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
colubrisDeviceWdsNetworkScanMIBGroup.setDescription('A collection of objects for the device local mesh network scan group.')
mibBuilder.exportSymbols('COLUBRIS-DEVICE-WDS-MIB', coDevWDSLinkStsPktsTxRate11=coDevWDSLinkStsPktsTxRate11, coDevWDSLinkStsPktsRxRate36=coDevWDSLinkStsPktsRxRate36, coDevWDSRadioAckDistance=coDevWDSRadioAckDistance, coDevWDSLinkStsPktsRxMCS4=coDevWDSLinkStsPktsRxMCS4, coDevWDSLinkStaHT=coDevWDSLinkStaHT, coDevWDSScanSNR=coDevWDSScanSNR, coDevWDSLinkStsPktsRxRate12=coDevWDSLinkStsPktsRxRate12, coDevWDSRadioIndex=coDevWDSRadioIndex, colubrisDeviceWdsMIBGroups=colubrisDeviceWdsMIBGroups, colubrisDeviceWdsLinkMIBGroup=colubrisDeviceWdsLinkMIBGroup, coDevWDSLinkStsPktsTxRate48=coDevWDSLinkStsPktsTxRate48, coDevWDSLinkStsPktsRxMCS0=coDevWDSLinkStsPktsRxMCS0, coDevWDSLinkStaMaster=coDevWDSLinkStaMaster, coDevWDSLinkStsPktsTxMCS11=coDevWDSLinkStsPktsTxMCS11, coDevWDSLinkStsPktsTxMCS9=coDevWDSLinkStsPktsTxMCS9, coDevWDSLinkStsPktsRxRate6=coDevWDSLinkStsPktsRxRate6, coDeviceWDSInfoGroup=coDeviceWDSInfoGroup, coDevWDSLinkStsPktsTxMCS1=coDevWDSLinkStsPktsTxMCS1, coDevWDSLinkStsPktsRxMCS1=coDevWDSLinkStsPktsRxMCS1, coDevWDSLinkStsPktsRxMCS10=coDevWDSLinkStsPktsRxMCS10, coDevWDSLinkStsPktsRxRate24=coDevWDSLinkStsPktsRxRate24, coDevWDSLinkStaRadio=coDevWDSLinkStaRadio, coDevWDSLinkStsPktsTxRate1=coDevWDSLinkStsPktsTxRate1, colubrisDeviceWdsRadioMIBGroup=colubrisDeviceWdsRadioMIBGroup, colubrisDeviceWdsMIBObjects=colubrisDeviceWdsMIBObjects, coDevWDSGroupState=coDevWDSGroupState, coDevWDSLinkStsPktsRxMCS12=coDevWDSLinkStsPktsRxMCS12, coDevWDSLinkStsPktsTxMCS14=coDevWDSLinkStsPktsTxMCS14, coDeviceWDSNetworkScanGroup=coDeviceWDSNetworkScanGroup, coDevWDSLinkStsPktsRxRate1=coDevWDSLinkStsPktsRxRate1, colubrisDeviceWdsMIBNotifications=colubrisDeviceWdsMIBNotifications, coDevWDSLinkStsPktsTxMCS3=coDevWDSLinkStsPktsTxMCS3, coDevWDSLinkStsPktsRxRate11=coDevWDSLinkStsPktsRxRate11, coDevWDSLinkStaIdleTime=coDevWDSLinkStaIdleTime, coDevWDSLinkStaSignal=coDevWDSLinkStaSignal, coDeviceWDSLinkStatsHTRatesEntry=coDeviceWDSLinkStatsHTRatesEntry, coDevWDSLinkStsPktsRxMCS2=coDevWDSLinkStsPktsRxMCS2, coDevWDSScanMode=coDevWDSScanMode, coDevWDSLinkStsPktsTxMCS13=coDevWDSLinkStsPktsTxMCS13, coDevWDSLinkStsPktsTxMCS4=coDevWDSLinkStsPktsTxMCS4, coDeviceWDSGroupTable=coDeviceWDSGroupTable, coDevWDSScanPeerIndex=coDevWDSScanPeerIndex, coDeviceWDSLinkStatsHTRatesTable=coDeviceWDSLinkStatsHTRatesTable, coDevWDSLinkStsPktsRxMCS15=coDevWDSLinkStsPktsRxMCS15, coDevWDSGroupDynamicGroupId=coDevWDSGroupDynamicGroupId, colubrisDeviceWdsMIBCompliance=colubrisDeviceWdsMIBCompliance, coDeviceWDSNetworkScanEntry=coDeviceWDSNetworkScanEntry, coDevWDSLinkStaRxRate=coDevWDSLinkStaRxRate, coDevWDSLinkStsPktsTxRate6=coDevWDSLinkStsPktsTxRate6, coDevWDSLinkStsPktsTxRate18=coDevWDSLinkStsPktsTxRate18, coDevWDSRadioQoS=coDevWDSRadioQoS, coDevWDSGroupSecurity=coDevWDSGroupSecurity, coDevWDSLinkStaRxMCS=coDevWDSLinkStaRxMCS, coDevWDSLinkStsPktsRxMCS7=coDevWDSLinkStsPktsRxMCS7, coDevWDSInfoMaxNumberOfGroup=coDevWDSInfoMaxNumberOfGroup, coDevWDSLinkStsPktsRxMCS6=coDevWDSLinkStsPktsRxMCS6, colubrisDeviceWdsMIBNotificationPrefix=colubrisDeviceWdsMIBNotificationPrefix, coDevWDSLinkStsPktsTxRate12=coDevWDSLinkStsPktsTxRate12, coDevWDSLinkStsPktsTxRate24=coDevWDSLinkStsPktsTxRate24, coDeviceWDSLinkStatsRatesEntry=coDeviceWDSLinkStatsRatesEntry, coDevWDSLinkStsPktsTxMCS2=coDevWDSLinkStsPktsTxMCS2, coDevWDSLinkStsPktsTxMCS8=coDevWDSLinkStsPktsTxMCS8, coDevWDSLinkStsPktsTxMCS10=coDevWDSLinkStsPktsTxMCS10, coDevWDSLinkStsPktsTxMCS6=coDevWDSLinkStsPktsTxMCS6, coDevWDSLinkStsPktsTxRate2=coDevWDSLinkStsPktsTxRate2, coDevWDSScanChannel=coDevWDSScanChannel, coDevWDSLinkStaIndex=coDevWDSLinkStaIndex, coDevWDSLinkStsPktsTxRate9=coDevWDSLinkStsPktsTxRate9, coDevWDSLinkStsPktsTxMCS12=coDevWDSLinkStsPktsTxMCS12, colubrisDeviceWdsMIBCompliances=colubrisDeviceWdsMIBCompliances, colubrisDeviceWdsGroupMIBGroup=colubrisDeviceWdsGroupMIBGroup, coDevWDSGroupName=coDevWDSGroupName, coDeviceWdsInfoEntry=coDeviceWdsInfoEntry, coDevWDSLinkStsPktsRxMCS8=coDevWDSLinkStsPktsRxMCS8, coDeviceWdsInfoTable=coDeviceWdsInfoTable, coDeviceWDSLinkStatusEntry=coDeviceWDSLinkStatusEntry, coDevWDSLinkStsPktsRxMCS3=coDevWDSLinkStsPktsRxMCS3, coDevWDSScanAvailable=coDevWDSScanAvailable, coDevWDSLinkStaIfIndex=coDevWDSLinkStaIfIndex, coDevWDSLinkStsPktsRxRate54=coDevWDSLinkStsPktsRxRate54, coDevWDSGroupIndex=coDevWDSGroupIndex, colubrisDeviceWdsMIBConformance=colubrisDeviceWdsMIBConformance, coDevWDSLinkStsPktsRxMCS14=coDevWDSLinkStsPktsRxMCS14, coDevWDSLinkStsPktsRxRate48=coDevWDSLinkStsPktsRxRate48, PYSNMP_MODULE_ID=colubrisDeviceWdsMIB, coDevWDSLinkStsPktsRxMCS11=coDevWDSLinkStsPktsRxMCS11, coDevWDSLinkStsPktsRxRate18=coDevWDSLinkStsPktsRxRate18, colubrisDeviceWdsInfoMIBGroup=colubrisDeviceWdsInfoMIBGroup, coDevWDSLinkStsPktsTxRate36=coDevWDSLinkStsPktsTxRate36, coDevWDSLinkStaPeerMacAddress=coDevWDSLinkStaPeerMacAddress, coDevWDSLinkStsPktsRxRate9=coDevWDSLinkStsPktsRxRate9, coDeviceWDSRadioGroup=coDeviceWDSRadioGroup, coDevWDSLinkStsPktsRxRate5dot5=coDevWDSLinkStsPktsRxRate5dot5, coDevWDSLinkStaTxMCS=coDevWDSLinkStaTxMCS, coDevWDSLinkStsPktsTxMCS15=coDevWDSLinkStsPktsTxMCS15, coDevWDSLinkStsPktsRxMCS9=coDevWDSLinkStsPktsRxMCS9, coDevWDSLinkStsPktsTxRate5dot5=coDevWDSLinkStsPktsTxRate5dot5, coDevWDSLinkStsPktsRxMCS13=coDevWDSLinkStsPktsRxMCS13, coDevWDSLinkStsPktsTxMCS0=coDevWDSLinkStsPktsTxMCS0, coDevWDSScanRadioIndex=coDevWDSScanRadioIndex, coDevWDSLinkStsPktsRxRate2=coDevWDSLinkStsPktsRxRate2, coDevWDSLinkStaTxRate=coDevWDSLinkStaTxRate, coDevWDSLinkStaNoise=coDevWDSLinkStaNoise, coDeviceWDSGroupGroup=coDeviceWDSGroupGroup, coDevWDSLinkStsPktsTxRate54=coDevWDSLinkStsPktsTxRate54, colubrisDeviceWdsNetworkScanMIBGroup=colubrisDeviceWdsNetworkScanMIBGroup, coDevWDSScanPeerMacAddress=coDevWDSScanPeerMacAddress, coDeviceWDSLinkGroup=coDeviceWDSLinkGroup, coDevWDSScanGroupId=coDevWDSScanGroupId, coDevWDSGroupDynamicMode=coDevWDSGroupDynamicMode, coDeviceWDSNetworkScanTable=coDeviceWDSNetworkScanTable, coDevWDSLinkStsPktsTxMCS7=coDevWDSLinkStsPktsTxMCS7, coDeviceWDSGroupEntry=coDeviceWDSGroupEntry, coDeviceWDSRadioEntry=coDeviceWDSRadioEntry, coDevWDSLinkStaState=coDevWDSLinkStaState, colubrisDeviceWdsMIB=colubrisDeviceWdsMIB, coDevWDSLinkStaEncryption=coDevWDSLinkStaEncryption, coDeviceWDSLinkStatsRatesTable=coDeviceWDSLinkStatsRatesTable, coDeviceWDSRadioTable=coDeviceWDSRadioTable, coDeviceWDSLinkStatusTable=coDeviceWDSLinkStatusTable, coDevWDSLinkStaAuthorized=coDevWDSLinkStaAuthorized, coDevWDSLinkStsPktsTxMCS5=coDevWDSLinkStsPktsTxMCS5, coDevWDSLinkStsPktsRxMCS5=coDevWDSLinkStsPktsRxMCS5, coDevWDSLinkStaSNR=coDevWDSLinkStaSNR) |
age = int(input())
def drinks(drink):
print(f"drink {drink}")
if age <= 14:
drinks("toddy")
elif age <= 18:
drinks("coke")
elif age <= 21:
drinks("beer")
else:
drinks("whisky")
| age = int(input())
def drinks(drink):
print(f'drink {drink}')
if age <= 14:
drinks('toddy')
elif age <= 18:
drinks('coke')
elif age <= 21:
drinks('beer')
else:
drinks('whisky') |
# from https://stackoverflow.com/questions/1151658/python-hashable-dicts
class HashableDict(dict):
""" A hashable version of a dictionary, useful for when a function needs to be cached but uses a dict as an
argument """
def __key(self):
return tuple((k, self[k]) for k in sorted(self))
def __hash__(self):
return hash(self.__key())
def __eq__(self, other):
return self.__key() == other.__key()
| class Hashabledict(dict):
""" A hashable version of a dictionary, useful for when a function needs to be cached but uses a dict as an
argument """
def __key(self):
return tuple(((k, self[k]) for k in sorted(self)))
def __hash__(self):
return hash(self.__key())
def __eq__(self, other):
return self.__key() == other.__key() |
SECTION_SEPARATOR = "%" * 30
def get_required_node_edges(qualified_node_id, required_node_ids):
node_requires = [
f"{required_node_id}-->{qualified_node_id}"
for required_node_id in required_node_ids
]
return "\n".join(node_requires)
def get_icon(dict_value):
icon = ""
if "icon" in dict_value:
icon = f"fa:fa-{dict_value['icon']}"
return icon
def get_node_content(items, multi_lines_layout=True):
separator = "<br/>" if multi_lines_layout else " "
# join non empty items
return separator.join([i for i in items if i])
| section_separator = '%' * 30
def get_required_node_edges(qualified_node_id, required_node_ids):
node_requires = [f'{required_node_id}-->{qualified_node_id}' for required_node_id in required_node_ids]
return '\n'.join(node_requires)
def get_icon(dict_value):
icon = ''
if 'icon' in dict_value:
icon = f"fa:fa-{dict_value['icon']}"
return icon
def get_node_content(items, multi_lines_layout=True):
separator = '<br/>' if multi_lines_layout else ' '
return separator.join([i for i in items if i]) |
total_food = int(input())
total_food_grams = total_food * 1000
is_food_over = False
command = input()
while command != 'Adopted':
eaten_food = int(command)
total_food_grams -= eaten_food
if total_food_grams < 0:
is_food_over = True
command = input()
if is_food_over:
print(f'Food is not enough. You need {abs(total_food_grams)} grams more.')
else:
print(f'Food is enough! Leftovers: {abs(total_food_grams)} grams.') | total_food = int(input())
total_food_grams = total_food * 1000
is_food_over = False
command = input()
while command != 'Adopted':
eaten_food = int(command)
total_food_grams -= eaten_food
if total_food_grams < 0:
is_food_over = True
command = input()
if is_food_over:
print(f'Food is not enough. You need {abs(total_food_grams)} grams more.')
else:
print(f'Food is enough! Leftovers: {abs(total_food_grams)} grams.') |
class Solution:
def isInterleave(self, s1, s2, s3):
"""
:type s1: str
:type s2: str
:type s3: str
:rtype: bool
"""
if len(s3) != len(s1) + len(s2):
return False
if len(s3) == 0 and len(s1) == 0 and len(s2) == 0:
return True
dp = [[0 for _ in range(len(s2) + 1)] for _ in range(len(s1) + 1)]
dp[0][0] = True
for i in range(1, len(s1) + 1):
dp[i][0] = dp[i - 1][0] and s1[i - 1] == s3[i - 1]
for j in range(1, len(s2) + 1):
dp[0][j] = dp[j - 1][0] and s1[j - 1] == s3[j - 1]
for a in range(1, len(s1) + 1):
for b in range(1, len(s2) + 1):
i = a - 1
j = b - 1
k = i + j
if s3[k] != s1[i] and s3[k] != s2[j]:
dp[a][b] = False
if s3[k] == s1[i] and s3[k] != s2[j]:
dp[a][b] = dp[a - 1][b]
if s3[k] != s1[i] and s3[k] == s2[j]:
dp[a][b] = dp[a][b - 1]
if s3[k] == s1[i] and s3[k] == s2[j]:
dp[a][b] = dp[a][b - 1] or dp[a - 1][b]
return dp[len(s1)][len(s2)]
if __name__ == '__main__':
S = Solution()
a = S.isInterleave('aabcc', 'dbbca', "aadbbcbcac")
print(a)
| class Solution:
def is_interleave(self, s1, s2, s3):
"""
:type s1: str
:type s2: str
:type s3: str
:rtype: bool
"""
if len(s3) != len(s1) + len(s2):
return False
if len(s3) == 0 and len(s1) == 0 and (len(s2) == 0):
return True
dp = [[0 for _ in range(len(s2) + 1)] for _ in range(len(s1) + 1)]
dp[0][0] = True
for i in range(1, len(s1) + 1):
dp[i][0] = dp[i - 1][0] and s1[i - 1] == s3[i - 1]
for j in range(1, len(s2) + 1):
dp[0][j] = dp[j - 1][0] and s1[j - 1] == s3[j - 1]
for a in range(1, len(s1) + 1):
for b in range(1, len(s2) + 1):
i = a - 1
j = b - 1
k = i + j
if s3[k] != s1[i] and s3[k] != s2[j]:
dp[a][b] = False
if s3[k] == s1[i] and s3[k] != s2[j]:
dp[a][b] = dp[a - 1][b]
if s3[k] != s1[i] and s3[k] == s2[j]:
dp[a][b] = dp[a][b - 1]
if s3[k] == s1[i] and s3[k] == s2[j]:
dp[a][b] = dp[a][b - 1] or dp[a - 1][b]
return dp[len(s1)][len(s2)]
if __name__ == '__main__':
s = solution()
a = S.isInterleave('aabcc', 'dbbca', 'aadbbcbcac')
print(a) |
# to get a string like this run:
# openssl rand -hex 32
SECRET_KEY = "de45991397da83e674149beb168b17fde74ebd4a8d6ca65310aedc7a082d5309"
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 30
| secret_key = 'de45991397da83e674149beb168b17fde74ebd4a8d6ca65310aedc7a082d5309'
algorithm = 'HS256'
access_token_expire_minutes = 30 |
#!/usr/bin/env python3
#ccpc20qhda
gcd = lambda a,b: b if a==0 else gcd(b%a,a)
t = int(input())
for i in range(t):
m,n = list(map(int,input().split()))
aa = m*(m-1)
bb = (m+n)*(m+n-1)
c = gcd(aa,bb)
print('Case #%d: %d/%d'%(i+1,aa//c,bb//c))
| gcd = lambda a, b: b if a == 0 else gcd(b % a, a)
t = int(input())
for i in range(t):
(m, n) = list(map(int, input().split()))
aa = m * (m - 1)
bb = (m + n) * (m + n - 1)
c = gcd(aa, bb)
print('Case #%d: %d/%d' % (i + 1, aa // c, bb // c)) |
class Room:
def __init__(self, lw, rw, name=""):
self.id = id(self)
self.name = name
self.leftWall = lw
self.rightWall = rw
self.P = 0
self.S = 0
self.W = 0
self.C = 0
self.parseFinish = False
def getId(self):
return self.id
def setRoomName(self, name):
self.name = name
def getRoomName(self):
return self.name
def setParseFinish(self):
self.parseFinish = True
def getParseFinish(self):
return self.parseFinish
def setLeftWall(self, lw):
self.leftWall = lw
def getLeftWall(self):
return self.leftWall
def setRightWall(self, rw):
self.rightWall = rw
def getRightWall(self):
return self.rightWall
def getRoomBounds(self):
return self.getLeftWall(), self.getRightWall()
def getP(self):
return self.P
def getS(self):
return self.S
def getC(self):
return self.C
def getW(self):
return self.W
def getTotalChairsInRoom(self):
return self.getP() + self.getS() + self.getC() + self.getW()
def getChairsByType(self, type):
if type == "P":
return self.getP()
elif type == "S":
return self.getS()
elif type == "C":
return self.getC()
elif type == "W":
return self.getW()
def addChairToRoom(self, str):
if str == "P":
self.P += 1
elif str == "S":
self.S += 1
elif str == "W":
self.W += 1
elif str == "C":
self.C += 1
def __str__(self):
return "{}: \n W: {}, P: {}, S: {}, C: {}".format(self.getRoomName(), self.getW(), self.getP(), self.getS(), self.getC())
# Deprecated __str__() method.
#def __str__(self):
#args = {'id': self.id, 'name': self.name, 'lw': self.leftWall, 'rw': self.rightWall,
# 'p': self.P, 's': self.S, 'w': self.W, 'c': self.C, 'st': self.parseFinish}
#return '''\nId: {id}
#Name: {name}
#Left Wall position: {lw}
#Right Wall position: {rw}
#P: {p}
#S: {s}
#W: {w}
#C: {c}
#Closed: {st}'''.format(**args) | class Room:
def __init__(self, lw, rw, name=''):
self.id = id(self)
self.name = name
self.leftWall = lw
self.rightWall = rw
self.P = 0
self.S = 0
self.W = 0
self.C = 0
self.parseFinish = False
def get_id(self):
return self.id
def set_room_name(self, name):
self.name = name
def get_room_name(self):
return self.name
def set_parse_finish(self):
self.parseFinish = True
def get_parse_finish(self):
return self.parseFinish
def set_left_wall(self, lw):
self.leftWall = lw
def get_left_wall(self):
return self.leftWall
def set_right_wall(self, rw):
self.rightWall = rw
def get_right_wall(self):
return self.rightWall
def get_room_bounds(self):
return (self.getLeftWall(), self.getRightWall())
def get_p(self):
return self.P
def get_s(self):
return self.S
def get_c(self):
return self.C
def get_w(self):
return self.W
def get_total_chairs_in_room(self):
return self.getP() + self.getS() + self.getC() + self.getW()
def get_chairs_by_type(self, type):
if type == 'P':
return self.getP()
elif type == 'S':
return self.getS()
elif type == 'C':
return self.getC()
elif type == 'W':
return self.getW()
def add_chair_to_room(self, str):
if str == 'P':
self.P += 1
elif str == 'S':
self.S += 1
elif str == 'W':
self.W += 1
elif str == 'C':
self.C += 1
def __str__(self):
return '{}: \n W: {}, P: {}, S: {}, C: {}'.format(self.getRoomName(), self.getW(), self.getP(), self.getS(), self.getC()) |
"""Docstring for the card.py module
This module contains the Card class which can be used for creating
multiple cards in a deck.
"""
class Card:
"""
A class to represent cards.
Parameters
----------
suit : str
The suit of the card
rank : str
The rank of the card
Attributes
----------
suit : str
The suit of the card
rank : str
The rank of the card
"""
def __init__(self, suit, rank):
"""
Class constructor
Parameters
----------
suit : str
The suit of the card
rank : str
The rank of the card
"""
self.suit = suit
self.rank = rank
def __str__(self):
"""Print out the suit and rank of the card."""
return self.rank + " of " + self.suit
| """Docstring for the card.py module
This module contains the Card class which can be used for creating
multiple cards in a deck.
"""
class Card:
"""
A class to represent cards.
Parameters
----------
suit : str
The suit of the card
rank : str
The rank of the card
Attributes
----------
suit : str
The suit of the card
rank : str
The rank of the card
"""
def __init__(self, suit, rank):
"""
Class constructor
Parameters
----------
suit : str
The suit of the card
rank : str
The rank of the card
"""
self.suit = suit
self.rank = rank
def __str__(self):
"""Print out the suit and rank of the card."""
return self.rank + ' of ' + self.suit |
#!/usr/bin/python3
""" Reference: https://edabit.com/challenge/HTaZiWnsCGgehpgdr
This challenge is as follows:
Travelling through Europe one needs to pay
attention to how the license plate in the
given country is displayed. When crossing the
border you need to park on the shoulder,
unscrew the plate, re-group the characters
according to the local regulations, attach it
back and proceed with the journey.
Create a solution that can format the dmv
number into a plate number with correct grouping.
The function input consists of string s and
group length n. The output has to be upper case
characters and digits. The new groups are made
from right to left and connected by -.
The original order of the dmv number is preserved.
Expected Results:
"5F3Z-2e-9-w", 4 -> "5F3Z-2E9W"
"2-5g-3-J", 2 -> "2-5G-3J"
"2-4A0r7-4k", 3 -> "24-A0R-74K"
"nlj-206-fv", 3 -> "NL-J20-6FV """
def license_plate(s, n):
# This part is where the challenge is supposed to be solved
# First, remove all dashes and make uppercase
s = s.replace("-", "").upper()
# get index of char before first dash (from right)
char_count = len(s) - 1 - n
while(char_count >= 0):
# add a dash after index position char_count
s = s[:char_count +1] + '-' + s[char_count + 1:]
# 'increment' counter backwards kind of..
char_count = char_count - n
return s
if __name__ == '__main__':
# This part is only to test if challenge is a success
print("Scenario 1: 5F3Z-2e-9-w, 4: {}".format("success" if license_plate("5F3Z-2e-9-w", 4) == "5F3Z-2E9W" else "fail"))
print("Scenario 2: 2-5g-3-J, 2: {}".format("success" if license_plate("2-5g-3-J", 2) == "2-5G-3J" else "fail"))
print("Scenario 3: 2-4A0r7-4k, 3: {}".format("success" if license_plate("2-4A0r7-4k", 3) == "24-A0R-74K" else "fail"))
print("Scenario 4: nlj-206-fv, 3: {}".format("success" if license_plate("nlj-206-fv", 3) == "NL-J20-6FV" else "fail"))
| """ Reference: https://edabit.com/challenge/HTaZiWnsCGgehpgdr
This challenge is as follows:
Travelling through Europe one needs to pay
attention to how the license plate in the
given country is displayed. When crossing the
border you need to park on the shoulder,
unscrew the plate, re-group the characters
according to the local regulations, attach it
back and proceed with the journey.
Create a solution that can format the dmv
number into a plate number with correct grouping.
The function input consists of string s and
group length n. The output has to be upper case
characters and digits. The new groups are made
from right to left and connected by -.
The original order of the dmv number is preserved.
Expected Results:
"5F3Z-2e-9-w", 4 -> "5F3Z-2E9W"
"2-5g-3-J", 2 -> "2-5G-3J"
"2-4A0r7-4k", 3 -> "24-A0R-74K"
"nlj-206-fv", 3 -> "NL-J20-6FV """
def license_plate(s, n):
s = s.replace('-', '').upper()
char_count = len(s) - 1 - n
while char_count >= 0:
s = s[:char_count + 1] + '-' + s[char_count + 1:]
char_count = char_count - n
return s
if __name__ == '__main__':
print('Scenario 1: 5F3Z-2e-9-w, 4: {}'.format('success' if license_plate('5F3Z-2e-9-w', 4) == '5F3Z-2E9W' else 'fail'))
print('Scenario 2: 2-5g-3-J, 2: {}'.format('success' if license_plate('2-5g-3-J', 2) == '2-5G-3J' else 'fail'))
print('Scenario 3: 2-4A0r7-4k, 3: {}'.format('success' if license_plate('2-4A0r7-4k', 3) == '24-A0R-74K' else 'fail'))
print('Scenario 4: nlj-206-fv, 3: {}'.format('success' if license_plate('nlj-206-fv', 3) == 'NL-J20-6FV' else 'fail')) |
'''
@description: Some training parameters
@author: liutaiting
@lastEditors: liutaiting
@Date: 2020-04-01 23:49:35
@LastEditTime: 2020-04-04 23:41:21
'''
EPOCHS = 5
BATCH_SIZE = 32
NUM_CLASSES = 7
image_width = 48
image_height = 48
channels = 1
model_dir = "image_classification_model.h5"
train_dir = "dataset/train"
valid_dir = "dataset/valid"
test_dir = "dataset/test"
test_image_path = "" | """
@description: Some training parameters
@author: liutaiting
@lastEditors: liutaiting
@Date: 2020-04-01 23:49:35
@LastEditTime: 2020-04-04 23:41:21
"""
epochs = 5
batch_size = 32
num_classes = 7
image_width = 48
image_height = 48
channels = 1
model_dir = 'image_classification_model.h5'
train_dir = 'dataset/train'
valid_dir = 'dataset/valid'
test_dir = 'dataset/test'
test_image_path = '' |
class Generator():
"""Virtual class for Generators."""
def generate_char(self, char):
self.generate_basic_info(char)
self.generate_characteristics(char)
self.generate_status(char)
self.generate_combact_stat(char)
self.generate_skills(char)
self.generate_weapons(char)
self.generate_backstory(char)
self.generate_inventory(char)
self.generate_financial_status(char)
def generate_basic_info(self, char):
pass
def generate_characteristics(self, char):
pass
def generate_status(self, char):
pass
def generate_combact_stat(self, char):
pass
def generate_skills(self, char):
pass
def generate_weapons(self, char):
pass
def generate_backstory(self, char):
pass
def generate_inventory(self, char):
pass
def generate_financial_status(self, char):
pass
| class Generator:
"""Virtual class for Generators."""
def generate_char(self, char):
self.generate_basic_info(char)
self.generate_characteristics(char)
self.generate_status(char)
self.generate_combact_stat(char)
self.generate_skills(char)
self.generate_weapons(char)
self.generate_backstory(char)
self.generate_inventory(char)
self.generate_financial_status(char)
def generate_basic_info(self, char):
pass
def generate_characteristics(self, char):
pass
def generate_status(self, char):
pass
def generate_combact_stat(self, char):
pass
def generate_skills(self, char):
pass
def generate_weapons(self, char):
pass
def generate_backstory(self, char):
pass
def generate_inventory(self, char):
pass
def generate_financial_status(self, char):
pass |
# Node 'Class'
#
# written by John C. Lusth, copyright 2012
#
# not really an object, a node is an abstraction of
# a two-element array the first slot holds the value
# the second slot holds the next pointer
#
# VERSION 1.0
def NodeCreate(value,next): return [value,next]
def NodeValue(n): return n[0]
def NodeNext(n): return n[1]
def NodeSetValue(n,value): n[0] = value; return value
def NodeSetNext(n,next): n[1] = next; return next;
## List 'Class'
##
# written by John C. Lusth, copyright 2012
#
## not really an object, a list is an abstraction of a node;
## nodes are linked together to form a chain of values
##
# ListCreate is variadic
def ListCreate(*args):
items = None
for i in range(len(args)-1,-1,-1): # reverse arg indices
items = join(args[i],items)
return items
# ListHead returns the first value in the list
def head(items):
return NodeValue(items)
# ListTail returns a new list composed of all the real nodes from
# the given list except the first real node
def tail(items):
return NodeNext(items)
# setHead replaces the first value in the list
def setHead(items,value):
NodeSetValue(items,value)
return
# setTail replaces the tail of a list
def setTail(items,next):
NodeSetNext(items,next)
return
# append two lists, attaches the second list at the end of the first
def append(items1,items2):
node = items1
while (NodeNext(node) != None):
node = NodeNext(node)
NodeSetNext(node,items2)
return
# join puts a new value at the front of the list
def join(value,items):
return NodeCreate(value,items)
# ListIndexNode returns the node at the given index
def ListIndexNode(items,index):
node = items
i = 0
while i < index and node != None:
node = NodeNext(node)
i += 1
if (node == None):
raise IndexError("true list index " + str(index) + " is out of bounds")
return node
# ListIndex returns the value at the given index
def ListIndex(items,index):
node = ListIndexNode(items,index)
return head(node)
# ListIndex resets the value at the given index
def ListSetIndex(items,index,value):
node = ListIndexNode(items,index)
setHead(node,value)
return
# ListToArray returns an equivalently sized array of items
def ListToArray(items): #items is an list
# first count the number of items
count = 0
spot = items
while (spot != None):
count += 1
spot = tail(spot)
# create the array in constant time
store = [0] * count
# fill out the array
spot = items
count = 0
while (spot != None):
store[count] = head(spot)
count += 1
spot = tail(spot)
return store
# ArrayToList returns an equivalently sized list of items
def ArrayToList(items): #items is an array
store = ListCreate()
for i in range(len(items)-1,-1,-1):
store = join(items[i],store);
return store
# list mapping function
def ListMap(f,items):
if (items == None):
return None
else:
return join(f(head(items)),ListMap(f,tail(items)))
# list filtering function
def ListFilter(p,items):
if (items == None):
return None
elif p(head(items)):
return join(head(items),ListFilter(p,tail(items)))
else:
return ListFilter(p,tail(items))
| def node_create(value, next):
return [value, next]
def node_value(n):
return n[0]
def node_next(n):
return n[1]
def node_set_value(n, value):
n[0] = value
return value
def node_set_next(n, next):
n[1] = next
return next
def list_create(*args):
items = None
for i in range(len(args) - 1, -1, -1):
items = join(args[i], items)
return items
def head(items):
return node_value(items)
def tail(items):
return node_next(items)
def set_head(items, value):
node_set_value(items, value)
return
def set_tail(items, next):
node_set_next(items, next)
return
def append(items1, items2):
node = items1
while node_next(node) != None:
node = node_next(node)
node_set_next(node, items2)
return
def join(value, items):
return node_create(value, items)
def list_index_node(items, index):
node = items
i = 0
while i < index and node != None:
node = node_next(node)
i += 1
if node == None:
raise index_error('true list index ' + str(index) + ' is out of bounds')
return node
def list_index(items, index):
node = list_index_node(items, index)
return head(node)
def list_set_index(items, index, value):
node = list_index_node(items, index)
set_head(node, value)
return
def list_to_array(items):
count = 0
spot = items
while spot != None:
count += 1
spot = tail(spot)
store = [0] * count
spot = items
count = 0
while spot != None:
store[count] = head(spot)
count += 1
spot = tail(spot)
return store
def array_to_list(items):
store = list_create()
for i in range(len(items) - 1, -1, -1):
store = join(items[i], store)
return store
def list_map(f, items):
if items == None:
return None
else:
return join(f(head(items)), list_map(f, tail(items)))
def list_filter(p, items):
if items == None:
return None
elif p(head(items)):
return join(head(items), list_filter(p, tail(items)))
else:
return list_filter(p, tail(items)) |
# 01234567890123456789012345
letters = "abcdefghijklmnopqrstuvwxyz"
backwards = letters[25:0:-1]
# if I want to print z...a then in line 4 I should write : backwards = letters[25::-1], so the slicing starts printing from 25 backwards to the start INCLUDING the start
# create a slice that produces the characters qpo
print(letters[16:13:-1])
# slice the string to produce edcba
print(letters[4::-1])
# slice the string to produce the last 8 characters, in reverse order
print(letters[25:17:-1])
# also I could write print(letters[:-9:-1])
print(backwards)
print(letters[-4:])
print(letters[-1:])
print(letters[:1])
print(letters[0])
| letters = 'abcdefghijklmnopqrstuvwxyz'
backwards = letters[25:0:-1]
print(letters[16:13:-1])
print(letters[4::-1])
print(letters[25:17:-1])
print(backwards)
print(letters[-4:])
print(letters[-1:])
print(letters[:1])
print(letters[0]) |
"""
This file is a part of My-PyChess application.
In this file, we define heuristic constants required for the python chess
engine.
"""
pawnEvalWhite = (
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
(8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0),
(2.0, 2.0, 3.0, 5.0, 5.0, 3.0, 2.0, 2.0),
(0.5, 0.5, 1.0, 2.5, 2.5, 1.0, 0.5, 0.5),
(0.0, 0.0, 0.5, 2.0, 2.0, 0.5, 0.0, 0.0),
(0.5, -0.5, -1.0, 0.0, 0.0, -1.0, -0.5, 0.5),
(0.5, 1.0, 0.5, -2.0, -2.0, 0.5, 1.0, 0.5),
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
)
pawnEvalBlack = tuple(reversed(pawnEvalWhite))
knightEval = (
(-5.0, -4.0, -3.0, -3.0, -3.0, -3.0, -4.0, -5.0),
(-4.0, -2.0, 0.0, 0.0, 0.0, 0.0, -2.0, -4.0),
(-3.0, 0.0, 1.0, 1.5, 1.5, 1.0, 0.0, -3.0),
(-3.0, 0.5, 1.5, 2.0, 2.0, 1.5, 0.5, -3.0),
(-3.0, 0.0, 1.5, 2.0, 2.0, 1.5, 0.0, -3.0),
(-3.0, 0.5, 1.0, 1.5, 1.5, 1.0, 0.5, -3.0),
(-4.0, -2.0, 0.0, 0.5, 0.5, 0.0, -2.0, -4.0),
(-5.0, -4.0, -3.0, -3.0, -3.0, -3.0, -4.0, -5.0),
)
bishopEvalWhite = (
(-2.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -2.0),
(-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0),
(-1.0, 0.0, 0.5, 1.0, 1.0, 0.5, 0.0, -1.0),
(-1.0, 0.5, 0.5, 1.0, 1.0, 0.5, 0.5, -1.0),
(-1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, -1.0),
(-1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, -1.0),
(-1.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, -1.0),
(-2.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -2.0),
)
bishopEvalBlack = tuple(reversed(bishopEvalWhite))
rookEvalWhite = (
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
(0.5, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5),
(-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5),
(-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5),
(-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5),
(-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5),
(-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5),
(0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0),
)
rookEvalBlack = tuple(reversed(rookEvalWhite))
queenEval = (
(-2.0, -1.0, -1.0, -0.5, -0.5, -1.0, -1.0, -2.0),
(-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0),
(-1.0, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -1.0),
(-0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -0.5),
(0.0, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -0.5),
(-1.0, 0.5, 0.5, 0.5, 0.5, 0.5, 0.0, -1.0),
(-1.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, -1.0),
(-2.0, -1.0, -1.0, -0.5, -0.5, -1.0, -1.0, -2.0),
)
kingEvalWhite = (
(-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0),
(-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0),
(-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0),
(-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0),
(-2.0, -3.0, -3.0, -4.0, -4.0, -3.0, -3.0, -2.0),
(-1.0, -2.0, -2.0, -2.0, -2.0, -2.0, -2.0, -1.0),
(2.0, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 2.0),
(2.0, 3.0, 3.0, 0.0, 0.0, 1.0, 3.0, 2.0),
)
kingEvalBlack = tuple(reversed(kingEvalWhite)) | """
This file is a part of My-PyChess application.
In this file, we define heuristic constants required for the python chess
engine.
"""
pawn_eval_white = ((0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0), (2.0, 2.0, 3.0, 5.0, 5.0, 3.0, 2.0, 2.0), (0.5, 0.5, 1.0, 2.5, 2.5, 1.0, 0.5, 0.5), (0.0, 0.0, 0.5, 2.0, 2.0, 0.5, 0.0, 0.0), (0.5, -0.5, -1.0, 0.0, 0.0, -1.0, -0.5, 0.5), (0.5, 1.0, 0.5, -2.0, -2.0, 0.5, 1.0, 0.5), (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0))
pawn_eval_black = tuple(reversed(pawnEvalWhite))
knight_eval = ((-5.0, -4.0, -3.0, -3.0, -3.0, -3.0, -4.0, -5.0), (-4.0, -2.0, 0.0, 0.0, 0.0, 0.0, -2.0, -4.0), (-3.0, 0.0, 1.0, 1.5, 1.5, 1.0, 0.0, -3.0), (-3.0, 0.5, 1.5, 2.0, 2.0, 1.5, 0.5, -3.0), (-3.0, 0.0, 1.5, 2.0, 2.0, 1.5, 0.0, -3.0), (-3.0, 0.5, 1.0, 1.5, 1.5, 1.0, 0.5, -3.0), (-4.0, -2.0, 0.0, 0.5, 0.5, 0.0, -2.0, -4.0), (-5.0, -4.0, -3.0, -3.0, -3.0, -3.0, -4.0, -5.0))
bishop_eval_white = ((-2.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -2.0), (-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0), (-1.0, 0.0, 0.5, 1.0, 1.0, 0.5, 0.0, -1.0), (-1.0, 0.5, 0.5, 1.0, 1.0, 0.5, 0.5, -1.0), (-1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, -1.0), (-1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, -1.0), (-1.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, -1.0), (-2.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -2.0))
bishop_eval_black = tuple(reversed(bishopEvalWhite))
rook_eval_white = ((0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (0.5, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5), (-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5), (-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5), (-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5), (-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5), (-0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5), (0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0))
rook_eval_black = tuple(reversed(rookEvalWhite))
queen_eval = ((-2.0, -1.0, -1.0, -0.5, -0.5, -1.0, -1.0, -2.0), (-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0), (-1.0, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -1.0), (-0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -0.5), (0.0, 0.0, 0.5, 0.5, 0.5, 0.5, 0.0, -0.5), (-1.0, 0.5, 0.5, 0.5, 0.5, 0.5, 0.0, -1.0), (-1.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, -1.0), (-2.0, -1.0, -1.0, -0.5, -0.5, -1.0, -1.0, -2.0))
king_eval_white = ((-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0), (-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0), (-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0), (-3.0, -4.0, -4.0, -5.0, -5.0, -4.0, -4.0, -3.0), (-2.0, -3.0, -3.0, -4.0, -4.0, -3.0, -3.0, -2.0), (-1.0, -2.0, -2.0, -2.0, -2.0, -2.0, -2.0, -1.0), (2.0, 2.0, 0.0, 0.0, 0.0, 0.0, 2.0, 2.0), (2.0, 3.0, 3.0, 0.0, 0.0, 1.0, 3.0, 2.0))
king_eval_black = tuple(reversed(kingEvalWhite)) |
class Solution:
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
def dfs(course,prerequisite,used):
used.add(course)
if prerequisites[1] not in used:
dfs(prerequisites,prerequisites[1],used)
used = set()
used_1 = set()
ans = dfs(prerequisites[0],used)
if ans is None:
return True
| class Solution:
def can_finish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
def dfs(course, prerequisite, used):
used.add(course)
if prerequisites[1] not in used:
dfs(prerequisites, prerequisites[1], used)
used = set()
used_1 = set()
ans = dfs(prerequisites[0], used)
if ans is None:
return True |
class Plugin(object):
name = "base"
description = "base plugin"
def add_arguments(self, parser):
pass
| class Plugin(object):
name = 'base'
description = 'base plugin'
def add_arguments(self, parser):
pass |
v, n = [int(x) for x in input().split()]
total = v*n
for i in range(1, 10):
if i>=2:
print(" ", end="")
print((total*i+9)// 10, end="")
print()
| (v, n) = [int(x) for x in input().split()]
total = v * n
for i in range(1, 10):
if i >= 2:
print(' ', end='')
print((total * i + 9) // 10, end='')
print() |
'''write a simple function to add two integers,
demonstrate how to call the function with various
inputs'''
# call the function add, 2 and 3, print the result to the terminal
# call the function add, 2 and 3, save the result as a variable | """write a simple function to add two integers,
demonstrate how to call the function with various
inputs""" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.