content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
def fun1(str1):
fun1(str1)
print("This is " + str1)
fun1("Issue")
| def fun1(str1):
fun1(str1)
print('This is ' + str1)
fun1('Issue') |
# URI Online Judge 1149
Entrada = input()
Entrada = list(map(int, Entrada.split()))
A = Entrada[0]
A_copy = A
sum = 0
for i in Entrada[1:]:
if i > 0:
N = i
for j in range(0,N):
sum += A_copy + j
print(sum) | entrada = input()
entrada = list(map(int, Entrada.split()))
a = Entrada[0]
a_copy = A
sum = 0
for i in Entrada[1:]:
if i > 0:
n = i
for j in range(0, N):
sum += A_copy + j
print(sum) |
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
def correct_answers(answers):
answers['NY'] = 'Correct!' if answers['NY'].lower() == 'albany' else 'Incorrect.'
answers['CA'] = 'Correct!' if answers['CA'].lower() == 'sacramento' else 'Incorrect.'
answers['TX'] = 'Correct!' if answers['TX'].lower() == 'austin' else 'Incorrect.'
answers['FL'] = 'Correct!' if answers['FL'].lower() == 'tallahassee' else 'Incorrect.'
answers['CO'] = 'Correct!' if answers['CO'].lower() == 'denver' else 'Incorrect.'
return answers
def grade_answers(answers):
num_correct_ans = 0
if answers['NY'].lower() == 'albany': num_correct_ans += 1
if answers['CA'].lower() == 'sacramento': num_correct_ans += 1
if answers['TX'].lower() == 'austin': num_correct_ans += 1
if answers['FL'].lower() == 'tallahasee': num_correct_ans += 1
if answers['CO'].lower() == 'denver': num_correct_ans += 1
return (int)(num_correct_ans / 0.05) | def correct_answers(answers):
answers['NY'] = 'Correct!' if answers['NY'].lower() == 'albany' else 'Incorrect.'
answers['CA'] = 'Correct!' if answers['CA'].lower() == 'sacramento' else 'Incorrect.'
answers['TX'] = 'Correct!' if answers['TX'].lower() == 'austin' else 'Incorrect.'
answers['FL'] = 'Correct!' if answers['FL'].lower() == 'tallahassee' else 'Incorrect.'
answers['CO'] = 'Correct!' if answers['CO'].lower() == 'denver' else 'Incorrect.'
return answers
def grade_answers(answers):
num_correct_ans = 0
if answers['NY'].lower() == 'albany':
num_correct_ans += 1
if answers['CA'].lower() == 'sacramento':
num_correct_ans += 1
if answers['TX'].lower() == 'austin':
num_correct_ans += 1
if answers['FL'].lower() == 'tallahasee':
num_correct_ans += 1
if answers['CO'].lower() == 'denver':
num_correct_ans += 1
return int(num_correct_ans / 0.05) |
# http://python.coderz.ir/
list=[1,2,3,4,5]
list.append(6)
print(list)
tuple=(1,2,3)
dic={'key1':'A','key2':'B'}
print(dic['key1'])
class Human():
print("human class")
def walking(self):
print("human is walking")
class contact(Human):
print("contact is creating")
def __init__(self,name,family,address):
self.name=name
self.family=family
self.address=address
def __str__(self):
return self.name+" / "+self.family+" / "+self.address
contact1=contact(name="omid", family="hamidi", address="ahvaz")
contact1.walking()
print(contact1)
| list = [1, 2, 3, 4, 5]
list.append(6)
print(list)
tuple = (1, 2, 3)
dic = {'key1': 'A', 'key2': 'B'}
print(dic['key1'])
class Human:
print('human class')
def walking(self):
print('human is walking')
class Contact(Human):
print('contact is creating')
def __init__(self, name, family, address):
self.name = name
self.family = family
self.address = address
def __str__(self):
return self.name + ' / ' + self.family + ' / ' + self.address
contact1 = contact(name='omid', family='hamidi', address='ahvaz')
contact1.walking()
print(contact1) |
DEFAULT_METADATA_TABLE = 'data'
DEFAULT_USER_TABLE = 'user'
DEFAULT_NAME_COLUMN = 'dataset'
DEFAULT_UPDATE_COLUMN = 'updated_at'
DEFAULT_RESTRICTED_TABLES = [DEFAULT_METADATA_TABLE, DEFAULT_USER_TABLE]
DEFAULT_METADATA_COLUMNS = [
dict(name='id', type_='Integer', primary_key=True),
dict(name='dataset', type_='String', unique=True),
('title', 'String'),
('description', 'String'),
('tags', 'String'),
('source', 'String'),
('created_by', 'String'),
('created_at', 'DateTime'),
('updated_at', 'DateTime')
]
DEFAULT_DATA_ROUTE_SETTINGS = dict(
columns=dict(
path='/{dataset}/columns',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
create=dict(
path='/',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={'superuser': True}
),
delete=dict(
path='/{dataset}',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={'superuser': True}
),
id=dict(
path='/{dataset}/id/{id}',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
insert=dict(
path='/{dataset}/insert',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={'superuser': True}
),
metadata=dict(
path='/{dataset}/metadata',
tags=['metadata'],
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
metadata_update=dict(
path='/{dataset}/metadata',
tags=['metadata'],
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={'superuser': True}
),
query=dict(
path='/{dataset}',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
rows=dict(
path='/{dataset}/rows',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
search=dict(
path='/',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={}
),
update=dict(
path='/{dataset}',
_restricted_tables=DEFAULT_RESTRICTED_TABLES,
_enable=True,
_get_user={'superuser': True}
)
) | default_metadata_table = 'data'
default_user_table = 'user'
default_name_column = 'dataset'
default_update_column = 'updated_at'
default_restricted_tables = [DEFAULT_METADATA_TABLE, DEFAULT_USER_TABLE]
default_metadata_columns = [dict(name='id', type_='Integer', primary_key=True), dict(name='dataset', type_='String', unique=True), ('title', 'String'), ('description', 'String'), ('tags', 'String'), ('source', 'String'), ('created_by', 'String'), ('created_at', 'DateTime'), ('updated_at', 'DateTime')]
default_data_route_settings = dict(columns=dict(path='/{dataset}/columns', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), create=dict(path='/', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={'superuser': True}), delete=dict(path='/{dataset}', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={'superuser': True}), id=dict(path='/{dataset}/id/{id}', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), insert=dict(path='/{dataset}/insert', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={'superuser': True}), metadata=dict(path='/{dataset}/metadata', tags=['metadata'], _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), metadata_update=dict(path='/{dataset}/metadata', tags=['metadata'], _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={'superuser': True}), query=dict(path='/{dataset}', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), rows=dict(path='/{dataset}/rows', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), search=dict(path='/', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={}), update=dict(path='/{dataset}', _restricted_tables=DEFAULT_RESTRICTED_TABLES, _enable=True, _get_user={'superuser': True})) |
#!/usr/bin/env python
# coding: utf-8
# This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges).
# # Solution Notebook
# ## Problem: Implement common bit manipulation operations: get_bit, set_bit, clear_bit, clear_bits_msb_to_index, clear_bits_msb_to_lsb, update_bit.
#
# * [Constraints](#Constraints)
# * [Test Cases](#Test-Cases)
# * [Algorithm](#Algorithm)
# * [Code](#Code)
# * [Unit Test](#Unit-Test)
# ## Constraints
#
# * Can we assume the inputs are valid?
# * No
# * Can we assume this fits memory?
# * Yes
# ## Test Cases
#
# * None as a number input -> Exception
# * Negative index -> Exception
#
# ### get_bit
# number = 0b10001110, index = 3
# expected = True
# ### set_bit
# number = 0b10001110, index = 4
# expected = 0b10011110
# ### clear_bit
# number = 0b10001110, index = 3
# expected = 0b10000110
# ### clear_bits_msb_to_index
# number = 0b10001110, index = 3
# expected = 0b00000110
# ### clear_bits_index_to_lsb
# number = 0b10001110, index = 3
# expected = 0b10000000
# ### update_bit
# number = 0b10001110, index = 3, value = 1
# expected = 0b10001110
# number = 0b10001110, index = 3, value = 0
# expected = 0b10000110
# number = 0b10001110, index = 0, value = 1
# expected = 0b10001111
# ## Algorithm
#
# ### get_bit
#
# <pre>
# indices 7 6 5 4 3 2 1 0 index = 3
# --------------------------------------------------
# input 1 0 0 0 1 1 1 0 0b10001110
# mask 0 0 0 0 1 0 0 0 1 << index
# --------------------------------------------------
# result 0 0 0 0 1 0 0 0 number & mask != 0
# </pre>
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
# ### set_bit
#
# <pre>
# indices 7 6 5 4 3 2 1 0 index = 4
# --------------------------------------------------
# input 1 0 0 0 1 1 1 0 0b10001110
# mask 0 0 0 1 0 0 0 0 1 << index
# --------------------------------------------------
# result 1 0 0 1 1 1 1 0 number | mask
# </pre>
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
# ### clear_bit
#
# <pre>
# indices 7 6 5 4 3 2 1 0 index = 3
# --------------------------------------------------
# input 1 0 0 0 1 1 1 0 0b10001110
# mask 0 0 0 0 1 0 0 0 1 << index
# mask 1 1 1 1 0 1 1 1 ~(1 << index)
# --------------------------------------------------
# result 1 0 0 0 0 1 1 0 number & mask
# </pre>
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
# ### clear_bits_msb_to_index
#
# <pre>
# indices 7 6 5 4 3 2 1 0 index = 3
# --------------------------------------------------
# input 1 0 0 0 1 1 1 0 0b10001110
# mask 0 0 0 0 1 0 0 0 1 << index
# mask 0 0 0 0 0 1 1 1 (1 << index) - 1
# --------------------------------------------------
# result 0 0 0 0 0 1 1 1 number & mask
# </pre>
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
# ### clear_bits_index_to_lsb
#
# <pre>
# indices 7 6 5 4 3 2 1 0 index = 3
# --------------------------------------------------
# input 1 0 0 0 1 1 1 0 0b10001110
# mask 0 0 0 1 0 0 0 0 1 << index + 1
# mask 0 0 0 0 1 1 1 1 (1 << index + 1) - 1
# mask 1 1 1 1 0 0 0 0 ~((1 << index + 1) - 1)
# --------------------------------------------------
# result 1 0 0 0 0 0 0 0 number & mask
# </pre>
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
# ### update_bit
#
# * Use `get_bit` to see if the value is already set or cleared
# * If not, use `set_bit` if setting the value or `clear_bit` if clearing the value
#
# Complexity:
# * Time: O(n)
# * Space: O(n)
#
#
#
# ## Code
# In[1]:
def validate_index(func):
def validate_index_wrapper(self, *args, **kwargs):
for arg in args:
if arg < 0:
raise IndexError('Invalid index')
return func(self, *args, **kwargs)
return validate_index_wrapper
# In[2]:
class Bit(object):
def __init__(self, number):
if number is None:
raise TypeError('number cannot be None')
self.number = number
@validate_index
def get_bit(self, index):
mask = 1 << index
return self.number & mask != 0
@validate_index
def set_bit(self, index):
mask = 1 << index
self.number |= mask
return self.number
@validate_index
def clear_bit(self, index):
mask = ~(1 << index)
self.number &= mask
return self.number
@validate_index
def clear_bits_msb_to_index(self, index):
mask = (1 << index) - 1
self.number &= mask
return self.number
@validate_index
def clear_bits_index_to_lsb(self, index):
mask = ~((1 << index + 1) - 1)
self.number &= mask
return self.number
@validate_index
def update_bit(self, index, value):
if value is None or value not in (0, 1):
raise Exception('Invalid value')
if self.get_bit(index) == value:
return self.number
if value:
self.set_bit(index)
else:
self.clear_bit(index)
return self.number
# ## Unit Test
# In[3]:
get_ipython().run_cell_magic('writefile', 'test_bit.py', "import unittest\n\n\nclass TestBit(unittest.TestCase):\n\n def test_bit(self):\n number = int('10001110', base=2)\n bit = Bit(number)\n self.assertEqual(bit.get_bit(index=3), True)\n expected = int('10011110', base=2)\n self.assertEqual(bit.set_bit(index=4), expected)\n bit = Bit(number)\n expected = int('10000110', base=2)\n self.assertEqual(bit.clear_bit(index=3), expected)\n bit = Bit(number)\n expected = int('00000110', base=2)\n self.assertEqual(bit.clear_bits_msb_to_index(index=3), expected)\n bit = Bit(number)\n expected = int('10000000', base=2)\n self.assertEqual(bit.clear_bits_index_to_lsb(index=3), expected)\n bit = Bit(number)\n self.assertEqual(bit.update_bit(index=3, value=1), number)\n bit = Bit(number)\n expected = int('10000110', base=2)\n self.assertEqual(bit.update_bit(index=3, value=0), expected)\n bit = Bit(number)\n expected = int('10001111', base=2)\n self.assertEqual(bit.update_bit(index=0, value=1), expected)\n print('Success: test_bit')\n\n\ndef main():\n test = TestBit()\n test.test_bit()\n\n\nif __name__ == '__main__':\n main()")
# In[4]:
get_ipython().run_line_magic('run', '-i test_bit.py')
| def validate_index(func):
def validate_index_wrapper(self, *args, **kwargs):
for arg in args:
if arg < 0:
raise index_error('Invalid index')
return func(self, *args, **kwargs)
return validate_index_wrapper
class Bit(object):
def __init__(self, number):
if number is None:
raise type_error('number cannot be None')
self.number = number
@validate_index
def get_bit(self, index):
mask = 1 << index
return self.number & mask != 0
@validate_index
def set_bit(self, index):
mask = 1 << index
self.number |= mask
return self.number
@validate_index
def clear_bit(self, index):
mask = ~(1 << index)
self.number &= mask
return self.number
@validate_index
def clear_bits_msb_to_index(self, index):
mask = (1 << index) - 1
self.number &= mask
return self.number
@validate_index
def clear_bits_index_to_lsb(self, index):
mask = ~((1 << index + 1) - 1)
self.number &= mask
return self.number
@validate_index
def update_bit(self, index, value):
if value is None or value not in (0, 1):
raise exception('Invalid value')
if self.get_bit(index) == value:
return self.number
if value:
self.set_bit(index)
else:
self.clear_bit(index)
return self.number
get_ipython().run_cell_magic('writefile', 'test_bit.py', "import unittest\n\n\nclass TestBit(unittest.TestCase):\n\n def test_bit(self):\n number = int('10001110', base=2)\n bit = Bit(number)\n self.assertEqual(bit.get_bit(index=3), True)\n expected = int('10011110', base=2)\n self.assertEqual(bit.set_bit(index=4), expected)\n bit = Bit(number)\n expected = int('10000110', base=2)\n self.assertEqual(bit.clear_bit(index=3), expected)\n bit = Bit(number)\n expected = int('00000110', base=2)\n self.assertEqual(bit.clear_bits_msb_to_index(index=3), expected)\n bit = Bit(number)\n expected = int('10000000', base=2)\n self.assertEqual(bit.clear_bits_index_to_lsb(index=3), expected)\n bit = Bit(number)\n self.assertEqual(bit.update_bit(index=3, value=1), number)\n bit = Bit(number)\n expected = int('10000110', base=2)\n self.assertEqual(bit.update_bit(index=3, value=0), expected)\n bit = Bit(number)\n expected = int('10001111', base=2)\n self.assertEqual(bit.update_bit(index=0, value=1), expected)\n print('Success: test_bit')\n\n\ndef main():\n test = TestBit()\n test.test_bit()\n\n\nif __name__ == '__main__':\n main()")
get_ipython().run_line_magic('run', '-i test_bit.py') |
def lz78(charstream, verbose=False):
dict = {}
p = ""
code = []
i = 0
while True:
c = charstream[i]
try:
dict[p + c]
p = p + c
except (KeyError):
if p == "":
o = 0
else:
o = dict[p]
code.append((o, c))
dict[p + c] = len(dict) + 1
p = ""
i += 1
if i < len(charstream):
continue
else:
if p != "":
code.append((dict[p], "EOF"))
break
output = ""
for block in code:
for part in block:
output += str(part)
print(output)
print(code)
lz78('Lorem ipsum dolor sit amet consectetur adipiscing elit proin ac lectus laoreet bibendum diam sit amet ullamcorper purus fusce sodales') | def lz78(charstream, verbose=False):
dict = {}
p = ''
code = []
i = 0
while True:
c = charstream[i]
try:
dict[p + c]
p = p + c
except KeyError:
if p == '':
o = 0
else:
o = dict[p]
code.append((o, c))
dict[p + c] = len(dict) + 1
p = ''
i += 1
if i < len(charstream):
continue
else:
if p != '':
code.append((dict[p], 'EOF'))
break
output = ''
for block in code:
for part in block:
output += str(part)
print(output)
print(code)
lz78('Lorem ipsum dolor sit amet consectetur adipiscing elit proin ac lectus laoreet bibendum diam sit amet ullamcorper purus fusce sodales') |
for number in range(1001):
string=list(str(number))
sum_of_each_digit=0
for j in range(len(string)):
int_number=int(string[j])
power_of_digit = int_number ** len(string)
sum_of_each_digit += power_of_digit
if number == sum_of_each_digit:
print (number, "Is amstrong Number")
| for number in range(1001):
string = list(str(number))
sum_of_each_digit = 0
for j in range(len(string)):
int_number = int(string[j])
power_of_digit = int_number ** len(string)
sum_of_each_digit += power_of_digit
if number == sum_of_each_digit:
print(number, 'Is amstrong Number') |
spells = {
'levitate': 'Levioso',
'make fire': 'Incendio',
'open locked door': 'Alohomora'
}
# dictionary operators
print(spells['open locked door'])
print(spells['levitate'])
print(spells.keys())
print(dir(spells))
| spells = {'levitate': 'Levioso', 'make fire': 'Incendio', 'open locked door': 'Alohomora'}
print(spells['open locked door'])
print(spells['levitate'])
print(spells.keys())
print(dir(spells)) |
def insertion_sort(array):
for i in range(1, len(array)):
currentValue = array[i]
currentPosition = i
while currentPosition > 0 and array[currentPosition - 1] > currentValue:
array[currentPosition] = array[currentPosition -1]
currentPosition -= 1
array[currentPosition] = currentValue
return array
# Recursive | def insertion_sort(array):
for i in range(1, len(array)):
current_value = array[i]
current_position = i
while currentPosition > 0 and array[currentPosition - 1] > currentValue:
array[currentPosition] = array[currentPosition - 1]
current_position -= 1
array[currentPosition] = currentValue
return array |
class EbWrapper:
def set_eb_raw_json_data(self, eb_raw_json_data: dict):
if not type(eb_raw_json_data).__name__ == 'dict':
raise TypeError('The entered data must be of type dict')
self.eb_raw_json_data = eb_raw_json_data
return self
def get_environment_name(self):
return self.eb_raw_json_data['EnvironmentName']
def get_application_name(self):
return self.eb_raw_json_data['ApplicationName']
def get_environment_url(self):
return self.eb_raw_json_data['CNAME']
def get_environment_id(self):
return self.eb_raw_json_data['EnvironmentId']
def get_status(self):
return self.eb_raw_json_data['Status']
| class Ebwrapper:
def set_eb_raw_json_data(self, eb_raw_json_data: dict):
if not type(eb_raw_json_data).__name__ == 'dict':
raise type_error('The entered data must be of type dict')
self.eb_raw_json_data = eb_raw_json_data
return self
def get_environment_name(self):
return self.eb_raw_json_data['EnvironmentName']
def get_application_name(self):
return self.eb_raw_json_data['ApplicationName']
def get_environment_url(self):
return self.eb_raw_json_data['CNAME']
def get_environment_id(self):
return self.eb_raw_json_data['EnvironmentId']
def get_status(self):
return self.eb_raw_json_data['Status'] |
name = data.get('name', 'world')
logger.info("Hello Robin {}".format(name))
hass.bus.fire(name, { "wow": "from a Python script!" })
state = hass.states.get('sensor.next_train_status')
train_status = state.state
if train_status == 'ON TIME':
hass.services.call('light', 'turn_on', { "entity_id" : 'light.lamp', 'color_name': 'green' })
else:
hass.services.call('light', 'turn_on', { "entity_id" : 'light.lamp', 'color_name': 'red' })
| name = data.get('name', 'world')
logger.info('Hello Robin {}'.format(name))
hass.bus.fire(name, {'wow': 'from a Python script!'})
state = hass.states.get('sensor.next_train_status')
train_status = state.state
if train_status == 'ON TIME':
hass.services.call('light', 'turn_on', {'entity_id': 'light.lamp', 'color_name': 'green'})
else:
hass.services.call('light', 'turn_on', {'entity_id': 'light.lamp', 'color_name': 'red'}) |
inputString = str(input())
tool = len(inputString)
count_3 = inputString.count('3')
count_2 = inputString.count('2')
count_1 = inputString.count('1')
regularWordage = '1' * count_1 + '2' * count_2 + '3' * count_3
for i in range(0,tool-1) :
if i%2 == 0:
pass
else:
regularWordage = regularWordage[: i] + '+' + regularWordage[i :]
print(regularWordage) | input_string = str(input())
tool = len(inputString)
count_3 = inputString.count('3')
count_2 = inputString.count('2')
count_1 = inputString.count('1')
regular_wordage = '1' * count_1 + '2' * count_2 + '3' * count_3
for i in range(0, tool - 1):
if i % 2 == 0:
pass
else:
regular_wordage = regularWordage[:i] + '+' + regularWordage[i:]
print(regularWordage) |
oddcompnumlist = []
for i in range(2,10000):
if i%2!=0:
if 2**(i-1)%i!=1:
oddcompnumlist.append(i)
primlist = []
randlist = []
complist = []
for j in range(2,142):
boolist = []
for k in range(2,j):
if j%k != 0:
boolist.append('false')
elif j%k == 0:
boolist.append('true')
break
if 'true' in boolist:
randlist.append(j)
else:
primlist.append(j)
randlist.append(j)
for m in primlist:
complist.extend(range(2*m,10000,m))
complist.append(m**2)
complist = list(set(complist))
complist.sort()
primrange = range(2,10000)
for s in complist:
try:
primrange.remove(s)
except:
pass
squareslist = []
for i in range(1,600):
squareslist.append(2*(i**2))
goldbacknl = []
for w in primrange:
for a in squareslist:
goldbacknl.append(a+w)
goldbacknl = list(set(goldbacknl))
ansnum = None
for q in oddcompnumlist:
if q not in goldbacknl:
ansnum = q
break
print(ansnum)
| oddcompnumlist = []
for i in range(2, 10000):
if i % 2 != 0:
if 2 ** (i - 1) % i != 1:
oddcompnumlist.append(i)
primlist = []
randlist = []
complist = []
for j in range(2, 142):
boolist = []
for k in range(2, j):
if j % k != 0:
boolist.append('false')
elif j % k == 0:
boolist.append('true')
break
if 'true' in boolist:
randlist.append(j)
else:
primlist.append(j)
randlist.append(j)
for m in primlist:
complist.extend(range(2 * m, 10000, m))
complist.append(m ** 2)
complist = list(set(complist))
complist.sort()
primrange = range(2, 10000)
for s in complist:
try:
primrange.remove(s)
except:
pass
squareslist = []
for i in range(1, 600):
squareslist.append(2 * i ** 2)
goldbacknl = []
for w in primrange:
for a in squareslist:
goldbacknl.append(a + w)
goldbacknl = list(set(goldbacknl))
ansnum = None
for q in oddcompnumlist:
if q not in goldbacknl:
ansnum = q
break
print(ansnum) |
#
# PySNMP MIB module VERILINK-ENTERPRISE-NCMJAPISDN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/VERILINK-ENTERPRISE-NCMJAPISDN-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:26:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, TimeTicks, NotificationType, Gauge32, ModuleIdentity, IpAddress, Counter64, MibIdentifier, Counter32, ObjectIdentity, Integer32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "TimeTicks", "NotificationType", "Gauge32", "ModuleIdentity", "IpAddress", "Counter64", "MibIdentifier", "Counter32", "ObjectIdentity", "Integer32", "Bits")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
ncm_japisdn, = mibBuilder.importSymbols("VERILINK-ENTERPRISE-NCMALARM-MIB", "ncm-japisdn")
ncmJapPRIPortConfigTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000), )
if mibBuilder.loadTexts: ncmJapPRIPortConfigTable.setStatus('mandatory')
ncmJapPRIPortConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIPortNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIPortLineIndex"))
if mibBuilder.loadTexts: ncmJapPRIPortConfigEntry.setStatus('mandatory')
ncmJapPRIPortNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIPortNIDIndex.setStatus('mandatory')
ncmJapPRIPortLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIPortLineIndex.setStatus('mandatory')
ncmJapPRIPortInService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortInService.setStatus('mandatory')
ncmJapPRIPortNFASMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("no-Nfas", 1), ("nfas-No-Backup", 2), ("nfas-Backup", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortNFASMode.setStatus('mandatory')
ncmJapPRIPortDChanMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("inverted", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortDChanMode.setStatus('mandatory')
ncmJapPRIPortDChanBits = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("chan-8-Bit", 1), ("chan-7-Bit", 2), ("chan-6-Bit", 3), ("undefined", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortDChanBits.setStatus('mandatory')
ncmJapPRIPortTimeslotMap = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortTimeslotMap.setStatus('mandatory')
ncmJapPRIPortSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(15))).clone(namedValues=NamedValues(("sw-NTT", 15)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortSwitchType.setStatus('mandatory')
ncmJapPRIPortOwnNumPlan = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("unkn-NumPlan", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortOwnNumPlan.setStatus('mandatory')
ncmJapPRIPortOwnNumType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("unkn-NumType", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortOwnNumType.setStatus('mandatory')
ncmJapPRIPortSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("no-Checks", 1), ("own-Numbers", 2), ("ext-Numbers", 3), ("both-Numbers", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortSecurityLevel.setStatus('mandatory')
ncmJapPRIPortConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configuration-OK", 1), ("configuration-Error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIPortConfigStatus.setStatus('mandatory')
ncmJapPRIPortSetConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("set-Config", 1), ("not-in-use", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIPortSetConfig.setStatus('mandatory')
ncmJapPRICallProfCallRefCount = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICallProfCallRefCount.setStatus('mandatory')
ncmJapPRIL2AutoEstablish = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRIL2AutoEstablish.setStatus('mandatory')
ncmJapPRICallProfileTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001), )
if mibBuilder.loadTexts: ncmJapPRICallProfileTable.setStatus('mandatory')
ncmJapPRICallProfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICallProfNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICallProfLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICPCallProfileRef"))
if mibBuilder.loadTexts: ncmJapPRICallProfEntry.setStatus('mandatory')
ncmJapPRICallProfNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICallProfNIDIndex.setStatus('mandatory')
ncmJapPRICallProfLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICallProfLineIndex.setStatus('mandatory')
ncmJapPRICPCallProfileRef = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICPCallProfileRef.setStatus('mandatory')
ncmJapPRICallProfCallDir = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("no-Direction", 1), ("incoming", 2), ("outgoing", 3), ("both-Directions", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfCallDir.setStatus('mandatory')
ncmJapPRICallProfNumOwnDigit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfNumOwnDigit.setStatus('mandatory')
ncmJapPRICallProfOwnCallNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfOwnCallNum.setStatus('mandatory')
ncmJapPRICallProfExtNumPlan = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("unkn-NumPlan", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfExtNumPlan.setStatus('mandatory')
ncmJapPRICallProfExtNumType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("unkn-NumType", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfExtNumType.setStatus('mandatory')
ncmJapPRICallProfExtNumDigit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfExtNumDigit.setStatus('mandatory')
ncmJapPRICallProfExtCallNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfExtCallNum.setStatus('mandatory')
ncmJapPRICallProfTransferMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(8))).clone(namedValues=NamedValues(("unrestricted-digital", 8)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfTransferMode.setStatus('mandatory')
ncmJapPRICallProfCallBandWth = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(16, 19, 21))).clone(namedValues=NamedValues(("b1-64K", 16), ("h0-6X64K", 19), ("h11-24X64K", 21)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfCallBandWth.setStatus('mandatory')
ncmJapPRICallProfMultiRateCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 4, 6, 8, 12, 23, 24, 30, 31))).clone(namedValues=NamedValues(("mR-2", 2), ("mR-4", 4), ("mR-6", 6), ("mR-8", 8), ("mR-12", 12), ("mR-23", 23), ("mR-24", 24), ("mR-30", 30), ("mR-31", 31)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfMultiRateCnt.setStatus('mandatory')
ncmJapPRICallProfRateAdaptn = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no-Adapt", 1), ("adapt-56K", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfRateAdaptn.setStatus('mandatory')
ncmJapPRICallProfTestCallIntvl = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfTestCallIntvl.setStatus('mandatory')
ncmJapPRICallProfCallStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("fail-Takedown-Idle", 1), ("successful-Setup", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICallProfCallStatus.setStatus('mandatory')
ncmJapPRICallProfCallAction = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("setup-Call", 1), ("takedown-Call", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICallProfCallAction.setStatus('mandatory')
ncmJapPRICPSetCallProf = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("set-CallProf", 1), ("not-in-use", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICPSetCallProf.setStatus('mandatory')
ncmJapPRICPSetCallProfResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configuration-OK", 1), ("configuration-Error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPSetCallProfResp.setStatus('mandatory')
ncmJapPRICPCallActionResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configuration-OK", 1), ("configuration-Error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPCallActionResp.setStatus('mandatory')
ncmJapPRICallProfListTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002), )
if mibBuilder.loadTexts: ncmJapPRICallProfListTable.setStatus('mandatory')
ncmJapPRICallProfListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICPListNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICPListLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICPListIndex"))
if mibBuilder.loadTexts: ncmJapPRICallProfListEntry.setStatus('mandatory')
ncmJapPRICPListNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPListNIDIndex.setStatus('mandatory')
ncmJapPRICPListLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPListLineIndex.setStatus('mandatory')
ncmJapPRICPListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPListIndex.setStatus('mandatory')
ncmJapPRICPListValidCPRefNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICPListValidCPRefNum.setStatus('mandatory')
ncmJapPRICurrentTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003), )
if mibBuilder.loadTexts: ncmJapPRICurrentTable.setStatus('mandatory')
ncmJapPRICurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICurrNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICurrLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICurrEndType"))
if mibBuilder.loadTexts: ncmJapPRICurrentEntry.setStatus('mandatory')
ncmJapPRICurrNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrNIDIndex.setStatus('mandatory')
ncmJapPRICurrLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrLineIndex.setStatus('mandatory')
ncmJapPRICurrEndType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("near-End", 1), ("far-End", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrEndType.setStatus('mandatory')
ncmJapPRICurrTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrTimestamp.setStatus('mandatory')
ncmJapPRICurrSecsInCurrIntvl = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrSecsInCurrIntvl.setStatus('mandatory')
ncmJapPRICurrInfoRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrInfoRx.setStatus('mandatory')
ncmJapPRICurrInfoTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrInfoTx.setStatus('mandatory')
ncmJapPRICurrCRCErrRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrCRCErrRx.setStatus('mandatory')
ncmJapPRICurrInvalidFrameRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrInvalidFrameRx.setStatus('mandatory')
ncmJapPRICurrFrameAbortRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrFrameAbortRx.setStatus('mandatory')
ncmJapPRICurrDISCSRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrDISCSRx.setStatus('mandatory')
ncmJapPRICurrDISCSTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrDISCSTx.setStatus('mandatory')
ncmJapPRICurrFramerRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrFramerRx.setStatus('mandatory')
ncmJapPRICurrFramerTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrFramerTx.setStatus('mandatory')
ncmJapPRICurrLyr3ProtErr = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrLyr3ProtErr.setStatus('mandatory')
ncmJapPRICurrCallSetupSent = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrCallSetupSent.setStatus('mandatory')
ncmJapPRICurrCallSetupSentnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrCallSetupSentnFail.setStatus('mandatory')
ncmJapPRICurrCallSetupRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrCallSetupRx.setStatus('mandatory')
ncmJapPRICurrCallSetupRxnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrCallSetupRxnFail.setStatus('mandatory')
ncmJapPRICurrUnSupportMsgRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrUnSupportMsgRx.setStatus('mandatory')
ncmJapPRICurrTstCalSetupSentnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrTstCalSetupSentnFail.setStatus('mandatory')
ncmJapPRICurrValidIntvls = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICurrValidIntvls.setStatus('mandatory')
ncmJapPRICurrStatisticReset = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("statistic-Reset", 1), ("not-in-use", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRICurrStatisticReset.setStatus('mandatory')
ncmJapPRIIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004), )
if mibBuilder.loadTexts: ncmJapPRIIntervalTable.setStatus('mandatory')
ncmJapPRIIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIntvlNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIntvlLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIntvlEndType"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRIntvlIndex"))
if mibBuilder.loadTexts: ncmJapPRIIntervalEntry.setStatus('mandatory')
ncmJapPRIntvlNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlNIDIndex.setStatus('mandatory')
ncmJapPRIntvlLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlLineIndex.setStatus('mandatory')
ncmJapPRIntvlEndType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("near-End", 1), ("far-End", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlEndType.setStatus('mandatory')
ncmJapPRIntvlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlIndex.setStatus('mandatory')
ncmJapPRIntvlTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlTimestamp.setStatus('mandatory')
ncmJapPRIntvlSecsInCurrIntvl = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlSecsInCurrIntvl.setStatus('mandatory')
ncmJapPRIntvlInfoRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlInfoRx.setStatus('mandatory')
ncmJapPRIntvlInfoTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlInfoTx.setStatus('mandatory')
ncmJapPRIntvlCRCErrRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlCRCErrRx.setStatus('mandatory')
ncmJapPRIntvlInvalidFrameRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlInvalidFrameRx.setStatus('mandatory')
ncmJapPRIntvlFrameAbortRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlFrameAbortRx.setStatus('mandatory')
ncmJapPRIntvlDISCSRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlDISCSRx.setStatus('mandatory')
ncmJapPRIntvlDISCSTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlDISCSTx.setStatus('mandatory')
ncmJapPRIntvlFramerRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlFramerRx.setStatus('mandatory')
ncmJapPRIntvlFramerTx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlFramerTx.setStatus('mandatory')
ncmJapPRIntvlLyr3ProtErr = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlLyr3ProtErr.setStatus('mandatory')
ncmJapPRIntvlCallSetupSent = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlCallSetupSent.setStatus('mandatory')
ncmJapPRIntvlCallSetupSentnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlCallSetupSentnFail.setStatus('mandatory')
ncmJapPRIntvlCallSetupRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlCallSetupRx.setStatus('mandatory')
ncmJapPRIntvlCallSetupRxnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlCallSetupRxnFail.setStatus('mandatory')
ncmJapPRIntvlUnSupportMsgRx = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlUnSupportMsgRx.setStatus('mandatory')
ncmJapPRIntvlTstCalSetupSentnFail = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRIntvlTstCalSetupSentnFail.setStatus('mandatory')
ncmJapPRISecurOperTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005), )
if mibBuilder.loadTexts: ncmJapPRISecurOperTable.setStatus('mandatory')
ncmJapPRISecurOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRISecOpNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRISecOpLineIndex"))
if mibBuilder.loadTexts: ncmJapPRISecurOperEntry.setStatus('mandatory')
ncmJapPRISecOpNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecOpNIDIndex.setStatus('mandatory')
ncmJapPRISecOpLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecOpLineIndex.setStatus('mandatory')
ncmJapPRISecOpFirstNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 13, 25, 37, 49))).clone(namedValues=NamedValues(("zeroth", 1), ("twelfth", 13), ("twenty-Fourth", 25), ("thirty-Sixth", 37), ("fourty-Eighth", 49)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecOpFirstNum.setStatus('mandatory')
ncmJapPRISecOpListype = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("own-number", 1), ("remote-number", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecOpListype.setStatus('mandatory')
ncmJapPRISecOpCountNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecOpCountNum.setStatus('mandatory')
ncmJapPRISecOpClearElement = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecOpClearElement.setStatus('mandatory')
ncmJapPRISecOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("configuration-OK", 1), ("configuration-Error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecOpStatus.setStatus('mandatory')
ncmJapPRISecOpAction = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("clear-Security-List", 1), ("set-Security-List", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecOpAction.setStatus('mandatory')
ncmJapPRISecurNumbTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006), )
if mibBuilder.loadTexts: ncmJapPRISecurNumbTable.setStatus('mandatory')
ncmJapPRISecurNumbEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRISecNumNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRISecNumLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRISecNumIndex"))
if mibBuilder.loadTexts: ncmJapPRISecurNumbEntry.setStatus('mandatory')
ncmJapPRISecNumNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecNumNIDIndex.setStatus('mandatory')
ncmJapPRISecNumLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecNumLineIndex.setStatus('mandatory')
ncmJapPRISecNumIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRISecNumIndex.setStatus('mandatory')
ncmJapPRISecNumCount = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecNumCount.setStatus('mandatory')
ncmJapPRISecNumNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ncmJapPRISecNumNumber.setStatus('mandatory')
ncmJapPRICallLogLineTable = MibTable((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007), )
if mibBuilder.loadTexts: ncmJapPRICallLogLineTable.setStatus('mandatory')
ncmJapPRICallLogLineEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1), ).setIndexNames((0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICaloglinNIDIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICaloglinLineIndex"), (0, "VERILINK-ENTERPRISE-NCMJAPISDN-MIB", "ncmJapPRICaloglinLineNum"))
if mibBuilder.loadTexts: ncmJapPRICallLogLineEntry.setStatus('mandatory')
ncmJapPRICaloglinNIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICaloglinNIDIndex.setStatus('mandatory')
ncmJapPRICaloglinLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICaloglinLineIndex.setStatus('mandatory')
ncmJapPRICaloglinLineNum = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICaloglinLineNum.setStatus('mandatory')
ncmJapPRICaloglinLogLine = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICaloglinLogLine.setStatus('mandatory')
ncmJapPRICaloglinStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid-CallLogLine", 1), ("invalid-CallLogLine", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ncmJapPRICaloglinStatus.setStatus('mandatory')
mibBuilder.exportSymbols("VERILINK-ENTERPRISE-NCMJAPISDN-MIB", ncmJapPRISecOpStatus=ncmJapPRISecOpStatus, ncmJapPRIIntervalTable=ncmJapPRIIntervalTable, ncmJapPRIntvlUnSupportMsgRx=ncmJapPRIntvlUnSupportMsgRx, ncmJapPRIntvlLyr3ProtErr=ncmJapPRIntvlLyr3ProtErr, ncmJapPRIntvlFramerRx=ncmJapPRIntvlFramerRx, ncmJapPRIPortNIDIndex=ncmJapPRIPortNIDIndex, ncmJapPRICallProfLineIndex=ncmJapPRICallProfLineIndex, ncmJapPRISecOpAction=ncmJapPRISecOpAction, ncmJapPRICallProfExtCallNum=ncmJapPRICallProfExtCallNum, ncmJapPRICurrCallSetupSentnFail=ncmJapPRICurrCallSetupSentnFail, ncmJapPRIntvlSecsInCurrIntvl=ncmJapPRIntvlSecsInCurrIntvl, ncmJapPRISecOpLineIndex=ncmJapPRISecOpLineIndex, ncmJapPRIPortOwnNumPlan=ncmJapPRIPortOwnNumPlan, ncmJapPRICPCallProfileRef=ncmJapPRICPCallProfileRef, ncmJapPRICurrDISCSTx=ncmJapPRICurrDISCSTx, ncmJapPRICurrValidIntvls=ncmJapPRICurrValidIntvls, ncmJapPRICaloglinNIDIndex=ncmJapPRICaloglinNIDIndex, ncmJapPRIntvlDISCSRx=ncmJapPRIntvlDISCSRx, ncmJapPRICurrUnSupportMsgRx=ncmJapPRICurrUnSupportMsgRx, ncmJapPRIntvlCRCErrRx=ncmJapPRIntvlCRCErrRx, ncmJapPRIIntervalEntry=ncmJapPRIIntervalEntry, ncmJapPRICurrFramerRx=ncmJapPRICurrFramerRx, ncmJapPRIPortDChanBits=ncmJapPRIPortDChanBits, ncmJapPRICurrNIDIndex=ncmJapPRICurrNIDIndex, ncmJapPRISecurOperTable=ncmJapPRISecurOperTable, ncmJapPRIntvlLineIndex=ncmJapPRIntvlLineIndex, ncmJapPRIPortConfigTable=ncmJapPRIPortConfigTable, ncmJapPRIPortInService=ncmJapPRIPortInService, ncmJapPRIPortSetConfig=ncmJapPRIPortSetConfig, ncmJapPRIntvlCallSetupRxnFail=ncmJapPRIntvlCallSetupRxnFail, ncmJapPRIntvlInfoRx=ncmJapPRIntvlInfoRx, ncmJapPRISecNumCount=ncmJapPRISecNumCount, ncmJapPRISecOpFirstNum=ncmJapPRISecOpFirstNum, ncmJapPRISecNumNIDIndex=ncmJapPRISecNumNIDIndex, ncmJapPRISecOpClearElement=ncmJapPRISecOpClearElement, ncmJapPRIPortOwnNumType=ncmJapPRIPortOwnNumType, ncmJapPRICallProfNIDIndex=ncmJapPRICallProfNIDIndex, ncmJapPRIntvlInvalidFrameRx=ncmJapPRIntvlInvalidFrameRx, ncmJapPRIPortSecurityLevel=ncmJapPRIPortSecurityLevel, ncmJapPRICallProfCallBandWth=ncmJapPRICallProfCallBandWth, ncmJapPRICallProfCallAction=ncmJapPRICallProfCallAction, ncmJapPRICaloglinLineIndex=ncmJapPRICaloglinLineIndex, ncmJapPRICallProfTestCallIntvl=ncmJapPRICallProfTestCallIntvl, ncmJapPRICPSetCallProf=ncmJapPRICPSetCallProf, ncmJapPRISecurNumbEntry=ncmJapPRISecurNumbEntry, ncmJapPRICallLogLineEntry=ncmJapPRICallLogLineEntry, ncmJapPRIntvlTstCalSetupSentnFail=ncmJapPRIntvlTstCalSetupSentnFail, ncmJapPRISecOpListype=ncmJapPRISecOpListype, ncmJapPRICPListIndex=ncmJapPRICPListIndex, ncmJapPRISecOpNIDIndex=ncmJapPRISecOpNIDIndex, ncmJapPRICurrTstCalSetupSentnFail=ncmJapPRICurrTstCalSetupSentnFail, ncmJapPRICurrLyr3ProtErr=ncmJapPRICurrLyr3ProtErr, ncmJapPRISecOpCountNum=ncmJapPRISecOpCountNum, ncmJapPRIPortLineIndex=ncmJapPRIPortLineIndex, ncmJapPRISecNumIndex=ncmJapPRISecNumIndex, ncmJapPRICallProfRateAdaptn=ncmJapPRICallProfRateAdaptn, ncmJapPRICurrCallSetupRxnFail=ncmJapPRICurrCallSetupRxnFail, ncmJapPRICallProfExtNumPlan=ncmJapPRICallProfExtNumPlan, ncmJapPRICPSetCallProfResp=ncmJapPRICPSetCallProfResp, ncmJapPRICurrTimestamp=ncmJapPRICurrTimestamp, ncmJapPRIntvlCallSetupRx=ncmJapPRIntvlCallSetupRx, ncmJapPRICurrCRCErrRx=ncmJapPRICurrCRCErrRx, ncmJapPRIntvlCallSetupSentnFail=ncmJapPRIntvlCallSetupSentnFail, ncmJapPRICurrFramerTx=ncmJapPRICurrFramerTx, ncmJapPRICurrSecsInCurrIntvl=ncmJapPRICurrSecsInCurrIntvl, ncmJapPRIPortConfigEntry=ncmJapPRIPortConfigEntry, ncmJapPRICaloglinStatus=ncmJapPRICaloglinStatus, ncmJapPRICallProfExtNumDigit=ncmJapPRICallProfExtNumDigit, ncmJapPRIL2AutoEstablish=ncmJapPRIL2AutoEstablish, ncmJapPRIPortNFASMode=ncmJapPRIPortNFASMode, ncmJapPRICallProfCallRefCount=ncmJapPRICallProfCallRefCount, ncmJapPRICurrDISCSRx=ncmJapPRICurrDISCSRx, ncmJapPRICPListValidCPRefNum=ncmJapPRICPListValidCPRefNum, ncmJapPRICurrentTable=ncmJapPRICurrentTable, ncmJapPRICallProfListTable=ncmJapPRICallProfListTable, ncmJapPRICaloglinLineNum=ncmJapPRICaloglinLineNum, ncmJapPRICallProfListEntry=ncmJapPRICallProfListEntry, ncmJapPRISecNumNumber=ncmJapPRISecNumNumber, ncmJapPRICurrInfoTx=ncmJapPRICurrInfoTx, ncmJapPRICallProfTransferMode=ncmJapPRICallProfTransferMode, ncmJapPRICallProfileTable=ncmJapPRICallProfileTable, ncmJapPRICurrInvalidFrameRx=ncmJapPRICurrInvalidFrameRx, ncmJapPRICallProfNumOwnDigit=ncmJapPRICallProfNumOwnDigit, ncmJapPRIntvlFramerTx=ncmJapPRIntvlFramerTx, ncmJapPRIPortConfigStatus=ncmJapPRIPortConfigStatus, ncmJapPRIntvlIndex=ncmJapPRIntvlIndex, ncmJapPRICPCallActionResp=ncmJapPRICPCallActionResp, ncmJapPRIPortDChanMode=ncmJapPRIPortDChanMode, ncmJapPRICPListNIDIndex=ncmJapPRICPListNIDIndex, ncmJapPRICurrLineIndex=ncmJapPRICurrLineIndex, ncmJapPRIntvlTimestamp=ncmJapPRIntvlTimestamp, ncmJapPRIntvlNIDIndex=ncmJapPRIntvlNIDIndex, ncmJapPRIntvlDISCSTx=ncmJapPRIntvlDISCSTx, ncmJapPRIntvlInfoTx=ncmJapPRIntvlInfoTx, ncmJapPRISecurNumbTable=ncmJapPRISecurNumbTable, ncmJapPRICallProfOwnCallNum=ncmJapPRICallProfOwnCallNum, ncmJapPRICallProfEntry=ncmJapPRICallProfEntry, ncmJapPRICallProfExtNumType=ncmJapPRICallProfExtNumType, ncmJapPRISecurOperEntry=ncmJapPRISecurOperEntry, ncmJapPRIPortSwitchType=ncmJapPRIPortSwitchType, ncmJapPRICaloglinLogLine=ncmJapPRICaloglinLogLine, ncmJapPRICallLogLineTable=ncmJapPRICallLogLineTable, ncmJapPRICurrStatisticReset=ncmJapPRICurrStatisticReset, ncmJapPRICallProfCallStatus=ncmJapPRICallProfCallStatus, ncmJapPRIntvlEndType=ncmJapPRIntvlEndType, ncmJapPRICallProfCallDir=ncmJapPRICallProfCallDir, ncmJapPRICurrentEntry=ncmJapPRICurrentEntry, ncmJapPRICurrCallSetupSent=ncmJapPRICurrCallSetupSent, ncmJapPRISecNumLineIndex=ncmJapPRISecNumLineIndex, ncmJapPRICurrEndType=ncmJapPRICurrEndType, ncmJapPRIPortTimeslotMap=ncmJapPRIPortTimeslotMap, ncmJapPRIntvlFrameAbortRx=ncmJapPRIntvlFrameAbortRx, ncmJapPRICurrInfoRx=ncmJapPRICurrInfoRx, ncmJapPRICurrFrameAbortRx=ncmJapPRICurrFrameAbortRx, ncmJapPRICurrCallSetupRx=ncmJapPRICurrCallSetupRx, ncmJapPRICPListLineIndex=ncmJapPRICPListLineIndex, ncmJapPRIntvlCallSetupSent=ncmJapPRIntvlCallSetupSent, ncmJapPRICallProfMultiRateCnt=ncmJapPRICallProfMultiRateCnt)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, time_ticks, notification_type, gauge32, module_identity, ip_address, counter64, mib_identifier, counter32, object_identity, integer32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'TimeTicks', 'NotificationType', 'Gauge32', 'ModuleIdentity', 'IpAddress', 'Counter64', 'MibIdentifier', 'Counter32', 'ObjectIdentity', 'Integer32', 'Bits')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(ncm_japisdn,) = mibBuilder.importSymbols('VERILINK-ENTERPRISE-NCMALARM-MIB', 'ncm-japisdn')
ncm_jap_pri_port_config_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000))
if mibBuilder.loadTexts:
ncmJapPRIPortConfigTable.setStatus('mandatory')
ncm_jap_pri_port_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIPortNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIPortLineIndex'))
if mibBuilder.loadTexts:
ncmJapPRIPortConfigEntry.setStatus('mandatory')
ncm_jap_pri_port_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIPortNIDIndex.setStatus('mandatory')
ncm_jap_pri_port_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIPortLineIndex.setStatus('mandatory')
ncm_jap_pri_port_in_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortInService.setStatus('mandatory')
ncm_jap_pri_port_nfas_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('no-Nfas', 1), ('nfas-No-Backup', 2), ('nfas-Backup', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortNFASMode.setStatus('mandatory')
ncm_jap_pri_port_d_chan_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('inverted', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortDChanMode.setStatus('mandatory')
ncm_jap_pri_port_d_chan_bits = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('chan-8-Bit', 1), ('chan-7-Bit', 2), ('chan-6-Bit', 3), ('undefined', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortDChanBits.setStatus('mandatory')
ncm_jap_pri_port_timeslot_map = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortTimeslotMap.setStatus('mandatory')
ncm_jap_pri_port_switch_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(15))).clone(namedValues=named_values(('sw-NTT', 15)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortSwitchType.setStatus('mandatory')
ncm_jap_pri_port_own_num_plan = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('unkn-NumPlan', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortOwnNumPlan.setStatus('mandatory')
ncm_jap_pri_port_own_num_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('unkn-NumType', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortOwnNumType.setStatus('mandatory')
ncm_jap_pri_port_security_level = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('no-Checks', 1), ('own-Numbers', 2), ('ext-Numbers', 3), ('both-Numbers', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortSecurityLevel.setStatus('mandatory')
ncm_jap_pri_port_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('configuration-OK', 1), ('configuration-Error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIPortConfigStatus.setStatus('mandatory')
ncm_jap_pri_port_set_config = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('set-Config', 1), ('not-in-use', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIPortSetConfig.setStatus('mandatory')
ncm_jap_pri_call_prof_call_ref_count = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICallProfCallRefCount.setStatus('mandatory')
ncm_jap_pril2_auto_establish = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8000, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRIL2AutoEstablish.setStatus('mandatory')
ncm_jap_pri_call_profile_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001))
if mibBuilder.loadTexts:
ncmJapPRICallProfileTable.setStatus('mandatory')
ncm_jap_pri_call_prof_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICallProfNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICallProfLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICPCallProfileRef'))
if mibBuilder.loadTexts:
ncmJapPRICallProfEntry.setStatus('mandatory')
ncm_jap_pri_call_prof_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICallProfNIDIndex.setStatus('mandatory')
ncm_jap_pri_call_prof_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICallProfLineIndex.setStatus('mandatory')
ncm_jap_pricp_call_profile_ref = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICPCallProfileRef.setStatus('mandatory')
ncm_jap_pri_call_prof_call_dir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('no-Direction', 1), ('incoming', 2), ('outgoing', 3), ('both-Directions', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfCallDir.setStatus('mandatory')
ncm_jap_pri_call_prof_num_own_digit = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfNumOwnDigit.setStatus('mandatory')
ncm_jap_pri_call_prof_own_call_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfOwnCallNum.setStatus('mandatory')
ncm_jap_pri_call_prof_ext_num_plan = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('unkn-NumPlan', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfExtNumPlan.setStatus('mandatory')
ncm_jap_pri_call_prof_ext_num_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('unkn-NumType', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfExtNumType.setStatus('mandatory')
ncm_jap_pri_call_prof_ext_num_digit = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfExtNumDigit.setStatus('mandatory')
ncm_jap_pri_call_prof_ext_call_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 10), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfExtCallNum.setStatus('mandatory')
ncm_jap_pri_call_prof_transfer_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(8))).clone(namedValues=named_values(('unrestricted-digital', 8)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfTransferMode.setStatus('mandatory')
ncm_jap_pri_call_prof_call_band_wth = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(16, 19, 21))).clone(namedValues=named_values(('b1-64K', 16), ('h0-6X64K', 19), ('h11-24X64K', 21)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfCallBandWth.setStatus('mandatory')
ncm_jap_pri_call_prof_multi_rate_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 4, 6, 8, 12, 23, 24, 30, 31))).clone(namedValues=named_values(('mR-2', 2), ('mR-4', 4), ('mR-6', 6), ('mR-8', 8), ('mR-12', 12), ('mR-23', 23), ('mR-24', 24), ('mR-30', 30), ('mR-31', 31)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfMultiRateCnt.setStatus('mandatory')
ncm_jap_pri_call_prof_rate_adaptn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no-Adapt', 1), ('adapt-56K', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfRateAdaptn.setStatus('mandatory')
ncm_jap_pri_call_prof_test_call_intvl = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfTestCallIntvl.setStatus('mandatory')
ncm_jap_pri_call_prof_call_status = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('fail-Takedown-Idle', 1), ('successful-Setup', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICallProfCallStatus.setStatus('mandatory')
ncm_jap_pri_call_prof_call_action = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('setup-Call', 1), ('takedown-Call', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICallProfCallAction.setStatus('mandatory')
ncm_jap_pricp_set_call_prof = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('set-CallProf', 1), ('not-in-use', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICPSetCallProf.setStatus('mandatory')
ncm_jap_pricp_set_call_prof_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('configuration-OK', 1), ('configuration-Error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPSetCallProfResp.setStatus('mandatory')
ncm_jap_pricp_call_action_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8001, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('configuration-OK', 1), ('configuration-Error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPCallActionResp.setStatus('mandatory')
ncm_jap_pri_call_prof_list_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002))
if mibBuilder.loadTexts:
ncmJapPRICallProfListTable.setStatus('mandatory')
ncm_jap_pri_call_prof_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICPListNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICPListLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICPListIndex'))
if mibBuilder.loadTexts:
ncmJapPRICallProfListEntry.setStatus('mandatory')
ncm_jap_pricp_list_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPListNIDIndex.setStatus('mandatory')
ncm_jap_pricp_list_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPListLineIndex.setStatus('mandatory')
ncm_jap_pricp_list_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPListIndex.setStatus('mandatory')
ncm_jap_pricp_list_valid_cp_ref_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8002, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICPListValidCPRefNum.setStatus('mandatory')
ncm_jap_pri_current_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003))
if mibBuilder.loadTexts:
ncmJapPRICurrentTable.setStatus('mandatory')
ncm_jap_pri_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICurrNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICurrLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICurrEndType'))
if mibBuilder.loadTexts:
ncmJapPRICurrentEntry.setStatus('mandatory')
ncm_jap_pri_curr_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrNIDIndex.setStatus('mandatory')
ncm_jap_pri_curr_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrLineIndex.setStatus('mandatory')
ncm_jap_pri_curr_end_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('near-End', 1), ('far-End', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrEndType.setStatus('mandatory')
ncm_jap_pri_curr_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrTimestamp.setStatus('mandatory')
ncm_jap_pri_curr_secs_in_curr_intvl = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrSecsInCurrIntvl.setStatus('mandatory')
ncm_jap_pri_curr_info_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrInfoRx.setStatus('mandatory')
ncm_jap_pri_curr_info_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrInfoTx.setStatus('mandatory')
ncm_jap_pri_curr_crc_err_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrCRCErrRx.setStatus('mandatory')
ncm_jap_pri_curr_invalid_frame_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrInvalidFrameRx.setStatus('mandatory')
ncm_jap_pri_curr_frame_abort_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrFrameAbortRx.setStatus('mandatory')
ncm_jap_pri_curr_discs_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrDISCSRx.setStatus('mandatory')
ncm_jap_pri_curr_discs_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrDISCSTx.setStatus('mandatory')
ncm_jap_pri_curr_framer_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrFramerRx.setStatus('mandatory')
ncm_jap_pri_curr_framer_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrFramerTx.setStatus('mandatory')
ncm_jap_pri_curr_lyr3_prot_err = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrLyr3ProtErr.setStatus('mandatory')
ncm_jap_pri_curr_call_setup_sent = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrCallSetupSent.setStatus('mandatory')
ncm_jap_pri_curr_call_setup_sentn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrCallSetupSentnFail.setStatus('mandatory')
ncm_jap_pri_curr_call_setup_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrCallSetupRx.setStatus('mandatory')
ncm_jap_pri_curr_call_setup_rxn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrCallSetupRxnFail.setStatus('mandatory')
ncm_jap_pri_curr_un_support_msg_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrUnSupportMsgRx.setStatus('mandatory')
ncm_jap_pri_curr_tst_cal_setup_sentn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrTstCalSetupSentnFail.setStatus('mandatory')
ncm_jap_pri_curr_valid_intvls = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICurrValidIntvls.setStatus('mandatory')
ncm_jap_pri_curr_statistic_reset = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8003, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('statistic-Reset', 1), ('not-in-use', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRICurrStatisticReset.setStatus('mandatory')
ncm_jap_pri_interval_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004))
if mibBuilder.loadTexts:
ncmJapPRIIntervalTable.setStatus('mandatory')
ncm_jap_pri_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIntvlNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIntvlLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIntvlEndType'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRIntvlIndex'))
if mibBuilder.loadTexts:
ncmJapPRIIntervalEntry.setStatus('mandatory')
ncm_jap_pr_intvl_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlNIDIndex.setStatus('mandatory')
ncm_jap_pr_intvl_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlLineIndex.setStatus('mandatory')
ncm_jap_pr_intvl_end_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('near-End', 1), ('far-End', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlEndType.setStatus('mandatory')
ncm_jap_pr_intvl_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlIndex.setStatus('mandatory')
ncm_jap_pr_intvl_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlTimestamp.setStatus('mandatory')
ncm_jap_pr_intvl_secs_in_curr_intvl = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlSecsInCurrIntvl.setStatus('mandatory')
ncm_jap_pr_intvl_info_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlInfoRx.setStatus('mandatory')
ncm_jap_pr_intvl_info_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlInfoTx.setStatus('mandatory')
ncm_jap_pr_intvl_crc_err_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlCRCErrRx.setStatus('mandatory')
ncm_jap_pr_intvl_invalid_frame_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlInvalidFrameRx.setStatus('mandatory')
ncm_jap_pr_intvl_frame_abort_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlFrameAbortRx.setStatus('mandatory')
ncm_jap_pr_intvl_discs_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlDISCSRx.setStatus('mandatory')
ncm_jap_pr_intvl_discs_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlDISCSTx.setStatus('mandatory')
ncm_jap_pr_intvl_framer_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlFramerRx.setStatus('mandatory')
ncm_jap_pr_intvl_framer_tx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlFramerTx.setStatus('mandatory')
ncm_jap_pr_intvl_lyr3_prot_err = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlLyr3ProtErr.setStatus('mandatory')
ncm_jap_pr_intvl_call_setup_sent = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlCallSetupSent.setStatus('mandatory')
ncm_jap_pr_intvl_call_setup_sentn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlCallSetupSentnFail.setStatus('mandatory')
ncm_jap_pr_intvl_call_setup_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlCallSetupRx.setStatus('mandatory')
ncm_jap_pr_intvl_call_setup_rxn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlCallSetupRxnFail.setStatus('mandatory')
ncm_jap_pr_intvl_un_support_msg_rx = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlUnSupportMsgRx.setStatus('mandatory')
ncm_jap_pr_intvl_tst_cal_setup_sentn_fail = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8004, 1, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRIntvlTstCalSetupSentnFail.setStatus('mandatory')
ncm_jap_pri_secur_oper_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005))
if mibBuilder.loadTexts:
ncmJapPRISecurOperTable.setStatus('mandatory')
ncm_jap_pri_secur_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRISecOpNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRISecOpLineIndex'))
if mibBuilder.loadTexts:
ncmJapPRISecurOperEntry.setStatus('mandatory')
ncm_jap_pri_sec_op_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecOpNIDIndex.setStatus('mandatory')
ncm_jap_pri_sec_op_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecOpLineIndex.setStatus('mandatory')
ncm_jap_pri_sec_op_first_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 13, 25, 37, 49))).clone(namedValues=named_values(('zeroth', 1), ('twelfth', 13), ('twenty-Fourth', 25), ('thirty-Sixth', 37), ('fourty-Eighth', 49)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecOpFirstNum.setStatus('mandatory')
ncm_jap_pri_sec_op_listype = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('own-number', 1), ('remote-number', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecOpListype.setStatus('mandatory')
ncm_jap_pri_sec_op_count_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecOpCountNum.setStatus('mandatory')
ncm_jap_pri_sec_op_clear_element = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecOpClearElement.setStatus('mandatory')
ncm_jap_pri_sec_op_status = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('configuration-OK', 1), ('configuration-Error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecOpStatus.setStatus('mandatory')
ncm_jap_pri_sec_op_action = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8005, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('clear-Security-List', 1), ('set-Security-List', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecOpAction.setStatus('mandatory')
ncm_jap_pri_secur_numb_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006))
if mibBuilder.loadTexts:
ncmJapPRISecurNumbTable.setStatus('mandatory')
ncm_jap_pri_secur_numb_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRISecNumNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRISecNumLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRISecNumIndex'))
if mibBuilder.loadTexts:
ncmJapPRISecurNumbEntry.setStatus('mandatory')
ncm_jap_pri_sec_num_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecNumNIDIndex.setStatus('mandatory')
ncm_jap_pri_sec_num_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecNumLineIndex.setStatus('mandatory')
ncm_jap_pri_sec_num_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRISecNumIndex.setStatus('mandatory')
ncm_jap_pri_sec_num_count = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecNumCount.setStatus('mandatory')
ncm_jap_pri_sec_num_number = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8006, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ncmJapPRISecNumNumber.setStatus('mandatory')
ncm_jap_pri_call_log_line_table = mib_table((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007))
if mibBuilder.loadTexts:
ncmJapPRICallLogLineTable.setStatus('mandatory')
ncm_jap_pri_call_log_line_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1)).setIndexNames((0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICaloglinNIDIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICaloglinLineIndex'), (0, 'VERILINK-ENTERPRISE-NCMJAPISDN-MIB', 'ncmJapPRICaloglinLineNum'))
if mibBuilder.loadTexts:
ncmJapPRICallLogLineEntry.setStatus('mandatory')
ncm_jap_pri_caloglin_nid_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICaloglinNIDIndex.setStatus('mandatory')
ncm_jap_pri_caloglin_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICaloglinLineIndex.setStatus('mandatory')
ncm_jap_pri_caloglin_line_num = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICaloglinLineNum.setStatus('mandatory')
ncm_jap_pri_caloglin_log_line = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICaloglinLogLine.setStatus('mandatory')
ncm_jap_pri_caloglin_status = mib_table_column((1, 3, 6, 1, 4, 1, 321, 1, 3038, 8007, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid-CallLogLine', 1), ('invalid-CallLogLine', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ncmJapPRICaloglinStatus.setStatus('mandatory')
mibBuilder.exportSymbols('VERILINK-ENTERPRISE-NCMJAPISDN-MIB', ncmJapPRISecOpStatus=ncmJapPRISecOpStatus, ncmJapPRIIntervalTable=ncmJapPRIIntervalTable, ncmJapPRIntvlUnSupportMsgRx=ncmJapPRIntvlUnSupportMsgRx, ncmJapPRIntvlLyr3ProtErr=ncmJapPRIntvlLyr3ProtErr, ncmJapPRIntvlFramerRx=ncmJapPRIntvlFramerRx, ncmJapPRIPortNIDIndex=ncmJapPRIPortNIDIndex, ncmJapPRICallProfLineIndex=ncmJapPRICallProfLineIndex, ncmJapPRISecOpAction=ncmJapPRISecOpAction, ncmJapPRICallProfExtCallNum=ncmJapPRICallProfExtCallNum, ncmJapPRICurrCallSetupSentnFail=ncmJapPRICurrCallSetupSentnFail, ncmJapPRIntvlSecsInCurrIntvl=ncmJapPRIntvlSecsInCurrIntvl, ncmJapPRISecOpLineIndex=ncmJapPRISecOpLineIndex, ncmJapPRIPortOwnNumPlan=ncmJapPRIPortOwnNumPlan, ncmJapPRICPCallProfileRef=ncmJapPRICPCallProfileRef, ncmJapPRICurrDISCSTx=ncmJapPRICurrDISCSTx, ncmJapPRICurrValidIntvls=ncmJapPRICurrValidIntvls, ncmJapPRICaloglinNIDIndex=ncmJapPRICaloglinNIDIndex, ncmJapPRIntvlDISCSRx=ncmJapPRIntvlDISCSRx, ncmJapPRICurrUnSupportMsgRx=ncmJapPRICurrUnSupportMsgRx, ncmJapPRIntvlCRCErrRx=ncmJapPRIntvlCRCErrRx, ncmJapPRIIntervalEntry=ncmJapPRIIntervalEntry, ncmJapPRICurrFramerRx=ncmJapPRICurrFramerRx, ncmJapPRIPortDChanBits=ncmJapPRIPortDChanBits, ncmJapPRICurrNIDIndex=ncmJapPRICurrNIDIndex, ncmJapPRISecurOperTable=ncmJapPRISecurOperTable, ncmJapPRIntvlLineIndex=ncmJapPRIntvlLineIndex, ncmJapPRIPortConfigTable=ncmJapPRIPortConfigTable, ncmJapPRIPortInService=ncmJapPRIPortInService, ncmJapPRIPortSetConfig=ncmJapPRIPortSetConfig, ncmJapPRIntvlCallSetupRxnFail=ncmJapPRIntvlCallSetupRxnFail, ncmJapPRIntvlInfoRx=ncmJapPRIntvlInfoRx, ncmJapPRISecNumCount=ncmJapPRISecNumCount, ncmJapPRISecOpFirstNum=ncmJapPRISecOpFirstNum, ncmJapPRISecNumNIDIndex=ncmJapPRISecNumNIDIndex, ncmJapPRISecOpClearElement=ncmJapPRISecOpClearElement, ncmJapPRIPortOwnNumType=ncmJapPRIPortOwnNumType, ncmJapPRICallProfNIDIndex=ncmJapPRICallProfNIDIndex, ncmJapPRIntvlInvalidFrameRx=ncmJapPRIntvlInvalidFrameRx, ncmJapPRIPortSecurityLevel=ncmJapPRIPortSecurityLevel, ncmJapPRICallProfCallBandWth=ncmJapPRICallProfCallBandWth, ncmJapPRICallProfCallAction=ncmJapPRICallProfCallAction, ncmJapPRICaloglinLineIndex=ncmJapPRICaloglinLineIndex, ncmJapPRICallProfTestCallIntvl=ncmJapPRICallProfTestCallIntvl, ncmJapPRICPSetCallProf=ncmJapPRICPSetCallProf, ncmJapPRISecurNumbEntry=ncmJapPRISecurNumbEntry, ncmJapPRICallLogLineEntry=ncmJapPRICallLogLineEntry, ncmJapPRIntvlTstCalSetupSentnFail=ncmJapPRIntvlTstCalSetupSentnFail, ncmJapPRISecOpListype=ncmJapPRISecOpListype, ncmJapPRICPListIndex=ncmJapPRICPListIndex, ncmJapPRISecOpNIDIndex=ncmJapPRISecOpNIDIndex, ncmJapPRICurrTstCalSetupSentnFail=ncmJapPRICurrTstCalSetupSentnFail, ncmJapPRICurrLyr3ProtErr=ncmJapPRICurrLyr3ProtErr, ncmJapPRISecOpCountNum=ncmJapPRISecOpCountNum, ncmJapPRIPortLineIndex=ncmJapPRIPortLineIndex, ncmJapPRISecNumIndex=ncmJapPRISecNumIndex, ncmJapPRICallProfRateAdaptn=ncmJapPRICallProfRateAdaptn, ncmJapPRICurrCallSetupRxnFail=ncmJapPRICurrCallSetupRxnFail, ncmJapPRICallProfExtNumPlan=ncmJapPRICallProfExtNumPlan, ncmJapPRICPSetCallProfResp=ncmJapPRICPSetCallProfResp, ncmJapPRICurrTimestamp=ncmJapPRICurrTimestamp, ncmJapPRIntvlCallSetupRx=ncmJapPRIntvlCallSetupRx, ncmJapPRICurrCRCErrRx=ncmJapPRICurrCRCErrRx, ncmJapPRIntvlCallSetupSentnFail=ncmJapPRIntvlCallSetupSentnFail, ncmJapPRICurrFramerTx=ncmJapPRICurrFramerTx, ncmJapPRICurrSecsInCurrIntvl=ncmJapPRICurrSecsInCurrIntvl, ncmJapPRIPortConfigEntry=ncmJapPRIPortConfigEntry, ncmJapPRICaloglinStatus=ncmJapPRICaloglinStatus, ncmJapPRICallProfExtNumDigit=ncmJapPRICallProfExtNumDigit, ncmJapPRIL2AutoEstablish=ncmJapPRIL2AutoEstablish, ncmJapPRIPortNFASMode=ncmJapPRIPortNFASMode, ncmJapPRICallProfCallRefCount=ncmJapPRICallProfCallRefCount, ncmJapPRICurrDISCSRx=ncmJapPRICurrDISCSRx, ncmJapPRICPListValidCPRefNum=ncmJapPRICPListValidCPRefNum, ncmJapPRICurrentTable=ncmJapPRICurrentTable, ncmJapPRICallProfListTable=ncmJapPRICallProfListTable, ncmJapPRICaloglinLineNum=ncmJapPRICaloglinLineNum, ncmJapPRICallProfListEntry=ncmJapPRICallProfListEntry, ncmJapPRISecNumNumber=ncmJapPRISecNumNumber, ncmJapPRICurrInfoTx=ncmJapPRICurrInfoTx, ncmJapPRICallProfTransferMode=ncmJapPRICallProfTransferMode, ncmJapPRICallProfileTable=ncmJapPRICallProfileTable, ncmJapPRICurrInvalidFrameRx=ncmJapPRICurrInvalidFrameRx, ncmJapPRICallProfNumOwnDigit=ncmJapPRICallProfNumOwnDigit, ncmJapPRIntvlFramerTx=ncmJapPRIntvlFramerTx, ncmJapPRIPortConfigStatus=ncmJapPRIPortConfigStatus, ncmJapPRIntvlIndex=ncmJapPRIntvlIndex, ncmJapPRICPCallActionResp=ncmJapPRICPCallActionResp, ncmJapPRIPortDChanMode=ncmJapPRIPortDChanMode, ncmJapPRICPListNIDIndex=ncmJapPRICPListNIDIndex, ncmJapPRICurrLineIndex=ncmJapPRICurrLineIndex, ncmJapPRIntvlTimestamp=ncmJapPRIntvlTimestamp, ncmJapPRIntvlNIDIndex=ncmJapPRIntvlNIDIndex, ncmJapPRIntvlDISCSTx=ncmJapPRIntvlDISCSTx, ncmJapPRIntvlInfoTx=ncmJapPRIntvlInfoTx, ncmJapPRISecurNumbTable=ncmJapPRISecurNumbTable, ncmJapPRICallProfOwnCallNum=ncmJapPRICallProfOwnCallNum, ncmJapPRICallProfEntry=ncmJapPRICallProfEntry, ncmJapPRICallProfExtNumType=ncmJapPRICallProfExtNumType, ncmJapPRISecurOperEntry=ncmJapPRISecurOperEntry, ncmJapPRIPortSwitchType=ncmJapPRIPortSwitchType, ncmJapPRICaloglinLogLine=ncmJapPRICaloglinLogLine, ncmJapPRICallLogLineTable=ncmJapPRICallLogLineTable, ncmJapPRICurrStatisticReset=ncmJapPRICurrStatisticReset, ncmJapPRICallProfCallStatus=ncmJapPRICallProfCallStatus, ncmJapPRIntvlEndType=ncmJapPRIntvlEndType, ncmJapPRICallProfCallDir=ncmJapPRICallProfCallDir, ncmJapPRICurrentEntry=ncmJapPRICurrentEntry, ncmJapPRICurrCallSetupSent=ncmJapPRICurrCallSetupSent, ncmJapPRISecNumLineIndex=ncmJapPRISecNumLineIndex, ncmJapPRICurrEndType=ncmJapPRICurrEndType, ncmJapPRIPortTimeslotMap=ncmJapPRIPortTimeslotMap, ncmJapPRIntvlFrameAbortRx=ncmJapPRIntvlFrameAbortRx, ncmJapPRICurrInfoRx=ncmJapPRICurrInfoRx, ncmJapPRICurrFrameAbortRx=ncmJapPRICurrFrameAbortRx, ncmJapPRICurrCallSetupRx=ncmJapPRICurrCallSetupRx, ncmJapPRICPListLineIndex=ncmJapPRICPListLineIndex, ncmJapPRIntvlCallSetupSent=ncmJapPRIntvlCallSetupSent, ncmJapPRICallProfMultiRateCnt=ncmJapPRICallProfMultiRateCnt) |
__all__ = ["WindowOperator"]
class WindowOperator(Operator):
pass
| __all__ = ['WindowOperator']
class Windowoperator(Operator):
pass |
# Read from the file words.txt and output the word frequency list to stdout.
with open('words.txt', 'r') as f:
line = f.readline()
word_occ_dict = {}
while line:
tokens = list( line.split() )
for t in tokens:
word_occ_dict[t] = word_occ_dict.get(t, 0) + 1
line = f.readline()
for word in sorted(word_occ_dict, key=word_occ_dict.get, reverse = True ):
print(f'{word} {word_occ_dict[word]}') | with open('words.txt', 'r') as f:
line = f.readline()
word_occ_dict = {}
while line:
tokens = list(line.split())
for t in tokens:
word_occ_dict[t] = word_occ_dict.get(t, 0) + 1
line = f.readline()
for word in sorted(word_occ_dict, key=word_occ_dict.get, reverse=True):
print(f'{word} {word_occ_dict[word]}') |
# imports
def fifty_ml_heights(init_vol, steps, vol_dec):
vols = []
heights = []
# these values originate from Excel spreadsheet "Exp803..."
print (init_vol)
b = 0
m = 0.0024
if init_vol > 51000:
offset = 14 # model out of range; see sheet
else:
offset = 7 # mm Need to add offset to ensure tip reaches below liquid level
print (offset)
for i in range(steps):
x = init_vol-vol_dec*i
vols.append(x)
h = m*x+b
h = h-offset
# print (h)
if h < 12: # If less than 5mL remain in 50mL tube, go to bottom for asp
h = 2
heights.append(h)
else:
heights.append(round(h, 1))
return heights
##########################
# ##### COMMANDS #####
fifty_h=fifty_ml_heights(32400, 100, 200)
print(fifty_h)
| def fifty_ml_heights(init_vol, steps, vol_dec):
vols = []
heights = []
print(init_vol)
b = 0
m = 0.0024
if init_vol > 51000:
offset = 14
else:
offset = 7
print(offset)
for i in range(steps):
x = init_vol - vol_dec * i
vols.append(x)
h = m * x + b
h = h - offset
if h < 12:
h = 2
heights.append(h)
else:
heights.append(round(h, 1))
return heights
fifty_h = fifty_ml_heights(32400, 100, 200)
print(fifty_h) |
class Config:
# AWS Information
ec2_region = "eu-west-2" # London # Same as environment variable EC2_REGION
ec2_amis = ['ami-09c4a4b013e66b291']
ec2_keypair = 'OnDemandMinecraft'
ec2_secgroups = ['sg-0441198b7b0617d3a']
ec2_instancetype = 't3.small'
| class Config:
ec2_region = 'eu-west-2'
ec2_amis = ['ami-09c4a4b013e66b291']
ec2_keypair = 'OnDemandMinecraft'
ec2_secgroups = ['sg-0441198b7b0617d3a']
ec2_instancetype = 't3.small' |
with open('payload.bin', 'rb') as stringFile:
with open('payload.s', 'w') as f:
for byte in stringFile.read():
print('byte %s' % hex(byte), file=f)
| with open('payload.bin', 'rb') as string_file:
with open('payload.s', 'w') as f:
for byte in stringFile.read():
print('byte %s' % hex(byte), file=f) |
def fast_scan_ms(name = 'test', tilt_stage=True):
print("in bens routine")
yield from expert_reflection_scan_full(md={'sample_name': name}, detector=lambda_det, tilt_stage=tilt_stage)
def ms_align():
yield from bps.mv(geo.det_mode,1)
yield from bps.mv(abs2,3)
yield from nab(-0.1,-0.1)
yield from bp.scan([lambda_det],sh,-0.3,0.3,31)
yield from bps.sleep(1)
tmp = peaks.cen['lambda_det_stats2_total']
yield from bps.mv(sh,tmp)
yield from set_sh(0)
yield from bp.rel_scan([lambda_det],tilt.y,-0.1,0.1,21)
tmp = peaks.cen['lambda_det_stats2_total']
yield from bps.mv(tilt.y,tmp)
yield from set_tilty(-0.1)
| def fast_scan_ms(name='test', tilt_stage=True):
print('in bens routine')
yield from expert_reflection_scan_full(md={'sample_name': name}, detector=lambda_det, tilt_stage=tilt_stage)
def ms_align():
yield from bps.mv(geo.det_mode, 1)
yield from bps.mv(abs2, 3)
yield from nab(-0.1, -0.1)
yield from bp.scan([lambda_det], sh, -0.3, 0.3, 31)
yield from bps.sleep(1)
tmp = peaks.cen['lambda_det_stats2_total']
yield from bps.mv(sh, tmp)
yield from set_sh(0)
yield from bp.rel_scan([lambda_det], tilt.y, -0.1, 0.1, 21)
tmp = peaks.cen['lambda_det_stats2_total']
yield from bps.mv(tilt.y, tmp)
yield from set_tilty(-0.1) |
# Insert a Node at the Tail of a Linked List
# Developer: Murillo Grubler
# https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list/problem
class SinglyLinkedListNode:
def __init__(self, data):
self.data = data
self.next = None
class SinglyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def print_singly_linked_list(head):
while head:
print (head.data)
head = head.next
def insertNodeAtTail(head, data):
if head is None:
return SinglyLinkedListNode(data)
elif head.next is None:
head.next = SinglyLinkedListNode(data)
else:
temp = head
while temp.next:
temp = temp.next
temp.next = SinglyLinkedListNode(data)
return head
def insertNodeAtTailRecursive(head, data):
if head is None:
return SinglyLinkedListNode(data)
elif head.next is None:
head.next = SinglyLinkedListNode(data)
else:
insertNodeAtTail(head.next, data)
return head
if __name__ == '__main__':
llist_count = int(input())
llist = SinglyLinkedList()
for i in range(llist_count):
llist_item = int(input())
llist_head = insertNodeAtTail(llist.head, llist_item)
llist.head = llist_head
print_singly_linked_list(llist.head) | class Singlylinkedlistnode:
def __init__(self, data):
self.data = data
self.next = None
class Singlylinkedlist:
def __init__(self):
self.head = None
self.tail = None
def print_singly_linked_list(head):
while head:
print(head.data)
head = head.next
def insert_node_at_tail(head, data):
if head is None:
return singly_linked_list_node(data)
elif head.next is None:
head.next = singly_linked_list_node(data)
else:
temp = head
while temp.next:
temp = temp.next
temp.next = singly_linked_list_node(data)
return head
def insert_node_at_tail_recursive(head, data):
if head is None:
return singly_linked_list_node(data)
elif head.next is None:
head.next = singly_linked_list_node(data)
else:
insert_node_at_tail(head.next, data)
return head
if __name__ == '__main__':
llist_count = int(input())
llist = singly_linked_list()
for i in range(llist_count):
llist_item = int(input())
llist_head = insert_node_at_tail(llist.head, llist_item)
llist.head = llist_head
print_singly_linked_list(llist.head) |
tempClasses = []
tempStudents = []
def student(_, info, id):
for s in tempStudents:
if s['id'] == id:
return s
return None
def students(_, info):
return {
'success': True,
'errors': [],
'students': tempStudents}
def classes(_, info, id):
for c in tempClasses:
if c['id'] == id:
return c
return None
def all_classes(_, info):
return {
'success': True,
'errors': ['All Classes found.'],
'classes': tempClasses}
def create_student(_, info, name, email):
if len(tempStudents) == 0:
id = 1
else:
id = tempStudents[-1]['id'] + 1
s = {
'id': id,
'name': name,
'email': email
}
tempStudents.append(s)
return {
'success': True,
'errors': [],
'students': [s]}
def get_student_ids():
ids = []
for s in tempStudents:
ids.append(s['id'])
return ids
def create_class(_, info, name, student_ids):
ids = get_student_ids()
for id in student_ids:
if id not in ids:
return {
'success': False,
'errors': ['Student of given id not found.'],
'classes': None}
if len(tempClasses) == 0:
id = 1
else:
id = tempClasses[-1]['id'] + 1
c = {
'id': id,
'name': name,
'students': [tempStudents[i - 1] for i in student_ids]
}
tempClasses.append(c)
return {
'success': True,
'errors': ['Class created.'],
'classes': [c]}
def add_student_to_class(_, info, id, student_id):
ids = get_student_ids()
if student_id not in ids:
return {
'success': False,
'errors': ['Student not found.'],
'class': None}
temp = None
for s in tempStudents:
if s['id'] == student_id:
temp = s
break
if temp is not None:
for c in tempClasses:
if c['id'] == id:
c['students'].append(temp)
return {
'success': True,
'errors': [],
'class': c}
return {'success': False,
'errors': ['Class not found.'],
'class': None}
else:
return {
'success': False,
'errors': ['Student not found.'],
'class': None
}
| temp_classes = []
temp_students = []
def student(_, info, id):
for s in tempStudents:
if s['id'] == id:
return s
return None
def students(_, info):
return {'success': True, 'errors': [], 'students': tempStudents}
def classes(_, info, id):
for c in tempClasses:
if c['id'] == id:
return c
return None
def all_classes(_, info):
return {'success': True, 'errors': ['All Classes found.'], 'classes': tempClasses}
def create_student(_, info, name, email):
if len(tempStudents) == 0:
id = 1
else:
id = tempStudents[-1]['id'] + 1
s = {'id': id, 'name': name, 'email': email}
tempStudents.append(s)
return {'success': True, 'errors': [], 'students': [s]}
def get_student_ids():
ids = []
for s in tempStudents:
ids.append(s['id'])
return ids
def create_class(_, info, name, student_ids):
ids = get_student_ids()
for id in student_ids:
if id not in ids:
return {'success': False, 'errors': ['Student of given id not found.'], 'classes': None}
if len(tempClasses) == 0:
id = 1
else:
id = tempClasses[-1]['id'] + 1
c = {'id': id, 'name': name, 'students': [tempStudents[i - 1] for i in student_ids]}
tempClasses.append(c)
return {'success': True, 'errors': ['Class created.'], 'classes': [c]}
def add_student_to_class(_, info, id, student_id):
ids = get_student_ids()
if student_id not in ids:
return {'success': False, 'errors': ['Student not found.'], 'class': None}
temp = None
for s in tempStudents:
if s['id'] == student_id:
temp = s
break
if temp is not None:
for c in tempClasses:
if c['id'] == id:
c['students'].append(temp)
return {'success': True, 'errors': [], 'class': c}
return {'success': False, 'errors': ['Class not found.'], 'class': None}
else:
return {'success': False, 'errors': ['Student not found.'], 'class': None} |
class WechatPayError(Exception):
pass
class APIError(WechatPayError):
pass
class ValidationError(APIError):
pass
class AuthenticationError(APIError):
pass
class RequestFailed(APIError):
pass
| class Wechatpayerror(Exception):
pass
class Apierror(WechatPayError):
pass
class Validationerror(APIError):
pass
class Authenticationerror(APIError):
pass
class Requestfailed(APIError):
pass |
# #1
# def count_red_beads(n):
# return 0 if n < 2 else (n - 1) * 2
def count_red_beads(n): # 2
return max(0, 2 * (n-1))
| def count_red_beads(n):
return max(0, 2 * (n - 1)) |
class StringViewIter:
__slots__ = ("inp", "position")
def __init__(self, inp: str):
self.inp = inp
self.position = 0
def __iter__(self):
return self
def __next__(self):
if self.position >= len(self.inp):
raise StopIteration
self.position += 1
return self.inp[self.position - 1]
def peek(self):
return self.inp[self.position + 1]
def prev(self):
self.position -= 1
def format_lines(inp: str):
def indent_loop():
indent = 0
view = StringViewIter(inp)
for c in inp:
if c == "<":
yield "\n"
yield indent * " "
yield "<"
indent += 1
elif c == ">":
indent -= 1
for i in view:
if i != ">":
break
indent -= 1
yield ">"
view.prev()
yield ">"
else:
yield c
return "".join(indent_loop())
| class Stringviewiter:
__slots__ = ('inp', 'position')
def __init__(self, inp: str):
self.inp = inp
self.position = 0
def __iter__(self):
return self
def __next__(self):
if self.position >= len(self.inp):
raise StopIteration
self.position += 1
return self.inp[self.position - 1]
def peek(self):
return self.inp[self.position + 1]
def prev(self):
self.position -= 1
def format_lines(inp: str):
def indent_loop():
indent = 0
view = string_view_iter(inp)
for c in inp:
if c == '<':
yield '\n'
yield (indent * ' ')
yield '<'
indent += 1
elif c == '>':
indent -= 1
for i in view:
if i != '>':
break
indent -= 1
yield '>'
view.prev()
yield '>'
else:
yield c
return ''.join(indent_loop()) |
def check_fabs(matrix):
print(matrix)
s = set()
i = 0
while i < len(matrix):
if matrix[i][1] in s:
matrix[i][1] += 1
if matrix[i][1] == len(matrix):
matrix[i][1] = 0
else:
s.add(matrix[i][1])
i += 1
print(matrix)
print('\n')
def main():
check_fabs([[0, 0], [1, 0]])
check_fabs([[0, 1], [1, 1]])
check_fabs([[0, 1], [1, 0], [2, 0]])
check_fabs([[0, 1], [1, 0], [2, 0], [3, 0]])
check_fabs([[0, 1], [1, 2], [2, 2], [3, 1]])
if __name__ == "__main__":
main()
| def check_fabs(matrix):
print(matrix)
s = set()
i = 0
while i < len(matrix):
if matrix[i][1] in s:
matrix[i][1] += 1
if matrix[i][1] == len(matrix):
matrix[i][1] = 0
else:
s.add(matrix[i][1])
i += 1
print(matrix)
print('\n')
def main():
check_fabs([[0, 0], [1, 0]])
check_fabs([[0, 1], [1, 1]])
check_fabs([[0, 1], [1, 0], [2, 0]])
check_fabs([[0, 1], [1, 0], [2, 0], [3, 0]])
check_fabs([[0, 1], [1, 2], [2, 2], [3, 1]])
if __name__ == '__main__':
main() |
#Entering Input
n = int(input("Enter the no of elements in List: "))
print(f"Enter the List of {n} numbers: ")
myList = []
for num in range (n):
myList.append(int(input()))
print (myList)
#Finding the largest Number
larNo = myList[0]
for num in range(0,n-1):
if larNo < myList[num+1]:
larNo = myList[num+1]
print ("The Largest Number: ", larNo)
#Finding the Second largest Number
myNList = myList.copy()
myNList.pop(myNList.index(larNo))
n = len(myNList)
slarNo = myNList[0]
for num in range(0,n -1):
if slarNo < myNList[num+1]:
slarNo = myNList[num+1]
print ("The Second-Largest Number: ",slarNo)
#Sorting
n = len(myList)
for i in range(n):
for j in range (0, n-i-1):
if myList[j] > myList[j + 1]:
myList[j], myList[j+1] = myList[j+1], myList[j]
print ("Sorted List: ", myList)
print ("Largest Number : ",myList[-1],", Second-Largest Number: ",myList[-2])
| n = int(input('Enter the no of elements in List: '))
print(f'Enter the List of {n} numbers: ')
my_list = []
for num in range(n):
myList.append(int(input()))
print(myList)
lar_no = myList[0]
for num in range(0, n - 1):
if larNo < myList[num + 1]:
lar_no = myList[num + 1]
print('The Largest Number: ', larNo)
my_n_list = myList.copy()
myNList.pop(myNList.index(larNo))
n = len(myNList)
slar_no = myNList[0]
for num in range(0, n - 1):
if slarNo < myNList[num + 1]:
slar_no = myNList[num + 1]
print('The Second-Largest Number: ', slarNo)
n = len(myList)
for i in range(n):
for j in range(0, n - i - 1):
if myList[j] > myList[j + 1]:
(myList[j], myList[j + 1]) = (myList[j + 1], myList[j])
print('Sorted List: ', myList)
print('Largest Number : ', myList[-1], ', Second-Largest Number: ', myList[-2]) |
resultado=""
K=int(input())
if K>0 and K<=1000:
while K!=0:
N,M=list(map(int, input().split()))
if N>-10000 or M<10000:
for x in range(K):
X,Y=list(map(int, input().split()))
if X>=-10000 or Y<=10000:
if X<N and Y>M:
resultado += "NO\n"
elif X>N and Y>M:
resultado += "NE\n"
elif X>N and Y<M:
resultado += "SE\n"
elif X<N and Y<M:
resultado += "SO\n"
elif X==N or Y==M:
resultado += "divisa\n"
K=int(input())
print(resultado) | resultado = ''
k = int(input())
if K > 0 and K <= 1000:
while K != 0:
(n, m) = list(map(int, input().split()))
if N > -10000 or M < 10000:
for x in range(K):
(x, y) = list(map(int, input().split()))
if X >= -10000 or Y <= 10000:
if X < N and Y > M:
resultado += 'NO\n'
elif X > N and Y > M:
resultado += 'NE\n'
elif X > N and Y < M:
resultado += 'SE\n'
elif X < N and Y < M:
resultado += 'SO\n'
elif X == N or Y == M:
resultado += 'divisa\n'
k = int(input())
print(resultado) |
print("Welcome to the tip calculator.")
bill = float(input("What was your total? $"))
tip = int(input("What percentage tip would you like to give? 10, 12 or 15? "))
people = int(input("How many people to split the bill? "))
bill_with_tip = ((tip /100 ) * bill + bill) / people
final_bill = round(bill_with_tip,2)
# print(type(final_bill))
print(f"Each person should pay: ${final_bill}")
| print('Welcome to the tip calculator.')
bill = float(input('What was your total? $'))
tip = int(input('What percentage tip would you like to give? 10, 12 or 15? '))
people = int(input('How many people to split the bill? '))
bill_with_tip = (tip / 100 * bill + bill) / people
final_bill = round(bill_with_tip, 2)
print(f'Each person should pay: ${final_bill}') |
# Initial state.
a = 1
b = c = d = e = f = g = h = 0
b = 67
c = b
# if a != 0 goto ANZ # jnz a 2
# When a was 0, this would skip the next 4 lines
# jnz 1 5
# ANZ
b = b * 100 # (6700) # mul b 100 #1
b -= -100000 # sub b -100000 # 2
c = b # set c b # 3
c -= -17000 # sub c -17000 # 4
# b = 106700
# c = 123700
# -23
while True:
f = 1
d = 2
while True:
e = 2
# if (somehow) (d * e == b, then we'll set f=0 and increment h.
# no need to inc e to figure out.
if b % d == 0:
f = 0
e = b
# while True:
# # this loops until e == b.
# # g = d
# # g *= e
# # g -= b
# if d * e == b:
# # jnz g 2
# # set f 0 (skipped when g not zero)
# f = 0
# e += 1 # sub e -1
# if e == b:
# break
# jnz g -8
d += 1 # sub d -1
g = d # set g d
g -= b # sub g b
if d == b:
break
# jnz g -13
if f == 0:
# jnz f 2
h -= -1 #sub h -1
# When b == c this ends
# g = b # set g b
# g -= c # sub g c
if b == c:
# jnz g 2
# jnz 1 3 # FINISHES
print(h) # 905
assert False
b -= -17 # sub b -17 --- after 1000 iterations, b == c
# Always jumps - jnz 1 -23
# 1000 too high | a = 1
b = c = d = e = f = g = h = 0
b = 67
c = b
b = b * 100
b -= -100000
c = b
c -= -17000
while True:
f = 1
d = 2
while True:
e = 2
if b % d == 0:
f = 0
e = b
d += 1
g = d
g -= b
if d == b:
break
if f == 0:
h -= -1
if b == c:
print(h)
assert False
b -= -17 |
#Embedded file name: ACEStream\__init__.pyo
LIBRARYNAME = 'ACEStream'
DEFAULT_I2I_LISTENPORT = 0
DEFAULT_SESSION_LISTENPORT = 8621
DEFAULT_HTTP_LISTENPORT = 6878
| libraryname = 'ACEStream'
default_i2_i_listenport = 0
default_session_listenport = 8621
default_http_listenport = 6878 |
list1 = list()
list2 = ['a', 25, 'string', 14.03]
list3 = list((1,2,3,4)) # list(tuple)
print (list1)
print (list2)
print (list3)
# List Comprehension
list4 = [x for x in range(10)]
print (list4)
list5 = [x**2 for x in range(10) if x > 4]
print (list5)
# del(): delete list item or list itself
list6 = ['sugar', 'rice', 'tea', 'cup']
del (list6[1])
print (list6)
# below line will delete the list
del (list6)
list7 = ['sugar', 'tea', 'cup']
list7.append('ginger')
print (list7)
# extend(): add 2 list together
list8 = ['coffee', 'crush']
list7.extend(list8)
# list7 += list8
print (list7)
print (list8)
# insert(): inster item at given index and push rest forward
list9 = [5, 3, 7, 4, 9]
list9.insert(0, 100)
list9.insert(len(list9), 999)
print (list9)
list9.insert(1, ['One', 'Two'])
print (list9)
# pop(): pop the top item from list
list10 = [5, 3, 7, 4, 9]
list10.pop()
list10.pop()
print (list10)
# remove(): only remove 1st occurance of item
list11 = [5, 3, 7, 4, 9, 3, 7]
list11.remove(3)
print (list11)
# reverse(): reverse the list item
list12 = [5, 3, 7, 4, 9, ]
list12.reverse()
print (list12)
# sort(): sort the list item, unlike sorted() this will sort the existing list.
list13 = [5, 3, 7, 4, 9, ]
list13.sort()
print (list13)
| list1 = list()
list2 = ['a', 25, 'string', 14.03]
list3 = list((1, 2, 3, 4))
print(list1)
print(list2)
print(list3)
list4 = [x for x in range(10)]
print(list4)
list5 = [x ** 2 for x in range(10) if x > 4]
print(list5)
list6 = ['sugar', 'rice', 'tea', 'cup']
del list6[1]
print(list6)
del list6
list7 = ['sugar', 'tea', 'cup']
list7.append('ginger')
print(list7)
list8 = ['coffee', 'crush']
list7.extend(list8)
print(list7)
print(list8)
list9 = [5, 3, 7, 4, 9]
list9.insert(0, 100)
list9.insert(len(list9), 999)
print(list9)
list9.insert(1, ['One', 'Two'])
print(list9)
list10 = [5, 3, 7, 4, 9]
list10.pop()
list10.pop()
print(list10)
list11 = [5, 3, 7, 4, 9, 3, 7]
list11.remove(3)
print(list11)
list12 = [5, 3, 7, 4, 9]
list12.reverse()
print(list12)
list13 = [5, 3, 7, 4, 9]
list13.sort()
print(list13) |
project='pbdcex'
version='0.1.1'
debug = 1 #0/1
defs = []
verbose = 'on' #on/off
extra_c_flags = '-wno-unused-parameter'
extra_cxx_flags = '--std=c++11 -lpthread -lrt -ldl'
env = {
'protoi':'/usr/local/include',
'protoc':'protoc',
'protoi':'/usr/local/include',
}
units = [
{
'name':'pbdcexer',
'type':'exe',
'subdir':'src',
'incs':['{{root}}/..'],
'lincs':['{{root}}/../dcpots/lib','{{root}}/../cxxtemplates/lib'],
'libs':['dcutil-drs','dcutil-mysql','dcbase','mysqlclient','protobuf','xctmp','pbjson'],
'objs':[
{
'name':'pbdcex',
'srcs':['pbdcex.cpp','mysql_gen.cpp','cpp_gen.cpp'],
},
],
},
{
'name':'htest',
'subdir':'test',
'type':'exe',
'dsrcs': ['proto'],
'srcs':['proto/test.pb.cc','proto/test.cex.hpp'],
'incs':['{{cdir}}/proto','../dcpots/utility/drs','{{root}}/src','{{root}}/../'],
'lincs':['{{root}}/lib','{{root}}/../dcpots/lib'],
'libs' : [
'pbdcex',
'dcutil-drs',
'dcbase',
'mysqlclient',
'pbjson',
'protobuf',
],
'objs': [{
'out':'{{cdir}}/proto/test.pb.cc',
'dep':'{{cdir}}/proto/test.proto',
'cmd':'{{protoc}} {{cdir}}/proto/test.proto -I{{root}}/../dcpots/utility/drs -I{{cdir}}/proto -I{{protoi}} --cpp_out={{cdir}}/proto/'
},
{
'out':'{{cdir}}/proto/test.cex.hpp',
'dep':'{{cdir}}/proto/test.proto',
'cmd':'{{root}}/bin/pbdcexer -mHello -ptest.proto -I{{root}}/../dcpots/utility/drs -I{{cdir}}/proto -I{{protoi}} --cpp_out={{cdir}}/proto/'
},
{
'name':'sql',
'out':'{{cdir}}/proto/DBPlayer.sql',
'dep':'{{cdir}}/proto/test.proto',
'cmd':'{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;'\
'{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;'\
'{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;'
},
]
}
]
| project = 'pbdcex'
version = '0.1.1'
debug = 1
defs = []
verbose = 'on'
extra_c_flags = '-wno-unused-parameter'
extra_cxx_flags = '--std=c++11 -lpthread -lrt -ldl'
env = {'protoi': '/usr/local/include', 'protoc': 'protoc', 'protoi': '/usr/local/include'}
units = [{'name': 'pbdcexer', 'type': 'exe', 'subdir': 'src', 'incs': ['{{root}}/..'], 'lincs': ['{{root}}/../dcpots/lib', '{{root}}/../cxxtemplates/lib'], 'libs': ['dcutil-drs', 'dcutil-mysql', 'dcbase', 'mysqlclient', 'protobuf', 'xctmp', 'pbjson'], 'objs': [{'name': 'pbdcex', 'srcs': ['pbdcex.cpp', 'mysql_gen.cpp', 'cpp_gen.cpp']}]}, {'name': 'htest', 'subdir': 'test', 'type': 'exe', 'dsrcs': ['proto'], 'srcs': ['proto/test.pb.cc', 'proto/test.cex.hpp'], 'incs': ['{{cdir}}/proto', '../dcpots/utility/drs', '{{root}}/src', '{{root}}/../'], 'lincs': ['{{root}}/lib', '{{root}}/../dcpots/lib'], 'libs': ['pbdcex', 'dcutil-drs', 'dcbase', 'mysqlclient', 'pbjson', 'protobuf'], 'objs': [{'out': '{{cdir}}/proto/test.pb.cc', 'dep': '{{cdir}}/proto/test.proto', 'cmd': '{{protoc}} {{cdir}}/proto/test.proto -I{{root}}/../dcpots/utility/drs -I{{cdir}}/proto -I{{protoi}} --cpp_out={{cdir}}/proto/'}, {'out': '{{cdir}}/proto/test.cex.hpp', 'dep': '{{cdir}}/proto/test.proto', 'cmd': '{{root}}/bin/pbdcexer -mHello -ptest.proto -I{{root}}/../dcpots/utility/drs -I{{cdir}}/proto -I{{protoi}} --cpp_out={{cdir}}/proto/'}, {'name': 'sql', 'out': '{{cdir}}/proto/DBPlayer.sql', 'dep': '{{cdir}}/proto/test.proto', 'cmd': '{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;{{protoc}} -p{{cdir}}/proto/test.proto -mDBPlayer -mDBHello --sql_out={{cdir}}/proto -I{{cdir}}/proto -I{{protoi}} -I{{dcpotsi}}/dcpots/utility/drs;'}]}] |
#
# PySNMP MIB module NRC-HUB1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NRC-HUB1-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:24:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, IpAddress, Integer32, NotificationType, Counter32, iso, Counter64, ModuleIdentity, Gauge32, MibIdentifier, ObjectIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "IpAddress", "Integer32", "NotificationType", "Counter32", "iso", "Counter64", "ModuleIdentity", "Gauge32", "MibIdentifier", "ObjectIdentity", "Unsigned32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
enterprises = MibIdentifier((1, 3, 6, 1, 4, 1))
nrc = MibIdentifier((1, 3, 6, 1, 4, 1, 315))
hub1 = MibIdentifier((1, 3, 6, 1, 4, 1, 315, 1))
hub1AutoPartition = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1AutoPartition.setStatus('mandatory')
if mibBuilder.loadTexts: hub1AutoPartition.setDescription("The value 'enabled' indicates that the HUB should auto partition ports. The value 'disabled' will disable this feature.")
hub1ReconnectOnTransmission = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1ReconnectOnTransmission.setStatus('mandatory')
if mibBuilder.loadTexts: hub1ReconnectOnTransmission.setDescription("The value 'enabled' indicates that the HUB will reconnect an auto partitioned port if the HUB receives a packet from a partitioned port. The value 'disabled' indicates that the HUB will reconnect a partitioned port if there is any traffic to or from the port.")
hub1IncludeOutOfWinColl = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1IncludeOutOfWinColl.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IncludeOutOfWinColl.setDescription("A value of 'enabled' will cause Out Of Window Collisions to be counted along with In Window Collisions (as defined by IEEE 802.3) when determining if the collision count has exceeded hub1CollisionLimit and a port should be auto partitioned. A value of 'disabled' indicates that Out Of Window Collisions should NOT be counted when determining if the collision count has exceeded hub1CollisionLimit and a and a port should be auto partitioned.")
hub1LoopbackPartition = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1LoopbackPartition.setStatus('mandatory')
if mibBuilder.loadTexts: hub1LoopbackPartition.setDescription("A value of 'enabled' will cause the HUB to automatically partition a port where a lack of loopback from the transeiver is detected. A value of 'disabled' will disable this feature. Note: Setting this variable will only effect HUB operation when hub1PortType value equals 'thinNet-10Base2'. For all other hub1PortType values, a value of 'enabled' will have no effect.")
hub1CollisionLimit = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(31, 63))).clone(namedValues=NamedValues(("low", 31), ("high", 63)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1CollisionLimit.setStatus('mandatory')
if mibBuilder.loadTexts: hub1CollisionLimit.setDescription('If consecutive collisions exceeding the value of this variable are detected on a port, the port will be auto partitioned 31 is the IEEE 802.3 consecutive collision limit.')
hub1CarrierRecoverTime = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3, 5))).clone(namedValues=NamedValues(("short", 3), ("long", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1CarrierRecoverTime.setStatus('mandatory')
if mibBuilder.loadTexts: hub1CarrierRecoverTime.setDescription("Time to recover carrier. A value of 'short' will use 3 bit times (IEEE 802.3 specification). A value of 'long' will use 5 bit times.")
hub1EventCounterFlags = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1EventCounterFlags.setStatus('mandatory')
if mibBuilder.loadTexts: hub1EventCounterFlags.setDescription("A bit mask indicating which error types will cause an increment in the hub1PortEventCount Counter. Each bit has the following significance where each bit is listed from most significant bit of the first octet, to least significant bit of the second octet. High (first) Octet bit 8 - not used - 7 - not used - 6 Out Of Window Collision Count Enable 5 Receive Collision Count Enable 4 Transmit Collision Count Enable 3 - not used - 2 - not used - 1 - not used - Low (second) Octet bit 8 Bad Link Count Enable 7 Partition Count Enable 6 Receive Count Enable 5 Pygmy Packet Enable 4 Non SFD Enable 3 Phase Lock Error Enable 2 Elasticity Buffer Error Enable 1 Jabber Enable When setting the value of this variable, the entire bit mask must be specified and the '-not used-' bits must not be set.")
hub1EventRecordFlags = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1EventRecordFlags.setStatus('mandatory')
if mibBuilder.loadTexts: hub1EventRecordFlags.setDescription("A bit mask indicating which error types will cause corresponding bits in hub1PortEventRecordValue to be set when an error is detected. Each bit has the following significance where bits are listed from most significant bit to least significant bit. bit 8 Bad Link Enable 7 Partition Enable 6 Out Of Window Collision Enable 5 Pygmy Packet Enable 4 Non SFD Enable 3 Phase Lock Error Enable 2 Elasticity Buffer Error Enable 1 Jabber Enable When a particular bit is set, all ports will start to log the specified error in the hub1PortEventRecordValue column of the port's row of the hub1PortTable. For example, if bit 1 (Jabber Enable) is set, then for every port, a detected Jabber Error would cause bit 1 of hub1PortEventRecordValue to be set. When setting the value of this variable, the entire bit mask must be specified. When this mask is set, hub1PortRecordValue for all ports is cleared.")
hub1BridgingMode = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("bridging", 1), ("bypass", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1BridgingMode.setStatus('mandatory')
if mibBuilder.loadTexts: hub1BridgingMode.setDescription("Operational mode of the bridge: bridging Packets are being selectively forwarded according to the internal dynamically built tables. bypass All packets are being repeated between the backbone and the repeater ports. The bridge logic is disabled. After setting this variable the HUB must be reset for the new value to take effect. NOTE: FOIRL Hubs can only have the value 'bypass' for this variable. Attempts to set this variable to 'bridging' on FOIRL hubs will be rejected.")
hub1ProtocolFilterMode = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("filter", 2), ("pass", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1ProtocolFilterMode.setStatus('mandatory')
if mibBuilder.loadTexts: hub1ProtocolFilterMode.setDescription('Filtering Mode of the Hub: off The protocol filtering logic is disabled. filter The protocol filtering logic is enabled and packets with the protocol types indicated in hubFilterProtocols will not be forwarded by the bridge. pass The packet filtering logic is enabled and packets with the protocol types indicated in hubFilterProtocols will be the ONLY packets that the bridge will forward.')
hub1FilterProtocols = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1FilterProtocols.setStatus('mandatory')
if mibBuilder.loadTexts: hub1FilterProtocols.setDescription('Protocol types to be filtered or passed by the bridging logic. This is a variable length array of between 0 and 16 2-byte entries, each entry containing the 2-byte protocol identifier as seen in the Ethernet header. Attempts to configure this variable with an OCTET STRING of odd length will be rejected.')
hub1ConsoleBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1ConsoleBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts: hub1ConsoleBaudRate.setDescription('The baud rate of the console port. Legal values are 9600, 4800, 2400, and 1200.')
hub1Reset = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no-reset", 1), ("reset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1Reset.setStatus('mandatory')
if mibBuilder.loadTexts: hub1Reset.setDescription("Setting this object to 'reset' will cause the Hub1 to perform a hardware reset within approximately 5 seconds. Setting this object to 'no-reset will have no effect. The value 'no-reset will be returned whenever this object is retrieved. The primary purpose for including this variable in the Hub1 MIB is to allow SNMP managers to modify the operational mode of the Hub1. Changing the variable hub1BridgingMode has no effect on the Hub until the Hub is reset.")
hub1SoftwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1SoftwareVersion.setStatus('mandatory')
if mibBuilder.loadTexts: hub1SoftwareVersion.setDescription("The version of software running on the Hub. On versions of the Hub that support dynamic download, this variable may be set to cause a new version of the software to be loaded the next time the Hub is reset (as in setting the variable hub1Reset or power cycling the unit). The version should be specified in the following format: 'MM.mm.rr' Where MM is the major number, mm is the minor number, and rr is the revision level (for example 2.0.16). On versions of the Hub that do not support dynamic download, setting this variable will result in an error.")
hub1PortTable = MibTable((1, 3, 6, 1, 4, 1, 315, 1, 15), )
if mibBuilder.loadTexts: hub1PortTable.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortTable.setDescription('A table of port specific information for the NRC HUB 1 product. This table supplements the Repeater MIB Ports Table.')
hub1PortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 315, 1, 15, 1), ).setIndexNames((0, "NRC-HUB1-MIB", "hub1PortIndex"))
if mibBuilder.loadTexts: hub1PortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortEntry.setDescription('A list of information for every port.')
hub1PortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortIndex.setDescription('Port number that corresponds to the index value in the Repeater MIB variable rptrPortIndex.')
hub1PortForceReconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("idle", 1), ("force-reconnect", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1PortForceReconnect.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortForceReconnect.setDescription("Setting this variable to the value 'force- reconnect' will cause the port to be reconnected assuming that it is currently in the 'Partition' state. If the port is not in a 'Partition' state, setting variable to the value 'force-reconnect' will not have any effect. Setting this variable to anything other than 'force- reconnect will and an undefined effect. When retrieving this variable, the value 'idle' will always be returned.")
hub1PortPartitionReason = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("not-partitioned", 1), ("other", 2), ("consecutive-collision-limit", 3), ("excessive-len-of-collision-limit", 4), ("data-loopback-failure", 5), ("process-forced-reconnection", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortPartitionReason.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortPartitionReason.setDescription("Reason for port being in the partitioned state. If the port is currently not partitioned, this variable will have the value 'not-partitioned'.")
hub1PortLinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortLinkState.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortLinkState.setDescription("This variable's meaning varies depending on the type of HUB: 10Base2 Not Applicable. A value of 'unknown' will always be returned. 10BaseT Link Test is being received ('up') or not being received ('down'). Fiber Light Monitoring (LMON) is being detected ('up') or not being detected ('down').")
hub1PortLinkEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1PortLinkEnable.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortLinkEnable.setDescription('Enabling this variable has the following effect depending on the type of HUB: 10Base2 No Effect 10BaseT Link Test Enabled Fiber LMON Test Enabled')
hub1PortPolarityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("reversed", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortPolarityStatus.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortPolarityStatus.setDescription("Current port Polarity status. NOTE: a value of 'ok' will always be returned for 10Base2 and FOIRL HUBs")
hub1PortName = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hub1PortName.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortName.setDescription('Administrator assigned ASCII port name.')
hub1PortEventCount = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortEventCount.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortEventCount.setDescription('Counter of all error events that were detected on this port and at the same time were marked for collection in the hub1EventCounterFlags variable. This is a 16 bit wrapping counter.')
hub1PortRecordValue = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortRecordValue.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortRecordValue.setDescription('Bit Mask that has bits set for each error event that was detected on this port and at the same time was marked for collection in the hub1EventRecordFlags variable. Each bit has the following meaning, where the bits are listed from most significant to least significant: bit 8 Bad Link Count Error 7 Partition Count Error 6 Receive Count Error 5 Pygmy Packet Error 4 Non SFD Error 3 Phase Lock Error 2 Elasticity Buffer Error 1 Jabber Error Each read of this variable causes the variable to be cleared.')
hub1PortType = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("twistedPair-10BaseT", 2), ("thinNet-10Base2", 3), ("fiber-FOIRL", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1PortType.setStatus('mandatory')
if mibBuilder.loadTexts: hub1PortType.setDescription('The type of port')
hub1IFTable = MibTable((1, 3, 6, 1, 4, 1, 315, 1, 16), )
if mibBuilder.loadTexts: hub1IFTable.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFTable.setDescription('A table that contains HUB 1 specific supplements to the MIB-II interfaces table.')
hub1IFEntry = MibTableRow((1, 3, 6, 1, 4, 1, 315, 1, 16, 1), ).setIndexNames((0, "NRC-HUB1-MIB", "hub1IFIndex"))
if mibBuilder.loadTexts: hub1IFEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFEntry.setDescription('Entries in the HUB 1 supplement table.')
hub1IFIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFIndex.setDescription('Interface index that corresponds to ifIndex in the interfaces table from MIB II.')
hub1IFInAlignmentErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInAlignmentErrors.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInAlignmentErrors.setDescription('The number of alignment errors detected by this interface.')
hub1IFInCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInCrcErrors.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInCrcErrors.setDescription('The number of CRC errors detected by this interface.')
hub1IFInCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInCollisions.setDescription('The number of collisions detected by this interface.')
hub1IFInMtuExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInMtuExceededDiscards.setDescription('The number of frames discarded by this interface on receive due to an excessive size.')
hub1IFInShortErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInShortErrors.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInShortErrors.setDescription('The number of frames discarded by this interface because they were less than the Ethernet minumum frame size of 64 bytes.')
hub1IFInOverrunDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFInOverrunDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFInOverrunDiscards.setDescription('The number of frames discarded by this interface due to a LAN Controller FIFO overflow on receive.')
hub1IFOutUnderruns = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFOutUnderruns.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFOutUnderruns.setDescription('The number of frames which had to be retransmitted by this interface due to a LAN Controller FIFO underrun error on transmit.')
hub1IFOutLostCts = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFOutLostCts.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFOutLostCts.setDescription('The number of times Carrier Transmit Sense (CTS) was lost on this interface during frame transmission. The hub will attempt to retransmit frames when transmission fails due to lost CTS.')
hub1IFOutLostCrs = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFOutLostCrs.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFOutLostCrs.setDescription('The number of times Carrier Receive Sense (CRS) was lost on this interface during frame transmission. The hub will attempt to retransmit frames when transmission fails due to lost CRS.')
hub1IFOutMtuExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFOutMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFOutMtuExceededDiscards.setDescription('The number of frames discarded by this interface on transmit due to an excessive size.')
hub1IFOutCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFOutCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFOutCollisions.setDescription('The number of collisions detected by this interface while attempting to transmit a packet.')
hub1IFChannelUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 13), OctetString().subtype(subtypeSpec=ValueSizeConstraint(90, 90)).setFixedLength(90)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1IFChannelUtilization.setStatus('mandatory')
if mibBuilder.loadTexts: hub1IFChannelUtilization.setDescription('Utilization statistics for the last 60 seconds of operation of the bridging logic associated with this interface. The OCTET STRING is a series of 45 16-bit words, each word representing the percentage utilization for a 1.33 second sample period. The first 16 bit word in this series represents the oldest sample. Percentages are calculated by passing each 16 bit sample through the following equation: ((Sample) * 100) / 0xffff to yield the percent channel utilization (a number ranging from 0 to 100).')
hub1LastFailureReason = MibScalar((1, 3, 6, 1, 4, 1, 315, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hub1LastFailureReason.setStatus('mandatory')
if mibBuilder.loadTexts: hub1LastFailureReason.setDescription('The last error that caused a Hub failure. A value of zero (0) indicates that there has not been a Hub failure since the novram was last erased. A non-zero value indicates the reason for the last Hub failure. A normal Hub reset or power cycle will not change the value of this variable (it will still indicate the reason for the last known failure.')
mibBuilder.exportSymbols("NRC-HUB1-MIB", hub1PortForceReconnect=hub1PortForceReconnect, hub1LastFailureReason=hub1LastFailureReason, hub1PortType=hub1PortType, hub1PortRecordValue=hub1PortRecordValue, hub1IFOutUnderruns=hub1IFOutUnderruns, hub1IFInOverrunDiscards=hub1IFInOverrunDiscards, hub1PortPolarityStatus=hub1PortPolarityStatus, hub1IFOutLostCrs=hub1IFOutLostCrs, hub1IFTable=hub1IFTable, hub1=hub1, hub1PortLinkState=hub1PortLinkState, hub1FilterProtocols=hub1FilterProtocols, hub1PortEventCount=hub1PortEventCount, enterprises=enterprises, hub1IFEntry=hub1IFEntry, hub1PortLinkEnable=hub1PortLinkEnable, hub1IFChannelUtilization=hub1IFChannelUtilization, hub1ConsoleBaudRate=hub1ConsoleBaudRate, hub1EventRecordFlags=hub1EventRecordFlags, hub1PortName=hub1PortName, hub1SoftwareVersion=hub1SoftwareVersion, hub1CollisionLimit=hub1CollisionLimit, hub1IFOutLostCts=hub1IFOutLostCts, hub1IFInCollisions=hub1IFInCollisions, hub1IFInMtuExceededDiscards=hub1IFInMtuExceededDiscards, hub1EventCounterFlags=hub1EventCounterFlags, hub1Reset=hub1Reset, hub1AutoPartition=hub1AutoPartition, hub1CarrierRecoverTime=hub1CarrierRecoverTime, hub1IFOutCollisions=hub1IFOutCollisions, hub1LoopbackPartition=hub1LoopbackPartition, hub1IFInShortErrors=hub1IFInShortErrors, hub1ProtocolFilterMode=hub1ProtocolFilterMode, hub1IFInCrcErrors=hub1IFInCrcErrors, nrc=nrc, hub1PortIndex=hub1PortIndex, hub1ReconnectOnTransmission=hub1ReconnectOnTransmission, hub1PortEntry=hub1PortEntry, hub1BridgingMode=hub1BridgingMode, hub1IFOutMtuExceededDiscards=hub1IFOutMtuExceededDiscards, hub1PortPartitionReason=hub1PortPartitionReason, hub1IFIndex=hub1IFIndex, hub1IFInAlignmentErrors=hub1IFInAlignmentErrors, hub1IncludeOutOfWinColl=hub1IncludeOutOfWinColl, hub1PortTable=hub1PortTable)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, ip_address, integer32, notification_type, counter32, iso, counter64, module_identity, gauge32, mib_identifier, object_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'IpAddress', 'Integer32', 'NotificationType', 'Counter32', 'iso', 'Counter64', 'ModuleIdentity', 'Gauge32', 'MibIdentifier', 'ObjectIdentity', 'Unsigned32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
enterprises = mib_identifier((1, 3, 6, 1, 4, 1))
nrc = mib_identifier((1, 3, 6, 1, 4, 1, 315))
hub1 = mib_identifier((1, 3, 6, 1, 4, 1, 315, 1))
hub1_auto_partition = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1AutoPartition.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1AutoPartition.setDescription("The value 'enabled' indicates that the HUB should auto partition ports. The value 'disabled' will disable this feature.")
hub1_reconnect_on_transmission = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1ReconnectOnTransmission.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1ReconnectOnTransmission.setDescription("The value 'enabled' indicates that the HUB will reconnect an auto partitioned port if the HUB receives a packet from a partitioned port. The value 'disabled' indicates that the HUB will reconnect a partitioned port if there is any traffic to or from the port.")
hub1_include_out_of_win_coll = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1IncludeOutOfWinColl.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IncludeOutOfWinColl.setDescription("A value of 'enabled' will cause Out Of Window Collisions to be counted along with In Window Collisions (as defined by IEEE 802.3) when determining if the collision count has exceeded hub1CollisionLimit and a port should be auto partitioned. A value of 'disabled' indicates that Out Of Window Collisions should NOT be counted when determining if the collision count has exceeded hub1CollisionLimit and a and a port should be auto partitioned.")
hub1_loopback_partition = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1LoopbackPartition.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1LoopbackPartition.setDescription("A value of 'enabled' will cause the HUB to automatically partition a port where a lack of loopback from the transeiver is detected. A value of 'disabled' will disable this feature. Note: Setting this variable will only effect HUB operation when hub1PortType value equals 'thinNet-10Base2'. For all other hub1PortType values, a value of 'enabled' will have no effect.")
hub1_collision_limit = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(31, 63))).clone(namedValues=named_values(('low', 31), ('high', 63)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1CollisionLimit.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1CollisionLimit.setDescription('If consecutive collisions exceeding the value of this variable are detected on a port, the port will be auto partitioned 31 is the IEEE 802.3 consecutive collision limit.')
hub1_carrier_recover_time = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3, 5))).clone(namedValues=named_values(('short', 3), ('long', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1CarrierRecoverTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1CarrierRecoverTime.setDescription("Time to recover carrier. A value of 'short' will use 3 bit times (IEEE 802.3 specification). A value of 'long' will use 5 bit times.")
hub1_event_counter_flags = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1EventCounterFlags.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1EventCounterFlags.setDescription("A bit mask indicating which error types will cause an increment in the hub1PortEventCount Counter. Each bit has the following significance where each bit is listed from most significant bit of the first octet, to least significant bit of the second octet. High (first) Octet bit 8 - not used - 7 - not used - 6 Out Of Window Collision Count Enable 5 Receive Collision Count Enable 4 Transmit Collision Count Enable 3 - not used - 2 - not used - 1 - not used - Low (second) Octet bit 8 Bad Link Count Enable 7 Partition Count Enable 6 Receive Count Enable 5 Pygmy Packet Enable 4 Non SFD Enable 3 Phase Lock Error Enable 2 Elasticity Buffer Error Enable 1 Jabber Enable When setting the value of this variable, the entire bit mask must be specified and the '-not used-' bits must not be set.")
hub1_event_record_flags = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1EventRecordFlags.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1EventRecordFlags.setDescription("A bit mask indicating which error types will cause corresponding bits in hub1PortEventRecordValue to be set when an error is detected. Each bit has the following significance where bits are listed from most significant bit to least significant bit. bit 8 Bad Link Enable 7 Partition Enable 6 Out Of Window Collision Enable 5 Pygmy Packet Enable 4 Non SFD Enable 3 Phase Lock Error Enable 2 Elasticity Buffer Error Enable 1 Jabber Enable When a particular bit is set, all ports will start to log the specified error in the hub1PortEventRecordValue column of the port's row of the hub1PortTable. For example, if bit 1 (Jabber Enable) is set, then for every port, a detected Jabber Error would cause bit 1 of hub1PortEventRecordValue to be set. When setting the value of this variable, the entire bit mask must be specified. When this mask is set, hub1PortRecordValue for all ports is cleared.")
hub1_bridging_mode = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('bridging', 1), ('bypass', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1BridgingMode.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1BridgingMode.setDescription("Operational mode of the bridge: bridging Packets are being selectively forwarded according to the internal dynamically built tables. bypass All packets are being repeated between the backbone and the repeater ports. The bridge logic is disabled. After setting this variable the HUB must be reset for the new value to take effect. NOTE: FOIRL Hubs can only have the value 'bypass' for this variable. Attempts to set this variable to 'bridging' on FOIRL hubs will be rejected.")
hub1_protocol_filter_mode = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('filter', 2), ('pass', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1ProtocolFilterMode.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1ProtocolFilterMode.setDescription('Filtering Mode of the Hub: off The protocol filtering logic is disabled. filter The protocol filtering logic is enabled and packets with the protocol types indicated in hubFilterProtocols will not be forwarded by the bridge. pass The packet filtering logic is enabled and packets with the protocol types indicated in hubFilterProtocols will be the ONLY packets that the bridge will forward.')
hub1_filter_protocols = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1FilterProtocols.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1FilterProtocols.setDescription('Protocol types to be filtered or passed by the bridging logic. This is a variable length array of between 0 and 16 2-byte entries, each entry containing the 2-byte protocol identifier as seen in the Ethernet header. Attempts to configure this variable with an OCTET STRING of odd length will be rejected.')
hub1_console_baud_rate = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1ConsoleBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1ConsoleBaudRate.setDescription('The baud rate of the console port. Legal values are 9600, 4800, 2400, and 1200.')
hub1_reset = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no-reset', 1), ('reset', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1Reset.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1Reset.setDescription("Setting this object to 'reset' will cause the Hub1 to perform a hardware reset within approximately 5 seconds. Setting this object to 'no-reset will have no effect. The value 'no-reset will be returned whenever this object is retrieved. The primary purpose for including this variable in the Hub1 MIB is to allow SNMP managers to modify the operational mode of the Hub1. Changing the variable hub1BridgingMode has no effect on the Hub until the Hub is reset.")
hub1_software_version = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1SoftwareVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1SoftwareVersion.setDescription("The version of software running on the Hub. On versions of the Hub that support dynamic download, this variable may be set to cause a new version of the software to be loaded the next time the Hub is reset (as in setting the variable hub1Reset or power cycling the unit). The version should be specified in the following format: 'MM.mm.rr' Where MM is the major number, mm is the minor number, and rr is the revision level (for example 2.0.16). On versions of the Hub that do not support dynamic download, setting this variable will result in an error.")
hub1_port_table = mib_table((1, 3, 6, 1, 4, 1, 315, 1, 15))
if mibBuilder.loadTexts:
hub1PortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortTable.setDescription('A table of port specific information for the NRC HUB 1 product. This table supplements the Repeater MIB Ports Table.')
hub1_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 315, 1, 15, 1)).setIndexNames((0, 'NRC-HUB1-MIB', 'hub1PortIndex'))
if mibBuilder.loadTexts:
hub1PortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortEntry.setDescription('A list of information for every port.')
hub1_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 24))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortIndex.setDescription('Port number that corresponds to the index value in the Repeater MIB variable rptrPortIndex.')
hub1_port_force_reconnect = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('idle', 1), ('force-reconnect', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1PortForceReconnect.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortForceReconnect.setDescription("Setting this variable to the value 'force- reconnect' will cause the port to be reconnected assuming that it is currently in the 'Partition' state. If the port is not in a 'Partition' state, setting variable to the value 'force-reconnect' will not have any effect. Setting this variable to anything other than 'force- reconnect will and an undefined effect. When retrieving this variable, the value 'idle' will always be returned.")
hub1_port_partition_reason = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('not-partitioned', 1), ('other', 2), ('consecutive-collision-limit', 3), ('excessive-len-of-collision-limit', 4), ('data-loopback-failure', 5), ('process-forced-reconnection', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortPartitionReason.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortPartitionReason.setDescription("Reason for port being in the partitioned state. If the port is currently not partitioned, this variable will have the value 'not-partitioned'.")
hub1_port_link_state = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortLinkState.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortLinkState.setDescription("This variable's meaning varies depending on the type of HUB: 10Base2 Not Applicable. A value of 'unknown' will always be returned. 10BaseT Link Test is being received ('up') or not being received ('down'). Fiber Light Monitoring (LMON) is being detected ('up') or not being detected ('down').")
hub1_port_link_enable = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1PortLinkEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortLinkEnable.setDescription('Enabling this variable has the following effect depending on the type of HUB: 10Base2 No Effect 10BaseT Link Test Enabled Fiber LMON Test Enabled')
hub1_port_polarity_status = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('reversed', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortPolarityStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortPolarityStatus.setDescription("Current port Polarity status. NOTE: a value of 'ok' will always be returned for 10Base2 and FOIRL HUBs")
hub1_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hub1PortName.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortName.setDescription('Administrator assigned ASCII port name.')
hub1_port_event_count = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortEventCount.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortEventCount.setDescription('Counter of all error events that were detected on this port and at the same time were marked for collection in the hub1EventCounterFlags variable. This is a 16 bit wrapping counter.')
hub1_port_record_value = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortRecordValue.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortRecordValue.setDescription('Bit Mask that has bits set for each error event that was detected on this port and at the same time was marked for collection in the hub1EventRecordFlags variable. Each bit has the following meaning, where the bits are listed from most significant to least significant: bit 8 Bad Link Count Error 7 Partition Count Error 6 Receive Count Error 5 Pygmy Packet Error 4 Non SFD Error 3 Phase Lock Error 2 Elasticity Buffer Error 1 Jabber Error Each read of this variable causes the variable to be cleared.')
hub1_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 15, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('twistedPair-10BaseT', 2), ('thinNet-10Base2', 3), ('fiber-FOIRL', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1PortType.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1PortType.setDescription('The type of port')
hub1_if_table = mib_table((1, 3, 6, 1, 4, 1, 315, 1, 16))
if mibBuilder.loadTexts:
hub1IFTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFTable.setDescription('A table that contains HUB 1 specific supplements to the MIB-II interfaces table.')
hub1_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 315, 1, 16, 1)).setIndexNames((0, 'NRC-HUB1-MIB', 'hub1IFIndex'))
if mibBuilder.loadTexts:
hub1IFEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFEntry.setDescription('Entries in the HUB 1 supplement table.')
hub1_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFIndex.setDescription('Interface index that corresponds to ifIndex in the interfaces table from MIB II.')
hub1_if_in_alignment_errors = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInAlignmentErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInAlignmentErrors.setDescription('The number of alignment errors detected by this interface.')
hub1_if_in_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInCrcErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInCrcErrors.setDescription('The number of CRC errors detected by this interface.')
hub1_if_in_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInCollisions.setDescription('The number of collisions detected by this interface.')
hub1_if_in_mtu_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInMtuExceededDiscards.setDescription('The number of frames discarded by this interface on receive due to an excessive size.')
hub1_if_in_short_errors = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInShortErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInShortErrors.setDescription('The number of frames discarded by this interface because they were less than the Ethernet minumum frame size of 64 bytes.')
hub1_if_in_overrun_discards = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFInOverrunDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFInOverrunDiscards.setDescription('The number of frames discarded by this interface due to a LAN Controller FIFO overflow on receive.')
hub1_if_out_underruns = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFOutUnderruns.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFOutUnderruns.setDescription('The number of frames which had to be retransmitted by this interface due to a LAN Controller FIFO underrun error on transmit.')
hub1_if_out_lost_cts = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFOutLostCts.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFOutLostCts.setDescription('The number of times Carrier Transmit Sense (CTS) was lost on this interface during frame transmission. The hub will attempt to retransmit frames when transmission fails due to lost CTS.')
hub1_if_out_lost_crs = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFOutLostCrs.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFOutLostCrs.setDescription('The number of times Carrier Receive Sense (CRS) was lost on this interface during frame transmission. The hub will attempt to retransmit frames when transmission fails due to lost CRS.')
hub1_if_out_mtu_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFOutMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFOutMtuExceededDiscards.setDescription('The number of frames discarded by this interface on transmit due to an excessive size.')
hub1_if_out_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFOutCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFOutCollisions.setDescription('The number of collisions detected by this interface while attempting to transmit a packet.')
hub1_if_channel_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 315, 1, 16, 1, 13), octet_string().subtype(subtypeSpec=value_size_constraint(90, 90)).setFixedLength(90)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1IFChannelUtilization.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1IFChannelUtilization.setDescription('Utilization statistics for the last 60 seconds of operation of the bridging logic associated with this interface. The OCTET STRING is a series of 45 16-bit words, each word representing the percentage utilization for a 1.33 second sample period. The first 16 bit word in this series represents the oldest sample. Percentages are calculated by passing each 16 bit sample through the following equation: ((Sample) * 100) / 0xffff to yield the percent channel utilization (a number ranging from 0 to 100).')
hub1_last_failure_reason = mib_scalar((1, 3, 6, 1, 4, 1, 315, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hub1LastFailureReason.setStatus('mandatory')
if mibBuilder.loadTexts:
hub1LastFailureReason.setDescription('The last error that caused a Hub failure. A value of zero (0) indicates that there has not been a Hub failure since the novram was last erased. A non-zero value indicates the reason for the last Hub failure. A normal Hub reset or power cycle will not change the value of this variable (it will still indicate the reason for the last known failure.')
mibBuilder.exportSymbols('NRC-HUB1-MIB', hub1PortForceReconnect=hub1PortForceReconnect, hub1LastFailureReason=hub1LastFailureReason, hub1PortType=hub1PortType, hub1PortRecordValue=hub1PortRecordValue, hub1IFOutUnderruns=hub1IFOutUnderruns, hub1IFInOverrunDiscards=hub1IFInOverrunDiscards, hub1PortPolarityStatus=hub1PortPolarityStatus, hub1IFOutLostCrs=hub1IFOutLostCrs, hub1IFTable=hub1IFTable, hub1=hub1, hub1PortLinkState=hub1PortLinkState, hub1FilterProtocols=hub1FilterProtocols, hub1PortEventCount=hub1PortEventCount, enterprises=enterprises, hub1IFEntry=hub1IFEntry, hub1PortLinkEnable=hub1PortLinkEnable, hub1IFChannelUtilization=hub1IFChannelUtilization, hub1ConsoleBaudRate=hub1ConsoleBaudRate, hub1EventRecordFlags=hub1EventRecordFlags, hub1PortName=hub1PortName, hub1SoftwareVersion=hub1SoftwareVersion, hub1CollisionLimit=hub1CollisionLimit, hub1IFOutLostCts=hub1IFOutLostCts, hub1IFInCollisions=hub1IFInCollisions, hub1IFInMtuExceededDiscards=hub1IFInMtuExceededDiscards, hub1EventCounterFlags=hub1EventCounterFlags, hub1Reset=hub1Reset, hub1AutoPartition=hub1AutoPartition, hub1CarrierRecoverTime=hub1CarrierRecoverTime, hub1IFOutCollisions=hub1IFOutCollisions, hub1LoopbackPartition=hub1LoopbackPartition, hub1IFInShortErrors=hub1IFInShortErrors, hub1ProtocolFilterMode=hub1ProtocolFilterMode, hub1IFInCrcErrors=hub1IFInCrcErrors, nrc=nrc, hub1PortIndex=hub1PortIndex, hub1ReconnectOnTransmission=hub1ReconnectOnTransmission, hub1PortEntry=hub1PortEntry, hub1BridgingMode=hub1BridgingMode, hub1IFOutMtuExceededDiscards=hub1IFOutMtuExceededDiscards, hub1PortPartitionReason=hub1PortPartitionReason, hub1IFIndex=hub1IFIndex, hub1IFInAlignmentErrors=hub1IFInAlignmentErrors, hub1IncludeOutOfWinColl=hub1IncludeOutOfWinColl, hub1PortTable=hub1PortTable) |
# Animate plot as a wire-frame
plotter = pv.Plotter(window_size=(800, 600))
plotter.add_mesh(grid, scalars=d[:, 1],
scalar_bar_args={'title': 'Y Displacement'},
show_edges=True,
rng=[-d.max(), d.max()], interpolate_before_map=True,
style='wireframe')
plotter.add_axes()
plotter.camera_position = cpos
plotter.open_gif('beam_wireframe.gif')
for phase in np.linspace(0, 2*np.pi, 20):
plotter.update_coordinates(grid.points + d*np.cos(phase), render=False)
plotter.update_scalars(d[:, 1]*np.cos(phase), render=False)
plotter.render()
plotter.write_frame()
# close the plotter when complete
plotter.close() | plotter = pv.Plotter(window_size=(800, 600))
plotter.add_mesh(grid, scalars=d[:, 1], scalar_bar_args={'title': 'Y Displacement'}, show_edges=True, rng=[-d.max(), d.max()], interpolate_before_map=True, style='wireframe')
plotter.add_axes()
plotter.camera_position = cpos
plotter.open_gif('beam_wireframe.gif')
for phase in np.linspace(0, 2 * np.pi, 20):
plotter.update_coordinates(grid.points + d * np.cos(phase), render=False)
plotter.update_scalars(d[:, 1] * np.cos(phase), render=False)
plotter.render()
plotter.write_frame()
plotter.close() |
def display():
def message():
return "Hello "
return message
fun=display()
print(fun())
| def display():
def message():
return 'Hello '
return message
fun = display()
print(fun()) |
def sku_lookup(sku):
price_table = [
{
'item': 'A',
'price': 50,
'offers': [
'3A for 130',
],
},
{
'item': 'B',
'price': 30,
'offers': [
'2B for 45',
],
},
{
'item': 'C',
'price': 20,
'offers': [],
},
{
'item': 'D',
'price': 15,
'offers': [],
},
]
for item in price_table:
if sku == item.get('item'):
return item
return None
# noinspection PyUnusedLocal
# skus = unicode string
def checkout(skus):
sku_list = list(skus)
total = 0
for sku in sku_list:
sku_item = sku_lookup(sku)
if not sku_item:
return -1
price = sku_item.get('price', -1)
if price < 0:
return -1
total += price
return total
| def sku_lookup(sku):
price_table = [{'item': 'A', 'price': 50, 'offers': ['3A for 130']}, {'item': 'B', 'price': 30, 'offers': ['2B for 45']}, {'item': 'C', 'price': 20, 'offers': []}, {'item': 'D', 'price': 15, 'offers': []}]
for item in price_table:
if sku == item.get('item'):
return item
return None
def checkout(skus):
sku_list = list(skus)
total = 0
for sku in sku_list:
sku_item = sku_lookup(sku)
if not sku_item:
return -1
price = sku_item.get('price', -1)
if price < 0:
return -1
total += price
return total |
class One:
def __init__(self):
super().__init__()
print("This is init method of class One")
self.i=5
class Two(One):
def __init__(self):
super().__init__()
print("This is init method of class Two")
self.j=10
class Three(Two):
def __init__(self):
super().__init__()
print("This is init method of class Three")
self.k=15
class Final(Three):
def __init__(self):
super().__init__()
print("This is init method of class Final")
| class One:
def __init__(self):
super().__init__()
print('This is init method of class One')
self.i = 5
class Two(One):
def __init__(self):
super().__init__()
print('This is init method of class Two')
self.j = 10
class Three(Two):
def __init__(self):
super().__init__()
print('This is init method of class Three')
self.k = 15
class Final(Three):
def __init__(self):
super().__init__()
print('This is init method of class Final') |
{
"targets": [
{
"target_name": "mmap",
"sources": ["mmap.cc" ],
"include_dirs": [
"<!(node -e \"require('nan')\")",
],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.12",
"OTHER_CPLUSPLUSFLAGS": [ "-std=c++11", "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ]
},
"libraries": [
],
}
]
} | {'targets': [{'target_name': 'mmap', 'sources': ['mmap.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'MACOSX_DEPLOYMENT_TARGET': '10.12', 'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++'], 'OTHER_LDFLAGS': ['-stdlib=libc++']}, 'libraries': []}]} |
#!/usr/local/bin/python3.3
L = [1, 2, 3, 4]
print(L[-1000:100])
L[3:1] = ['?']
print(L)
| l = [1, 2, 3, 4]
print(L[-1000:100])
L[3:1] = ['?']
print(L) |
def bissexto(ano):
if(ano % 4 == 0 and (ano % 400 == 0 or ano % 100 != 0)):
return True
return False
def dias_mes(ano):
if(len(ano)=='fev'):
return ValueError("Nao tem 3 caracteres")
return
mes=str(input("Mes: "))
print(dias_mes(mes)) | def bissexto(ano):
if ano % 4 == 0 and (ano % 400 == 0 or ano % 100 != 0):
return True
return False
def dias_mes(ano):
if len(ano) == 'fev':
return value_error('Nao tem 3 caracteres')
return
mes = str(input('Mes: '))
print(dias_mes(mes)) |
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) |
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'} |
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)) |
# -*- 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)) |
# 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]]) |
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 |
#
# 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 |
# 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 |
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) |
# 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) |
'''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 |
# 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 = {} |
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
_____________ | _____
_____
_____________ |
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() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.